@golstats/gsc-game-data 1.0.310 → 1.0.311

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.
@@ -1,4 +1,4 @@
1
- (function(Hd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Hd=typeof globalThis<"u"?globalThis:Hd||self,t(Hd.GSCGameData={},Hd.Vue))})(this,function(Hd,t){"use strict";var oCt=Object.defineProperty;var sCt=(Hd,t,x1)=>t in Hd?oCt(Hd,t,{enumerable:!0,configurable:!0,writable:!0,value:x1}):Hd[t]=x1;var xu=(Hd,t,x1)=>(sCt(Hd,typeof t!="symbol"?t+"":t,x1),x1);const x1="",lCt="",cCt="",uCt="",dCt="",hCt="",pCt="",fCt="",mCt="",vj=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Aw={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))}}},eS=()=>{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}))},tS=Aw.setup;Aw.setup=tS?(e,p)=>(eS(),tS(e,p)):eS;const _j=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),bj=["src"],xj={key:1,class:"text"},wj=["src"],kj={class:"stats"},Sj=_j(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tj={class:"numstats"},Cj={class:"leyend"};function Aj(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,bj)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",xj,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,wj)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",kj,[Sj,t.createElementVNode("div",Tj,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Cj,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Ej=vj(Aw,[["render",Aj],["__scopeId","data-v-fb269a1e"]]),Mj={class:"gsc-dropdown__main-container__item-selected"},Ij=["height","width"],Pj=["stroke"],Lj={class:"gsc-dropdown__items-container"},Bj=["onClick"],zj={key:0,class:"gsc-dropdown__items-footer"},Oj={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-container-padding":f.listContainerPadding,"--list-item-padding":f.listItemPadding,"--list-item-margin":f.listItemMargin,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-border-radius":f.listItemBorderRadius,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--list-margin-top":f.listMarginTop,"--list-left":f.listAlignment==="left"?"0":"auto","--list-right":f.listAlignment==="right"?"0":"auto","--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",Mj,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,Pj)],8,Ij))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lj,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,Bj))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",zj,[t.createVNode(t.unref(Ej),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},Dj=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Fj={class:"tournament-select__selected-tournament"},Nj={class:"tournament-select__selected-tournament__logo"},Rj=["src"],Vj={class:"tournament-select__selected-tournament__name"},jj="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",Uj={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(p=>p in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["input","change-tournaments"],setup(e,{emit:p}){const f=e,F=t.ref([]),K=t.computed(()=>{const g={};return f.fontFamily&&(g["font-family"]=`${f.fontFamily}`),g}),k=t.computed(()=>f.tournamentsIdsToInclude.size?_(F.value):F.value),w=t.computed(()=>k.value.find(g=>g.seasonsIds.has(f.currentSeasonId))||k.value[0]);async function n(){try{if(f.items&&f.items.length)F.value=[...f.items];else{const g=await r();p("change-tournaments",g),F.value=g.map(c=>({...c.tournament,seasons:c.seasons,seasonsIds:c.seasons.reduce((a,i)=>(a.add(i.id),a),new Set)})).sort((c,a)=>c.order-a.order)}}catch(g){throw new Error(g)}}function _(g){return g.filter(c=>f.tournamentsIdsToInclude.has(c.id))}function h(g){const c=new XMLHttpRequest,a=`${f.logosUrl}${g}.${f.logoFileType}`;return c.open("HEAD",a,!1),c.send(),c.status!==404}async function r(){try{return(await fetch(f.apiUrl||jj)).json()}catch(g){return Promise.reject(g)}}function b(g){p("input",g)}function y(g){p("input",g)}return t.onMounted(()=>{n()}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(K.value)},[t.createVNode(t.unref(Oj),t.mergeProps(f,{"model-value":w.value,items:k.value,onInput:b,"onUpdate:modelValue":y}),{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",Fj,[t.createElementVNode("div",Nj,[h(a.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${f.logosUrl}${a.id}.${f.logoFileType}`,alt:""},null,8,Rj)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vj,t.toDisplayString(a.name),1)])]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("div",null,t.toDisplayString(a.name),1)]),_:1},16,["model-value","items"])],4))}},rS=Dj(Uj,[["__scopeId","data-v-5c8e9511"]]),$j=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Ew={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))}}},nS=()=>{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}))},aS=Ew.setup;Ew.setup=aS?(e,p)=>(nS(),aS(e,p)):nS;const Gj=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Hj=["src"],qj={key:1,class:"text"},Wj=["src"],Zj={class:"stats"},Xj=Gj(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Yj={class:"numstats"},Kj={class:"leyend"};function Jj(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,Hj)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",qj,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,Wj)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",Zj,[Xj,t.createElementVNode("div",Yj,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Kj,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Qj=$j(Ew,[["render",Jj],["__scopeId","data-v-fb269a1e"]]),eU={class:"gsc-dropdown__main-container__item-selected"},tU=["height","width"],rU=["stroke"],nU={class:"gsc-dropdown__items-container"},aU=["onClick"],iU={key:0,class:"gsc-dropdown__items-footer"},oU={__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(p=>p 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:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-item-padding":f.listItemPadding,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",eU,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,rU)],8,tU))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nU,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,aU))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",iU,[t.createVNode(t.unref(Qj),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},sU=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},lU={class:"season-name"},cU={class:"items-list-season"},uU={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:p}){const f=e,F=t.computed(()=>f.seasons.find(w=>w.id===f.currentSeasonId));function K(w){p("input",w)}function k(w){p("input",w)}return(w,n)=>(t.openBlock(),t.createBlock(t.unref(oU),{items:e.seasons,"model-value":F.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:k,"onUpdate:modelValue":K},{default:t.withCtx(({selectedItem:_})=>[t.createElementVNode("div",lU,[t.createElementVNode("span",null,t.toDisplayString(_.name),1)])]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("span",cU,t.toDisplayString(_.name),1)]),_:1},8,["items","model-value"]))}},iS=sU(uU,[["__scopeId","data-v-81bba1d4"]]);function oS(e,p){return function(){return e.apply(p,arguments)}}const{toString:dU}=Object.prototype,{getPrototypeOf:Mw}=Object,I2=(e=>p=>{const f=dU.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),xf=e=>(e=e.toLowerCase(),p=>I2(p)===e),P2=e=>p=>typeof p===e,{isArray:w1}=Array,Uy=P2("undefined");function hU(e){return e!==null&&!Uy(e)&&e.constructor!==null&&!Uy(e.constructor)&&gp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sS=xf("ArrayBuffer");function pU(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&sS(e.buffer),p}const fU=P2("string"),gp=P2("function"),lS=P2("number"),L2=e=>e!==null&&typeof e=="object",mU=e=>e===!0||e===!1,B2=e=>{if(I2(e)!=="object")return!1;const p=Mw(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gU=xf("Date"),yU=xf("File"),vU=xf("Blob"),_U=xf("FileList"),bU=e=>L2(e)&&gp(e.pipe),xU=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||gp(e.append)&&((p=I2(e))==="formdata"||p==="object"&&gp(e.toString)&&e.toString()==="[object FormData]"))},wU=xf("URLSearchParams"),[kU,SU,TU,CU]=["ReadableStream","Request","Response","Headers"].map(xf),AU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $y(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),w1(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function cS(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const sg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uS=e=>!Uy(e)&&e!==sg;function Iw(){const{caseless:e}=uS(this)&&this||{},p={},f=(F,K)=>{const k=e&&cS(p,K)||K;B2(p[k])&&B2(F)?p[k]=Iw(p[k],F):B2(F)?p[k]=Iw({},F):w1(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&$y(arguments[F],f);return p}const EU=(e,p,f,{allOwnKeys:F}={})=>($y(p,(K,k)=>{f&&gp(K)?e[k]=oS(K,f):e[k]=K},{allOwnKeys:F}),e),MU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IU=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},PU=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&Mw(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},LU=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},BU=e=>{if(!e)return null;if(w1(e))return e;let p=e.length;if(!lS(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},zU=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&Mw(Uint8Array)),OU=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},DU=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},FU=xf("HTMLFormElement"),NU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),dS=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),RU=xf("RegExp"),hS=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};$y(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},VU=e=>{hS(e,(p,f)=>{if(gp(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(gp(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},jU=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return w1(e)?F(e):F(String(e).split(p)),f},UU=()=>{},$U=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,Pw="abcdefghijklmnopqrstuvwxyz",pS="0123456789",fS={DIGIT:pS,ALPHA:Pw,ALPHA_DIGIT:Pw+Pw.toUpperCase()+pS},GU=(e=16,p=fS.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function HU(e){return!!(e&&gp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qU=e=>{const p=new Array(10),f=(F,K)=>{if(L2(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=w1(F)?[]:{};return $y(F,(w,n)=>{const _=f(w,K+1);!Uy(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},WU=xf("AsyncFunction"),ZU=e=>e&&(L2(e)||gp(e))&&gp(e.then)&&gp(e.catch),mS=((e,p)=>e?setImmediate:p?((f,F)=>(sg.addEventListener("message",({source:K,data:k})=>{K===sg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),sg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",gp(sg.postMessage)),XU=typeof queueMicrotask<"u"?queueMicrotask.bind(sg):typeof process<"u"&&process.nextTick||mS,Ca={isArray:w1,isArrayBuffer:sS,isBuffer:hU,isFormData:xU,isArrayBufferView:pU,isString:fU,isNumber:lS,isBoolean:mU,isObject:L2,isPlainObject:B2,isReadableStream:kU,isRequest:SU,isResponse:TU,isHeaders:CU,isUndefined:Uy,isDate:gU,isFile:yU,isBlob:vU,isRegExp:RU,isFunction:gp,isStream:bU,isURLSearchParams:wU,isTypedArray:zU,isFileList:_U,forEach:$y,merge:Iw,extend:EU,trim:AU,stripBOM:MU,inherits:IU,toFlatObject:PU,kindOf:I2,kindOfTest:xf,endsWith:LU,toArray:BU,forEachEntry:OU,matchAll:DU,isHTMLForm:FU,hasOwnProperty:dS,hasOwnProp:dS,reduceDescriptors:hS,freezeMethods:VU,toObjectSet:jU,toCamelCase:NU,noop:UU,toFiniteNumber:$U,findKey:cS,global:sg,isContextDefined:uS,ALPHABET:fS,generateString:GU,isSpecCompliantForm:HU,toJSONObject:qU,isAsyncFn:WU,isThenable:ZU,setImmediate:mS,asap:XU};function Qs(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Ca.inherits(Qs,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:Ca.toJSONObject(this.config),code:this.code,status:this.status}}});const gS=Qs.prototype,yS={};["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=>{yS[e]={value:e}}),Object.defineProperties(Qs,yS),Object.defineProperty(gS,"isAxiosError",{value:!0}),Qs.from=(e,p,f,F,K,k)=>{const w=Object.create(gS);return Ca.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Qs.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const YU=null;function Lw(e){return Ca.isPlainObject(e)||Ca.isArray(e)}function vS(e){return Ca.endsWith(e,"[]")?e.slice(0,-2):e}function _S(e,p,f){return e?e.concat(p).map(function(F,K){return F=vS(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function KU(e){return Ca.isArray(e)&&!e.some(Lw)}const JU=Ca.toFlatObject(Ca,{},null,function(e){return/^is[A-Z]/.test(e)});function z2(e,p,f){if(!Ca.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Ca.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Ca.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Ca.isSpecCompliantForm(p);if(!Ca.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Ca.isDate(g))return g.toISOString();if(!n&&Ca.isBlob(g))throw new Qs("Blob is not supported. Use a Buffer instead.");return Ca.isArrayBuffer(g)||Ca.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Ca.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Ca.isArray(g)&&KU(g)||(Ca.isFileList(g)||Ca.endsWith(c,"[]"))&&(i=Ca.toArray(g)))return c=vS(c),i.forEach(function(u,s){!(Ca.isUndefined(u)||u===null)&&p.append(w===!0?_S([c],s,k):w===null?c:c+"[]",_(u))}),!1}return Lw(g)?!0:(p.append(_S(a,c,k),_(g)),!1)}const r=[],b=Object.assign(JU,{defaultVisitor:h,convertValue:_,isVisitable:Lw});function y(g,c){if(!Ca.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Ca.forEach(g,function(a,i){(!(Ca.isUndefined(a)||a===null)&&K.call(p,a,Ca.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Ca.isObject(e))throw new TypeError("data must be an object");return y(e),p}function bS(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function Bw(e,p){this._pairs=[],e&&z2(e,this,p)}const xS=Bw.prototype;xS.append=function(e,p){this._pairs.push([e,p])},xS.toString=function(e){const p=e?function(f){return e.call(this,f,bS)}:bS;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function QU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wS(e,p,f){if(!p)return e;const F=f&&f.encode||QU;Ca.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Ca.isURLSearchParams(p)?p.toString():new Bw(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const kS=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Ca.forEach(this.handlers,function(f){f!==null&&p(f)})}},SS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e$=typeof URLSearchParams<"u"?URLSearchParams:Bw,t$=typeof FormData<"u"?FormData:null,r$=typeof Blob<"u"?Blob:null,n$={isBrowser:!0,classes:{URLSearchParams:e$,FormData:t$,Blob:r$},protocols:["http","https","file","blob","url","data"]},zw=typeof window<"u"&&typeof document<"u",Ow=typeof navigator=="object"&&navigator||void 0,a$=zw&&(!Ow||["ReactNative","NativeScript","NS"].indexOf(Ow.product)<0),i$=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),o$=zw&&window.location.href||"http://localhost",s$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zw,hasStandardBrowserEnv:a$,hasStandardBrowserWebWorkerEnv:i$,navigator:Ow,origin:o$},Symbol.toStringTag,{value:"Module"})),oh={...s$,...n$};function l$(e,p){return z2(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return oh.isNode&&Ca.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function c$(e){return Ca.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function u$(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function TS(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Ca.isArray(K)?K.length:w,_?(Ca.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Ca.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Ca.isArray(K[w])&&(K[w]=u$(K[w])),!n)}if(Ca.isFormData(e)&&Ca.isFunction(e.entries)){const f={};return Ca.forEachEntry(e,(F,K)=>{p(c$(F),K,f,0)}),f}return null}function d$(e,p,f){if(Ca.isString(e))try{return(p||JSON.parse)(e),Ca.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const Dw={transitional:SS,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Ca.isObject(e);if(K&&Ca.isHTMLForm(e)&&(e=new FormData(e)),Ca.isFormData(e))return F?JSON.stringify(TS(e)):e;if(Ca.isArrayBuffer(e)||Ca.isBuffer(e)||Ca.isStream(e)||Ca.isFile(e)||Ca.isBlob(e)||Ca.isReadableStream(e))return e;if(Ca.isArrayBufferView(e))return e.buffer;if(Ca.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return l$(e,this.formSerializer).toString();if((k=Ca.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return z2(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),d$(e)):e}],transformResponse:[function(e){const p=this.transitional||Dw.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Ca.isResponse(e)||Ca.isReadableStream(e))return e;if(e&&Ca.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?Qs.from(k,Qs.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ca.forEach(["delete","get","head","post","put","patch"],e=>{Dw.headers[e]={}});const Fw=Dw,h$=Ca.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"]),p$=e=>{const p={};let f,F,K;return e&&e.split(`
1
+ (function(Hd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Hd=typeof globalThis<"u"?globalThis:Hd||self,t(Hd.GSCGameData={},Hd.Vue))})(this,function(Hd,t){"use strict";var oCt=Object.defineProperty;var sCt=(Hd,t,x1)=>t in Hd?oCt(Hd,t,{enumerable:!0,configurable:!0,writable:!0,value:x1}):Hd[t]=x1;var xu=(Hd,t,x1)=>(sCt(Hd,typeof t!="symbol"?t+"":t,x1),x1);const x1="",lCt="",cCt="",uCt="",dCt="",hCt="",pCt="",fCt="",mCt="",vj=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Aw={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))}}},eS=()=>{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}))},tS=Aw.setup;Aw.setup=tS?(e,p)=>(eS(),tS(e,p)):eS;const _j=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),bj=["src"],xj={key:1,class:"text"},wj=["src"],kj={class:"stats"},Sj=_j(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tj={class:"numstats"},Cj={class:"leyend"};function Aj(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,bj)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",xj,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,wj)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",kj,[Sj,t.createElementVNode("div",Tj,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Cj,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Ej=vj(Aw,[["render",Aj],["__scopeId","data-v-fb269a1e"]]),Mj={class:"gsc-dropdown__main-container__item-selected"},Ij=["height","width"],Pj=["stroke"],Lj={class:"gsc-dropdown__items-container"},Bj=["onClick"],zj={key:0,class:"gsc-dropdown__items-footer"},Oj={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-container-padding":f.listContainerPadding,"--list-item-padding":f.listItemPadding,"--list-item-margin":f.listItemMargin,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-border-radius":f.listItemBorderRadius,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--list-margin-top":f.listMarginTop,"--list-left":f.listAlignment==="left"?"0":"auto","--list-right":f.listAlignment==="right"?"0":"auto","--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",Mj,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,Pj)],8,Ij))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lj,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,Bj))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",zj,[t.createVNode(t.unref(Ej),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},Dj=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Fj={class:"tournament-select__selected-tournament"},Nj={class:"tournament-select__selected-tournament__logo"},Rj=["src"],Vj={class:"tournament-select__selected-tournament__name"},jj="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",Uj={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(p=>p in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["input","change-tournaments"],setup(e,{emit:p}){const f=e,F=t.ref([]),K=t.computed(()=>{const g={};return f.fontFamily&&(g["font-family"]=`${f.fontFamily}`),g}),k=t.computed(()=>f.tournamentsIdsToInclude.size?_(F.value):F.value),w=t.computed(()=>k.value.find(g=>g.seasonsIds.has(f.currentSeasonId))||k.value[0]);async function n(){try{if(f.items&&f.items.length)F.value=[...f.items];else{const g=await r();p("change-tournaments",g),F.value=g.map(c=>({...c.tournament,seasons:c.seasons,seasonsIds:c.seasons.reduce((a,i)=>(a.add(i.id),a),new Set)})).sort((c,a)=>c.order-a.order)}}catch(g){throw new Error(g)}}function _(g){return g.filter(c=>f.tournamentsIdsToInclude.has(c.id))}function h(g){const c=new XMLHttpRequest,a=`${f.logosUrl}${g}.${f.logoFileType}`;return c.open("HEAD",a,!1),c.send(),c.status!==404}async function r(){try{return(await fetch(f.apiUrl||jj)).json()}catch(g){return Promise.reject(g)}}function b(g){p("input",g)}function y(g){p("input",g)}return t.onMounted(()=>{n()}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(K.value)},[t.createVNode(t.unref(Oj),t.mergeProps(f,{"model-value":w.value,items:k.value,onInput:b,"onUpdate:modelValue":y}),{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",Fj,[t.createElementVNode("div",Nj,[h(a.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${f.logosUrl}${a.id}.${f.logoFileType}`,alt:""},null,8,Rj)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vj,t.toDisplayString(a.name),1)])]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("div",null,t.toDisplayString(a.name),1)]),_:1},16,["model-value","items"])],4))}},rS=Dj(Uj,[["__scopeId","data-v-5c8e9511"]]),$j=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Ew={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))}}},nS=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},aS=Ew.setup;Ew.setup=aS?(e,p)=>(nS(),aS(e,p)):nS;const Gj=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),Hj=["src"],qj={key:1,class:"text"},Wj=["src"],Zj={class:"stats"},Xj=Gj(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Yj={class:"numstats"},Kj={class:"leyend"};function Jj(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,Hj)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",qj,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,Wj)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",Zj,[Xj,t.createElementVNode("div",Yj,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Kj,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Qj=$j(Ew,[["render",Jj],["__scopeId","data-v-f3ee6b2b"]]),eU={class:"gsc-dropdown__main-container__item-selected"},tU=["height","width"],rU=["stroke"],nU={class:"gsc-dropdown__items-container"},aU=["onClick"],iU={key:0,class:"gsc-dropdown__items-footer"},oU={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-container-padding":f.listContainerPadding,"--list-item-padding":f.listItemPadding,"--list-item-margin":f.listItemMargin,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-border-radius":f.listItemBorderRadius,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--list-margin-top":f.listMarginTop,"--list-left":f.listAlignment==="left"?"0":"auto","--list-right":f.listAlignment==="right"?"0":"auto","--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",eU,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,rU)],8,tU))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nU,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,aU))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",iU,[t.createVNode(t.unref(Qj),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},sU=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},lU={class:"season-name"},cU={class:"items-list-season"},uU={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:p}){const f=e,F=t.computed(()=>f.seasons.find(w=>w.id===f.currentSeasonId));function K(w){p("input",w)}function k(w){p("input",w)}return(w,n)=>(t.openBlock(),t.createBlock(t.unref(oU),{items:e.seasons,"model-value":F.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:k,"onUpdate:modelValue":K},{default:t.withCtx(({selectedItem:_})=>[t.createElementVNode("div",lU,[t.createElementVNode("span",null,t.toDisplayString(_.name),1)])]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("span",cU,t.toDisplayString(_.name),1)]),_:1},8,["items","model-value"]))}},iS=sU(uU,[["__scopeId","data-v-d23e9ee2"]]);function oS(e,p){return function(){return e.apply(p,arguments)}}const{toString:dU}=Object.prototype,{getPrototypeOf:Mw}=Object,I2=(e=>p=>{const f=dU.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),xf=e=>(e=e.toLowerCase(),p=>I2(p)===e),P2=e=>p=>typeof p===e,{isArray:w1}=Array,Uy=P2("undefined");function hU(e){return e!==null&&!Uy(e)&&e.constructor!==null&&!Uy(e.constructor)&&gp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sS=xf("ArrayBuffer");function pU(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&sS(e.buffer),p}const fU=P2("string"),gp=P2("function"),lS=P2("number"),L2=e=>e!==null&&typeof e=="object",mU=e=>e===!0||e===!1,B2=e=>{if(I2(e)!=="object")return!1;const p=Mw(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gU=xf("Date"),yU=xf("File"),vU=xf("Blob"),_U=xf("FileList"),bU=e=>L2(e)&&gp(e.pipe),xU=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||gp(e.append)&&((p=I2(e))==="formdata"||p==="object"&&gp(e.toString)&&e.toString()==="[object FormData]"))},wU=xf("URLSearchParams"),[kU,SU,TU,CU]=["ReadableStream","Request","Response","Headers"].map(xf),AU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $y(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),w1(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function cS(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const sg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),uS=e=>!Uy(e)&&e!==sg;function Iw(){const{caseless:e}=uS(this)&&this||{},p={},f=(F,K)=>{const k=e&&cS(p,K)||K;B2(p[k])&&B2(F)?p[k]=Iw(p[k],F):B2(F)?p[k]=Iw({},F):w1(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&$y(arguments[F],f);return p}const EU=(e,p,f,{allOwnKeys:F}={})=>($y(p,(K,k)=>{f&&gp(K)?e[k]=oS(K,f):e[k]=K},{allOwnKeys:F}),e),MU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IU=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},PU=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&Mw(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},LU=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},BU=e=>{if(!e)return null;if(w1(e))return e;let p=e.length;if(!lS(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},zU=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&Mw(Uint8Array)),OU=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},DU=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},FU=xf("HTMLFormElement"),NU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),dS=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),RU=xf("RegExp"),hS=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};$y(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},VU=e=>{hS(e,(p,f)=>{if(gp(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(gp(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},jU=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return w1(e)?F(e):F(String(e).split(p)),f},UU=()=>{},$U=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,Pw="abcdefghijklmnopqrstuvwxyz",pS="0123456789",fS={DIGIT:pS,ALPHA:Pw,ALPHA_DIGIT:Pw+Pw.toUpperCase()+pS},GU=(e=16,p=fS.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function HU(e){return!!(e&&gp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qU=e=>{const p=new Array(10),f=(F,K)=>{if(L2(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=w1(F)?[]:{};return $y(F,(w,n)=>{const _=f(w,K+1);!Uy(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},WU=xf("AsyncFunction"),ZU=e=>e&&(L2(e)||gp(e))&&gp(e.then)&&gp(e.catch),mS=((e,p)=>e?setImmediate:p?((f,F)=>(sg.addEventListener("message",({source:K,data:k})=>{K===sg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),sg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",gp(sg.postMessage)),XU=typeof queueMicrotask<"u"?queueMicrotask.bind(sg):typeof process<"u"&&process.nextTick||mS,Ca={isArray:w1,isArrayBuffer:sS,isBuffer:hU,isFormData:xU,isArrayBufferView:pU,isString:fU,isNumber:lS,isBoolean:mU,isObject:L2,isPlainObject:B2,isReadableStream:kU,isRequest:SU,isResponse:TU,isHeaders:CU,isUndefined:Uy,isDate:gU,isFile:yU,isBlob:vU,isRegExp:RU,isFunction:gp,isStream:bU,isURLSearchParams:wU,isTypedArray:zU,isFileList:_U,forEach:$y,merge:Iw,extend:EU,trim:AU,stripBOM:MU,inherits:IU,toFlatObject:PU,kindOf:I2,kindOfTest:xf,endsWith:LU,toArray:BU,forEachEntry:OU,matchAll:DU,isHTMLForm:FU,hasOwnProperty:dS,hasOwnProp:dS,reduceDescriptors:hS,freezeMethods:VU,toObjectSet:jU,toCamelCase:NU,noop:UU,toFiniteNumber:$U,findKey:cS,global:sg,isContextDefined:uS,ALPHABET:fS,generateString:GU,isSpecCompliantForm:HU,toJSONObject:qU,isAsyncFn:WU,isThenable:ZU,setImmediate:mS,asap:XU};function Qs(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Ca.inherits(Qs,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:Ca.toJSONObject(this.config),code:this.code,status:this.status}}});const gS=Qs.prototype,yS={};["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=>{yS[e]={value:e}}),Object.defineProperties(Qs,yS),Object.defineProperty(gS,"isAxiosError",{value:!0}),Qs.from=(e,p,f,F,K,k)=>{const w=Object.create(gS);return Ca.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Qs.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const YU=null;function Lw(e){return Ca.isPlainObject(e)||Ca.isArray(e)}function vS(e){return Ca.endsWith(e,"[]")?e.slice(0,-2):e}function _S(e,p,f){return e?e.concat(p).map(function(F,K){return F=vS(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function KU(e){return Ca.isArray(e)&&!e.some(Lw)}const JU=Ca.toFlatObject(Ca,{},null,function(e){return/^is[A-Z]/.test(e)});function z2(e,p,f){if(!Ca.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Ca.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Ca.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Ca.isSpecCompliantForm(p);if(!Ca.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Ca.isDate(g))return g.toISOString();if(!n&&Ca.isBlob(g))throw new Qs("Blob is not supported. Use a Buffer instead.");return Ca.isArrayBuffer(g)||Ca.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Ca.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Ca.isArray(g)&&KU(g)||(Ca.isFileList(g)||Ca.endsWith(c,"[]"))&&(i=Ca.toArray(g)))return c=vS(c),i.forEach(function(u,s){!(Ca.isUndefined(u)||u===null)&&p.append(w===!0?_S([c],s,k):w===null?c:c+"[]",_(u))}),!1}return Lw(g)?!0:(p.append(_S(a,c,k),_(g)),!1)}const r=[],b=Object.assign(JU,{defaultVisitor:h,convertValue:_,isVisitable:Lw});function y(g,c){if(!Ca.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Ca.forEach(g,function(a,i){(!(Ca.isUndefined(a)||a===null)&&K.call(p,a,Ca.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Ca.isObject(e))throw new TypeError("data must be an object");return y(e),p}function bS(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function Bw(e,p){this._pairs=[],e&&z2(e,this,p)}const xS=Bw.prototype;xS.append=function(e,p){this._pairs.push([e,p])},xS.toString=function(e){const p=e?function(f){return e.call(this,f,bS)}:bS;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function QU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wS(e,p,f){if(!p)return e;const F=f&&f.encode||QU;Ca.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Ca.isURLSearchParams(p)?p.toString():new Bw(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const kS=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Ca.forEach(this.handlers,function(f){f!==null&&p(f)})}},SS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e$=typeof URLSearchParams<"u"?URLSearchParams:Bw,t$=typeof FormData<"u"?FormData:null,r$=typeof Blob<"u"?Blob:null,n$={isBrowser:!0,classes:{URLSearchParams:e$,FormData:t$,Blob:r$},protocols:["http","https","file","blob","url","data"]},zw=typeof window<"u"&&typeof document<"u",Ow=typeof navigator=="object"&&navigator||void 0,a$=zw&&(!Ow||["ReactNative","NativeScript","NS"].indexOf(Ow.product)<0),i$=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),o$=zw&&window.location.href||"http://localhost",s$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zw,hasStandardBrowserEnv:a$,hasStandardBrowserWebWorkerEnv:i$,navigator:Ow,origin:o$},Symbol.toStringTag,{value:"Module"})),oh={...s$,...n$};function l$(e,p){return z2(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return oh.isNode&&Ca.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function c$(e){return Ca.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function u$(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function TS(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Ca.isArray(K)?K.length:w,_?(Ca.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Ca.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Ca.isArray(K[w])&&(K[w]=u$(K[w])),!n)}if(Ca.isFormData(e)&&Ca.isFunction(e.entries)){const f={};return Ca.forEachEntry(e,(F,K)=>{p(c$(F),K,f,0)}),f}return null}function d$(e,p,f){if(Ca.isString(e))try{return(p||JSON.parse)(e),Ca.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const Dw={transitional:SS,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Ca.isObject(e);if(K&&Ca.isHTMLForm(e)&&(e=new FormData(e)),Ca.isFormData(e))return F?JSON.stringify(TS(e)):e;if(Ca.isArrayBuffer(e)||Ca.isBuffer(e)||Ca.isStream(e)||Ca.isFile(e)||Ca.isBlob(e)||Ca.isReadableStream(e))return e;if(Ca.isArrayBufferView(e))return e.buffer;if(Ca.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return l$(e,this.formSerializer).toString();if((k=Ca.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return z2(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),d$(e)):e}],transformResponse:[function(e){const p=this.transitional||Dw.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Ca.isResponse(e)||Ca.isReadableStream(e))return e;if(e&&Ca.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?Qs.from(k,Qs.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ca.forEach(["delete","get","head","post","put","patch"],e=>{Dw.headers[e]={}});const Fw=Dw,h$=Ca.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"]),p$=e=>{const p={};let f,F,K;return e&&e.split(`
2
2
  `).forEach(function(k){K=k.indexOf(":"),f=k.substring(0,K).trim().toLowerCase(),F=k.substring(K+1).trim(),!(!f||p[f]&&h$[f])&&(f==="set-cookie"?p[f]?p[f].push(F):p[f]=[F]:p[f]=p[f]?p[f]+", "+F:F)}),p},CS=Symbol("internals");function Gy(e){return e&&String(e).trim().toLowerCase()}function O2(e){return e===!1||e==null?e:Ca.isArray(e)?e.map(O2):String(e)}function f$(e){const p=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let F;for(;F=f.exec(e);)p[F[1]]=F[2];return p}const m$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nw(e,p,f,F,K){if(Ca.isFunction(F))return F.call(this,p,f);if(K&&(p=f),!!Ca.isString(p)){if(Ca.isString(F))return p.indexOf(F)!==-1;if(Ca.isRegExp(F))return F.test(p)}}function g$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(p,f,F)=>f.toUpperCase()+F)}function y$(e,p){const f=Ca.toCamelCase(" "+p);["get","set","has"].forEach(F=>{Object.defineProperty(e,F+f,{value:function(K,k,w){return this[F].call(this,p,K,k,w)},configurable:!0})})}let D2=class{constructor(p){p&&this.set(p)}set(p,f,F){const K=this;function k(n,_,h){const r=Gy(_);if(!r)throw new Error("header name must be a non-empty string");const b=Ca.findKey(K,r);(!b||K[b]===void 0||h===!0||h===void 0&&K[b]!==!1)&&(K[b||_]=O2(n))}const w=(n,_)=>Ca.forEach(n,(h,r)=>k(h,r,_));if(Ca.isPlainObject(p)||p instanceof this.constructor)w(p,f);else if(Ca.isString(p)&&(p=p.trim())&&!m$(p))w(p$(p),f);else if(Ca.isHeaders(p))for(const[n,_]of p.entries())k(_,n,F);else p!=null&&k(f,p,F);return this}get(p,f){if(p=Gy(p),p){const F=Ca.findKey(this,p);if(F){const K=this[F];if(!f)return K;if(f===!0)return f$(K);if(Ca.isFunction(f))return f.call(this,K,F);if(Ca.isRegExp(f))return f.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(p,f){if(p=Gy(p),p){const F=Ca.findKey(this,p);return!!(F&&this[F]!==void 0&&(!f||Nw(this,this[F],F,f)))}return!1}delete(p,f){const F=this;let K=!1;function k(w){if(w=Gy(w),w){const n=Ca.findKey(F,w);n&&(!f||Nw(F,F[n],n,f))&&(delete F[n],K=!0)}}return Ca.isArray(p)?p.forEach(k):k(p),K}clear(p){const f=Object.keys(this);let F=f.length,K=!1;for(;F--;){const k=f[F];(!p||Nw(this,this[k],k,p,!0))&&(delete this[k],K=!0)}return K}normalize(p){const f=this,F={};return Ca.forEach(this,(K,k)=>{const w=Ca.findKey(F,k);if(w){f[w]=O2(K),delete f[k];return}const n=p?g$(k):String(k).trim();n!==k&&delete f[k],f[n]=O2(K),F[n]=!0}),this}concat(...p){return this.constructor.concat(this,...p)}toJSON(p){const f=Object.create(null);return Ca.forEach(this,(F,K)=>{F!=null&&F!==!1&&(f[K]=p&&Ca.isArray(F)?F.join(", "):F)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([p,f])=>p+": "+f).join(`
3
3
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(p){return p instanceof this?p:new this(p)}static concat(p,...f){const F=new this(p);return f.forEach(K=>F.set(K)),F}static accessor(p){const f=(this[CS]=this[CS]={accessors:{}}).accessors,F=this.prototype;function K(k){const w=Gy(k);f[w]||(y$(F,k),f[w]=!0)}return Ca.isArray(p)?p.forEach(K):K(p),this}};D2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ca.reduceDescriptors(D2.prototype,({value:e},p)=>{let f=p[0].toUpperCase()+p.slice(1);return{get:()=>e,set(F){this[f]=F}}}),Ca.freezeMethods(D2);const wf=D2;function Rw(e,p){const f=this||Fw,F=p||f,K=wf.from(F.headers);let k=F.data;return Ca.forEach(e,function(w){k=w.call(f,k,K.normalize(),p?p.status:void 0)}),K.normalize(),k}function AS(e){return!!(e&&e.__CANCEL__)}function k1(e,p,f){Qs.call(this,e??"canceled",Qs.ERR_CANCELED,p,f),this.name="CanceledError"}Ca.inherits(k1,Qs,{__CANCEL__:!0});function ES(e,p,f){const F=f.config.validateStatus;!f.status||!F||F(f.status)?e(f):p(new Qs("Request failed with status code "+f.status,[Qs.ERR_BAD_REQUEST,Qs.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function v$(e){const p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return p&&p[1]||""}function _$(e,p){e=e||10;const f=new Array(e),F=new Array(e);let K=0,k=0,w;return p=p!==void 0?p:1e3,function(n){const _=Date.now(),h=F[k];w||(w=_),f[K]=n,F[K]=_;let r=k,b=0;for(;r!==K;)b+=f[r++],r=r%e;if(K=(K+1)%e,K===k&&(k=(k+1)%e),_-w<p)return;const y=h&&_-h;return y?Math.round(b*1e3/y):void 0}}function b$(e,p){let f=0,F=1e3/p,K,k;const w=(n,_=Date.now())=>{f=_,K=null,k&&(clearTimeout(k),k=null),e.apply(null,n)};return[(...n)=>{const _=Date.now(),h=_-f;h>=F?w(n,_):(K=n,k||(k=setTimeout(()=>{k=null,w(K)},F-h)))},()=>K&&w(K)]}const F2=(e,p,f=3)=>{let F=0;const K=_$(50,250);return b$(k=>{const w=k.loaded,n=k.lengthComputable?k.total:void 0,_=w-F,h=K(_),r=w<=n;F=w;const b={loaded:w,total:n,progress:n?w/n:void 0,bytes:_,rate:h||void 0,estimated:h&&n&&r?(n-w)/h:void 0,event:k,lengthComputable:n!=null,[p?"download":"upload"]:!0};e(b)},f)},MS=(e,p)=>{const f=e!=null;return[F=>p[0]({lengthComputable:f,total:e,loaded:F}),p[1]]},IS=e=>(...p)=>Ca.asap(()=>e(...p)),x$=oh.hasStandardBrowserEnv?((e,p)=>f=>(f=new URL(f,oh.origin),e.protocol===f.protocol&&e.host===f.host&&(p||e.port===f.port)))(new URL(oh.origin),oh.navigator&&/(msie|trident)/i.test(oh.navigator.userAgent)):()=>!0,w$=oh.hasStandardBrowserEnv?{write(e,p,f,F,K,k){const w=[e+"="+encodeURIComponent(p)];Ca.isNumber(f)&&w.push("expires="+new Date(f).toGMTString()),Ca.isString(F)&&w.push("path="+F),Ca.isString(K)&&w.push("domain="+K),k===!0&&w.push("secure"),document.cookie=w.join("; ")},read(e){const p=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return p?decodeURIComponent(p[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function k$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function S$(e,p){return p?e.replace(/\/?\/$/,"")+"/"+p.replace(/^\/+/,""):e}function PS(e,p){return e&&!k$(p)?S$(e,p):p}const LS=e=>e instanceof wf?{...e}:e;function lg(e,p){p=p||{};const f={};function F(h,r,b,y){return Ca.isPlainObject(h)&&Ca.isPlainObject(r)?Ca.merge.call({caseless:y},h,r):Ca.isPlainObject(r)?Ca.merge({},r):Ca.isArray(r)?r.slice():r}function K(h,r,b,y){if(Ca.isUndefined(r)){if(!Ca.isUndefined(h))return F(void 0,h,b,y)}else return F(h,r,b,y)}function k(h,r){if(!Ca.isUndefined(r))return F(void 0,r)}function w(h,r){if(Ca.isUndefined(r)){if(!Ca.isUndefined(h))return F(void 0,h)}else return F(void 0,r)}function n(h,r,b){if(b in p)return F(h,r);if(b in e)return F(void 0,h)}const _={url:k,method:k,data:k,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:n,headers:(h,r,b)=>K(LS(h),LS(r),b,!0)};return Ca.forEach(Object.keys(Object.assign({},e,p)),function(h){const r=_[h]||K,b=r(e[h],p[h],h);Ca.isUndefined(b)&&r!==n||(f[h]=b)}),f}const BS=e=>{const p=lg({},e);let{data:f,withXSRFToken:F,xsrfHeaderName:K,xsrfCookieName:k,headers:w,auth:n}=p;p.headers=w=wf.from(w),p.url=wS(PS(p.baseURL,p.url),e.params,e.paramsSerializer),n&&w.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(Ca.isFormData(f)){if(oh.hasStandardBrowserEnv||oh.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((_=w.getContentType())!==!1){const[h,...r]=_?_.split(";").map(b=>b.trim()).filter(Boolean):[];w.setContentType([h||"multipart/form-data",...r].join("; "))}}if(oh.hasStandardBrowserEnv&&(F&&Ca.isFunction(F)&&(F=F(p)),F||F!==!1&&x$(p.url))){const h=K&&k&&w$.read(k);h&&w.set(K,h)}return p},T$=typeof XMLHttpRequest<"u",C$=T$&&function(e){return new Promise(function(p,f){const F=BS(e);let K=F.data;const k=wf.from(F.headers).normalize();let{responseType:w,onUploadProgress:n,onDownloadProgress:_}=F,h,r,b,y,g;function c(){y&&y(),g&&g(),F.cancelToken&&F.cancelToken.unsubscribe(h),F.signal&&F.signal.removeEventListener("abort",h)}let a=new XMLHttpRequest;a.open(F.method.toUpperCase(),F.url,!0),a.timeout=F.timeout;function i(){if(!a)return;const s=wf.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),d={data:!w||w==="text"||w==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:s,config:e,request:a};ES(function(m){p(m),c()},function(m){f(m),c()},d),a=null}"onloadend"in a?a.onloadend=i:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(i)},a.onabort=function(){a&&(f(new Qs("Request aborted",Qs.ECONNABORTED,e,a)),a=null)},a.onerror=function(){f(new Qs("Network Error",Qs.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let s=F.timeout?"timeout of "+F.timeout+"ms exceeded":"timeout exceeded";const d=F.transitional||SS;F.timeoutErrorMessage&&(s=F.timeoutErrorMessage),f(new Qs(s,d.clarifyTimeoutError?Qs.ETIMEDOUT:Qs.ECONNABORTED,e,a)),a=null},K===void 0&&k.setContentType(null),"setRequestHeader"in a&&Ca.forEach(k.toJSON(),function(s,d){a.setRequestHeader(d,s)}),Ca.isUndefined(F.withCredentials)||(a.withCredentials=!!F.withCredentials),w&&w!=="json"&&(a.responseType=F.responseType),_&&([b,g]=F2(_,!0),a.addEventListener("progress",b)),n&&a.upload&&([r,y]=F2(n),a.upload.addEventListener("progress",r),a.upload.addEventListener("loadend",y)),(F.cancelToken||F.signal)&&(h=s=>{a&&(f(!s||s.type?new k1(null,e,a):s),a.abort(),a=null)},F.cancelToken&&F.cancelToken.subscribe(h),F.signal&&(F.signal.aborted?h():F.signal.addEventListener("abort",h)));const u=v$(F.url);if(u&&oh.protocols.indexOf(u)===-1){f(new Qs("Unsupported protocol "+u+":",Qs.ERR_BAD_REQUEST,e));return}a.send(K||null)})},A$=(e,p)=>{const{length:f}=e=e?e.filter(Boolean):[];if(p||f){let F=new AbortController,K;const k=function(h){if(!K){K=!0,n();const r=h instanceof Error?h:this.reason;F.abort(r instanceof Qs?r:new k1(r instanceof Error?r.message:r))}};let w=p&&setTimeout(()=>{w=null,k(new Qs(`timeout ${p} of ms exceeded`,Qs.ETIMEDOUT))},p);const n=()=>{e&&(w&&clearTimeout(w),w=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(k):h.removeEventListener("abort",k)}),e=null)};e.forEach(h=>h.addEventListener("abort",k));const{signal:_}=F;return _.unsubscribe=()=>Ca.asap(n),_}},E$=A$,M$=function*(e,p){let f=e.byteLength;if(!p||f<p){yield e;return}let F=0,K;for(;F<f;)K=F+p,yield e.slice(F,K),F=K},I$=async function*(e,p){for await(const f of P$(e))yield*M$(f,p)},P$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const p=e.getReader();try{for(;;){const{done:f,value:F}=await p.read();if(f)break;yield F}}finally{await p.cancel()}},zS=(e,p,f,F)=>{const K=I$(e,p);let k=0,w,n=_=>{w||(w=!0,F&&F(_))};return new ReadableStream({async pull(_){try{const{done:h,value:r}=await K.next();if(h){n(),_.close();return}let b=r.byteLength;if(f){let y=k+=b;f(y)}_.enqueue(new Uint8Array(r))}catch(h){throw n(h),h}},cancel(_){return n(_),K.return()}},{highWaterMark:2})},N2=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",OS=N2&&typeof ReadableStream=="function",L$=N2&&(typeof TextEncoder=="function"?(e=>p=>e.encode(p))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),DS=(e,...p)=>{try{return!!e(...p)}catch{return!1}},B$=OS&&DS(()=>{let e=!1;const p=new Request(oh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!p}),FS=64*1024,Vw=OS&&DS(()=>Ca.isReadableStream(new Response("").body)),R2={stream:Vw&&(e=>e.body)};N2&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!R2[p]&&(R2[p]=Ca.isFunction(e[p])?f=>f[p]():(f,F)=>{throw new Qs(`Response type '${p}' is not supported`,Qs.ERR_NOT_SUPPORT,F)})})})(new Response);const z$=async e=>{if(e==null)return 0;if(Ca.isBlob(e))return e.size;if(Ca.isSpecCompliantForm(e))return(await new Request(oh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ca.isArrayBufferView(e)||Ca.isArrayBuffer(e))return e.byteLength;if(Ca.isURLSearchParams(e)&&(e=e+""),Ca.isString(e))return(await L$(e)).byteLength},O$=async(e,p)=>Ca.toFiniteNumber(e.getContentLength())??z$(p),D$=N2&&(async e=>{let{url:p,method:f,data:F,signal:K,cancelToken:k,timeout:w,onDownloadProgress:n,onUploadProgress:_,responseType:h,headers:r,withCredentials:b="same-origin",fetchOptions:y}=BS(e);h=h?(h+"").toLowerCase():"text";let g=E$([K,k&&k.toAbortSignal()],w),c;const a=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let i;try{if(_&&B$&&f!=="get"&&f!=="head"&&(i=await O$(r,F))!==0){let v=new Request(p,{method:"POST",body:F,duplex:"half"}),T;if(Ca.isFormData(F)&&(T=v.headers.get("content-type"))&&r.setContentType(T),v.body){const[A,C]=MS(i,F2(IS(_)));F=zS(v.body,FS,A,C)}}Ca.isString(b)||(b=b?"include":"omit");const u="credentials"in Request.prototype;c=new Request(p,{...y,signal:g,method:f.toUpperCase(),headers:r.normalize().toJSON(),body:F,duplex:"half",credentials:u?b:void 0});let s=await fetch(c);const d=Vw&&(h==="stream"||h==="response");if(Vw&&(n||d&&a)){const v={};["status","statusText","headers"].forEach(P=>{v[P]=s[P]});const T=Ca.toFiniteNumber(s.headers.get("content-length")),[A,C]=n&&MS(T,F2(IS(n),!0))||[];s=new Response(zS(s.body,FS,A,()=>{C&&C(),a&&a()}),v)}h=h||"text";let m=await R2[Ca.findKey(R2,h)||"text"](s,e);return!d&&a&&a(),await new Promise((v,T)=>{ES(v,T,{data:m,headers:wf.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:c})})}catch(u){throw a&&a(),u&&u.name==="TypeError"&&/fetch/i.test(u.message)?Object.assign(new Qs("Network Error",Qs.ERR_NETWORK,e,c),{cause:u.cause||u}):Qs.from(u,u&&u.code,e,c)}}),jw={http:YU,xhr:C$,fetch:D$};Ca.forEach(jw,(e,p)=>{if(e){try{Object.defineProperty(e,"name",{value:p})}catch{}Object.defineProperty(e,"adapterName",{value:p})}});const NS=e=>`- ${e}`,F$=e=>Ca.isFunction(e)||e===null||e===!1,RS={getAdapter:e=>{e=Ca.isArray(e)?e:[e];const{length:p}=e;let f,F;const K={};for(let k=0;k<p;k++){f=e[k];let w;if(F=f,!F$(f)&&(F=jw[(w=String(f)).toLowerCase()],F===void 0))throw new Qs(`Unknown adapter '${w}'`);if(F)break;K[w||"#"+k]=F}if(!F){const k=Object.entries(K).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let w=p?k.length>1?`since :
4
4
  `+k.map(NS).join(`
@@ -83,7 +83,7 @@
83
83
  * Vue 3 Carousel 0.3.1
84
84
  * (c) 2023
85
85
  * @license MIT
86
- */const Yd={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"}},Bz={itemsToShow:{default:Yd.itemsToShow,type:Number},itemsToScroll:{default:Yd.itemsToScroll,type:Number},wrapAround:{default:Yd.wrapAround,type:Boolean},throttle:{default:Yd.throttle,type:Number},snapAlign:{default:Yd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Yd.transition,type:Number},breakpoints:{default:Yd.breakpoints,type:Object},autoplay:{default:Yd.autoplay,type:Number},pauseAutoplayOnHover:{default:Yd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Yd.mouseDrag,type:Boolean},touchDrag:{default:Yd.touchDrag,type:Boolean},dir:{default:Yd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Yd.i18n,type:Object},settings:{default(){return{}},type:Object}};function LFe({config:e,slidesCount:p}){const{snapAlign:f,wrapAround:F,itemsToShow:K=1}=e;if(F)return Math.max(p-1,0);let k;switch(f){case"start":k=p-K;break;case"end":k=p-1;break;case"center":case"center-odd":k=p-Math.ceil((K-.5)/2);break;case"center-even":k=p-Math.ceil(K/2);break;default:k=0;break}return Math.max(k,0)}function BFe({config:e,slidesCount:p}){const{wrapAround:f,snapAlign:F,itemsToShow:K=1}=e;let k=0;if(f||K>p)return k;switch(F){case"start":k=0;break;case"end":k=K-1;break;case"center":case"center-odd":k=Math.floor((K-1)/2);break;case"center-even":k=Math.floor((K-2)/2);break;default:k=0;break}return k}function m8({val:e,max:p,min:f}){return p<f?e:Math.min(Math.max(e,f),p)}function zFe({config:e,currentSlide:p,slidesCount:f}){const{snapAlign:F,wrapAround:K,itemsToShow:k=1}=e;let w=p;switch(F){case"center":case"center-odd":w-=(k-1)/2;break;case"center-even":w-=(k-2)/2;break;case"end":w-=k-1;break}return K?w:m8({val:w,max:f-k,min:0})}function zz(e){return e?e.reduce((p,f)=>{var F;return f.type===t.Fragment?[...p,...zz(f.children)]:((F=f.type)===null||F===void 0?void 0:F.name)==="CarouselSlide"?[...p,f]:p},[]):[]}function g8({val:e,max:p,min:f=0}){return e>p?g8({val:e-(p+1),max:p,min:f}):e<f?g8({val:e+(p+1),max:p,min:f}):e}function OFe(e,p){let f;return p?function(...F){const K=this;f||(e.apply(K,F),f=!0,setTimeout(()=>f=!1,p))}:e}function DFe(e,p){let f;return function(...F){f&&clearTimeout(f),f=setTimeout(()=>{e(...F),f=null},p)}}function FFe(e="",p={}){return Object.entries(p).reduce((f,[F,K])=>f.replace(`{${F}}`,String(K)),e)}var NFe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Yd))),p=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},FFe(e.i18n.itemXofY,{currentSlide:p.value+1,slidesCount:f.value}))}}),RFe=t.defineComponent({name:"Carousel",props:Bz,setup(e,{slots:p,emit:f,expose:F}){var K;const k=t.ref(null),w=t.ref([]),n=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Yd));let r=Object.assign({},Yd),b;const y=t.ref((K=e.modelValue)!==null&&K!==void 0?K:0),g=t.ref(0),c=t.ref(0),a=t.ref(0),i=t.ref(0);let u,s;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",a),t.provide("minSlide",i),t.provide("slideWidth",n);function d(){b=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),v(r)}function m(){if(!b||!Object.keys(b).length)return;const ie=Object.keys(b).map(oe=>Number(oe)).sort((oe,ge)=>+ge-+oe);let se=Object.assign({},r);ie.some(oe=>{const ge=window.matchMedia(`(min-width: ${oe}px)`).matches;return ge&&(se=Object.assign(Object.assign({},se),b[oe])),ge}),v(se)}function v(ie){Object.entries(ie).forEach(([se,oe])=>h[se]=oe)}const T=DFe(()=>{m(),A()},16);function A(){if(!k.value)return;const ie=k.value.getBoundingClientRect();n.value=ie.width/h.itemsToShow}function C(){_.value<=0||(c.value=Math.ceil((_.value-1)/2),a.value=LFe({config:h,slidesCount:_.value}),i.value=BFe({config:h,slidesCount:_.value}),h.wrapAround||(y.value=m8({val:y.value,max:a.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",T,{passive:!0}),f("init")}),t.onUnmounted(()=>{s&&clearTimeout(s),u&&clearInterval(u),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const L={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},x=()=>{M.value=!1};function z(ie){["INPUT","TEXTAREA","SELECT"].includes(ie.target.tagName)||(P=ie.type==="touchstart",P||ie.preventDefault(),!(!P&&ie.button!==0||$.value)&&(L.x=P?ie.touches[0].clientX:ie.clientX,L.y=P?ie.touches[0].clientY:ie.clientY,document.addEventListener(P?"touchmove":"mousemove",D,!0),document.addEventListener(P?"touchend":"mouseup",N,!0)))}const D=OFe(ie=>{S.value=!0,E.x=P?ie.touches[0].clientX:ie.clientX,E.y=P?ie.touches[0].clientY:ie.clientY;const se=E.x-L.x,oe=E.y-L.y;I.y=oe,I.x=se},h.throttle);function N(){const ie=h.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,oe=Math.round(I.x/n.value+se)*ie;if(oe&&!P){const ge=_e=>{_e.stopPropagation(),window.removeEventListener("click",ge,!0)};window.addEventListener("click",ge,!0)}Y(y.value-oe),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",D,!0),document.removeEventListener(P?"touchend":"mouseup",N,!0)}function U(){!h.autoplay||h.autoplay<=0||(u=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ne()},h.autoplay))}function G(){u&&(clearInterval(u),u=null),U()}const $=t.ref(!1);function Y(ie){const se=h.wrapAround?ie:m8({val:ie,max:a.value,min:i.value});y.value===se||$.value||(f("slide-start",{slidingToIndex:ie,currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!0,g.value=y.value,y.value=se,s=setTimeout(()=>{if(h.wrapAround){const oe=g8({val:se,max:a.value,min:0});oe!==y.value&&(y.value=oe,f("loop",{currentSlideIndex:y.value,slidingToIndex:ie}))}f("update:modelValue",y.value),f("slide-end",{currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!1,G()},h.transition))}function ne(){Y(y.value+h.itemsToScroll)}function H(){Y(y.value-h.itemsToScroll)}const J={slideTo:Y,next:ne,prev:H};t.provide("nav",J),t.provide("isSliding",$);const ee=t.computed(()=>zFe({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const ie=h.dir==="rtl"?-1:1,se=ee.value*n.value*ie;return{transform:`translateX(${I.x-se}px)`,transition:`${$.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Q(){d(),m(),C(),A(),G()}Object.keys(Bz).forEach(ie=>{["modelValue"].includes(ie)||t.watch(()=>e[ie],Q)}),t.watch(()=>e.modelValue,ie=>{ie!==y.value&&Y(Number(ie))}),t.watch(_,C),f("before-init"),d();const le={config:h,slidesCount:_,slideWidth:n,next:ne,prev:H,slideTo:Y,currentSlide:y,maxSlide:a,minSlide:i,middleSlide:c};F({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:d,restartCarousel:Q,slideTo:Y,next:ne,prev:H,nav:J,data:le});const ce=p.default||p.slides,de=p.addons,pe=t.reactive(le);return()=>{const ie=zz(ce==null?void 0:ce(pe)),se=(de==null?void 0:de(pe))||[];ie.forEach((ve,xe)=>ve.props.index=xe);let oe=ie;if(h.wrapAround){const ve=ie.map((Te,Se)=>t.cloneVNode(Te,{index:-ie.length+Se,isClone:!0,key:`clone-before-${Se}`})),xe=ie.map((Te,Se)=>t.cloneVNode(Te,{index:ie.length+Se,isClone:!0,key:`clone-after-${Se}`}));oe=[...ve,...ie,...xe]}w.value=ie,_.value=Math.max(ie.length,1);const ge=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:h.mouseDrag?z:null,onTouchstartPassiveCapture:h.touchDrag?z:null},oe),_e=t.h("div",{class:"carousel__viewport"},ge);return t.h("section",{ref:k,class:{carousel:!0,"is-sliding":$.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:x},[_e,se,t.h(NFe)])}}}),Oz;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Oz||(Oz={}));var VFe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:p}){const f=t.inject("config",t.reactive(Object.assign({},Yd))),F=t.inject("currentSlide",t.ref(0)),K=t.inject("slidesToScroll",t.ref(0)),k=t.inject("isSliding",t.ref(!1)),w=()=>e.index===F.value,n=()=>e.index===F.value-1,_=()=>e.index===F.value+1,h=()=>{const r=Math.floor(K.value),b=Math.ceil(K.value+f.itemsToShow-1);return e.index>=r&&e.index<=b};return()=>{var r;return t.h("li",{style:{width:`${100/f.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":w(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":k.value},"aria-hidden":!h()},(r=p.default)===null||r===void 0?void 0:r.call(p))}}});const jFe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},UFe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),$Fe={class:"gsc-carousel"},GFe={key:0},HFe=UFe(()=>t.createElementVNode("div",null,"no hay",-1)),qFe=[HFe],WFe={class:"gsc-carousel__2d__slides"},ZFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XFe=["fill"],YFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KFe=["fill"],JFe={class:"gsc-carousel__2d__navigation"},QFe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eNe=["stroke"],tNe={key:1,class:"gsc-carousel__2d__navigation__pagination"},rNe=["onClick"],nNe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aNe=["stroke"],iNe={__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(p=>p 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:p,emit:f}){const F=e;t.useCssVars(a=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const K=t.ref(null),k=t.ref({}),w=t.ref(0),n=t.ref(!1);t.watch(K,a=>{a&&n.value?(n.value=!1,_(F.items)):a&&a.slideTo&&a.slideTo(w.value)},{deep:!0}),t.watch(()=>F.currentItemIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.defaultItemByIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.items,a=>{K.value?_(a):n.value=!0},{immediate:!0});function _(a){a&&a.length&&K.value&&setTimeout(()=>{if(F.defaultItemByProp){const i=F.items.findIndex(u=>u[F.defaultItemByProp.propName]===F.defaultItemByProp.value);i!==-1?(w.value=i,k.value=a[i]):(w.value=0,k.value=a[0])}else w.value=F.defaultItemByIndex,k.value=a[F.defaultItemByIndex];K.value.slideTo&&K.value.slideTo(w.value),k.value&&w.value===0&&f("input",{selectedItem:k.value,selectedItemIndex:w.value})},500)}function h(){K.value&&K.value.next()}function r(){K.value&&K.value.prev()}function b(){K.value&&K.value.updateSlideWidth()}function y(a){K.value&&K.value.slideTo(a)}function g(a){K.value.slideTo(a)}function c(a){const i=a.slidingToIndex<0?F.items.length-1:a.slidingToIndex===F.items.length?0:a.slidingToIndex;w.value=i,k.value=F.items[i],f("update:currentItemIndex",i),f("input",{selectedItem:k.value,selectedItemIndex:w.value})}return p({prev:r,next:h,updateSlideWidth:b,slideTo:y}),(a,i)=>(t.openBlock(),t.createElementBlock("div",$Fe,[F.is3d?(t.openBlock(),t.createElementBlock("div",GFe,qFe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",WFe,[t.createVNode(t.unref(RFe),{ref_key:"carousel2d",ref:K,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:c},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createBlock(t.unref(VFe),{key:s},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=u=>K.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",ZFe,[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,XFe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=u=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",YFe,[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,KFe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",JFe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=u=>r())},[(t.openBlock(),t.createElementBlock("svg",QFe,[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:F.arrowsColor},null,8,eNe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",tNe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${F.navigationHeight}px`,width:`${w.value===s?F.navigationActiveWidth:F.navigationActiveWidth/2}px`,borderRadius:`${F.navigationBorderRadius}px`,backgroundColor:`${w.value===s?F.navigationActiveColor:F.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>g(s)},null,12,rNe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=u=>K.value.next())},[(t.openBlock(),t.createElementBlock("svg",nNe,[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:F.arrowsColor},null,8,aNe)]))])):t.createCommentVNode("",!0)])],2))]))}},oNe=jFe(iNe,[["__scopeId","data-v-54620d25"]]),y8=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f};let Dz=null;const v8={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)Dz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Dz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Fz=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},Nz=v8.setup;v8.setup=Nz?(e,p)=>(Fz(),Nz(e,p)):Fz;const Zx=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),sNe=Zx(()=>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)),lNe=[sNe],cNe=Zx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),uNe=["src"],dNe=Zx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),hNe=Zx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),pNe=["src"],fNe=["src"],mNe={class:"text-container"};function gNe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},lNe,2),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),cNe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,uNe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),dNe,hNe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,pNe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,fNe),t.createElementVNode("div",mNe,[t.createElementVNode("span",{class:t.normalizeClass(k.secondline)},t.toDisplayString(f.score),3),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const yNe=y8(v8,[["render",gNe],["__scopeId","data-v-fd9d1e65"]]);let Rz=null;const _8={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)Rz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Rz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vz=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},jz=_8.setup;_8.setup=jz?(e,p)=>(Vz(),jz(e,p)):Vz;const Xx=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),vNe=Xx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),_Ne=Xx(()=>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)),bNe=[_Ne],xNe={class:"player-container"},wNe=["src"],kNe=["src"],SNe=["src"],TNe={class:"container-score"},CNe=["src"],ANe=["src"],ENe=["src"],MNe=Xx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),INe=Xx(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function PNe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[vNe,t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},bNe,2),t.createElementVNode("div",xNe,[t.createElementVNode("div",{class:t.normalizeClass(k.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(k.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(k.matchboxContainer)},t.toDisplayString(f.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(k.seasonnameContainer)},t.toDisplayString(f.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.date),3)],2),f.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(k.texttitle)},t.toDisplayString(f.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(k.texttitle2)},t.toDisplayString(f.nameCategory),3)),f.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:f.photoProfile,class:t.normalizeClass(k.playerimage)},null,10,wNe)):t.createCommentVNode("",!0),f.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:f.photoProfile,alt:""},null,8,kNe)):t.createCommentVNode("",!0),f.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:f.photoProfile,class:"img-number"},null,8,SNe)):t.createCommentVNode("",!0),t.createElementVNode("div",TNe,[t.createElementVNode("div",{class:t.normalizeClass(k.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(k.teamname)},t.toDisplayString(f.nameHomeTeam),3),t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,CNe),t.createElementVNode("span",{class:t.normalizeClass(k.teamscore)},t.toDisplayString(f.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(k.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(k.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(k.teamscore)},t.toDisplayString(f.scoreAway),3),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,ANe),t.createElementVNode("span",{class:t.normalizeClass(k.teamname)},t.toDisplayString(f.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,ENe),MNe,INe],2)}const LNe={components:{GSCCarousel:oNe,GSCThumbnailHighlightGameHistoric:yNe,GSCThumbnailHighlightGamePlayer:y8(_8,[["render",PNe],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,p){return e.home_team===(p||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const p=new Date(e),f=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][p.getUTCDay()],F=p.getUTCDate(),K=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][p.getUTCMonth()];return`${f} ${F} de ${K}`}else return""},onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,42,54]:p=e.data.category:p=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?p=[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]:p=e.data.category:p=[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?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.data.category!=0?p=e.data.category:p=[607,608,12,55,54,35,14,52,15,53,466,477];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:f,advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const p=PFe.create({headers:{Authorization:`${this.token}`}});var f=[],F={};if(e.type=="player"){const K=await p.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(K.data.seasons[e.season])for(let k=0;k<K.data.seasons[e.season].games_played.length;k++)F={playingAs:this.getPlayingAs(K.data.seasons[e.season].games_played[k],K.data.team_id),category:0,player_id:K.data.player_id,position_id:K.data.position_id,color:K.data.info_thumbnails.colors.background_color,photo_profile:K.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.player_in_action[0]:K.data.info_thumbnails.player_profile,team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].home_team+".png",player_name:K.data.seasons[e.season].games_played[k].home_team_acronym+" "+K.data.seasons[e.season].games_played[k].home_team_score+" : "+K.data.seasons[e.season].games_played[k].visiting_team_score+" "+K.data.seasons[e.season].games_played[k].visiting_team_acronym,team_id:K.data.team_id,has_relevants:K.data.seasons[e.season].games_played[k].has_relevants,team_id_b:K.data.seasons[e.season].games_played[k].home_team,season_id:K.data.seasons[e.season].games_played[k].season_id,name:K.data.seasons[e.season].games_played[k].player_name,seasonname:K.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:K.data.seasons[e.season].games_played[k].game_id,match:K.data.seasons[e.season].games_played[k].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(K.data.seasons[e.season].games_played[k].date),scorehome:K.data.seasons[e.season].games_played[k].home_team_score,scoreaway:K.data.seasons[e.season].games_played[k].visiting_team_score,hometeamacronym:K.data.seasons[e.season].games_played[k].home_team_acronym,visitingteamacronym:K.data.seasons[e.season].games_played[k].visiting_team_acronym,background:K.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.background_player_in_action[0]:K.data.info_thumbnails.player_profile,backgroundhome:K.data.seasons[e.season].games_played[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.seasons[e.season].games_played[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].visiting_team+".png",total:K.data.seasons[e.season].games_played[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.seasons[e.season].games_played[k].home_team+"_"+K.data.seasons[e.season].games_played[k].season_id+"_r1.jpg"},f.push(F);else for(let k=0;k<K.data.national_seasons[e.season].games_played.length;k++)F={playingAs:this.getPlayingAs(K.data.national_seasons[e.season].games_played[k],K.data.team_id),category:0,player_id:K.data.player_id,position_id:K.data.position_id,color:K.data.info_thumbnails.colors.background_color,photo_profile:K.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.player_in_action[0]:K.data.info_thumbnails.player_profile,team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].home_team+".png",player_name:K.data.national_seasons[e.season].games_played[k].home_team_acronym+" "+K.data.national_seasons[e.season].games_played[k].home_team_score+" : "+K.data.national_seasons[e.season].games_played[k].visiting_team_score+" "+K.data.national_seasons[e.season].games_played[k].visiting_team_acronym,team_id:K.data.team_id,has_relevants:K.data.national_seasons[e.season].games_played[k].has_relevants,team_id_b:K.data.national_seasons[e.season].games_played[k].home_team,season_id:K.data.national_seasons[e.season].games_played[k].season_id,name:K.data.national_seasons[e.season].games_played[k].player_name,seasonname:K.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:K.data.national_seasons[e.season].games_played[k].game_id,match:K.data.national_seasons[e.season].games_played[k].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(K.data.national_seasons[e.season].games_played[k].date),scorehome:K.data.national_seasons[e.season].games_played[k].home_team_score,scoreaway:K.data.national_seasons[e.season].games_played[k].visiting_team_score,hometeamacronym:K.data.national_seasons[e.season].games_played[k].home_team_acronym,visitingteamacronym:K.data.national_seasons[e.season].games_played[k].visiting_team_acronym,background:K.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.background_player_in_action[0]:K.data.info_thumbnails.player_profile,backgroundhome:K.data.national_seasons[e.season].games_played[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.national_seasons[e.season].games_played[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].visiting_team+".png",total:K.data.national_seasons[e.season].games_played[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.national_seasons[e.season].games_played[k].home_team+"_"+K.data.national_seasons[e.season].games_played[k].season_id+"_r1.jpg"},f.push(F)}else if(e.type=="historic"){const K="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===K)return;this.lastHistoricGamesUrl=K;const k=await p.get(K);for(let n=0;n<k.data.plays.length;n++)F={teamId:k.data.plays[n][2],player:"Jornada "+k.data.plays[n][6],player_name:k.data.plays[n][4],season_id:k.data.plays[n][31],game_id:k.data.plays[n][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},f.length>0?this.privilegesTeamId==0?!f.filter(_=>_.game_id===k.data.plays[n][3]).length>0&&f.push(F):!f.filter(_=>_.game_id===k.data.plays[n][3]).length>0&&k.data.plays[n][2]===this.privilegesTeamId&&f.push(F):(this.privilegesTeamId==0||k.data.plays[n][2]===this.privilegesTeamId)&&f.push(F);const w=k.data.thumbnails;for(let n=0;n<f.length;n++){const _=Math.floor(Math.random()*w[f[n].game_id].info_thumbnails.images.background_default_games.length);f[n].background="https://golstatsimages.blob.core.windows.net/images-library/"+w[f[n].game_id].info_thumbnails.images.background_default_games[_],f[n].backgroundhome=w[f[n].game_id].info_thumbnails.home_colors.background_color,f[n].backgroundaway=w[f[n].game_id].info_thumbnails.away_colors.background_color,f[n].logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+w[f[n].game_id].info_thumbnails.away_colors.team_id+".png",f[n].logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+w[f[n].game_id].info_thumbnails.home_colors.team_id+".png",f[n].match=w[f[n].game_id].matchday_name.replace("Matchday","Jor"),f[n].playingAs=w[f[n].game_id].info_thumbnails.home_colors.team_id===f[n].teamId?1:2,f[n].seasonname=w[f[n].game_id].season_name,f[n].score=w[f[n].game_id].score[0]+" - "+w[f[n].game_id].score[1],f[n].category=0}}else{const K=await p.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let k=0;k<K.data.seasons[e.season].games.length;k++){const w=Math.floor(Math.random()*K.data.seasons[e.season].games[k].info_thumbnails.images.background_default_games.length);F={playingAs:this.getPlayingAs(K.data.seasons[e.season].games[k],K.data.team_id),category:0,game_id:K.data.seasons[e.season].games[k].game_id,photo_profile:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].visiting_team+".png",team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].home_team+".png",player_name:K.data.seasons[e.season].games[k].home_team_acronym+" "+K.data.seasons[e.season].games[k].home_team_score+" : "+K.data.seasons[e.season].games[k].visiting_team_score+" "+K.data.seasons[e.season].games[k].visiting_team_acronym,team_id_b:K.data.seasons[e.season].games[k].home_team,team_id:K.data.team_id,season_id:K.data.seasons[e.season].games[k].season_id,name:"",seasonname:K.data.seasons[e.season].name,match:K.data.seasons[e.season].games[k].matchday_name.replace("Matchday","Jor"),score:K.data.seasons[e.season].games[k].home_team_score+" : "+K.data.seasons[e.season].games[k].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.seasons[e.season].games[k].info_thumbnails.images.background_default_games[w],backgroundhome:K.data.seasons[e.season].games[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.seasons[e.season].games[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].visiting_team+".png",total:K.data.seasons[e.season].games[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.seasons[e.season].games[k].home_team+"_"+K.data.seasons[e.season].games[k].season_id+"_r1.jpg"},f.push(F)}}this.printData=f,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const p of e)this.highlightsWidth=p.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},BNe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function zNe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return k.printDataFiltered.length>0&&f.canPlayVideos?(t.openBlock(),t.createElementBlock("div",BNe,[t.createVNode(_,t.mergeProps(k.carouselProps,{items:k.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:h})=>[f.data.type=="team"||f.data.type=="historic"?(t.openBlock(),t.createBlock(w,{key:0,items:h,"color-background-home":h.backgroundhome,"color-background-away":h.backgroundaway,"logo-home":h.logohome,"logo-away":h.logoaway,background:h.background,matchday:h.match,onOnclickPlayVideos:r=>k.onclickPlayVideos({data:h,type:1}),"season-name":h.seasonname,score:h.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":h.name,"type-style":"game","color-background-home":h.backgroundhome,"color-background-away":h.backgroundaway,"type-img":"0",date:h.date,"season-name":h.seasonname,matchday:h.match,background:h.background,"name-home-team":h.hometeamacronym,"name-away-team":h.visitingteamacronym,"name-category":f.title,onOnclickPlayVideos:r=>k.onclickPlayVideos({data:h,type:2}),"logo-away":h.logoaway,"logo-home":h.logohome,"score-home":h.scorehome,"photo-profile":h.photo_profile,"score-away":h.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 ONe=y8(LNe,[["render",zNe]]),zAt="",OAt="",DAt="",DNe={components:{GSCSlider:sv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){const p=[1,2,3];let f={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:p,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",f)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const p=Math.round(e*10)/10;return Number.isInteger(p)?p.toString()+"%":p.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const p=Math.round(e*10)/10;return Number.isInteger(p)?p.toString()+"%":p.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const p=e.split(/(\*.*?\*)/g).filter(K=>K.trim()!=="");let f=Math.ceil(p.length/2),F="";return p.forEach((K,k)=>{k===f&&(F+="<br/>"),K.startsWith("*")&&K.endsWith("*")?F+=`<span class="text-bold-prominent">${K.slice(1,-1)}</span>`:K.trim()!==""&&(F+=`<span class="text-prominent">${K}</span>`)}),F},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=f.data.data,this.dataProminentAll=f.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=f.data.data,this.dataProminentAll=f.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},FNe=e=>(t.pushScopeId("data-v-9f6d5e8e"),e=e(),t.popScopeId(),e),NNe={class:"data-prominent-game"},RNe={class:"title-data"},VNe={class:"item-data-text"},jNe=["innerHTML"],UNe={class:"contain-stats-control"},$Ne={key:0,class:"title-total"},GNe={key:1,class:"item-total"},HNe=["onClick"],qNe={"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"},WNe=[FNe(()=>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 ZNe(e,p,f,F,K,k){const w=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",NNe,[t.createElementVNode("div",RNe,[f.game.game_status!=4||f.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(w,{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(K.dataProminent,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://golstatsimages.blob.core.windows.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",VNe,[t.createElementVNode("div",{class:"container-text",innerHTML:k.textoConNegritas(n.description)},null,8,jNe),t.createElementVNode("div",UNe,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",$Ne,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",GNe,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],64))])):t.createCommentVNode("",!0),f.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:h=>k.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",qNe,WNe))],12,HNe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const XNe=ao(DNe,[["render",ZNe],["__scopeId","data-v-9f6d5e8e"]]),NAt="",YNe={components:{GSCCheckbox:z1},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...Xh("nextGeneral",["gameForAnalysis","seasonId"]),...Bu("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 p=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=p.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const F in f.data.teams)f.data.teams.hasOwnProperty(F)&&(this.arrTeams[F]=f.data.teams[F])}catch(p){return Promise.reject(p)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const p=typeof e=="string"?parseFloat(e):e;return typeof p=="number"&&!isNaN(p)?p%1===0?p:p%1===0?Math.floor(p):p: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,p,f){if(!p.game_id)return this.objectZeroValues;const F=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,K=e[f].accomplished.avgPostGame/F;return e[f].accomplished.avgPostGame?{numberValue:K<1?K*100:K,numberBarPercent:e[f].accomplished.avgPostGame/F}: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)}},dy=e=>(t.pushScopeId("data-v-f611e6a0"),e=e(),t.popScopeId(),e),KNe={key:0,class:"field-posesion-prominent"},JNe={key:0,class:"title"},QNe={class:"info-data-item"},eRe={class:"item-indicador"},tRe={class:"item-indicador-value"},rRe={key:0},nRe=dy(()=>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)),aRe={key:0,class:"inactiveInfo"},iRe={class:"info-data-item"},oRe={class:"item-indicador"},sRe={class:"item-indicador-value"},lRe=dy(()=>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)),cRe={class:"info-data-item"},uRe={class:"item-indicador"},dRe={class:"item-indicador-value"},hRe={key:0},pRe=dy(()=>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)),fRe={class:"info-data-item"},mRe={class:"item-indicador"},gRe={class:"item-indicador-value"},yRe=dy(()=>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)),vRe={key:0,class:"inactiveInfo"},_Re={class:"info-data-item"},bRe={class:"item-indicador"},xRe={class:"item-indicador-value"},wRe=dy(()=>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)),kRe={class:"info-data-item"},SRe={class:"item-indicador"},TRe={class:"item-indicador-value"},CRe=dy(()=>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 ARe(e,p,f,F,K,k){const w=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",KNe,[f.widthSection>760?(t.openBlock(),t.createElementBlock("div",JNe,"Porcentajes")):t.createCommentVNode("",!0),f.game.game_status==1||f.game.game_status==0||f.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>760?"field-container":f.widthSection>520?"field-container-movil":f.widthSection>440?"field-container-movil-2":f.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>1020?"time-show":f.widthSection>920?"time-show-table-xl":f.widthSection>880?"time-show-table-xl-2":f.widthSection>820?"time-show-table-xl-3":f.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(w,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":k.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>1020?"field-data-container":f.widthSection>920?"field-data-container-xl":f.widthSection>880?"field-data-container-xl-2":f.widthSection>820?"field-data-container-xl-3":f.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+f.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",QNe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",eRe,[t.createElementVNode("div",tRe,[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[k.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",rRe,t.toDisplayString(k.deleteDecimalZero(k.formatNumbers(k.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),nRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.homeTeam.acronym),3)],2)])],2),K.areInactiveVisible&&K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",aRe,[t.createElementVNode("div",iRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",oRe,[t.createElementVNode("div",sRe,t.toDisplayString(K.dataPosession.active_time.inactive_time),1),lRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")},[f.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(K.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+f.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",cRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",uRe,[t.createElementVNode("div",dRe,[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[k.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",hRe,t.toDisplayString(k.deleteDecimalZero(k.formatNumbers(k.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),pRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[K.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>760?"field-container":f.widthSection>520?"field-container-movil":f.widthSection>440?"field-container-movil-2":f.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[K.arrTeams[f.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>1020?"time-show":f.widthSection>920?"time-show-table-xl":f.widthSection>880?"time-show-table-xl-2":f.widthSection>820?"time-show-table-xl-3":f.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(w,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":k.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>1020?"field-data-container":f.widthSection>920?"field-data-container-xl":f.widthSection>880?"field-data-container-xl-2":f.widthSection>820?"field-data-container-xl-3":f.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+f.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",fRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",mRe,[t.createElementVNode("div",gRe,[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].home),1)],64))],64))]),yRe]),f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),K.areInactiveVisible&&K.arrTeams[f.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",vRe,[t.createElementVNode("div",_Re,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",bRe,[t.createElementVNode("div",xRe,t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.inactive_time),1),wRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")},[f.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(K.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+f.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",kRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",SRe,[t.createElementVNode("div",TRe,[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].home),1)],64))],64))]),CRe]),f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const ERe=ao(YNe,[["render",ARe],["__scopeId","data-v-f611e6a0"]]),RAt="",b8={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(p){throw new Error(p)}}}},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)}}},Uz=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},$z=b8.setup;b8.setup=$z?(e,p)=>(Uz(),$z(e,p)):Uz;const MRe={key:0,class:"text-left"},IRe=["width","src"],PRe=["checked"],LRe=["width","src"],BRe={key:3,class:"text-right"};function zRe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(k.customText)},[f.textOptionLeft!=""&&!f.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MRe,t.toDisplayString(f.textOptionLeft),1)):t.createCommentVNode("",!0),f.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:f.widthIcons,src:f.iconA},null,8,IRe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:p[0]||(p[0]=(...w)=>k.handleSwitchChange&&k.handleSwitchChange(...w)),checked:K.OptionDefault},null,40,PRe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([k.customStyle,{"--circle-color":f.circleColorSwitch}])},null,4),f.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:f.widthIcons,src:f.iconB},null,8,LRe)):t.createCommentVNode("",!0),f.textOptionRight!=""&&!f.hiddenLabels?(t.openBlock(),t.createElementBlock("span",BRe,t.toDisplayString(f.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Gz=ao(b8,[["render",zRe],["__scopeId","data-v-62d6b055"]]),VAt="";let Hz=null;const x8={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Hz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Hz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},qz=()=>{t.useCssVars(e=>({f7da229a:e.colorBackgroundHome+"45","5c937204":e.colorBackgroundAway+"45","6dbbe2d2":e.colorBackgroundHome,"6dc206b4":e.colorBackgroundAway}))},Wz=x8.setup;x8.setup=Wz?(e,p)=>(qz(),Wz(e,p)):qz;const Yx=e=>(t.pushScopeId("data-v-4f4f5686"),e=e(),t.popScopeId(),e),ORe=[Yx(()=>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))],DRe=Yx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),FRe=["src"],NRe=Yx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),RRe=Yx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),VRe=["src"],jRe=["src"],URe={class:"text-container"};function $Re(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[f.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},ORe,2)):t.createCommentVNode("",!0),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),DRe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,FRe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),NRe,RRe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,VRe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,jRe),t.createElementVNode("div",URe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const GRe=ao(x8,[["render",$Re],["__scopeId","data-v-4f4f5686"]]),UAt="";let Zz=null;const HRe={components:{GSCThumbnailHighlightGameHistoric:GRe},props:{game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,54]:p=e.data.category:e.data.category==0?p=[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]:p=e.data.category:e.type==3?e.data.category==0?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.data.category!=0?p=e.data.category:this.titleCard=="RESUMEN"?p=[607,608,12,55,54,35,14,52,15,53,466,477]:p=[12,55,54,35];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:f,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const p=wu.create({headers:{Authorization:`${this.token}`}}),f=await p.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),F=await p.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=F.data.tournament_id;const K=f.data.games.findIndex(w=>w.game_id===this.game.gameId);this.gameInfo=f.data.games[K];const k=await p.get(e);this.showHighlight=k.data==""?!1:k.data.plays.length>0,this.showHighlightGoals=k.data==""?!1:k.data.plays.filter(w=>w[0]===12||w[0]===55||w[0]===54||w[0]===35).length>0,this.item.category=0,this.item.game_id=k.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].score[0]+" - "+k.data.thumbnails[k.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=k.data.thumbnails[k.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+k.data.thumbnails[k.data.game_id].home_team+".png":"",this.item.logoaway=k.data.thumbnails[k.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+k.data.thumbnails[k.data.game_id].visiting_team+".png":"",this.item.background=k.data.thumbnails[k.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+k.data.thumbnails[k.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)Zz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Zz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},qRe={class:"highlights-prominent-game",ref:"gamesContainer"},WRe={class:"video-partido-container__highlight"};function ZRe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",qRe,[t.withDirectives(t.createElementVNode("div",WRe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(K.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[K.item.background!=""?(t.openBlock(),t.createBlock(w,{key:0,"color-background-home":K.item.backgroundhome,"color-background-away":K.item.backgroundaway,"logo-home":K.item.logohome,"logo-away":K.item.logoaway,"is-live":!0,"title-category":f.titleCard,"can-play-videos":f.canPlayVideos,background:K.item.background,matchday:K.item.match,"season-name":K.item.seasonname,onOnclickPlayVideos:p[0]||(p[0]=n=>k.onclickPlayVideos({data:K.item,type:1})),score:K.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,f.titleCard=="RESUMEN"&&f.canPlayVideos&&K.showHighlight||f.titleCard=="GOLES"&&f.canPlayVideos&&K.showHighlightGoals]])],512)}const XRe=ao(HRe,[["render",ZRe],["__scopeId","data-v-9989a5fd"]]),$At="";let Xz=null;const w8={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Xz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Xz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Yz=()=>{t.useCssVars(e=>({"0079ccca":e.colorBackgroundHome+"45","8a32804a":e.colorBackgroundAway+"45","0939ef2a":e.colorBackgroundHome,"0936dd39":e.colorBackgroundAway}))},Kz=w8.setup;w8.setup=Kz?(e,p)=>(Yz(),Kz(e,p)):Yz;const hy=e=>(t.pushScopeId("data-v-3c641234"),e=e(),t.popScopeId(),e),YRe=[hy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),hy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],KRe=[hy(()=>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))],JRe=hy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),QRe=["src"],eVe=hy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),tVe=hy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),rVe=["src"],nVe=["src"],aVe={class:"text-container"};function iVe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[f.isLive&&f.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.gamesContainerWidth>340?K.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},YRe,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},KRe,2),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),JRe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,QRe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),eVe,tVe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,rVe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,nVe),t.createElementVNode("div",aVe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const oVe=ao(w8,[["render",iVe],["__scopeId","data-v-3c641234"]]),WAt="";let Jz=null;const sVe={components:{GSCThumbnailHighlightGameHistoricLive:oVe},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,54]:p=e.data.category:e.data.category==0?p=[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]:p=e.data.category:e.type==3?e.data.category==0?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.type==4?p=[12,55,"35_r","54_r"]:e.data.category!=0?p=e.data.category:this.titleCard=="RESUMEN"?p=[607,608,12,55,54,35,14,52,15,53,466,477]:p=[12,55,54,35];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:f,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},async getLiveHighlights(){const p=await wu.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);p.data!=""&&(this.showHighlight=p.data==""?!1:p.data.plays.length>0,this.showHighlightGoals=p.data==""?!1:p.data.plays.filter(f=>f[0]===12||f[0]===55||f[0]===54||f[0]===35).length>0,this.item.category=0,this.item.game_id=p.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=p.data.thumbnails[p.data.game_id].score,this.item.backgroundhome=p.data.thumbnails[p.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=p.data.thumbnails[p.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+p.data.thumbnails[p.data.game_id].home_team+".png",this.item.logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+p.data.thumbnails[p.data.game_id].visiting_team+".png",this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+p.data.thumbnails[p.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals))},setUpResizeObserver(){if(window.ResizeObserver)Jz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),Jz.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},lVe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},cVe={class:"video-partido-container__highlight"},uVe={class:"video-partido-container__image"};function dVe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",lVe,[t.withDirectives(t.createElementVNode("div",cVe,[t.createCommentVNode("",!0),t.createElementVNode("div",uVe,[t.createVNode(w,{"is-live":!0,game:f.game,"color-background-home":K.item.backgroundhome,"color-background-away":K.item.backgroundaway,"logo-home":K.item.logohome,"logo-away":K.item.logoaway,"title-category":f.titleCard,background:K.item.background,onOnclickPlayVideos:p[1]||(p[1]=n=>k.onclickPlayVideos({data:K.item,type:1})),matchday:K.item.match,"season-name":K.item.seasonname,score:K.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,f.titleCard=="RESUMEN"&&f.canPlayVideos&&K.showHighlight||f.titleCard=="GOLES"&&f.canPlayVideos&&K.showHighlightGoals]])],512)}const hVe=ao(sVe,[["render",dVe],["__scopeId","data-v-87da3f19"]]),k8="/play-icn.svg",ZAt="",pVe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function fVe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",k.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",k.showTooltip]),onClick:p[1]||(p[1]=(...w)=>k.tooltipClick&&k.tooltipClick(...w))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:p[0]||(p[0]=(...w)=>k.closeClick&&k.closeClick(...w))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const mVe=ao(pVe,[["render",fVe],["__scopeId","data-v-b5f07af8"]]),XAt="",gVe=["id"],yVe={class:"game-event__minute"},vVe={class:"game-event__icon"},_Ve=["src"],bVe="/images/events/",xVe=ao({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:p}){const f=e,F=t.computed(()=>({"--icon-bottom":f.gameEvent.isHomeTeam?"30px":"-5px","--border-color":f.gameEvent.isSelected?"#336dff":"#747c83","--background-color":f.gameEvent.isSelected?"#336dff":"#0d1d29"})),K=t.computed(()=>{let w="";return f.gameEvent.category_id===18?w="icn-tiros-de-esquina.svg":f.gameEvent.category_id===20?w="icn-tiro-a-porteria.svg":f.gameEvent.category_id===10?w="icn-cambio.svg":f.gameEvent.category_id===21?w="icn-falta.svg":f.gameEvent.category_id===27?w="atajada.svg":f.gameEvent.category_id===17?w="fuera-de-lugar.svg":f.gameEvent.category_id===4||f.gameEvent.category_id===13||f.gameEvent.category_id===14||f.gameEvent.category_id===16||f.gameEvent.category_id===6&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===5&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===1&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===2&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===3&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===7&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===12&&f.gameEvent.event_type_id===1?w="gol.svg":f.gameEvent.category_id==30||f.gameEvent.category_id==31||f.gameEvent.category_id==32||f.gameEvent.category_id==33||f.gameEvent.category_id==34||f.gameEvent.category_id==35||f.gameEvent.category_id==36||f.gameEvent.category_id==37||f.gameEvent.category_id==38||f.gameEvent.category_id==39||f.gameEvent.category_id==40?w="var.png":f.gameEvent.category_id===28?w="tiempo-agregado.svg":f.gameEvent.category_id===26?w="jugada-peligrosa.svg":f.gameEvent.category_id===22?w="penal-marcado.svg":f.gameEvent.category_id===15||f.gameEvent.category_id===23?w="penal-fallado.svg":f.gameEvent.category_id===8?w="icn-tarjeta-amarilla.svg":f.gameEvent.category_id===9?w="icn-tarjeta-roja.svg":w="generic.svg",`${bVe}${w}`});function k(){p("click-event",f.gameEvent)}return(w,n)=>(t.openBlock(),t.createElementBlock("div",{id:f.gameEvent.play_id,class:"game-event",onClick:k,style:t.normalizeStyle(F.value)},[t.createElementVNode("div",yVe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",vVe,[t.createElementVNode("img",{src:K.value},null,8,_Ve)])],12,gVe))}},[["__scopeId","data-v-f972a06c"]]),KAt="",wVe=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),kVe={class:"events-line"},SVe={class:"events-line__events"},TVe=wVe(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),CVe=ao({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:p}){function f(F){p("click-event",F)}return(F,K)=>(t.openBlock(),t.createElementBlock("div",kVe,[t.createVNode(t.unref(sv),{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",SVe,[TVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,k=>(t.openBlock(),t.createBlock(xVe,{key:k.id,"game-event":k,onClickEvent:f},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),QAt="",Xv=e=>(t.pushScopeId("data-v-179dec1c"),e=e(),t.popScopeId(),e),AVe={class:"tooltip-data"},EVe=["src"],MVe=Xv(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),IVe=Xv(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),PVe={class:"game-events__team-logo"},LVe=["src"],BVe={class:"game-events__event-info"},zVe={key:0,class:"game-events__event-info__line"},OVe={key:1,class:"game-events__event-info__info"},DVe={class:"game-events__event-info__info__player-photo"},FVe={key:0,class:"game-events__event-info__info__player-photo__img"},NVe=["src"],RVe={class:"game-events__event-info__info__event-name"},VVe={class:"game-events__event-info__info__player-name"},jVe=[Xv(()=>t.createElementVNode("img",{src:k8,alt:""},null,-1))],UVe=Xv(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),$Ve={class:"game-events__events"},GVe={class:"game-events__team-logo"},HVe=["src"],qVe={class:"game-events__event-info"},WVe={key:0,class:"game-events__event-info__line"},ZVe={key:1,class:"game-events__event-info__info"},XVe={class:"game-events__event-info__info__player-photo"},YVe={key:0,class:"game-events__event-info__info__player-photo__img"},KVe=["src"],JVe={class:"game-events__event-info__info__event-name"},QVe={class:"game-events__event-info__info__player-name"},eje=[Xv(()=>t.createElementVNode("img",{src:k8,alt:""},null,-1))],tje="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",rje=ao({__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:p}){const f=e;let F=null,K=0;const k=t.ref([]),w=t.ref(new Map),n=t.ref(""),_=t.ref(null),h=t.ref({visible:!1,link:""}),r=t.ref(new Set),b=t.ref(0),y=t.computed(()=>f.game.is_live||f.game.game_status===0);t.watch(()=>f.game,(T,A)=>{T&&T.gameId!==K?(r.value.clear(),K=T.gameId,a(),c(T.gameId,T.is_live&&T.game_status===4)):T&&T.is_live&&(!A||!A.is_live)?c(T.gameId,!0):T&&!T.is_live&&A.is_live&&a()},{deep:!0,immediate:!0}),t.watch(()=>n.value,(T,A)=>{if(T!==A){const C=w.value.get(A),P=w.value.get(T);if(C&&(C.isSelected=!1),P){if(!P.playerShortName){const[L,E]=P.player_name.split(","),I=L.split(" ");let M="";for(const S of I)if(M+=` ${S}`,S.length>3)break;P.playerShortName=E&&L?`${E.trim().charAt(0)}.${M}`:""}P.isSelected=!0,_.value=P}}});function g(T){F=setInterval(()=>{c(T)},1e3*60*f.gameEventsIntervalMinutes)}async function c(T,A=!1){try{let C=await s(T),P=!1;T!==b.value&&(k.value=[],w.value=new Map,n.value="",r.value.clear(),b.value=T);let L=C.filter(E=>{const I=r.value.has(E.play_id);return I||r.value.add(E.play_id),!I});if(L){L=L.reduce((I,M)=>(P=M.game_finished,M.team_id&&(M.isHomeTeam=M.team_id===f.game.homeTeam.team_id,I.push(M),w.value.set(M.play_id,M)),I),[]);const E=[...k.value];i(L).forEach(I=>{y.value?E.unshift(I):E.push(I)}),k.value=y.value?i(E).reverse():i(E)}k.value&&k.value.length&&(y.value||!n.value&&k.value.length)&&(n.value=k.value[0].play_id),A&&!P?g(T):P&&a()}catch(C){console.error(C)}}function a(){F&&(clearInterval(F),F=null)}function i(T){return T.sort((A,C)=>u(A.matchlapse)+Number(A.minute)-(u(C.matchlapse)+Number(C.minute)))}function u(T){let A=0;switch(T){case 1:A=0;break;case 2:A=45;break;case 3:A=90;break;case 4:A=105;break;case 5:A=120;break}return A}async function s(T){try{const C=(await wu.get(`${tje}${T}/timeline`,{headers:{Authorization:f.token}})).data;return C?C.plays||[]:[]}catch(A){throw new Error(A)}}function d(T){n.value=T.play_id}function m(){f.canPlayVideos&&_.value.play_id&&p("play-video",{categoryId:_.value.main_category_id,playId:_.value.play_id})}function v(){h.value.visible=!1,h.value.link=""}return t.onBeforeUnmount(()=>{a()}),(T,A)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(mVe,{data:h.value,onClose:v},{default:t.withCtx(()=>[t.createElementVNode("div",AVe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:h.value.link,format:"video/mp4"},null,8,EVe)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[MVe,IVe,t.createElementVNode("div",PVe,[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,LVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",BVe,[_.value&&_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",zVe)):t.createCommentVNode("",!0),_.value&&_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",OVe,[t.createElementVNode("div",DVe,[_.value.player_id?(t.openBlock(),t.createElementBlock("div",FVe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${_.value.player_id}.png`,alt:""},null,8,NVe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",RVe,t.toDisplayString(_.value.event_type_id===1?_.value.event_type_name:_.value.category_name),1),t.createElementVNode("div",VVe," | "+t.toDisplayString(_.value.playerShortName),1),e.canPlayVideos&&_.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},jVe)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),UVe,t.createElementVNode("div",$Ve,[t.createVNode(CVe,{"game-events":k.value,onClickEvent:d},null,8,["game-events"])]),t.createElementVNode("div",GVe,[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,HVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",qVe,[_.value&&!_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",WVe)):t.createCommentVNode("",!0),_.value&&!_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ZVe,[t.createElementVNode("div",XVe,[_.value.player_id?(t.openBlock(),t.createElementBlock("div",YVe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${_.value.player_id}.png`,alt:""},null,8,KVe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",JVe,t.toDisplayString(_.value.event_type_id===1?_.value.event_type_name:_.value.category_name),1),t.createElementVNode("div",QVe," | "+t.toDisplayString(_.value.playerShortName),1),e.canPlayVideos&&_.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},eje)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-179dec1c"]]),nEt="",nje={class:"toggle-buttons__background"},aje=["onClick"],ije={key:0,class:"toggle-buttons__button__img"},oje=["src"],Kx=ao({__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:p}){const f=e;t.useCssVars(w=>({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 F=t.ref(f.selectedButtonIndex),K=t.computed(()=>({"--grid-template-columns":`repeat(${f.buttons.length}, 1fr)`}));t.watch(()=>f.selectedButtonIndex,w=>{F.value=w}),t.watch(F,(w,n)=>{w!==n&&p("change",{index:w,button:f.buttons[w]})});function k(w){F.value=w}return(w,n)=>(t.openBlock(),t.createElementBlock("div",nje,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(K.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:`b${h}`,class:t.normalizeClass(["toggle-buttons__button",{active:F.value===h,right:_.img&&h>0}]),onClick:r=>k(h)},[_.img?(t.openBlock(),t.createElementBlock("div",ije,[t.createElementVNode("img",{src:_.img,alt:""},null,8,oje)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(_.text||_),1)],10,aje))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),iEt="",oEt="",S8=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),sje={class:"tooltip__content"},lje={key:0,class:"tooltip__content__category"},cje={class:"tooltip__content__player"},uje={class:"tooltip__content__player__name"},dje={class:"tooltip__content__player__photo"},hje=["src"],pje={class:"tooltip__content__minute"},fje={key:1,class:"tooltip__content__game"},mje=S8(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),gje={class:"tooltip__content__game__round-abbreviation"},yje={class:"tooltip__content__game__logo"},vje=["src"],_je=S8(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),bje={class:"tooltip__content__game__logo"},xje=["src"],wje={key:2,class:"tooltip__content__team"},kje=S8(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),Sje={class:"tooltip__content__team__logo"},Tje=["src"],Cje=ao({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:p}){const f=e,F=t.computed(()=>({"--top":f.position.y,"--left":f.position.x})),K=t.computed(()=>`${f.event.player.player_name} ${f.event.player.player_lastname}`),k=t.computed(()=>{const[n]=f.event.momentOfPlay.split(":");return`${Number(n)}'`});function w(){p("close")}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:w,style:t.normalizeStyle(F.value)},[t.createElementVNode("div",sje,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",lje,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",cje,[t.createElementVNode("div",uje,t.toDisplayString(K.value),1),t.createElementVNode("div",dje,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,hje)])]),t.createElementVNode("div",pje,"Minuto: "+t.toDisplayString(k.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",fje,[mje,t.createElementVNode("div",gje,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",yje,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,vje)]),_je,t.createElementVNode("div",bje,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,xje)])])):(t.openBlock(),t.createElementBlock("div",wje,[kje,t.createElementVNode("div",Sje,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,Tje)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),Aje=["id"],Eje=["fill"],Mje=["id"],Ije=["fill"],Pje=["stroke-dasharray","x1","y1","x2","y2","marker-end"],Lje=["x","y","stroke-width","fill","stroke"],Bje=["x","y"],zje={__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 p=e,f=t.computed(()=>{const b=[];if(p.eventConnection.hasConnectionPath){const y=p.eventConnection.x1===p.eventConnection.x2&&p.eventConnection.y1===p.eventConnection.y2?1:2;let g=n(p.eventConnection.previousEvent?p.eventConnection.previousEvent.y3:p.eventConnection.y1);const c=_(p.eventConnection.previousEvent?p.eventConnection.previousEvent.x3:p.eventConnection.x1);let a=0,i=0;y===2&&(a=n(p.eventConnection.y2),i=_(p.eventConnection.x2));const u=n(p.eventConnection.y3),s=_(p.eventConnection.x3);y===1?b.push({x1:c,y1:g,x2:s,y2:u}):(b.push({x1:c,y1:g,x2:i,y2:a}),b.push({x1:i,y1:a,x2:s,y2:u}))}return b}),F=t.computed(()=>p.mainEventIdSelected!==0?p.eventConnection.relatedPlayId===p.mainEventIdSelected?1:.1:1),K=t.computed(()=>p.mainEventIdSelected!==0?p.eventConnection.relatedPlayId===p.mainEventIdSelected:!0),k=t.computed(()=>n(p.eventConnection.previousEvent?p.eventConnection.previousEvent.y3:p.eventConnection.y1)),w=t.computed(()=>_(p.eventConnection.previousEvent?p.eventConnection.previousEvent.x3:p.eventConnection.x1));function n(b){return(1-b)*100}function _(b){return b*100}function h(b){Xp.emit("mouse-over-event",{mouseEvent:b,eventConnection:p.eventConnection,position:{x:w.value,y:k.value}})}function r(){Xp.emit("mouse-leave-event",{mainEventId:p.eventConnection.relatedPlayId,eventId:p.eventConnection.playId})}return(b,y)=>(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:F.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Eje)],12,Aje),[[t.vShow,K.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:F.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,Ije)],12,Mje),[[t.vShow,K.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(g,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[g.x1&&g.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${c}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:F.value}),"stroke-dasharray":c===0&&f.value.length===2?"none":"5,5",x1:`${g.x1}%`,y1:`${g.y1}%`,x2:`${g.x2}%`,y2:`${g.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&c===f.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,Pje)),[[t.vShow,K.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:h,onMouseleave:r,style:t.normalizeStyle({cursor:"pointer",opacity:F.value})},[t.createElementVNode("rect",{x:`${w.value}%`,y:`${k.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:F.value}),rx:"14",ry:"14"},null,12,Lje),t.createElementVNode("text",{x:`${w.value}%`,y:`${k.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:F.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,Bje)],36),[[t.vShow,K.value]])],64))}},Oje={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const p=e,f=t.computed(()=>p.eventConnections.getEventsConnectionsByEventType());return(F,K)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(k,w)=>(t.openBlock(),t.createBlock(zje,{key:k.id,color:e.eventConnections.getEventColor(k),"is-last-event":w===f.value.length-1,"event-connection":k,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},lEt="",Dje=e=>(t.pushScopeId("data-v-9c1367ca"),e=e(),t.popScopeId(),e),Fje={class:"soccer-chalkboard"},Nje={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},Rje=Dje(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg",alt:""},null,-1)),Vje={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jje=ao({__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 f=CK()?0:1e3;Xp.on("mouse-over-time-event",y=>{_(y),setTimeout(()=>{_(y)},f)}),Xp.on("mouse-leave-time-event",y=>{setTimeout(()=>{k.value==y&&!F.value&&_(0)},f)}),Xp.on("mouse-over-event",y=>{r(y)}),Xp.on("mouse-leave-event",y=>{setTimeout(()=>{y.eventId===w.value&&b()},f)});const F=t.ref(!1),K=t.ref({}),k=t.ref(0),w=t.ref(0),n=t.ref({x:0,y:0});function _(y){k.value=y}function h(){F.value=!1}function r(y){const c=document.getElementById("soccerChalkboardField");if(c){const a=c.getBoundingClientRect(),i=y.position.x/100*a.width+14,u=y.position.y/100*a.height+14,s=i+170>a.width?a.width-170:i,d=u;k.value=y.eventConnection.relatedPlayId,w.value=y.eventConnection.playId,K.value=y.eventConnection,n.value={x:`${s}px`,y:`${d}px`},F.value=!0}}function b(){F.value=!1,k.value=0}return(y,g)=>(t.openBlock(),t.createElementBlock("div",Fje,[t.createElementVNode("div",Nje,[Rje,(t.openBlock(),t.createElementBlock("svg",Vje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(c,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&c.hasTeam(e.teamsSelected)||e.listType==="players"&&c.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(Oje,{key:a,"event-connections":c,"main-event-id-selected":k.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),F.value?(t.openBlock(),t.createBlock(Cje,{key:0,position:n.value,event:K.value,onClose:h},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9c1367ca"]]),uEt="",Qz=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),Uje={class:"events-timeline"},$je=Qz(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),Gje=["onMouseover","onMouseleave"],Hje=["id"],qje=[Qz(()=>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))],Wje=["fill"],Zje=["mask"],Xje=["stroke"],Yje=ao({__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 p=e,f=["0'","45'","90'"],F=t.computed(()=>p.eventsConnections.reduce((w,n)=>{const _={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[h]=n.mainPlay.momentOfPlay.split(":"),r=parseInt(h);return r>=90?(_.minute=`${r}'`,_.left="100%"):(_.minute=`${r}'`,_.left=`${r/90*100}%`),w.push(_),w},[]));function K(w){Xp.emit("mouse-over-time-event",w.playId)}function k(w){Xp.emit("mouse-leave-time-event",w.playId)}return(w,n)=>(t.openBlock(),t.createElementBlock("div",Uje,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(f,(_,h)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:h},t.toDisplayString(_),1)),64)),$je,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,(_,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(_.teamId)||e.listType==="players"&&e.playersSelected.has(_.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:h,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:_.left,cursor:"pointer"}),onMouseover:r=>K(_),onMouseleave:r=>k(_)},[t.createElementVNode("mask",{id:_.playId.toString(),fill:"white"},qje,8,Hje),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:_.color},null,8,Wje),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(#${_.playId})`},null,8,Zje),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:_.fontColor,"stroke-width":"0.7"},t.toDisplayString(_.minute),9,Xje)])],44,Gje)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),Zu={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Kje=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Jje={key:1},Qje={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eUe=["fill"],tUe={key:0,class:"checkbox__teams"},rUe={class:"checkbox__teams__logo"},nUe=["src"],aUe={class:"checkbox__teams__logo"},iUe=["src"],oUe={__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:p}){const f=e;t.useCssVars(h=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const F=t.ref(!1),K=t.computed(()=>{const h={color:f.boxValueColor,"font-family":f.fontFamily,height:f.boxWidthAndHeight,width:f.boxWidthAndHeight,minWidth:f.boxWidthAndHeight,"border-radius":f.boxBorderRadius,"margin-top":f.boxMarginTop};return F.value?(h["background-color"]=f.boxBackgroundColor,h.border=`solid ${f.boxBorderWidth} ${f.boxBackgroundColor}`):h.border=`solid ${f.boxBorderWidth} ${f.boxBorderColor}`,h}),k=t.computed(()=>({"font-family":f.boxValueFontFamily,"font-size":f.boxValueFontSize,color:f.boxValueColor,"line-height":1})),w=t.computed(()=>{const h={color:f.labelColor,"font-family":f.fontFamily,"font-size":f.labelFontSize,"white-space":f.labelWhiteSpace,"text-align":f.boxPosition==="top"||f.boxPosition==="bottom"?"center":f.boxPosition};return(f.boxPosition==="left"||f.boxPosition==="right")&&(h[`margin-${f.boxPosition}`]=f.isBoxOnly?"0":f.teamsIds?"8px":"10px"),h});t.watch(()=>f.modelValue,h=>{h!==F.value&&(F.value=h)},{immediate:!0});function n(){f.avoidInteraction||!F.value&&f.avoidToCheck||(F.value=!F.value,p("update:modelValue",F.value))}function _(h){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${h}.png`}return(h,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(K.value)},[F.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(k.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",Jje,[(t.openBlock(),t.createElementBlock("svg",Qje,[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,eUe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",tUe,[t.createElementVNode("div",rUe,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,nUe)]),t.createElementVNode("div",aUe,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,iUe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(w.value)},t.toDisplayString(e.label),5)],2))}},Rl=Kje(oUe,[["__scopeId","data-v-b6f124d8"]]),uc=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},sUe={class:"container"},lUe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cUe=["fill"],uUe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dUe=["fill"],hUe={__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(p=>({"563e5242":e.width,a529e9a4:e.height})),(p,f)=>(t.openBlock(),t.createElementBlock("div",sUe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",lUe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,cUe)])):(t.openBlock(),t.createElementBlock("svg",uUe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,dUe)]))]))}},Lg=uc(hUe,[["__scopeId","data-v-166b6226"]]),Yv=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),pUe={class:"productivity"},fUe={class:"productivity__body__offensive"},mUe={class:"productivity__body__title"},gUe={class:"productivity__body__title__info"},yUe={class:"number-of-categories"},vUe={class:"productivity__body__categories"},_Ue={class:"productivity__body__defensive-possession"},bUe={class:"productivity__body__title"},xUe={class:"productivity__body__title__info"},wUe={class:"number-of-categories"},kUe={class:"productivity__body__categories"},SUe={class:"productivity__body__title"},TUe={class:"productivity__body__title__info"},CUe={class:"number-of-categories"},AUe={class:"productivity__body__categories"},EUe={class:"productivity__footer"},MUe={class:"productivity__footer__offenses"},IUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),PUe={class:"productivity__footer__offenses__table"},LUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),BUe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},zUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),OUe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},DUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),FUe={class:"productivity__footer__offenses__table__row has-padding"},NUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),RUe={__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:p}){const f=e,F=t.ref(!1),K=t.ref(!1),k=t.ref(!1),w=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":f.isExpansionMode?"1fr":"1fr 1fr"})),_=t.computed(()=>f.productivityCategories.offensive.categories.reduce((g,c)=>(c.isSelected&&g++,g),0)),h=t.computed(()=>f.productivityCategories.defensive.categories.reduce((g,c)=>(c.isSelected&&g++,g),0)),r=t.computed(()=>f.productivityCategories.possession.categories.reduce((g,c)=>(c.isSelected&&g++,g),0));t.watch(()=>f.productivityCategories,g=>{w.value.areYellowCardsSelected=g.offensesConditions.areYellowCardsSelected,w.value.areRedCardsSelected=g.offensesConditions.areRedCardsSelected,w.value.areFoulsCommittedSelected=g.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(w,g=>{p("update:offensesConditions",g)},{deep:!0,immediate:!0});function b(g,c){c.isSelected=g,setTimeout(()=>{c.priority=f.numberOfCategoriesSelected},10)}function y(g){g==="offensive"?F.value=!F.value:g==="defensive"?K.value=!K.value:g==="possession"&&(k.value=!k.value)}return(g,c)=>(t.openBlock(),t.createElementBlock("div",pUe,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",fUe,[t.createElementVNode("div",mUe,[t.createElementVNode("div",gUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",yUe,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[0]||(c[0]=a=>y("offensive"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":F.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",vUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||F.value]])]),t.createElementVNode("div",_Ue,[t.createElementVNode("div",bUe,[t.createElementVNode("div",xUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",wUe,"("+t.toDisplayString(h.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[1]||(c[1]=a=>y("defensive"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":K.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||K.value]]),t.createElementVNode("div",SUe,[t.createElementVNode("div",TUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",CUe,"("+t.toDisplayString(r.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[2]||(c[2]=a=>y("possession"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":k.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",AUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||k.value]])])],4),t.createElementVNode("div",EUe,[t.createElementVNode("div",MUe,[IUe,t.createElementVNode("div",PUe,[LUe,t.createElementVNode("div",BUe,[zUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areFoulsCommittedSelected,"avoid-interaction":w.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[3]||(c[3]=a=>w.value.areFoulsCommittedSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areFoulsCommittedSelected,"avoid-interaction":!w.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[4]||(c[4]=a=>w.value.areFoulsCommittedSelected=!a)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",OUe,[DUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areYellowCardsSelected,"avoid-interaction":w.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[5]||(c[5]=a=>w.value.areYellowCardsSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areYellowCardsSelected,"avoid-interaction":!w.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[6]||(c[6]=a=>w.value.areYellowCardsSelected=!a)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",FUe,[NUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areRedCardsSelected,"avoid-interaction":w.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[7]||(c[7]=a=>w.value.areRedCardsSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areRedCardsSelected,"avoid-interaction":!w.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[8]||(c[8]=a=>w.value.areRedCardsSelected=!a)},null,8,["model-value","avoid-interaction"])])])])])])]))}},VUe=uc(RUe,[["__scopeId","data-v-4df743e3"]]),Jx=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),jUe={class:"details__header"},UUe=Jx(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$Ue={class:"details__header__checkbox"},GUe={class:"details__body"},HUe={class:"details__body__playing-as"},qUe=["onClick"],WUe={class:"details__header"},ZUe=Jx(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),XUe={class:"details__header__checkbox"},YUe={class:"details__body"},KUe=Jx(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),JUe={class:"details__body__game-section"},QUe=["onClick"],e$e={class:"details__body"},t$e=Jx(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),r$e={class:"details__body__game-section"},n$e=["onClick"],a$e={__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 p=e;t.useCssVars(r=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const f=t.computed(()=>p.playingAs.every(r=>r.isSelected)),F=t.computed(()=>p.gameSections.every(r=>r.isSelected)),K=t.computed(()=>p.gameSections.reduce((r,b)=>(b.value<=3?r.firstHalf.push(b):r.secondHalf.push(b),r),{firstHalf:[],secondHalf:[]})),k=t.computed(()=>({"--border-radius-first-button":`${p.buttonsBorderRadius} 0 0 ${p.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${p.buttonsBorderRadius} ${p.buttonsBorderRadius} 0`}));function w(r){r?p.playingAs.forEach(b=>{b.isSelected=!0}):p.playingAs.forEach((b,y)=>{b.isSelected=y===0})}function n(r){p.playingAs.filter(b=>b.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function _(r){p.gameSections.filter(b=>b.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function h(r){r?p.gameSections.forEach(b=>{b.isSelected=!0}):p.gameSections.forEach((b,y)=>{b.isSelected=y===0})}return(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(k.value)},[t.withDirectives(t.createElementVNode("div",jUe,[UUe,t.createElementVNode("div",$Ue,[t.createVNode(t.unref(Rl),{label:"Todos",fontFamily:e.fontFamily,"model-value":f.value,"onUpdate:modelValue":w},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",GUe,[t.createElementVNode("div",HUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.playingAs,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>n(y)},t.toDisplayString(y.name),11,qUe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",WUe,[ZUe,t.createElementVNode("div",XUe,[t.createVNode(t.unref(Rl),{label:"Todos",fontFamily:e.fontFamily,"model-value":F.value,"onUpdate:modelValue":h},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",YUe,[KUe,t.createElementVNode("div",JUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value.firstHalf,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>_(y)},t.toDisplayString(y.text),11,QUe))),128))])]),t.createElementVNode("div",e$e,[t$e,t.createElementVNode("div",r$e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value.secondHalf,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>_(y)},t.toDisplayString(y.text),11,n$e))),128))])])],4))}},i$e=uc(a$e,[["__scopeId","data-v-9a3af80d"]]),o$e={class:"scroll-container"},s$e={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(p=>({"6aab424d":e.height,39848040:e.width})),(p,f)=>(t.openBlock(),t.createElementBlock("div",o$e,[t.renderSlot(p.$slots,"default",{},void 0,!0)]))}},eO=uc(s$e,[["__scopeId","data-v-218f5976"]]),l$e={class:"tournaments"},c$e={class:"tournaments__tournament"},u$e={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:p}){const f=e,F=t.ref(!1),K=t.computed(()=>f.tournaments.filter(w=>w.isSelected).length);t.watch(()=>f.tournaments,w=>{const n=w.filter(_=>_.isSelected);F.value=n.length===w.length,p("change-filters-selected",n.length),p("update:filters",f.tournaments)},{immediate:!0,deep:!0});function k(w){f.tournaments.forEach((n,_)=>{n.isSelected=w||(_!==0?w:!0)})}return(w,n)=>(t.openBlock(),t.createElementBlock("div",l$e,[t.createVNode(eO,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",c$e,[t.createVNode(t.unref(Rl),{"model-value":F.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":k},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id||_._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Rl),{modelValue:_.isSelected,"onUpdate:modelValue":h=>_.isSelected=h,label:_.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":K.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},d$e=uc(u$e,[["__scopeId","data-v-590d8ab3"]]),ca={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"},h$e={key:0,class:"plays-golstats__placeholder"},p$e=["onClick"],f$e={key:0,class:"plays-golstats__item__value"},m$e={class:"plays-golstats__item__text"},g$e={class:"plays-golstats__item__svg"},y$e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v$e=["fill"],_$e={__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:p}){const f=e,F=t.computed(()=>({"--grid-template-columns":f.type===ca.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${f.svgWidth}px`,"--svg-height":`${f.svgHeight}px`}));t.watch(()=>f.categories,k=>{const w=k.filter(n=>n.isSelected);p("update:filters",w)},{immediate:!0,deep:!0});function K(k){k.isSelected||(f.categories.forEach(w=>{w.isSelected=!1}),k.isSelected=!0,f.type===ca.GOLSTATS&&p("change-filters-selected",k.value))}return(k,w)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(F.value)},[t.createVNode(eO,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(ca).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",h$e," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:`k${_}`,class:"plays-golstats__item",onClick:h=>K(n)},[e.type===t.unref(ca).GOLSTATS?(t.openBlock(),t.createElementBlock("div",f$e,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",m$e,t.toDisplayString(n.name),1),t.createElementVNode("div",g$e,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",y$e,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,v$e)],512)),[[t.vShow,n.isSelected]])])],8,p$e))),128))]),_:1},8,["height"])],4))}},tO=uc(_$e,[["__scopeId","data-v-af3c1673"]]),b$e=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},T8={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 p=e.which?e.which:e.keyCode();p>31&&(p<48||p>57)&&e.preventDefault()}}}},rO=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},nO=T8.setup;T8.setup=nO?(e,p)=>(rO(),nO(e,p)):rO;const x$e={class:"input-container"},w$e=["type","placeholder","value"],k$e={class:"right-text"};function S$e(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",x$e,[t.createElementVNode("input",{type:f.inputType,placeholder:f.placeholder,value:f.value,style:t.normalizeStyle(k.inputStyle),onKeydown:p[0]||(p[0]=(...w)=>k.onKeyDown&&k.onKeyDown(...w)),onInput:p[1]||(p[1]=(...w)=>k.updateInputValue&&k.updateInputValue(...w))},null,44,w$e),t.createElementVNode("div",k$e,t.toDisplayString(f.textRight),1)])}const aO=b$e(T8,[["render",S$e],["__scopeId","data-v-b73049e7"]]),T$e=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},C8={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))}}},iO=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},oO=C8.setup;C8.setup=oO?(e,p)=>(iO(),oO(e,p)):iO;const C$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),A$e=["src"],E$e={key:1,class:"text"},M$e=["src"],I$e={class:"stats"},P$e=C$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),L$e={class:"numstats"},B$e={class:"leyend"};function z$e(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,A$e)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",E$e,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,M$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",I$e,[P$e,t.createElementVNode("div",L$e,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",B$e,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const O$e=T$e(C8,[["render",z$e],["__scopeId","data-v-f3ee6b2b"]]),D$e={class:"gsc-dropdown__main-container__item-selected"},F$e=["height","width"],N$e=["stroke"],R$e={class:"gsc-dropdown__items-container"},V$e=["onClick"],j$e={key:0,class:"gsc-dropdown__items-footer"},B0={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-container-padding":f.listContainerPadding,"--list-item-padding":f.listItemPadding,"--list-item-margin":f.listItemMargin,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-border-radius":f.listItemBorderRadius,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--list-margin-top":f.listMarginTop,"--list-left":f.listAlignment==="left"?"0":"auto","--list-right":f.listAlignment==="right"?"0":"auto","--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",D$e,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,N$e)],8,F$e))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",R$e,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,V$e))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",j$e,[t.createVNode(t.unref(O$e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},Kv={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"},py=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),U$e={class:"universe"},$$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),G$e=py(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),H$e={class:"universe__inputs"},q$e={class:"universe__inputs__input"},W$e={class:"universe__inputs__checkbox"},Z$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),X$e=py(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),Y$e={class:"universe__inputs"},K$e={class:"universe__inputs__input"},J$e={class:"universe__inputs__checkbox"},Q$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),eGe=py(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),tGe={class:"universe__dropdown"},rGe={class:"selected-item"},sO=11,nGe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,p)=>p+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:p,emit:f}){const F=e,K=t.ref(!1),k=t.ref(!1),w=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>F.universeFilters,g=>{n.value={...g,lastMonths:g.selectedMonth?g.selectedMonth:g.lastMonths[sO],statistics:{...g.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,g=>{K.value=!g.value.minutesPlayed||Number(g.value.minutesPlayed)===0,k.value=!g.value.percentMinutesPlayed||Number(g.value.percentMinutesPlayed)===0,w.value=!g.value.lastMonths||Number(g.value.lastMonths)===0,f("update:universeFilters",g)},{deep:!0,immediate:!0});function _(g){n.value.minutesPlayed=g}function h(g){n.value.percentMinutesPlayed=g}function r(g,c){switch(c){case"minutes":K.value=g,g&&(n.value.minutesPlayed=0);break;case"percent":k.value=g,g&&(n.value.percentMinutesPlayed=0);break;case"months":w.value=g,g&&(n.value.lastMonths=0);break}}function b(){n.value={...F.universeFilters,lastMonths:F.universeFilters.lastMonths[sO],statistics:{...F.universeFilters.statistics}}}function y(g){n.value.lastMonths=g}return p({resetFilters:b}),(g,c)=>(t.openBlock(),t.createElementBlock("div",U$e,[$$e,G$e,t.createElementVNode("div",H$e,[t.createElementVNode("div",q$e,[t.createVNode(t.unref(aO),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:_},null,8,["value"])]),t.createElementVNode("div",W$e,[t.createVNode(t.unref(Rl),{modelValue:K.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":c[0]||(c[0]=a=>r(a,"minutes"))},null,8,["modelValue","fontFamily"])])]),Z$e,X$e,t.createElementVNode("div",Y$e,[t.createElementVNode("div",K$e,[t.createVNode(t.unref(aO),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:h},null,8,["value"])]),t.createElementVNode("div",J$e,[t.createVNode(t.unref(Rl),{modelValue:k.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":c[1]||(c[1]=a=>r(a,"percent"))},null,8,["modelValue","fontFamily"])])]),Q$e,eGe,t.createElementVNode("div",tGe,[t.createVNode(t.unref(B0),t.mergeProps(t.unref(Kv),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:y}),{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",rGe,t.toDisplayString(a)+" "+t.toDisplayString(a===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("div",null,t.toDisplayString(a)+" "+t.toDisplayString(a===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},aGe=uc(nGe,[["__scopeId","data-v-b1fc2fa6"]]),lO=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},iGe={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||[],p=this.min===void 0?0:this.min,f=e.length?e.length-1:100,F=this.max===void 0?f:this.max,K=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(K=1);let k=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(k=e.length-2),F<=p)throw new Error("Invalid props min or max");if(K>k)throw new Error("Invalid props minValue or maxValue");let w=this.rangeMargin===void 0?this.step:this.rangeMargin,n=w%this.step;return n&&(w=w+this.step-n),{valueMin:K<p?p:K,valueMax:k>F?F:k,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:w}},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 p=parseFloat(e.target.value);p<=this.valueMax-this.rangeMarginValue&&p>=this.minimum?this.valueMin=p:e.target.value=this.valueMin},onInputMaxChange(e){let p=parseFloat(e.target.value);p>=this.valueMin+this.rangeMarginValue&&p<=this.maximum?this.valueMax=p: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 p=e.clientX;e.type==="touchmove"&&(p=e.touches[0].clientX);let f=(p-this.startX)/this.barBox.width,F=this.barValue+(this.maximum-this.minimum)*f,K=F%this.step;F-=K,F<this.minimum?F=this.minimum:F>this.valueMax-this.rangeMarginValue&&(F=this.valueMax-this.rangeMarginValue),this.valueMin=F},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 p=e.clientX;e.type==="touchmove"&&(p=e.touches[0].clientX);let f=(p-this.startX)/this.barBox.width,F=this.barValue+(this.maximum-this.minimum)*f,K=F%this.step;F-=K,F<this.valueMin+this.rangeMarginValue?F=this.valueMin+this.rangeMarginValue:F>this.maximum&&(F=this.maximum),this.valueMax=F},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 p=this.step;e.deltaY<0&&(p=-p),e.shiftKey&&e.ctrlKey?this.valueMin+p>=this.minimum&&this.valueMax+p<=this.maximum&&(this.valueMin=this.valueMin+p,this.valueMax=this.valueMax+p):e.ctrlKey?(p=this.valueMax+p,p<this.valueMin+this.rangeMarginValue?p=this.valueMin+this.rangeMarginValue:p>this.maximum&&(p=this.maximum),this.valueMax=p):e.shiftKey&&(p=this.valueMin+p,p<this.minimum?p=this.minimum:p>this.valueMax-this.rangeMarginValue&&(p=this.valueMax-this.rangeMarginValue),this.valueMin=p)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let p={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",p)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],p=e.length?e.length-1:100;return this.max===void 0?p: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(){}},oGe={class:"bar"},sGe=["min","max","step","value"],lGe={class:"caption"},cGe={class:"min-caption"},uGe={class:"bar-inner"},dGe=["min","max","step","value"],hGe={class:"caption"},pGe={class:"max-caption"},fGe={key:0,class:"ruler"},mGe={key:1,class:"sub-ruler"},gGe={key:2,class:"labels"};function yGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([f.baseClassName,K.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:p[10]||(p[10]=t.withModifiers((...w)=>k.onMouseWheel&&k.onMouseWheel(...w),["prevent","stop"]))},[t.createElementVNode("div",oGe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:k.barMin+"%"}),onClick:p[0]||(p[0]=(...w)=>k.onBarLeftClick&&k.onBarLeftClick(...w))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:k.minimum,max:k.maximum,step:f.step,value:K.valueMin,onInput:p[1]||(p[1]=t.withModifiers((...w)=>k.onInputMinChange&&k.onInputMinChange(...w),["stop","prevent"]))},null,40,sGe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:p[2]||(p[2]=(...w)=>k.onLeftThumbMousedown&&k.onLeftThumbMousedown(...w)),onTouchstart:p[3]||(p[3]=(...w)=>k.onLeftThumbMousedown&&k.onLeftThumbMousedown(...w))},[t.createElementVNode("div",lGe,[t.createElementVNode("span",cGe,t.toDisplayString(f.minCaption||k.barMinVal),1)])],32),t.createElementVNode("div",uGe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:p[4]||(p[4]=(...w)=>k.onInnerBarLeftClick&&k.onInnerBarLeftClick(...w))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:p[5]||(p[5]=(...w)=>k.onInnerBarRightClick&&k.onInnerBarRightClick(...w))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:k.minimum,max:k.maximum,step:f.step,value:K.valueMax,onInput:p[6]||(p[6]=t.withModifiers((...w)=>k.onInputMaxChange&&k.onInputMaxChange(...w),["stop","prevent"]))},null,40,dGe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:p[7]||(p[7]=(...w)=>k.onRightThumbMousedown&&k.onRightThumbMousedown(...w)),onTouchstart:p[8]||(p[8]=(...w)=>k.onRightThumbMousedown&&k.onRightThumbMousedown(...w))},[t.createElementVNode("div",hGe,[t.createElementVNode("span",pGe,t.toDisplayString(f.maxCaption||k.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:k.barMax+"%"}),onClick:p[9]||(p[9]=(...w)=>k.onBarRightClick&&k.onBarRightClick(...w))},null,4)]),f.ruler?(t.openBlock(),t.createElementBlock("div",fGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.stepCount,w=>(t.openBlock(),t.createElementBlock("div",{key:w,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),k.subStepCount?(t.openBlock(),t.createElementBlock("div",mGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.subStepCount,w=>(t.openBlock(),t.createElementBlock("div",{key:w,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),f.label?(t.openBlock(),t.createElementBlock("div",gGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.scaleLabels,w=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:w},t.toDisplayString(w),1))),128))])):t.createCommentVNode("",!0)],34)}const vGe=lO(iGe,[["render",yGe]]),A8={components:{MultiRangeSlider:vGe},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)}}},cO=()=>{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}))},uO=A8.setup;A8.setup=uO?(e,p)=>(cO(),uO(e,p)):cO;const _Ge={class:"center"},bGe={class:"bar-ref"},xGe={class:"bar-ref-element-left"},wGe={class:"bar-ref-element-right"};function kGe(e,p,f,F,K,k){const w=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(k.customStyle)},[t.createElementVNode("div",_Ge,[t.createElementVNode("div",bGe,[t.createElementVNode("div",xGe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(k.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(k.customStyleValue)},t.toDisplayString(K.minValueLocal)+t.toDisplayString(f.minSuffix),5)]),t.createElementVNode("div",wGe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(k.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(k.customStyleValue)},t.toDisplayString(K.maxValueLocal)+t.toDisplayString(f.maxSuffix),5)])]),t.createVNode(w,{baseClassName:"multi-range-slider",min:f.minLimit,max:f.maxLimit,step:1,ruler:!1,label:!1,"min-value":K.minValueLocal,"max-value":K.maxValueLocal,"range-margin":0,onInput:k.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const dO=lO(A8,[["render",kGe]]),SGe={class:"template-distance"},TGe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:p}){const f=e,F=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>F.value,k=>{p("update:distanceFilters",k)},{deep:!0}),t.watch(()=>f.distance,k=>{F.value.minValue=k.minValue,F.value.maxValue=k.maxValue,F.value.minLimit=k.minLimit,F.value.maxLimit=k.maxLimit},{immediate:!0,deep:!0});function K(k){F.value.minValue=k.minValue,F.value.maxValue=k.maxValue}return(k,w)=>(t.openBlock(),t.createElementBlock("div",SGe,[t.createVNode(t.unref(dO),{"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":F.value.minLimit,"max-limit":F.value.maxLimit,"min-value":F.value.minValue,"max-value":F.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:K},null,8,["min-limit","max-limit","min-value","max-value"])]))}},CGe=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),AGe={class:"template-games"},EGe={class:"template-games__header"},MGe=CGe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),IGe={class:"template-games__header__all-games"},PGe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:p}){const f=e,F=t.ref(!1),K=t.computed(()=>f.gamesFilters.filter(w=>w.isSelected).length);t.watch(()=>f.gamesFilters,w=>{p("update:gamesFilters",w)},{deep:!0}),t.watch(K,w=>{F.value=w===f.gamesFilters.length,p("update:gamesFilters",f.gamesFilters)},{immediate:!0});const k=w=>{w?f.gamesFilters.forEach(n=>{n.isSelected=w}):f.gamesFilters.forEach((n,_)=>{n.isSelected=_===0}),F.value=w};return(w,n)=>(t.openBlock(),t.createElementBlock("div",AGe,[t.createElementVNode("div",EGe,[MGe,t.createElementVNode("div",IGe,[t.createVNode(t.unref(Rl),{modelValue:F.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":k},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"template-games__game"},[t.createVNode(t.unref(Rl),{modelValue:_.isSelected,"onUpdate:modelValue":r=>_.isSelected=r,label:_.label,"teams-ids":_.teamsIds,"avoid-interaction":K.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},LGe=uc(PGe,[["__scopeId","data-v-be32e3d8"]]),BGe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},E8={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))}}},hO=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},pO=E8.setup;E8.setup=pO?(e,p)=>(hO(),pO(e,p)):hO;const zGe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),OGe=["src"],DGe={key:1,class:"text"},FGe=["src"],NGe={class:"stats"},RGe=zGe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),VGe={class:"numstats"},jGe={class:"leyend"};function UGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,OGe)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",DGe,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,FGe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",NGe,[RGe,t.createElementVNode("div",VGe,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",jGe,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const M8=BGe(E8,[["render",UGe],["__scopeId","data-v-f3ee6b2b"]]),$Ge=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},I8={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))}}},fO=()=>{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}))},mO=I8.setup;I8.setup=mO?(e,p)=>(fO(),mO(e,p)):fO;const GGe=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),HGe=["src"],qGe={key:1,class:"text"},WGe=["src"],ZGe={class:"stats"},XGe=GGe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),YGe={class:"numstats"},KGe={class:"leyend"};function JGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,HGe)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",qGe,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,WGe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",ZGe,[XGe,t.createElementVNode("div",YGe,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",KGe,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const QGe=$Ge(I8,[["render",JGe],["__scopeId","data-v-fb269a1e"]]),eHe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},tHe={key:1},rHe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nHe=["fill"],aHe={key:0,class:"checkbox__teams"},iHe={class:"checkbox__teams__logo"},oHe=["src"],sHe={class:"checkbox__teams__logo"},lHe=["src"],cHe={__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:p}){const f=e;t.useCssVars(h=>({"6582e90e":e.width,"310b3edf":e.height}));const F=t.ref(!1),K=t.computed(()=>{const h={color:f.boxValueColor,"font-family":f.fontFamily,height:f.boxWidthAndHeight,width:f.boxWidthAndHeight,minWidth:f.boxWidthAndHeight,"border-radius":f.boxBorderRadius,"margin-top":f.boxMarginTop};return F.value?(h["background-color"]=f.boxBackgroundColor,h.border=`solid ${f.boxBorderWidth} ${f.boxBackgroundColor}`):h.border=`solid ${f.boxBorderWidth} ${f.boxBorderColor}`,h}),k=t.computed(()=>({"font-family":f.boxValueFontFamily,"font-size":f.boxValueFontSize,color:f.boxValueColor,"line-height":1})),w=t.computed(()=>{const h={color:f.labelColor,"font-family":f.fontFamily,"font-size":f.labelFontSize,"white-space":f.labelWhiteSpace,"text-align":f.boxPosition==="top"||f.boxPosition==="bottom"?"center":f.boxPosition};return(f.boxPosition==="left"||f.boxPosition==="right")&&(h[`margin-${f.boxPosition}`]=f.isBoxOnly?"0":f.teamsIds?"8px":"10px"),h});t.watch(()=>f.modelValue,h=>{h!==F.value&&(F.value=h)},{immediate:!0});function n(){f.avoidInteraction||!F.value&&f.avoidToCheck||(F.value=!F.value,p("update:modelValue",F.value))}function _(h){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${h}.png`}return(h,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(K.value)},[F.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(k.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",tHe,[(t.openBlock(),t.createElementBlock("svg",rHe,[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,nHe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",aHe,[t.createElementVNode("div",iHe,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,oHe)]),t.createElementVNode("div",sHe,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,lHe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(w.value)},t.toDisplayString(e.label),5)],2))}},uHe=eHe(cHe,[["__scopeId","data-v-bcf3bcc6"]]),dHe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},P8={components:{GSCButton:QGe,GSCCheckbox:uHe},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,p)=>({sector:p+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 p=e.sort();JSON.stringify(p)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=p,this.sectors.forEach((f,F)=>{f.active=e.includes(F+1),this.validateField(F)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var p=[];for(let f=0;f<e.length;f++)e[f].active&&p.push(f+1);this.$emit("update:modelValue",p)},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 p=0;p<this.sectors.length;p++)this.sectors[p].active=!0,this.validateField(p);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 p=0;p<this.sectors.length;p++)this.sectors[p].active=!1,this.validateField(p),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 p=0;this.sectors[e].active=!this.sectors[e].active;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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)}}},gO=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},yO=P8.setup;P8.setup=yO?(e,p)=>(gO(),yO(e,p)):gO;const hHe={class:"gsc-field"},pHe={class:"gsc-field__title-checked"},fHe={class:"gsc-field__title-checked__title"},mHe={class:"gsc-field__container-field"},gHe={class:"gsc-field__container-field__field"},yHe={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},vHe=["stroke"],_He=["stroke","stroke-width"],bHe=["stroke","stroke-width"],xHe=["stroke-width","stroke"],wHe=["fill","fill-opacity","stroke","stroke-width"],kHe=["fill","fill-opacity","stroke","stroke-width"],SHe=["fill","fill-opacity","stroke","stroke-width"],THe=["fill","fill-opacity","stroke","stroke-width"],CHe=["fill","fill-opacity","stroke","stroke-width"],AHe=["fill","fill-opacity","stroke","stroke-width"],EHe=["fill","fill-opacity","stroke","stroke-width"],MHe=["fill","fill-opacity","stroke","stroke-width"],IHe=["fill","fill-opacity","stroke","stroke-width"],PHe=["fill","fill-opacity","stroke","stroke-width"],LHe=["fill","fill-opacity","stroke","stroke-width"],BHe=["fill","fill-opacity","stroke","stroke-width"],zHe=["fill","fill-opacity","stroke","stroke-width"],OHe=["fill","fill-opacity","stroke","stroke-width"],DHe=["fill","fill-opacity","stroke","stroke-width"],FHe=["fill","fill-opacity","stroke","stroke-width"],NHe={class:"gsc-field__container-field__bar-buttons"};function RHe(e,p,f,F,K,k){const w=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",hHe,[t.createElementVNode("div",pHe,[t.createElementVNode("div",fHe,t.toDisplayString(f.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(f.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(w,{label:f.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":f.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:K.all,key:K.update,"model-value":K.all,"onUpdate:modelValue":k.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",mHe,[t.createElementVNode("div",gHe,[(t.openBlock(),t.createElementBlock("svg",yHe,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:f.colorLineField},null,8,vHe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+k.translx+"px, "+k.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:f.colorLineField,"stroke-width":f.borderWidthLineField,"stroke-linecap":"square"},null,12,_He),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+k.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:f.colorLineField,"stroke-width":f.borderWidthLineField,"stroke-linecap":"square"},null,12,bHe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+k.translxcircle+"px, "+k.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":f.borderWidthLineField,stroke:f.colorLineField},null,12,xHe),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:K.sectors[0].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[0]||(p[0]=_=>k.selectSector(0))},null,8,wHe),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:K.sectors[1].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[1]||(p[1]=_=>k.selectSector(1))},null,8,kHe),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:K.sectors[2].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[2]||(p[2]=_=>k.selectSector(2))},null,8,SHe),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:K.sectors[3].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[3]||(p[3]=_=>k.selectSector(3))},null,8,THe),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:K.sectors[4].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[4]||(p[4]=_=>k.selectSector(4))},null,8,CHe),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:K.sectors[5].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[5]||(p[5]=_=>k.selectSector(5))},null,8,AHe),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:K.sectors[6].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[6]||(p[6]=_=>k.selectSector(6))},null,8,EHe),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:K.sectors[7].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[7]||(p[7]=_=>k.selectSector(7))},null,8,MHe),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:K.sectors[8].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[8]||(p[8]=_=>k.selectSector(8))},null,8,IHe),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:K.sectors[9].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[9]||(p[9]=_=>k.selectSector(9))},null,8,PHe),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:K.sectors[10].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[10]||(p[10]=_=>k.selectSector(10))},null,8,LHe),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:K.sectors[11].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[11]||(p[11]=_=>k.selectSector(11))},null,8,BHe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:K.sectors[12].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[12]||(p[12]=_=>k.selectSector(12))},null,8,zHe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:K.sectors[13].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[13]||(p[13]=_=>k.selectSector(13))},null,8,OHe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:K.sectors[14].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[14]||(p[14]=_=>k.selectSector(14))},null,8,DHe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:K.sectors[15].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[15]||(p[15]=_=>k.selectSector(15))},null,8,FHe)]))]),t.createElementVNode("div",NHe,[(t.openBlock(),t.createBlock(n,{"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:k.btn14,key:K.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn24,key:K.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn34,key:K.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn44,key:K.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const vO=dHe(P8,[["render",RHe],["__scopeId","data-v-b85699b8"]]),VHe={class:"toggle-buttons__background"},jHe=["onClick"],UHe={__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:p}){const f=e;t.useCssVars(w=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const F=t.ref(f.selectedButtonIndex),K=t.computed(()=>({"--grid-template-columns":`repeat(${f.buttons.length}, 1fr)`}));t.watch(()=>f.selectedButtonIndex,w=>{F.value=w}),t.watch(F,(w,n)=>{w!==n&&p("change",{index:w,button:f.buttons[w]})});function k(w){F.value=w}return(w,n)=>(t.openBlock(),t.createElementBlock("div",VHe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(K.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:`b${h}`,class:t.normalizeClass(["toggle-buttons__button",{active:F.value===h}]),onClick:r=>k(h)},t.toDisplayString(_.text||_),11,jHe))),128))],4)]))}},$He=uc(UHe,[["__scopeId","data-v-ac2af001"]]);function _O(e,p){return function(){return e.apply(p,arguments)}}const{toString:GHe}=Object.prototype,{getPrototypeOf:L8}=Object,Qx=(e=>p=>{const f=GHe.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),Hf=e=>(e=e.toLowerCase(),p=>Qx(p)===e),e3=e=>p=>typeof p===e,{isArray:fy}=Array,Jv=e3("undefined");function HHe(e){return e!==null&&!Jv(e)&&e.constructor!==null&&!Jv(e.constructor)&&Cp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bO=Hf("ArrayBuffer");function qHe(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&bO(e.buffer),p}const WHe=e3("string"),Cp=e3("function"),xO=e3("number"),t3=e=>e!==null&&typeof e=="object",ZHe=e=>e===!0||e===!1,r3=e=>{if(Qx(e)!=="object")return!1;const p=L8(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},XHe=Hf("Date"),YHe=Hf("File"),KHe=Hf("Blob"),JHe=Hf("FileList"),QHe=e=>t3(e)&&Cp(e.pipe),eqe=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||Cp(e.append)&&((p=Qx(e))==="formdata"||p==="object"&&Cp(e.toString)&&e.toString()==="[object FormData]"))},tqe=Hf("URLSearchParams"),[rqe,nqe,aqe,iqe]=["ReadableStream","Request","Response","Headers"].map(Hf),oqe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qv(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),fy(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function wO(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const Bg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),kO=e=>!Jv(e)&&e!==Bg;function B8(){const{caseless:e}=kO(this)&&this||{},p={},f=(F,K)=>{const k=e&&wO(p,K)||K;r3(p[k])&&r3(F)?p[k]=B8(p[k],F):r3(F)?p[k]=B8({},F):fy(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&Qv(arguments[F],f);return p}const sqe=(e,p,f,{allOwnKeys:F}={})=>(Qv(p,(K,k)=>{f&&Cp(K)?e[k]=_O(K,f):e[k]=K},{allOwnKeys:F}),e),lqe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cqe=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},uqe=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&L8(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},dqe=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},hqe=e=>{if(!e)return null;if(fy(e))return e;let p=e.length;if(!xO(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},pqe=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&L8(Uint8Array)),fqe=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},mqe=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},gqe=Hf("HTMLFormElement"),yqe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),SO=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),vqe=Hf("RegExp"),TO=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};Qv(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},_qe=e=>{TO(e,(p,f)=>{if(Cp(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(Cp(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},bqe=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return fy(e)?F(e):F(String(e).split(p)),f},xqe=()=>{},wqe=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,z8="abcdefghijklmnopqrstuvwxyz",CO="0123456789",AO={DIGIT:CO,ALPHA:z8,ALPHA_DIGIT:z8+z8.toUpperCase()+CO},kqe=(e=16,p=AO.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function Sqe(e){return!!(e&&Cp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Tqe=e=>{const p=new Array(10),f=(F,K)=>{if(t3(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=fy(F)?[]:{};return Qv(F,(w,n)=>{const _=f(w,K+1);!Jv(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},Cqe=Hf("AsyncFunction"),Aqe=e=>e&&(t3(e)||Cp(e))&&Cp(e.then)&&Cp(e.catch),EO=((e,p)=>e?setImmediate:p?((f,F)=>(Bg.addEventListener("message",({source:K,data:k})=>{K===Bg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),Bg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",Cp(Bg.postMessage)),Eqe=typeof queueMicrotask<"u"?queueMicrotask.bind(Bg):typeof process<"u"&&process.nextTick||EO,Oa={isArray:fy,isArrayBuffer:bO,isBuffer:HHe,isFormData:eqe,isArrayBufferView:qHe,isString:WHe,isNumber:xO,isBoolean:ZHe,isObject:t3,isPlainObject:r3,isReadableStream:rqe,isRequest:nqe,isResponse:aqe,isHeaders:iqe,isUndefined:Jv,isDate:XHe,isFile:YHe,isBlob:KHe,isRegExp:vqe,isFunction:Cp,isStream:QHe,isURLSearchParams:tqe,isTypedArray:pqe,isFileList:JHe,forEach:Qv,merge:B8,extend:sqe,trim:oqe,stripBOM:lqe,inherits:cqe,toFlatObject:uqe,kindOf:Qx,kindOfTest:Hf,endsWith:dqe,toArray:hqe,forEachEntry:fqe,matchAll:mqe,isHTMLForm:gqe,hasOwnProperty:SO,hasOwnProp:SO,reduceDescriptors:TO,freezeMethods:_qe,toObjectSet:bqe,toCamelCase:yqe,noop:xqe,toFiniteNumber:wqe,findKey:wO,global:Bg,isContextDefined:kO,ALPHABET:AO,generateString:kqe,isSpecCompliantForm:Sqe,toJSONObject:Tqe,isAsyncFn:Cqe,isThenable:Aqe,setImmediate:EO,asap:Eqe};function ll(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Oa.inherits(ll,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:Oa.toJSONObject(this.config),code:this.code,status:this.status}}});const MO=ll.prototype,IO={};["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=>{IO[e]={value:e}}),Object.defineProperties(ll,IO),Object.defineProperty(MO,"isAxiosError",{value:!0}),ll.from=(e,p,f,F,K,k)=>{const w=Object.create(MO);return Oa.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),ll.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const Mqe=null;function O8(e){return Oa.isPlainObject(e)||Oa.isArray(e)}function PO(e){return Oa.endsWith(e,"[]")?e.slice(0,-2):e}function LO(e,p,f){return e?e.concat(p).map(function(F,K){return F=PO(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function Iqe(e){return Oa.isArray(e)&&!e.some(O8)}const Pqe=Oa.toFlatObject(Oa,{},null,function(e){return/^is[A-Z]/.test(e)});function n3(e,p,f){if(!Oa.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Oa.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Oa.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Oa.isSpecCompliantForm(p);if(!Oa.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Oa.isDate(g))return g.toISOString();if(!n&&Oa.isBlob(g))throw new ll("Blob is not supported. Use a Buffer instead.");return Oa.isArrayBuffer(g)||Oa.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Oa.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Oa.isArray(g)&&Iqe(g)||(Oa.isFileList(g)||Oa.endsWith(c,"[]"))&&(i=Oa.toArray(g)))return c=PO(c),i.forEach(function(u,s){!(Oa.isUndefined(u)||u===null)&&p.append(w===!0?LO([c],s,k):w===null?c:c+"[]",_(u))}),!1}return O8(g)?!0:(p.append(LO(a,c,k),_(g)),!1)}const r=[],b=Object.assign(Pqe,{defaultVisitor:h,convertValue:_,isVisitable:O8});function y(g,c){if(!Oa.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Oa.forEach(g,function(a,i){(!(Oa.isUndefined(a)||a===null)&&K.call(p,a,Oa.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Oa.isObject(e))throw new TypeError("data must be an object");return y(e),p}function BO(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function D8(e,p){this._pairs=[],e&&n3(e,this,p)}const zO=D8.prototype;zO.append=function(e,p){this._pairs.push([e,p])},zO.toString=function(e){const p=e?function(f){return e.call(this,f,BO)}:BO;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function Lqe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function OO(e,p,f){if(!p)return e;const F=f&&f.encode||Lqe;Oa.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Oa.isURLSearchParams(p)?p.toString():new D8(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const DO=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Oa.forEach(this.handlers,function(f){f!==null&&p(f)})}},FO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bqe=typeof URLSearchParams<"u"?URLSearchParams:D8,zqe=typeof FormData<"u"?FormData:null,Oqe=typeof Blob<"u"?Blob:null,Dqe={isBrowser:!0,classes:{URLSearchParams:Bqe,FormData:zqe,Blob:Oqe},protocols:["http","https","file","blob","url","data"]},F8=typeof window<"u"&&typeof document<"u",N8=typeof navigator=="object"&&navigator||void 0,Fqe=F8&&(!N8||["ReactNative","NativeScript","NS"].indexOf(N8.product)<0),Nqe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Rqe=F8&&window.location.href||"http://localhost",Vqe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F8,hasStandardBrowserEnv:Fqe,hasStandardBrowserWebWorkerEnv:Nqe,navigator:N8,origin:Rqe},Symbol.toStringTag,{value:"Module"})),yh={...Vqe,...Dqe};function jqe(e,p){return n3(e,new yh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return yh.isNode&&Oa.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function Uqe(e){return Oa.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function $qe(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function NO(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Oa.isArray(K)?K.length:w,_?(Oa.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Oa.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Oa.isArray(K[w])&&(K[w]=$qe(K[w])),!n)}if(Oa.isFormData(e)&&Oa.isFunction(e.entries)){const f={};return Oa.forEachEntry(e,(F,K)=>{p(Uqe(F),K,f,0)}),f}return null}function Gqe(e,p,f){if(Oa.isString(e))try{return(p||JSON.parse)(e),Oa.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const R8={transitional:FO,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Oa.isObject(e);if(K&&Oa.isHTMLForm(e)&&(e=new FormData(e)),Oa.isFormData(e))return F?JSON.stringify(NO(e)):e;if(Oa.isArrayBuffer(e)||Oa.isBuffer(e)||Oa.isStream(e)||Oa.isFile(e)||Oa.isBlob(e)||Oa.isReadableStream(e))return e;if(Oa.isArrayBufferView(e))return e.buffer;if(Oa.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return jqe(e,this.formSerializer).toString();if((k=Oa.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return n3(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),Gqe(e)):e}],transformResponse:[function(e){const p=this.transitional||R8.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Oa.isResponse(e)||Oa.isReadableStream(e))return e;if(e&&Oa.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?ll.from(k,ll.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yh.classes.FormData,Blob:yh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oa.forEach(["delete","get","head","post","put","patch"],e=>{R8.headers[e]={}});const V8=R8,Hqe=Oa.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"]),qqe=e=>{const p={};let f,F,K;return e&&e.split(`
86
+ */const Yd={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"}},Bz={itemsToShow:{default:Yd.itemsToShow,type:Number},itemsToScroll:{default:Yd.itemsToScroll,type:Number},wrapAround:{default:Yd.wrapAround,type:Boolean},throttle:{default:Yd.throttle,type:Number},snapAlign:{default:Yd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Yd.transition,type:Number},breakpoints:{default:Yd.breakpoints,type:Object},autoplay:{default:Yd.autoplay,type:Number},pauseAutoplayOnHover:{default:Yd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Yd.mouseDrag,type:Boolean},touchDrag:{default:Yd.touchDrag,type:Boolean},dir:{default:Yd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Yd.i18n,type:Object},settings:{default(){return{}},type:Object}};function LFe({config:e,slidesCount:p}){const{snapAlign:f,wrapAround:F,itemsToShow:K=1}=e;if(F)return Math.max(p-1,0);let k;switch(f){case"start":k=p-K;break;case"end":k=p-1;break;case"center":case"center-odd":k=p-Math.ceil((K-.5)/2);break;case"center-even":k=p-Math.ceil(K/2);break;default:k=0;break}return Math.max(k,0)}function BFe({config:e,slidesCount:p}){const{wrapAround:f,snapAlign:F,itemsToShow:K=1}=e;let k=0;if(f||K>p)return k;switch(F){case"start":k=0;break;case"end":k=K-1;break;case"center":case"center-odd":k=Math.floor((K-1)/2);break;case"center-even":k=Math.floor((K-2)/2);break;default:k=0;break}return k}function m8({val:e,max:p,min:f}){return p<f?e:Math.min(Math.max(e,f),p)}function zFe({config:e,currentSlide:p,slidesCount:f}){const{snapAlign:F,wrapAround:K,itemsToShow:k=1}=e;let w=p;switch(F){case"center":case"center-odd":w-=(k-1)/2;break;case"center-even":w-=(k-2)/2;break;case"end":w-=k-1;break}return K?w:m8({val:w,max:f-k,min:0})}function zz(e){return e?e.reduce((p,f)=>{var F;return f.type===t.Fragment?[...p,...zz(f.children)]:((F=f.type)===null||F===void 0?void 0:F.name)==="CarouselSlide"?[...p,f]:p},[]):[]}function g8({val:e,max:p,min:f=0}){return e>p?g8({val:e-(p+1),max:p,min:f}):e<f?g8({val:e+(p+1),max:p,min:f}):e}function OFe(e,p){let f;return p?function(...F){const K=this;f||(e.apply(K,F),f=!0,setTimeout(()=>f=!1,p))}:e}function DFe(e,p){let f;return function(...F){f&&clearTimeout(f),f=setTimeout(()=>{e(...F),f=null},p)}}function FFe(e="",p={}){return Object.entries(p).reduce((f,[F,K])=>f.replace(`{${F}}`,String(K)),e)}var NFe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Yd))),p=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},FFe(e.i18n.itemXofY,{currentSlide:p.value+1,slidesCount:f.value}))}}),RFe=t.defineComponent({name:"Carousel",props:Bz,setup(e,{slots:p,emit:f,expose:F}){var K;const k=t.ref(null),w=t.ref([]),n=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Yd));let r=Object.assign({},Yd),b;const y=t.ref((K=e.modelValue)!==null&&K!==void 0?K:0),g=t.ref(0),c=t.ref(0),a=t.ref(0),i=t.ref(0);let u,s;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",a),t.provide("minSlide",i),t.provide("slideWidth",n);function d(){b=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),v(r)}function m(){if(!b||!Object.keys(b).length)return;const ie=Object.keys(b).map(oe=>Number(oe)).sort((oe,ge)=>+ge-+oe);let se=Object.assign({},r);ie.some(oe=>{const ge=window.matchMedia(`(min-width: ${oe}px)`).matches;return ge&&(se=Object.assign(Object.assign({},se),b[oe])),ge}),v(se)}function v(ie){Object.entries(ie).forEach(([se,oe])=>h[se]=oe)}const T=DFe(()=>{m(),A()},16);function A(){if(!k.value)return;const ie=k.value.getBoundingClientRect();n.value=ie.width/h.itemsToShow}function C(){_.value<=0||(c.value=Math.ceil((_.value-1)/2),a.value=LFe({config:h,slidesCount:_.value}),i.value=BFe({config:h,slidesCount:_.value}),h.wrapAround||(y.value=m8({val:y.value,max:a.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",T,{passive:!0}),f("init")}),t.onUnmounted(()=>{s&&clearTimeout(s),u&&clearInterval(u),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const L={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},x=()=>{M.value=!1};function z(ie){["INPUT","TEXTAREA","SELECT"].includes(ie.target.tagName)||(P=ie.type==="touchstart",P||ie.preventDefault(),!(!P&&ie.button!==0||$.value)&&(L.x=P?ie.touches[0].clientX:ie.clientX,L.y=P?ie.touches[0].clientY:ie.clientY,document.addEventListener(P?"touchmove":"mousemove",D,!0),document.addEventListener(P?"touchend":"mouseup",N,!0)))}const D=OFe(ie=>{S.value=!0,E.x=P?ie.touches[0].clientX:ie.clientX,E.y=P?ie.touches[0].clientY:ie.clientY;const se=E.x-L.x,oe=E.y-L.y;I.y=oe,I.x=se},h.throttle);function N(){const ie=h.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,oe=Math.round(I.x/n.value+se)*ie;if(oe&&!P){const ge=_e=>{_e.stopPropagation(),window.removeEventListener("click",ge,!0)};window.addEventListener("click",ge,!0)}Y(y.value-oe),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",D,!0),document.removeEventListener(P?"touchend":"mouseup",N,!0)}function U(){!h.autoplay||h.autoplay<=0||(u=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ne()},h.autoplay))}function G(){u&&(clearInterval(u),u=null),U()}const $=t.ref(!1);function Y(ie){const se=h.wrapAround?ie:m8({val:ie,max:a.value,min:i.value});y.value===se||$.value||(f("slide-start",{slidingToIndex:ie,currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!0,g.value=y.value,y.value=se,s=setTimeout(()=>{if(h.wrapAround){const oe=g8({val:se,max:a.value,min:0});oe!==y.value&&(y.value=oe,f("loop",{currentSlideIndex:y.value,slidingToIndex:ie}))}f("update:modelValue",y.value),f("slide-end",{currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!1,G()},h.transition))}function ne(){Y(y.value+h.itemsToScroll)}function H(){Y(y.value-h.itemsToScroll)}const J={slideTo:Y,next:ne,prev:H};t.provide("nav",J),t.provide("isSliding",$);const ee=t.computed(()=>zFe({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const ie=h.dir==="rtl"?-1:1,se=ee.value*n.value*ie;return{transform:`translateX(${I.x-se}px)`,transition:`${$.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Q(){d(),m(),C(),A(),G()}Object.keys(Bz).forEach(ie=>{["modelValue"].includes(ie)||t.watch(()=>e[ie],Q)}),t.watch(()=>e.modelValue,ie=>{ie!==y.value&&Y(Number(ie))}),t.watch(_,C),f("before-init"),d();const le={config:h,slidesCount:_,slideWidth:n,next:ne,prev:H,slideTo:Y,currentSlide:y,maxSlide:a,minSlide:i,middleSlide:c};F({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:d,restartCarousel:Q,slideTo:Y,next:ne,prev:H,nav:J,data:le});const ce=p.default||p.slides,de=p.addons,pe=t.reactive(le);return()=>{const ie=zz(ce==null?void 0:ce(pe)),se=(de==null?void 0:de(pe))||[];ie.forEach((ve,xe)=>ve.props.index=xe);let oe=ie;if(h.wrapAround){const ve=ie.map((Te,Se)=>t.cloneVNode(Te,{index:-ie.length+Se,isClone:!0,key:`clone-before-${Se}`})),xe=ie.map((Te,Se)=>t.cloneVNode(Te,{index:ie.length+Se,isClone:!0,key:`clone-after-${Se}`}));oe=[...ve,...ie,...xe]}w.value=ie,_.value=Math.max(ie.length,1);const ge=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:h.mouseDrag?z:null,onTouchstartPassiveCapture:h.touchDrag?z:null},oe),_e=t.h("div",{class:"carousel__viewport"},ge);return t.h("section",{ref:k,class:{carousel:!0,"is-sliding":$.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:x},[_e,se,t.h(NFe)])}}}),Oz;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Oz||(Oz={}));var VFe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:p}){const f=t.inject("config",t.reactive(Object.assign({},Yd))),F=t.inject("currentSlide",t.ref(0)),K=t.inject("slidesToScroll",t.ref(0)),k=t.inject("isSliding",t.ref(!1)),w=()=>e.index===F.value,n=()=>e.index===F.value-1,_=()=>e.index===F.value+1,h=()=>{const r=Math.floor(K.value),b=Math.ceil(K.value+f.itemsToShow-1);return e.index>=r&&e.index<=b};return()=>{var r;return t.h("li",{style:{width:`${100/f.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":w(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":k.value},"aria-hidden":!h()},(r=p.default)===null||r===void 0?void 0:r.call(p))}}});const jFe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},UFe=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),$Fe={class:"gsc-carousel"},GFe={key:0},HFe=UFe(()=>t.createElementVNode("div",null,"no hay",-1)),qFe=[HFe],WFe={class:"gsc-carousel__2d__slides"},ZFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XFe=["fill"],YFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KFe=["fill"],JFe={class:"gsc-carousel__2d__navigation"},QFe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eNe=["stroke"],tNe={key:1,class:"gsc-carousel__2d__navigation__pagination"},rNe=["onClick"],nNe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aNe=["stroke"],iNe={__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(p=>p 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:p,emit:f}){const F=e;t.useCssVars(a=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const K=t.ref(null),k=t.ref({}),w=t.ref(0),n=t.ref(!1);t.watch(K,a=>{a&&n.value?(n.value=!1,_(F.items)):a&&a.slideTo&&a.slideTo(w.value)},{deep:!0}),t.watch(()=>F.currentItemIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.defaultItemByIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.items,a=>{K.value?_(a):n.value=!0},{immediate:!0});function _(a){a&&a.length&&K.value&&setTimeout(()=>{if(F.defaultItemByProp){const i=F.items.findIndex(u=>u[F.defaultItemByProp.propName]===F.defaultItemByProp.value);i!==-1?(w.value=i,k.value=a[i]):(w.value=0,k.value=a[0])}else w.value=F.defaultItemByIndex,k.value=a[F.defaultItemByIndex];K.value.slideTo&&K.value.slideTo(w.value),k.value&&w.value===0&&f("input",{selectedItem:k.value,selectedItemIndex:w.value})},500)}function h(){K.value&&K.value.next()}function r(){K.value&&K.value.prev()}function b(){K.value&&K.value.updateSlideWidth()}function y(a){K.value&&K.value.slideTo(a)}function g(a){K.value.slideTo(a)}function c(a){const i=a.slidingToIndex<0?F.items.length-1:a.slidingToIndex===F.items.length?0:a.slidingToIndex;w.value=i,k.value=F.items[i],f("update:currentItemIndex",i),f("input",{selectedItem:k.value,selectedItemIndex:w.value})}return p({prev:r,next:h,updateSlideWidth:b,slideTo:y}),(a,i)=>(t.openBlock(),t.createElementBlock("div",$Fe,[F.is3d?(t.openBlock(),t.createElementBlock("div",GFe,qFe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",WFe,[t.createVNode(t.unref(RFe),{ref_key:"carousel2d",ref:K,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:c},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createBlock(t.unref(VFe),{key:s},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=u=>K.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",ZFe,[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,XFe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=u=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",YFe,[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,KFe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",JFe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=u=>r())},[(t.openBlock(),t.createElementBlock("svg",QFe,[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:F.arrowsColor},null,8,eNe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",tNe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${F.navigationHeight}px`,width:`${w.value===s?F.navigationActiveWidth:F.navigationActiveWidth/2}px`,borderRadius:`${F.navigationBorderRadius}px`,backgroundColor:`${w.value===s?F.navigationActiveColor:F.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>g(s)},null,12,rNe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=u=>K.value.next())},[(t.openBlock(),t.createElementBlock("svg",nNe,[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:F.arrowsColor},null,8,aNe)]))])):t.createCommentVNode("",!0)])],2))]))}},oNe=jFe(iNe,[["__scopeId","data-v-54620d25"]]),y8=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f};let Dz=null;const v8={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)Dz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Dz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Fz=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},Nz=v8.setup;v8.setup=Nz?(e,p)=>(Fz(),Nz(e,p)):Fz;const Zx=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),sNe=Zx(()=>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)),lNe=[sNe],cNe=Zx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),uNe=["src"],dNe=Zx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),hNe=Zx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),pNe=["src"],fNe=["src"],mNe={class:"text-container"};function gNe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},lNe,2),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),cNe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,uNe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),dNe,hNe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,pNe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,fNe),t.createElementVNode("div",mNe,[t.createElementVNode("span",{class:t.normalizeClass(k.secondline)},t.toDisplayString(f.score),3),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const yNe=y8(v8,[["render",gNe],["__scopeId","data-v-fd9d1e65"]]);let Rz=null;const _8={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)Rz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Rz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vz=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},jz=_8.setup;_8.setup=jz?(e,p)=>(Vz(),jz(e,p)):Vz;const Xx=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),vNe=Xx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),_Ne=Xx(()=>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)),bNe=[_Ne],xNe={class:"player-container"},wNe=["src"],kNe=["src"],SNe=["src"],TNe={class:"container-score"},CNe=["src"],ANe=["src"],ENe=["src"],MNe=Xx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),INe=Xx(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function PNe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[vNe,t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},bNe,2),t.createElementVNode("div",xNe,[t.createElementVNode("div",{class:t.normalizeClass(k.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(k.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(k.matchboxContainer)},t.toDisplayString(f.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(k.seasonnameContainer)},t.toDisplayString(f.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.date),3)],2),f.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(k.texttitle)},t.toDisplayString(f.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(k.texttitle2)},t.toDisplayString(f.nameCategory),3)),f.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:f.photoProfile,class:t.normalizeClass(k.playerimage)},null,10,wNe)):t.createCommentVNode("",!0),f.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:f.photoProfile,alt:""},null,8,kNe)):t.createCommentVNode("",!0),f.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:f.photoProfile,class:"img-number"},null,8,SNe)):t.createCommentVNode("",!0),t.createElementVNode("div",TNe,[t.createElementVNode("div",{class:t.normalizeClass(k.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(k.teamname)},t.toDisplayString(f.nameHomeTeam),3),t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,CNe),t.createElementVNode("span",{class:t.normalizeClass(k.teamscore)},t.toDisplayString(f.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(k.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(k.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(k.teamscore)},t.toDisplayString(f.scoreAway),3),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,ANe),t.createElementVNode("span",{class:t.normalizeClass(k.teamname)},t.toDisplayString(f.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,ENe),MNe,INe],2)}const LNe={components:{GSCCarousel:oNe,GSCThumbnailHighlightGameHistoric:yNe,GSCThumbnailHighlightGamePlayer:y8(_8,[["render",PNe],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,p){return e.home_team===(p||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const p=new Date(e),f=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][p.getUTCDay()],F=p.getUTCDate(),K=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][p.getUTCMonth()];return`${f} ${F} de ${K}`}else return""},onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,42,54]:p=e.data.category:p=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?p=[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]:p=e.data.category:p=[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?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.data.category!=0?p=e.data.category:p=[607,608,12,55,54,35,14,52,15,53,466,477];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:f,advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const p=PFe.create({headers:{Authorization:`${this.token}`}});var f=[],F={};if(e.type=="player"){const K=await p.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(K.data.seasons[e.season])for(let k=0;k<K.data.seasons[e.season].games_played.length;k++)F={playingAs:this.getPlayingAs(K.data.seasons[e.season].games_played[k],K.data.team_id),category:0,player_id:K.data.player_id,position_id:K.data.position_id,color:K.data.info_thumbnails.colors.background_color,photo_profile:K.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.player_in_action[0]:K.data.info_thumbnails.player_profile,team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].home_team+".png",player_name:K.data.seasons[e.season].games_played[k].home_team_acronym+" "+K.data.seasons[e.season].games_played[k].home_team_score+" : "+K.data.seasons[e.season].games_played[k].visiting_team_score+" "+K.data.seasons[e.season].games_played[k].visiting_team_acronym,team_id:K.data.team_id,has_relevants:K.data.seasons[e.season].games_played[k].has_relevants,team_id_b:K.data.seasons[e.season].games_played[k].home_team,season_id:K.data.seasons[e.season].games_played[k].season_id,name:K.data.seasons[e.season].games_played[k].player_name,seasonname:K.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:K.data.seasons[e.season].games_played[k].game_id,match:K.data.seasons[e.season].games_played[k].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(K.data.seasons[e.season].games_played[k].date),scorehome:K.data.seasons[e.season].games_played[k].home_team_score,scoreaway:K.data.seasons[e.season].games_played[k].visiting_team_score,hometeamacronym:K.data.seasons[e.season].games_played[k].home_team_acronym,visitingteamacronym:K.data.seasons[e.season].games_played[k].visiting_team_acronym,background:K.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.background_player_in_action[0]:K.data.info_thumbnails.player_profile,backgroundhome:K.data.seasons[e.season].games_played[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.seasons[e.season].games_played[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games_played[k].visiting_team+".png",total:K.data.seasons[e.season].games_played[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.seasons[e.season].games_played[k].home_team+"_"+K.data.seasons[e.season].games_played[k].season_id+"_r1.jpg"},f.push(F);else for(let k=0;k<K.data.national_seasons[e.season].games_played.length;k++)F={playingAs:this.getPlayingAs(K.data.national_seasons[e.season].games_played[k],K.data.team_id),category:0,player_id:K.data.player_id,position_id:K.data.position_id,color:K.data.info_thumbnails.colors.background_color,photo_profile:K.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.player_in_action[0]:K.data.info_thumbnails.player_profile,team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].home_team+".png",player_name:K.data.national_seasons[e.season].games_played[k].home_team_acronym+" "+K.data.national_seasons[e.season].games_played[k].home_team_score+" : "+K.data.national_seasons[e.season].games_played[k].visiting_team_score+" "+K.data.national_seasons[e.season].games_played[k].visiting_team_acronym,team_id:K.data.team_id,has_relevants:K.data.national_seasons[e.season].games_played[k].has_relevants,team_id_b:K.data.national_seasons[e.season].games_played[k].home_team,season_id:K.data.national_seasons[e.season].games_played[k].season_id,name:K.data.national_seasons[e.season].games_played[k].player_name,seasonname:K.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:K.data.national_seasons[e.season].games_played[k].game_id,match:K.data.national_seasons[e.season].games_played[k].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(K.data.national_seasons[e.season].games_played[k].date),scorehome:K.data.national_seasons[e.season].games_played[k].home_team_score,scoreaway:K.data.national_seasons[e.season].games_played[k].visiting_team_score,hometeamacronym:K.data.national_seasons[e.season].games_played[k].home_team_acronym,visitingteamacronym:K.data.national_seasons[e.season].games_played[k].visiting_team_acronym,background:K.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.info_thumbnails.images.background_player_in_action[0]:K.data.info_thumbnails.player_profile,backgroundhome:K.data.national_seasons[e.season].games_played[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.national_seasons[e.season].games_played[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.national_seasons[e.season].games_played[k].visiting_team+".png",total:K.data.national_seasons[e.season].games_played[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.national_seasons[e.season].games_played[k].home_team+"_"+K.data.national_seasons[e.season].games_played[k].season_id+"_r1.jpg"},f.push(F)}else if(e.type=="historic"){const K="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===K)return;this.lastHistoricGamesUrl=K;const k=await p.get(K);for(let n=0;n<k.data.plays.length;n++)F={teamId:k.data.plays[n][2],player:"Jornada "+k.data.plays[n][6],player_name:k.data.plays[n][4],season_id:k.data.plays[n][31],game_id:k.data.plays[n][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},f.length>0?this.privilegesTeamId==0?!f.filter(_=>_.game_id===k.data.plays[n][3]).length>0&&f.push(F):!f.filter(_=>_.game_id===k.data.plays[n][3]).length>0&&k.data.plays[n][2]===this.privilegesTeamId&&f.push(F):(this.privilegesTeamId==0||k.data.plays[n][2]===this.privilegesTeamId)&&f.push(F);const w=k.data.thumbnails;for(let n=0;n<f.length;n++){const _=Math.floor(Math.random()*w[f[n].game_id].info_thumbnails.images.background_default_games.length);f[n].background="https://golstatsimages.blob.core.windows.net/images-library/"+w[f[n].game_id].info_thumbnails.images.background_default_games[_],f[n].backgroundhome=w[f[n].game_id].info_thumbnails.home_colors.background_color,f[n].backgroundaway=w[f[n].game_id].info_thumbnails.away_colors.background_color,f[n].logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+w[f[n].game_id].info_thumbnails.away_colors.team_id+".png",f[n].logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+w[f[n].game_id].info_thumbnails.home_colors.team_id+".png",f[n].match=w[f[n].game_id].matchday_name.replace("Matchday","Jor"),f[n].playingAs=w[f[n].game_id].info_thumbnails.home_colors.team_id===f[n].teamId?1:2,f[n].seasonname=w[f[n].game_id].season_name,f[n].score=w[f[n].game_id].score[0]+" - "+w[f[n].game_id].score[1],f[n].category=0}}else{const K=await p.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let k=0;k<K.data.seasons[e.season].games.length;k++){const w=Math.floor(Math.random()*K.data.seasons[e.season].games[k].info_thumbnails.images.background_default_games.length);F={playingAs:this.getPlayingAs(K.data.seasons[e.season].games[k],K.data.team_id),category:0,game_id:K.data.seasons[e.season].games[k].game_id,photo_profile:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].visiting_team+".png",team_logo:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].home_team+".png",player_name:K.data.seasons[e.season].games[k].home_team_acronym+" "+K.data.seasons[e.season].games[k].home_team_score+" : "+K.data.seasons[e.season].games[k].visiting_team_score+" "+K.data.seasons[e.season].games[k].visiting_team_acronym,team_id_b:K.data.seasons[e.season].games[k].home_team,team_id:K.data.team_id,season_id:K.data.seasons[e.season].games[k].season_id,name:"",seasonname:K.data.seasons[e.season].name,match:K.data.seasons[e.season].games[k].matchday_name.replace("Matchday","Jor"),score:K.data.seasons[e.season].games[k].home_team_score+" : "+K.data.seasons[e.season].games[k].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+K.data.seasons[e.season].games[k].info_thumbnails.images.background_default_games[w],backgroundhome:K.data.seasons[e.season].games[k].info_thumbnails.home_colors.background_color,backgroundaway:K.data.seasons[e.season].games[k].info_thumbnails.away_colors.background_color,logohome:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].home_team+".png",logoaway:"https://golstatsimages.blob.core.windows.net/teams-150/"+K.data.seasons[e.season].games[k].visiting_team+".png",total:K.data.seasons[e.season].games[k].matchday_abbreviation.replace("M","Jor "),background_card:"https://golstatsimages.blob.core.windows.net/golstats2-teams/"+K.data.seasons[e.season].games[k].home_team+"_"+K.data.seasons[e.season].games[k].season_id+"_r1.jpg"},f.push(F)}}this.printData=f,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const p of e)this.highlightsWidth=p.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},BNe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function zNe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return k.printDataFiltered.length>0&&f.canPlayVideos?(t.openBlock(),t.createElementBlock("div",BNe,[t.createVNode(_,t.mergeProps(k.carouselProps,{items:k.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:h})=>[f.data.type=="team"||f.data.type=="historic"?(t.openBlock(),t.createBlock(w,{key:0,items:h,"color-background-home":h.backgroundhome,"color-background-away":h.backgroundaway,"logo-home":h.logohome,"logo-away":h.logoaway,background:h.background,matchday:h.match,onOnclickPlayVideos:r=>k.onclickPlayVideos({data:h,type:1}),"season-name":h.seasonname,score:h.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":h.name,"type-style":"game","color-background-home":h.backgroundhome,"color-background-away":h.backgroundaway,"type-img":"0",date:h.date,"season-name":h.seasonname,matchday:h.match,background:h.background,"name-home-team":h.hometeamacronym,"name-away-team":h.visitingteamacronym,"name-category":f.title,onOnclickPlayVideos:r=>k.onclickPlayVideos({data:h,type:2}),"logo-away":h.logoaway,"logo-home":h.logohome,"score-home":h.scorehome,"photo-profile":h.photo_profile,"score-away":h.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 ONe=y8(LNe,[["render",zNe]]),zAt="",OAt="",DAt="",DNe={components:{GSCSlider:sv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){const p=[1,2,3];let f={seasonId:this.game.is_live==1?this.dataProminentAll.season_id:this.game.regularSeasonId,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:p,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",f)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const p=Math.round(e*10)/10;return Number.isInteger(p)?p.toString()+"%":p.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const p=Math.round(e*10)/10;return Number.isInteger(p)?p.toString()+"%":p.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const p=e.split(/(\*.*?\*)/g).filter(K=>K.trim()!=="");let f=Math.ceil(p.length/2),F="";return p.forEach((K,k)=>{k===f&&(F+="<br/>"),K.startsWith("*")&&K.endsWith("*")?F+=`<span class="text-bold-prominent">${K.slice(1,-1)}</span>`:K.trim()!==""&&(F+=`<span class="text-prominent">${K}</span>`)}),F},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=f.data.data,this.dataProminentAll=f.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=f.data.data,this.dataProminentAll=f.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},FNe=e=>(t.pushScopeId("data-v-9f6d5e8e"),e=e(),t.popScopeId(),e),NNe={class:"data-prominent-game"},RNe={class:"title-data"},VNe={class:"item-data-text"},jNe=["innerHTML"],UNe={class:"contain-stats-control"},$Ne={key:0,class:"title-total"},GNe={key:1,class:"item-total"},HNe=["onClick"],qNe={"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"},WNe=[FNe(()=>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 ZNe(e,p,f,F,K,k){const w=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",NNe,[t.createElementVNode("div",RNe,[f.game.game_status!=4||f.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(w,{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(K.dataProminent,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://golstatsimages.blob.core.windows.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://golstatsimages.blob.core.windows.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",VNe,[t.createElementVNode("div",{class:"container-text",innerHTML:k.textoConNegritas(n.description)},null,8,jNe),t.createElementVNode("div",UNe,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",$Ne,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",GNe,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(k.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],64))])):t.createCommentVNode("",!0),f.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:h=>k.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",qNe,WNe))],12,HNe)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const XNe=ao(DNe,[["render",ZNe],["__scopeId","data-v-9f6d5e8e"]]),NAt="",YNe={components:{GSCCheckbox:z1},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...Xh("nextGeneral",["gameForAnalysis","seasonId"]),...Bu("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 p=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=p.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const f=await wu.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const F in f.data.teams)f.data.teams.hasOwnProperty(F)&&(this.arrTeams[F]=f.data.teams[F])}catch(p){return Promise.reject(p)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const p=typeof e=="string"?parseFloat(e):e;return typeof p=="number"&&!isNaN(p)?p%1===0?p:p%1===0?Math.floor(p):p: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,p,f){if(!p.game_id)return this.objectZeroValues;const F=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,K=e[f].accomplished.avgPostGame/F;return e[f].accomplished.avgPostGame?{numberValue:K<1?K*100:K,numberBarPercent:e[f].accomplished.avgPostGame/F}: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)}},dy=e=>(t.pushScopeId("data-v-f611e6a0"),e=e(),t.popScopeId(),e),KNe={key:0,class:"field-posesion-prominent"},JNe={key:0,class:"title"},QNe={class:"info-data-item"},eRe={class:"item-indicador"},tRe={class:"item-indicador-value"},rRe={key:0},nRe=dy(()=>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)),aRe={key:0,class:"inactiveInfo"},iRe={class:"info-data-item"},oRe={class:"item-indicador"},sRe={class:"item-indicador-value"},lRe=dy(()=>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)),cRe={class:"info-data-item"},uRe={class:"item-indicador"},dRe={class:"item-indicador-value"},hRe={key:0},pRe=dy(()=>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)),fRe={class:"info-data-item"},mRe={class:"item-indicador"},gRe={class:"item-indicador-value"},yRe=dy(()=>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)),vRe={key:0,class:"inactiveInfo"},_Re={class:"info-data-item"},bRe={class:"item-indicador"},xRe={class:"item-indicador-value"},wRe=dy(()=>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)),kRe={class:"info-data-item"},SRe={class:"item-indicador"},TRe={class:"item-indicador-value"},CRe=dy(()=>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 ARe(e,p,f,F,K,k){const w=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",KNe,[f.widthSection>760?(t.openBlock(),t.createElementBlock("div",JNe,"Porcentajes")):t.createCommentVNode("",!0),f.game.game_status==1||f.game.game_status==0||f.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>760?"field-container":f.widthSection>520?"field-container-movil":f.widthSection>440?"field-container-movil-2":f.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>1020?"time-show":f.widthSection>920?"time-show-table-xl":f.widthSection>880?"time-show-table-xl-2":f.widthSection>820?"time-show-table-xl-3":f.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(w,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":k.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>1020?"field-data-container":f.widthSection>920?"field-data-container-xl":f.widthSection>880?"field-data-container-xl-2":f.widthSection>820?"field-data-container-xl-3":f.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+f.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",QNe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",eRe,[t.createElementVNode("div",tRe,[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[k.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",rRe,t.toDisplayString(k.deleteDecimalZero(k.formatNumbers(k.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),nRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.homeTeam.acronym),3)],2)])],2),K.areInactiveVisible&&K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",aRe,[t.createElementVNode("div",iRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",oRe,[t.createElementVNode("div",sRe,t.toDisplayString(K.dataPosession.active_time.inactive_time),1),lRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")},[f.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(K.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+f.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",cRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",uRe,[t.createElementVNode("div",dRe,[K.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[k.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",hRe,t.toDisplayString(k.deleteDecimalZero(k.formatNumbers(k.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),pRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[K.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>760?"field-container":f.widthSection>520?"field-container-movil":f.widthSection>440?"field-container-movil-2":f.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[K.arrTeams[f.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>1020?"time-show":f.widthSection>920?"time-show-table-xl":f.widthSection>880?"time-show-table-xl-2":f.widthSection>820?"time-show-table-xl-3":f.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(w,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":k.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>1020?"field-data-container":f.widthSection>920?"field-data-container-xl":f.widthSection>880?"field-data-container-xl-2":f.widthSection>820?"field-data-container-xl-3":f.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(K.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+f.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",fRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",mRe,[t.createElementVNode("div",gRe,[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].home),1)],64))],64))]),yRe]),f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),K.areInactiveVisible&&K.arrTeams[f.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",vRe,[t.createElementVNode("div",_Re,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",bRe,[t.createElementVNode("div",xRe,t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.inactive_time),1),wRe]),t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")},[f.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(K.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+f.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",kRe,[t.createElementVNode("div",{class:t.normalizeClass(f.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",SRe,[t.createElementVNode("div",TRe,[K.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[f.game.homeTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(K.arrTeams[f.teamSelected.teamId].home),1)],64))],64))]),CRe]),f.game.awayTeam.team_id==f.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(f.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const ERe=ao(YNe,[["render",ARe],["__scopeId","data-v-f611e6a0"]]),RAt="",b8={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(p){throw new Error(p)}}}},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)}}},Uz=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},$z=b8.setup;b8.setup=$z?(e,p)=>(Uz(),$z(e,p)):Uz;const MRe={key:0,class:"text-left"},IRe=["width","src"],PRe=["checked"],LRe=["width","src"],BRe={key:3,class:"text-right"};function zRe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(k.customText)},[f.textOptionLeft!=""&&!f.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MRe,t.toDisplayString(f.textOptionLeft),1)):t.createCommentVNode("",!0),f.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:f.widthIcons,src:f.iconA},null,8,IRe)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:p[0]||(p[0]=(...w)=>k.handleSwitchChange&&k.handleSwitchChange(...w)),checked:K.OptionDefault},null,40,PRe),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([k.customStyle,{"--circle-color":f.circleColorSwitch}])},null,4),f.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:f.widthIcons,src:f.iconB},null,8,LRe)):t.createCommentVNode("",!0),f.textOptionRight!=""&&!f.hiddenLabels?(t.openBlock(),t.createElementBlock("span",BRe,t.toDisplayString(f.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Gz=ao(b8,[["render",zRe],["__scopeId","data-v-62d6b055"]]),VAt="";let Hz=null;const x8={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Hz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Hz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},qz=()=>{t.useCssVars(e=>({f7da229a:e.colorBackgroundHome+"45","5c937204":e.colorBackgroundAway+"45","6dbbe2d2":e.colorBackgroundHome,"6dc206b4":e.colorBackgroundAway}))},Wz=x8.setup;x8.setup=Wz?(e,p)=>(qz(),Wz(e,p)):qz;const Yx=e=>(t.pushScopeId("data-v-4f4f5686"),e=e(),t.popScopeId(),e),ORe=[Yx(()=>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))],DRe=Yx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),FRe=["src"],NRe=Yx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),RRe=Yx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),VRe=["src"],jRe=["src"],URe={class:"text-container"};function $Re(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[f.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},ORe,2)):t.createCommentVNode("",!0),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),DRe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,FRe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),NRe,RRe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,VRe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,jRe),t.createElementVNode("div",URe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const GRe=ao(x8,[["render",$Re],["__scopeId","data-v-4f4f5686"]]),UAt="";let Zz=null;const HRe={components:{GSCThumbnailHighlightGameHistoric:GRe},props:{game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,54]:p=e.data.category:e.data.category==0?p=[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]:p=e.data.category:e.type==3?e.data.category==0?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.data.category!=0?p=e.data.category:this.titleCard=="RESUMEN"?p=[607,608,12,55,54,35,14,52,15,53,466,477]:p=[12,55,54,35];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:f,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const p=wu.create({headers:{Authorization:`${this.token}`}}),f=await p.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),F=await p.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=F.data.tournament_id;const K=f.data.games.findIndex(w=>w.game_id===this.game.gameId);this.gameInfo=f.data.games[K];const k=await p.get(e);this.showHighlight=k.data==""?!1:k.data.plays.length>0,this.showHighlightGoals=k.data==""?!1:k.data.plays.filter(w=>w[0]===12||w[0]===55||w[0]===54||w[0]===35).length>0,this.item.category=0,this.item.game_id=k.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].score[0]+" - "+k.data.thumbnails[k.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=k.data.thumbnails[k.data.game_id]?k.data.thumbnails[k.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=k.data.thumbnails[k.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+k.data.thumbnails[k.data.game_id].home_team+".png":"",this.item.logoaway=k.data.thumbnails[k.data.game_id]?"https://golstatsimages.blob.core.windows.net/teams-150/"+k.data.thumbnails[k.data.game_id].visiting_team+".png":"",this.item.background=k.data.thumbnails[k.data.game_id]?this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+k.data.thumbnails[k.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg":"",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals),this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)Zz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Zz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},qRe={class:"highlights-prominent-game",ref:"gamesContainer"},WRe={class:"video-partido-container__highlight"};function ZRe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",qRe,[t.withDirectives(t.createElementVNode("div",WRe,[t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(K.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[K.item.background!=""?(t.openBlock(),t.createBlock(w,{key:0,"color-background-home":K.item.backgroundhome,"color-background-away":K.item.backgroundaway,"logo-home":K.item.logohome,"logo-away":K.item.logoaway,"is-live":!0,"title-category":f.titleCard,"can-play-videos":f.canPlayVideos,background:K.item.background,matchday:K.item.match,"season-name":K.item.seasonname,onOnclickPlayVideos:p[0]||(p[0]=n=>k.onclickPlayVideos({data:K.item,type:1})),score:K.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","title-category","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)],512),[[t.vShow,f.titleCard=="RESUMEN"&&f.canPlayVideos&&K.showHighlight||f.titleCard=="GOLES"&&f.canPlayVideos&&K.showHighlightGoals]])],512)}const XRe=ao(HRe,[["render",ZRe],["__scopeId","data-v-9989a5fd"]]),$At="";let Xz=null;const w8={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=360?"play-button360":e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=320?"thumbnail-highlights300":e<=330?"thumbnail-highlights310":e<=340?"thumbnail-highlights320":e<=360?"thumbnail-highlights330":e<=395?"thumbnail-highlights350":e<=430?"thumbnail-highlights400":e<=470?"thumbnail-highlights470":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Xz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Xz.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Yz=()=>{t.useCssVars(e=>({"0079ccca":e.colorBackgroundHome+"45","8a32804a":e.colorBackgroundAway+"45","0939ef2a":e.colorBackgroundHome,"0936dd39":e.colorBackgroundAway}))},Kz=w8.setup;w8.setup=Kz?(e,p)=>(Yz(),Kz(e,p)):Yz;const hy=e=>(t.pushScopeId("data-v-3c641234"),e=e(),t.popScopeId(),e),YRe=[hy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),hy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],KRe=[hy(()=>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))],JRe=hy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),QRe=["src"],eVe=hy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),tVe=hy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),rVe=["src"],nVe=["src"],aVe={class:"text-container"};function iVe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(k.thumbnailhighlights)},[f.isLive&&f.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(K.gamesContainerWidth>340?K.gamesContainerWidth>480?"icon-live":"icon-live-tablet":"icon-live-mobile")},YRe,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.playbutton),onClick:p[0]||(p[0]=(...w)=>k.onclickPlayVideos&&k.onclickPlayVideos(...w))},KRe,2),f.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.date)},t.toDisplayString(f.dateGame),3)):t.createCommentVNode("",!0),f.matchday!=""&&f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(k.containerinfogame)},[f.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.matchcontainer)},t.toDisplayString(f.matchday),3)):t.createCommentVNode("",!0),f.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.seasoncontainer)},t.toDisplayString(f.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),JRe,t.createElementVNode("img",{src:f.background,alt:"",class:"bkg-blackwhite position-image"},null,8,QRe),t.createElementVNode("div",{class:t.normalizeClass([k.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(k.baselogoright)},null,2),eVe,tVe,t.createElementVNode("img",{src:f.logoHome,alt:"",class:t.normalizeClass(k.teamlogo)},null,10,rVe),t.createElementVNode("img",{src:f.logoAway,alt:"",class:t.normalizeClass(k.logoright)},null,10,nVe),t.createElementVNode("div",aVe,[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(k.titlename)},t.toDisplayString(f.titleCategory),3)])],2)}const oVe=ao(w8,[["render",iVe],["__scopeId","data-v-3c641234"]]),WAt="";let Jz=null;const sVe={components:{GSCThumbnailHighlightGameHistoricLive:oVe},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},titleCard:{type:String,default:"RESUMEN"},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var p=[];e.type==2?e.data.position_id==1?e.data.category==0?p=[55,324,323,608,39,774,802,52,53,40,54]:p=e.data.category:e.data.category==0?p=[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]:p=e.data.category:e.type==3?e.data.category==0?p=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:p=e.data.category:e.type==4?p=[12,55,"35_r","54_r"]:e.data.category!=0?p=e.data.category:this.titleCard=="RESUMEN"?p=[607,608,12,55,54,35,14,52,15,53,466,477]:p=[12,55,54,35];const f=[1,2,3];let F={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:p,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:f,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(F.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",F)},async getLiveHighlights(){const p=await wu.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);p.data!=""&&(this.showHighlight=p.data==""?!1:p.data.plays.length>0,this.showHighlightGoals=p.data==""?!1:p.data.plays.filter(f=>f[0]===12||f[0]===55||f[0]===54||f[0]===35).length>0,this.item.category=0,this.item.game_id=p.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=p.data.thumbnails[p.data.game_id].score,this.item.backgroundhome=p.data.thumbnails[p.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=p.data.thumbnails[p.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://golstatsimages.blob.core.windows.net/teams-150/"+p.data.thumbnails[p.data.game_id].home_team+".png",this.item.logoaway="https://golstatsimages.blob.core.windows.net/teams-150/"+p.data.thumbnails[p.data.game_id].visiting_team+".png",this.item.background=this.titleCard=="RESUMEN"?"https://golstatsimages.blob.core.windows.net/images-library/"+p.data.thumbnails[p.data.game_id].info_thumbnails.images.background_default_games[0]:"https://golstatsimages.blob.core.windows.net/images-library/Goles_CAT.jpg",this.$emit("showleyendlive",!!(this.showHighlight||this.showHighlightGoals)),this.$emit("showsummarylive",this.showHighlight),this.$emit("showgoalslive",this.showHighlightGoals))},setUpResizeObserver(){if(window.ResizeObserver)Jz=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),Jz.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},lVe={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},cVe={class:"video-partido-container__highlight"},uVe={class:"video-partido-container__image"};function dVe(e,p,f,F,K,k){const w=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",lVe,[t.withDirectives(t.createElementVNode("div",cVe,[t.createCommentVNode("",!0),t.createElementVNode("div",uVe,[t.createVNode(w,{"is-live":!0,game:f.game,"color-background-home":K.item.backgroundhome,"color-background-away":K.item.backgroundaway,"logo-home":K.item.logohome,"logo-away":K.item.logoaway,"title-category":f.titleCard,background:K.item.background,onOnclickPlayVideos:p[1]||(p[1]=n=>k.onclickPlayVideos({data:K.item,type:1})),matchday:K.item.match,"season-name":K.item.seasonname,score:K.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","title-category","background","matchday","season-name","score"])])],512),[[t.vShow,f.titleCard=="RESUMEN"&&f.canPlayVideos&&K.showHighlight||f.titleCard=="GOLES"&&f.canPlayVideos&&K.showHighlightGoals]])],512)}const hVe=ao(sVe,[["render",dVe],["__scopeId","data-v-87da3f19"]]),k8="/play-icn.svg",ZAt="",pVe={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function fVe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",k.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",k.showTooltip]),onClick:p[1]||(p[1]=(...w)=>k.tooltipClick&&k.tooltipClick(...w))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:p[0]||(p[0]=(...w)=>k.closeClick&&k.closeClick(...w))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const mVe=ao(pVe,[["render",fVe],["__scopeId","data-v-b5f07af8"]]),XAt="",gVe=["id"],yVe={class:"game-event__minute"},vVe={class:"game-event__icon"},_Ve=["src"],bVe="/images/events/",xVe=ao({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:p}){const f=e,F=t.computed(()=>({"--icon-bottom":f.gameEvent.isHomeTeam?"30px":"-5px","--border-color":f.gameEvent.isSelected?"#336dff":"#747c83","--background-color":f.gameEvent.isSelected?"#336dff":"#0d1d29"})),K=t.computed(()=>{let w="";return f.gameEvent.category_id===18?w="icn-tiros-de-esquina.svg":f.gameEvent.category_id===20?w="icn-tiro-a-porteria.svg":f.gameEvent.category_id===10?w="icn-cambio.svg":f.gameEvent.category_id===21?w="icn-falta.svg":f.gameEvent.category_id===27?w="atajada.svg":f.gameEvent.category_id===17?w="fuera-de-lugar.svg":f.gameEvent.category_id===4||f.gameEvent.category_id===13||f.gameEvent.category_id===14||f.gameEvent.category_id===16||f.gameEvent.category_id===6&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===5&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===1&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===2&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===3&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===7&&f.gameEvent.event_type_id===1||f.gameEvent.category_id===12&&f.gameEvent.event_type_id===1?w="gol.svg":f.gameEvent.category_id==30||f.gameEvent.category_id==31||f.gameEvent.category_id==32||f.gameEvent.category_id==33||f.gameEvent.category_id==34||f.gameEvent.category_id==35||f.gameEvent.category_id==36||f.gameEvent.category_id==37||f.gameEvent.category_id==38||f.gameEvent.category_id==39||f.gameEvent.category_id==40?w="var.png":f.gameEvent.category_id===28?w="tiempo-agregado.svg":f.gameEvent.category_id===26?w="jugada-peligrosa.svg":f.gameEvent.category_id===22?w="penal-marcado.svg":f.gameEvent.category_id===15||f.gameEvent.category_id===23?w="penal-fallado.svg":f.gameEvent.category_id===8?w="icn-tarjeta-amarilla.svg":f.gameEvent.category_id===9?w="icn-tarjeta-roja.svg":w="generic.svg",`${bVe}${w}`});function k(){p("click-event",f.gameEvent)}return(w,n)=>(t.openBlock(),t.createElementBlock("div",{id:f.gameEvent.play_id,class:"game-event",onClick:k,style:t.normalizeStyle(F.value)},[t.createElementVNode("div",yVe,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",vVe,[t.createElementVNode("img",{src:K.value},null,8,_Ve)])],12,gVe))}},[["__scopeId","data-v-f972a06c"]]),KAt="",wVe=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),kVe={class:"events-line"},SVe={class:"events-line__events"},TVe=wVe(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),CVe=ao({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:p}){function f(F){p("click-event",F)}return(F,K)=>(t.openBlock(),t.createElementBlock("div",kVe,[t.createVNode(t.unref(sv),{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",SVe,[TVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,k=>(t.openBlock(),t.createBlock(xVe,{key:k.id,"game-event":k,onClickEvent:f},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),QAt="",Xv=e=>(t.pushScopeId("data-v-179dec1c"),e=e(),t.popScopeId(),e),AVe={class:"tooltip-data"},EVe=["src"],MVe=Xv(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),IVe=Xv(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),PVe={class:"game-events__team-logo"},LVe=["src"],BVe={class:"game-events__event-info"},zVe={key:0,class:"game-events__event-info__line"},OVe={key:1,class:"game-events__event-info__info"},DVe={class:"game-events__event-info__info__player-photo"},FVe={key:0,class:"game-events__event-info__info__player-photo__img"},NVe=["src"],RVe={class:"game-events__event-info__info__event-name"},VVe={class:"game-events__event-info__info__player-name"},jVe=[Xv(()=>t.createElementVNode("img",{src:k8,alt:""},null,-1))],UVe=Xv(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),$Ve={class:"game-events__events"},GVe={class:"game-events__team-logo"},HVe=["src"],qVe={class:"game-events__event-info"},WVe={key:0,class:"game-events__event-info__line"},ZVe={key:1,class:"game-events__event-info__info"},XVe={class:"game-events__event-info__info__player-photo"},YVe={key:0,class:"game-events__event-info__info__player-photo__img"},KVe=["src"],JVe={class:"game-events__event-info__info__event-name"},QVe={class:"game-events__event-info__info__player-name"},eje=[Xv(()=>t.createElementVNode("img",{src:k8,alt:""},null,-1))],tje="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",rje=ao({__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:p}){const f=e;let F=null,K=0;const k=t.ref([]),w=t.ref(new Map),n=t.ref(""),_=t.ref(null),h=t.ref({visible:!1,link:""}),r=t.ref(new Set),b=t.ref(0),y=t.computed(()=>f.game.is_live||f.game.game_status===0);t.watch(()=>f.game,(T,A)=>{T&&T.gameId!==K?(r.value.clear(),K=T.gameId,a(),c(T.gameId,T.is_live&&T.game_status===4)):T&&T.is_live&&(!A||!A.is_live)?c(T.gameId,!0):T&&!T.is_live&&A.is_live&&a()},{deep:!0,immediate:!0}),t.watch(()=>n.value,(T,A)=>{if(T!==A){const C=w.value.get(A),P=w.value.get(T);if(C&&(C.isSelected=!1),P){if(!P.playerShortName){const[L,E]=P.player_name.split(","),I=L.split(" ");let M="";for(const S of I)if(M+=` ${S}`,S.length>3)break;P.playerShortName=E&&L?`${E.trim().charAt(0)}.${M}`:""}P.isSelected=!0,_.value=P}}});function g(T){F=setInterval(()=>{c(T)},1e3*60*f.gameEventsIntervalMinutes)}async function c(T,A=!1){try{let C=await s(T),P=!1;T!==b.value&&(k.value=[],w.value=new Map,n.value="",r.value.clear(),b.value=T);let L=C.filter(E=>{const I=r.value.has(E.play_id);return I||r.value.add(E.play_id),!I});if(L){L=L.reduce((I,M)=>(P=M.game_finished,M.team_id&&(M.isHomeTeam=M.team_id===f.game.homeTeam.team_id,I.push(M),w.value.set(M.play_id,M)),I),[]);const E=[...k.value];i(L).forEach(I=>{y.value?E.unshift(I):E.push(I)}),k.value=y.value?i(E).reverse():i(E)}k.value&&k.value.length&&(y.value||!n.value&&k.value.length)&&(n.value=k.value[0].play_id),A&&!P?g(T):P&&a()}catch(C){console.error(C)}}function a(){F&&(clearInterval(F),F=null)}function i(T){return T.sort((A,C)=>u(A.matchlapse)+Number(A.minute)-(u(C.matchlapse)+Number(C.minute)))}function u(T){let A=0;switch(T){case 1:A=0;break;case 2:A=45;break;case 3:A=90;break;case 4:A=105;break;case 5:A=120;break}return A}async function s(T){try{const C=(await wu.get(`${tje}${T}/timeline`,{headers:{Authorization:f.token}})).data;return C?C.plays||[]:[]}catch(A){throw new Error(A)}}function d(T){n.value=T.play_id}function m(){f.canPlayVideos&&_.value.play_id&&p("play-video",{categoryId:_.value.main_category_id,playId:_.value.play_id})}function v(){h.value.visible=!1,h.value.link=""}return t.onBeforeUnmount(()=>{a()}),(T,A)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(mVe,{data:h.value,onClose:v},{default:t.withCtx(()=>[t.createElementVNode("div",AVe,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:h.value.link,format:"video/mp4"},null,8,EVe)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[MVe,IVe,t.createElementVNode("div",PVe,[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,LVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",BVe,[_.value&&_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",zVe)):t.createCommentVNode("",!0),_.value&&_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",OVe,[t.createElementVNode("div",DVe,[_.value.player_id?(t.openBlock(),t.createElementBlock("div",FVe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${_.value.player_id}.png`,alt:""},null,8,NVe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",RVe,t.toDisplayString(_.value.event_type_id===1?_.value.event_type_name:_.value.category_name),1),t.createElementVNode("div",VVe," | "+t.toDisplayString(_.value.playerShortName),1),e.canPlayVideos&&_.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},jVe)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),UVe,t.createElementVNode("div",$Ve,[t.createVNode(CVe,{"game-events":k.value,onClickEvent:d},null,8,["game-events"])]),t.createElementVNode("div",GVe,[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,HVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",qVe,[_.value&&!_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",WVe)):t.createCommentVNode("",!0),_.value&&!_.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ZVe,[t.createElementVNode("div",XVe,[_.value.player_id?(t.openBlock(),t.createElementBlock("div",YVe,[t.createElementVNode("img",{src:`https://golstatsimages.blob.core.windows.net/players-profile/${_.value.player_id}.png`,alt:""},null,8,KVe)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",JVe,t.toDisplayString(_.value.event_type_id===1?_.value.event_type_name:_.value.category_name),1),t.createElementVNode("div",QVe," | "+t.toDisplayString(_.value.playerShortName),1),e.canPlayVideos&&_.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},eje)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-179dec1c"]]),nEt="",nje={class:"toggle-buttons__background"},aje=["onClick"],ije={key:0,class:"toggle-buttons__button__img"},oje=["src"],Kx=ao({__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:p}){const f=e;t.useCssVars(w=>({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 F=t.ref(f.selectedButtonIndex),K=t.computed(()=>({"--grid-template-columns":`repeat(${f.buttons.length}, 1fr)`}));t.watch(()=>f.selectedButtonIndex,w=>{F.value=w}),t.watch(F,(w,n)=>{w!==n&&p("change",{index:w,button:f.buttons[w]})});function k(w){F.value=w}return(w,n)=>(t.openBlock(),t.createElementBlock("div",nje,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(K.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:`b${h}`,class:t.normalizeClass(["toggle-buttons__button",{active:F.value===h,right:_.img&&h>0}]),onClick:r=>k(h)},[_.img?(t.openBlock(),t.createElementBlock("div",ije,[t.createElementVNode("img",{src:_.img,alt:""},null,8,oje)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(_.text||_),1)],10,aje))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),iEt="",oEt="",S8=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),sje={class:"tooltip__content"},lje={key:0,class:"tooltip__content__category"},cje={class:"tooltip__content__player"},uje={class:"tooltip__content__player__name"},dje={class:"tooltip__content__player__photo"},hje=["src"],pje={class:"tooltip__content__minute"},fje={key:1,class:"tooltip__content__game"},mje=S8(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),gje={class:"tooltip__content__game__round-abbreviation"},yje={class:"tooltip__content__game__logo"},vje=["src"],_je=S8(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),bje={class:"tooltip__content__game__logo"},xje=["src"],wje={key:2,class:"tooltip__content__team"},kje=S8(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),Sje={class:"tooltip__content__team__logo"},Tje=["src"],Cje=ao({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:p}){const f=e,F=t.computed(()=>({"--top":f.position.y,"--left":f.position.x})),K=t.computed(()=>`${f.event.player.player_name} ${f.event.player.player_lastname}`),k=t.computed(()=>{const[n]=f.event.momentOfPlay.split(":");return`${Number(n)}'`});function w(){p("close")}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:w,style:t.normalizeStyle(F.value)},[t.createElementVNode("div",sje,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",lje,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",cje,[t.createElementVNode("div",uje,t.toDisplayString(K.value),1),t.createElementVNode("div",dje,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,hje)])]),t.createElementVNode("div",pje,"Minuto: "+t.toDisplayString(k.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",fje,[mje,t.createElementVNode("div",gje,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",yje,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,vje)]),_je,t.createElementVNode("div",bje,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,xje)])])):(t.openBlock(),t.createElementBlock("div",wje,[kje,t.createElementVNode("div",Sje,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,Tje)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),Aje=["id"],Eje=["fill"],Mje=["id"],Ije=["fill"],Pje=["stroke-dasharray","x1","y1","x2","y2","marker-end"],Lje=["x","y","stroke-width","fill","stroke"],Bje=["x","y"],zje={__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 p=e,f=t.computed(()=>{const b=[];if(p.eventConnection.hasConnectionPath){const y=p.eventConnection.x1===p.eventConnection.x2&&p.eventConnection.y1===p.eventConnection.y2?1:2;let g=n(p.eventConnection.previousEvent?p.eventConnection.previousEvent.y3:p.eventConnection.y1);const c=_(p.eventConnection.previousEvent?p.eventConnection.previousEvent.x3:p.eventConnection.x1);let a=0,i=0;y===2&&(a=n(p.eventConnection.y2),i=_(p.eventConnection.x2));const u=n(p.eventConnection.y3),s=_(p.eventConnection.x3);y===1?b.push({x1:c,y1:g,x2:s,y2:u}):(b.push({x1:c,y1:g,x2:i,y2:a}),b.push({x1:i,y1:a,x2:s,y2:u}))}return b}),F=t.computed(()=>p.mainEventIdSelected!==0?p.eventConnection.relatedPlayId===p.mainEventIdSelected?1:.1:1),K=t.computed(()=>p.mainEventIdSelected!==0?p.eventConnection.relatedPlayId===p.mainEventIdSelected:!0),k=t.computed(()=>n(p.eventConnection.previousEvent?p.eventConnection.previousEvent.y3:p.eventConnection.y1)),w=t.computed(()=>_(p.eventConnection.previousEvent?p.eventConnection.previousEvent.x3:p.eventConnection.x1));function n(b){return(1-b)*100}function _(b){return b*100}function h(b){Xp.emit("mouse-over-event",{mouseEvent:b,eventConnection:p.eventConnection,position:{x:w.value,y:k.value}})}function r(){Xp.emit("mouse-leave-event",{mainEventId:p.eventConnection.relatedPlayId,eventId:p.eventConnection.playId})}return(b,y)=>(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:F.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Eje)],12,Aje),[[t.vShow,K.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:F.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,Ije)],12,Mje),[[t.vShow,K.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(g,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[g.x1&&g.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${c}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:F.value}),"stroke-dasharray":c===0&&f.value.length===2?"none":"5,5",x1:`${g.x1}%`,y1:`${g.y1}%`,x2:`${g.x2}%`,y2:`${g.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&c===f.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,Pje)),[[t.vShow,K.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:h,onMouseleave:r,style:t.normalizeStyle({cursor:"pointer",opacity:F.value})},[t.createElementVNode("rect",{x:`${w.value}%`,y:`${k.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:F.value}),rx:"14",ry:"14"},null,12,Lje),t.createElementVNode("text",{x:`${w.value}%`,y:`${k.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:F.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,Bje)],36),[[t.vShow,K.value]])],64))}},Oje={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const p=e,f=t.computed(()=>p.eventConnections.getEventsConnectionsByEventType());return(F,K)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(k,w)=>(t.openBlock(),t.createBlock(zje,{key:k.id,color:e.eventConnections.getEventColor(k),"is-last-event":w===f.value.length-1,"event-connection":k,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},lEt="",Dje=e=>(t.pushScopeId("data-v-9c1367ca"),e=e(),t.popScopeId(),e),Fje={class:"soccer-chalkboard"},Nje={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},Rje=Dje(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/field-green-posesion.jpg",alt:""},null,-1)),Vje={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jje=ao({__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 f=CK()?0:1e3;Xp.on("mouse-over-time-event",y=>{_(y),setTimeout(()=>{_(y)},f)}),Xp.on("mouse-leave-time-event",y=>{setTimeout(()=>{k.value==y&&!F.value&&_(0)},f)}),Xp.on("mouse-over-event",y=>{r(y)}),Xp.on("mouse-leave-event",y=>{setTimeout(()=>{y.eventId===w.value&&b()},f)});const F=t.ref(!1),K=t.ref({}),k=t.ref(0),w=t.ref(0),n=t.ref({x:0,y:0});function _(y){k.value=y}function h(){F.value=!1}function r(y){const c=document.getElementById("soccerChalkboardField");if(c){const a=c.getBoundingClientRect(),i=y.position.x/100*a.width+14,u=y.position.y/100*a.height+14,s=i+170>a.width?a.width-170:i,d=u;k.value=y.eventConnection.relatedPlayId,w.value=y.eventConnection.playId,K.value=y.eventConnection,n.value={x:`${s}px`,y:`${d}px`},F.value=!0}}function b(){F.value=!1,k.value=0}return(y,g)=>(t.openBlock(),t.createElementBlock("div",Fje,[t.createElementVNode("div",Nje,[Rje,(t.openBlock(),t.createElementBlock("svg",Vje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(c,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&c.hasTeam(e.teamsSelected)||e.listType==="players"&&c.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(Oje,{key:a,"event-connections":c,"main-event-id-selected":k.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),F.value?(t.openBlock(),t.createBlock(Cje,{key:0,position:n.value,event:K.value,onClose:h},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-9c1367ca"]]),uEt="",Qz=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),Uje={class:"events-timeline"},$je=Qz(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),Gje=["onMouseover","onMouseleave"],Hje=["id"],qje=[Qz(()=>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))],Wje=["fill"],Zje=["mask"],Xje=["stroke"],Yje=ao({__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 p=e,f=["0'","45'","90'"],F=t.computed(()=>p.eventsConnections.reduce((w,n)=>{const _={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[h]=n.mainPlay.momentOfPlay.split(":"),r=parseInt(h);return r>=90?(_.minute=`${r}'`,_.left="100%"):(_.minute=`${r}'`,_.left=`${r/90*100}%`),w.push(_),w},[]));function K(w){Xp.emit("mouse-over-time-event",w.playId)}function k(w){Xp.emit("mouse-leave-time-event",w.playId)}return(w,n)=>(t.openBlock(),t.createElementBlock("div",Uje,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(f,(_,h)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:h},t.toDisplayString(_),1)),64)),$je,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,(_,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(_.teamId)||e.listType==="players"&&e.playersSelected.has(_.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:h,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:_.left,cursor:"pointer"}),onMouseover:r=>K(_),onMouseleave:r=>k(_)},[t.createElementVNode("mask",{id:_.playId.toString(),fill:"white"},qje,8,Hje),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:_.color},null,8,Wje),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(#${_.playId})`},null,8,Zje),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:_.fontColor,"stroke-width":"0.7"},t.toDisplayString(_.minute),9,Xje)])],44,Gje)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),Zu={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Kje=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},Jje={key:1},Qje={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eUe=["fill"],tUe={key:0,class:"checkbox__teams"},rUe={class:"checkbox__teams__logo"},nUe=["src"],aUe={class:"checkbox__teams__logo"},iUe=["src"],oUe={__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:p}){const f=e;t.useCssVars(h=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const F=t.ref(!1),K=t.computed(()=>{const h={color:f.boxValueColor,"font-family":f.fontFamily,height:f.boxWidthAndHeight,width:f.boxWidthAndHeight,minWidth:f.boxWidthAndHeight,"border-radius":f.boxBorderRadius,"margin-top":f.boxMarginTop};return F.value?(h["background-color"]=f.boxBackgroundColor,h.border=`solid ${f.boxBorderWidth} ${f.boxBackgroundColor}`):h.border=`solid ${f.boxBorderWidth} ${f.boxBorderColor}`,h}),k=t.computed(()=>({"font-family":f.boxValueFontFamily,"font-size":f.boxValueFontSize,color:f.boxValueColor,"line-height":1})),w=t.computed(()=>{const h={color:f.labelColor,"font-family":f.fontFamily,"font-size":f.labelFontSize,"white-space":f.labelWhiteSpace,"text-align":f.boxPosition==="top"||f.boxPosition==="bottom"?"center":f.boxPosition};return(f.boxPosition==="left"||f.boxPosition==="right")&&(h[`margin-${f.boxPosition}`]=f.isBoxOnly?"0":f.teamsIds?"8px":"10px"),h});t.watch(()=>f.modelValue,h=>{h!==F.value&&(F.value=h)},{immediate:!0});function n(){f.avoidInteraction||!F.value&&f.avoidToCheck||(F.value=!F.value,p("update:modelValue",F.value))}function _(h){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${h}.png`}return(h,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(K.value)},[F.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(k.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",Jje,[(t.openBlock(),t.createElementBlock("svg",Qje,[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,eUe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",tUe,[t.createElementVNode("div",rUe,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,nUe)]),t.createElementVNode("div",aUe,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,iUe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(w.value)},t.toDisplayString(e.label),5)],2))}},Rl=Kje(oUe,[["__scopeId","data-v-b6f124d8"]]),uc=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},sUe={class:"container"},lUe={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cUe=["fill"],uUe={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dUe=["fill"],hUe={__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(p=>({"563e5242":e.width,a529e9a4:e.height})),(p,f)=>(t.openBlock(),t.createElementBlock("div",sUe,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",lUe,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,cUe)])):(t.openBlock(),t.createElementBlock("svg",uUe,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,dUe)]))]))}},Lg=uc(hUe,[["__scopeId","data-v-166b6226"]]),Yv=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),pUe={class:"productivity"},fUe={class:"productivity__body__offensive"},mUe={class:"productivity__body__title"},gUe={class:"productivity__body__title__info"},yUe={class:"number-of-categories"},vUe={class:"productivity__body__categories"},_Ue={class:"productivity__body__defensive-possession"},bUe={class:"productivity__body__title"},xUe={class:"productivity__body__title__info"},wUe={class:"number-of-categories"},kUe={class:"productivity__body__categories"},SUe={class:"productivity__body__title"},TUe={class:"productivity__body__title__info"},CUe={class:"number-of-categories"},AUe={class:"productivity__body__categories"},EUe={class:"productivity__footer"},MUe={class:"productivity__footer__offenses"},IUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),PUe={class:"productivity__footer__offenses__table"},LUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),BUe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},zUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),OUe={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},DUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),FUe={class:"productivity__footer__offenses__table__row has-padding"},NUe=Yv(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),RUe={__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:p}){const f=e,F=t.ref(!1),K=t.ref(!1),k=t.ref(!1),w=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":f.isExpansionMode?"1fr":"1fr 1fr"})),_=t.computed(()=>f.productivityCategories.offensive.categories.reduce((g,c)=>(c.isSelected&&g++,g),0)),h=t.computed(()=>f.productivityCategories.defensive.categories.reduce((g,c)=>(c.isSelected&&g++,g),0)),r=t.computed(()=>f.productivityCategories.possession.categories.reduce((g,c)=>(c.isSelected&&g++,g),0));t.watch(()=>f.productivityCategories,g=>{w.value.areYellowCardsSelected=g.offensesConditions.areYellowCardsSelected,w.value.areRedCardsSelected=g.offensesConditions.areRedCardsSelected,w.value.areFoulsCommittedSelected=g.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(w,g=>{p("update:offensesConditions",g)},{deep:!0,immediate:!0});function b(g,c){c.isSelected=g,setTimeout(()=>{c.priority=f.numberOfCategoriesSelected},10)}function y(g){g==="offensive"?F.value=!F.value:g==="defensive"?K.value=!K.value:g==="possession"&&(k.value=!k.value)}return(g,c)=>(t.openBlock(),t.createElementBlock("div",pUe,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",fUe,[t.createElementVNode("div",mUe,[t.createElementVNode("div",gUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",yUe,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[0]||(c[0]=a=>y("offensive"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":F.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",vUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||F.value]])]),t.createElementVNode("div",_Ue,[t.createElementVNode("div",bUe,[t.createElementVNode("div",xUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",wUe,"("+t.toDisplayString(h.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[1]||(c[1]=a=>y("defensive"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":K.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||K.value]]),t.createElementVNode("div",SUe,[t.createElementVNode("div",TUe,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",CUe,"("+t.toDisplayString(r.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:c[2]||(c[2]=a=>y("possession"))},[t.withDirectives(t.createVNode(Lg,{"is-expanded":k.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",AUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,a=>(t.openBlock(),t.createElementBlock("div",{key:a.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Rl),{label:a.name,fontFamily:e.fontFamily,"model-value":a.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":a.priority||0,"onUpdate:modelValue":i=>b(i,a)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||k.value]])])],4),t.createElementVNode("div",EUe,[t.createElementVNode("div",MUe,[IUe,t.createElementVNode("div",PUe,[LUe,t.createElementVNode("div",BUe,[zUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areFoulsCommittedSelected,"avoid-interaction":w.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[3]||(c[3]=a=>w.value.areFoulsCommittedSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areFoulsCommittedSelected,"avoid-interaction":!w.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":c[4]||(c[4]=a=>w.value.areFoulsCommittedSelected=!a)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",OUe,[DUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areYellowCardsSelected,"avoid-interaction":w.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[5]||(c[5]=a=>w.value.areYellowCardsSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areYellowCardsSelected,"avoid-interaction":!w.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":c[6]||(c[6]=a=>w.value.areYellowCardsSelected=!a)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",FUe,[NUe,t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":w.value.areRedCardsSelected,"avoid-interaction":w.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[7]||(c[7]=a=>w.value.areRedCardsSelected=a)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Rl),{"model-value":!w.value.areRedCardsSelected,"avoid-interaction":!w.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":c[8]||(c[8]=a=>w.value.areRedCardsSelected=!a)},null,8,["model-value","avoid-interaction"])])])])])])]))}},VUe=uc(RUe,[["__scopeId","data-v-4df743e3"]]),Jx=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),jUe={class:"details__header"},UUe=Jx(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$Ue={class:"details__header__checkbox"},GUe={class:"details__body"},HUe={class:"details__body__playing-as"},qUe=["onClick"],WUe={class:"details__header"},ZUe=Jx(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),XUe={class:"details__header__checkbox"},YUe={class:"details__body"},KUe=Jx(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),JUe={class:"details__body__game-section"},QUe=["onClick"],e$e={class:"details__body"},t$e=Jx(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),r$e={class:"details__body__game-section"},n$e=["onClick"],a$e={__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 p=e;t.useCssVars(r=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const f=t.computed(()=>p.playingAs.every(r=>r.isSelected)),F=t.computed(()=>p.gameSections.every(r=>r.isSelected)),K=t.computed(()=>p.gameSections.reduce((r,b)=>(b.value<=3?r.firstHalf.push(b):r.secondHalf.push(b),r),{firstHalf:[],secondHalf:[]})),k=t.computed(()=>({"--border-radius-first-button":`${p.buttonsBorderRadius} 0 0 ${p.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${p.buttonsBorderRadius} ${p.buttonsBorderRadius} 0`}));function w(r){r?p.playingAs.forEach(b=>{b.isSelected=!0}):p.playingAs.forEach((b,y)=>{b.isSelected=y===0})}function n(r){p.playingAs.filter(b=>b.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function _(r){p.gameSections.filter(b=>b.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function h(r){r?p.gameSections.forEach(b=>{b.isSelected=!0}):p.gameSections.forEach((b,y)=>{b.isSelected=y===0})}return(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(k.value)},[t.withDirectives(t.createElementVNode("div",jUe,[UUe,t.createElementVNode("div",$Ue,[t.createVNode(t.unref(Rl),{label:"Todos",fontFamily:e.fontFamily,"model-value":f.value,"onUpdate:modelValue":w},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",GUe,[t.createElementVNode("div",HUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.playingAs,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>n(y)},t.toDisplayString(y.name),11,qUe))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",WUe,[ZUe,t.createElementVNode("div",XUe,[t.createVNode(t.unref(Rl),{label:"Todos",fontFamily:e.fontFamily,"model-value":F.value,"onUpdate:modelValue":h},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",YUe,[KUe,t.createElementVNode("div",JUe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value.firstHalf,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>_(y)},t.toDisplayString(y.text),11,QUe))),128))])]),t.createElementVNode("div",e$e,[t$e,t.createElementVNode("div",r$e,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.value.secondHalf,(y,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:c=>_(y)},t.toDisplayString(y.text),11,n$e))),128))])])],4))}},i$e=uc(a$e,[["__scopeId","data-v-9a3af80d"]]),o$e={class:"scroll-container"},s$e={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(p=>({"6aab424d":e.height,39848040:e.width})),(p,f)=>(t.openBlock(),t.createElementBlock("div",o$e,[t.renderSlot(p.$slots,"default",{},void 0,!0)]))}},eO=uc(s$e,[["__scopeId","data-v-218f5976"]]),l$e={class:"tournaments"},c$e={class:"tournaments__tournament"},u$e={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:p}){const f=e,F=t.ref(!1),K=t.computed(()=>f.tournaments.filter(w=>w.isSelected).length);t.watch(()=>f.tournaments,w=>{const n=w.filter(_=>_.isSelected);F.value=n.length===w.length,p("change-filters-selected",n.length),p("update:filters",f.tournaments)},{immediate:!0,deep:!0});function k(w){f.tournaments.forEach((n,_)=>{n.isSelected=w||(_!==0?w:!0)})}return(w,n)=>(t.openBlock(),t.createElementBlock("div",l$e,[t.createVNode(eO,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",c$e,[t.createVNode(t.unref(Rl),{"model-value":F.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":k},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id||_._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Rl),{modelValue:_.isSelected,"onUpdate:modelValue":h=>_.isSelected=h,label:_.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":K.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},d$e=uc(u$e,[["__scopeId","data-v-590d8ab3"]]),ca={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"},h$e={key:0,class:"plays-golstats__placeholder"},p$e=["onClick"],f$e={key:0,class:"plays-golstats__item__value"},m$e={class:"plays-golstats__item__text"},g$e={class:"plays-golstats__item__svg"},y$e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v$e=["fill"],_$e={__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:p}){const f=e,F=t.computed(()=>({"--grid-template-columns":f.type===ca.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${f.svgWidth}px`,"--svg-height":`${f.svgHeight}px`}));t.watch(()=>f.categories,k=>{const w=k.filter(n=>n.isSelected);p("update:filters",w)},{immediate:!0,deep:!0});function K(k){k.isSelected||(f.categories.forEach(w=>{w.isSelected=!1}),k.isSelected=!0,f.type===ca.GOLSTATS&&p("change-filters-selected",k.value))}return(k,w)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(F.value)},[t.createVNode(eO,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(ca).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",h$e," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:`k${_}`,class:"plays-golstats__item",onClick:h=>K(n)},[e.type===t.unref(ca).GOLSTATS?(t.openBlock(),t.createElementBlock("div",f$e,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",m$e,t.toDisplayString(n.name),1),t.createElementVNode("div",g$e,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",y$e,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,v$e)],512)),[[t.vShow,n.isSelected]])])],8,p$e))),128))]),_:1},8,["height"])],4))}},tO=uc(_$e,[["__scopeId","data-v-af3c1673"]]),b$e=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},T8={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 p=e.which?e.which:e.keyCode();p>31&&(p<48||p>57)&&e.preventDefault()}}}},rO=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},nO=T8.setup;T8.setup=nO?(e,p)=>(rO(),nO(e,p)):rO;const x$e={class:"input-container"},w$e=["type","placeholder","value"],k$e={class:"right-text"};function S$e(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",x$e,[t.createElementVNode("input",{type:f.inputType,placeholder:f.placeholder,value:f.value,style:t.normalizeStyle(k.inputStyle),onKeydown:p[0]||(p[0]=(...w)=>k.onKeyDown&&k.onKeyDown(...w)),onInput:p[1]||(p[1]=(...w)=>k.updateInputValue&&k.updateInputValue(...w))},null,44,w$e),t.createElementVNode("div",k$e,t.toDisplayString(f.textRight),1)])}const aO=b$e(T8,[["render",S$e],["__scopeId","data-v-b73049e7"]]),T$e=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},C8={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))}}},iO=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},oO=C8.setup;C8.setup=oO?(e,p)=>(iO(),oO(e,p)):iO;const C$e=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),A$e=["src"],E$e={key:1,class:"text"},M$e=["src"],I$e={class:"stats"},P$e=C$e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),L$e={class:"numstats"},B$e={class:"leyend"};function z$e(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,A$e)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",E$e,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,M$e)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",I$e,[P$e,t.createElementVNode("div",L$e,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",B$e,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const O$e=T$e(C8,[["render",z$e],["__scopeId","data-v-f3ee6b2b"]]),D$e={class:"gsc-dropdown__main-container__item-selected"},F$e=["height","width"],N$e=["stroke"],R$e={class:"gsc-dropdown__items-container"},V$e=["onClick"],j$e={key:0,class:"gsc-dropdown__items-footer"},B0={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-container-padding":f.listContainerPadding,"--list-item-padding":f.listItemPadding,"--list-item-margin":f.listItemMargin,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-border-radius":f.listItemBorderRadius,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--list-margin-top":f.listMarginTop,"--list-left":f.listAlignment==="left"?"0":"auto","--list-right":f.listAlignment==="right"?"0":"auto","--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",D$e,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,N$e)],8,F$e))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",R$e,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,V$e))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",j$e,[t.createVNode(t.unref(O$e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,w.value]])]),_:3})],4))}},Kv={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"},py=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),U$e={class:"universe"},$$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),G$e=py(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),H$e={class:"universe__inputs"},q$e={class:"universe__inputs__input"},W$e={class:"universe__inputs__checkbox"},Z$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),X$e=py(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),Y$e={class:"universe__inputs"},K$e={class:"universe__inputs__input"},J$e={class:"universe__inputs__checkbox"},Q$e=py(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),eGe=py(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),tGe={class:"universe__dropdown"},rGe={class:"selected-item"},sO=11,nGe={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,p)=>p+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:p,emit:f}){const F=e,K=t.ref(!1),k=t.ref(!1),w=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>F.universeFilters,g=>{n.value={...g,lastMonths:g.selectedMonth?g.selectedMonth:g.lastMonths[sO],statistics:{...g.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,g=>{K.value=!g.value.minutesPlayed||Number(g.value.minutesPlayed)===0,k.value=!g.value.percentMinutesPlayed||Number(g.value.percentMinutesPlayed)===0,w.value=!g.value.lastMonths||Number(g.value.lastMonths)===0,f("update:universeFilters",g)},{deep:!0,immediate:!0});function _(g){n.value.minutesPlayed=g}function h(g){n.value.percentMinutesPlayed=g}function r(g,c){switch(c){case"minutes":K.value=g,g&&(n.value.minutesPlayed=0);break;case"percent":k.value=g,g&&(n.value.percentMinutesPlayed=0);break;case"months":w.value=g,g&&(n.value.lastMonths=0);break}}function b(){n.value={...F.universeFilters,lastMonths:F.universeFilters.lastMonths[sO],statistics:{...F.universeFilters.statistics}}}function y(g){n.value.lastMonths=g}return p({resetFilters:b}),(g,c)=>(t.openBlock(),t.createElementBlock("div",U$e,[$$e,G$e,t.createElementVNode("div",H$e,[t.createElementVNode("div",q$e,[t.createVNode(t.unref(aO),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:_},null,8,["value"])]),t.createElementVNode("div",W$e,[t.createVNode(t.unref(Rl),{modelValue:K.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":c[0]||(c[0]=a=>r(a,"minutes"))},null,8,["modelValue","fontFamily"])])]),Z$e,X$e,t.createElementVNode("div",Y$e,[t.createElementVNode("div",K$e,[t.createVNode(t.unref(aO),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:h},null,8,["value"])]),t.createElementVNode("div",J$e,[t.createVNode(t.unref(Rl),{modelValue:k.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":c[1]||(c[1]=a=>r(a,"percent"))},null,8,["modelValue","fontFamily"])])]),Q$e,eGe,t.createElementVNode("div",tGe,[t.createVNode(t.unref(B0),t.mergeProps(t.unref(Kv),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:y}),{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",rGe,t.toDisplayString(a)+" "+t.toDisplayString(a===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("div",null,t.toDisplayString(a)+" "+t.toDisplayString(a===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},aGe=uc(nGe,[["__scopeId","data-v-b1fc2fa6"]]),lO=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},iGe={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||[],p=this.min===void 0?0:this.min,f=e.length?e.length-1:100,F=this.max===void 0?f:this.max,K=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(K=1);let k=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(k=e.length-2),F<=p)throw new Error("Invalid props min or max");if(K>k)throw new Error("Invalid props minValue or maxValue");let w=this.rangeMargin===void 0?this.step:this.rangeMargin,n=w%this.step;return n&&(w=w+this.step-n),{valueMin:K<p?p:K,valueMax:k>F?F:k,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:w}},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 p=parseFloat(e.target.value);p<=this.valueMax-this.rangeMarginValue&&p>=this.minimum?this.valueMin=p:e.target.value=this.valueMin},onInputMaxChange(e){let p=parseFloat(e.target.value);p>=this.valueMin+this.rangeMarginValue&&p<=this.maximum?this.valueMax=p: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 p=e.clientX;e.type==="touchmove"&&(p=e.touches[0].clientX);let f=(p-this.startX)/this.barBox.width,F=this.barValue+(this.maximum-this.minimum)*f,K=F%this.step;F-=K,F<this.minimum?F=this.minimum:F>this.valueMax-this.rangeMarginValue&&(F=this.valueMax-this.rangeMarginValue),this.valueMin=F},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 p=e.clientX;e.type==="touchmove"&&(p=e.touches[0].clientX);let f=(p-this.startX)/this.barBox.width,F=this.barValue+(this.maximum-this.minimum)*f,K=F%this.step;F-=K,F<this.valueMin+this.rangeMarginValue?F=this.valueMin+this.rangeMarginValue:F>this.maximum&&(F=this.maximum),this.valueMax=F},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 p=this.step;e.deltaY<0&&(p=-p),e.shiftKey&&e.ctrlKey?this.valueMin+p>=this.minimum&&this.valueMax+p<=this.maximum&&(this.valueMin=this.valueMin+p,this.valueMax=this.valueMax+p):e.ctrlKey?(p=this.valueMax+p,p<this.valueMin+this.rangeMarginValue?p=this.valueMin+this.rangeMarginValue:p>this.maximum&&(p=this.maximum),this.valueMax=p):e.shiftKey&&(p=this.valueMin+p,p<this.minimum?p=this.minimum:p>this.valueMax-this.rangeMarginValue&&(p=this.valueMax-this.rangeMarginValue),this.valueMin=p)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let p={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",p)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],p=e.length?e.length-1:100;return this.max===void 0?p: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(){}},oGe={class:"bar"},sGe=["min","max","step","value"],lGe={class:"caption"},cGe={class:"min-caption"},uGe={class:"bar-inner"},dGe=["min","max","step","value"],hGe={class:"caption"},pGe={class:"max-caption"},fGe={key:0,class:"ruler"},mGe={key:1,class:"sub-ruler"},gGe={key:2,class:"labels"};function yGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([f.baseClassName,K.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:p[10]||(p[10]=t.withModifiers((...w)=>k.onMouseWheel&&k.onMouseWheel(...w),["prevent","stop"]))},[t.createElementVNode("div",oGe,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:k.barMin+"%"}),onClick:p[0]||(p[0]=(...w)=>k.onBarLeftClick&&k.onBarLeftClick(...w))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:k.minimum,max:k.maximum,step:f.step,value:K.valueMin,onInput:p[1]||(p[1]=t.withModifiers((...w)=>k.onInputMinChange&&k.onInputMinChange(...w),["stop","prevent"]))},null,40,sGe),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:p[2]||(p[2]=(...w)=>k.onLeftThumbMousedown&&k.onLeftThumbMousedown(...w)),onTouchstart:p[3]||(p[3]=(...w)=>k.onLeftThumbMousedown&&k.onLeftThumbMousedown(...w))},[t.createElementVNode("div",lGe,[t.createElementVNode("span",cGe,t.toDisplayString(f.minCaption||k.barMinVal),1)])],32),t.createElementVNode("div",uGe,[t.createElementVNode("div",{class:"bar-inner-left",onClick:p[4]||(p[4]=(...w)=>k.onInnerBarLeftClick&&k.onInnerBarLeftClick(...w))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:p[5]||(p[5]=(...w)=>k.onInnerBarRightClick&&k.onInnerBarRightClick(...w))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:k.minimum,max:k.maximum,step:f.step,value:K.valueMax,onInput:p[6]||(p[6]=t.withModifiers((...w)=>k.onInputMaxChange&&k.onInputMaxChange(...w),["stop","prevent"]))},null,40,dGe),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:p[7]||(p[7]=(...w)=>k.onRightThumbMousedown&&k.onRightThumbMousedown(...w)),onTouchstart:p[8]||(p[8]=(...w)=>k.onRightThumbMousedown&&k.onRightThumbMousedown(...w))},[t.createElementVNode("div",hGe,[t.createElementVNode("span",pGe,t.toDisplayString(f.maxCaption||k.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:k.barMax+"%"}),onClick:p[9]||(p[9]=(...w)=>k.onBarRightClick&&k.onBarRightClick(...w))},null,4)]),f.ruler?(t.openBlock(),t.createElementBlock("div",fGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.stepCount,w=>(t.openBlock(),t.createElementBlock("div",{key:w,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),k.subStepCount?(t.openBlock(),t.createElementBlock("div",mGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.subStepCount,w=>(t.openBlock(),t.createElementBlock("div",{key:w,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),f.label?(t.openBlock(),t.createElementBlock("div",gGe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.scaleLabels,w=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:w},t.toDisplayString(w),1))),128))])):t.createCommentVNode("",!0)],34)}const vGe=lO(iGe,[["render",yGe]]),A8={components:{MultiRangeSlider:vGe},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)}}},cO=()=>{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}))},uO=A8.setup;A8.setup=uO?(e,p)=>(cO(),uO(e,p)):cO;const _Ge={class:"center"},bGe={class:"bar-ref"},xGe={class:"bar-ref-element-left"},wGe={class:"bar-ref-element-right"};function kGe(e,p,f,F,K,k){const w=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(k.customStyle)},[t.createElementVNode("div",_Ge,[t.createElementVNode("div",bGe,[t.createElementVNode("div",xGe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(k.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(k.customStyleValue)},t.toDisplayString(K.minValueLocal)+t.toDisplayString(f.minSuffix),5)]),t.createElementVNode("div",wGe,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(k.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(k.customStyleValue)},t.toDisplayString(K.maxValueLocal)+t.toDisplayString(f.maxSuffix),5)])]),t.createVNode(w,{baseClassName:"multi-range-slider",min:f.minLimit,max:f.maxLimit,step:1,ruler:!1,label:!1,"min-value":K.minValueLocal,"max-value":K.maxValueLocal,"range-margin":0,onInput:k.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const dO=lO(A8,[["render",kGe]]),SGe={class:"template-distance"},TGe={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:p}){const f=e,F=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>F.value,k=>{p("update:distanceFilters",k)},{deep:!0}),t.watch(()=>f.distance,k=>{F.value.minValue=k.minValue,F.value.maxValue=k.maxValue,F.value.minLimit=k.minLimit,F.value.maxLimit=k.maxLimit},{immediate:!0,deep:!0});function K(k){F.value.minValue=k.minValue,F.value.maxValue=k.maxValue}return(k,w)=>(t.openBlock(),t.createElementBlock("div",SGe,[t.createVNode(t.unref(dO),{"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":F.value.minLimit,"max-limit":F.value.maxLimit,"min-value":F.value.minValue,"max-value":F.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:K},null,8,["min-limit","max-limit","min-value","max-value"])]))}},CGe=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),AGe={class:"template-games"},EGe={class:"template-games__header"},MGe=CGe(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),IGe={class:"template-games__header__all-games"},PGe={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:p}){const f=e,F=t.ref(!1),K=t.computed(()=>f.gamesFilters.filter(w=>w.isSelected).length);t.watch(()=>f.gamesFilters,w=>{p("update:gamesFilters",w)},{deep:!0}),t.watch(K,w=>{F.value=w===f.gamesFilters.length,p("update:gamesFilters",f.gamesFilters)},{immediate:!0});const k=w=>{w?f.gamesFilters.forEach(n=>{n.isSelected=w}):f.gamesFilters.forEach((n,_)=>{n.isSelected=_===0}),F.value=w};return(w,n)=>(t.openBlock(),t.createElementBlock("div",AGe,[t.createElementVNode("div",EGe,[MGe,t.createElementVNode("div",IGe,[t.createVNode(t.unref(Rl),{modelValue:F.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":k},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:"template-games__game"},[t.createVNode(t.unref(Rl),{modelValue:_.isSelected,"onUpdate:modelValue":r=>_.isSelected=r,label:_.label,"teams-ids":_.teamsIds,"avoid-interaction":K.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},LGe=uc(PGe,[["__scopeId","data-v-be32e3d8"]]),BGe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},E8={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))}}},hO=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},pO=E8.setup;E8.setup=pO?(e,p)=>(hO(),pO(e,p)):hO;const zGe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),OGe=["src"],DGe={key:1,class:"text"},FGe=["src"],NGe={class:"stats"},RGe=zGe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),VGe={class:"numstats"},jGe={class:"leyend"};function UGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,OGe)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",DGe,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,FGe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",NGe,[RGe,t.createElementVNode("div",VGe,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",jGe,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const M8=BGe(E8,[["render",UGe],["__scopeId","data-v-f3ee6b2b"]]),$Ge=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},I8={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))}}},fO=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},mO=I8.setup;I8.setup=mO?(e,p)=>(fO(),mO(e,p)):fO;const GGe=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),HGe=["src"],qGe={key:1,class:"text"},WGe=["src"],ZGe={class:"stats"},XGe=GGe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),YGe={class:"numstats"},KGe={class:"leyend"};function JGe(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,HGe)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",qGe,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,WGe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",ZGe,[XGe,t.createElementVNode("div",YGe,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",KGe,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const QGe=$Ge(I8,[["render",JGe],["__scopeId","data-v-f3ee6b2b"]]),eHe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},tHe={key:1},rHe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nHe=["fill"],aHe={key:0,class:"checkbox__teams"},iHe={class:"checkbox__teams__logo"},oHe=["src"],sHe={class:"checkbox__teams__logo"},lHe=["src"],cHe={__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:p}){const f=e;t.useCssVars(h=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const F=t.ref(!1),K=t.computed(()=>{const h={color:f.boxValueColor,"font-family":f.fontFamily,height:f.boxWidthAndHeight,width:f.boxWidthAndHeight,minWidth:f.boxWidthAndHeight,"border-radius":f.boxBorderRadius,"margin-top":f.boxMarginTop};return F.value?(h["background-color"]=f.boxBackgroundColor,h.border=`solid ${f.boxBorderWidth} ${f.boxBackgroundColor}`):h.border=`solid ${f.boxBorderWidth} ${f.boxBorderColor}`,h}),k=t.computed(()=>({"font-family":f.boxValueFontFamily,"font-size":f.boxValueFontSize,color:f.boxValueColor,"line-height":1})),w=t.computed(()=>{const h={color:f.labelColor,"font-family":f.fontFamily,"font-size":f.labelFontSize,"white-space":f.labelWhiteSpace,"text-align":f.boxPosition==="top"||f.boxPosition==="bottom"?"center":f.boxPosition};return(f.boxPosition==="left"||f.boxPosition==="right")&&(h[`margin-${f.boxPosition}`]=f.isBoxOnly?"0":f.teamsIds?"8px":"10px"),h});t.watch(()=>f.modelValue,h=>{h!==F.value&&(F.value=h)},{immediate:!0});function n(){f.avoidInteraction||!F.value&&f.avoidToCheck||(F.value=!F.value,p("update:modelValue",F.value))}function _(h){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${h}.png`}return(h,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(K.value)},[F.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(k.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",tHe,[(t.openBlock(),t.createElementBlock("svg",rHe,[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,nHe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",aHe,[t.createElementVNode("div",iHe,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,oHe)]),t.createElementVNode("div",sHe,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,lHe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(w.value)},t.toDisplayString(e.label),5)],2))}},uHe=eHe(cHe,[["__scopeId","data-v-b6f124d8"]]),dHe=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},P8={components:{GSCButton:QGe,GSCCheckbox:uHe},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,p)=>({sector:p+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 p=e.sort();JSON.stringify(p)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=p,this.sectors.forEach((f,F)=>{f.active=e.includes(F+1),this.validateField(F)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var p=[];for(let f=0;f<e.length;f++)e[f].active&&p.push(f+1);this.$emit("update:modelValue",p)},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 p=0;p<this.sectors.length;p++)this.sectors[p].active=!0,this.validateField(p);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 p=0;p<this.sectors.length;p++)this.sectors[p].active=!1,this.validateField(p),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 p=0;this.sectors[e].active=!this.sectors[e].active;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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 p=0;for(let f=0;f<this.sectors.length;f++)this.sectors[f].active&&(p+=1);p==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,p==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)}}},gO=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},yO=P8.setup;P8.setup=yO?(e,p)=>(gO(),yO(e,p)):gO;const hHe={class:"gsc-field"},pHe={class:"gsc-field__title-checked"},fHe={class:"gsc-field__title-checked__title"},mHe={class:"gsc-field__container-field"},gHe={class:"gsc-field__container-field__field"},yHe={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},vHe=["stroke"],_He=["stroke","stroke-width"],bHe=["stroke","stroke-width"],xHe=["stroke-width","stroke"],wHe=["fill","fill-opacity","stroke","stroke-width"],kHe=["fill","fill-opacity","stroke","stroke-width"],SHe=["fill","fill-opacity","stroke","stroke-width"],THe=["fill","fill-opacity","stroke","stroke-width"],CHe=["fill","fill-opacity","stroke","stroke-width"],AHe=["fill","fill-opacity","stroke","stroke-width"],EHe=["fill","fill-opacity","stroke","stroke-width"],MHe=["fill","fill-opacity","stroke","stroke-width"],IHe=["fill","fill-opacity","stroke","stroke-width"],PHe=["fill","fill-opacity","stroke","stroke-width"],LHe=["fill","fill-opacity","stroke","stroke-width"],BHe=["fill","fill-opacity","stroke","stroke-width"],zHe=["fill","fill-opacity","stroke","stroke-width"],OHe=["fill","fill-opacity","stroke","stroke-width"],DHe=["fill","fill-opacity","stroke","stroke-width"],FHe=["fill","fill-opacity","stroke","stroke-width"],NHe={class:"gsc-field__container-field__bar-buttons"};function RHe(e,p,f,F,K,k){const w=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",hHe,[t.createElementVNode("div",pHe,[t.createElementVNode("div",fHe,t.toDisplayString(f.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(f.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(w,{label:f.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":f.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:K.all,key:K.update,"model-value":K.all,"onUpdate:modelValue":k.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",mHe,[t.createElementVNode("div",gHe,[(t.openBlock(),t.createElementBlock("svg",yHe,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:f.colorLineField},null,8,vHe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+k.translx+"px, "+k.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:f.colorLineField,"stroke-width":f.borderWidthLineField,"stroke-linecap":"square"},null,12,_He),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+k.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:f.colorLineField,"stroke-width":f.borderWidthLineField,"stroke-linecap":"square"},null,12,bHe),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+k.translxcircle+"px, "+k.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":f.borderWidthLineField,stroke:f.colorLineField},null,12,xHe),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:K.sectors[0].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[0]||(p[0]=_=>k.selectSector(0))},null,8,wHe),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:K.sectors[1].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[1]||(p[1]=_=>k.selectSector(1))},null,8,kHe),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:K.sectors[2].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[2]||(p[2]=_=>k.selectSector(2))},null,8,SHe),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:K.sectors[3].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[3]||(p[3]=_=>k.selectSector(3))},null,8,THe),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:K.sectors[4].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[4]||(p[4]=_=>k.selectSector(4))},null,8,CHe),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:K.sectors[5].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[5]||(p[5]=_=>k.selectSector(5))},null,8,AHe),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:K.sectors[6].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[6]||(p[6]=_=>k.selectSector(6))},null,8,EHe),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:K.sectors[7].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[7]||(p[7]=_=>k.selectSector(7))},null,8,MHe),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:K.sectors[8].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[8]||(p[8]=_=>k.selectSector(8))},null,8,IHe),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:K.sectors[9].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[9]||(p[9]=_=>k.selectSector(9))},null,8,PHe),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:K.sectors[10].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[10]||(p[10]=_=>k.selectSector(10))},null,8,LHe),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:K.sectors[11].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[11]||(p[11]=_=>k.selectSector(11))},null,8,BHe),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:K.sectors[12].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[12]||(p[12]=_=>k.selectSector(12))},null,8,zHe),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:K.sectors[13].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[13]||(p[13]=_=>k.selectSector(13))},null,8,OHe),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:K.sectors[14].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[14]||(p[14]=_=>k.selectSector(14))},null,8,DHe),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:K.sectors[15].active?f.backgroundSectorActive:f.backgroundSectorDisabled,"fill-opacity":f.opacitySector,stroke:f.borderColor,"stroke-width":f.borderWidth,onClick:p[15]||(p[15]=_=>k.selectSector(15))},null,8,FHe)]))]),t.createElementVNode("div",NHe,[(t.openBlock(),t.createBlock(n,{"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:k.btn14,key:K.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn24,key:K.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn34,key:K.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"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:k.btn44,key:K.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const vO=dHe(P8,[["render",RHe],["__scopeId","data-v-b85699b8"]]),VHe={class:"toggle-buttons__background"},jHe=["onClick"],UHe={__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:p}){const f=e;t.useCssVars(w=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const F=t.ref(f.selectedButtonIndex),K=t.computed(()=>({"--grid-template-columns":`repeat(${f.buttons.length}, 1fr)`}));t.watch(()=>f.selectedButtonIndex,w=>{F.value=w}),t.watch(F,(w,n)=>{w!==n&&p("change",{index:w,button:f.buttons[w]})});function k(w){F.value=w}return(w,n)=>(t.openBlock(),t.createElementBlock("div",VHe,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(K.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,h)=>(t.openBlock(),t.createElementBlock("div",{key:`b${h}`,class:t.normalizeClass(["toggle-buttons__button",{active:F.value===h}]),onClick:r=>k(h)},t.toDisplayString(_.text||_),11,jHe))),128))],4)]))}},$He=uc(UHe,[["__scopeId","data-v-ac2af001"]]);function _O(e,p){return function(){return e.apply(p,arguments)}}const{toString:GHe}=Object.prototype,{getPrototypeOf:L8}=Object,Qx=(e=>p=>{const f=GHe.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),Hf=e=>(e=e.toLowerCase(),p=>Qx(p)===e),e3=e=>p=>typeof p===e,{isArray:fy}=Array,Jv=e3("undefined");function HHe(e){return e!==null&&!Jv(e)&&e.constructor!==null&&!Jv(e.constructor)&&Cp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bO=Hf("ArrayBuffer");function qHe(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&bO(e.buffer),p}const WHe=e3("string"),Cp=e3("function"),xO=e3("number"),t3=e=>e!==null&&typeof e=="object",ZHe=e=>e===!0||e===!1,r3=e=>{if(Qx(e)!=="object")return!1;const p=L8(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},XHe=Hf("Date"),YHe=Hf("File"),KHe=Hf("Blob"),JHe=Hf("FileList"),QHe=e=>t3(e)&&Cp(e.pipe),eqe=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||Cp(e.append)&&((p=Qx(e))==="formdata"||p==="object"&&Cp(e.toString)&&e.toString()==="[object FormData]"))},tqe=Hf("URLSearchParams"),[rqe,nqe,aqe,iqe]=["ReadableStream","Request","Response","Headers"].map(Hf),oqe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qv(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),fy(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function wO(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const Bg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),kO=e=>!Jv(e)&&e!==Bg;function B8(){const{caseless:e}=kO(this)&&this||{},p={},f=(F,K)=>{const k=e&&wO(p,K)||K;r3(p[k])&&r3(F)?p[k]=B8(p[k],F):r3(F)?p[k]=B8({},F):fy(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&Qv(arguments[F],f);return p}const sqe=(e,p,f,{allOwnKeys:F}={})=>(Qv(p,(K,k)=>{f&&Cp(K)?e[k]=_O(K,f):e[k]=K},{allOwnKeys:F}),e),lqe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cqe=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},uqe=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&L8(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},dqe=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},hqe=e=>{if(!e)return null;if(fy(e))return e;let p=e.length;if(!xO(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},pqe=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&L8(Uint8Array)),fqe=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},mqe=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},gqe=Hf("HTMLFormElement"),yqe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),SO=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),vqe=Hf("RegExp"),TO=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};Qv(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},_qe=e=>{TO(e,(p,f)=>{if(Cp(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(Cp(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},bqe=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return fy(e)?F(e):F(String(e).split(p)),f},xqe=()=>{},wqe=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,z8="abcdefghijklmnopqrstuvwxyz",CO="0123456789",AO={DIGIT:CO,ALPHA:z8,ALPHA_DIGIT:z8+z8.toUpperCase()+CO},kqe=(e=16,p=AO.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function Sqe(e){return!!(e&&Cp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Tqe=e=>{const p=new Array(10),f=(F,K)=>{if(t3(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=fy(F)?[]:{};return Qv(F,(w,n)=>{const _=f(w,K+1);!Jv(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},Cqe=Hf("AsyncFunction"),Aqe=e=>e&&(t3(e)||Cp(e))&&Cp(e.then)&&Cp(e.catch),EO=((e,p)=>e?setImmediate:p?((f,F)=>(Bg.addEventListener("message",({source:K,data:k})=>{K===Bg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),Bg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",Cp(Bg.postMessage)),Eqe=typeof queueMicrotask<"u"?queueMicrotask.bind(Bg):typeof process<"u"&&process.nextTick||EO,Oa={isArray:fy,isArrayBuffer:bO,isBuffer:HHe,isFormData:eqe,isArrayBufferView:qHe,isString:WHe,isNumber:xO,isBoolean:ZHe,isObject:t3,isPlainObject:r3,isReadableStream:rqe,isRequest:nqe,isResponse:aqe,isHeaders:iqe,isUndefined:Jv,isDate:XHe,isFile:YHe,isBlob:KHe,isRegExp:vqe,isFunction:Cp,isStream:QHe,isURLSearchParams:tqe,isTypedArray:pqe,isFileList:JHe,forEach:Qv,merge:B8,extend:sqe,trim:oqe,stripBOM:lqe,inherits:cqe,toFlatObject:uqe,kindOf:Qx,kindOfTest:Hf,endsWith:dqe,toArray:hqe,forEachEntry:fqe,matchAll:mqe,isHTMLForm:gqe,hasOwnProperty:SO,hasOwnProp:SO,reduceDescriptors:TO,freezeMethods:_qe,toObjectSet:bqe,toCamelCase:yqe,noop:xqe,toFiniteNumber:wqe,findKey:wO,global:Bg,isContextDefined:kO,ALPHABET:AO,generateString:kqe,isSpecCompliantForm:Sqe,toJSONObject:Tqe,isAsyncFn:Cqe,isThenable:Aqe,setImmediate:EO,asap:Eqe};function ll(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Oa.inherits(ll,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:Oa.toJSONObject(this.config),code:this.code,status:this.status}}});const MO=ll.prototype,IO={};["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=>{IO[e]={value:e}}),Object.defineProperties(ll,IO),Object.defineProperty(MO,"isAxiosError",{value:!0}),ll.from=(e,p,f,F,K,k)=>{const w=Object.create(MO);return Oa.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),ll.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const Mqe=null;function O8(e){return Oa.isPlainObject(e)||Oa.isArray(e)}function PO(e){return Oa.endsWith(e,"[]")?e.slice(0,-2):e}function LO(e,p,f){return e?e.concat(p).map(function(F,K){return F=PO(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function Iqe(e){return Oa.isArray(e)&&!e.some(O8)}const Pqe=Oa.toFlatObject(Oa,{},null,function(e){return/^is[A-Z]/.test(e)});function n3(e,p,f){if(!Oa.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Oa.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Oa.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Oa.isSpecCompliantForm(p);if(!Oa.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Oa.isDate(g))return g.toISOString();if(!n&&Oa.isBlob(g))throw new ll("Blob is not supported. Use a Buffer instead.");return Oa.isArrayBuffer(g)||Oa.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Oa.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Oa.isArray(g)&&Iqe(g)||(Oa.isFileList(g)||Oa.endsWith(c,"[]"))&&(i=Oa.toArray(g)))return c=PO(c),i.forEach(function(u,s){!(Oa.isUndefined(u)||u===null)&&p.append(w===!0?LO([c],s,k):w===null?c:c+"[]",_(u))}),!1}return O8(g)?!0:(p.append(LO(a,c,k),_(g)),!1)}const r=[],b=Object.assign(Pqe,{defaultVisitor:h,convertValue:_,isVisitable:O8});function y(g,c){if(!Oa.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Oa.forEach(g,function(a,i){(!(Oa.isUndefined(a)||a===null)&&K.call(p,a,Oa.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Oa.isObject(e))throw new TypeError("data must be an object");return y(e),p}function BO(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function D8(e,p){this._pairs=[],e&&n3(e,this,p)}const zO=D8.prototype;zO.append=function(e,p){this._pairs.push([e,p])},zO.toString=function(e){const p=e?function(f){return e.call(this,f,BO)}:BO;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function Lqe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function OO(e,p,f){if(!p)return e;const F=f&&f.encode||Lqe;Oa.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Oa.isURLSearchParams(p)?p.toString():new D8(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const DO=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Oa.forEach(this.handlers,function(f){f!==null&&p(f)})}},FO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bqe=typeof URLSearchParams<"u"?URLSearchParams:D8,zqe=typeof FormData<"u"?FormData:null,Oqe=typeof Blob<"u"?Blob:null,Dqe={isBrowser:!0,classes:{URLSearchParams:Bqe,FormData:zqe,Blob:Oqe},protocols:["http","https","file","blob","url","data"]},F8=typeof window<"u"&&typeof document<"u",N8=typeof navigator=="object"&&navigator||void 0,Fqe=F8&&(!N8||["ReactNative","NativeScript","NS"].indexOf(N8.product)<0),Nqe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Rqe=F8&&window.location.href||"http://localhost",Vqe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F8,hasStandardBrowserEnv:Fqe,hasStandardBrowserWebWorkerEnv:Nqe,navigator:N8,origin:Rqe},Symbol.toStringTag,{value:"Module"})),yh={...Vqe,...Dqe};function jqe(e,p){return n3(e,new yh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return yh.isNode&&Oa.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function Uqe(e){return Oa.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function $qe(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function NO(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Oa.isArray(K)?K.length:w,_?(Oa.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Oa.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Oa.isArray(K[w])&&(K[w]=$qe(K[w])),!n)}if(Oa.isFormData(e)&&Oa.isFunction(e.entries)){const f={};return Oa.forEachEntry(e,(F,K)=>{p(Uqe(F),K,f,0)}),f}return null}function Gqe(e,p,f){if(Oa.isString(e))try{return(p||JSON.parse)(e),Oa.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const R8={transitional:FO,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Oa.isObject(e);if(K&&Oa.isHTMLForm(e)&&(e=new FormData(e)),Oa.isFormData(e))return F?JSON.stringify(NO(e)):e;if(Oa.isArrayBuffer(e)||Oa.isBuffer(e)||Oa.isStream(e)||Oa.isFile(e)||Oa.isBlob(e)||Oa.isReadableStream(e))return e;if(Oa.isArrayBufferView(e))return e.buffer;if(Oa.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return jqe(e,this.formSerializer).toString();if((k=Oa.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return n3(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),Gqe(e)):e}],transformResponse:[function(e){const p=this.transitional||R8.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Oa.isResponse(e)||Oa.isReadableStream(e))return e;if(e&&Oa.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?ll.from(k,ll.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yh.classes.FormData,Blob:yh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oa.forEach(["delete","get","head","post","put","patch"],e=>{R8.headers[e]={}});const V8=R8,Hqe=Oa.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"]),qqe=e=>{const p={};let f,F,K;return e&&e.split(`
87
87
  `).forEach(function(k){K=k.indexOf(":"),f=k.substring(0,K).trim().toLowerCase(),F=k.substring(K+1).trim(),!(!f||p[f]&&Hqe[f])&&(f==="set-cookie"?p[f]?p[f].push(F):p[f]=[F]:p[f]=p[f]?p[f]+", "+F:F)}),p},RO=Symbol("internals");function e2(e){return e&&String(e).trim().toLowerCase()}function a3(e){return e===!1||e==null?e:Oa.isArray(e)?e.map(a3):String(e)}function Wqe(e){const p=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let F;for(;F=f.exec(e);)p[F[1]]=F[2];return p}const Zqe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function j8(e,p,f,F,K){if(Oa.isFunction(F))return F.call(this,p,f);if(K&&(p=f),!!Oa.isString(p)){if(Oa.isString(F))return p.indexOf(F)!==-1;if(Oa.isRegExp(F))return F.test(p)}}function Xqe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(p,f,F)=>f.toUpperCase()+F)}function Yqe(e,p){const f=Oa.toCamelCase(" "+p);["get","set","has"].forEach(F=>{Object.defineProperty(e,F+f,{value:function(K,k,w){return this[F].call(this,p,K,k,w)},configurable:!0})})}let i3=class{constructor(p){p&&this.set(p)}set(p,f,F){const K=this;function k(n,_,h){const r=e2(_);if(!r)throw new Error("header name must be a non-empty string");const b=Oa.findKey(K,r);(!b||K[b]===void 0||h===!0||h===void 0&&K[b]!==!1)&&(K[b||_]=a3(n))}const w=(n,_)=>Oa.forEach(n,(h,r)=>k(h,r,_));if(Oa.isPlainObject(p)||p instanceof this.constructor)w(p,f);else if(Oa.isString(p)&&(p=p.trim())&&!Zqe(p))w(qqe(p),f);else if(Oa.isHeaders(p))for(const[n,_]of p.entries())k(_,n,F);else p!=null&&k(f,p,F);return this}get(p,f){if(p=e2(p),p){const F=Oa.findKey(this,p);if(F){const K=this[F];if(!f)return K;if(f===!0)return Wqe(K);if(Oa.isFunction(f))return f.call(this,K,F);if(Oa.isRegExp(f))return f.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(p,f){if(p=e2(p),p){const F=Oa.findKey(this,p);return!!(F&&this[F]!==void 0&&(!f||j8(this,this[F],F,f)))}return!1}delete(p,f){const F=this;let K=!1;function k(w){if(w=e2(w),w){const n=Oa.findKey(F,w);n&&(!f||j8(F,F[n],n,f))&&(delete F[n],K=!0)}}return Oa.isArray(p)?p.forEach(k):k(p),K}clear(p){const f=Object.keys(this);let F=f.length,K=!1;for(;F--;){const k=f[F];(!p||j8(this,this[k],k,p,!0))&&(delete this[k],K=!0)}return K}normalize(p){const f=this,F={};return Oa.forEach(this,(K,k)=>{const w=Oa.findKey(F,k);if(w){f[w]=a3(K),delete f[k];return}const n=p?Xqe(k):String(k).trim();n!==k&&delete f[k],f[n]=a3(K),F[n]=!0}),this}concat(...p){return this.constructor.concat(this,...p)}toJSON(p){const f=Object.create(null);return Oa.forEach(this,(F,K)=>{F!=null&&F!==!1&&(f[K]=p&&Oa.isArray(F)?F.join(", "):F)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([p,f])=>p+": "+f).join(`
88
88
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(p){return p instanceof this?p:new this(p)}static concat(p,...f){const F=new this(p);return f.forEach(K=>F.set(K)),F}static accessor(p){const f=(this[RO]=this[RO]={accessors:{}}).accessors,F=this.prototype;function K(k){const w=e2(k);f[w]||(Yqe(F,k),f[w]=!0)}return Oa.isArray(p)?p.forEach(K):K(p),this}};i3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Oa.reduceDescriptors(i3.prototype,({value:e},p)=>{let f=p[0].toUpperCase()+p.slice(1);return{get:()=>e,set(F){this[f]=F}}}),Oa.freezeMethods(i3);const qf=i3;function U8(e,p){const f=this||V8,F=p||f,K=qf.from(F.headers);let k=F.data;return Oa.forEach(e,function(w){k=w.call(f,k,K.normalize(),p?p.status:void 0)}),K.normalize(),k}function VO(e){return!!(e&&e.__CANCEL__)}function my(e,p,f){ll.call(this,e??"canceled",ll.ERR_CANCELED,p,f),this.name="CanceledError"}Oa.inherits(my,ll,{__CANCEL__:!0});function jO(e,p,f){const F=f.config.validateStatus;!f.status||!F||F(f.status)?e(f):p(new ll("Request failed with status code "+f.status,[ll.ERR_BAD_REQUEST,ll.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function Kqe(e){const p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return p&&p[1]||""}function Jqe(e,p){e=e||10;const f=new Array(e),F=new Array(e);let K=0,k=0,w;return p=p!==void 0?p:1e3,function(n){const _=Date.now(),h=F[k];w||(w=_),f[K]=n,F[K]=_;let r=k,b=0;for(;r!==K;)b+=f[r++],r=r%e;if(K=(K+1)%e,K===k&&(k=(k+1)%e),_-w<p)return;const y=h&&_-h;return y?Math.round(b*1e3/y):void 0}}function Qqe(e,p){let f=0,F=1e3/p,K,k;const w=(n,_=Date.now())=>{f=_,K=null,k&&(clearTimeout(k),k=null),e.apply(null,n)};return[(...n)=>{const _=Date.now(),h=_-f;h>=F?w(n,_):(K=n,k||(k=setTimeout(()=>{k=null,w(K)},F-h)))},()=>K&&w(K)]}const o3=(e,p,f=3)=>{let F=0;const K=Jqe(50,250);return Qqe(k=>{const w=k.loaded,n=k.lengthComputable?k.total:void 0,_=w-F,h=K(_),r=w<=n;F=w;const b={loaded:w,total:n,progress:n?w/n:void 0,bytes:_,rate:h||void 0,estimated:h&&n&&r?(n-w)/h:void 0,event:k,lengthComputable:n!=null,[p?"download":"upload"]:!0};e(b)},f)},UO=(e,p)=>{const f=e!=null;return[F=>p[0]({lengthComputable:f,total:e,loaded:F}),p[1]]},$O=e=>(...p)=>Oa.asap(()=>e(...p)),eWe=yh.hasStandardBrowserEnv?((e,p)=>f=>(f=new URL(f,yh.origin),e.protocol===f.protocol&&e.host===f.host&&(p||e.port===f.port)))(new URL(yh.origin),yh.navigator&&/(msie|trident)/i.test(yh.navigator.userAgent)):()=>!0,tWe=yh.hasStandardBrowserEnv?{write(e,p,f,F,K,k){const w=[e+"="+encodeURIComponent(p)];Oa.isNumber(f)&&w.push("expires="+new Date(f).toGMTString()),Oa.isString(F)&&w.push("path="+F),Oa.isString(K)&&w.push("domain="+K),k===!0&&w.push("secure"),document.cookie=w.join("; ")},read(e){const p=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return p?decodeURIComponent(p[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rWe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nWe(e,p){return p?e.replace(/\/?\/$/,"")+"/"+p.replace(/^\/+/,""):e}function GO(e,p){return e&&!rWe(p)?nWe(e,p):p}const HO=e=>e instanceof qf?{...e}:e;function zg(e,p){p=p||{};const f={};function F(h,r,b,y){return Oa.isPlainObject(h)&&Oa.isPlainObject(r)?Oa.merge.call({caseless:y},h,r):Oa.isPlainObject(r)?Oa.merge({},r):Oa.isArray(r)?r.slice():r}function K(h,r,b,y){if(Oa.isUndefined(r)){if(!Oa.isUndefined(h))return F(void 0,h,b,y)}else return F(h,r,b,y)}function k(h,r){if(!Oa.isUndefined(r))return F(void 0,r)}function w(h,r){if(Oa.isUndefined(r)){if(!Oa.isUndefined(h))return F(void 0,h)}else return F(void 0,r)}function n(h,r,b){if(b in p)return F(h,r);if(b in e)return F(void 0,h)}const _={url:k,method:k,data:k,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:n,headers:(h,r,b)=>K(HO(h),HO(r),b,!0)};return Oa.forEach(Object.keys(Object.assign({},e,p)),function(h){const r=_[h]||K,b=r(e[h],p[h],h);Oa.isUndefined(b)&&r!==n||(f[h]=b)}),f}const qO=e=>{const p=zg({},e);let{data:f,withXSRFToken:F,xsrfHeaderName:K,xsrfCookieName:k,headers:w,auth:n}=p;p.headers=w=qf.from(w),p.url=OO(GO(p.baseURL,p.url),e.params,e.paramsSerializer),n&&w.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(Oa.isFormData(f)){if(yh.hasStandardBrowserEnv||yh.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((_=w.getContentType())!==!1){const[h,...r]=_?_.split(";").map(b=>b.trim()).filter(Boolean):[];w.setContentType([h||"multipart/form-data",...r].join("; "))}}if(yh.hasStandardBrowserEnv&&(F&&Oa.isFunction(F)&&(F=F(p)),F||F!==!1&&eWe(p.url))){const h=K&&k&&tWe.read(k);h&&w.set(K,h)}return p},aWe=typeof XMLHttpRequest<"u",iWe=aWe&&function(e){return new Promise(function(p,f){const F=qO(e);let K=F.data;const k=qf.from(F.headers).normalize();let{responseType:w,onUploadProgress:n,onDownloadProgress:_}=F,h,r,b,y,g;function c(){y&&y(),g&&g(),F.cancelToken&&F.cancelToken.unsubscribe(h),F.signal&&F.signal.removeEventListener("abort",h)}let a=new XMLHttpRequest;a.open(F.method.toUpperCase(),F.url,!0),a.timeout=F.timeout;function i(){if(!a)return;const s=qf.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),d={data:!w||w==="text"||w==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:s,config:e,request:a};jO(function(m){p(m),c()},function(m){f(m),c()},d),a=null}"onloadend"in a?a.onloadend=i:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(i)},a.onabort=function(){a&&(f(new ll("Request aborted",ll.ECONNABORTED,e,a)),a=null)},a.onerror=function(){f(new ll("Network Error",ll.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let s=F.timeout?"timeout of "+F.timeout+"ms exceeded":"timeout exceeded";const d=F.transitional||FO;F.timeoutErrorMessage&&(s=F.timeoutErrorMessage),f(new ll(s,d.clarifyTimeoutError?ll.ETIMEDOUT:ll.ECONNABORTED,e,a)),a=null},K===void 0&&k.setContentType(null),"setRequestHeader"in a&&Oa.forEach(k.toJSON(),function(s,d){a.setRequestHeader(d,s)}),Oa.isUndefined(F.withCredentials)||(a.withCredentials=!!F.withCredentials),w&&w!=="json"&&(a.responseType=F.responseType),_&&([b,g]=o3(_,!0),a.addEventListener("progress",b)),n&&a.upload&&([r,y]=o3(n),a.upload.addEventListener("progress",r),a.upload.addEventListener("loadend",y)),(F.cancelToken||F.signal)&&(h=s=>{a&&(f(!s||s.type?new my(null,e,a):s),a.abort(),a=null)},F.cancelToken&&F.cancelToken.subscribe(h),F.signal&&(F.signal.aborted?h():F.signal.addEventListener("abort",h)));const u=Kqe(F.url);if(u&&yh.protocols.indexOf(u)===-1){f(new ll("Unsupported protocol "+u+":",ll.ERR_BAD_REQUEST,e));return}a.send(K||null)})},oWe=(e,p)=>{const{length:f}=e=e?e.filter(Boolean):[];if(p||f){let F=new AbortController,K;const k=function(h){if(!K){K=!0,n();const r=h instanceof Error?h:this.reason;F.abort(r instanceof ll?r:new my(r instanceof Error?r.message:r))}};let w=p&&setTimeout(()=>{w=null,k(new ll(`timeout ${p} of ms exceeded`,ll.ETIMEDOUT))},p);const n=()=>{e&&(w&&clearTimeout(w),w=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(k):h.removeEventListener("abort",k)}),e=null)};e.forEach(h=>h.addEventListener("abort",k));const{signal:_}=F;return _.unsubscribe=()=>Oa.asap(n),_}},sWe=oWe,lWe=function*(e,p){let f=e.byteLength;if(!p||f<p){yield e;return}let F=0,K;for(;F<f;)K=F+p,yield e.slice(F,K),F=K},cWe=async function*(e,p){for await(const f of uWe(e))yield*lWe(f,p)},uWe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const p=e.getReader();try{for(;;){const{done:f,value:F}=await p.read();if(f)break;yield F}}finally{await p.cancel()}},WO=(e,p,f,F)=>{const K=cWe(e,p);let k=0,w,n=_=>{w||(w=!0,F&&F(_))};return new ReadableStream({async pull(_){try{const{done:h,value:r}=await K.next();if(h){n(),_.close();return}let b=r.byteLength;if(f){let y=k+=b;f(y)}_.enqueue(new Uint8Array(r))}catch(h){throw n(h),h}},cancel(_){return n(_),K.return()}},{highWaterMark:2})},s3=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ZO=s3&&typeof ReadableStream=="function",dWe=s3&&(typeof TextEncoder=="function"?(e=>p=>e.encode(p))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XO=(e,...p)=>{try{return!!e(...p)}catch{return!1}},hWe=ZO&&XO(()=>{let e=!1;const p=new Request(yh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!p}),YO=64*1024,$8=ZO&&XO(()=>Oa.isReadableStream(new Response("").body)),l3={stream:$8&&(e=>e.body)};s3&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!l3[p]&&(l3[p]=Oa.isFunction(e[p])?f=>f[p]():(f,F)=>{throw new ll(`Response type '${p}' is not supported`,ll.ERR_NOT_SUPPORT,F)})})})(new Response);const pWe=async e=>{if(e==null)return 0;if(Oa.isBlob(e))return e.size;if(Oa.isSpecCompliantForm(e))return(await new Request(yh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Oa.isArrayBufferView(e)||Oa.isArrayBuffer(e))return e.byteLength;if(Oa.isURLSearchParams(e)&&(e=e+""),Oa.isString(e))return(await dWe(e)).byteLength},fWe=async(e,p)=>Oa.toFiniteNumber(e.getContentLength())??pWe(p),mWe=s3&&(async e=>{let{url:p,method:f,data:F,signal:K,cancelToken:k,timeout:w,onDownloadProgress:n,onUploadProgress:_,responseType:h,headers:r,withCredentials:b="same-origin",fetchOptions:y}=qO(e);h=h?(h+"").toLowerCase():"text";let g=sWe([K,k&&k.toAbortSignal()],w),c;const a=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let i;try{if(_&&hWe&&f!=="get"&&f!=="head"&&(i=await fWe(r,F))!==0){let v=new Request(p,{method:"POST",body:F,duplex:"half"}),T;if(Oa.isFormData(F)&&(T=v.headers.get("content-type"))&&r.setContentType(T),v.body){const[A,C]=UO(i,o3($O(_)));F=WO(v.body,YO,A,C)}}Oa.isString(b)||(b=b?"include":"omit");const u="credentials"in Request.prototype;c=new Request(p,{...y,signal:g,method:f.toUpperCase(),headers:r.normalize().toJSON(),body:F,duplex:"half",credentials:u?b:void 0});let s=await fetch(c);const d=$8&&(h==="stream"||h==="response");if($8&&(n||d&&a)){const v={};["status","statusText","headers"].forEach(P=>{v[P]=s[P]});const T=Oa.toFiniteNumber(s.headers.get("content-length")),[A,C]=n&&UO(T,o3($O(n),!0))||[];s=new Response(WO(s.body,YO,A,()=>{C&&C(),a&&a()}),v)}h=h||"text";let m=await l3[Oa.findKey(l3,h)||"text"](s,e);return!d&&a&&a(),await new Promise((v,T)=>{jO(v,T,{data:m,headers:qf.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:c})})}catch(u){throw a&&a(),u&&u.name==="TypeError"&&/fetch/i.test(u.message)?Object.assign(new ll("Network Error",ll.ERR_NETWORK,e,c),{cause:u.cause||u}):ll.from(u,u&&u.code,e,c)}}),G8={http:Mqe,xhr:iWe,fetch:mWe};Oa.forEach(G8,(e,p)=>{if(e){try{Object.defineProperty(e,"name",{value:p})}catch{}Object.defineProperty(e,"adapterName",{value:p})}});const KO=e=>`- ${e}`,gWe=e=>Oa.isFunction(e)||e===null||e===!1,JO={getAdapter:e=>{e=Oa.isArray(e)?e:[e];const{length:p}=e;let f,F;const K={};for(let k=0;k<p;k++){f=e[k];let w;if(F=f,!gWe(f)&&(F=G8[(w=String(f)).toLowerCase()],F===void 0))throw new ll(`Unknown adapter '${w}'`);if(F)break;K[w||"#"+k]=F}if(!F){const k=Object.entries(K).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let w=p?k.length>1?`since :
89
89
  `+k.map(KO).join(`