@golstats/gsc-filters 1.0.95 → 1.0.96

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,6 +1,6 @@
1
- (function(H,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(H=typeof globalThis<"u"?globalThis:H||self,e(H.GSCFilters={},H.Vue))})(this,function(H,e){"use strict";const m0="",p0="",f0="",h0="",y0="",_0="",g0="",S0="",b0="",Ce={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},ya=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},_a={key:1},ga={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sa=["fill"],ba={key:0,class:"checkbox__teams"},Ca={class:"checkbox__teams__logo"},ka=["src"],Ea={class:"checkbox__teams__logo"},xa=["src"],wa={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const o=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const a=e.ref(!1),n=e.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return a.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),s=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});e.watch(()=>o.modelValue,d=>{d!==a.value&&(a.value=d)},{immediate:!0});function u(){o.avoidInteraction||!a.value&&o.avoidToCheck||(a.value=!a.value,i("update:modelValue",a.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:u},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(n.value)},[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(s.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",_a,[(e.openBlock(),e.createElementBlock("svg",ga,[e.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:t.boxValueColor},null,8,Sa)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",ba,[e.createElementVNode("div",Ca,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,ka)]),e.createElementVNode("div",Ea,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,xa)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},O=ya(wa,[["__scopeId","data-v-b6f124d8"]]),C0="",L=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Va={class:"container"},Na={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ba=["fill"],Fa={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ta=["fill"],we=L({__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(t){return e.useCssVars(i=>({"563e5242":t.width,a529e9a4:t.height})),(i,o)=>(e.openBlock(),e.createElementBlock("div",Va,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",Na,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,Ba)])):(e.openBlock(),e.createElementBlock("svg",Fa,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,Ta)]))]))}},[["__scopeId","data-v-166b6226"]]),E0="",Ie=t=>(e.pushScopeId("data-v-cde7de0b"),t=t(),e.popScopeId(),t),va={key:0,class:"productivity__body__offensive"},$a={class:"productivity__body__title"},Aa={class:"productivity__body__title__info"},Ia={class:"number-of-categories"},Pa={class:"productivity__body__categories"},Ma={key:1,class:"productivity__body__defensive-possession"},Ra={key:0,class:"block"},Da={class:"productivity__body__title"},Oa={class:"productivity__body__title__info"},La={class:"number-of-categories"},za={class:"productivity__body__categories"},Ua={key:1,class:"block"},Wa={class:"productivity__body__title"},Ha={class:"productivity__body__title__info"},Ya={class:"number-of-categories"},Ga={class:"productivity__body__categories"},ja=["onClick"],qa=[Ie(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1))],Za={key:0,class:"productivity__footer"},Ja={class:"productivity__footer__offenses"},Ka=Ie(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),Xa={class:"productivity__footer__offenses__table"},Qa=Ie(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Sí"),e.createElementVNode("div",null,"No")],-1)),ei={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},ti=Ie(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),oi={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},ai=Ie(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),ii={class:"productivity__footer__offenses__table__row has-padding"},si=Ie(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),ni=L({__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.ref(!1),s=e.ref(!1),l=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),u=e.computed(()=>Array.isArray(o.productivityCategories)),c=e.computed(()=>({"--template-columns":o.isExpansionMode||u.value||!o.productivityCategories.offensive||!o.productivityCategories.defensive&&!o.productivityCategories.possession?"1fr":o.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":o.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":o.isForTemplateForm?"32px":"0","--width-block":o.isForTemplateForm?"unset":"100%"})),d=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.offensive.categories.reduce((C,b)=>(b.isSelected&&C++,C),0)}),m=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.defensive.categories.reduce((C,b)=>(b.isSelected&&C++,C),0)}),r=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.possession.categories.reduce((C,b)=>(b.isSelected&&C++,C),0)}),h=e.computed(()=>o.isFromTemplates||o.isForTemplateForm);e.watch(()=>o.productivityCategories,g=>{g.offensesConditions&&(l.value.areYellowCardsSelected=g.offensesConditions.areYellowCardsSelected,l.value.areRedCardsSelected=g.offensesConditions.areRedCardsSelected,l.value.areFoulsCommittedSelected=g.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),e.watch(l,g=>{i("update:offensesConditions",g)},{deep:!0,immediate:!0});function f(g,C){C.isSelected=g,setTimeout(()=>{C.priority=o.numberOfCategoriesSelected},10)}function y(g){i("click-parameters",g)}function _(g){g==="offensive"?a.value=!a.value:g==="defensive"?n.value=!n.value:g==="possession"&&(s.value=!s.value)}return(g,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["productivity",{"is-array":u.value}])},[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(c.value)},[u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.productivityCategories,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"box-value":h.value?null:b.priority||0,"onUpdate:modelValue":P=>f(P,b)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.productivityCategories.offensive?(e.openBlock(),e.createElementBlock("div",va,[e.createElementVNode("div",$a,[e.createElementVNode("div",Aa,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",Ia,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:C[0]||(C[0]=b=>_("offensive"))},[e.withDirectives(e.createVNode(we,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Pa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.offensive.categories,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":h.value?null:b.priority||0,"onUpdate:modelValue":P=>f(P,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])])):e.createCommentVNode("",!0),t.productivityCategories.defensive||t.productivityCategories.possession?(e.openBlock(),e.createElementBlock("div",Ma,[t.productivityCategories.defensive?(e.openBlock(),e.createElementBlock("div",Ra,[e.createElementVNode("div",Da,[e.createElementVNode("div",Oa,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",La,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:C[1]||(C[1]=b=>_("defensive"))},[e.withDirectives(e.createVNode(we,{"is-expanded":n.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",za,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.defensive.categories,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":h.value?null:b.priority||0,"onUpdate:modelValue":P=>f(P,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||n.value]])])):e.createCommentVNode("",!0),t.productivityCategories.possession?(e.openBlock(),e.createElementBlock("div",Ua,[e.createElementVNode("div",Wa,[e.createElementVNode("div",Ha,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",Ya,"("+e.toDisplayString(r.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:C[2]||(C[2]=b=>_("possession"))},[e.withDirectives(e.createVNode(we,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ga,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.possession.categories,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":h.value?null:b.priority||0,"onUpdate:modelValue":P=>f(P,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),b.parameters&&t.areProductivityButtonsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"options",role:"button",onClick:P=>y(b)},qa,8,ja)):e.createCommentVNode("",!0)]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],4),!h.value&&t.productivityCategories.offensesConditions&&t.areOffensesConditionsVisible?(e.openBlock(),e.createElementBlock("div",Za,[e.createElementVNode("div",Ja,[Ka,e.createElementVNode("div",Xa,[Qa,e.createElementVNode("div",ei,[ti,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areFoulsCommittedSelected,"avoid-interaction":l.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":C[3]||(C[3]=b=>l.value.areFoulsCommittedSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areFoulsCommittedSelected,"avoid-interaction":!l.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":C[4]||(C[4]=b=>l.value.areFoulsCommittedSelected=!b)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",oi,[ai,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areYellowCardsSelected,"avoid-interaction":l.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":C[5]||(C[5]=b=>l.value.areYellowCardsSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areYellowCardsSelected,"avoid-interaction":!l.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":C[6]||(C[6]=b=>l.value.areYellowCardsSelected=!b)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",ii,[si,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areRedCardsSelected,"avoid-interaction":l.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":C[7]||(C[7]=b=>l.value.areRedCardsSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areRedCardsSelected,"avoid-interaction":!l.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":C[8]||(C[8]=b=>l.value.areRedCardsSelected=!b)},null,8,["model-value","avoid-interaction"])])])])])])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-cde7de0b"]]),V0="",ke=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),li={class:"details__header"},ri=ke(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),di={class:"details__header__checkbox"},ci={class:"details__body"},ui={class:"details__body__playing-as"},mi=["onClick"],pi={class:"details__header"},fi=ke(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),hi={class:"details__header__checkbox"},yi={class:"details__body"},_i=ke(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),gi={class:"details__body__game-section"},Si=["onClick"],bi={class:"details__body"},Ci=ke(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ki={class:"details__body__game-section"},Ei=["onClick"],xi={key:0,class:"details_body"},wi=ke(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),Vi={class:"radios"},Ni={class:"radio-input"},Bi={class:"radio-input__radio"},Fi=ke(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),Ti={class:"radio-input"},vi={class:"radio-input__radio"},$i=ke(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),Ai={class:"radio-input"},Ii={class:"radio-input__radio"},Pi=ke(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Mi=L({__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},emits:["change-statistic-type"],setup(t,{emit:i}){const o=t;e.useCssVars(h=>({"91d1a498":t.buttonsBackgroundColor,"562e8f56":t.buttonsTextColor,63400359:t.buttonsBorderWidth,"622904f6":t.buttonsBorderColor,"2e90fc4c":t.buttonsBackgroundColorActive,"0684cfbb":t.buttonsTextColorActive,"7e90c7bf":t.buttonsBorderWidthActive,"42275f9c":t.buttonsBorderColorActive}));const a=e.ref("");e.watch(()=>o.statisticType,h=>{a.value=h},{immediate:!0}),e.watch(()=>a.value,h=>{o.statisticType=h,i("change-statistic-type",h)});const n=e.computed(()=>o.playingAs.every(h=>h.isSelected)),s=e.computed(()=>o.gameSections.every(h=>h.isSelected)),l=e.computed(()=>o.gameSections.reduce((h,f)=>(f.value<=3?h.firstHalf.push(f):h.secondHalf.push(f),h),{firstHalf:[],secondHalf:[]})),u=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function c(h){h?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function d(h){o.playingAs.filter(f=>f.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function m(h){o.gameSections.filter(f=>f.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function r(h){h?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(u.value)},[e.withDirectives(e.createElementVNode("div",li,[ri,e.createElementVNode("div",di,[e.createVNode(e.unref(O),{label:"Todos",fontFamily:t.fontFamily,"model-value":n.value,"onUpdate:modelValue":c},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",ci,[e.createElementVNode("div",ui,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,_)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${_}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:g=>d(y)},e.toDisplayString(y.name),11,mi))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",pi,[fi,e.createElementVNode("div",hi,[e.createVNode(e.unref(O),{label:"Todos",fontFamily:t.fontFamily,"model-value":s.value,"onUpdate:modelValue":r},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",yi,[_i,e.createElementVNode("div",gi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.firstHalf,(y,_)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${_}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:g=>m(y)},e.toDisplayString(y.text),11,Si))),128))])]),e.createElementVNode("div",bi,[Ci,e.createElementVNode("div",ki,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.secondHalf,(y,_)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${_}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:g=>m(y)},e.toDisplayString(y.text),11,Ei))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",xi,[wi,e.createElementVNode("div",Vi,[e.createElementVNode("div",Ni,[e.createElementVNode("div",Bi,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=y=>a.value=y),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),Fi])]),e.createElementVNode("div",Ti,[e.createElementVNode("div",vi,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[1]||(f[1]=y=>a.value=y),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),$i])]),e.createElementVNode("div",Ai,[e.createElementVNode("div",Ii,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[2]||(f[2]=y=>a.value=y),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),Pi])])])])):e.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-feb56031"]]),B0="",Ri={class:"scroll-container"},Pe=L({__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(i=>({"6aab424d":t.height,39848040:t.width})),(i,o)=>(e.openBlock(),e.createElementBlock("div",Ri,[e.renderSlot(i.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-218f5976"]]),T0="",Di={class:"tournaments"},Oi={key:0,class:"tournaments__tournament"},Li=L({__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.ref([]),s=e.computed(()=>l.value.filter(d=>d.isSelected).length),l=e.computed(()=>o.tournamentsUrl?n.value:o.tournaments);e.watch(()=>o.tournamentsUrl,async d=>{if(d)try{const r=await(await fetch(d,{headers:{Authorization:o.token}})).json();n.value=r.map((h,f)=>({...h.tournament,seasons:h.seasons,isSelected:!0}))}catch(m){console.error("Error fetching tournaments:",m)}},{immediate:!0}),e.watch(()=>l.value,d=>{const m=d.filter(r=>r.isSelected);a.value=m.length===d.length,i("change-filters-selected",m.length),i("update:filters",l.value)},{immediate:!0,deep:!0});function u(d){l.value.forEach((m,r)=>{m.isSelected=d||(r!==0?d:!0)})}function c(d,m){o.isOneTournamentOnly&&o.tournaments.forEach(r=>{r.isSelected=!1}),m.isSelected=d}return(d,m)=>(e.openBlock(),e.createElementBlock("div",Di,[e.createVNode(Pe,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Oi,[e.createVNode(e.unref(O),{"model-value":a.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":u},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id||r._id,class:"tournaments__tournament"},[e.createVNode(e.unref(O),{"model-value":r.isSelected,label:r.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":s.value===1&&r.isSelected,"onUpdate:modelValue":h=>c(h,r)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},[["__scopeId","data-v-f6bcefe8"]]),p={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams"},$0="",zi={key:0,class:"plays-golstats__placeholder"},Ui=["onClick"],Wi={key:0,class:"plays-golstats__item__value"},Hi={class:"plays-golstats__item__text"},Yi={class:"plays-golstats__item__svg"},Gi={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ji=["fill"],jt=L({__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(t,{emit:i}){const o=t,a=e.computed(()=>({"--grid-template-columns":o.type===p.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${o.svgWidth}px`,"--svg-height":`${o.svgHeight}px`}));e.watch(()=>o.categories,s=>{const l=s.filter(u=>u.isSelected);i("update:filters",l)},{immediate:!0,deep:!0});function n(s){s.isSelected||(o.categories.forEach(l=>{l.isSelected=!1}),s.isSelected=!0,o.type===p.GOLSTATS&&i("change-filters-selected",s.value))}return(s,l)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(a.value)},[e.createVNode(Pe,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(p).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",zi," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(u,c)=>(e.openBlock(),e.createElementBlock("div",{key:`k${c}`,class:"plays-golstats__item",onClick:d=>n(u)},[t.type===e.unref(p).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Wi,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Hi,e.toDisplayString(u.name),1),e.createElementVNode("div",Yi,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Gi,[e.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:t.svgColor},null,8,ji)],512)),[[e.vShow,u.isSelected]])])],8,Ui))),128))]),_:1},8,["height"])],4))}},[["__scopeId","data-v-af3c1673"]]),qi=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},St={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(t){this.$emit("inputval",t.target.value)},onKeyDown(t){if(this.isNumbersOnly){const i=t.which?t.which:t.keyCode();!t.code.startsWith("Numpad")&&i>31&&(i<48||i>57)&&t.preventDefault()}}}},qt=()=>{e.useCssVars(t=>({"71e38669":t.textRightColor,d0c4b7ac:t.textRightFontSize,"101fb94d":t.textRightFontFamily}))},Zt=St.setup;St.setup=Zt?(t,i)=>(qt(),Zt(t,i)):qt;const Zi={class:"input-container"},Ji=["type","placeholder","value"],Ki={class:"right-text"};function Xi(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("input",{type:o.inputType,placeholder:o.placeholder,value:o.value,style:e.normalizeStyle(s.inputStyle),onKeydown:i[0]||(i[0]=(...l)=>s.onKeyDown&&s.onKeyDown(...l)),onInput:i[1]||(i[1]=(...l)=>s.updateInputValue&&s.updateInputValue(...l))},null,44,Ji),e.createElementVNode("div",Ki,e.toDisplayString(o.textRight),1)])}const Qi=qi(St,[["render",Xi],["__scopeId","data-v-76f92928"]]),es=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},bt={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Jt=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Kt=bt.setup;bt.setup=Kt?(t,i)=>(Jt(),Kt(t,i)):Jt;const ts=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),os=["src"],as={key:1,class:"text"},is=["src"],ss={class:"stats"},ns=ts(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),ls={class:"numstats"},rs={class:"leyend"};function ds(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,os)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",as,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,is)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",ss,[ns,e.createElementVNode("div",ls,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",rs,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const cs=es(bt,[["render",ds],["__scopeId","data-v-f3ee6b2b"]]),us={class:"gsc-dropdown__main-container__item-selected"},ms=["height","width"],ps=["stroke"],fs={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs=["fill"],ys={class:"gsc-dropdown__items-container"},_s=["onClick"],gs={key:0,class:"gsc-dropdown__items-footer"},de={__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(t){return["solid","dotted","dashed"].includes(t)}},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:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref({}),n=e.ref(null),s=e.ref(o.isMultipleOption?-1:0),l=e.ref(!1);e.watch(()=>o.items,(f,y)=>{if(!o.modelValue&&(!o.onlyFirstTime||!y||!y.length)&&f&&f.length){if(o.defaultItemByProp){const _=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);_!==-1?(s.value=_,a.value=f[_]):(s.value=0,a.value=f[0])}else a.value=f[o.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>o.modelValue,f=>{if(f){const y=o.items.findIndex(_=>typeof f=="object"?JSON.stringify(_)===JSON.stringify(f):_===f);y!==-1&&(s.value=y,a.value=o.items[y],i("update:modelValue",a.value))}},{immediate:!0});const u=e.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),c=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(l.value=!l.value)}function m(f){n.value&&!n.value.contains(f.target)&&(l.value=!1)}function r(f,y){o.isMultipleOption?s.value=-1:(s.value=y,l.value=!1),a.value=f,i("input",a.value),i("update:modelValue",a.value)}function h(){l.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",m)}),e.onBeforeMount(()=>{document.removeEventListener("click",m)}),(f,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(u.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:d},[e.createElementVNode("div",us,[e.renderSlot(f.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":l.value}]),style:e.normalizeStyle(c.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,ps)],8,ms)):(e.openBlock(),e.createElementBlock("svg",fs,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,hs)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",ys,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(_,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===s.value}]),key:g,onClick:C=>r(_,g)},[e.renderSlot(f.$slots,"availableItem",{item:_})],10,_s)),[[e.vShow,!_.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",gs,[e.createVNode(e.unref(cs),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])]),_:3})],4))}},Se={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},I0="",Ve=t=>(e.pushScopeId("data-v-915d5e00"),t=t(),e.popScopeId(),t),Ss={class:"universe"},bs=Ve(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),Cs={class:"radios"},ks={class:"radio-input"},Es={class:"radio-input__radio"},xs=Ve(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),ws={class:"radio-input"},Vs={class:"radio-input__radio"},Ns=Ve(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Bs=Ve(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),Fs=Ve(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),Ts={class:"universe__inputs"},vs={class:"universe__inputs__input"},$s=Ve(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),As=Ve(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),Is={class:"universe__dropdown"},Ps={class:"selected-item"},Ms=L({__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!1),s=e.ref(!1),l=e.ref(!1),u=e.ref({statistics:{}});e.watch(()=>a.universeFilters,r=>{u.value={...r,lastMonths:r.selectedMonth?r.selectedMonth:r.lastMonths[a.defaultMonthIndex],statistics:{...r.statistics},statisticsRadios:r.statisticsRadios||"total"}},{deep:!0,immediate:!0}),e.watch(()=>u,r=>{n.value=!r.value.minutesPlayed||Number(r.value.minutesPlayed)===0,s.value=!r.value.percentMinutesPlayed||Number(r.value.percentMinutesPlayed)===0,l.value=!r.value.lastMonths||Number(r.value.lastMonths)===0,o("update:universeFilters",r)},{deep:!0,immediate:!0});function c(r){r&&r<1&&(r=1),u.value.minutesPlayed=r}function d(){u.value={...a.universeFilters,lastMonths:a.universeFilters.lastMonths[a.defaultMonthIndex],statistics:{...a.universeFilters.statistics}}}function m(r){u.value.lastMonths=r}return i({resetFilters:d}),(r,h)=>(e.openBlock(),e.createElementBlock("div",Ss,[bs,e.createElementVNode("div",Cs,[e.createElementVNode("div",ks,[e.createElementVNode("div",Es,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=f=>u.value.statisticsRadios=f),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[e.vModelRadio,u.value.statisticsRadios]]),xs])]),e.createElementVNode("div",ws,[e.createElementVNode("div",Vs,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[1]||(h[1]=f=>u.value.statisticsRadios=f),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[e.vModelRadio,u.value.statisticsRadios]]),Ns])])]),Bs,Fs,e.createElementVNode("div",Ts,[e.createElementVNode("div",vs,[e.createVNode(e.unref(Qi),{value:u.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:c},null,8,["value"])])]),$s,As,e.createElementVNode("div",Is,[e.createVNode(e.unref(de),e.mergeProps(e.unref(Se),{items:t.universeFilters.lastMonths,"model-value":u.value.lastMonths,onInput:m}),{default:e.withCtx(({selectedItem:f})=>[e.createElementVNode("div",Ps,e.toDisplayString(f)+" "+e.toDisplayString(f===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",null,e.toDisplayString(f)+" "+e.toDisplayString(f===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-915d5e00"]]),Xt=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Rs={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 t=this.labels||[],i=this.min===void 0?0:this.min,o=t.length?t.length-1:100,a=this.max===void 0?o:this.max,n=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(n=1);let s=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(s=t.length-2),a<=i)throw new Error("Invalid props min or max");if(n>s)throw new Error("Invalid props minValue or maxValue");let l=this.rangeMargin===void 0?this.step:this.rangeMargin,u=l%this.step;return u&&(l=l+this.step-u),{valueMin:n<i?i:n,valueMax:s>a?a:s,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:l}},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(t){let i=parseFloat(t.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:t.target.value=this.valueMin},onInputMaxChange(t){let i=parseFloat(t.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let o=(i-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*o,n=a%this.step;a-=n,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let o=(i-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*o,n=a%this.step;a-=n,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let i=this.step;t.deltaY<0&&(i=-i),t.shiftKey&&t.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):t.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):t.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],i=t.length?t.length-1:100;return this.max===void 0?i:this.max},stepCount(){let t=this.labels||[];return t.length?t.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 t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},Ds={class:"bar"},Os=["min","max","step","value"],Ls={class:"caption"},zs={class:"min-caption"},Us={class:"bar-inner"},Ws=["min","max","step","value"],Hs={class:"caption"},Ys={class:"max-caption"},Gs={key:0,class:"ruler"},js={key:1,class:"sub-ruler"},qs={key:2,class:"labels"};function Zs(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.baseClassName,n.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=e.withModifiers((...l)=>s.onMouseWheel&&s.onMouseWheel(...l),["prevent","stop"]))},[e.createElementVNode("div",Ds,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:s.barMin+"%"}),onClick:i[0]||(i[0]=(...l)=>s.onBarLeftClick&&s.onBarLeftClick(...l))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:s.minimum,max:s.maximum,step:o.step,value:n.valueMin,onInput:i[1]||(i[1]=e.withModifiers((...l)=>s.onInputMinChange&&s.onInputMinChange(...l),["stop","prevent"]))},null,40,Os),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...l)=>s.onLeftThumbMousedown&&s.onLeftThumbMousedown(...l)),onTouchstart:i[3]||(i[3]=(...l)=>s.onLeftThumbMousedown&&s.onLeftThumbMousedown(...l))},[e.createElementVNode("div",Ls,[e.createElementVNode("span",zs,e.toDisplayString(o.minCaption||s.barMinVal),1)])],32),e.createElementVNode("div",Us,[e.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...l)=>s.onInnerBarLeftClick&&s.onInnerBarLeftClick(...l))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...l)=>s.onInnerBarRightClick&&s.onInnerBarRightClick(...l))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:s.minimum,max:s.maximum,step:o.step,value:n.valueMax,onInput:i[6]||(i[6]=e.withModifiers((...l)=>s.onInputMaxChange&&s.onInputMaxChange(...l),["stop","prevent"]))},null,40,Ws),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...l)=>s.onRightThumbMousedown&&s.onRightThumbMousedown(...l)),onTouchstart:i[8]||(i[8]=(...l)=>s.onRightThumbMousedown&&s.onRightThumbMousedown(...l))},[e.createElementVNode("div",Hs,[e.createElementVNode("span",Ys,e.toDisplayString(o.maxCaption||s.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:s.barMax+"%"}),onClick:i[9]||(i[9]=(...l)=>s.onBarRightClick&&s.onBarRightClick(...l))},null,4)]),o.ruler?(e.openBlock(),e.createElementBlock("div",Gs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.stepCount,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),s.subStepCount?(e.openBlock(),e.createElementBlock("div",js,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.subStepCount,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("div",qs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.scaleLabels,l=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:l},e.toDisplayString(l),1))),128))])):e.createCommentVNode("",!0)],34)}const Ct={components:{MultiRangeSlider:Xt(Rs,[["render",Zs]])},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(t){this.minValueLocal=t},immediate:!0},maxValue:{handler(t){this.maxValueLocal=t},immediate:!0}},methods:{onInput(t){this.minValueLocal=t.minValue,this.maxValueLocal=t.maxValue,this.$emit("input",t)}}},Qt=()=>{e.useCssVars(t=>({"318dc560":t.lineOutRangeColor,fcb35722:t.lineInRangeColor,"3edd517e":t.backgroundIndicador,"19ee7a09":t.widthIndicador,"482e6b68":t.heightIndicador,"48824d56":t.borderWidthIndicador,a51d4f50:t.borderColorIndicador,deb3b7b0:t.marginTopIndicador}))},eo=Ct.setup;Ct.setup=eo?(t,i)=>(Qt(),eo(t,i)):Qt;const Js={class:"center"},Ks={class:"bar-ref"},Xs={class:"bar-ref-element-left"},Qs={class:"bar-ref-element-right"};function en(t,i,o,a,n,s){const l=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(s.customStyle)},[e.createElementVNode("div",Js,[e.createElementVNode("div",Ks,[e.createElementVNode("div",Xs,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(s.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(s.customStyleValue)},e.toDisplayString(n.minValueLocal)+e.toDisplayString(o.minSuffix),5)]),e.createElementVNode("div",Qs,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(s.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(s.customStyleValue)},e.toDisplayString(n.maxValueLocal)+e.toDisplayString(o.maxSuffix),5)])]),e.createVNode(l,{baseClassName:"multi-range-slider",min:o.minLimit,max:o.maxLimit,step:1,ruler:!1,label:!1,"min-value":n.minValueLocal,"max-value":n.maxValueLocal,"range-margin":0,onInput:s.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const to=Xt(Ct,[["render",en]]),tn={class:"template-distance"},on={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:i}){const o=t,a=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>a.value,s=>{i("update:distanceFilters",s)},{deep:!0}),e.watch(()=>o.distance,s=>{a.value.minValue=s.minValue,a.value.maxValue=s.maxValue,a.value.minLimit=s.minLimit,a.value.maxLimit=s.maxLimit},{immediate:!0,deep:!0});function n(s){a.value.minValue=s.minValue,a.value.maxValue=s.maxValue}return(s,l)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createVNode(e.unref(to),{"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":a.value.minLimit,"max-limit":a.value.maxLimit,"min-value":a.value.minValue,"max-value":a.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:n},null,8,["min-limit","max-limit","min-value","max-value"])]))}},R0="",an=t=>(e.pushScopeId("data-v-af5f4265"),t=t(),e.popScopeId(),t),sn={class:"template-games"},nn={class:"template-games__header"},ln=an(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),rn={class:"template-games__header__all-games"},dn=L({__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.computed(()=>o.gamesFilters.filter(l=>l.isSelected).length);e.watch(n,l=>{a.value=l===o.gamesFilters.length,i("update:gamesFilters",o.gamesFilters)},{immediate:!0});const s=l=>{l?o.gamesFilters.forEach(u=>{u.isSelected=l}):o.gamesFilters.forEach((u,c)=>{u.isSelected=c===0}),a.value=l};return(l,u)=>(e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",nn,[ln,e.createElementVNode("div",rn,[e.createVNode(e.unref(O),{modelValue:a.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":s},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"template-games__game"},[e.createVNode(e.unref(O),{modelValue:c.isSelected,"onUpdate:modelValue":m=>c.isSelected=m,label:c.label,"teams-ids":c.teamsIds,"avoid-interaction":n.value===1&&c.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},[["__scopeId","data-v-af5f4265"]]),cn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},kt={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},oo=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},ao=kt.setup;kt.setup=ao?(t,i)=>(oo(),ao(t,i)):oo;const un=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),mn=["src"],pn={key:1,class:"text"},fn=["src"],hn={class:"stats"},yn=un(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),_n={class:"numstats"},gn={class:"leyend"};function Sn(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,mn)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",pn,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,fn)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",hn,[yn,e.createElementVNode("div",_n,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",gn,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Je=cn(kt,[["render",Sn],["__scopeId","data-v-f3ee6b2b"]]),bn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Et={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},io=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},so=Et.setup;Et.setup=so?(t,i)=>(io(),so(t,i)):io;const Cn=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),kn=["src"],En={key:1,class:"text"},xn=["src"],wn={class:"stats"},Vn=Cn(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Nn={class:"numstats"},Bn={class:"leyend"};function Fn(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,kn)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",En,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,xn)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",wn,[Vn,e.createElementVNode("div",Nn,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Bn,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Tn=bn(Et,[["render",Fn],["__scopeId","data-v-f3ee6b2b"]]),vn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},$n={key:1},An={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},In=["fill"],Pn={key:0,class:"checkbox__teams"},Mn={class:"checkbox__teams__logo"},Rn=["src"],Dn={class:"checkbox__teams__logo"},On=["src"],Ln={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const o=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const a=e.ref(!1),n=e.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return a.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),s=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});e.watch(()=>o.modelValue,d=>{d!==a.value&&(a.value=d)},{immediate:!0});function u(){o.avoidInteraction||!a.value&&o.avoidToCheck||(a.value=!a.value,i("update:modelValue",a.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:u},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(n.value)},[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(s.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",$n,[(e.openBlock(),e.createElementBlock("svg",An,[e.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:t.boxValueColor},null,8,In)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",Mn,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,Rn)]),e.createElementVNode("div",Dn,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,On)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},zn=vn(Ln,[["__scopeId","data-v-b6f124d8"]]),Un=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},xt={components:{GSCButton:Tn,GSCCheckbox:zn},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,i)=>({sector:i+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(t){const i=t.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((o,a)=>{o.active=t.includes(a+1),this.validateField(a)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var i=[];for(let o=0;o<t.length;o++)t[o].active&&i.push(o+1);this.$emit("update:modelValue",i)},deep:!0}},computed:{translx(){var t=0;return this.widthField>305?t=this.widthField-305:this.widthField==268&&(t=-36),t},transly(){var t=0;return this.heightField>195?(t=this.heightField-195,t=t/2):this.heightField==180&&(t=-7),t},translxcircle(){var t=0;return this.widthField>305?(t=this.widthField-305,t=t/2):this.widthField==268&&(t=-18),t}},methods:{clickAll(t){if(t){for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(t){var i=0;this.sectors[t].active=!this.sectors[t].active;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0&&(this.sectors[t].active=!0),this.validateField(t)},btn14(t){this.sectors[0].active=t?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=t?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=t?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=t?this.sectors[3].active=!0:this.sectors[3].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,i==16&&(this.all=!0,this.update+=1)},btn24(t){this.sectors[4].active=t?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=t?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=t?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=t?this.sectors[7].active=!0:this.sectors[7].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,i==16&&(this.all=!0,this.update+=1)},btn34(t){this.sectors[8].active=t?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=t?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=t?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=t?this.sectors[11].active=!0:this.sectors[11].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,i==16&&(this.all=!0,this.update+=1)},btn44(t){this.sectors[12].active=t?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=t?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=t?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=t?this.sectors[15].active=!0:this.sectors[15].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,i==16&&(this.all=!0,this.update+=1)},validateField(t){(t===0||t===1||t===2||t===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(t===4||t===5||t===6||t===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(t===8||t===9||t===10||t===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(t===12||t===13||t===14||t===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)}}},no=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},lo=xt.setup;xt.setup=lo?(t,i)=>(no(),lo(t,i)):no;const Wn={class:"gsc-field"},Hn={class:"gsc-field__title-checked"},Yn={class:"gsc-field__title-checked__title"},Gn={class:"gsc-field__container-field"},jn={class:"gsc-field__container-field__field"},qn={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},Zn=["stroke"],Jn=["stroke","stroke-width"],Kn=["stroke","stroke-width"],Xn=["stroke-width","stroke"],Qn=["fill","fill-opacity","stroke","stroke-width"],el=["fill","fill-opacity","stroke","stroke-width"],tl=["fill","fill-opacity","stroke","stroke-width"],ol=["fill","fill-opacity","stroke","stroke-width"],al=["fill","fill-opacity","stroke","stroke-width"],il=["fill","fill-opacity","stroke","stroke-width"],sl=["fill","fill-opacity","stroke","stroke-width"],nl=["fill","fill-opacity","stroke","stroke-width"],ll=["fill","fill-opacity","stroke","stroke-width"],rl=["fill","fill-opacity","stroke","stroke-width"],dl=["fill","fill-opacity","stroke","stroke-width"],cl=["fill","fill-opacity","stroke","stroke-width"],ul=["fill","fill-opacity","stroke","stroke-width"],ml=["fill","fill-opacity","stroke","stroke-width"],pl=["fill","fill-opacity","stroke","stroke-width"],fl=["fill","fill-opacity","stroke","stroke-width"],hl={class:"gsc-field__container-field__bar-buttons"};function yl(t,i,o,a,n,s){const l=e.resolveComponent("GSCCheckbox"),u=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Wn,[e.createElementVNode("div",Hn,[e.createElementVNode("div",Yn,e.toDisplayString(o.title),1),e.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:e.normalizeStyle(o.widthField>=350?"min-width: 123px":"")},[(e.openBlock(),e.createBlock(l,{label:o.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":o.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:n.all,key:n.update,"model-value":n.all,"onUpdate:modelValue":s.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",Gn,[e.createElementVNode("div",jn,[(e.openBlock(),e.createElementBlock("svg",qn,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:o.colorLineField},null,8,Zn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+s.translx+"px, "+s.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:o.colorLineField,"stroke-width":o.borderWidthLineField,"stroke-linecap":"square"},null,12,Jn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+s.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:o.colorLineField,"stroke-width":o.borderWidthLineField,"stroke-linecap":"square"},null,12,Kn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+s.translxcircle+"px, "+s.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":o.borderWidthLineField,stroke:o.colorLineField},null,12,Xn),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[0]||(i[0]=c=>s.selectSector(0))},null,8,Qn),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[1]||(i[1]=c=>s.selectSector(1))},null,8,el),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[2]||(i[2]=c=>s.selectSector(2))},null,8,tl),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[3]||(i[3]=c=>s.selectSector(3))},null,8,ol),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[4]||(i[4]=c=>s.selectSector(4))},null,8,al),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[5]||(i[5]=c=>s.selectSector(5))},null,8,il),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[6]||(i[6]=c=>s.selectSector(6))},null,8,sl),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[7]||(i[7]=c=>s.selectSector(7))},null,8,nl),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[8]||(i[8]=c=>s.selectSector(8))},null,8,ll),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[9]||(i[9]=c=>s.selectSector(9))},null,8,rl),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[10]||(i[10]=c=>s.selectSector(10))},null,8,dl),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[11]||(i[11]=c=>s.selectSector(11))},null,8,cl),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[12]||(i[12]=c=>s.selectSector(12))},null,8,ul),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[13]||(i[13]=c=>s.selectSector(13))},null,8,ml),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[14]||(i[14]=c=>s.selectSector(14))},null,8,pl),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[15]||(i[15]=c=>s.selectSector(15))},null,8,fl)]))]),e.createElementVNode("div",hl,[(e.openBlock(),e.createBlock(u,{"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:s.btn14,key:n.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn24,key:n.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn34,key:n.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn44,key:n.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const ro=Un(xt,[["render",yl],["__scopeId","data-v-b85699b8"]]),O0="",_l={class:"toggle-buttons__background"},gl=["onClick"],Sl=L({__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(t,{emit:i}){const o=t;e.useCssVars(l=>({"0d588b39":t.height,"2a8da974":t.width,"6d34d30a":t.mainBackgroundColor,"3d50bf20":t.borderRadius,e8fc78a2:t.mainBorderWidth,eb2a7568:t.mainBorderColor,acdd84b6:t.fontFamily,"63d45e82":t.fontSize,b28ed67c:t.activeBorderWidth,b4bcd342:t.activeBorderColor,"7fa6e29d":t.activeBackgroundColor}));const a=e.ref(o.selectedButtonIndex),n=e.computed(()=>({"--grid-template-columns":`repeat(${o.buttons.length}, 1fr)`}));e.watch(()=>o.selectedButtonIndex,l=>{a.value=l}),e.watch(a,(l,u)=>{l!==u&&i("change",{index:l,button:o.buttons[l]})});function s(l){a.value=l}return(l,u)=>(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(n.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:`b${d}`,class:e.normalizeClass(["toggle-buttons__button",{active:a.value===d}]),onClick:m=>s(d)},e.toDisplayString(c.text||c),11,gl))),128))],4)]))}},[["__scopeId","data-v-ac2af001"]]);function co(t,i){return function(){return t.apply(i,arguments)}}const{toString:bl}=Object.prototype,{getPrototypeOf:wt}=Object,{iterator:Ke,toStringTag:uo}=Symbol,Xe=(t=>i=>{const o=bl.call(i);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ue=t=>(t=t.toLowerCase(),i=>Xe(i)===t),Qe=t=>i=>typeof i===t,{isArray:Me}=Array,Ue=Qe("undefined");function Cl(t){return t!==null&&!Ue(t)&&t.constructor!==null&&!Ue(t.constructor)&&se(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mo=ue("ArrayBuffer");function kl(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&mo(t.buffer),i}const El=Qe("string"),se=Qe("function"),po=Qe("number"),et=t=>t!==null&&typeof t=="object",xl=t=>t===!0||t===!1,tt=t=>{if(Xe(t)!=="object")return!1;const i=wt(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(uo in t)&&!(Ke in t)},wl=ue("Date"),Vl=ue("File"),Nl=ue("Blob"),Bl=ue("FileList"),Fl=t=>et(t)&&se(t.pipe),Tl=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||se(t.append)&&((i=Xe(t))==="formdata"||i==="object"&&se(t.toString)&&t.toString()==="[object FormData]"))},vl=ue("URLSearchParams"),[$l,Al,Il,Pl]=["ReadableStream","Request","Response","Headers"].map(ue),Ml=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function We(t,i,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let a,n;if(typeof t!="object"&&(t=[t]),Me(t))for(a=0,n=t.length;a<n;a++)i.call(null,t[a],a,t);else{const s=o?Object.getOwnPropertyNames(t):Object.keys(t),l=s.length;let u;for(a=0;a<l;a++)u=s[a],i.call(null,t[u],u,t)}}function fo(t,i){i=i.toLowerCase();const o=Object.keys(t);let a=o.length,n;for(;a-- >0;)if(n=o[a],i===n.toLowerCase())return n;return null}const Ne=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ho=t=>!Ue(t)&&t!==Ne;function Vt(){const{caseless:t}=ho(this)&&this||{},i={},o=(a,n)=>{const s=t&&fo(i,n)||n;tt(i[s])&&tt(a)?i[s]=Vt(i[s],a):tt(a)?i[s]=Vt({},a):Me(a)?i[s]=a.slice():i[s]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&We(arguments[a],o);return i}const Rl=(t,i,o,{allOwnKeys:a}={})=>(We(i,(n,s)=>{o&&se(n)?t[s]=co(n,o):t[s]=n},{allOwnKeys:a}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ol=(t,i,o,a)=>{t.prototype=Object.create(i.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),o&&Object.assign(t.prototype,o)},Ll=(t,i,o,a)=>{let n,s,l;const u={};if(i=i||{},t==null)return i;do{for(n=Object.getOwnPropertyNames(t),s=n.length;s-- >0;)l=n[s],(!a||a(l,t,i))&&!u[l]&&(i[l]=t[l],u[l]=!0);t=o!==!1&&wt(t)}while(t&&(!o||o(t,i))&&t!==Object.prototype);return i},zl=(t,i,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=i.length;const a=t.indexOf(i,o);return a!==-1&&a===o},Ul=t=>{if(!t)return null;if(Me(t))return t;let i=t.length;if(!po(i))return null;const o=new Array(i);for(;i-- >0;)o[i]=t[i];return o},Wl=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&wt(Uint8Array)),Hl=(t,i)=>{const a=(t&&t[Ke]).call(t);let n;for(;(n=a.next())&&!n.done;){const s=n.value;i.call(t,s[0],s[1])}},Yl=(t,i)=>{let o;const a=[];for(;(o=t.exec(i))!==null;)a.push(o);return a},Gl=ue("HTMLFormElement"),jl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,n){return a.toUpperCase()+n}),yo=(({hasOwnProperty:t})=>(i,o)=>t.call(i,o))(Object.prototype),ql=ue("RegExp"),_o=(t,i)=>{const o=Object.getOwnPropertyDescriptors(t),a={};We(o,(n,s)=>{let l;(l=i(n,s,t))!==!1&&(a[s]=l||n)}),Object.defineProperties(t,a)},Zl=t=>{_o(t,(i,o)=>{if(se(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=t[o];if(se(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Jl=(t,i)=>{const o={},a=n=>{n.forEach(s=>{o[s]=!0})};return Me(t)?a(t):a(String(t).split(i)),o},Kl=()=>{},Xl=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Ql(t){return!!(t&&se(t.append)&&t[uo]==="FormData"&&t[Ke])}const er=t=>{const i=new Array(10),o=(a,n)=>{if(et(a)){if(i.indexOf(a)>=0)return;if(!("toJSON"in a)){i[n]=a;const s=Me(a)?[]:{};return We(a,(l,u)=>{const c=o(l,n+1);!Ue(c)&&(s[u]=c)}),i[n]=void 0,s}}return a};return o(t,0)},tr=ue("AsyncFunction"),or=t=>t&&(et(t)||se(t))&&se(t.then)&&se(t.catch),go=((t,i)=>t?setImmediate:i?((o,a)=>(Ne.addEventListener("message",({source:n,data:s})=>{n===Ne&&s===o&&a.length&&a.shift()()},!1),n=>{a.push(n),Ne.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",se(Ne.postMessage)),ar=typeof queueMicrotask<"u"?queueMicrotask.bind(Ne):typeof process<"u"&&process.nextTick||go,S={isArray:Me,isArrayBuffer:mo,isBuffer:Cl,isFormData:Tl,isArrayBufferView:kl,isString:El,isNumber:po,isBoolean:xl,isObject:et,isPlainObject:tt,isReadableStream:$l,isRequest:Al,isResponse:Il,isHeaders:Pl,isUndefined:Ue,isDate:wl,isFile:Vl,isBlob:Nl,isRegExp:ql,isFunction:se,isStream:Fl,isURLSearchParams:vl,isTypedArray:Wl,isFileList:Bl,forEach:We,merge:Vt,extend:Rl,trim:Ml,stripBOM:Dl,inherits:Ol,toFlatObject:Ll,kindOf:Xe,kindOfTest:ue,endsWith:zl,toArray:Ul,forEachEntry:Hl,matchAll:Yl,isHTMLForm:Gl,hasOwnProperty:yo,hasOwnProp:yo,reduceDescriptors:_o,freezeMethods:Zl,toObjectSet:Jl,toCamelCase:jl,noop:Kl,toFiniteNumber:Xl,findKey:fo,global:Ne,isContextDefined:ho,isSpecCompliantForm:Ql,toJSONObject:er,isAsyncFn:tr,isThenable:or,setImmediate:go,asap:ar,isIterable:t=>t!=null&&se(t[Ke])};function R(t,i,o,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),o&&(this.config=o),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}S.inherits(R,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const So=R.prototype,bo={};["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(t=>{bo[t]={value:t}}),Object.defineProperties(R,bo),Object.defineProperty(So,"isAxiosError",{value:!0}),R.from=(t,i,o,a,n,s)=>{const l=Object.create(So);return S.toFlatObject(t,l,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),R.call(l,t.message,i,o,a,n),l.cause=t,l.name=t.name,s&&Object.assign(l,s),l};const ir=null;function Nt(t){return S.isPlainObject(t)||S.isArray(t)}function Co(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function ko(t,i,o){return t?t.concat(i).map(function(n,s){return n=Co(n),!o&&s?"["+n+"]":n}).join(o?".":""):i}function sr(t){return S.isArray(t)&&!t.some(Nt)}const nr=S.toFlatObject(S,{},null,function(i){return/^is[A-Z]/.test(i)});function ot(t,i,o){if(!S.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,o=S.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!S.isUndefined(g[_])});const a=o.metaTokens,n=o.visitor||m,s=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(i);if(!S.isFunction(n))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!c&&S.isBlob(y))throw new R("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,g){let C=y;if(y&&!g&&typeof y=="object"){if(S.endsWith(_,"{}"))_=a?_:_.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&sr(y)||(S.isFileList(y)||S.endsWith(_,"[]"))&&(C=S.toArray(y)))return _=Co(_),C.forEach(function(P,J){!(S.isUndefined(P)||P===null)&&i.append(l===!0?ko([_],J,s):l===null?_:_+"[]",d(P))}),!1}return Nt(y)?!0:(i.append(ko(g,_,s),d(y)),!1)}const r=[],h=Object.assign(nr,{defaultVisitor:m,convertValue:d,isVisitable:Nt});function f(y,_){if(!S.isUndefined(y)){if(r.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));r.push(y),S.forEach(y,function(C,b){(!(S.isUndefined(C)||C===null)&&n.call(i,C,S.isString(b)?b.trim():b,_,h))===!0&&f(C,_?_.concat(b):[b])}),r.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return f(t),i}function Eo(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Bt(t,i){this._pairs=[],t&&ot(t,this,i)}const xo=Bt.prototype;xo.append=function(i,o){this._pairs.push([i,o])},xo.toString=function(i){const o=i?function(a){return i.call(this,a,Eo)}:Eo;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function lr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wo(t,i,o){if(!i)return t;const a=o&&o.encode||lr;S.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let s;if(n?s=n(i,o):s=S.isURLSearchParams(i)?i.toString():new Bt(i,o).toString(a),s){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class rr{constructor(){this.handlers=[]}use(i,o,a){return this.handlers.push({fulfilled:i,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){S.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Vo=rr,No={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Bt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ft=typeof window<"u"&&typeof document<"u",Tt=typeof navigator=="object"&&navigator||void 0,cr=Ft&&(!Tt||["ReactNative","NativeScript","NS"].indexOf(Tt.product)<0),ur=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mr=Ft&&window.location.href||"http://localhost",ae={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ft,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:ur,navigator:Tt,origin:mr},Symbol.toStringTag,{value:"Module"})),...dr};function pr(t,i){return ot(t,new ae.classes.URLSearchParams,Object.assign({visitor:function(o,a,n,s){return ae.isNode&&S.isBuffer(o)?(this.append(a,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},i))}function fr(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function hr(t){const i={},o=Object.keys(t);let a;const n=o.length;let s;for(a=0;a<n;a++)s=o[a],i[s]=t[s];return i}function Bo(t){function i(o,a,n,s){let l=o[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=o.length;return l=!l&&S.isArray(n)?n.length:l,c?(S.hasOwnProp(n,l)?n[l]=[n[l],a]:n[l]=a,!u):((!n[l]||!S.isObject(n[l]))&&(n[l]=[]),i(o,a,n[l],s)&&S.isArray(n[l])&&(n[l]=hr(n[l])),!u)}if(S.isFormData(t)&&S.isFunction(t.entries)){const o={};return S.forEachEntry(t,(a,n)=>{i(fr(a),n,o,0)}),o}return null}function yr(t,i,o){if(S.isString(t))try{return(i||JSON.parse)(t),S.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(t)}const vt={transitional:No,adapter:["xhr","http","fetch"],transformRequest:[function(i,o){const a=o.getContentType()||"",n=a.indexOf("application/json")>-1,s=S.isObject(i);if(s&&S.isHTMLForm(i)&&(i=new FormData(i)),S.isFormData(i))return n?JSON.stringify(Bo(i)):i;if(S.isArrayBuffer(i)||S.isBuffer(i)||S.isStream(i)||S.isFile(i)||S.isBlob(i)||S.isReadableStream(i))return i;if(S.isArrayBufferView(i))return i.buffer;if(S.isURLSearchParams(i))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let u;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return pr(i,this.formSerializer).toString();if((u=S.isFileList(i))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ot(u?{"files[]":i}:i,c&&new c,this.formSerializer)}}return s||n?(o.setContentType("application/json",!1),yr(i)):i}],transformResponse:[function(i){const o=this.transitional||vt.transitional,a=o&&o.forcedJSONParsing,n=this.responseType==="json";if(S.isResponse(i)||S.isReadableStream(i))return i;if(i&&S.isString(i)&&(a&&!this.responseType||n)){const l=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(i)}catch(u){if(l)throw u.name==="SyntaxError"?R.from(u,R.ERR_BAD_RESPONSE,this,null,this.response):u}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{vt.headers[t]={}});const $t=vt,_r=S.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"]),gr=t=>{const i={};let o,a,n;return t&&t.split(`
2
- `).forEach(function(l){n=l.indexOf(":"),o=l.substring(0,n).trim().toLowerCase(),a=l.substring(n+1).trim(),!(!o||i[o]&&_r[o])&&(o==="set-cookie"?i[o]?i[o].push(a):i[o]=[a]:i[o]=i[o]?i[o]+", "+a:a)}),i},Fo=Symbol("internals");function He(t){return t&&String(t).trim().toLowerCase()}function at(t){return t===!1||t==null?t:S.isArray(t)?t.map(at):String(t)}function Sr(t){const i=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(t);)i[a[1]]=a[2];return i}const br=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function At(t,i,o,a,n){if(S.isFunction(a))return a.call(this,i,o);if(n&&(i=o),!!S.isString(i)){if(S.isString(a))return i.indexOf(a)!==-1;if(S.isRegExp(a))return a.test(i)}}function Cr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,o,a)=>o.toUpperCase()+a)}function kr(t,i){const o=S.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+o,{value:function(n,s,l){return this[a].call(this,i,n,s,l)},configurable:!0})})}class it{constructor(i){i&&this.set(i)}set(i,o,a){const n=this;function s(u,c,d){const m=He(c);if(!m)throw new Error("header name must be a non-empty string");const r=S.findKey(n,m);(!r||n[r]===void 0||d===!0||d===void 0&&n[r]!==!1)&&(n[r||c]=at(u))}const l=(u,c)=>S.forEach(u,(d,m)=>s(d,m,c));if(S.isPlainObject(i)||i instanceof this.constructor)l(i,o);else if(S.isString(i)&&(i=i.trim())&&!br(i))l(gr(i),o);else if(S.isObject(i)&&S.isIterable(i)){let u={},c,d;for(const m of i){if(!S.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[d=m[0]]=(c=u[d])?S.isArray(c)?[...c,m[1]]:[c,m[1]]:m[1]}l(u,o)}else i!=null&&s(o,i,a);return this}get(i,o){if(i=He(i),i){const a=S.findKey(this,i);if(a){const n=this[a];if(!o)return n;if(o===!0)return Sr(n);if(S.isFunction(o))return o.call(this,n,a);if(S.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,o){if(i=He(i),i){const a=S.findKey(this,i);return!!(a&&this[a]!==void 0&&(!o||At(this,this[a],a,o)))}return!1}delete(i,o){const a=this;let n=!1;function s(l){if(l=He(l),l){const u=S.findKey(a,l);u&&(!o||At(a,a[u],u,o))&&(delete a[u],n=!0)}}return S.isArray(i)?i.forEach(s):s(i),n}clear(i){const o=Object.keys(this);let a=o.length,n=!1;for(;a--;){const s=o[a];(!i||At(this,this[s],s,i,!0))&&(delete this[s],n=!0)}return n}normalize(i){const o=this,a={};return S.forEach(this,(n,s)=>{const l=S.findKey(a,s);if(l){o[l]=at(n),delete o[s];return}const u=i?Cr(s):String(s).trim();u!==s&&delete o[s],o[u]=at(n),a[u]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const o=Object.create(null);return S.forEach(this,(a,n)=>{a!=null&&a!==!1&&(o[n]=i&&S.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,o])=>i+": "+o).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...o){const a=new this(i);return o.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[Fo]=this[Fo]={accessors:{}}).accessors,n=this.prototype;function s(l){const u=He(l);a[u]||(kr(n,l),a[u]=!0)}return S.isArray(i)?i.forEach(s):s(i),this}}it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(it.prototype,({value:t},i)=>{let o=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[o]=a}}}),S.freezeMethods(it);const me=it;function It(t,i){const o=this||$t,a=i||o,n=me.from(a.headers);let s=a.data;return S.forEach(t,function(u){s=u.call(o,s,n.normalize(),i?i.status:void 0)}),n.normalize(),s}function To(t){return!!(t&&t.__CANCEL__)}function Re(t,i,o){R.call(this,t??"canceled",R.ERR_CANCELED,i,o),this.name="CanceledError"}S.inherits(Re,R,{__CANCEL__:!0});function vo(t,i,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):i(new R("Request failed with status code "+o.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Er(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function xr(t,i){t=t||10;const o=new Array(t),a=new Array(t);let n=0,s=0,l;return i=i!==void 0?i:1e3,function(c){const d=Date.now(),m=a[s];l||(l=d),o[n]=c,a[n]=d;let r=s,h=0;for(;r!==n;)h+=o[r++],r=r%t;if(n=(n+1)%t,n===s&&(s=(s+1)%t),d-l<i)return;const f=m&&d-m;return f?Math.round(h*1e3/f):void 0}}function wr(t,i){let o=0,a=1e3/i,n,s;const l=(d,m=Date.now())=>{o=m,n=null,s&&(clearTimeout(s),s=null),t.apply(null,d)};return[(...d)=>{const m=Date.now(),r=m-o;r>=a?l(d,m):(n=d,s||(s=setTimeout(()=>{s=null,l(n)},a-r)))},()=>n&&l(n)]}const st=(t,i,o=3)=>{let a=0;const n=xr(50,250);return wr(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,c=l-a,d=n(c),m=l<=u;a=l;const r={loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:d||void 0,estimated:d&&u&&m?(u-l)/d:void 0,event:s,lengthComputable:u!=null,[i?"download":"upload"]:!0};t(r)},o)},$o=(t,i)=>{const o=t!=null;return[a=>i[0]({lengthComputable:o,total:t,loaded:a}),i[1]]},Ao=t=>(...i)=>S.asap(()=>t(...i)),Vr=ae.hasStandardBrowserEnv?((t,i)=>o=>(o=new URL(o,ae.origin),t.protocol===o.protocol&&t.host===o.host&&(i||t.port===o.port)))(new URL(ae.origin),ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent)):()=>!0,Nr=ae.hasStandardBrowserEnv?{write(t,i,o,a,n,s){const l=[t+"="+encodeURIComponent(i)];S.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),S.isString(a)&&l.push("path="+a),S.isString(n)&&l.push("domain="+n),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Br(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Fr(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Io(t,i,o){let a=!Br(i);return t&&(a||o==!1)?Fr(t,i):i}const Po=t=>t instanceof me?{...t}:t;function Be(t,i){i=i||{};const o={};function a(d,m,r,h){return S.isPlainObject(d)&&S.isPlainObject(m)?S.merge.call({caseless:h},d,m):S.isPlainObject(m)?S.merge({},m):S.isArray(m)?m.slice():m}function n(d,m,r,h){if(S.isUndefined(m)){if(!S.isUndefined(d))return a(void 0,d,r,h)}else return a(d,m,r,h)}function s(d,m){if(!S.isUndefined(m))return a(void 0,m)}function l(d,m){if(S.isUndefined(m)){if(!S.isUndefined(d))return a(void 0,d)}else return a(void 0,m)}function u(d,m,r){if(r in i)return a(d,m);if(r in t)return a(void 0,d)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,m,r)=>n(Po(d),Po(m),r,!0)};return S.forEach(Object.keys(Object.assign({},t,i)),function(m){const r=c[m]||n,h=r(t[m],i[m],m);S.isUndefined(h)&&r!==u||(o[m]=h)}),o}const Mo=t=>{const i=Be({},t);let{data:o,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:l,auth:u}=i;i.headers=l=me.from(l),i.url=wo(Io(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(S.isFormData(o)){if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...m]=c?c.split(";").map(r=>r.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...m].join("; "))}}if(ae.hasStandardBrowserEnv&&(a&&S.isFunction(a)&&(a=a(i)),a||a!==!1&&Vr(i.url))){const d=n&&s&&Nr.read(s);d&&l.set(n,d)}return i},Tr=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){const n=Mo(t);let s=n.data;const l=me.from(n.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:d}=n,m,r,h,f,y;function _(){f&&f(),y&&y(),n.cancelToken&&n.cancelToken.unsubscribe(m),n.signal&&n.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function C(){if(!g)return;const P=me.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!u||u==="text"||u==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:P,config:t,request:g};vo(function(ie){o(ie),_()},function(ie){a(ie),_()},j),g=null}"onloadend"in g?g.onloadend=C:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(C)},g.onabort=function(){g&&(a(new R("Request aborted",R.ECONNABORTED,t,g)),g=null)},g.onerror=function(){a(new R("Network Error",R.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let J=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const j=n.transitional||No;n.timeoutErrorMessage&&(J=n.timeoutErrorMessage),a(new R(J,j.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,g)),g=null},s===void 0&&l.setContentType(null),"setRequestHeader"in g&&S.forEach(l.toJSON(),function(J,j){g.setRequestHeader(j,J)}),S.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),u&&u!=="json"&&(g.responseType=n.responseType),d&&([h,y]=st(d,!0),g.addEventListener("progress",h)),c&&g.upload&&([r,f]=st(c),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(m=P=>{g&&(a(!P||P.type?new Re(null,t,g):P),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(m),n.signal&&(n.signal.aborted?m():n.signal.addEventListener("abort",m)));const b=Er(n.url);if(b&&ae.protocols.indexOf(b)===-1){a(new R("Unsupported protocol "+b+":",R.ERR_BAD_REQUEST,t));return}g.send(s||null)})},vr=(t,i)=>{const{length:o}=t=t?t.filter(Boolean):[];if(i||o){let a=new AbortController,n;const s=function(d){if(!n){n=!0,u();const m=d instanceof Error?d:this.reason;a.abort(m instanceof R?m:new Re(m instanceof Error?m.message:m))}};let l=i&&setTimeout(()=>{l=null,s(new R(`timeout ${i} of ms exceeded`,R.ETIMEDOUT))},i);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),t=null)};t.forEach(d=>d.addEventListener("abort",s));const{signal:c}=a;return c.unsubscribe=()=>S.asap(u),c}},$r=function*(t,i){let o=t.byteLength;if(!i||o<i){yield t;return}let a=0,n;for(;a<o;)n=a+i,yield t.slice(a,n),a=n},Ar=async function*(t,i){for await(const o of Ir(t))yield*$r(o,i)},Ir=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:o,value:a}=await i.read();if(o)break;yield a}}finally{await i.cancel()}},Ro=(t,i,o,a)=>{const n=Ar(t,i);let s=0,l,u=c=>{l||(l=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:d,value:m}=await n.next();if(d){u(),c.close();return}let r=m.byteLength;if(o){let h=s+=r;o(h)}c.enqueue(new Uint8Array(m))}catch(d){throw u(d),d}},cancel(c){return u(c),n.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Do=nt&&typeof ReadableStream=="function",Pr=nt&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Oo=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Mr=Do&&Oo(()=>{let t=!1;const i=new Request(ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),Lo=64*1024,Pt=Do&&Oo(()=>S.isReadableStream(new Response("").body)),lt={stream:Pt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!lt[i]&&(lt[i]=S.isFunction(t[i])?o=>o[i]():(o,a)=>{throw new R(`Response type '${i}' is not supported`,R.ERR_NOT_SUPPORT,a)})})})(new Response);const Rr=async t=>{if(t==null)return 0;if(S.isBlob(t))return t.size;if(S.isSpecCompliantForm(t))return(await new Request(ae.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(S.isArrayBufferView(t)||S.isArrayBuffer(t))return t.byteLength;if(S.isURLSearchParams(t)&&(t=t+""),S.isString(t))return(await Pr(t)).byteLength},Dr=async(t,i)=>{const o=S.toFiniteNumber(t.getContentLength());return o??Rr(i)},Mt={http:ir,xhr:Tr,fetch:nt&&(async t=>{let{url:i,method:o,data:a,signal:n,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:m,withCredentials:r="same-origin",fetchOptions:h}=Mo(t);d=d?(d+"").toLowerCase():"text";let f=vr([n,s&&s.toAbortSignal()],l),y;const _=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(c&&Mr&&o!=="get"&&o!=="head"&&(g=await Dr(m,a))!==0){let j=new Request(i,{method:"POST",body:a,duplex:"half"}),oe;if(S.isFormData(a)&&(oe=j.headers.get("content-type"))&&m.setContentType(oe),j.body){const[ie,Q]=$o(g,st(Ao(c)));a=Ro(j.body,Lo,ie,Q)}}S.isString(r)||(r=r?"include":"omit");const C="credentials"in Request.prototype;y=new Request(i,{...h,signal:f,method:o.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:C?r:void 0});let b=await fetch(y);const P=Pt&&(d==="stream"||d==="response");if(Pt&&(u||P&&_)){const j={};["status","statusText","headers"].forEach(re=>{j[re]=b[re]});const oe=S.toFiniteNumber(b.headers.get("content-length")),[ie,Q]=u&&$o(oe,st(Ao(u),!0))||[];b=new Response(Ro(b.body,Lo,ie,()=>{Q&&Q(),_&&_()}),j)}d=d||"text";let J=await lt[S.findKey(lt,d)||"text"](b,t);return!P&&_&&_(),await new Promise((j,oe)=>{vo(j,oe,{data:J,headers:me.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:y})})}catch(C){throw _&&_(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,t,y),{cause:C.cause||C}):R.from(C,C&&C.code,t,y)}})};S.forEach(Mt,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const zo=t=>`- ${t}`,Or=t=>S.isFunction(t)||t===null||t===!1,Uo={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:i}=t;let o,a;const n={};for(let s=0;s<i;s++){o=t[s];let l;if(a=o,!Or(o)&&(a=Mt[(l=String(o)).toLowerCase()],a===void 0))throw new R(`Unknown adapter '${l}'`);if(a)break;n[l||"#"+s]=a}if(!a){const s=Object.entries(n).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=i?s.length>1?`since :
4
- `+s.map(zo).join(`
5
- `):" "+zo(s[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a},adapters:Mt};function Rt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Re(null,t)}function Wo(t){return Rt(t),t.headers=me.from(t.headers),t.data=It.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Uo.getAdapter(t.adapter||$t.adapter)(t).then(function(a){return Rt(t),a.data=It.call(t,t.transformResponse,a),a.headers=me.from(a.headers),a},function(a){return To(a)||(Rt(t),a&&a.response&&(a.response.data=It.call(t,t.transformResponse,a.response),a.response.headers=me.from(a.response.headers))),Promise.reject(a)})}const Ho="1.9.0",rt={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{rt[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const Yo={};rt.transitional=function(i,o,a){function n(s,l){return"[Axios v"+Ho+"] Transitional option '"+s+"'"+l+(a?". "+a:"")}return(s,l,u)=>{if(i===!1)throw new R(n(l," has been removed"+(o?" in "+o:"")),R.ERR_DEPRECATED);return o&&!Yo[l]&&(Yo[l]=!0,console.warn(n(l," has been deprecated since v"+o+" and will be removed in the near future"))),i?i(s,l,u):!0}},rt.spelling=function(i){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${i}`),!0)};function Lr(t,i,o){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let n=a.length;for(;n-- >0;){const s=a[n],l=i[s];if(l){const u=t[s],c=u===void 0||l(u,s,t);if(c!==!0)throw new R("option "+s+" must be "+c,R.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new R("Unknown option "+s,R.ERR_BAD_OPTION)}}const dt={assertOptions:Lr,validators:rt},ye=dt.validators;class ct{constructor(i){this.defaults=i||{},this.interceptors={request:new Vo,response:new Vo}}async request(i,o){try{return await this._request(i,o)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
6
- `+s):a.stack=s}catch{}}throw a}}_request(i,o){typeof i=="string"?(o=o||{},o.url=i):o=i||{},o=Be(this.defaults,o);const{transitional:a,paramsSerializer:n,headers:s}=o;a!==void 0&&dt.assertOptions(a,{silentJSONParsing:ye.transitional(ye.boolean),forcedJSONParsing:ye.transitional(ye.boolean),clarifyTimeoutError:ye.transitional(ye.boolean)},!1),n!=null&&(S.isFunction(n)?o.paramsSerializer={serialize:n}:dt.assertOptions(n,{encode:ye.function,serialize:ye.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),dt.assertOptions(o,{baseUrl:ye.spelling("baseURL"),withXsrfToken:ye.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=s&&S.merge(s.common,s[o.method]);s&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),o.headers=me.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(o)===!1||(c=c&&_.synchronous,u.unshift(_.fulfilled,_.rejected))});const d=[];this.interceptors.response.forEach(function(_){d.push(_.fulfilled,_.rejected)});let m,r=0,h;if(!c){const y=[Wo.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,d),h=y.length,m=Promise.resolve(o);r<h;)m=m.then(y[r++],y[r++]);return m}h=u.length;let f=o;for(r=0;r<h;){const y=u[r++],_=u[r++];try{f=y(f)}catch(g){_.call(this,g);break}}try{m=Wo.call(this,f)}catch(y){return Promise.reject(y)}for(r=0,h=d.length;r<h;)m=m.then(d[r++],d[r++]);return m}getUri(i){i=Be(this.defaults,i);const o=Io(i.baseURL,i.url,i.allowAbsoluteUrls);return wo(o,i.params,i.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(i){ct.prototype[i]=function(o,a){return this.request(Be(a||{},{method:i,url:o,data:(a||{}).data}))}}),S.forEach(["post","put","patch"],function(i){function o(a){return function(s,l,u){return this.request(Be(u||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ct.prototype[i]=o(),ct.prototype[i+"Form"]=o(!0)});const ut=ct;class Dt{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(s){o=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const l=new Promise(u=>{a.subscribe(u),s=u}).then(n);return l.cancel=function(){a.unsubscribe(s)},l},i(function(s,l,u){a.reason||(a.reason=new Re(s,l,u),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const o=this._listeners.indexOf(i);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const i=new AbortController,o=a=>{i.abort(a)};return this.subscribe(o),i.signal.unsubscribe=()=>this.unsubscribe(o),i.signal}static source(){let i;return{token:new Dt(function(n){i=n}),cancel:i}}}const zr=Dt;function Ur(t){return function(o){return t.apply(null,o)}}function Wr(t){return S.isObject(t)&&t.isAxiosError===!0}const Ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ot).forEach(([t,i])=>{Ot[i]=t});const Hr=Ot;function Go(t){const i=new ut(t),o=co(ut.prototype.request,i);return S.extend(o,ut.prototype,i,{allOwnKeys:!0}),S.extend(o,i,null,{allOwnKeys:!0}),o.create=function(n){return Go(Be(t,n))},o}const X=Go($t);X.Axios=ut,X.CanceledError=Re,X.CancelToken=zr,X.isCancel=To,X.VERSION=Ho,X.toFormData=ot,X.AxiosError=R,X.Cancel=X.CanceledError,X.all=function(i){return Promise.all(i)},X.spread=Ur,X.isAxiosError=Wr,X.mergeConfig=Be,X.AxiosHeaders=me,X.formToJSON=t=>Bo(S.isHTMLForm(t)?new FormData(t):t),X.getAdapter=Uo.getAdapter,X.HttpStatusCode=Hr,X.default=X;const Fe=X,Ye={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},jo={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},qo={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function mt(t){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},mt(t)}function be(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function Z(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function G(t){Z(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||mt(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Yr(t,i){Z(2,arguments);var o=G(t),a=be(i);return isNaN(a)?new Date(NaN):(a&&o.setDate(o.getDate()+a),o)}function Gr(t,i){Z(2,arguments);var o=G(t),a=be(i);if(isNaN(a))return new Date(NaN);if(!a)return o;var n=o.getDate(),s=new Date(o.getTime());s.setMonth(o.getMonth()+a+1,0);var l=s.getDate();return n>=l?s:(o.setFullYear(s.getFullYear(),s.getMonth(),n),o)}function Ge(t,i){if(Z(2,arguments),!i||mt(i)!=="object")return new Date(NaN);var o=i.years?be(i.years):0,a=i.months?be(i.months):0,n=i.weeks?be(i.weeks):0,s=i.days?be(i.days):0,l=i.hours?be(i.hours):0,u=i.minutes?be(i.minutes):0,c=i.seconds?be(i.seconds):0,d=G(t),m=a||o?Gr(d,a+o*12):d,r=s||n?Yr(m,s+n*7):m,h=u+l*60,f=c+h*60,y=f*1e3,_=new Date(r.getTime()+y);return _}function Zo(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Jo(t){Z(1,arguments);var i=G(t);return i.setHours(0,0,0,0),i}var jr=864e5;function qr(t,i){Z(2,arguments);var o=Jo(t),a=Jo(i),n=o.getTime()-Zo(o),s=a.getTime()-Zo(a);return Math.round((n-s)/jr)}function De(t,i){Z(2,arguments);var o=G(t),a=G(i),n=o.getTime()-a.getTime();return n<0?-1:n>0?1:n}var Zr=6e4,Jr=36e5;function Kr(t,i){Z(2,arguments);var o=G(t),a=G(i),n=o.getFullYear()-a.getFullYear(),s=o.getMonth()-a.getMonth();return n*12+s}function Xr(t,i){Z(2,arguments);var o=G(t),a=G(i);return o.getFullYear()-a.getFullYear()}function Ko(t,i){var o=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return o<0?-1:o>0?1:o}function Qr(t,i){Z(2,arguments);var o=G(t),a=G(i),n=Ko(o,a),s=Math.abs(qr(o,a));o.setDate(o.getDate()-n*s);var l=+(Ko(o,a)===-n),u=n*(s-l);return u===0?0:u}function Lt(t,i){return Z(2,arguments),G(t).getTime()-G(i).getTime()}var Xo={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(i){return i<0?Math.ceil(i):Math.floor(i)}},ed="trunc";function zt(t){return t?Xo[t]:Xo[ed]}function td(t,i,o){Z(2,arguments);var a=Lt(t,i)/Jr;return zt(o==null?void 0:o.roundingMethod)(a)}function od(t,i,o){Z(2,arguments);var a=Lt(t,i)/Zr;return zt(o==null?void 0:o.roundingMethod)(a)}function ad(t){Z(1,arguments);var i=G(t);return i.setHours(23,59,59,999),i}function id(t){Z(1,arguments);var i=G(t),o=i.getMonth();return i.setFullYear(i.getFullYear(),o+1,0),i.setHours(23,59,59,999),i}function sd(t){Z(1,arguments);var i=G(t);return ad(i).getTime()===id(i).getTime()}function nd(t,i){Z(2,arguments);var o=G(t),a=G(i),n=De(o,a),s=Math.abs(Kr(o,a)),l;if(s<1)l=0;else{o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-n*s);var u=De(o,a)===-n;sd(G(t))&&s===1&&De(t,a)===1&&(u=!1),l=n*(s-Number(u))}return l===0?0:l}function ld(t,i,o){Z(2,arguments);var a=Lt(t,i)/1e3;return zt(o==null?void 0:o.roundingMethod)(a)}function rd(t,i){Z(2,arguments);var o=G(t),a=G(i),n=De(o,a),s=Math.abs(Xr(o,a));o.setFullYear(1584),a.setFullYear(1584);var l=De(o,a)===-n,u=n*(s-Number(l));return u===0?0:u}function Qo(t){return Z(1,arguments),G(t).getFullYear()}function ea(t){Z(1,arguments);var i=G(t.start),o=G(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(o.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(rd(o,i));var n=De(o,i),s=Ge(i,{years:n*a.years});a.months=Math.abs(nd(o,s));var l=Ge(s,{months:n*a.months});a.days=Math.abs(Qr(o,l));var u=Ge(l,{days:n*a.days});a.hours=Math.abs(td(o,u));var c=Ge(u,{hours:n*a.hours});a.minutes=Math.abs(od(o,c));var d=Ge(c,{minutes:n*a.minutes});return a.seconds=Math.abs(ld(o,d)),a}const dd="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",cd="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Te={...Ye},ta=new Set([1]);async function ud(t,i=""){try{const o={Authorization:i||dd},a={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:cd,n=await Fe.get(a+t.id,{headers:o});return n.data?n.data.players:[]}catch(o){return Promise.reject(o)}}async function md(t=[],i=""){try{const o=t.map(a=>ud(a,i));if(o.length){const a=new Set,n=new Date,s=[],l=new Map,u=new Map,c=await Promise.all(o);for(const d of c)for(const m of d){const r=new Date(m.dob),h=Qo(r),f=ea({start:r,end:n});l.has(m.nationality_id)||l.set(m.nationality_id,{id:m.nationality_id,isSelected:!0,name:jo[`${m.nationality_id}`]}),u.has(m.position_id)||u.set(m.position_id,{id:m.position_id,isSelected:!0,name:qo[`${m.position_id}`]}),a.add(h),s.push(f.years)}return Te.minAge=Math.min(...s),Te.maxAge=Math.max(...s),Te.availableYears=[...a].sort((d,m)=>m-d),Te.nationalities=[...l.values()],Te.positions=[...u.values()],Te.isEligibilitySwitchVisible=t.some(d=>ta.has(d.tournamentId)),Te}else return null}catch(o){return Promise.reject(o)}}const Z0="",je=L({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref(null);e.watch(()=>o.modelValue,()=>{n()},{immediate:!0});function n(){a.value&&(a.value.checked=o.modelValue)}function s(l){i("update:modelValue",l.target.checked)}return e.onMounted(()=>{n()}),(l,u)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:a,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:s},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),K0="",ve=t=>(e.pushScopeId("data-v-cfc8bb98"),t=t(),e.popScopeId(),t),pd={class:"personal-data"},fd={class:"personal-data__age"},hd={class:"personal-data__age__toggle"},yd={class:"personal-data__age__range"},_d={class:"personal-data__age__dropdown"},gd=ve(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),Sd={class:"selected-item"},bd=ve(()=>e.createElementVNode("div",{class:"separator"},null,-1)),Cd={class:"personal-data__nationality-position"},kd={key:0,class:"personal-data__nationality-position__switch"},Ed=ve(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),xd=ve(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),wd={class:"personal-data__nationality-position__nationality"},Vd=ve(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Nd={class:"selected-item"},Bd=ve(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Fd={class:"selected-item"},Td={class:"personal-data__nationality-position__position"},vd=ve(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),$d={class:"selected-item"},Ad="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Id=L({__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:o}){const a=t,n={id:0,name:"Todas las nacionalidades",isSelected:!1},s={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({...Ye}),u=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:Ye.minAge,max:Ye.maxAge}),m=e.ref(Se),r=e.ref(""),h=e.ref(""),f=e.ref(l.value.availableYears[l.value.availableYears.length-1]),y=e.ref(0),_=e.computed(()=>{const B=l.value.nationalities?[...l.value.nationalities]:[];a.isSeleccion&&B.forEach(T=>{T.isSelected=T.id===138});const v=B[0];return(!v||v.id!==0)&&B.unshift(n),B}),g=e.computed(()=>{let v=(a.filter&&a.filter.positions?a.filter.positions:l.value.positions)?[...l.value.positions]:[];const T=v[0];return(!T||T.id!==0)&&v.unshift(s),v.sort((w,q)=>w.id-q.id),v}),C=e.computed(()=>a.isEligibilityVisible?a.season&&a.season.tournamentId&&ta.has(a.season.tournamentId)||a.filters&&a.filters.isEligibilitySwitchVisible:!1);e.watch(_,B=>{const v=B.reduce((T,w,q)=>(q!==0&&w.isSelected&&T++,T),0);v===_.value.length-1&&(B[0].isSelected=!0),B[0]&&B[0].isSelected?r.value="Todas las nacionalidades":r.value=`${v} seleccionadas`,Q()},{immediate:!0,deep:!0}),e.watch(g,B=>{const v=B.reduce((T,w,q)=>(q!==0&&w.isSelected&&T++,T),0);v===g.value.length-1&&(B[0].isSelected=!0),B[0]&&B[0].isSelected?h.value="Todas las posiciones":h.value=`${v} seleccionadas`,Q()},{immediate:!0,deep:!0}),e.watch(()=>a.filters,B=>{if(B&&B.availableYears){const v=!Number.isNaN(Number(B.selectedYear));l.value=B,c.value=l.value.selectedYear&&v?1:0,f.value=v?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,s.isSelected=B.positions.every(T=>T.isSelected),Q()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{Q()}),e.watch(()=>a.season,B=>{B&&B.id!==y.value&&!a.awaitForFilters&&(y.value=B.id,b(B))},{immediate:!0,deep:!1});async function b(B){try{if(B&&B.id){const v=new Set,T=await J(B.id),w=new Date,q=[],pe=new Map,ge=new Map;T.forEach(E=>{const N=new Date(E.dob),I=Qo(N),$=ea({start:N,end:w});pe.has(E.nationality_id)||pe.set(E.nationality_id,{id:E.nationality_id,isSelected:!0,name:jo[`${E.nationality_id}`]}),ge.has(E.position_id)||ge.set(E.position_id,{id:E.position_id,isSelected:!0,name:qo[`${E.position_id}`]}),v.add(I),q.push($.years)}),l.value.minAge=Math.min(...q),l.value.maxAge=Math.max(...q),l.value.availableYears=[...v].sort((E,N)=>N-E),f.value=l.value.availableYears[0],l.value.nationalities=[...pe.values()],l.value.positions=[...ge.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(v){throw new Error(v)}}function P(B=null){const v=!B||B===Ce.All;(v||B===Ce.NATIONALITY)&&_.value.forEach(T=>{T.isSelected=!0}),(v||B===Ce.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(v||B===Ce.POSITION)&&g.value.forEach(T=>{T.isSelected=!0}),(v||B===Ce.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(v||B===Ce.YEAR)&&(f.value=a.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),Q()}async function J(B){try{const v={Authorization:localStorage.getItem("user_token")||a.token},T={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Ad,w=await Fe.get(T+B,{headers:v});return w.data?w.data.players:[]}catch(v){return Promise.reject(v)}}function j(B){c.value=B.index,a.filters&&a.filters.availableYears&&B.index===0&&(a.filters.selectedYear="Sin límite")}function oe(B){d.value.min=B.minValue,d.value.max=B.maxValue,Q()}function ie(B,v){v.id===0?_.value.forEach(T=>{T.isSelected=B}):(v.isSelected=B,_.value[0].isSelected=_.value.every((T,w)=>w===0?!0:T.isSelected))}function Q(){const B=c.value===0,v={};B?(v.ageByRange=d.value,v.ageLimits={min:l.value.minAge,max:l.value.maxAge}):v.year=f.value,l.value.isEligibilitySelected?v.eligibility=[...l.value.eligibility]:v.nationalities=_.value.reduce((T,w,q)=>(q!==0&&T.push({...w}),T),[]),v.positions=g.value.reduce((T,w,q)=>(q!==0&&T.push({...w}),T),[]),o("update:filters",v)}function re(B,v){v.id===0?g.value.forEach(T=>{T.isSelected=B}):(v.isSelected=B,g.value[0].isSelected=g.value.every((T,w)=>w===0?!0:T.isSelected))}function ce(B){f.value=B,a.filters&&(a.filters.selectedYear=B),Q()}return i({onClearFilters:P}),(B,v)=>(e.openBlock(),e.createElementBlock("div",pd,[e.createElementVNode("div",fd,[e.createElementVNode("div",hd,[e.createVNode(Sl,{"selected-button-index":c.value,buttons:u.value,width:"220px",onChange:j},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",yd,[e.createVNode(e.unref(to),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:oe},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",_d,[gd,e.createVNode(e.unref(de),e.mergeProps({"model-value":f.value},m.value,{items:l.value.availableYears,onInput:ce}),{default:e.withCtx(({selectedItem:T})=>[e.createElementVNode("div",Sd,e.toDisplayString(T),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,e.toDisplayString(T),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),bd,e.createElementVNode("div",Cd,[C.value?(e.openBlock(),e.createElementBlock("div",kd,[Ed,e.createVNode(je,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":v[0]||(v[0]=T=>l.value.isEligibilitySelected=T)},null,8,["modelValue"]),xd])):e.createCommentVNode("",!0),e.createElementVNode("div",wd,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Bd,e.createVNode(e.unref(de),e.mergeProps(m.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:T})=>[e.createElementVNode("div",Fd,e.toDisplayString(T.name),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:T.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Vd,e.createVNode(e.unref(de),e.mergeProps(m.value,{"is-multiple-option":"",items:_.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Nd,e.toDisplayString(r.value),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:T.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":w=>ie(w,T)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Td,[vd,e.createVNode(e.unref(de),e.mergeProps(m.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",$d,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:t.isFemale?T.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):T.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":w=>re(w,T)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},[["__scopeId","data-v-cfc8bb98"]]),Q0="",Pd={class:"plays"},Md={class:"plays__body__offensive"},Rd={class:"plays__body__title"},Dd={class:"number-of-categories"},Od={class:"plays__body__categories"},Ld={class:"plays__body__defensive-possession-offenses"},zd={class:"plays__body__title"},Ud={class:"number-of-categories"},Wd={class:"plays__body__categories"},Hd={class:"plays__body__title"},Yd={class:"number-of-categories"},Gd={class:"plays__body__categories"},jd={class:"plays__body__title"},qd={class:"number-of-categories"},Zd={class:"plays__body__categories"},Jd=L({__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,o=e.ref(!1),a=e.ref(!1),n=e.ref(!1),s=e.ref(!1),l=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),u=e.computed(()=>i.playsCategories.offensive.categories.reduce((f,y)=>(y.isSelected&&f++,f),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((f,y)=>(y.isSelected&&f++,f),0)),d=e.computed(()=>i.playsCategories.possession.categories.reduce((f,y)=>(y.isSelected&&f++,f),0)),m=e.computed(()=>i.playsCategories.offenses.categories.reduce((f,y)=>(y.isSelected&&f++,f),0));function r(f,y){y.isSelected=f}function h(f){f==="offensive"?o.value=!o.value:f==="defensive"?a.value=!a.value:f==="possession"?n.value=!n.value:f==="offenses"&&(s.value=!s.value)}return(f,y)=>(e.openBlock(),e.createElementBlock("div",Pd,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",Md,[e.createElementVNode("div",Rd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:y[0]||(y[0]=_=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",Dd,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:y[1]||(y[1]=_=>h("offensive"))},[e.withDirectives(e.createVNode(we,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Od,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:_.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":_.isSelected,"box-value":_.priority||0,"onUpdate:modelValue":g=>r(g,_)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",Ld,[e.createElementVNode("div",zd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:y[2]||(y[2]=_=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",Ud,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:y[3]||(y[3]=_=>h("defensive"))},[e.withDirectives(e.createVNode(we,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Wd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:_.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":_.isSelected,"box-value":_.priority||0,"onUpdate:modelValue":g=>r(g,_)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]]),e.createElementVNode("div",Hd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:y[4]||(y[4]=_=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",Yd,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:y[5]||(y[5]=_=>h("possession"))},[e.withDirectives(e.createVNode(we,{"is-expanded":n.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Gd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:_.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":_.isSelected,"box-value":_.priority||0,"onUpdate:modelValue":g=>r(g,_)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||n.value]]),e.createElementVNode("div",jd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:y[6]||(y[6]=_=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",qd,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:y[7]||(y[7]=_=>h("offenses"))},[e.withDirectives(e.createVNode(we,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Zd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:_.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":_.isSelected,"box-value":_.priority||0,"onUpdate:modelValue":g=>r(g,_)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])])],4)]))}},[["__scopeId","data-v-364e6cae"]]),ty="",Kd={class:"template-results"},Xd=L({__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const o=t,a=e.computed(()=>o.resultsFilters.results.filter(n=>n.isSelected).length);return e.watch(()=>o.resultsFilters,n=>{i("update:resultsFilters",n)},{deep:!0,immediate:!0}),(n,s)=>(e.openBlock(),e.createElementBlock("div",Kd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":a.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},[["__scopeId","data-v-453e89c2"]]),ay="",qe=L({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){i("click")}return(s,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(a.value),onClick:n},e.toDisplayString(t.text),7))}},[["__scopeId","data-v-9688933e"]]),Qd={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},oa={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},ec={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},tc={4:"OF",5:"Cf",6:"S",7:"F"};function Ut(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const sy="",oc={class:"dropdown"},ac={class:"selected-item"},ne=L({__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",oc,[e.createVNode(e.unref(de),e.mergeProps(e.unref(Se),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",ac,e.toDisplayString(t.itemTextKey?s[t.itemTextKey]:s),1)]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?s[t.itemTextKey]:s),1)]),_:1},16,["is-list-same-width","items"])]))}},[["__scopeId","data-v-064d5f86"]]),ly="",ic={class:"dropdown"},sc={class:"game-item"},nc={key:0,class:"item-game"},lc={class:"match-day"},rc={class:"team-logo"},dc=["src"],cc={class:"text"},uc={class:"text score"},mc={class:"text"},pc={class:"team-logo"},fc=["src"],hc={class:"item-game"},yc={class:"team-logo"},_c=["src"],gc={class:"text"},Sc={class:"text score"},bc={class:"text"},Cc={class:"team-logo"},kc=["src"],pt=L({__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",ic,[e.createVNode(e.unref(de),e.mergeProps(e.unref(Se),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",sc,[s.homeTeam?(e.openBlock(),e.createElementBlock("div",nc,[e.createElementVNode("div",lc,e.toDisplayString(s.roundAbbreviation),1),e.createElementVNode("div",rc,[e.createElementVNode("img",{src:s.homeTeam.logo,alt:""},null,8,dc)]),e.createElementVNode("div",cc,e.toDisplayString(s.homeTeam.acronym),1),e.createElementVNode("div",uc,e.toDisplayString(s.score[0])+" - "+e.toDisplayString(s.score[1]),1),e.createElementVNode("div",mc,e.toDisplayString(s.awayTeam.acronym),1),e.createElementVNode("div",pc,[e.createElementVNode("img",{src:s.awayTeam.logo,alt:""},null,8,fc)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",hc,[e.createElementVNode("div",null,e.toDisplayString(s.roundAbbreviation),1),e.createElementVNode("div",yc,[e.createElementVNode("img",{src:s.homeTeam.logo,alt:""},null,8,_c)]),e.createElementVNode("div",gc,e.toDisplayString(s.homeTeam.acronym),1),e.createElementVNode("div",Sc,e.toDisplayString(s.score[0])+" - "+e.toDisplayString(s.score[1]),1),e.createElementVNode("div",bc,e.toDisplayString(s.awayTeam.acronym),1),e.createElementVNode("div",Cc,[e.createElementVNode("img",{src:s.awayTeam.logo,alt:""},null,8,kc)])])]),_:1},16,["items"])]))}},[["__scopeId","data-v-7883a91e"]]),dy="",ft=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Ec={class:"container"},xc={class:"container__row"},wc={class:"container__row__wrapper"},Vc=ft(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Nc={class:"container__row__wrapper__input"},Bc={class:"container__row two-items"},Fc={class:"container__row__wrapper"},Tc=ft(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),vc={key:0,class:"container__row__wrapper__input"},$c={class:"container__row__wrapper"},Ac=ft(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Ic={key:0,class:"container__row__wrapper__input"},Pc={class:"container__row"},Mc={class:"container__row__wrapper"},Rc=ft(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Dc={key:0,class:"container__row__wrapper__input"},Oc={class:"container__action"},Lc=L({__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},a=e.ref(null),n=e.ref(null),s=e.ref(null),l=e.ref(null);function u(r){a.value=r,i("update:tournament",r)}function c(r){n.value=r,i("update:season",r)}function d(r){s.value=r}function m(r){l.value=r}return(r,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Ec,[e.createElementVNode("div",xc,[e.createElementVNode("div",wc,[Vc,e.createElementVNode("div",Nc,[e.createVNode(ne,{items:t.tournaments,itemTextKey:"name",onInput:u},null,8,["items"])])])]),e.createElementVNode("div",Bc,[e.createElementVNode("div",Fc,[Tc,a.value&&a.value.seasons?(e.openBlock(),e.createElementBlock("div",vc,[e.createVNode(ne,{items:a.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",$c,[Ac,n.value&&n.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",Ic,[e.createVNode(ne,{items:n.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Pc,[e.createElementVNode("div",Mc,[Rc,s.value&&s.value.arrayGames?(e.openBlock(),e.createElementBlock("div",Dc,[e.createVNode(pt,{items:s.value.arrayGames,onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Oc,[e.createVNode(qe,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},[["__scopeId","data-v-b63e9c84"]]),uy="",zc={class:"dropdown"},Uc={class:"item-team"},Wc={class:"team-logo"},Hc=["src"],Yc={class:"team-acronym"},Gc={class:"item-team"},jc={class:"team-logo"},qc=["src"],Zc={class:"team-acronym"},aa=L({__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",zc,[e.createVNode(e.unref(de),e.mergeProps(e.unref(Se),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",Uc,[e.createElementVNode("div",Wc,[e.createElementVNode("img",{src:s.logo,alt:""},null,8,Hc)]),e.createElementVNode("div",Yc,e.toDisplayString(s.acronym),1)])]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",Gc,[e.createElementVNode("div",jc,[e.createElementVNode("img",{src:s.logo,alt:""},null,8,qc)]),e.createElementVNode("div",Zc,e.toDisplayString(s.acronym),1)])]),_:1},16,["items"])]))}},[["__scopeId","data-v-afd2bee8"]]),py="",Jc={class:"advanced-filters"},Kc={class:"advanced-filters__buttons"},Xc=["onClick"],Qc={class:"advanced-filters__filters"},Wt=L({__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Yh)),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>d0)),n=e.defineAsyncComponent(()=>Promise.resolve().then(()=>u0)),s=[{name:"Sub categorías",component:o},{name:"Cancha",component:n},{name:"Condiciones",component:a}],l=e.ref(s[0]),u=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,m)=>(e.openBlock(),e.createElementBlock("div",Jc,[e.createElementVNode("div",Kc,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,r=>e.createElementVNode("div",{key:r.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===r.name}]),onClick:h=>c(r)},e.toDisplayString(r.name),11,Xc)),64))]),e.createElementVNode("div",Qc,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":u.value},null,8,["subcategory-groups"]))],1024))])]))}},[["__scopeId","data-v-c62c5b9c"]]),hy="",$e=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),eu={class:"container"},tu={class:"container__row"},ou={class:"container__row__wrapper"},au=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),iu={class:"container__row__wrapper__input"},su={class:"container__row two-items"},nu={class:"container__row__wrapper"},lu=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),ru={key:0,class:"container__row__wrapper__input"},du={class:"container__row__wrapper"},cu=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),uu={key:0,class:"container__row__wrapper__input"},mu={class:"container__row"},pu={class:"container__row__wrapper"},fu=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),hu={key:0,class:"container__row__wrapper__input"},yu={class:"container__row"},_u={class:"container__row__wrapper"},gu=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),Su={key:0,class:"container__row__wrapper__input"},bu={class:"container__row type-and-advanced"},Cu={class:"container__row__wrapper"},ku=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),Eu={class:"container__row__wrapper__input"},xu={class:"container__row__wrapper center"},wu=$e(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Vu={class:"container__row__wrapper__input"},Nu={class:"container__row"},Bu={class:"container__action"},Fu=L({__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null);e.ref(null);const l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(null),m=e.ref(!0),r=e.computed(()=>c.value?c.value.position_id===1?o.advancedFilterCategories.goalkeeper:o.advancedFilterCategories.player:[]);function h(b){n.value=b,i("update:tournament",b)}function f(b){s.value=b,i("update:season",b)}function y(b){u.value=b,i("update:team",b)}function _(b){c.value=b}function g(b){l.value=b}function C(b){d.value=b}return(b,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",eu,[e.createElementVNode("div",tu,[e.createElementVNode("div",ou,[au,e.createElementVNode("div",iu,[e.createVNode(ne,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",su,[e.createElementVNode("div",nu,[lu,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",ru,[e.createVNode(ne,{items:n.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",du,[cu,s.value&&s.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",uu,[e.createVNode(aa,{items:s.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",mu,[e.createElementVNode("div",pu,[fu,u.value&&u.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",hu,[e.createVNode(ne,{items:u.value.arrayPlayers,itemTextKey:"player_name",onInput:_},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",yu,[e.createElementVNode("div",_u,[gu,s.value&&s.value.mapGamesByTeam&&u.value?(e.openBlock(),e.createElementBlock("div",Su,[e.createVNode(pt,{items:s.value.mapGamesByTeam.get(u.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",bu,[e.createElementVNode("div",Cu,[ku,e.createElementVNode("div",Eu,[e.createVNode(ne,{items:r.value,itemTextKey:"name","is-list-same-width":!1,onInput:C},null,8,["items"])])]),e.createElementVNode("div",xu,[wu,e.createElementVNode("div",Vu,[e.createVNode(je,{modelValue:m.value,"onUpdate:modelValue":P[0]||(P[0]=J=>m.value=J)},null,8,["modelValue"])])])]),e.createElementVNode("div",Nu,[e.createVNode(Wt,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",Bu,[e.createVNode(qe,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-575b26b5"]]),_y="",Oe=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),Tu={class:"container"},vu={class:"container__row"},$u={class:"container__row__wrapper"},Au=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Iu={class:"container__row__wrapper__input"},Pu={class:"container__row two-items"},Mu={class:"container__row__wrapper"},Ru=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Du={key:0,class:"container__row__wrapper__input"},Ou={class:"container__row__wrapper"},Lu=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),zu={key:0,class:"container__row__wrapper__input"},Uu={class:"container__row"},Wu={class:"container__row__wrapper"},Hu=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Yu={key:0,class:"container__row__wrapper__input"},Gu={class:"container__row type-and-advanced"},ju={class:"container__row__wrapper"},qu=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),Zu={class:"container__row__wrapper__input"},Ju={class:"container__row__wrapper center"},Ku=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Xu={class:"container__row__wrapper__input"},Qu={class:"container__row"},em={class:"container__action"},tm=L({__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null);e.ref(null);const l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(!0),m=e.computed(()=>o.advancedFilterCategories.team);function r(g){n.value=g,i("update:tournament",g)}function h(g){s.value=g,i("update:season",g)}function f(g){u.value=g,i("update:team",g)}function y(g){l.value=g}function _(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Tu,[e.createElementVNode("div",vu,[e.createElementVNode("div",$u,[Au,e.createElementVNode("div",Iu,[e.createVNode(ne,{items:t.tournaments,itemTextKey:"name",onInput:r},null,8,["items"])])])]),e.createElementVNode("div",Pu,[e.createElementVNode("div",Mu,[Ru,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",Du,[e.createVNode(ne,{items:n.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ou,[Lu,s.value&&s.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",zu,[e.createVNode(aa,{items:s.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Uu,[e.createElementVNode("div",Wu,[Hu,s.value&&s.value.mapGamesByTeam&&u.value?(e.openBlock(),e.createElementBlock("div",Yu,[e.createVNode(pt,{items:s.value.mapGamesByTeam.get(u.value.team_id),onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Gu,[e.createElementVNode("div",ju,[qu,e.createElementVNode("div",Zu,[e.createVNode(ne,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),e.createElementVNode("div",Ju,[Ku,e.createElementVNode("div",Xu,[e.createVNode(je,{modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=b=>d.value=b)},null,8,["modelValue"])])])]),e.createElementVNode("div",Qu,[e.createVNode(Wt,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",em,[e.createVNode(qe,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-6d73d5e6"]]),Sy="",Le=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),om={class:"container"},am={class:"container__row"},im={class:"container__row__wrapper"},sm=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),nm={class:"container__row__wrapper__input"},lm={class:"container__row two-items"},rm={class:"container__row__wrapper"},dm=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),cm={key:0,class:"container__row__wrapper__input"},um={class:"container__row__wrapper"},mm=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),pm={key:0,class:"container__row__wrapper__input"},fm={class:"container__row"},hm={class:"container__row__wrapper"},ym=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),_m={key:0,class:"container__row__wrapper__input"},gm={class:"container__row type-and-advanced"},Sm={class:"container__row__wrapper"},bm=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),Cm={class:"container__row__wrapper__input"},km={class:"container__row__wrapper center"},Em=Le(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),xm={class:"container__row__wrapper__input",style:{width:"fit-content"}},wm={class:"container__row"},Vm={class:"container__action"},Nm=L({__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null),l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(!0),m=e.computed(()=>o.advancedFilterCategories.games);function r(g){n.value=g,i("update:tournament",g)}function h(g){s.value=g,i("update:season",g)}function f(g){l.value=g}function y(g){u.value=g}function _(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",om,[e.createElementVNode("div",am,[e.createElementVNode("div",im,[sm,e.createElementVNode("div",nm,[e.createVNode(ne,{items:t.tournaments,itemTextKey:"name",onInput:r},null,8,["items"])])])]),e.createElementVNode("div",lm,[e.createElementVNode("div",rm,[dm,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",cm,[e.createVNode(ne,{items:n.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",um,[mm,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",pm,[e.createVNode(ne,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",fm,[e.createElementVNode("div",hm,[ym,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",_m,[e.createVNode(pt,{items:l.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",gm,[e.createElementVNode("div",Sm,[bm,e.createElementVNode("div",Cm,[e.createVNode(ne,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),e.createElementVNode("div",km,[Em,e.createElementVNode("div",xm,[e.createVNode(je,{modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=b=>d.value=b)},null,8,["modelValue"])])])]),e.createElementVNode("div",wm,[e.createVNode(Wt,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",Vm,[e.createVNode(qe,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-6e904db8"]]),Cy="",Bm={class:"template-videos"},Fm={class:"template-videos__header"},Tm={class:"template-videos__body"},vm=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:Lc,VideosPlayer:Fu,VideosTeam:tm,VideosGame:Nm}}),$m=L(Object.assign(vm,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const o=t,a={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},n=[],s=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[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],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},u={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),m=e.ref(c.value[0]),r=e.ref({}),h=e.ref({}),f=e.ref({}),y=e.ref({}),_=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const C=e.ref(null);e.watch(r,E=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(N=>N.id===E.id),E.arrayMatchDays?(y.value=E.arrayMatchDays[0]||{},f.value=E.arrayTeams[0]||{}):(oe(E),ie(E))}),e.watch(f,()=>{setTimeout(()=>{r.value.mapPlayersByTeam&&(!f.value.arrayPlayers||!f.value.arrayPlayers.length)&&(f.value.arrayPlayers=r.value.mapPlayersByTeam.get(f.value.team_id))},700)});async function b(){try{d.value=await P()}catch(E){throw new Error(E)}}async function P(){try{const E={Authorization:Ut()||o.token},N={}.API_TOURNAMENTS||o.tournamentsUrl,I=await Fe.get(N,{headers:E});return I.data?I.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(E){return Promise.reject(E)}}async function J(E,N,I=""){i("loading-data");let $=I;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||o.gamesUrl,E.forEach((M,x)=>{$+=`${x===0?"":"&"}seasons=${M}`}));const A={Authorization:Ut()||o.token},{data:{data:W,teams:z}}=await Fe.get($,{headers:A});return{seasonsAndGames:W,seasonsAndTeams:z}}catch(A){if(N>0)return J(E,N-1,$);throw new Error(A)}finally{i("loading-data")}}async function j(E){try{const N={Authorization:Ut()||o.token},$=` ${{}.API_PLAYERS_BY_SEASON||o.playersUrl}${E.seasonId}`,A=await Fe.get($,{headers:N});return A.data?A.data.players:[]}catch(N){return Promise.reject(N)}}async function oe(E){try{const{seasonsAndGames:N,seasonsAndTeams:I}=await J([E.id,...E.related_seasons.map(z=>z.id)],3),$=I.find(z=>z._id===E.id);r.value.arrayTeams=[],r.value.mapTeams=new Map;const A=$.teams.reduce((z,M)=>(r.value.arrayTeams.push(M),r.value.mapTeams.set(M.team_id,{name:M.colloquial_name,acronym:M.acronym,logo:M.logo,id:M.team_id}),z.set(M.team_id,M),z),new Map);f.value=r.value.arrayTeams[0],r.value.mapGames=new Map,r.value.mapGamesByTeam=new Map;const W=Array.from(N.reduce((z,M)=>(M.games.forEach(x=>{if(x.game_status===1&&x.has_video){(!r.value.maxGameId||x.game_id>r.value.maxGameId)&&(r.value.maxGameId=x.game_id);let D=x.matchday_abbreviation.replace("M","J"),Y=x.matchday_abbreviation.replace("M","Jornada ");const ee=x.matchday_abbreviation.replace("M","");M.season_type===0?h.value.tournament_type===1&&(x.seasonId===881?(D=tc[ee]||D,Y=ec[ee]||Y):(D=oa[x.matchday_abbreviation]?x.matchday_abbreviation:D,Y=oa[x.matchday_abbreviation]||Y,D==="FINAL"&&(D="F"))):M.season_type===1?(D=Qd[x.matchday_abbreviation],Y=D):(D=x.matchday_abbreviation.replace("PO","R"),Y="Repechaje"),x.roundAbbreviation=D,x.roundName=Y,r.value.mapGames.set(x.game_id,{id:x.game_id,date:x.date,dateTimeMillis:new Date(x.date_time_utc).valueOf(),homeTeam:r.value.mapTeams.get(x.home_team),awayTeam:r.value.mapTeams.get(x.visiting_team),roundAbbreviation:x.roundAbbreviation,roundName:x.roundName,score:x.score,gameResult:x.score[0]>x.score[1]?1:x.score[0]<x.score[1]?2:3,seasonId:M.season_id});const fe=z.get(x.roundAbbreviation);x.numberDateTimeMillis=new Date(x.date_time_utc).getTime(),x.homeTeam=A.get(x.home_team),x.awayTeam=A.get(x.visiting_team);const he=r.value.mapGamesByTeam.get(x.home_team),ze=r.value.mapGamesByTeam.get(x.visiting_team);he?he.push(x):r.value.mapGamesByTeam.set(x.home_team,[x]),ze?ze.push(x):r.value.mapGamesByTeam.set(x.visiting_team,[x]),fe?fe.arrayGames.push(x):z.set(x.roundAbbreviation,{stringMatchDayAbbreviation:x.roundAbbreviation,stringMatchDayName:x.roundName,arrayGames:[x]})}}),z),new Map).values());W.reverse(),W.forEach(z=>{z.arrayGames.sort((M,x)=>M.numberDateTimeMillis-x.numberDateTimeMillis)}),r.value.arrayMatchDays=W,y.value=W[0]||{}}catch(N){throw new Error(N)}}async function ie(E){try{const N=await v(E.id);r.value.mapPlayers=new Map,r.value.mapPlayersByTeam=N.reduce((I,$)=>{r.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const A=I.get($.team_id);return A?A.push($):I.set($.team_id,[$]),I},new Map)}catch(N){throw new Error(N)}}async function Q(){try{let E=[];_.value.isEmpty?(E=await T(),g.value={...E}):E=g.value;const N=[];if(E&&E.length){_.value=E.reduce((M,x)=>{if(x.group_id!=="g-55"){const D={idAux:x.group_id,ids:[...x.ids?x.ids:[],...x.rival_Ids?x.rival_Ids:[]],type:x.type,name:x.name,coordinatePoint:x.coordinate_point,requiresRivalTransform:s.includes(x.group_id)};D.idsAux=[...D.ids],D.subcategoryGroups=x.group_id==="g-12"?[]:re(x,0,new Map,!1,{},D.idsAux),N.push(D),D.type.includes(u.player)&&M.player.push(D),D.type.includes(u.team)&&(D.idAux!=="g-2"&&M.games.push(D),M.team.push(D)),D.type.includes(u.goalkeeper)&&M.goalkeeper.push(D)}return M},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const I=new Map,$="Resumen",A="Todas sus jugadas",W=_.value.player.reduce((M,x)=>{const D=ce(x);return D.forEach(Y=>{I.set(Y,x.name)}),M.push(...D),M},[]),z=_.value.goalkeeper.reduce((M,x)=>{const D=ce(x);return D.forEach(Y=>{I.set(Y,x.name)}),M.push(...D),M},[]);_.value.games.unshift({name:$,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),_.value.team.unshift({name:$,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),_.value.player.unshift({name:$,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:A,arrayCategoriesIds:W,booleanIsMinutesPlayed:!0}),_.value.goalkeeper.unshift({name:$,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:A,arrayCategoriesIds:z,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function re(E,N=0,I=new Map,$=!1,A={},W=[]){if(!E.group_id)return;let z=I.get(N);const M=$?`${E.id_category}_r`:E.id_category;E.id_category&&W.push(E.id_category);let x={ids:[M],groupId:E.group_id,level:N,name:E.name,isSelected:!0,fatherCategories:N>0?[A]:[],idsByFatherCategory:{[E.category_father]:[M]}};if(N>0&&N===1&&(x.id=E.id_category),z&&N!==0){const D=E.group_id.charAt(E.group_id.length-1),Y=z.find(ee=>ee.groupId.endsWith(D));Y&&!n.includes(x.groupId)?(x=Y,Y.ids.push(M),Y.fatherCategories.push(A),Y.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(he=>he.groupId===x.groupId)||ee.childCategories.push(x):ee.childCategories=[x]}),Y.idsByFatherCategory[E.category_father]?Y.idsByFatherCategory[E.category_father].push(M):Y.idsByFatherCategory[E.category_father]=[M]):(x.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(he=>he.groupId===x.groupId)||ee.childCategories.push(x):ee.childCategories=[x]}),z.push(x))}else N!==0&&(A.childCategories?A.childCategories.push(x):A.childCategories=[x],z=[x],I.set(N,z));if(E.categories&&E.categories.length?E.categories.forEach(D=>{re(D,N+1,I,$,x,W)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(D=>{re(D,N+1,I,!0,x,W)}),N===0)return Array.from(I.values())}function ce(E){const N=E||E;if(N.booleanIsBestPlays)return N.arrayCategoriesIds;const I={total:[],toRemove:[]};if(N.subcategoryGroups&&N.subcategoryGroups.length?N.subcategoryGroups[0].forEach(A=>{B(A,null,I)}):(N.ids&&I.total.push(...N.ids),N.rival_ids&&N.rival_ids.forEach($=>{I.total.push(`${$}_r`)})),I.total=I.total.reduce(($,A)=>(I.toRemove.includes(A)||$.push(A),$),[]),!E){const A=N.name.toLowerCase().includes("recibid");C.value.isRivalSubject=A,C.value.avoidCategorySingleName=A,C.value.coordinatePoint=N.coordinatePoint,C.value.requiresRivalTransform=N.requiresRivalTransform}return I.total}function B(E,N=[],I={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach($=>{const A=N?Object.entries(E.idsByFatherCategory).reduce((W,[z,M])=>(N.includes(Number(z))&&M.forEach(x=>{typeof x=="string"&&x.endsWith("_r")?W.push(Number(x.split("_")[0])):W.push(x)}),W),[]):[E.id];B($,A,I)}):N?Object.entries(E.idsByFatherCategory).forEach(([$,A])=>{N.includes(Number($))&&A.forEach(W=>{I.total.push(W)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([$,A])=>{A.forEach(W=>{I.total.push(W)})}):I.total.push(E.id):E.childCategories||E.ids.forEach($=>{I.toRemove.push($)})}async function v(E){try{const N=await j({seasonId:E});return N.forEach(I=>{const[$,A]=I.player_name.split(","),W=$.split(" ");let z="";for(const M of W)if(z+=` ${M}`,M.length>3)break;I.shortName=A&&$?`${A.trim().charAt(0)}.${z}`:""}),N}catch(N){return Promise.reject(N)}}async function T(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Fe.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function w(E){m.value=E}function q(E){h.value=E,r.value=E.seasons[0]}function pe(E){r.value=E}function ge(E){f.value=E}return b(),Q(),(E,N)=>(e.openBlock(),e.createElementBlock("div",Bm,[e.createElementVNode("div",Fm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,I=>(e.openBlock(),e.createBlock(qe,e.mergeProps({key:I.name},a,{text:I.name,"is-active":m.value.componentName===I.componentName,tournaments:d.value,onClick:$=>w(I)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",Tm,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value.componentName),{tournaments:d.value,"advanced-filter-categories":_.value,"onUpdate:tournament":q,"onUpdate:season":pe,"onUpdate:team":ge},null,40,["tournaments","advanced-filter-categories"]))])]))}}),[["__scopeId","data-v-d6f7aec8"]]),ia=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),Ey="",Am={class:"template-taken-corners"},Im={class:"template-taken-corners__header"},Pm={class:"template-taken-corners__header__all"},Mm={class:"template-taken-corners__body"},Rm={class:"template-taken-corners__body__players"},Dm={class:"template-taken-corners__body__players__player__jersey"},Om={class:"template-taken-corners__body__players__player__photo"},Lm={class:"template-taken-corners__body__players__player__photo__img"},zm=["src"],Um={class:"template-taken-corners__body__players__player__info"},Wm={class:"template-taken-corners__body__players__player__info__name"},Hm={class:"template-taken-corners__body__players__player__info__position"},Ym={class:"template-taken-corners__body__players__player__info__position__nationality"},Gm=["src"],jm={class:"template-taken-corners__body__players__player__info__position__name"},qm={class:"template-taken-corners__body__players__player__checkbox"},Zm=L({__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!1),s=e.ref([]),l=e.computed(()=>a.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),u=e.computed(()=>s.value.reduce((_,g)=>g.isSelected?_+1:_,0));e.watch(()=>a.takenCornersFilters,_=>{s.value=_.map(g=>{const C={...g};return(g.isSelected===void 0||g.isSelected===null)&&(C.isSelected=!0),C})},{immediate:!0,deep:!0}),e.watch(u,_=>{n.value=_===s.value.length,o("change-filters-selected",_),o("update:filters",s.value)},{immediate:!0});function c(_){return`https://golstatsimages.blob.core.windows.net/flags/${_}.jpg`}function d(_){return`https://golstatsimages.blob.core.windows.net/players-profile/${_}.png`}function m(_){let g=!1;return _.split(" ").reduce((b,P)=>(g||(P.length>3?(b=P,g=!0):b+=`${P} `),b),"").trim()}function r(_){return`${m(_.last_name)}, ${_.first_name.trim()}`}function h(_){return a.isFemale?ia.get(_.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):ia.get(_.positions[0])}function f(_){_?s.value.forEach(g=>{g.isSelected=!0}):s.value.forEach((g,C)=>{g.isSelected=C===0})}function y(){s.value.forEach(_=>{_.isSelected=!0})}return i({clearFilters:y}),(_,g)=>(e.openBlock(),e.createElementBlock("div",Am,[e.createElementVNode("div",Im,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",Pm,[e.createVNode(e.unref(O),{"model-value":n.value,label:"Seleccionar todos","onUpdate:modelValue":f},null,8,["model-value"])])]),e.createElementVNode("div",Mm,[e.createElementVNode("div",Rm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",Dm,e.toDisplayString(C.jersey),1),e.createElementVNode("div",Om,[e.createElementVNode("div",Lm,[e.createElementVNode("img",{src:d(C.player_id),alt:"player photo",width:"36",height:"36"},null,8,zm)])]),e.createElementVNode("div",Um,[e.createElementVNode("div",Wm,e.toDisplayString(r(C)),1),e.createElementVNode("div",Hm,[e.createElementVNode("div",Ym,[e.createElementVNode("img",{src:c(C.nationality_id),alt:"country flag"},null,8,Gm)]),e.createElementVNode("div",jm,e.toDisplayString(h(C)),1)])]),e.createElementVNode("div",qm,[e.createVNode(e.unref(O),{modelValue:C.isSelected,"onUpdate:modelValue":b=>C.isSelected=b,"avoid-interaction":u.value===1&&C.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},[["__scopeId","data-v-763fcc54"]]),ht={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},wy="",Ht=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),Jm={class:"template-how-was-corner"},Km={class:"template-how-was-corner__header"},Xm=Ht(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),Qm={class:"template-how-was-corner__header__radio-input"},ep={class:"template-how-was-corner__header__radio-input__radio"},tp=Ht(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),op={class:"template-how-was-corner__header__radio-input"},ap={class:"template-how-was-corner__header__radio-input__radio"},ip=Ht(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),sp=["onClick"],np={class:"template-how-was-corner__content__corner-type__img"},lp=["src","alt"],rp={class:"template-how-was-corner__content__corner-type__info"},dp={class:"template-how-was-corner__content__corner-type__info__title"},cp=L({__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>ht},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const o=t,a=e.ref("left"),n=e.computed(()=>o.howWasCornerFilters[o.howWasCornerFilters.cornerType]),s=e.computed(()=>n.value.filter(u=>u.isSelected).length);e.watch(()=>a.value,u=>{o.howWasCornerFilters.cornerType=u}),e.watch(()=>o.howWasCornerFilters,u=>{i("change-filters-selected",o.howWasCornerFilters[u.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),a.value=u.cornerType,i("update:filters",u)},{deep:!0,immediate:!0});function l(u){u.isSelected&&s.value===1||(u.isSelected=!u.isSelected)}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Jm,[e.createElementVNode("div",Km,[Xm,e.createElementVNode("div",Qm,[e.createElementVNode("div",ep,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d)},null,512),[[e.vModelRadio,a.value]]),tp])]),e.createElementVNode("div",op,[e.createElementVNode("div",ap,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>a.value=d)},null,512),[[e.vModelRadio,a.value]]),ip])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:r=>l(d)},[e.createElementVNode("div",np,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,lp)]),e.createElementVNode("div",rp,[e.createElementVNode("div",dp,e.toDisplayString(d.title),1)])],10,sp))),128))],2)]))}},[["__scopeId","data-v-b7e3b8e0"]]),Ze=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],Ny="",Ee=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),up={class:"template-zone"},mp={class:"controls-zone-container"},pp={class:"controls-zone-container-title-checkcon"},fp={class:"controls-zone-container-title-checkcon-check"},hp={class:"gsc-field-img-container"},yp={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_p=["fill"],gp=["fill"],Sp=["fill"],bp=["fill"],Cp=["fill"],kp=["fill"],Ep=["fill"],xp=["fill"],wp=["fill"],Vp=["fill"],Np=["fill"],Bp=["fill"],Fp=["fill"],Tp=["fill"],vp=["fill"],$p=["fill"],Ap=["fill"],Ip=["fill"],Pp=["fill"],Mp=["fill"],Rp=["fill"],Dp=["fill"],Op=["fill"],Lp=["fill"],zp=["fill"],Up=["fill"],Wp=["fill"],Hp=["fill"],Yp=["fill"],Gp=["fill"],jp=["fill"],qp=["fill"],Zp=["fill"],Jp=["fill"],Kp=["fill"],Xp=Ee(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),Qp=Ee(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),ef=["id"],tf=[Ee(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1))],of=["mask"],af=[Ee(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1))],sf=Ee(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),nf=Ee(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),lf={class:"template-zone__total-corners"},rf=[Ee(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),Ee(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1))],df=L({__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ze]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!0),s=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(s,m=>{n.value=m.length===35}),e.watch(()=>a.zoneFilters,m=>{s.value=m},{immediate:!0,deep:!0}),e.watch(()=>s.value,m=>{o("update:filters",m),o("change-filters-selected",m.length)},{deep:!0});function u(m){m?(s.value=Ze,n.value=!0):(s.value=[],n.value=!1)}function c(m){s.value.includes(m)?s.value=s.value.filter(r=>r!==m):s.value.push(m),n.value=s.value.length===35}function d(){s.value=[...Ze]}return i({clearFilters:d}),(m,r)=>(e.openBlock(),e.createElementBlock("div",up,[e.createElementVNode("div",mp,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",pp,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",fp,[e.createVNode(e.unref(O),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":n.value,"onUpdate:modelValue":u},null,8,["model-value"])])])]),e.createElementVNode("div",hp,[(e.openBlock(),e.createElementBlock("svg",yp,[e.createElementVNode("rect",{onClick:r[0]||(r[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,_p),e.createElementVNode("rect",{onClick:r[1]||(r[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,gp),e.createElementVNode("rect",{onClick:r[2]||(r[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,Sp),e.createElementVNode("rect",{onClick:r[3]||(r[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,bp),e.createElementVNode("rect",{onClick:r[4]||(r[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,Cp),e.createElementVNode("rect",{onClick:r[5]||(r[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,kp),e.createElementVNode("rect",{onClick:r[6]||(r[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,Ep),e.createElementVNode("rect",{onClick:r[7]||(r[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,xp),e.createElementVNode("rect",{onClick:r[8]||(r[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,wp),e.createElementVNode("rect",{onClick:r[9]||(r[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,Vp),e.createElementVNode("rect",{onClick:r[10]||(r[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,Np),e.createElementVNode("rect",{onClick:r[11]||(r[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,Bp),e.createElementVNode("rect",{onClick:r[12]||(r[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,Fp),e.createElementVNode("rect",{onClick:r[13]||(r[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,Tp),e.createElementVNode("rect",{onClick:r[14]||(r[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,vp),e.createElementVNode("rect",{onClick:r[15]||(r[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,$p),e.createElementVNode("rect",{onClick:r[16]||(r[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,Ap),e.createElementVNode("rect",{onClick:r[17]||(r[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,Ip),e.createElementVNode("rect",{onClick:r[18]||(r[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,Pp),e.createElementVNode("rect",{onClick:r[19]||(r[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,Mp),e.createElementVNode("rect",{onClick:r[20]||(r[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,Rp),e.createElementVNode("rect",{onClick:r[21]||(r[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,Dp),e.createElementVNode("rect",{onClick:r[22]||(r[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,Op),e.createElementVNode("rect",{onClick:r[23]||(r[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,Lp),e.createElementVNode("rect",{onClick:r[24]||(r[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,zp),e.createElementVNode("rect",{onClick:r[25]||(r[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,Up),e.createElementVNode("rect",{onClick:r[26]||(r[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,Wp),e.createElementVNode("rect",{onClick:r[27]||(r[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,Hp),e.createElementVNode("rect",{onClick:r[28]||(r[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,Yp),e.createElementVNode("rect",{onClick:r[29]||(r[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,Gp),e.createElementVNode("rect",{onClick:r[30]||(r[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,jp),e.createElementVNode("rect",{onClick:r[31]||(r[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,qp),e.createElementVNode("rect",{onClick:r[32]||(r[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,Zp),e.createElementVNode("rect",{onClick:r[33]||(r[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,Jp),e.createElementVNode("rect",{onClick:r[34]||(r[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,Kp),Xp,Qp,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},tf,8,ef),e.createElementVNode("g",{mask:`url(#${l.value})`},af,8,of),sf,nf]))]),e.withDirectives(e.createElementVNode("div",lf,rf,512),[[e.vShow,!1]])]))}},[["__scopeId","data-v-378bf7e2"]]),yt=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],Ay="",cf={class:"what-happened"},uf={class:"what-happened__all"},mf={class:"what-happened__filters"},pf={key:0,class:"what-happened__filters__filter__composed"},ff={class:"what-happened__filters__filter__composed__main"},hf={key:1,class:"what-happened__filters__filter__single"},yf=L({__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...yt]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.computed(()=>a.whatHappenedFilters.reduce((f,y)=>(y.child?y.child.forEach(_=>{_.isSelected&&f++}):y.isSelected&&f++,f),0)),s=e.computed(()=>a.whatHappenedFilters.reduce((f,y)=>(y.child?f+=y.child.length:f++,f),0)),l=e.computed(()=>n.value===s.value),u=e.computed(()=>n.value===1);e.watch(()=>a.whatHappenedFilters,f=>{o("change-filters-selected",n.value),o("update:filters",f)},{deep:!0,immediate:!0});function c(f){a.whatHappenedFilters.forEach(y=>{f?(y.isSelected=f,y.child&&y.child.forEach(_=>{_.isSelected=f})):y.child?(y.isSelected=!0,y.child.forEach(_=>{_.isSelected=!0})):y.isSelected=!1})}function d(f,y){y.isSelected=f,y.child.forEach(_=>{_.isSelected=f})}function m(f,y,_){_.isSelected=f,y.isSelected=y.child.every(g=>g.isSelected)}function r(f,y){y.isSelected=f}function h(){a.whatHappenedFilters.forEach(f=>{f.child?f.child.forEach(y=>{y.isSelected=!0}):f.isSelected=!0})}return i({onResetFilters:h}),(f,y)=>(e.openBlock(),e.createElementBlock("div",cf,[e.createElementVNode("div",uf,[e.createVNode(e.unref(O),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",mf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(_,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[_.child?(e.openBlock(),e.createElementBlock("div",pf,[e.createElementVNode("div",ff,[e.createVNode(e.unref(O),{"model-value":_.isSelected,label:t.isFemale?_.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):_.text,"avoid-interaction":u.value&&_.isSelected,"onUpdate:modelValue":C=>d(C,_)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.child,(C,b)=>(e.openBlock(),e.createElementBlock("div",{key:`c${b}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(O),{"model-value":C.isSelected,label:t.isFemale?C.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):C.text,"avoid-interaction":u.value&&C.isSelected,"onUpdate:modelValue":P=>m(P,_,C)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",hf,[e.createVNode(e.unref(O),{"model-value":_.isSelected,label:t.isFemale?_.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):_.text,"avoid-interaction":u.value&&_.isSelected,"onUpdate:modelValue":C=>r(C,_)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},[["__scopeId","data-v-8f375a1a"]]),_t={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Py="",sa=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),_f={class:"template-results"},gf={class:"template-results__type-switch"},Sf=sa(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),bf=sa(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),Cf={class:"template-results__info"},kf={key:0,class:"template-results__group"},Ef={key:1,class:"template-results__group"},xf=L({__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({..._t})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(null),s=e.computed(()=>{const c=n.value.isMoment?n.value.results.moment.filter(d=>d.isSelected).length:n.value.results.final.filter(d=>d.isSelected).length;return o("change-filters-selected",c),c}),l=e.computed(()=>n.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>a.resultsFilters,c=>{n.value===null&&(n.value={...c})},{deep:!0,immediate:!0}),e.watch(n,c=>{o("update:filters",c)},{deep:!0,immediate:!0});function u(){n.value.isMoment=!1,n.value.results.moment.forEach(c=>{c.isSelected=!0}),n.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:u}),(c,d)=>(e.openBlock(),e.createElementBlock("div",_f,[e.withDirectives(e.createElementVNode("div",gf,[Sf,e.createVNode(je,{modelValue:n.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value.isMoment=m)},null,8,["modelValue"]),bf],512),[[e.vShow,!n.value.isMomentOnly]]),e.createElementVNode("div",Cf,e.toDisplayString(l.value),1),n.value.isMoment?(e.openBlock(),e.createElementBlock("div",kf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.results.moment,(m,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:m.isSelected,"onUpdate:modelValue":h=>m.isSelected=h,label:m.name,"avoid-interaction":s.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Ef,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.results.final,(m,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:m.isSelected,"onUpdate:modelValue":h=>m.isSelected=h,label:m.name,"avoid-interaction":s.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},[["__scopeId","data-v-ee3b28d3"]]),Ry="",wf={class:"years"},Vf=["onClick"],Nf=L({__name:"TemplateYears",props:{years:{type:Array,default:()=>[]}},emits:["change-year"],setup(t,{emit:i}){function o(a){i("change-year",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",wf,[e.createVNode(Pe,{height:"200px"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"item",style:{padding:"5px 10px"},onClick:n[0]||(n[0]=s=>o(0))},"Sin límite"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.years,(s,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"item",style:{padding:"5px 10px"},onClick:u=>o(s)},e.toDisplayString(s),9,Vf))),128))]),_:1})]))}},[["__scopeId","data-v-90979ff5"]]),Bf={class:"positions"},Ff={__name:"TemplatePositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-positions"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref(""),s=e.computed(()=>{let u=o.positions&&o.positions.length?[...o.positions]:[];const c=u[0];return(!c||c.id!==0)&&u.unshift(a),u.sort((d,m)=>d.id-m.id),u});e.watch(s,u=>{const c=u.filter(d=>d.isSelected);c.length===s.value.length-1&&(u[0].isSelected=!0),u[0]&&u[0].isSelected?n.value="Todas las posiciones":c.length===1?n.value=c[0].name:n.value=`${c.length} seleccionadas`,i("change-positions",u)},{immediate:!0,deep:!0});function l(u,c){c.id===0?s.value.forEach(d=>{d.isSelected=u}):(c.isSelected=u,s.value[0].isSelected=s.value.every((d,m)=>m===0?!0:d.isSelected))}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Bf,[e.createVNode(Pe,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,style:{padding:"5px 0"}},[e.createVNode(e.unref(O),{"model-value":d.isSelected,label:t.isFemale?d.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":r=>l(r,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},Tf={class:"nationalities"},vf={__name:"TemplateNationalities",props:{nationalities:{type:Array,default:()=>[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-nationalities"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las nacionalidades",isSelected:!1},n=e.ref(""),s=e.computed(()=>{let u=o.nationalities&&o.nationalities.length?[...o.nationalities]:[],c=[];const d=u.find(h=>h.id===138),m=u.find(h=>h.id===0),r=u.filter(h=>h.id!==138);return r.sort((h,f)=>h.name.localeCompare(f.name)),d&&(c=[d,...r]),m||(c=[a,...c]),c});e.watch(s,u=>{const c=u.filter(m=>m.isSelected);c.length===s.value.length-1&&(u[0].isSelected=!0),u[0]&&u[0].isSelected?n.value="Todas las posiciones":c.length===1?n.value=c[0].name:n.value=`${c.length} seleccionadas`;const d=u.filter(m=>m.id!==0&&m.isSelected);i("change-nationality",d)},{immediate:!0,deep:!0});function l(u,c){c.id===0?s.value.forEach(d=>{u?d.isSelected=u:d.isSelected=d.id===138}):(c.isSelected=u,s.value[0].isSelected=s.value.every((d,m)=>m===0?!0:d.isSelected))}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Tf,[e.createVNode(Pe,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,style:{padding:"5px 0"}},[e.createVNode(e.unref(O),{"model-value":d.isSelected,label:d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":r=>l(r,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},Oy="",$f=t=>(e.pushScopeId("data-v-ed1a65e4"),t=t(),e.popScopeId(),t),Af={class:"teams"},If=$f(()=>e.createElementVNode("div",{class:"teams__header"},[e.createTextVNode(" No considerar partidos jugados vs "),e.createElementVNode("div",{class:"vertical-separator"})],-1)),Pf={class:"team-logo"},Mf=["src","alt"],Rf={class:"team-name"},Df=L({__name:"TemplateTeams",props:{seasonsIds:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t;e.ref(!1);const n=e.ref([]);e.computed(()=>n.value.filter(d=>d.isSelected).length),e.watch(()=>a.seasonsIds,async d=>{if(d)try{await s()}catch(m){console.error("Error fetching teams:",m)}},{immediate:!0}),e.watch(()=>n.value,d=>{const m=d.filter(r=>r.isSelected);o("change-filters-selected",m.length),o("update:filters",m)},{immediate:!0,deep:!0});async function s(){const d=new Set,m=[],r=a.seasonsIds.map(f=>l({seasonId:f}));(await Promise.all(r)).forEach(f=>{f.teams.forEach(y=>{d.has(y.id||y.team_id)||(d.add(y.id||y.team_id),m.push({...y,isSelected:!1}))})}),n.value=m}async function l({seasonId:d}){try{const m=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${d}`;return(await fetch(m,{headers:{Authorization:a.token}})).json()}catch(m){return Promise.reject(m)}}function u(d,m){m.isSelected=d}function c(){n.value.forEach(d=>{d.isSelected=!1})}return i({clearSelectedTeams:c}),(d,m)=>(e.openBlock(),e.createElementBlock("div",Af,[If,e.createVNode(Pe,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id||r.team_id,class:"teams__team"},[e.createVNode(e.unref(O),{"model-value":r.isSelected,fontFamily:t.fontFamily,width:"fit-content","onUpdate:modelValue":h=>u(h,r)},null,8,["model-value","fontFamily","onUpdate:modelValue"]),e.createElementVNode("div",Pf,[e.createElementVNode("img",{src:r.logo,alt:r.colloquial_name,width:"24",height:"24"},null,8,Mf)]),e.createElementVNode("div",Rf,e.toDisplayString(r.colloquial_name),1)]))),128))]),_:1})]))}},[["__scopeId","data-v-ed1a65e4"]]),zy="",Of={key:0,class:"productivity__header__text"},Lf={key:0},zf={key:1},Uf={key:2},Wf={key:3},Hf={key:1,class:"productivity__header__checkbox"},Yf={class:"templates__body"},Gf={key:0,class:"templates-plays"},jf={key:1,class:"templates-productivity"},qf={key:2,class:"template-field"},Zf={key:3,class:"template-details"},Jf={key:4,class:"template-personal-data"},Kf={key:5,class:"template-leagues"},Xf={key:6,class:"template-teams"},Qf={key:7,class:"template-plays"},e1={key:8,class:"template-plays"},t1={key:9,class:"template-universe"},o1={key:10,class:"template-distance"},a1={key:11,class:"template-results"},i1={key:12,class:"template-results-by-type"},s1={key:13,class:"template-games"},n1={key:14,class:"template-taken-corners"},l1={key:15,class:"template-videos"},r1={key:16,class:"template-how-was-corner"},d1={key:17,class:"template-zone"},c1={key:18,class:"template-what-happened"},u1={key:19,class:"template-position"},m1={key:20,class:"template-year"},p1={key:21,class:"template-nationalities"},f1={key:1,class:"templates__footer"},h1={class:"templates__footer__button"},y1={class:"templates__footer__button"},na=L({__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},isEligibilityVisible:{type:Boolean,default:!0},positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},years:{type:Array,default:()=>Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t)},nationalities:{type:Array,default:()=>[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]},seasonsIds:{type:Array,default:()=>[]}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters","click-parameters"],setup(t,{expose:i,emit:o}){const a=t;let n=[];const s=e.ref(null),l=e.ref(null),u=e.ref(!1),c=e.ref({playingAs:a.playingAs,gameSections:a.gameSections,statisticType:a.statisticType}),d=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),m=e.ref(null),r=e.ref(null),h=e.ref(null),f=e.ref(null),y=e.ref(null),_=e.computed(()=>({"--width":a.width,"--max-width":a.maxWidth,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.borderColor,"--border-width":a.borderWidth,"--box-shadow":a.boxShadow,"--padding":a.filterType!==p.VIDEOS?a.isExpansionMode?"10px 0":a.padding:"0","--footer-border-color":a.footerBorderColor,"--footer-border-width":a.footerBorderWidth,"--text-color":a.textColor})),g=e.computed(()=>{const k=[];return Array.isArray(a.productivityCategories)?a.productivityCategories.forEach(F=>{k.push(F)}):a.productivityCategories&&Object.values(a.productivityCategories).forEach(F=>{F.categories&&F.categories.forEach(K=>{k.push(K)})}),k}),C=e.computed(()=>{const k=[];return a.playsCategories&&Object.values(a.playsCategories).forEach(F=>{F.categories&&F.categories.forEach(K=>{k.push(K)})}),k}),b=e.computed(()=>{const k=g.value.filter(F=>F.isSelected);return oe(k),a.filterType===p.PRODUCTIVITY&&o("change-categories-selected",k.length),k.length}),P=e.computed(()=>!a.isForTemplateForm&&b.value>=a.productivityMaxCategories),J=e.computed(()=>!a.isForTemplateForm&&b.value<=a.productivityMinCategories),j=e.computed(()=>a.isPlayingAsHidden?a.gameSections:a.playingAs.concat(a.gameSections));e.watch(c,k=>{a.filterType===p.DETAILS&&o("update:filters",k)},{immediate:!0,deep:!0}),e.watch(()=>j.value,k=>{if(a.filterType===p.DETAILS){const F=k.filter(K=>K.isSelected);o("change-filters-selected",F.length)}},{immediate:!0,deep:!0}),e.watch(()=>a.playsGolstatsCategories,k=>{if(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS){const F=k.filter(K=>K.isSelected);o("change-filters-selected",F.length)}},{immediate:!0}),e.watch(()=>a.fieldAreas,k=>{a.filterType===p.FIELD&&o("change-filters-selected",k.length)}),e.watch(C,()=>{a.filterType===p.PLAYS&&w()},{immediate:!0,deep:!0}),e.watch(g,()=>{a.filterType===p.PRODUCTIVITY&&q()},{immediate:!0,deep:!0}),e.watch(()=>a.resultsFilters,k=>{a.filterType===p.RESULTS&&o("change-filters-selected",k.results.filter(F=>F.isSelected).length)},{immediate:!0,deep:!0});function oe(k){setTimeout(()=>{k.sort((F,K)=>F.priority-K.priority),k.forEach((F,K)=>{F.priority=K+1})},10)}function ie(k=null){Q(k)}function Q(k=null){a.filterType===p.PRODUCTIVITY?g.value.forEach(F=>{F.isSelected=F.isDefault||!1}):a.filterType===p.PLAYS?(C.value.forEach(F=>{F.isSelected=!0}),u.value=!0):a.filterType===p.FIELD?o("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):a.filterType===p.DETAILS?(a.playingAs.forEach(F=>{F.isSelected=!0}),a.gameSections.forEach(F=>{F.isSelected=!0})):a.filterType===p.TOURNAMENTS?(a.tournaments.forEach((F,K)=>{a.isOneTournamentOnly?F.isSelected=K===0:F.isSelected=!0}),o("change-filters-selected",0)):a.filterType===p.PLAYS_TYPES?a.playsGolstatsCategories.forEach(F=>{F.isSelected=!0}):a.filterType===p.GOLSTATS?a.playsGolstatsCategories.forEach(F=>{F.isSelected=!1}):a.filterType===p.UNIVERSE?m.value&&m.value.resetFilters():a.filterType===p.PERSONAL_DATA?(l.value&&l.value.onClearFilters(k||Ce.All),o("change-personal-data-filters",{})):a.filterType===p.DISTANCE?o("update:filters",{minValue:a.distanceFilters.minLimit,maxValue:a.distanceFilters.maxLimit}):a.filterType===p.RESULTS?o("update:filters",{results:a.resultsFilters.results.map(F=>(F.isSelected=!0,F))}):a.filterType===p.RESULTS_BY_TIME?y.value&&y.value.removeFilters():a.filterType===p.GAMES?a.gamesFilters.forEach(F=>{F.isSelected=!0}):a.filterType===p.TAKEN_CORNERS?r.value.clearFilters():a.filterType===p.HOW_WAS_CORNER?(a.howWasCornerFilters.left.forEach(F=>{F.isSelected=!0}),a.howWasCornerFilters.right.forEach(F=>{F.isSelected=!0})):a.filterType===p.ZONE?h.value&&h.value.clearFilters():a.filterType===p.WHAT_HAPPENED?f.value&&f.value.onResetFilters():a.filterType===p.NATIONALITIES?a.nationalities.forEach(F=>{F.isSelected=!0}):a.filterType===p.TEAMS&&s.value&&s.value.clearSelectedTeams()}function re(k){a.filterType===p.UNIVERSE&&o("change-universe-filters",k)}function ce(k){a.filterType===p.FIELD&&o("change-field-areas",k)}function B(k){a.filterType===p.GOLSTATS&&o("change-filters-selected",k)}function v(k){o("change-filters-selected",k)}function T(k){a.filterType===p.PRODUCTIVITY?g.value.forEach(F=>{F.isSelected=k}):(u.value=k,a.playsCategories.offensive.categories.forEach(F=>{F.isSelected=k}),a.playsCategories.defensive.categories.forEach(F=>{F.isSelected=k}),a.playsCategories.possession.categories.forEach(F=>{F.isSelected=k}),a.playsCategories.offenses.categories.forEach(F=>{F.isSelected=k}))}function w(){let k=0;const F={playsCategories:C.value.filter(K=>K.isSelected)};u.value=F.playsCategories.length===C.value.length,k=F.playsCategories.length,Object.values(d.value).forEach(K=>{K&&k++}),o("change-filters-selected",k),o("update:filters",F)}function q(){let k=0;const F={productivityFilters:g.value.filter(K=>K.isSelected),offensesConditions:d.value};k=F.productivityFilters.length,Object.values(d.value).forEach(K=>{K&&k++}),o("change-filters-selected",k),o("update:filters",F)}function pe(k){o("click-parameters",k)}function ge(){a.filterType===p.TEAMS&&o("update:filters",n),o("apply")}function E(){(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS)&&a.playsGolstatsCategories&&a.playsGolstatsCategories.forEach(k=>{k.isSelected=!1}),a.filterType===p.PRODUCTIVITY&&g.value.forEach(k=>{k.isSelected=!1}),o("apply")}function N(k){o("update:filters",k)}function I(k){a.filterType===p.POSITIONS&&o("update:filters",k)}function $(k){a.filterType===p.YEARS&&o("update:filters",k)}function A(k){a.filterType===p.NATIONALITIES&&o("update:filters",k)}function W(k){a.filterType===p.PERSONAL_DATA&&o("update:filters",k)}function z(k){a.filterType===p.TOURNAMENTS&&o("change-filters-selected",k)}function M(k){a.filterType===p.TOURNAMENTS&&o("update:filters",k)}function x(k){a.filterType===p.TEAMS&&o("change-filters-selected",k)}function D(k){a.filterType===p.TEAMS&&(n=k)}function Y(k){(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS)&&o("update:filters",k)}function ee(k){a.filterType===p.PRODUCTIVITY&&(d.value=k,q())}function fe(k){a.filterType===p.DISTANCE&&o("update:filters",k)}function he(k){a.filterType===p.RESULTS&&o("update:filters",k)}function ze(k){a.filterType===p.GAMES&&(o("update:filters",k),o("change-filters-selected",k.filter(F=>F.isSelected).length))}function V(k){c.value.statisticType=k}const U=e.computed(()=>a.filterType===p.PLAYS?C.value.length:a.filterType===p.PRODUCTIVITY?g.value.length:a.filterType===p.FIELD?16:a.filterType===p.UNIVERSE?6:a.filterType===p.DETAILS?8:a.filterType===p.RESULTS||a.filterType===p.RESULTS_BY_TIME?3:a.filterType===p.GAMES?a.gamesFilters.length:0);return o("total-filters",U),i({clearFilters:ie}),(k,F)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(_.value)},[t.filterType===e.unref(p).PRODUCTIVITY||t.filterType===e.unref(p).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(p).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Of,[t.productivityText?(e.openBlock(),e.createElementBlock("div",Lf,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",zf,[e.createTextVNode(" Elige tipo de jugadas: "),e.createElementVNode("span",null,"mínimo "+e.toDisplayString(t.productivityMinCategories)+" categorías y máximo "+e.toDisplayString(t.productivityMaxCategories),1)])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Uf,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",Wf,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Hf,[e.createVNode(e.unref(O),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":u.value,"label-color":t.textColor,"onUpdate:modelValue":T},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Yf,[t.filterType===e.unref(p).PLAYS?(e.openBlock(),e.createElementBlock("div",Gf,[e.createVNode(Jd,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",jf,[e.createVNode(ni,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":b.value,"are-max-categories-reached":P.value,"are-min-categories-reached":J.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":ee,onClickParameters:pe},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).FIELD?(e.openBlock(),e.createElementBlock("div",qf,[e.createVNode(e.unref(ro),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":ce}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).DETAILS?(e.openBlock(),e.createElementBlock("div",Zf,[e.createVNode(Mi,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:V},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Jf,[e.createVNode(Id,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:l,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"is-eligibility-visible":t.isEligibilityVisible,"onUpdate:filters":W},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters","is-eligibility-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",Kf,[e.createVNode(Li,{"tournaments-url":t.tournamentsUrl,token:t.token,tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:z,"onUpdate:filters":M},null,8,["tournaments-url","token","tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TEAMS?(e.openBlock(),e.createElementBlock("div",Xf,[e.createVNode(Df,{ref_key:"templateTeams",ref:s,"seasons-ids":t.seasonsIds,onChangeFiltersSelected:x,"onUpdate:filters":D},null,8,["seasons-ids"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Qf,[e.createVNode(jt,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":Y},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).GOLSTATS?(e.openBlock(),e.createElementBlock("div",e1,[e.createVNode(jt,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:B,"onUpdate:filters":Y},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).UNIVERSE?(e.openBlock(),e.createElementBlock("div",t1,[e.createVNode(Ms,{ref_key:"templateUniverse",ref:m,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":re},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).DISTANCE?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(on,{distance:t.distanceFilters,"onUpdate:distanceFilters":fe},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).RESULTS?(e.openBlock(),e.createElementBlock("div",a1,[e.createVNode(Xd,{ref_key:"templateResults",ref:y,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":he},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",i1,[e.createVNode(xf,{ref_key:"templateResults",ref:y,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:v,"onUpdate:filters":N},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).GAMES?(e.openBlock(),e.createElementBlock("div",s1,[e.createVNode(dn,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":ze},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",n1,[e.createVNode(Zm,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:r,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:v,"onUpdate:filters":N},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).VIDEOS?(e.openBlock(),e.createElementBlock("div",l1,[e.createVNode($m,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",r1,[e.createVNode(cp,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:v,"onUpdate:filters":N},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).ZONE?(e.openBlock(),e.createElementBlock("div",d1,[e.createVNode(df,{ref_key:"templateZone",ref:h,"zone-filters":t.zoneFilters,onChangeFiltersSelected:v,"onUpdate:filters":N},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",c1,[e.createVNode(yf,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:f,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:v,"onUpdate:filters":N},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).POSITIONS?(e.openBlock(),e.createElementBlock("div",u1,[e.createVNode(Ff,{positions:t.positions,onChangePositions:I},null,8,["positions"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).YEARS?(e.openBlock(),e.createElementBlock("div",m1,[e.createVNode(Nf,{years:t.years,onChangeYear:$},null,8,["years"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).NATIONALITIES?(e.openBlock(),e.createElementBlock("div",p1,[e.createVNode(vf,{nationalities:t.nationalities,onChangeNationality:A},null,8,["nationalities"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",f1,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:E})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",h1,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:E})):(e.openBlock(),e.createBlock(e.unref(Je),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:Q}))]),e.createElementVNode("div",y1,[e.createVNode(e.unref(Je),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:ge})])],64))])):e.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-59d5cb01"]]),_1=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},g1={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t;e.useCssVars(f=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const a=e.ref(null),n=e.ref(!1),s=e.ref(null),l=e.ref({}),u=e.computed(()=>{const f={top:"0px","--left-menu":o.leftMenu};if(a.value){const y=a.value.getBoundingClientRect();f.top=`${y.height+o.menuMarginTop}px`}return f}),c=e.computed(()=>n.value?o.zIndexOpen:1);e.watch(()=>o.modelValue,f=>{f!==n.value&&(n.value=f)},{immediate:!0}),e.watch(n,f=>{f||setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(f){const y=window.innerWidth,_=f.boundingClientRect.x,g=f.boundingClientRect.x+f.boundingClientRect.width,C=_<=0?Math.abs(_)+4:g>=y?y-(g+10):0;l.value["--translate-x"]=`${C}px`}function m(){new IntersectionObserver(f=>{f[0].intersectionRatio>0&&d(f[0])}).observe(s.value)}function r(){n.value=!n.value,i("update:modelValue",n.value)}function h(){n.value=!1,i("update:modelValue",n.value)}return e.onMounted(()=>{e.nextTick(()=>{m()})}),(f,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:a,class:"menu-container__trigger",onClick:r},[e.renderSlot(f.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:s,class:"menu-container__menu",style:e.normalizeStyle(u.value)},[e.renderSlot(f.$slots,"menu",{},void 0,!0)],4),[[e.vShow,n.value]])]),_:3})],4)],64))}},S1=_1(g1,[["__scopeId","data-v-18c0df61"]]),Wy="",Ae=t=>(e.pushScopeId("data-v-d5ddc1ae"),t=t(),e.popScopeId(),t),b1={key:0,class:"button__icon"},C1={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k1=["stroke"],E1=["stroke"],x1=["stroke"],w1={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V1=["stroke"],N1=["stroke"],B1=["fill"],F1={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T1=["fill"],v1={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$1=["stroke"],A1=["stroke"],I1=["stroke"],P1=["stroke"],M1=["stroke"],R1={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D1=[Ae(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1))],O1={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L1=[Ae(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1))],z1={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U1=[Ae(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1))],W1={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H1=[Ae(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Ae(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Ae(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Ae(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1))],Y1={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G1=[e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-d5ddc1ae><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-d5ddc1ae></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-d5ddc1ae></path></g><defs data-v-d5ddc1ae><clipPath id="gpdeo9cu3a" data-v-d5ddc1ae><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-d5ddc1ae></path></clipPath></defs>',2)],j1={class:"button__text"},q1={key:0,class:"info-container"},Z1={key:1,style:{width:"20px"}},J1={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K1=["fill"],X1=L({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,o=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),a=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),n=e.computed(()=>[p.PLAYS_TYPES,p.GOLSTATS,p.TOURNAMENTS,p.PLAYS,p.RESULTS,p.RESULTS_BY_TIME].includes(i.iconType)),s=e.computed(()=>[p.FIELD,p.GAMES].includes(i.iconType)),l=e.computed(()=>[p.DETAILS,p.UNIVERSE].includes(i.iconType)),u=e.computed(()=>[p.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[p.PRODUCTIVITY].includes(i.iconType)),d=e.computed(()=>[p.HOW_WAS_CORNER].includes(i.iconType)),m=e.computed(()=>[p.TAKEN_CORNERS].includes(i.iconType)),r=e.computed(()=>[p.ZONE].includes(i.iconType)),h=e.computed(()=>[p.WHAT_HAPPENED].includes(i.iconType));return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(o.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",b1,[u.value?(e.openBlock(),e.createElementBlock("svg",C1,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,k1),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,E1),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,x1)])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("svg",w1,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,V1),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,N1),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,B1)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",F1,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,T1)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",v1,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,$1),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,A1),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,I1),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,P1),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,M1)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",R1,D1)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",O1,L1)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",z1,U1)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",W1,H1)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",Y1,G1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",j1,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",q1,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(a.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!==parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(a.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",Z1)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",J1,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,K1)]))],2)],4))}},[["__scopeId","data-v-d5ddc1ae"]]),Q1=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},eh=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),th={class:"panel__activator__icon"},oh=["src"],ah={class:"panel__activator__text"},ih=["height","width"],sh=["stroke"],nh={class:"panel__content"},lh=eh(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),rh={class:"panel__content__slot"},dh={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref(o.modelValue),n=e.computed(()=>({"--activator-height":o.height,"--activator-text-font-family":o.textFontFamily,"--activator-text-font-size":o.textFontSize,"--activator-text-color":o.textColor,"--background-color":o.backgroundColor,"--panel-width":o.width,"--panel-padding":o.panelPadding,"--panel-border-radius":o.borderRadius,"--panel-border-color":o.borderColor,"--panel-border-width":o.borderWidth,"--arrow-height":o.arrowHeight,"--arrow-width":o.arrowWidth,"--separator-width":o.separatorWidth,"--separator-color":o.separatorColor}));e.watch(()=>o.modelValue,l=>{a.value=l},{immediate:!0});function s(){a.value=!a.value,i("update:modelValue",a.value)}return(l,u)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:s},[e.createElementVNode("div",th,[o.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.icon,alt:""},null,8,oh)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ah,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":a.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,sh)],8,ih))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",nh,[lh,e.createElementVNode("div",rh,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,a.value]])]),_:3})],4))}},ch=Q1(dh,[["__scopeId","data-v-0ca35abc"]]),le={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},la={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},ra={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},da={minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},ca=[{name:"Sub-20",logo:null,isSelected:!1,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!1,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!1,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!1,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!1,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!1,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!1,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!1,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!1,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],ua=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],ma=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],uh={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Yt={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},Qy="",mh={class:"filters"},ph={key:0,class:"filters__expansion"},fh={class:"content"},hh={key:1,class:"filters__menus"},yh=L({__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},tournamentsUrl:{type:String,default:""},dropdownProps:{type:Object,default:()=>null},selectedYear:{type:[Number,String],default:0}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:i,emit:o}){const a=t;e.useCssVars(V=>({f37314ea:t.width}));const n={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PRODUCTIVITY,isFooterVisible:!0},s={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.FIELD,isFooterVisible:!0},u={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TOURNAMENTS,isFooterVisible:!0},d={width:"fit-content",maxWidth:"fit-content",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TOURNAMENTS,isFooterVisible:!0},m={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.POSITIONS,isFooterVisible:!0},r={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.YEARS,isFooterVisible:!0},h={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.NATIONALITIES,isFooterVisible:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:a.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},_={width:"380px",modalHeight:a.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},g={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.UNIVERSE,isFooterVisible:!0},C={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.DISTANCE,isFooterVisible:!0},b={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.RESULTS,padding:"0",isFooterVisible:!0},P={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},J={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.VIDEOS,isFooterVisible:!1},j={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.GAMES,isFooterVisible:!0},oe={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TAKEN_CORNERS,isFooterVisible:!0},ie={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.HOW_WAS_CORNER,isFooterVisible:!0},Q={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.ZONE,isFooterVisible:!0},re={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.WHAT_HAPPENED,isFooterVisible:!0},ce=e.ref(!1),B=e.ref(!1),v=e.ref(0),T=e.ref(0),w=e.ref({}),q=e.ref(null),pe=e.ref(null),ge=e.ref("Universo"),E=e.ref(""),N=e.ref(""),I=e.computed(()=>a.isForTemplateForm?"0":"unset"),$=e.computed(()=>a.isFromTemplates?p.RESULTS:a.filterType),A=e.ref(null);e.watch(()=>a.filterType,V=>{if(V===p.PRODUCTIVITY)w.value={...n,...a.templateProps,productivityCategories:a.filters||la};else if(V===p.PLAYS)w.value={...s,...a.templateProps,fontFamily:a.buttonFilterProps?a.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:a.filters||ra};else if(V===p.FIELD)w.value={...l,...a.templateProps,fieldComponentProps:a.fieldComponentProps,fieldAreas:a.filters||[]};else if(V===p.DETAILS)w.value={...u,...a.templateProps,isPlayingAsHidden:a.filters?a.filters.isPlayingAsHidden:le.isPlayingAsHidden,playingAs:a.filters&&a.filters.playingAs||le.playingAs,gameSections:a.filters&&a.filters.gameSections||le.gameSections,statisticType:a.filters?a.filters.statisticType:le.statisticType,isStatisticTypeVisible:a.filters?a.filters.isStatisticTypeVisible:le.isStatisticTypeVisible};else if(V===p.TOURNAMENTS){const U=a.filters||ca;a.isOneTournamentOnly&&U.forEach(k=>{k.isSelected=k.id===a.defaultTournamentId}),w.value={...c,...a.templateProps,tournaments:U}}else V===p.TEAMS?w.value={...d,...a.templateProps,seasonsIds:a.filters||[]}:V===p.PERSONAL_DATA?w.value={...f,...a.templateProps,token:a.token,awaitForFilters:a.awaitForFilters,personalDataFilters:a.filters}:V===p.PLAYS_TYPES?w.value={...y,...a.templateProps,playsGolstatsCategories:a.filters||ua}:V===p.GOLSTATS?w.value={..._,...a.templateProps,playsGolstatsCategories:a.filters||ma}:V===p.UNIVERSE?w.value={...g,...a.templateProps,universeFilters:a.filters||da}:V===p.DISTANCE?w.value={...C,...a.templateProps,distanceFilters:a.filters||uh}:V===p.RESULTS?w.value={...b,...a.templateProps,resultsFilters:a.filters||Yt}:V===p.RESULTS_BY_TIME?w.value={...P,...a.templateProps,resultsByTimeFilters:a.filters||_t}:V===p.GAMES?w.value={...j,...a.templateProps,gamesFilters:a.filters||[]}:V===p.VIDEOS?w.value={...J,...a.templateProps,token:a.token}:V===p.TAKEN_CORNERS?w.value={...oe,...a.templateProps,takenCornersFilters:a.filters||[]}:V===p.HOW_WAS_CORNER?w.value={...ie,...a.templateProps,howWasCornerFilters:a.filters||ht}:V===p.ZONE?w.value={...Q,...a.templateProps,zoneFilters:a.filters||[...Ze]}:V===p.WHAT_HAPPENED?w.value={...re,...a.templateProps,whatHappenedFilters:a.filters||[...yt]}:V===p.POSITIONS?w.value={...m,...a.templateProps,positions:a.filters||[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]}:V===p.YEARS?w.value={...r,...a.templateProps,years:a.filters||Array.from({length:30},(U,k)=>1981+k).sort((U,k)=>k-U)}:V===p.NATIONALITIES&&(w.value={...h,...a.templateProps,nationalities:a.filters||[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]});w.value.isExpansionMode=a.isExpansionPanel,a.isExpansionPanel&&(w.value.width="100%",w.value.maxWidth="100%"),W()},{immediate:!0}),e.watch(()=>a.filters,()=>{if(a.filterType===p.PRODUCTIVITY)w.value={...n,...a.templateProps,productivityCategories:a.filters};else if(a.filterType===p.PLAYS)w.value={...s,...a.templateProps,playsCategories:a.filters};else if(a.filterType===p.FIELD)w.value={...l,...a.templateProps,fieldComponentProps:a.fieldComponentProps,fieldAreas:a.filters};else if(a.filterType===p.DETAILS)w.value={...u,...a.templateProps,isPlayingAsHidden:a.filters?a.filters.isPlayingAsHidden:le.isPlayingAsHidden,playingAs:a.filters?a.filters.playingAs:le.playingAs,gameSections:a.filters?a.filters.gameSections:le.gameSections,statisticType:a.filters?a.filters.statisticType:le.statisticType,isStatisticVisible:a.filters?a.filters.isStatisticVisible:le.isStatisticVisible};else if(a.filterType===p.TOURNAMENTS){const V=a.filters;a.isOneTournamentOnly&&V.forEach(U=>{U.isSelected=U.id===a.defaultTournamentId}),w.value={...c,...a.templateProps,tournaments:V}}else a.filterType===p.TEAMS?w.value={...d,...a.templateProps,seasonsIds:a.filters||[]}:a.filterType===p.PERSONAL_DATA?w.value={...f,...a.templateProps,token:a.token,awaitForFilters:a.awaitForFilters,personalDataFilters:a.filters}:a.filterType===p.PLAYS_TYPES?w.value={...y,...a.templateProps,playsGolstatsCategories:a.filters}:a.filterType===p.GOLSTATS?w.value={..._,...a.templateProps,playsGolstatsCategories:a.filters}:a.filterType===p.UNIVERSE?w.value={...g,...a.templateProps,universeFilters:a.filters}:a.filterType===p.DISTANCE?w.value={...C,...a.templateProps,distanceFilters:a.filters}:a.filterType===p.RESULTS?w.value={...b,...a.templateProps,resultsFilters:a.filters||Yt}:a.filterType===p.RESULTS_BY_TIME?w.value={...P,...a.templateProps,resultsByTimeFilters:a.filters||_t}:a.filterType===p.GAMES?w.value={...j,...a.templateProps,gamesFilters:a.filters}:a.filterType===p.VIDEOS?w.value={...J,...a.templateProps,token:a.token}:a.filterType===p.TAKEN_CORNERS?w.value={...oe,...a.templateProps,takenCornersFilters:a.filters||[]}:a.filterType===p.HOW_WAS_CORNER?w.value={...ie,...a.templateProps,howWasCornerFilters:a.filters||ht}:a.filterType===p.ZONE?w.value={...Q,...a.templateProps,zoneFilters:a.filters||[...Ze]}:a.filterType===p.WHAT_HAPPENED?w.value={...re,...a.templateProps,whatHappenedFilters:a.filters||[...yt]}:a.filterType===p.POSITIONS?w.value={...m,...a.templateProps,positions:a.filters||[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]}:a.filterType===p.YEARS?w.value={...r,...a.templateProps,years:a.filters||Array.from({length:30},(V,U)=>1981+U).sort((V,U)=>U-V)}:a.filterType===p.NATIONALITIES&&(w.value={...h,...a.templateProps,nationalities:a.filters||[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]});w.value.isExpansionMode=a.isExpansionPanel,a.isExpansionPanel&&(w.value.width="100%",w.value.maxWidth="100%")}),e.watch(ce,V=>{V||o("close",A.value)}),e.watch(B,V=>{V||o("close",A.value)});function W(){E.value=a.filterType===p.UNIVERSE&&a.showUniverseTime?ge.value:a.buttonFilterProps&&a.buttonFilterProps.text?a.buttonFilterProps.text:a.menuButtonText||x(),N.value=a.expansionPanelText||x()}function z(V){v.value=V}function M(){a.isExpansionPanel?B.value=!1:ce.value=!1,o("apply",A.value)}function x(){if(a.filterType===p.PRODUCTIVITY)return a.isFromTemplates?"Tipos de jugadas":"Características de juego";if(a.filterType===p.PLAYS)return"Jugada(s)";if(a.filterType===p.FIELD)return"Zona de cancha";if(a.filterType===p.DETAILS)return"Detalles";if(a.filterType===p.TEAMS)return"Equipos";if(a.filterType===p.TOURNAMENTS)return"Ligas";if(a.filterType===p.PERSONAL_DATA)return"Datos personales";if(a.filterType===p.PLAYS_TYPES)return"Tipos de jugada";if(a.filterType===p.GOLSTATS)return"Filtros Golstats";if(a.filterType===p.UNIVERSE)return`Estadísticas ${A.value&&A.value.statisticsRadios==="total"?"totales":"cada 90 min"}`;if(a.filterType===p.DISTANCE)return"Distancia";if([p.RESULTS,p.RESULTS_BY_TIME].includes(a.filterType))return"Resultados";if(a.filterType===p.GAMES)return"Partidos";if(a.filterType===p.VIDEOS)return"Videos";if(a.filterType===p.TAKEN_CORNERS)return"¿Quién cobró?";if(a.filterType===p.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(a.filterType===p.ZONE)return"Zona";if(a.filterType===p.WHAT_HAPPENED)return"¿Qué sucedió?";if(a.filterType===p.POSITIONS){const V=A.value?A.value.find(k=>k.id===0):null;if(V&&V.isSelected)return V.name;const U=A.value?A.value.filter(k=>k.isSelected&&k.id!==0):[];return U.length===1?U[0].name:`${U.length} nacionalidades`}else{if(a.filterType===p.YEARS)return`Año ${A.value||a.selectedYear}`;if(a.filterType===p.NATIONALITIES){const V=A.value?A.value.length:a.filters.length;return a.filters.length===V?"Todas las nacionalidades":V===1?A.value[0].name:`${V} nacionalidades`}}}function D(V){o("click-parameters",V)}function Y(V){w.value.fieldAreas=V,v.value=V.length,fe(V)}function ee(V){let U=0;V.value&&V.value.statistics&&(V.value.minutesPlayed&&U++,V.value.percentMinutesPlayed&&U++,V.value.lastMonths&&U++,V.value.statistics.totals&&U++,V.value.statistics.averagePerGame&&U++,V.value.statistics.averagePerMinute&&U++),a.showUniverseTime&&(ge.value=`Durante los últimos ${V.value.lastMonths} meses`),w.value.universe=V.value,v.value=U,fe(V.value)}function fe(V){A.value=V,W(),o("update:filters",V)}function he(V){T.value=V}function ze(V=null){q.value&&q.value.clearFilters(V),pe.value&&pe.value.clearFilters(V)}return i({clearFilters:ze}),(V,U)=>(e.openBlock(),e.createElementBlock("div",mh,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",ph,[e.createVNode(e.unref(ch),e.mergeProps(t.expansionPanelProps,{modelValue:B.value,"onUpdate:modelValue":U[0]||(U[0]=k=>B.value=k),text:N.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+a.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",fh,[e.createVNode(na,e.mergeProps(w.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateExpansionPanel",ref:pe,onChangeFieldAreas:Y,onChangeCategoriesSelected:z,onChangeFiltersSelected:z,onChangeUniverseFilters:ee,onApply:M,"onUpdate:filters":fe,onTotalFilters:he,onClickParameters:D}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",hh,[e.createVNode(e.unref(S1),{modelValue:ce.value,"onUpdate:modelValue":U[1]||(U[1]=k=>ce.value=k),width:t.width,"left-menu":I.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(X1,e.mergeProps(t.buttonFilterProps,{text:E.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":v.value,"filters-total":T.value.value,"is-active":ce.value,"icon-type":$.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(na,e.mergeProps(w.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateMenu",ref:q,onChangeFieldAreas:Y,onChangeCategoriesSelected:z,onChangeFiltersSelected:z,onChangeUniverseFilters:ee,"onUpdate:filters":fe,onTotalFilters:he,onApply:M,onClickParameters:D}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},[["__scopeId","data-v-44274796"]]),t2="",_h={class:"dropdown__position"},gh={key:0,class:"label"},Sh={class:"selected-position"},bh=L({__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref(""),s=e.computed(()=>{const c={...Se};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(d=>{c[d]=o.dropdownProps[d]}),c}),l=e.computed(()=>{let c=o.positions&&o.positions.length?[...o.positions]:[];const d=c[0];return(!d||d.id!==0)&&c.unshift(a),c.sort((m,r)=>m.id-r.id),c});e.watch(l,c=>{const d=c.filter(m=>m.isSelected);d.length===l.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?n.value="Todas las posiciones":d.length===1?n.value=d[0].name:n.value=`${d.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function u(c,d){d.id===0?l.value.forEach(m=>{m.isSelected=c}):(d.isSelected=c,l.value[0].isSelected=l.value.every((m,r)=>r===0?!0:m.isSelected))}return(c,d)=>(e.openBlock(),e.createElementBlock("div",_h,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",gh,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps(s.value,{"is-multiple-option":"",items:l.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Sh,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.value),1)],64))])]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":m.isSelected,label:t.isFemale?m.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):m.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":r=>u(r,m)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},[["__scopeId","data-v-c810bd0a"]]),pa={offensive:{title:"Ofensivo",categories:[{name:"Goles",abbreviation:"Goles",isSelected:!0,id:[12,55],isDefault:!0},{name:"Asistencias",abbreviation:"Asist",isSelected:!0,id:[10],isDefault:!0},{name:"Participaciones en gol",abbreviation:"Part en Gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",abbreviation:"Cab área/riv",isSelected:!1,id:[328]},{name:"Tiros a gol totales",abbreviation:"Tiros/g tot",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",abbreviation:"Tiros/g dest",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",abbreviation:"Tir/g/f/a",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",abbreviation:"Tir/g/f/a/d",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",abbreviation:"Tir/g/d/área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",abbreviation:"Tir/g/d/a/d",isSelected:!1,id:[91]},{name:"Centros por izquierda",abbreviation:"Centros izq",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",abbreviation:"Cent izq/dest",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",abbreviation:"Centros der",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",abbreviation:"Cent der/dest",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",abbreviation:"1vs1 ofens",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",abbreviation:"1vs1 of/gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Balones ganados en área propia",abbreviation:"Bal gan a/pr",isSelected:!0,id:[23],isDefault:!0},{name:"Cabeceo en área propia",abbreviation:"Cab área/pr",isSelected:!1,id:[231,238,280,287,294,406]},{name:"1vs1 defensivos exitosos",abbreviation:"1vs1 defens",isSelected:!0,id:[5],isDefault:!0},{name:"Rechaces",abbreviation:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Balones recuperados totales",abbreviation:"Recup total",isSelected:!0,id:[222,223,224,225],isDefault:!0},{name:"Balones recuperados 1/4 de cancha",abbreviation:"Recup 1/4",isSelected:!1,id:[222]},{name:"Balones recuperados 2/4 de cancha",abbreviation:"Recup 2/4",isSelected:!1,id:[223]},{name:"Balones recuperados 3/4 de cancha",abbreviation:"Recup 3/4",isSelected:!1,id:[224]},{name:"Balones recuperados 4/4 de cancha",abbreviation:"Recup 4/4",isSelected:!1,id:[225]},{name:"Pases acertados",abbreviation:"Pases acert",isSelected:!0,id:[2,20],isDefault:!0,parameters:_e(2,Gt()),parametersDefault:_e(2,Gt()),parametersConditions:{title:"Elige las condiciones del pase acertado",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 1/4",abbreviation:"Pas acer 1/4",isSelected:!1,id:[213],parameters:_e(1,xe(1)),parametersDefault:_e(1,xe(1)),parametersConditions:{title:"Elige las condiciones del pase acertado de 1/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 2/4",abbreviation:"Pas acer 2/4",isSelected:!1,id:[214],parameters:_e(1,xe(2)),parametersDefault:_e(1,xe(2)),parametersConditions:{title:"Elige las condiciones del pase acertado de 2/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 3/4",abbreviation:"Pas acer 3/4",isSelected:!1,id:[215],parameters:_e(1,xe(3)),parametersDefault:_e(1,xe(3)),parametersConditions:{title:"Elige las condiciones del pase acertado de 3/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 4/4",abbreviation:"Pas acer 4/4",isSelected:!1,id:[216],parameters:_e(1,xe(4)),parametersDefault:_e(1,xe(4)),parametersConditions:{title:"Elige las condiciones del pase acertado de 4/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}};function Gt(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function fa(){return Array.from({length:16},(t,i)=>i+1)}function xe(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function _e(t=1,i=null){return{origin_zones:t===1?fa():Gt(),destiny_zones:i||fa(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const Ch={lateralPorDerecha:{categories:["1vs1 defensivos exitosos","Balones ganados en área propia","Centros por derecha","Balones recuperados totales","1vs1 exitosos ofensivos"]},lateralPorIzquierda:{categories:["1vs1 defensivos exitosos","Balones ganados en área propia","Centros por izquierda","Balones recuperados totales","1vs1 exitosos ofensivos"]},defensaCentral:{categories:["Balones ganados en área propia","1vs1 defensivos exitosos","Rechaces","Balones recuperados totales","Cabeceos en área rival"]},medioContencion:{categories:["Balones recuperados 3/4 de cancha","Balones recuperados 2/4 de cancha","1vs1 defensivos exitosos","Pases acertados en 3/4","Participaciones en gol"]},mediaPunta:{categories:["Participaciones en gol","Asistencias","Pases claves","1vs1 exitosos ofensivos","Tiros a gol totales","1vs1 que terminan en gol"]},extremoPorDerecha:{categories:["Centros por derecha","Centros por derecha acertados","1vs1 exitosos ofensivos","Participaciones en gol","Balones recuperados totales"]},extremoPorIzquierda:{categories:["Centros por izquierda","Centros por izquierda acertados","1vs1 exitosos ofensivos","Participaciones en gol","Balones recuperados totales"]},delantero:{categories:["Goles","Participaciones en gol","Cabeceos en área rival","Asistencias","Tiros a gol dentro del área"]},todasPosiciones:{categories:["Goles","Asistencias","Pases acertados","Balones recuperados totales","1vs1 Defensivos exitosos","Balones ganados en área propia"]}};function ha(t){return JSON.parse(JSON.stringify(t))}function te(t){if(t){const i=Ch[t];if(i){const o=ha(pa),a=Object.values(o);for(const n of a)n.categories&&n.categories.forEach(s=>{for(let l=0;l<i.categories.length;l++)if(s.name===i.categories[l]){s.isSelected=!0,s.priority=l+1;break}else s.isSelected=!1});return o}}return ha(pa)}const m2="",kh=t=>(e.pushScopeId("data-v-6ca764b8"),t=t(),e.popScopeId(),t),Eh={class:"dropdown__position"},xh={key:0,class:"label"},wh={class:"selected-item"},Vh={class:"item-position"},Nh={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bh=[kh(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1))],Fh=L({__name:"DropdownPositionsMultiple",props:{isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null},defaultPositionName:{type:String,default:""},isFemaleMode:{type:Boolean,default:!1}},emits:["change-position"],setup(t,{emit:i}){const o=t,a=[{positionIds:[4],name:"Lateral por derecha",categories:te("lateralPorDerecha")},{positionIds:[3],name:"Lateral por izquierda",categories:te("lateralPorIzquierda")},{positionIds:[2],name:"Defensa central",categories:te("defensaCentral")},{positionIds:[7],name:"Medio contención",categories:te("medioContencion")},{positionIds:[8,6,5],name:"Media punta",categories:te("mediaPunta")},{positionIds:[6,8,9],name:"Extremo por derecha",categories:te("extremoPorDerecha")},{positionIds:[5,8,9],name:"Extremo por izquierda",categories:te("extremoPorIzquierda")},{positionIds:[9,8,6,5],name:"Delantero",categories:te("delantero")},{positionIds:[2,3,4,5,6,7,8,9],name:"Todas las posiciones",categories:te("todasPosiciones")}],n=[{positionIds:[4],name:"Lateral por derecha",categories:te("lateralPorDerecha")},{positionIds:[3],name:"Lateral por izquierda",categories:te("lateralPorIzquierda")},{positionIds:[2],name:"Defensa central",categories:te("defensaCentral")},{positionIds:[7],name:"Media contención",categories:te("medioContencion")},{positionIds:[8,6,5],name:"Media punta",categories:te("mediaPunta")},{positionIds:[6,8,9],name:"Extrema por derecha",categories:te("extremoPorDerecha")},{positionIds:[5,8,9],name:"Extrema por izquierda",categories:te("extremoPorIzquierda")},{positionIds:[9,8,6,5],name:"Delantera",categories:te("delantero")},{positionIds:[2,3,4,5,6,7,8,9],name:"Todas las posiciones",categories:te("todasPosiciones")}],s=e.ref({}),l=e.computed(()=>{const d={...Se};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(m=>{d[m]=o.dropdownProps[m]}),d}),u=e.computed(()=>o.isFemaleMode?n:a);e.watch(u,d=>{if(o.defaultPositionName){const m=d.find(r=>r.name===o.defaultPositionName);m&&(s.value=m)}else s.value.ids||(s.value=d[0])},{immediate:!0,deep:!0});function c(d){s.value=d,i("change-position",d)}return(d,m)=>(e.openBlock(),e.createElementBlock("div",Eh,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",xh,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps(l.value,{items:u.value,"model-value":s.value,"onUpdate:modelValue":c}),{default:e.withCtx(()=>[e.createElementVNode("div",wh,e.toDisplayString(s.value.name),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",Vh,[e.createElementVNode("div",null,e.toDisplayString(r.name),1),e.createElementVNode("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Nh,Bh,512)),[[e.vShow,s.value.name===r.name]])])])]),_:1},16,["items","model-value"])]))}},[["__scopeId","data-v-6ca764b8"]]),h2="",Th={class:"dropdown-years"},vh={key:0,class:"label"},$h={class:"selected-year"},Ah=L({__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null},selectedItemPrefix:{type:String,default:""}},emits:["change-year"],setup(t,{emit:i}){const o=t,a=e.computed(()=>{const l={...Se};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(u=>{l[u]=o.dropdownProps[u]}),l}),n=e.computed(()=>o.hasNoLimitOption?["Sin límite",...o.years]:o.years);function s(l){i("change-year",l)}return(l,u)=>(e.openBlock(),e.createElementBlock("div",Th,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",vh,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps({"model-value":t.selectedYear},a.value,{items:n.value,"onUpdate:modelValue":s}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",$h,e.toDisplayString(Number.isNaN(Number(c))?c:`${t.selectedItemPrefix} ${c}`),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},[["__scopeId","data-v-77be2ab3"]]),_2="",Ih=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),Ph={class:"dropdown-templates"},Mh={key:0,class:"label"},Rh={class:"selected-item"},Dh={class:"item"},Oh={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lh=[Ih(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1))],zh=L({__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const o=t,a=e.ref([]),n=e.ref(null),s=e.computed(()=>{const c={...Se};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(d=>{c[d]=o.dropdownProps[d]}),c});e.watch(()=>o.teamId,c=>{c&&u()},{immediate:!0});function l(c){n.value=c,i("change-template",c)}async function u(){try{const c=await Fe.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${o.teamId}/templates`,{headers:{Authorization:o.token}});a.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return u(),(c,d)=>(e.openBlock(),e.createElementBlock("div",Ph,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",Mh,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(de),e.mergeProps({"model-value":t.selectedTemplate},s.value,{items:a.value,"arrow-width":"10",onInput:l}),{default:e.withCtx(({selectedItem:m})=>[e.createElementVNode("div",Rh,e.toDisplayString(m.name),1)]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",Dh,[e.createElementVNode("div",null,e.toDisplayString(m.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",Oh,Lh,512)),[[e.vShow,n.value.name===m.name]])])]),_:1},16,["model-value","items"])]))}},[["__scopeId","data-v-8bd3ce77"]]),b2="",Uh={class:"subcategory-group"},Wh=L({__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,o)=>(e.openBlock(),e.createElementBlock("div",Uh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,a=>(e.openBlock(),e.createBlock(e.unref(O),{key:a.id,modelValue:a.isSelected,"onUpdate:modelValue":n=>a.isSelected=n,label:a.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},[["__scopeId","data-v-ae6f3d72"]]),k2="",Hh={class:"filter-subcategories"},Yh=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,o)=>(e.openBlock(),e.createElementBlock("div",Hh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"filter-subcategories__group"},[e.createVNode(Wh,{subcategoryGroup:a},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),w2="",gt=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Gh={class:"details__header"},jh=gt(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),qh={class:"details__header__checkbox"},Zh={class:"details__body"},Jh={class:"details__body__playing-as"},Kh=["onClick"],Xh={class:"details__header"},Qh=gt(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),e0={class:"details__header__checkbox"},t0={class:"details__body"},o0=gt(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),a0={class:"details__body__game-section"},i0=["onClick"],s0={class:"details__body"},n0=gt(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),l0={class:"details__body__game-section"},r0=["onClick"],d0=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterConditions",props:{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}]},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(t){const i=t;e.useCssVars(m=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const o=e.computed(()=>i.playingAs.every(m=>m.isSelected)),a=e.computed(()=>i.gameSections.every(m=>m.isSelected)),n=e.computed(()=>i.gameSections.reduce((m,r)=>(r.value<=3?m.firstHalf.push(r):m.secondHalf.push(r),m),{firstHalf:[],secondHalf:[]})),s=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function l(m){m?i.playingAs.forEach(r=>{r.isSelected=!0}):i.playingAs.forEach((r,h)=>{r.isSelected=h===0})}function u(m){i.playingAs.filter(r=>r.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){i.gameSections.filter(r=>r.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?i.gameSections.forEach(r=>{r.isSelected=!0}):i.gameSections.forEach((r,h)=>{r.isSelected=h===0})}return(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",Gh,[jh,e.createElementVNode("div",qh,[e.createVNode(e.unref(O),{label:"Todos","model-value":o.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",Zh,[e.createElementVNode("div",Jh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:y=>u(h)},e.toDisplayString(h.name),11,Kh))),128))])]),e.createElementVNode("div",Xh,[Qh,e.createElementVNode("div",e0,[e.createVNode(e.unref(O),{label:"Todos","model-value":a.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",t0,[o0,e.createElementVNode("div",a0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.firstHalf,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:y=>c(h)},e.toDisplayString(h.text),11,i0))),128))])]),e.createElementVNode("div",s0,[n0,e.createElementVNode("div",l0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.secondHalf,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:y=>c(h)},e.toDisplayString(h.text),11,r0))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),B2="",c0={class:"filter-field"},u0=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(a,n)=>n+1));function o(){}return(a,n)=>(e.openBlock(),e.createElementBlock("div",c0,[e.createVNode(e.unref(ro),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));H.DropdownPositions=bh,H.DropdownPositionsMultiple=Fh,H.DropdownTemplates=zh,H.DropdownYears=Ah,H.GSCFilters=yh,H.detailsFilters=le,H.filtersTypes=p,H.getPersonalDataFiltersBySeasons=md,H.golstatsFilters=ma,H.howWasCornerFilters=ht,H.personalDataFilters=Ye,H.personalDataSubFiltersTypes=Ce,H.playsFilters=ra,H.playsTypesFilters=ua,H.productivityFilters=la,H.resultsByTimeFilters=_t,H.resultsFilters=Yt,H.tournamentsFilters=ca,H.universeFilters=da,H.whatHappenedFilters=yt,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
1
+ (function(W,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(W=typeof globalThis<"u"?globalThis:W||self,e(W.GSCFilters={},W.Vue))})(this,function(W,e){"use strict";const u0="",m0="",p0="",f0="",h0="",y0="",_0="",g0="",S0="",be={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},ha=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},ya={key:1},_a={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ga=["fill"],Sa={key:0,class:"checkbox__teams"},ba={class:"checkbox__teams__logo"},Ca=["src"],ka={class:"checkbox__teams__logo"},Ea=["src"],xa={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const o=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const a=e.ref(!1),n=e.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return a.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),s=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});e.watch(()=>o.modelValue,d=>{d!==a.value&&(a.value=d)},{immediate:!0});function u(){o.avoidInteraction||!a.value&&o.avoidToCheck||(a.value=!a.value,i("update:modelValue",a.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:u},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(n.value)},[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(s.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",ya,[(e.openBlock(),e.createElementBlock("svg",_a,[e.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:t.boxValueColor},null,8,ga)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Sa,[e.createElementVNode("div",ba,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,Ca)]),e.createElementVNode("div",ka,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,Ea)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},O=ha(xa,[["__scopeId","data-v-b6f124d8"]]),b0="",L=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},wa={class:"container"},Va={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Na=["fill"],Ba={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fa=["fill"],xe=L({__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(t){return e.useCssVars(i=>({"563e5242":t.width,a529e9a4:t.height})),(i,o)=>(e.openBlock(),e.createElementBlock("div",wa,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",Va,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,Na)])):(e.openBlock(),e.createElementBlock("svg",Ba,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,Fa)]))]))}},[["__scopeId","data-v-166b6226"]]),k0="",Ae=t=>(e.pushScopeId("data-v-cde7de0b"),t=t(),e.popScopeId(),t),Ta={key:0,class:"productivity__body__offensive"},va={class:"productivity__body__title"},$a={class:"productivity__body__title__info"},Aa={class:"number-of-categories"},Ia={class:"productivity__body__categories"},Pa={key:1,class:"productivity__body__defensive-possession"},Ma={key:0,class:"block"},Ra={class:"productivity__body__title"},Da={class:"productivity__body__title__info"},Oa={class:"number-of-categories"},La={class:"productivity__body__categories"},za={key:1,class:"block"},Ua={class:"productivity__body__title"},Wa={class:"productivity__body__title__info"},Ha={class:"number-of-categories"},Ya={class:"productivity__body__categories"},Ga=["onClick"],ja=[Ae(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1))],qa={key:0,class:"productivity__footer"},Za={class:"productivity__footer__offenses"},Ja=Ae(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),Ka={class:"productivity__footer__offenses__table"},Xa=Ae(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Sí"),e.createElementVNode("div",null,"No")],-1)),Qa={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},ei=Ae(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),ti={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},oi=Ae(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),ai={class:"productivity__footer__offenses__table__row has-padding"},ii=Ae(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),si=L({__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},areProductivityButtonsVisible:{type:Boolean,default:!0},areOffensesConditionsVisible:{type:Boolean,default:!0}},emits:["update:offensesConditions","click-parameters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.ref(!1),s=e.ref(!1),l=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),u=e.computed(()=>Array.isArray(o.productivityCategories)),c=e.computed(()=>({"--template-columns":o.isExpansionMode||u.value||!o.productivityCategories.offensive||!o.productivityCategories.defensive&&!o.productivityCategories.possession?"1fr":o.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":o.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":o.isForTemplateForm?"32px":"0","--width-block":o.isForTemplateForm?"unset":"100%"})),d=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.offensive.categories.reduce((E,C)=>(C.isSelected&&E++,E),0)}),m=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.defensive.categories.reduce((E,C)=>(C.isSelected&&E++,E),0)}),r=e.computed(()=>{var g;return(g=o.productivityCategories)==null?void 0:g.possession.categories.reduce((E,C)=>(C.isSelected&&E++,E),0)}),h=e.computed(()=>o.isFromTemplates||o.isForTemplateForm);e.watch(()=>o.productivityCategories,g=>{g.offensesConditions&&(l.value.areYellowCardsSelected=g.offensesConditions.areYellowCardsSelected,l.value.areRedCardsSelected=g.offensesConditions.areRedCardsSelected,l.value.areFoulsCommittedSelected=g.offensesConditions.areFoulsCommittedSelected)},{deep:!0,immediate:!0}),e.watch(l,g=>{i("update:offensesConditions",g)},{deep:!0,immediate:!0});function f(g,E){E.isSelected=g,setTimeout(()=>{E.priority=o.numberOfCategoriesSelected},10)}function _(g){i("click-parameters",g)}function y(g){g==="offensive"?a.value=!a.value:g==="defensive"?n.value=!n.value:g==="possession"&&(s.value=!s.value)}return(g,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["productivity",{"is-array":u.value}])},[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(c.value)},[u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.productivityCategories,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:C.name,fontFamily:t.fontFamily,"model-value":C.isSelected,"avoid-interaction":t.areMinCategoriesReached&&C.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"box-value":h.value?null:C.priority||0,"onUpdate:modelValue":P=>f(P,C)},null,8,["label","fontFamily","model-value","avoid-interaction","avoid-to-check","box-value","onUpdate:modelValue"])]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.productivityCategories.offensive?(e.openBlock(),e.createElementBlock("div",Ta,[e.createElementVNode("div",va,[e.createElementVNode("div",$a,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",Aa,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:E[0]||(E[0]=C=>y("offensive"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ia,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.offensive.categories,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:C.name,fontFamily:t.fontFamily,"model-value":C.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&C.isSelected,"box-value":h.value?null:C.priority||0,"onUpdate:modelValue":P=>f(P,C)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])])):e.createCommentVNode("",!0),t.productivityCategories.defensive||t.productivityCategories.possession?(e.openBlock(),e.createElementBlock("div",Pa,[t.productivityCategories.defensive?(e.openBlock(),e.createElementBlock("div",Ma,[e.createElementVNode("div",Ra,[e.createElementVNode("div",Da,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",Oa,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:E[1]||(E[1]=C=>y("defensive"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":n.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",La,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.defensive.categories,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:C.name,fontFamily:t.fontFamily,"model-value":C.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&C.isSelected,"box-value":h.value?null:C.priority||0,"onUpdate:modelValue":P=>f(P,C)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||n.value]])])):e.createCommentVNode("",!0),t.productivityCategories.possession?(e.openBlock(),e.createElementBlock("div",za,[e.createElementVNode("div",Ua,[e.createElementVNode("div",Wa,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",Ha,"("+e.toDisplayString(r.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:E[2]||(E[2]=C=>y("possession"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.possession.categories,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:"productivity__checkbox"},[e.createVNode(e.unref(O),{label:C.name,fontFamily:t.fontFamily,"model-value":C.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&C.isSelected,"box-value":h.value?null:C.priority||0,"onUpdate:modelValue":P=>f(P,C)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),C.parameters&&t.areProductivityButtonsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"options",role:"button",onClick:P=>_(C)},ja,8,Ga)):e.createCommentVNode("",!0)]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],4),!h.value&&t.productivityCategories.offensesConditions&&t.areOffensesConditionsVisible?(e.openBlock(),e.createElementBlock("div",qa,[e.createElementVNode("div",Za,[Ja,e.createElementVNode("div",Ka,[Xa,e.createElementVNode("div",Qa,[ei,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areFoulsCommittedSelected,"avoid-interaction":l.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":E[3]||(E[3]=C=>l.value.areFoulsCommittedSelected=C)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areFoulsCommittedSelected,"avoid-interaction":!l.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":E[4]||(E[4]=C=>l.value.areFoulsCommittedSelected=!C)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",ti,[oi,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areYellowCardsSelected,"avoid-interaction":l.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":E[5]||(E[5]=C=>l.value.areYellowCardsSelected=C)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areYellowCardsSelected,"avoid-interaction":!l.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":E[6]||(E[6]=C=>l.value.areYellowCardsSelected=!C)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",ai,[ii,e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":l.value.areRedCardsSelected,"avoid-interaction":l.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":E[7]||(E[7]=C=>l.value.areRedCardsSelected=C)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":!l.value.areRedCardsSelected,"avoid-interaction":!l.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":E[8]||(E[8]=C=>l.value.areRedCardsSelected=!C)},null,8,["model-value","avoid-interaction"])])])])])])):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-cde7de0b"]]),w0="",Ce=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),ni={class:"details__header"},li=Ce(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),ri={class:"details__header__checkbox"},di={class:"details__body"},ci={class:"details__body__playing-as"},ui=["onClick"],mi={class:"details__header"},pi=Ce(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),fi={class:"details__header__checkbox"},hi={class:"details__body"},yi=Ce(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),_i={class:"details__body__game-section"},gi=["onClick"],Si={class:"details__body"},bi=Ce(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Ci={class:"details__body__game-section"},ki=["onClick"],Ei={key:0,class:"details_body"},xi=Ce(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),wi={class:"radios"},Vi={class:"radio-input"},Ni={class:"radio-input__radio"},Bi=Ce(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),Fi={class:"radio-input"},Ti={class:"radio-input__radio"},vi=Ce(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),$i={class:"radio-input"},Ai={class:"radio-input__radio"},Ii=Ce(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Pi=L({__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},emits:["change-statistic-type"],setup(t,{emit:i}){const o=t;e.useCssVars(h=>({"91d1a498":t.buttonsBackgroundColor,"562e8f56":t.buttonsTextColor,63400359:t.buttonsBorderWidth,"622904f6":t.buttonsBorderColor,"2e90fc4c":t.buttonsBackgroundColorActive,"0684cfbb":t.buttonsTextColorActive,"7e90c7bf":t.buttonsBorderWidthActive,"42275f9c":t.buttonsBorderColorActive}));const a=e.ref("");e.watch(()=>o.statisticType,h=>{a.value=h},{immediate:!0}),e.watch(()=>a.value,h=>{o.statisticType=h,i("change-statistic-type",h)});const n=e.computed(()=>o.playingAs.every(h=>h.isSelected)),s=e.computed(()=>o.gameSections.every(h=>h.isSelected)),l=e.computed(()=>o.gameSections.reduce((h,f)=>(f.value<=3?h.firstHalf.push(f):h.secondHalf.push(f),h),{firstHalf:[],secondHalf:[]})),u=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function c(h){h?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,_)=>{f.isSelected=_===0})}function d(h){o.playingAs.filter(f=>f.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function m(h){o.gameSections.filter(f=>f.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function r(h){h?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,_)=>{f.isSelected=_===0})}return(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(u.value)},[e.withDirectives(e.createElementVNode("div",ni,[li,e.createElementVNode("div",ri,[e.createVNode(e.unref(O),{label:"Todos",fontFamily:t.fontFamily,"model-value":n.value,"onUpdate:modelValue":c},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",di,[e.createElementVNode("div",ci,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${y}`,class:e.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:g=>d(_)},e.toDisplayString(_.name),11,ui))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",mi,[pi,e.createElementVNode("div",fi,[e.createVNode(e.unref(O),{label:"Todos",fontFamily:t.fontFamily,"model-value":s.value,"onUpdate:modelValue":r},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",hi,[yi,e.createElementVNode("div",_i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.firstHalf,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${y}`,class:e.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:g=>m(_)},e.toDisplayString(_.text),11,gi))),128))])]),e.createElementVNode("div",Si,[bi,e.createElementVNode("div",Ci,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.secondHalf,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${y}`,class:e.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:g=>m(_)},e.toDisplayString(_.text),11,ki))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",Ei,[xi,e.createElementVNode("div",wi,[e.createElementVNode("div",Vi,[e.createElementVNode("div",Ni,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=_=>a.value=_),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),Bi])]),e.createElementVNode("div",Fi,[e.createElementVNode("div",Ti,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[1]||(f[1]=_=>a.value=_),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),vi])]),e.createElementVNode("div",$i,[e.createElementVNode("div",Ai,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[2]||(f[2]=_=>a.value=_),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,a.value]]),Ii])])])])):e.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-feb56031"]]),N0="",Mi={class:"scroll-container"},Ie=L({__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(i=>({"6aab424d":t.height,39848040:t.width})),(i,o)=>(e.openBlock(),e.createElementBlock("div",Mi,[e.renderSlot(i.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-218f5976"]]),F0="",Ri={class:"tournaments"},Di={key:0,class:"tournaments__tournament"},Oi=L({__name:"TemplateTournaments",props:{tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.ref([]),s=e.computed(()=>l.value.filter(d=>d.isSelected).length),l=e.computed(()=>o.tournamentsUrl?n.value:o.tournaments);e.watch(()=>o.tournamentsUrl,async d=>{if(d)try{const r=await(await fetch(d,{headers:{Authorization:o.token}})).json();n.value=r.map((h,f)=>({...h.tournament,seasons:h.seasons,isSelected:!0}))}catch(m){console.error("Error fetching tournaments:",m)}},{immediate:!0}),e.watch(()=>l.value,d=>{const m=d.filter(r=>r.isSelected);a.value=m.length===d.length,i("change-filters-selected",m.length),i("update:filters",l.value)},{immediate:!0,deep:!0});function u(d){l.value.forEach((m,r)=>{m.isSelected=d||(r!==0?d:!0)})}function c(d,m){o.isOneTournamentOnly&&o.tournaments.forEach(r=>{r.isSelected=!1}),m.isSelected=d}return(d,m)=>(e.openBlock(),e.createElementBlock("div",Ri,[e.createVNode(Ie,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Di,[e.createVNode(e.unref(O),{"model-value":a.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":u},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id||r._id,class:"tournaments__tournament"},[e.createVNode(e.unref(O),{"model-value":r.isSelected,label:r.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":s.value===1&&r.isSelected,"onUpdate:modelValue":h=>c(h,r)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},[["__scopeId","data-v-f6bcefe8"]]),p={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened",POSITIONS:"positions",YEARS:"years",NATIONALITIES:"nationalities",TEAMS:"teams"},v0="",Li={key:0,class:"plays-golstats__placeholder"},zi=["onClick"],Ui={key:0,class:"plays-golstats__item__value"},Wi={class:"plays-golstats__item__text"},Hi={class:"plays-golstats__item__svg"},Yi={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gi=["fill"],Gt=L({__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(t,{emit:i}){const o=t,a=e.computed(()=>({"--grid-template-columns":o.type===p.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${o.svgWidth}px`,"--svg-height":`${o.svgHeight}px`}));e.watch(()=>o.categories,s=>{const l=s.filter(u=>u.isSelected);i("update:filters",l)},{immediate:!0,deep:!0});function n(s){s.isSelected||(o.categories.forEach(l=>{l.isSelected=!1}),s.isSelected=!0,o.type===p.GOLSTATS&&i("change-filters-selected",s.value))}return(s,l)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(a.value)},[e.createVNode(Ie,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(p).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Li," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(u,c)=>(e.openBlock(),e.createElementBlock("div",{key:`k${c}`,class:"plays-golstats__item",onClick:d=>n(u)},[t.type===e.unref(p).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Ui,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Wi,e.toDisplayString(u.name),1),e.createElementVNode("div",Hi,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Yi,[e.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:t.svgColor},null,8,Gi)],512)),[[e.vShow,u.isSelected]])])],8,zi))),128))]),_:1},8,["height"])],4))}},[["__scopeId","data-v-af3c1673"]]),ji=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},gt={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(t){this.$emit("inputval",t.target.value)},onKeyDown(t){if(this.isNumbersOnly){const i=t.which?t.which:t.keyCode();!t.code.startsWith("Numpad")&&i>31&&(i<48||i>57)&&t.preventDefault()}}}},jt=()=>{e.useCssVars(t=>({"71e38669":t.textRightColor,d0c4b7ac:t.textRightFontSize,"101fb94d":t.textRightFontFamily}))},qt=gt.setup;gt.setup=qt?(t,i)=>(jt(),qt(t,i)):jt;const qi={class:"input-container"},Zi=["type","placeholder","value"],Ji={class:"right-text"};function Ki(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",qi,[e.createElementVNode("input",{type:o.inputType,placeholder:o.placeholder,value:o.value,style:e.normalizeStyle(s.inputStyle),onKeydown:i[0]||(i[0]=(...l)=>s.onKeyDown&&s.onKeyDown(...l)),onInput:i[1]||(i[1]=(...l)=>s.updateInputValue&&s.updateInputValue(...l))},null,44,Zi),e.createElementVNode("div",Ji,e.toDisplayString(o.textRight),1)])}const Xi=ji(gt,[["render",Ki],["__scopeId","data-v-76f92928"]]),Qi=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},St={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Zt=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Jt=St.setup;St.setup=Jt?(t,i)=>(Zt(),Jt(t,i)):Zt;const es=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),ts=["src"],os={key:1,class:"text"},as=["src"],is={class:"stats"},ss=es(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),ns={class:"numstats"},ls={class:"leyend"};function rs(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,ts)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",os,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,as)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",is,[ss,e.createElementVNode("div",ns,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",ls,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const ds=Qi(St,[["render",rs],["__scopeId","data-v-f3ee6b2b"]]),cs={class:"gsc-dropdown__main-container__item-selected"},us=["height","width"],ms=["stroke"],ps={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs=["fill"],hs={class:"gsc-dropdown__items-container"},ys=["onClick"],_s={key:0,class:"gsc-dropdown__items-footer"},re={__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(t){return["solid","dotted","dashed"].includes(t)}},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:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref({}),n=e.ref(null),s=e.ref(o.isMultipleOption?-1:0),l=e.ref(!1);e.watch(()=>o.items,(f,_)=>{if(!o.modelValue&&(!o.onlyFirstTime||!_||!_.length)&&f&&f.length){if(o.defaultItemByProp){const y=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);y!==-1?(s.value=y,a.value=f[y]):(s.value=0,a.value=f[0])}else a.value=f[o.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>o.modelValue,f=>{if(f){const _=o.items.findIndex(y=>typeof f=="object"?JSON.stringify(y)===JSON.stringify(f):y===f);_!==-1&&(s.value=_,a.value=o.items[_],i("update:modelValue",a.value))}},{immediate:!0});const u=e.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),c=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(l.value=!l.value)}function m(f){n.value&&!n.value.contains(f.target)&&(l.value=!1)}function r(f,_){o.isMultipleOption?s.value=-1:(s.value=_,l.value=!1),a.value=f,i("input",a.value),i("update:modelValue",a.value)}function h(){l.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",m)}),e.onBeforeMount(()=>{document.removeEventListener("click",m)}),(f,_)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(u.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:d},[e.createElementVNode("div",cs,[e.renderSlot(f.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":l.value}]),style:e.normalizeStyle(c.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,ms)],8,us)):(e.openBlock(),e.createElementBlock("svg",ps,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,fs)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",hs,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(y,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===s.value}]),key:g,onClick:E=>r(y,g)},[e.renderSlot(f.$slots,"availableItem",{item:y})],10,ys)),[[e.vShow,!y.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",_s,[e.createVNode(e.unref(ds),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,l.value]])]),_:3})],4))}},ge={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},A0="",we=t=>(e.pushScopeId("data-v-915d5e00"),t=t(),e.popScopeId(),t),gs={class:"universe"},Ss=we(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Tipo de estádisticas:",-1)),bs={class:"radios"},Cs={class:"radio-input"},ks={class:"radio-input__radio"},Es=we(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),xs={class:"radio-input"},ws={class:"radio-input__radio"},Vs=we(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),Ns=we(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),Bs=we(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),Fs={class:"universe__inputs"},Ts={class:"universe__inputs__input"},vs=we(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),$s=we(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),As={class:"universe__dropdown"},Is={class:"selected-item"},Ps=L({__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"})},fontFamily:{type:String,default:"'Poppins-Regular'"},defaultMonthIndex:{type:Number,default:5}},emits:["update:universeFilters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!1),s=e.ref(!1),l=e.ref(!1),u=e.ref({statistics:{}});e.watch(()=>a.universeFilters,r=>{u.value={...r,lastMonths:r.selectedMonth?r.selectedMonth:r.lastMonths[a.defaultMonthIndex],statistics:{...r.statistics},statisticsRadios:r.statisticsRadios||"total"}},{deep:!0,immediate:!0}),e.watch(()=>u,r=>{n.value=!r.value.minutesPlayed||Number(r.value.minutesPlayed)===0,s.value=!r.value.percentMinutesPlayed||Number(r.value.percentMinutesPlayed)===0,l.value=!r.value.lastMonths||Number(r.value.lastMonths)===0,o("update:universeFilters",r)},{deep:!0,immediate:!0});function c(r){r&&r<1&&(r=1),u.value.minutesPlayed=r}function d(){u.value={...a.universeFilters,lastMonths:a.universeFilters.lastMonths[a.defaultMonthIndex],statistics:{...a.universeFilters.statistics}}}function m(r){u.value.lastMonths=r}return i({resetFilters:d}),(r,h)=>(e.openBlock(),e.createElementBlock("div",gs,[Ss,e.createElementVNode("div",bs,[e.createElementVNode("div",Cs,[e.createElementVNode("div",ks,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=f=>u.value.statisticsRadios=f),type:"radio",id:"total",value:"total",name:"statistics"},null,512),[[e.vModelRadio,u.value.statisticsRadios]]),Es])]),e.createElementVNode("div",xs,[e.createElementVNode("div",ws,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[1]||(h[1]=f=>u.value.statisticsRadios=f),type:"radio",id:"every",value:"every90",name:"statistics"},null,512),[[e.vModelRadio,u.value.statisticsRadios]]),Vs])])]),Ns,Bs,e.createElementVNode("div",Fs,[e.createElementVNode("div",Ts,[e.createVNode(e.unref(Xi),{value:u.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:c},null,8,["value"])])]),vs,$s,e.createElementVNode("div",As,[e.createVNode(e.unref(re),e.mergeProps(e.unref(ge),{items:t.universeFilters.lastMonths,"model-value":u.value.lastMonths,onInput:m}),{default:e.withCtx(({selectedItem:f})=>[e.createElementVNode("div",Is,e.toDisplayString(f)+" "+e.toDisplayString(f===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",null,e.toDisplayString(f)+" "+e.toDisplayString(f===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-915d5e00"]]),Kt=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Ms={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 t=this.labels||[],i=this.min===void 0?0:this.min,o=t.length?t.length-1:100,a=this.max===void 0?o:this.max,n=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(n=1);let s=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(s=t.length-2),a<=i)throw new Error("Invalid props min or max");if(n>s)throw new Error("Invalid props minValue or maxValue");let l=this.rangeMargin===void 0?this.step:this.rangeMargin,u=l%this.step;return u&&(l=l+this.step-u),{valueMin:n<i?i:n,valueMax:s>a?a:s,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:l}},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(t){let i=parseFloat(t.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:t.target.value=this.valueMin},onInputMaxChange(t){let i=parseFloat(t.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let o=(i-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*o,n=a%this.step;a-=n,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let o=(i-this.startX)/this.barBox.width,a=this.barValue+(this.maximum-this.minimum)*o,n=a%this.step;a-=n,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let i=this.step;t.deltaY<0&&(i=-i),t.shiftKey&&t.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):t.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):t.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],i=t.length?t.length-1:100;return this.max===void 0?i:this.max},stepCount(){let t=this.labels||[];return t.length?t.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 t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},Rs={class:"bar"},Ds=["min","max","step","value"],Os={class:"caption"},Ls={class:"min-caption"},zs={class:"bar-inner"},Us=["min","max","step","value"],Ws={class:"caption"},Hs={class:"max-caption"},Ys={key:0,class:"ruler"},Gs={key:1,class:"sub-ruler"},js={key:2,class:"labels"};function qs(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.baseClassName,n.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=e.withModifiers((...l)=>s.onMouseWheel&&s.onMouseWheel(...l),["prevent","stop"]))},[e.createElementVNode("div",Rs,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:s.barMin+"%"}),onClick:i[0]||(i[0]=(...l)=>s.onBarLeftClick&&s.onBarLeftClick(...l))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:s.minimum,max:s.maximum,step:o.step,value:n.valueMin,onInput:i[1]||(i[1]=e.withModifiers((...l)=>s.onInputMinChange&&s.onInputMinChange(...l),["stop","prevent"]))},null,40,Ds),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...l)=>s.onLeftThumbMousedown&&s.onLeftThumbMousedown(...l)),onTouchstart:i[3]||(i[3]=(...l)=>s.onLeftThumbMousedown&&s.onLeftThumbMousedown(...l))},[e.createElementVNode("div",Os,[e.createElementVNode("span",Ls,e.toDisplayString(o.minCaption||s.barMinVal),1)])],32),e.createElementVNode("div",zs,[e.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...l)=>s.onInnerBarLeftClick&&s.onInnerBarLeftClick(...l))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...l)=>s.onInnerBarRightClick&&s.onInnerBarRightClick(...l))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:s.minimum,max:s.maximum,step:o.step,value:n.valueMax,onInput:i[6]||(i[6]=e.withModifiers((...l)=>s.onInputMaxChange&&s.onInputMaxChange(...l),["stop","prevent"]))},null,40,Us),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...l)=>s.onRightThumbMousedown&&s.onRightThumbMousedown(...l)),onTouchstart:i[8]||(i[8]=(...l)=>s.onRightThumbMousedown&&s.onRightThumbMousedown(...l))},[e.createElementVNode("div",Ws,[e.createElementVNode("span",Hs,e.toDisplayString(o.maxCaption||s.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:s.barMax+"%"}),onClick:i[9]||(i[9]=(...l)=>s.onBarRightClick&&s.onBarRightClick(...l))},null,4)]),o.ruler?(e.openBlock(),e.createElementBlock("div",Ys,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.stepCount,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),s.subStepCount?(e.openBlock(),e.createElementBlock("div",Gs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.subStepCount,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("div",js,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.scaleLabels,l=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:l},e.toDisplayString(l),1))),128))])):e.createCommentVNode("",!0)],34)}const bt={components:{MultiRangeSlider:Kt(Ms,[["render",qs]])},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(t){this.minValueLocal=t},immediate:!0},maxValue:{handler(t){this.maxValueLocal=t},immediate:!0}},methods:{onInput(t){this.minValueLocal=t.minValue,this.maxValueLocal=t.maxValue,this.$emit("input",t)}}},Xt=()=>{e.useCssVars(t=>({"318dc560":t.lineOutRangeColor,fcb35722:t.lineInRangeColor,"3edd517e":t.backgroundIndicador,"19ee7a09":t.widthIndicador,"482e6b68":t.heightIndicador,"48824d56":t.borderWidthIndicador,a51d4f50:t.borderColorIndicador,deb3b7b0:t.marginTopIndicador}))},Qt=bt.setup;bt.setup=Qt?(t,i)=>(Xt(),Qt(t,i)):Xt;const Zs={class:"center"},Js={class:"bar-ref"},Ks={class:"bar-ref-element-left"},Xs={class:"bar-ref-element-right"};function Qs(t,i,o,a,n,s){const l=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(s.customStyle)},[e.createElementVNode("div",Zs,[e.createElementVNode("div",Js,[e.createElementVNode("div",Ks,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(s.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(s.customStyleValue)},e.toDisplayString(n.minValueLocal)+e.toDisplayString(o.minSuffix),5)]),e.createElementVNode("div",Xs,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(s.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(s.customStyleValue)},e.toDisplayString(n.maxValueLocal)+e.toDisplayString(o.maxSuffix),5)])]),e.createVNode(l,{baseClassName:"multi-range-slider",min:o.minLimit,max:o.maxLimit,step:1,ruler:!1,label:!1,"min-value":n.minValueLocal,"max-value":n.maxValueLocal,"range-margin":0,onInput:s.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const eo=Kt(bt,[["render",Qs]]),en={class:"template-distance"},tn={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:i}){const o=t,a=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>a.value,s=>{i("update:distanceFilters",s)},{deep:!0}),e.watch(()=>o.distance,s=>{a.value.minValue=s.minValue,a.value.maxValue=s.maxValue,a.value.minLimit=s.minLimit,a.value.maxLimit=s.maxLimit},{immediate:!0,deep:!0});function n(s){a.value.minValue=s.minValue,a.value.maxValue=s.maxValue}return(s,l)=>(e.openBlock(),e.createElementBlock("div",en,[e.createVNode(e.unref(eo),{"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":a.value.minLimit,"max-limit":a.value.maxLimit,"min-value":a.value.minValue,"max-value":a.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:n},null,8,["min-limit","max-limit","min-value","max-value"])]))}},M0="",on=t=>(e.pushScopeId("data-v-af5f4265"),t=t(),e.popScopeId(),t),an={class:"template-games"},sn={class:"template-games__header"},nn=on(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),ln={class:"template-games__header__all-games"},rn=L({__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:i}){const o=t,a=e.ref(!1),n=e.computed(()=>o.gamesFilters.filter(l=>l.isSelected).length);e.watch(n,l=>{a.value=l===o.gamesFilters.length,i("update:gamesFilters",o.gamesFilters)},{immediate:!0});const s=l=>{l?o.gamesFilters.forEach(u=>{u.isSelected=l}):o.gamesFilters.forEach((u,c)=>{u.isSelected=c===0}),a.value=l};return(l,u)=>(e.openBlock(),e.createElementBlock("div",an,[e.createElementVNode("div",sn,[nn,e.createElementVNode("div",ln,[e.createVNode(e.unref(O),{modelValue:a.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":s},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"template-games__game"},[e.createVNode(e.unref(O),{modelValue:c.isSelected,"onUpdate:modelValue":m=>c.isSelected=m,label:c.label,"teams-ids":c.teamsIds,"avoid-interaction":n.value===1&&c.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},[["__scopeId","data-v-af5f4265"]]),dn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Ct={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},to=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},oo=Ct.setup;Ct.setup=oo?(t,i)=>(to(),oo(t,i)):to;const cn=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),un=["src"],mn={key:1,class:"text"},pn=["src"],fn={class:"stats"},hn=cn(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),yn={class:"numstats"},_n={class:"leyend"};function gn(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,un)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",mn,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,pn)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",fn,[hn,e.createElementVNode("div",yn,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",_n,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Ze=dn(Ct,[["render",gn],["__scopeId","data-v-f3ee6b2b"]]),Sn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},kt={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ao=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},io=kt.setup;kt.setup=io?(t,i)=>(ao(),io(t,i)):ao;const bn=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Cn=["src"],kn={key:1,class:"text"},En=["src"],xn={class:"stats"},wn=bn(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Vn={class:"numstats"},Nn={class:"leyend"};function Bn(t,i,o,a,n,s){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([s.customStyle,n.status&&o.typeOnOff&&s.customActive]),onClick:i[0]||(i[0]=(...l)=>s.btnClick&&s.btnClick(...l))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Cn)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",kn,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,En)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...l)=>s.btnClick&&s.btnClick(...l))},[e.createElementVNode("div",xn,[wn,e.createElementVNode("div",Vn,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Nn,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Fn=Sn(kt,[["render",Bn],["__scopeId","data-v-f3ee6b2b"]]),Tn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},vn={key:1},$n={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},An=["fill"],In={key:0,class:"checkbox__teams"},Pn={class:"checkbox__teams__logo"},Mn=["src"],Rn={class:"checkbox__teams__logo"},Dn=["src"],On={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const o=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const a=e.ref(!1),n=e.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return a.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),s=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});e.watch(()=>o.modelValue,d=>{d!==a.value&&(a.value=d)},{immediate:!0});function u(){o.avoidInteraction||!a.value&&o.avoidToCheck||(a.value=!a.value,i("update:modelValue",a.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:u},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(n.value)},[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(s.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",vn,[(e.openBlock(),e.createElementBlock("svg",$n,[e.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:t.boxValueColor},null,8,An)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",In,[e.createElementVNode("div",Pn,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,Mn)]),e.createElementVNode("div",Rn,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,Dn)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},Ln=Tn(On,[["__scopeId","data-v-b6f124d8"]]),zn=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Et={components:{GSCButton:Fn,GSCCheckbox:Ln},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,i)=>({sector:i+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(t){const i=t.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((o,a)=>{o.active=t.includes(a+1),this.validateField(a)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var i=[];for(let o=0;o<t.length;o++)t[o].active&&i.push(o+1);this.$emit("update:modelValue",i)},deep:!0}},computed:{translx(){var t=0;return this.widthField>305?t=this.widthField-305:this.widthField==268&&(t=-36),t},transly(){var t=0;return this.heightField>195?(t=this.heightField-195,t=t/2):this.heightField==180&&(t=-7),t},translxcircle(){var t=0;return this.widthField>305?(t=this.widthField-305,t=t/2):this.widthField==268&&(t=-18),t}},methods:{clickAll(t){if(t){for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(t){var i=0;this.sectors[t].active=!this.sectors[t].active;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0&&(this.sectors[t].active=!0),this.validateField(t)},btn14(t){this.sectors[0].active=t?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=t?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=t?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=t?this.sectors[3].active=!0:this.sectors[3].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,i==16&&(this.all=!0,this.update+=1)},btn24(t){this.sectors[4].active=t?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=t?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=t?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=t?this.sectors[7].active=!0:this.sectors[7].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,i==16&&(this.all=!0,this.update+=1)},btn34(t){this.sectors[8].active=t?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=t?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=t?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=t?this.sectors[11].active=!0:this.sectors[11].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,i==16&&(this.all=!0,this.update+=1)},btn44(t){this.sectors[12].active=t?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=t?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=t?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=t?this.sectors[15].active=!0:this.sectors[15].active=!1;var i=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(i+=1);i==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,i==16&&(this.all=!0,this.update+=1)},validateField(t){(t===0||t===1||t===2||t===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(t===4||t===5||t===6||t===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(t===8||t===9||t===10||t===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(t===12||t===13||t===14||t===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)}}},so=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},no=Et.setup;Et.setup=no?(t,i)=>(so(),no(t,i)):so;const Un={class:"gsc-field"},Wn={class:"gsc-field__title-checked"},Hn={class:"gsc-field__title-checked__title"},Yn={class:"gsc-field__container-field"},Gn={class:"gsc-field__container-field__field"},jn={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},qn=["stroke"],Zn=["stroke","stroke-width"],Jn=["stroke","stroke-width"],Kn=["stroke-width","stroke"],Xn=["fill","fill-opacity","stroke","stroke-width"],Qn=["fill","fill-opacity","stroke","stroke-width"],el=["fill","fill-opacity","stroke","stroke-width"],tl=["fill","fill-opacity","stroke","stroke-width"],ol=["fill","fill-opacity","stroke","stroke-width"],al=["fill","fill-opacity","stroke","stroke-width"],il=["fill","fill-opacity","stroke","stroke-width"],sl=["fill","fill-opacity","stroke","stroke-width"],nl=["fill","fill-opacity","stroke","stroke-width"],ll=["fill","fill-opacity","stroke","stroke-width"],rl=["fill","fill-opacity","stroke","stroke-width"],dl=["fill","fill-opacity","stroke","stroke-width"],cl=["fill","fill-opacity","stroke","stroke-width"],ul=["fill","fill-opacity","stroke","stroke-width"],ml=["fill","fill-opacity","stroke","stroke-width"],pl=["fill","fill-opacity","stroke","stroke-width"],fl={class:"gsc-field__container-field__bar-buttons"};function hl(t,i,o,a,n,s){const l=e.resolveComponent("GSCCheckbox"),u=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Un,[e.createElementVNode("div",Wn,[e.createElementVNode("div",Hn,e.toDisplayString(o.title),1),e.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:e.normalizeStyle(o.widthField>=350?"min-width: 123px":"")},[(e.openBlock(),e.createBlock(l,{label:o.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":o.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:n.all,key:n.update,"model-value":n.all,"onUpdate:modelValue":s.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",Yn,[e.createElementVNode("div",Gn,[(e.openBlock(),e.createElementBlock("svg",jn,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:o.colorLineField},null,8,qn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+s.translx+"px, "+s.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:o.colorLineField,"stroke-width":o.borderWidthLineField,"stroke-linecap":"square"},null,12,Zn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+s.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:o.colorLineField,"stroke-width":o.borderWidthLineField,"stroke-linecap":"square"},null,12,Jn),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+s.translxcircle+"px, "+s.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":o.borderWidthLineField,stroke:o.colorLineField},null,12,Kn),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[0]||(i[0]=c=>s.selectSector(0))},null,8,Xn),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[1]||(i[1]=c=>s.selectSector(1))},null,8,Qn),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[2]||(i[2]=c=>s.selectSector(2))},null,8,el),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[3]||(i[3]=c=>s.selectSector(3))},null,8,tl),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[4]||(i[4]=c=>s.selectSector(4))},null,8,ol),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[5]||(i[5]=c=>s.selectSector(5))},null,8,al),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[6]||(i[6]=c=>s.selectSector(6))},null,8,il),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[7]||(i[7]=c=>s.selectSector(7))},null,8,sl),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[8]||(i[8]=c=>s.selectSector(8))},null,8,nl),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[9]||(i[9]=c=>s.selectSector(9))},null,8,ll),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[10]||(i[10]=c=>s.selectSector(10))},null,8,rl),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[11]||(i[11]=c=>s.selectSector(11))},null,8,dl),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[12]||(i[12]=c=>s.selectSector(12))},null,8,cl),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[13]||(i[13]=c=>s.selectSector(13))},null,8,ul),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[14]||(i[14]=c=>s.selectSector(14))},null,8,ml),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:i[15]||(i[15]=c=>s.selectSector(15))},null,8,pl)]))]),e.createElementVNode("div",fl,[(e.openBlock(),e.createBlock(u,{"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:s.btn14,key:n.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn24,key:n.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn34,key:n.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(u,{"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:s.btn44,key:n.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const lo=zn(Et,[["render",hl],["__scopeId","data-v-b85699b8"]]),D0="",yl={class:"toggle-buttons__background"},_l=["onClick"],gl=L({__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(t,{emit:i}){const o=t;e.useCssVars(l=>({"0d588b39":t.height,"2a8da974":t.width,"6d34d30a":t.mainBackgroundColor,"3d50bf20":t.borderRadius,e8fc78a2:t.mainBorderWidth,eb2a7568:t.mainBorderColor,acdd84b6:t.fontFamily,"63d45e82":t.fontSize,b28ed67c:t.activeBorderWidth,b4bcd342:t.activeBorderColor,"7fa6e29d":t.activeBackgroundColor}));const a=e.ref(o.selectedButtonIndex),n=e.computed(()=>({"--grid-template-columns":`repeat(${o.buttons.length}, 1fr)`}));e.watch(()=>o.selectedButtonIndex,l=>{a.value=l}),e.watch(a,(l,u)=>{l!==u&&i("change",{index:l,button:o.buttons[l]})});function s(l){a.value=l}return(l,u)=>(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(n.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:`b${d}`,class:e.normalizeClass(["toggle-buttons__button",{active:a.value===d}]),onClick:m=>s(d)},e.toDisplayString(c.text||c),11,_l))),128))],4)]))}},[["__scopeId","data-v-ac2af001"]]);function ro(t,i){return function(){return t.apply(i,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:xt}=Object,{iterator:Je,toStringTag:co}=Symbol,Ke=(t=>i=>{const o=Sl.call(i);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ce=t=>(t=t.toLowerCase(),i=>Ke(i)===t),Xe=t=>i=>typeof i===t,{isArray:Pe}=Array,ze=Xe("undefined");function bl(t){return t!==null&&!ze(t)&&t.constructor!==null&&!ze(t.constructor)&&ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const uo=ce("ArrayBuffer");function Cl(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&uo(t.buffer),i}const kl=Xe("string"),ie=Xe("function"),mo=Xe("number"),Qe=t=>t!==null&&typeof t=="object",El=t=>t===!0||t===!1,et=t=>{if(Ke(t)!=="object")return!1;const i=xt(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(co in t)&&!(Je in t)},xl=ce("Date"),wl=ce("File"),Vl=ce("Blob"),Nl=ce("FileList"),Bl=t=>Qe(t)&&ie(t.pipe),Fl=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ie(t.append)&&((i=Ke(t))==="formdata"||i==="object"&&ie(t.toString)&&t.toString()==="[object FormData]"))},Tl=ce("URLSearchParams"),[vl,$l,Al,Il]=["ReadableStream","Request","Response","Headers"].map(ce),Pl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ue(t,i,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let a,n;if(typeof t!="object"&&(t=[t]),Pe(t))for(a=0,n=t.length;a<n;a++)i.call(null,t[a],a,t);else{const s=o?Object.getOwnPropertyNames(t):Object.keys(t),l=s.length;let u;for(a=0;a<l;a++)u=s[a],i.call(null,t[u],u,t)}}function po(t,i){i=i.toLowerCase();const o=Object.keys(t);let a=o.length,n;for(;a-- >0;)if(n=o[a],i===n.toLowerCase())return n;return null}const Ve=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fo=t=>!ze(t)&&t!==Ve;function wt(){const{caseless:t}=fo(this)&&this||{},i={},o=(a,n)=>{const s=t&&po(i,n)||n;et(i[s])&&et(a)?i[s]=wt(i[s],a):et(a)?i[s]=wt({},a):Pe(a)?i[s]=a.slice():i[s]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&Ue(arguments[a],o);return i}const Ml=(t,i,o,{allOwnKeys:a}={})=>(Ue(i,(n,s)=>{o&&ie(n)?t[s]=ro(n,o):t[s]=n},{allOwnKeys:a}),t),Rl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Dl=(t,i,o,a)=>{t.prototype=Object.create(i.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),o&&Object.assign(t.prototype,o)},Ol=(t,i,o,a)=>{let n,s,l;const u={};if(i=i||{},t==null)return i;do{for(n=Object.getOwnPropertyNames(t),s=n.length;s-- >0;)l=n[s],(!a||a(l,t,i))&&!u[l]&&(i[l]=t[l],u[l]=!0);t=o!==!1&&xt(t)}while(t&&(!o||o(t,i))&&t!==Object.prototype);return i},Ll=(t,i,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=i.length;const a=t.indexOf(i,o);return a!==-1&&a===o},zl=t=>{if(!t)return null;if(Pe(t))return t;let i=t.length;if(!mo(i))return null;const o=new Array(i);for(;i-- >0;)o[i]=t[i];return o},Ul=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),Wl=(t,i)=>{const a=(t&&t[Je]).call(t);let n;for(;(n=a.next())&&!n.done;){const s=n.value;i.call(t,s[0],s[1])}},Hl=(t,i)=>{let o;const a=[];for(;(o=t.exec(i))!==null;)a.push(o);return a},Yl=ce("HTMLFormElement"),Gl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,n){return a.toUpperCase()+n}),ho=(({hasOwnProperty:t})=>(i,o)=>t.call(i,o))(Object.prototype),jl=ce("RegExp"),yo=(t,i)=>{const o=Object.getOwnPropertyDescriptors(t),a={};Ue(o,(n,s)=>{let l;(l=i(n,s,t))!==!1&&(a[s]=l||n)}),Object.defineProperties(t,a)},ql=t=>{yo(t,(i,o)=>{if(ie(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=t[o];if(ie(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Zl=(t,i)=>{const o={},a=n=>{n.forEach(s=>{o[s]=!0})};return Pe(t)?a(t):a(String(t).split(i)),o},Jl=()=>{},Kl=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Xl(t){return!!(t&&ie(t.append)&&t[co]==="FormData"&&t[Je])}const Ql=t=>{const i=new Array(10),o=(a,n)=>{if(Qe(a)){if(i.indexOf(a)>=0)return;if(!("toJSON"in a)){i[n]=a;const s=Pe(a)?[]:{};return Ue(a,(l,u)=>{const c=o(l,n+1);!ze(c)&&(s[u]=c)}),i[n]=void 0,s}}return a};return o(t,0)},er=ce("AsyncFunction"),tr=t=>t&&(Qe(t)||ie(t))&&ie(t.then)&&ie(t.catch),_o=((t,i)=>t?setImmediate:i?((o,a)=>(Ve.addEventListener("message",({source:n,data:s})=>{n===Ve&&s===o&&a.length&&a.shift()()},!1),n=>{a.push(n),Ve.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ie(Ve.postMessage)),or=typeof queueMicrotask<"u"?queueMicrotask.bind(Ve):typeof process<"u"&&process.nextTick||_o,S={isArray:Pe,isArrayBuffer:uo,isBuffer:bl,isFormData:Fl,isArrayBufferView:Cl,isString:kl,isNumber:mo,isBoolean:El,isObject:Qe,isPlainObject:et,isReadableStream:vl,isRequest:$l,isResponse:Al,isHeaders:Il,isUndefined:ze,isDate:xl,isFile:wl,isBlob:Vl,isRegExp:jl,isFunction:ie,isStream:Bl,isURLSearchParams:Tl,isTypedArray:Ul,isFileList:Nl,forEach:Ue,merge:wt,extend:Ml,trim:Pl,stripBOM:Rl,inherits:Dl,toFlatObject:Ol,kindOf:Ke,kindOfTest:ce,endsWith:Ll,toArray:zl,forEachEntry:Wl,matchAll:Hl,isHTMLForm:Yl,hasOwnProperty:ho,hasOwnProp:ho,reduceDescriptors:yo,freezeMethods:ql,toObjectSet:Zl,toCamelCase:Gl,noop:Jl,toFiniteNumber:Kl,findKey:po,global:Ve,isContextDefined:fo,isSpecCompliantForm:Xl,toJSONObject:Ql,isAsyncFn:er,isThenable:tr,setImmediate:_o,asap:or,isIterable:t=>t!=null&&ie(t[Je])};function D(t,i,o,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),o&&(this.config=o),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}S.inherits(D,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const go=D.prototype,So={};["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(t=>{So[t]={value:t}}),Object.defineProperties(D,So),Object.defineProperty(go,"isAxiosError",{value:!0}),D.from=(t,i,o,a,n,s)=>{const l=Object.create(go);return S.toFlatObject(t,l,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),D.call(l,t.message,i,o,a,n),l.cause=t,l.name=t.name,s&&Object.assign(l,s),l};const ar=null;function Vt(t){return S.isPlainObject(t)||S.isArray(t)}function bo(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function Co(t,i,o){return t?t.concat(i).map(function(n,s){return n=bo(n),!o&&s?"["+n+"]":n}).join(o?".":""):i}function ir(t){return S.isArray(t)&&!t.some(Vt)}const sr=S.toFlatObject(S,{},null,function(i){return/^is[A-Z]/.test(i)});function tt(t,i,o){if(!S.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,o=S.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!S.isUndefined(g[y])});const a=o.metaTokens,n=o.visitor||m,s=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(i);if(!S.isFunction(n))throw new TypeError("visitor must be a function");function d(_){if(_===null)return"";if(S.isDate(_))return _.toISOString();if(!c&&S.isBlob(_))throw new D("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(_)||S.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function m(_,y,g){let E=_;if(_&&!g&&typeof _=="object"){if(S.endsWith(y,"{}"))y=a?y:y.slice(0,-2),_=JSON.stringify(_);else if(S.isArray(_)&&ir(_)||(S.isFileList(_)||S.endsWith(y,"[]"))&&(E=S.toArray(_)))return y=bo(y),E.forEach(function(P,q){!(S.isUndefined(P)||P===null)&&i.append(l===!0?Co([y],q,s):l===null?y:y+"[]",d(P))}),!1}return Vt(_)?!0:(i.append(Co(g,y,s),d(_)),!1)}const r=[],h=Object.assign(sr,{defaultVisitor:m,convertValue:d,isVisitable:Vt});function f(_,y){if(!S.isUndefined(_)){if(r.indexOf(_)!==-1)throw Error("Circular reference detected in "+y.join("."));r.push(_),S.forEach(_,function(E,C){(!(S.isUndefined(E)||E===null)&&n.call(i,E,S.isString(C)?C.trim():C,y,h))===!0&&f(E,y?y.concat(C):[C])}),r.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return f(t),i}function ko(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Nt(t,i){this._pairs=[],t&&tt(t,this,i)}const Eo=Nt.prototype;Eo.append=function(i,o){this._pairs.push([i,o])},Eo.toString=function(i){const o=i?function(a){return i.call(this,a,ko)}:ko;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function nr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xo(t,i,o){if(!i)return t;const a=o&&o.encode||nr;S.isFunction(o)&&(o={serialize:o});const n=o&&o.serialize;let s;if(n?s=n(i,o):s=S.isURLSearchParams(i)?i.toString():new Nt(i,o).toString(a),s){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class lr{constructor(){this.handlers=[]}use(i,o,a){return this.handlers.push({fulfilled:i,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){S.forEach(this.handlers,function(a){a!==null&&i(a)})}}const wo=lr,Vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Nt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Bt=typeof window<"u"&&typeof document<"u",Ft=typeof navigator=="object"&&navigator||void 0,dr=Bt&&(!Ft||["ReactNative","NativeScript","NS"].indexOf(Ft.product)<0),cr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ur=Bt&&window.location.href||"http://localhost",ae={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bt,hasStandardBrowserEnv:dr,hasStandardBrowserWebWorkerEnv:cr,navigator:Ft,origin:ur},Symbol.toStringTag,{value:"Module"})),...rr};function mr(t,i){return tt(t,new ae.classes.URLSearchParams,Object.assign({visitor:function(o,a,n,s){return ae.isNode&&S.isBuffer(o)?(this.append(a,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},i))}function pr(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function fr(t){const i={},o=Object.keys(t);let a;const n=o.length;let s;for(a=0;a<n;a++)s=o[a],i[s]=t[s];return i}function No(t){function i(o,a,n,s){let l=o[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),c=s>=o.length;return l=!l&&S.isArray(n)?n.length:l,c?(S.hasOwnProp(n,l)?n[l]=[n[l],a]:n[l]=a,!u):((!n[l]||!S.isObject(n[l]))&&(n[l]=[]),i(o,a,n[l],s)&&S.isArray(n[l])&&(n[l]=fr(n[l])),!u)}if(S.isFormData(t)&&S.isFunction(t.entries)){const o={};return S.forEachEntry(t,(a,n)=>{i(pr(a),n,o,0)}),o}return null}function hr(t,i,o){if(S.isString(t))try{return(i||JSON.parse)(t),S.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(t)}const Tt={transitional:Vo,adapter:["xhr","http","fetch"],transformRequest:[function(i,o){const a=o.getContentType()||"",n=a.indexOf("application/json")>-1,s=S.isObject(i);if(s&&S.isHTMLForm(i)&&(i=new FormData(i)),S.isFormData(i))return n?JSON.stringify(No(i)):i;if(S.isArrayBuffer(i)||S.isBuffer(i)||S.isStream(i)||S.isFile(i)||S.isBlob(i)||S.isReadableStream(i))return i;if(S.isArrayBufferView(i))return i.buffer;if(S.isURLSearchParams(i))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let u;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return mr(i,this.formSerializer).toString();if((u=S.isFileList(i))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return tt(u?{"files[]":i}:i,c&&new c,this.formSerializer)}}return s||n?(o.setContentType("application/json",!1),hr(i)):i}],transformResponse:[function(i){const o=this.transitional||Tt.transitional,a=o&&o.forcedJSONParsing,n=this.responseType==="json";if(S.isResponse(i)||S.isReadableStream(i))return i;if(i&&S.isString(i)&&(a&&!this.responseType||n)){const l=!(o&&o.silentJSONParsing)&&n;try{return JSON.parse(i)}catch(u){if(l)throw u.name==="SyntaxError"?D.from(u,D.ERR_BAD_RESPONSE,this,null,this.response):u}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{Tt.headers[t]={}});const vt=Tt,yr=S.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"]),_r=t=>{const i={};let o,a,n;return t&&t.split(`
2
+ `).forEach(function(l){n=l.indexOf(":"),o=l.substring(0,n).trim().toLowerCase(),a=l.substring(n+1).trim(),!(!o||i[o]&&yr[o])&&(o==="set-cookie"?i[o]?i[o].push(a):i[o]=[a]:i[o]=i[o]?i[o]+", "+a:a)}),i},Bo=Symbol("internals");function We(t){return t&&String(t).trim().toLowerCase()}function ot(t){return t===!1||t==null?t:S.isArray(t)?t.map(ot):String(t)}function gr(t){const i=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(t);)i[a[1]]=a[2];return i}const Sr=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function $t(t,i,o,a,n){if(S.isFunction(a))return a.call(this,i,o);if(n&&(i=o),!!S.isString(i)){if(S.isString(a))return i.indexOf(a)!==-1;if(S.isRegExp(a))return a.test(i)}}function br(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,o,a)=>o.toUpperCase()+a)}function Cr(t,i){const o=S.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+o,{value:function(n,s,l){return this[a].call(this,i,n,s,l)},configurable:!0})})}class at{constructor(i){i&&this.set(i)}set(i,o,a){const n=this;function s(u,c,d){const m=We(c);if(!m)throw new Error("header name must be a non-empty string");const r=S.findKey(n,m);(!r||n[r]===void 0||d===!0||d===void 0&&n[r]!==!1)&&(n[r||c]=ot(u))}const l=(u,c)=>S.forEach(u,(d,m)=>s(d,m,c));if(S.isPlainObject(i)||i instanceof this.constructor)l(i,o);else if(S.isString(i)&&(i=i.trim())&&!Sr(i))l(_r(i),o);else if(S.isObject(i)&&S.isIterable(i)){let u={},c,d;for(const m of i){if(!S.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[d=m[0]]=(c=u[d])?S.isArray(c)?[...c,m[1]]:[c,m[1]]:m[1]}l(u,o)}else i!=null&&s(o,i,a);return this}get(i,o){if(i=We(i),i){const a=S.findKey(this,i);if(a){const n=this[a];if(!o)return n;if(o===!0)return gr(n);if(S.isFunction(o))return o.call(this,n,a);if(S.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,o){if(i=We(i),i){const a=S.findKey(this,i);return!!(a&&this[a]!==void 0&&(!o||$t(this,this[a],a,o)))}return!1}delete(i,o){const a=this;let n=!1;function s(l){if(l=We(l),l){const u=S.findKey(a,l);u&&(!o||$t(a,a[u],u,o))&&(delete a[u],n=!0)}}return S.isArray(i)?i.forEach(s):s(i),n}clear(i){const o=Object.keys(this);let a=o.length,n=!1;for(;a--;){const s=o[a];(!i||$t(this,this[s],s,i,!0))&&(delete this[s],n=!0)}return n}normalize(i){const o=this,a={};return S.forEach(this,(n,s)=>{const l=S.findKey(a,s);if(l){o[l]=ot(n),delete o[s];return}const u=i?br(s):String(s).trim();u!==s&&delete o[s],o[u]=ot(n),a[u]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const o=Object.create(null);return S.forEach(this,(a,n)=>{a!=null&&a!==!1&&(o[n]=i&&S.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,o])=>i+": "+o).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...o){const a=new this(i);return o.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[Bo]=this[Bo]={accessors:{}}).accessors,n=this.prototype;function s(l){const u=We(l);a[u]||(Cr(n,l),a[u]=!0)}return S.isArray(i)?i.forEach(s):s(i),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(at.prototype,({value:t},i)=>{let o=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[o]=a}}}),S.freezeMethods(at);const ue=at;function At(t,i){const o=this||vt,a=i||o,n=ue.from(a.headers);let s=a.data;return S.forEach(t,function(u){s=u.call(o,s,n.normalize(),i?i.status:void 0)}),n.normalize(),s}function Fo(t){return!!(t&&t.__CANCEL__)}function Me(t,i,o){D.call(this,t??"canceled",D.ERR_CANCELED,i,o),this.name="CanceledError"}S.inherits(Me,D,{__CANCEL__:!0});function To(t,i,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?t(o):i(new D("Request failed with status code "+o.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function kr(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Er(t,i){t=t||10;const o=new Array(t),a=new Array(t);let n=0,s=0,l;return i=i!==void 0?i:1e3,function(c){const d=Date.now(),m=a[s];l||(l=d),o[n]=c,a[n]=d;let r=s,h=0;for(;r!==n;)h+=o[r++],r=r%t;if(n=(n+1)%t,n===s&&(s=(s+1)%t),d-l<i)return;const f=m&&d-m;return f?Math.round(h*1e3/f):void 0}}function xr(t,i){let o=0,a=1e3/i,n,s;const l=(d,m=Date.now())=>{o=m,n=null,s&&(clearTimeout(s),s=null),t.apply(null,d)};return[(...d)=>{const m=Date.now(),r=m-o;r>=a?l(d,m):(n=d,s||(s=setTimeout(()=>{s=null,l(n)},a-r)))},()=>n&&l(n)]}const it=(t,i,o=3)=>{let a=0;const n=Er(50,250);return xr(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,c=l-a,d=n(c),m=l<=u;a=l;const r={loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:d||void 0,estimated:d&&u&&m?(u-l)/d:void 0,event:s,lengthComputable:u!=null,[i?"download":"upload"]:!0};t(r)},o)},vo=(t,i)=>{const o=t!=null;return[a=>i[0]({lengthComputable:o,total:t,loaded:a}),i[1]]},$o=t=>(...i)=>S.asap(()=>t(...i)),wr=ae.hasStandardBrowserEnv?((t,i)=>o=>(o=new URL(o,ae.origin),t.protocol===o.protocol&&t.host===o.host&&(i||t.port===o.port)))(new URL(ae.origin),ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent)):()=>!0,Vr=ae.hasStandardBrowserEnv?{write(t,i,o,a,n,s){const l=[t+"="+encodeURIComponent(i)];S.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),S.isString(a)&&l.push("path="+a),S.isString(n)&&l.push("domain="+n),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Br(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Ao(t,i,o){let a=!Nr(i);return t&&(a||o==!1)?Br(t,i):i}const Io=t=>t instanceof ue?{...t}:t;function Ne(t,i){i=i||{};const o={};function a(d,m,r,h){return S.isPlainObject(d)&&S.isPlainObject(m)?S.merge.call({caseless:h},d,m):S.isPlainObject(m)?S.merge({},m):S.isArray(m)?m.slice():m}function n(d,m,r,h){if(S.isUndefined(m)){if(!S.isUndefined(d))return a(void 0,d,r,h)}else return a(d,m,r,h)}function s(d,m){if(!S.isUndefined(m))return a(void 0,m)}function l(d,m){if(S.isUndefined(m)){if(!S.isUndefined(d))return a(void 0,d)}else return a(void 0,m)}function u(d,m,r){if(r in i)return a(d,m);if(r in t)return a(void 0,d)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,m,r)=>n(Io(d),Io(m),r,!0)};return S.forEach(Object.keys(Object.assign({},t,i)),function(m){const r=c[m]||n,h=r(t[m],i[m],m);S.isUndefined(h)&&r!==u||(o[m]=h)}),o}const Po=t=>{const i=Ne({},t);let{data:o,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:l,auth:u}=i;i.headers=l=ue.from(l),i.url=xo(Ao(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(S.isFormData(o)){if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...m]=c?c.split(";").map(r=>r.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...m].join("; "))}}if(ae.hasStandardBrowserEnv&&(a&&S.isFunction(a)&&(a=a(i)),a||a!==!1&&wr(i.url))){const d=n&&s&&Vr.read(s);d&&l.set(n,d)}return i},Fr=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,a){const n=Po(t);let s=n.data;const l=ue.from(n.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:d}=n,m,r,h,f,_;function y(){f&&f(),_&&_(),n.cancelToken&&n.cancelToken.unsubscribe(m),n.signal&&n.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function E(){if(!g)return;const P=ue.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),G={data:!u||u==="text"||u==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:P,config:t,request:g};To(function(oe){o(oe),y()},function(oe){a(oe),y()},G),g=null}"onloadend"in g?g.onloadend=E:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(E)},g.onabort=function(){g&&(a(new D("Request aborted",D.ECONNABORTED,t,g)),g=null)},g.onerror=function(){a(new D("Network Error",D.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let q=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const G=n.transitional||Vo;n.timeoutErrorMessage&&(q=n.timeoutErrorMessage),a(new D(q,G.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,g)),g=null},s===void 0&&l.setContentType(null),"setRequestHeader"in g&&S.forEach(l.toJSON(),function(q,G){g.setRequestHeader(G,q)}),S.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),u&&u!=="json"&&(g.responseType=n.responseType),d&&([h,_]=it(d,!0),g.addEventListener("progress",h)),c&&g.upload&&([r,f]=it(c),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(m=P=>{g&&(a(!P||P.type?new Me(null,t,g):P),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(m),n.signal&&(n.signal.aborted?m():n.signal.addEventListener("abort",m)));const C=kr(n.url);if(C&&ae.protocols.indexOf(C)===-1){a(new D("Unsupported protocol "+C+":",D.ERR_BAD_REQUEST,t));return}g.send(s||null)})},Tr=(t,i)=>{const{length:o}=t=t?t.filter(Boolean):[];if(i||o){let a=new AbortController,n;const s=function(d){if(!n){n=!0,u();const m=d instanceof Error?d:this.reason;a.abort(m instanceof D?m:new Me(m instanceof Error?m.message:m))}};let l=i&&setTimeout(()=>{l=null,s(new D(`timeout ${i} of ms exceeded`,D.ETIMEDOUT))},i);const u=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),t=null)};t.forEach(d=>d.addEventListener("abort",s));const{signal:c}=a;return c.unsubscribe=()=>S.asap(u),c}},vr=function*(t,i){let o=t.byteLength;if(!i||o<i){yield t;return}let a=0,n;for(;a<o;)n=a+i,yield t.slice(a,n),a=n},$r=async function*(t,i){for await(const o of Ar(t))yield*vr(o,i)},Ar=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:o,value:a}=await i.read();if(o)break;yield a}}finally{await i.cancel()}},Mo=(t,i,o,a)=>{const n=$r(t,i);let s=0,l,u=c=>{l||(l=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:d,value:m}=await n.next();if(d){u(),c.close();return}let r=m.byteLength;if(o){let h=s+=r;o(h)}c.enqueue(new Uint8Array(m))}catch(d){throw u(d),d}},cancel(c){return u(c),n.return()}},{highWaterMark:2})},st=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ro=st&&typeof ReadableStream=="function",Ir=st&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Do=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Pr=Ro&&Do(()=>{let t=!1;const i=new Request(ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),Oo=64*1024,It=Ro&&Do(()=>S.isReadableStream(new Response("").body)),nt={stream:It&&(t=>t.body)};st&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!nt[i]&&(nt[i]=S.isFunction(t[i])?o=>o[i]():(o,a)=>{throw new D(`Response type '${i}' is not supported`,D.ERR_NOT_SUPPORT,a)})})})(new Response);const Mr=async t=>{if(t==null)return 0;if(S.isBlob(t))return t.size;if(S.isSpecCompliantForm(t))return(await new Request(ae.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(S.isArrayBufferView(t)||S.isArrayBuffer(t))return t.byteLength;if(S.isURLSearchParams(t)&&(t=t+""),S.isString(t))return(await Ir(t)).byteLength},Rr=async(t,i)=>{const o=S.toFiniteNumber(t.getContentLength());return o??Mr(i)},Pt={http:ar,xhr:Fr,fetch:st&&(async t=>{let{url:i,method:o,data:a,signal:n,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:m,withCredentials:r="same-origin",fetchOptions:h}=Po(t);d=d?(d+"").toLowerCase():"text";let f=Tr([n,s&&s.toAbortSignal()],l),_;const y=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(c&&Pr&&o!=="get"&&o!=="head"&&(g=await Rr(m,a))!==0){let G=new Request(i,{method:"POST",body:a,duplex:"half"}),te;if(S.isFormData(a)&&(te=G.headers.get("content-type"))&&m.setContentType(te),G.body){const[oe,X]=vo(g,it($o(c)));a=Mo(G.body,Oo,oe,X)}}S.isString(r)||(r=r?"include":"omit");const E="credentials"in Request.prototype;_=new Request(i,{...h,signal:f,method:o.toUpperCase(),headers:m.normalize().toJSON(),body:a,duplex:"half",credentials:E?r:void 0});let C=await fetch(_);const P=It&&(d==="stream"||d==="response");if(It&&(u||P&&y)){const G={};["status","statusText","headers"].forEach(le=>{G[le]=C[le]});const te=S.toFiniteNumber(C.headers.get("content-length")),[oe,X]=u&&vo(te,it($o(u),!0))||[];C=new Response(Mo(C.body,Oo,oe,()=>{X&&X(),y&&y()}),G)}d=d||"text";let q=await nt[S.findKey(nt,d)||"text"](C,t);return!P&&y&&y(),await new Promise((G,te)=>{To(G,te,{data:q,headers:ue.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:_})})}catch(E){throw y&&y(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,_),{cause:E.cause||E}):D.from(E,E&&E.code,t,_)}})};S.forEach(Pt,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Lo=t=>`- ${t}`,Dr=t=>S.isFunction(t)||t===null||t===!1,zo={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:i}=t;let o,a;const n={};for(let s=0;s<i;s++){o=t[s];let l;if(a=o,!Dr(o)&&(a=Pt[(l=String(o)).toLowerCase()],a===void 0))throw new D(`Unknown adapter '${l}'`);if(a)break;n[l||"#"+s]=a}if(!a){const s=Object.entries(n).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=i?s.length>1?`since :
4
+ `+s.map(Lo).join(`
5
+ `):" "+Lo(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a},adapters:Pt};function Mt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Me(null,t)}function Uo(t){return Mt(t),t.headers=ue.from(t.headers),t.data=At.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),zo.getAdapter(t.adapter||vt.adapter)(t).then(function(a){return Mt(t),a.data=At.call(t,t.transformResponse,a),a.headers=ue.from(a.headers),a},function(a){return Fo(a)||(Mt(t),a&&a.response&&(a.response.data=At.call(t,t.transformResponse,a.response),a.response.headers=ue.from(a.response.headers))),Promise.reject(a)})}const Wo="1.9.0",lt={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{lt[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const Ho={};lt.transitional=function(i,o,a){function n(s,l){return"[Axios v"+Wo+"] Transitional option '"+s+"'"+l+(a?". "+a:"")}return(s,l,u)=>{if(i===!1)throw new D(n(l," has been removed"+(o?" in "+o:"")),D.ERR_DEPRECATED);return o&&!Ho[l]&&(Ho[l]=!0,console.warn(n(l," has been deprecated since v"+o+" and will be removed in the near future"))),i?i(s,l,u):!0}},lt.spelling=function(i){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${i}`),!0)};function Or(t,i,o){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let n=a.length;for(;n-- >0;){const s=a[n],l=i[s];if(l){const u=t[s],c=u===void 0||l(u,s,t);if(c!==!0)throw new D("option "+s+" must be "+c,D.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const rt={assertOptions:Or,validators:lt},ye=rt.validators;class dt{constructor(i){this.defaults=i||{},this.interceptors={request:new wo,response:new wo}}async request(i,o){try{return await this._request(i,o)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
6
+ `+s):a.stack=s}catch{}}throw a}}_request(i,o){typeof i=="string"?(o=o||{},o.url=i):o=i||{},o=Ne(this.defaults,o);const{transitional:a,paramsSerializer:n,headers:s}=o;a!==void 0&&rt.assertOptions(a,{silentJSONParsing:ye.transitional(ye.boolean),forcedJSONParsing:ye.transitional(ye.boolean),clarifyTimeoutError:ye.transitional(ye.boolean)},!1),n!=null&&(S.isFunction(n)?o.paramsSerializer={serialize:n}:rt.assertOptions(n,{encode:ye.function,serialize:ye.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),rt.assertOptions(o,{baseUrl:ye.spelling("baseURL"),withXsrfToken:ye.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=s&&S.merge(s.common,s[o.method]);s&&S.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),o.headers=ue.concat(l,s);const u=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(o)===!1||(c=c&&y.synchronous,u.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let m,r=0,h;if(!c){const _=[Uo.bind(this),void 0];for(_.unshift.apply(_,u),_.push.apply(_,d),h=_.length,m=Promise.resolve(o);r<h;)m=m.then(_[r++],_[r++]);return m}h=u.length;let f=o;for(r=0;r<h;){const _=u[r++],y=u[r++];try{f=_(f)}catch(g){y.call(this,g);break}}try{m=Uo.call(this,f)}catch(_){return Promise.reject(_)}for(r=0,h=d.length;r<h;)m=m.then(d[r++],d[r++]);return m}getUri(i){i=Ne(this.defaults,i);const o=Ao(i.baseURL,i.url,i.allowAbsoluteUrls);return xo(o,i.params,i.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(i){dt.prototype[i]=function(o,a){return this.request(Ne(a||{},{method:i,url:o,data:(a||{}).data}))}}),S.forEach(["post","put","patch"],function(i){function o(a){return function(s,l,u){return this.request(Ne(u||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}dt.prototype[i]=o(),dt.prototype[i+"Form"]=o(!0)});const ct=dt;class Rt{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(s){o=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const l=new Promise(u=>{a.subscribe(u),s=u}).then(n);return l.cancel=function(){a.unsubscribe(s)},l},i(function(s,l,u){a.reason||(a.reason=new Me(s,l,u),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const o=this._listeners.indexOf(i);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const i=new AbortController,o=a=>{i.abort(a)};return this.subscribe(o),i.signal.unsubscribe=()=>this.unsubscribe(o),i.signal}static source(){let i;return{token:new Rt(function(n){i=n}),cancel:i}}}const Lr=Rt;function zr(t){return function(o){return t.apply(null,o)}}function Ur(t){return S.isObject(t)&&t.isAxiosError===!0}const Dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dt).forEach(([t,i])=>{Dt[i]=t});const Wr=Dt;function Yo(t){const i=new ct(t),o=ro(ct.prototype.request,i);return S.extend(o,ct.prototype,i,{allOwnKeys:!0}),S.extend(o,i,null,{allOwnKeys:!0}),o.create=function(n){return Yo(Ne(t,n))},o}const K=Yo(vt);K.Axios=ct,K.CanceledError=Me,K.CancelToken=Lr,K.isCancel=Fo,K.VERSION=Wo,K.toFormData=tt,K.AxiosError=D,K.Cancel=K.CanceledError,K.all=function(i){return Promise.all(i)},K.spread=zr,K.isAxiosError=Ur,K.mergeConfig=Ne,K.AxiosHeaders=ue,K.formToJSON=t=>No(S.isHTMLForm(t)?new FormData(t):t),K.getAdapter=zo.getAdapter,K.HttpStatusCode=Wr,K.default=K;const Be=K,He={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},Go={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},jo={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function ut(t){"@babel/helpers - typeof";return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ut(t)}function Se(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function j(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function H(t){j(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||ut(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Hr(t,i){j(2,arguments);var o=H(t),a=Se(i);return isNaN(a)?new Date(NaN):(a&&o.setDate(o.getDate()+a),o)}function Yr(t,i){j(2,arguments);var o=H(t),a=Se(i);if(isNaN(a))return new Date(NaN);if(!a)return o;var n=o.getDate(),s=new Date(o.getTime());s.setMonth(o.getMonth()+a+1,0);var l=s.getDate();return n>=l?s:(o.setFullYear(s.getFullYear(),s.getMonth(),n),o)}function Ye(t,i){if(j(2,arguments),!i||ut(i)!=="object")return new Date(NaN);var o=i.years?Se(i.years):0,a=i.months?Se(i.months):0,n=i.weeks?Se(i.weeks):0,s=i.days?Se(i.days):0,l=i.hours?Se(i.hours):0,u=i.minutes?Se(i.minutes):0,c=i.seconds?Se(i.seconds):0,d=H(t),m=a||o?Yr(d,a+o*12):d,r=s||n?Hr(m,s+n*7):m,h=u+l*60,f=c+h*60,_=f*1e3,y=new Date(r.getTime()+_);return y}function qo(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Zo(t){j(1,arguments);var i=H(t);return i.setHours(0,0,0,0),i}var Gr=864e5;function jr(t,i){j(2,arguments);var o=Zo(t),a=Zo(i),n=o.getTime()-qo(o),s=a.getTime()-qo(a);return Math.round((n-s)/Gr)}function Re(t,i){j(2,arguments);var o=H(t),a=H(i),n=o.getTime()-a.getTime();return n<0?-1:n>0?1:n}var qr=6e4,Zr=36e5;function Jr(t,i){j(2,arguments);var o=H(t),a=H(i),n=o.getFullYear()-a.getFullYear(),s=o.getMonth()-a.getMonth();return n*12+s}function Kr(t,i){j(2,arguments);var o=H(t),a=H(i);return o.getFullYear()-a.getFullYear()}function Jo(t,i){var o=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return o<0?-1:o>0?1:o}function Xr(t,i){j(2,arguments);var o=H(t),a=H(i),n=Jo(o,a),s=Math.abs(jr(o,a));o.setDate(o.getDate()-n*s);var l=+(Jo(o,a)===-n),u=n*(s-l);return u===0?0:u}function Ot(t,i){return j(2,arguments),H(t).getTime()-H(i).getTime()}var Ko={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(i){return i<0?Math.ceil(i):Math.floor(i)}},Qr="trunc";function Lt(t){return t?Ko[t]:Ko[Qr]}function ed(t,i,o){j(2,arguments);var a=Ot(t,i)/Zr;return Lt(o==null?void 0:o.roundingMethod)(a)}function td(t,i,o){j(2,arguments);var a=Ot(t,i)/qr;return Lt(o==null?void 0:o.roundingMethod)(a)}function od(t){j(1,arguments);var i=H(t);return i.setHours(23,59,59,999),i}function ad(t){j(1,arguments);var i=H(t),o=i.getMonth();return i.setFullYear(i.getFullYear(),o+1,0),i.setHours(23,59,59,999),i}function id(t){j(1,arguments);var i=H(t);return od(i).getTime()===ad(i).getTime()}function sd(t,i){j(2,arguments);var o=H(t),a=H(i),n=Re(o,a),s=Math.abs(Jr(o,a)),l;if(s<1)l=0;else{o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-n*s);var u=Re(o,a)===-n;id(H(t))&&s===1&&Re(t,a)===1&&(u=!1),l=n*(s-Number(u))}return l===0?0:l}function nd(t,i,o){j(2,arguments);var a=Ot(t,i)/1e3;return Lt(o==null?void 0:o.roundingMethod)(a)}function ld(t,i){j(2,arguments);var o=H(t),a=H(i),n=Re(o,a),s=Math.abs(Kr(o,a));o.setFullYear(1584),a.setFullYear(1584);var l=Re(o,a)===-n,u=n*(s-Number(l));return u===0?0:u}function Xo(t){return j(1,arguments),H(t).getFullYear()}function Qo(t){j(1,arguments);var i=H(t.start),o=H(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(o.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(ld(o,i));var n=Re(o,i),s=Ye(i,{years:n*a.years});a.months=Math.abs(sd(o,s));var l=Ye(s,{months:n*a.months});a.days=Math.abs(Xr(o,l));var u=Ye(l,{days:n*a.days});a.hours=Math.abs(ed(o,u));var c=Ye(u,{hours:n*a.hours});a.minutes=Math.abs(td(o,c));var d=Ye(c,{minutes:n*a.minutes});return a.seconds=Math.abs(nd(o,d)),a}const rd="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",dd="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Fe={...He},ea=new Set([1]);async function cd(t,i=""){try{const o={Authorization:i||rd},a={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:dd,n=await Be.get(a+t.id,{headers:o});return n.data?n.data.players:[]}catch(o){return Promise.reject(o)}}async function ud(t=[],i=""){try{const o=t.map(a=>cd(a,i));if(o.length){const a=new Set,n=new Date,s=[],l=new Map,u=new Map,c=await Promise.all(o);for(const d of c)for(const m of d){const r=new Date(m.dob),h=Xo(r),f=Qo({start:r,end:n});l.has(m.nationality_id)||l.set(m.nationality_id,{id:m.nationality_id,isSelected:!0,name:Go[`${m.nationality_id}`]}),u.has(m.position_id)||u.set(m.position_id,{id:m.position_id,isSelected:!0,name:jo[`${m.position_id}`]}),a.add(h),s.push(f.years)}return Fe.minAge=Math.min(...s),Fe.maxAge=Math.max(...s),Fe.availableYears=[...a].sort((d,m)=>m-d),Fe.nationalities=[...l.values()],Fe.positions=[...u.values()],Fe.isEligibilitySwitchVisible=t.some(d=>ea.has(d.tournamentId)),Fe}else return null}catch(o){return Promise.reject(o)}}const q0="",Ge=L({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref(null);e.watch(()=>o.modelValue,()=>{n()},{immediate:!0});function n(){a.value&&(a.value.checked=o.modelValue)}function s(l){i("update:modelValue",l.target.checked)}return e.onMounted(()=>{n()}),(l,u)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:a,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:s},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),J0="",Te=t=>(e.pushScopeId("data-v-cfc8bb98"),t=t(),e.popScopeId(),t),md={class:"personal-data"},pd={class:"personal-data__age"},fd={class:"personal-data__age__toggle"},hd={class:"personal-data__age__range"},yd={class:"personal-data__age__dropdown"},_d=Te(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),gd={class:"selected-item"},Sd=Te(()=>e.createElementVNode("div",{class:"separator"},null,-1)),bd={class:"personal-data__nationality-position"},Cd={key:0,class:"personal-data__nationality-position__switch"},kd=Te(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Ed=Te(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),xd={class:"personal-data__nationality-position__nationality"},wd=Te(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Vd={class:"selected-item"},Nd=Te(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Bd={class:"selected-item"},Fd={class:"personal-data__nationality-position__position"},Td=Te(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),vd={class:"selected-item"},$d="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Ad=L({__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:o}){const a=t,n={id:0,name:"Todas las nacionalidades",isSelected:!1},s={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({...He}),u=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:He.minAge,max:He.maxAge}),m=e.ref(ge),r=e.ref(""),h=e.ref(""),f=e.ref(l.value.availableYears[l.value.availableYears.length-1]),_=e.ref(0),y=e.computed(()=>{const N=l.value.nationalities?[...l.value.nationalities]:[];a.isSeleccion&&N.forEach(T=>{T.isSelected=T.id===138});const v=N[0];return(!v||v.id!==0)&&N.unshift(n),N}),g=e.computed(()=>{let v=(a.filter&&a.filter.positions?a.filter.positions:l.value.positions)?[...l.value.positions]:[];const T=v[0];return(!T||T.id!==0)&&v.unshift(s),v.sort((w,Z)=>w.id-Z.id),v}),E=e.computed(()=>a.isEligibilityVisible?a.season&&a.season.tournamentId&&ea.has(a.season.tournamentId)||a.filters&&a.filters.isEligibilitySwitchVisible:!1);e.watch(y,N=>{const v=N.reduce((T,w,Z)=>(Z!==0&&w.isSelected&&T++,T),0);v===y.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?r.value="Todas las nacionalidades":r.value=`${v} seleccionadas`,X()},{immediate:!0,deep:!0}),e.watch(g,N=>{const v=N.reduce((T,w,Z)=>(Z!==0&&w.isSelected&&T++,T),0);v===g.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?h.value="Todas las posiciones":h.value=`${v} seleccionadas`,X()},{immediate:!0,deep:!0}),e.watch(()=>a.filters,N=>{if(N&&N.availableYears){const v=!Number.isNaN(Number(N.selectedYear));l.value=N,c.value=l.value.selectedYear&&v?1:0,f.value=v?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,s.isSelected=N.positions.every(T=>T.isSelected),X()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{X()}),e.watch(()=>a.season,N=>{N&&N.id!==_.value&&!a.awaitForFilters&&(_.value=N.id,C(N))},{immediate:!0,deep:!1});async function C(N){try{if(N&&N.id){const v=new Set,T=await q(N.id),w=new Date,Z=[],me=new Map,pe=new Map;T.forEach(k=>{const F=new Date(k.dob),I=Xo(F),$=Qo({start:F,end:w});me.has(k.nationality_id)||me.set(k.nationality_id,{id:k.nationality_id,isSelected:!0,name:Go[`${k.nationality_id}`]}),pe.has(k.position_id)||pe.set(k.position_id,{id:k.position_id,isSelected:!0,name:jo[`${k.position_id}`]}),v.add(I),Z.push($.years)}),l.value.minAge=Math.min(...Z),l.value.maxAge=Math.max(...Z),l.value.availableYears=[...v].sort((k,F)=>F-k),f.value=l.value.availableYears[0],l.value.nationalities=[...me.values()],l.value.positions=[...pe.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(v){throw new Error(v)}}function P(N=null){const v=!N||N===be.All;(v||N===be.NATIONALITY)&&y.value.forEach(T=>{T.isSelected=!0}),(v||N===be.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(v||N===be.POSITION)&&g.value.forEach(T=>{T.isSelected=!0}),(v||N===be.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(v||N===be.YEAR)&&(f.value=a.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),X()}async function q(N){try{const v={Authorization:localStorage.getItem("user_token")||a.token},T={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:$d,w=await Be.get(T+N,{headers:v});return w.data?w.data.players:[]}catch(v){return Promise.reject(v)}}function G(N){c.value=N.index,a.filters&&a.filters.availableYears&&N.index===0&&(a.filters.selectedYear="Sin límite")}function te(N){d.value.min=N.minValue,d.value.max=N.maxValue,X()}function oe(N,v){v.id===0?y.value.forEach(T=>{T.isSelected=N}):(v.isSelected=N,y.value[0].isSelected=y.value.every((T,w)=>w===0?!0:T.isSelected))}function X(){const N=c.value===0,v={};N?(v.ageByRange=d.value,v.ageLimits={min:l.value.minAge,max:l.value.maxAge}):v.year=f.value,l.value.isEligibilitySelected?v.eligibility=[...l.value.eligibility]:v.nationalities=y.value.reduce((T,w,Z)=>(Z!==0&&T.push({...w}),T),[]),v.positions=g.value.reduce((T,w,Z)=>(Z!==0&&T.push({...w}),T),[]),o("update:filters",v)}function le(N,v){v.id===0?g.value.forEach(T=>{T.isSelected=N}):(v.isSelected=N,g.value[0].isSelected=g.value.every((T,w)=>w===0?!0:T.isSelected))}function de(N){f.value=N,a.filters&&(a.filters.selectedYear=N),X()}return i({onClearFilters:P}),(N,v)=>(e.openBlock(),e.createElementBlock("div",md,[e.createElementVNode("div",pd,[e.createElementVNode("div",fd,[e.createVNode(gl,{"selected-button-index":c.value,buttons:u.value,width:"220px",onChange:G},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",hd,[e.createVNode(e.unref(eo),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:te},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",yd,[_d,e.createVNode(e.unref(re),e.mergeProps({"model-value":f.value},m.value,{items:l.value.availableYears,onInput:de}),{default:e.withCtx(({selectedItem:T})=>[e.createElementVNode("div",gd,e.toDisplayString(T),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,e.toDisplayString(T),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),Sd,e.createElementVNode("div",bd,[E.value?(e.openBlock(),e.createElementBlock("div",Cd,[kd,e.createVNode(Ge,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":v[0]||(v[0]=T=>l.value.isEligibilitySelected=T)},null,8,["modelValue"]),Ed])):e.createCommentVNode("",!0),e.createElementVNode("div",xd,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Nd,e.createVNode(e.unref(re),e.mergeProps(m.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:T})=>[e.createElementVNode("div",Bd,e.toDisplayString(T.name),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:T.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[wd,e.createVNode(e.unref(re),e.mergeProps(m.value,{"is-multiple-option":"",items:y.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Vd,e.toDisplayString(r.value),1)]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:T.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":w=>oe(w,T)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Fd,[Td,e.createVNode(e.unref(re),e.mergeProps(m.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",vd,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:T})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":T.isSelected,label:t.isFemale?T.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):T.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":w=>le(w,T)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},[["__scopeId","data-v-cfc8bb98"]]),X0="",Id={class:"plays"},Pd={class:"plays__body__offensive"},Md={class:"plays__body__title"},Rd={class:"number-of-categories"},Dd={class:"plays__body__categories"},Od={class:"plays__body__defensive-possession-offenses"},Ld={class:"plays__body__title"},zd={class:"number-of-categories"},Ud={class:"plays__body__categories"},Wd={class:"plays__body__title"},Hd={class:"number-of-categories"},Yd={class:"plays__body__categories"},Gd={class:"plays__body__title"},jd={class:"number-of-categories"},qd={class:"plays__body__categories"},Zd=L({__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,o=e.ref(!1),a=e.ref(!1),n=e.ref(!1),s=e.ref(!1),l=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),u=e.computed(()=>i.playsCategories.offensive.categories.reduce((f,_)=>(_.isSelected&&f++,f),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((f,_)=>(_.isSelected&&f++,f),0)),d=e.computed(()=>i.playsCategories.possession.categories.reduce((f,_)=>(_.isSelected&&f++,f),0)),m=e.computed(()=>i.playsCategories.offenses.categories.reduce((f,_)=>(_.isSelected&&f++,f),0));function r(f,_){_.isSelected=f}function h(f){f==="offensive"?o.value=!o.value:f==="defensive"?a.value=!a.value:f==="possession"?n.value=!n.value:f==="offenses"&&(s.value=!s.value)}return(f,_)=>(e.openBlock(),e.createElementBlock("div",Id,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",Pd,[e.createElementVNode("div",Md,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:_[0]||(_[0]=y=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",Rd,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:_[1]||(_[1]=y=>h("offensive"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:y.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":y.isSelected,"box-value":y.priority||0,"onUpdate:modelValue":g=>r(g,y)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",Od,[e.createElementVNode("div",Ld,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:_[2]||(_[2]=y=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",zd,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:_[3]||(_[3]=y=>h("defensive"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:y.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":y.isSelected,"box-value":y.priority||0,"onUpdate:modelValue":g=>r(g,y)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]]),e.createElementVNode("div",Wd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:_[4]||(_[4]=y=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",Hd,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:_[5]||(_[5]=y=>h("possession"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":n.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:y.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":y.isSelected,"box-value":y.priority||0,"onUpdate:modelValue":g=>r(g,y)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||n.value]]),e.createElementVNode("div",Gd,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:_[6]||(_[6]=y=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",jd,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:_[7]||(_[7]=y=>h("offenses"))},[e.withDirectives(e.createVNode(xe,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",qd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"plays__checkbox"},[e.createVNode(e.unref(O),{label:y.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":y.isSelected,"box-value":y.priority||0,"onUpdate:modelValue":g=>r(g,y)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])])],4)]))}},[["__scopeId","data-v-364e6cae"]]),ey="",Jd={class:"template-results"},Kd=L({__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const o=t,a=e.computed(()=>o.resultsFilters.results.filter(n=>n.isSelected).length);return e.watch(()=>o.resultsFilters,n=>{i("update:resultsFilters",n)},{deep:!0,immediate:!0}),(n,s)=>(e.openBlock(),e.createElementBlock("div",Jd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":a.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},[["__scopeId","data-v-453e89c2"]]),oy="",je=L({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){i("click")}return(s,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(a.value),onClick:n},e.toDisplayString(t.text),7))}},[["__scopeId","data-v-9688933e"]]),Xd={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},ta={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Qd={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},ec={4:"OF",5:"Cf",6:"S",7:"F"};function zt(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const iy="",tc={class:"dropdown"},oc={class:"selected-item"},se=L({__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",tc,[e.createVNode(e.unref(re),e.mergeProps(e.unref(ge),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",oc,e.toDisplayString(t.itemTextKey?s[t.itemTextKey]:s),1)]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?s[t.itemTextKey]:s),1)]),_:1},16,["is-list-same-width","items"])]))}},[["__scopeId","data-v-064d5f86"]]),ny="",ac={class:"dropdown"},ic={class:"game-item"},sc={key:0,class:"item-game"},nc={class:"match-day"},lc={class:"team-logo"},rc=["src"],dc={class:"text"},cc={class:"text score"},uc={class:"text"},mc={class:"team-logo"},pc=["src"],fc={class:"item-game"},hc={class:"team-logo"},yc=["src"],_c={class:"text"},gc={class:"text score"},Sc={class:"text"},bc={class:"team-logo"},Cc=["src"],mt=L({__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",ac,[e.createVNode(e.unref(re),e.mergeProps(e.unref(ge),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",ic,[s.homeTeam?(e.openBlock(),e.createElementBlock("div",sc,[e.createElementVNode("div",nc,e.toDisplayString(s.roundAbbreviation),1),e.createElementVNode("div",lc,[e.createElementVNode("img",{src:s.homeTeam.logo,alt:""},null,8,rc)]),e.createElementVNode("div",dc,e.toDisplayString(s.homeTeam.acronym),1),e.createElementVNode("div",cc,e.toDisplayString(s.score[0])+" - "+e.toDisplayString(s.score[1]),1),e.createElementVNode("div",uc,e.toDisplayString(s.awayTeam.acronym),1),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:s.awayTeam.logo,alt:""},null,8,pc)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",fc,[e.createElementVNode("div",null,e.toDisplayString(s.roundAbbreviation),1),e.createElementVNode("div",hc,[e.createElementVNode("img",{src:s.homeTeam.logo,alt:""},null,8,yc)]),e.createElementVNode("div",_c,e.toDisplayString(s.homeTeam.acronym),1),e.createElementVNode("div",gc,e.toDisplayString(s.score[0])+" - "+e.toDisplayString(s.score[1]),1),e.createElementVNode("div",Sc,e.toDisplayString(s.awayTeam.acronym),1),e.createElementVNode("div",bc,[e.createElementVNode("img",{src:s.awayTeam.logo,alt:""},null,8,Cc)])])]),_:1},16,["items"])]))}},[["__scopeId","data-v-7883a91e"]]),ry="",pt=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),kc={class:"container"},Ec={class:"container__row"},xc={class:"container__row__wrapper"},wc=pt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Vc={class:"container__row__wrapper__input"},Nc={class:"container__row two-items"},Bc={class:"container__row__wrapper"},Fc=pt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Tc={key:0,class:"container__row__wrapper__input"},vc={class:"container__row__wrapper"},$c=pt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Ac={key:0,class:"container__row__wrapper__input"},Ic={class:"container__row"},Pc={class:"container__row__wrapper"},Mc=pt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Rc={key:0,class:"container__row__wrapper__input"},Dc={class:"container__action"},Oc=L({__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},a=e.ref(null),n=e.ref(null),s=e.ref(null),l=e.ref(null);function u(r){a.value=r,i("update:tournament",r)}function c(r){n.value=r,i("update:season",r)}function d(r){s.value=r}function m(r){l.value=r}return(r,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",kc,[e.createElementVNode("div",Ec,[e.createElementVNode("div",xc,[wc,e.createElementVNode("div",Vc,[e.createVNode(se,{items:t.tournaments,itemTextKey:"name",onInput:u},null,8,["items"])])])]),e.createElementVNode("div",Nc,[e.createElementVNode("div",Bc,[Fc,a.value&&a.value.seasons?(e.openBlock(),e.createElementBlock("div",Tc,[e.createVNode(se,{items:a.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",vc,[$c,n.value&&n.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",Ac,[e.createVNode(se,{items:n.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Ic,[e.createElementVNode("div",Pc,[Mc,s.value&&s.value.arrayGames?(e.openBlock(),e.createElementBlock("div",Rc,[e.createVNode(mt,{items:s.value.arrayGames,onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Dc,[e.createVNode(je,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},[["__scopeId","data-v-b63e9c84"]]),cy="",Lc={class:"dropdown"},zc={class:"item-team"},Uc={class:"team-logo"},Wc=["src"],Hc={class:"team-acronym"},Yc={class:"item-team"},Gc={class:"team-logo"},jc=["src"],qc={class:"team-acronym"},oa=L({__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function o(a){i("input",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",Lc,[e.createVNode(e.unref(re),e.mergeProps(e.unref(ge),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",zc,[e.createElementVNode("div",Uc,[e.createElementVNode("img",{src:s.logo,alt:""},null,8,Wc)]),e.createElementVNode("div",Hc,e.toDisplayString(s.acronym),1)])]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",Yc,[e.createElementVNode("div",Gc,[e.createElementVNode("img",{src:s.logo,alt:""},null,8,jc)]),e.createElementVNode("div",qc,e.toDisplayString(s.acronym),1)])]),_:1},16,["items"])]))}},[["__scopeId","data-v-afd2bee8"]]),my="",Zc={class:"advanced-filters"},Jc={class:"advanced-filters__buttons"},Kc=["onClick"],Xc={class:"advanced-filters__filters"},Ut=L({__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Hh)),a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>r0)),n=e.defineAsyncComponent(()=>Promise.resolve().then(()=>c0)),s=[{name:"Sub categorías",component:o},{name:"Cancha",component:n},{name:"Condiciones",component:a}],l=e.ref(s[0]),u=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,m)=>(e.openBlock(),e.createElementBlock("div",Zc,[e.createElementVNode("div",Jc,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,r=>e.createElementVNode("div",{key:r.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===r.name}]),onClick:h=>c(r)},e.toDisplayString(r.name),11,Kc)),64))]),e.createElementVNode("div",Xc,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":u.value},null,8,["subcategory-groups"]))],1024))])]))}},[["__scopeId","data-v-c62c5b9c"]]),fy="",ve=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),Qc={class:"container"},eu={class:"container__row"},tu={class:"container__row__wrapper"},ou=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),au={class:"container__row__wrapper__input"},iu={class:"container__row two-items"},su={class:"container__row__wrapper"},nu=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),lu={key:0,class:"container__row__wrapper__input"},ru={class:"container__row__wrapper"},du=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),cu={key:0,class:"container__row__wrapper__input"},uu={class:"container__row"},mu={class:"container__row__wrapper"},pu=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),fu={key:0,class:"container__row__wrapper__input"},hu={class:"container__row"},yu={class:"container__row__wrapper"},_u=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),gu={key:0,class:"container__row__wrapper__input"},Su={class:"container__row type-and-advanced"},bu={class:"container__row__wrapper"},Cu=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),ku={class:"container__row__wrapper__input"},Eu={class:"container__row__wrapper center"},xu=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),wu={class:"container__row__wrapper__input"},Vu={class:"container__row"},Nu={class:"container__action"},Bu=L({__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null);e.ref(null);const l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(null),m=e.ref(!0),r=e.computed(()=>c.value?c.value.position_id===1?o.advancedFilterCategories.goalkeeper:o.advancedFilterCategories.player:[]);function h(C){n.value=C,i("update:tournament",C)}function f(C){s.value=C,i("update:season",C)}function _(C){u.value=C,i("update:team",C)}function y(C){c.value=C}function g(C){l.value=C}function E(C){d.value=C}return(C,P)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Qc,[e.createElementVNode("div",eu,[e.createElementVNode("div",tu,[ou,e.createElementVNode("div",au,[e.createVNode(se,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",iu,[e.createElementVNode("div",su,[nu,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",lu,[e.createVNode(se,{items:n.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ru,[du,s.value&&s.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",cu,[e.createVNode(oa,{items:s.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:_},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",uu,[e.createElementVNode("div",mu,[pu,u.value&&u.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",fu,[e.createVNode(se,{items:u.value.arrayPlayers,itemTextKey:"player_name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",hu,[e.createElementVNode("div",yu,[_u,s.value&&s.value.mapGamesByTeam&&u.value?(e.openBlock(),e.createElementBlock("div",gu,[e.createVNode(mt,{items:s.value.mapGamesByTeam.get(u.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Su,[e.createElementVNode("div",bu,[Cu,e.createElementVNode("div",ku,[e.createVNode(se,{items:r.value,itemTextKey:"name","is-list-same-width":!1,onInput:E},null,8,["items"])])]),e.createElementVNode("div",Eu,[xu,e.createElementVNode("div",wu,[e.createVNode(Ge,{modelValue:m.value,"onUpdate:modelValue":P[0]||(P[0]=q=>m.value=q)},null,8,["modelValue"])])])]),e.createElementVNode("div",Vu,[e.createVNode(Ut,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",Nu,[e.createVNode(je,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-575b26b5"]]),yy="",De=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),Fu={class:"container"},Tu={class:"container__row"},vu={class:"container__row__wrapper"},$u=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Au={class:"container__row__wrapper__input"},Iu={class:"container__row two-items"},Pu={class:"container__row__wrapper"},Mu=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Ru={key:0,class:"container__row__wrapper__input"},Du={class:"container__row__wrapper"},Ou=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Lu={key:0,class:"container__row__wrapper__input"},zu={class:"container__row"},Uu={class:"container__row__wrapper"},Wu=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Hu={key:0,class:"container__row__wrapper__input"},Yu={class:"container__row type-and-advanced"},Gu={class:"container__row__wrapper"},ju=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),qu={class:"container__row__wrapper__input"},Zu={class:"container__row__wrapper center"},Ju=De(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Ku={class:"container__row__wrapper__input"},Xu={class:"container__row"},Qu={class:"container__action"},em=L({__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null);e.ref(null);const l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(!0),m=e.computed(()=>o.advancedFilterCategories.team);function r(g){n.value=g,i("update:tournament",g)}function h(g){s.value=g,i("update:season",g)}function f(g){u.value=g,i("update:team",g)}function _(g){l.value=g}function y(g){c.value=g}return(g,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Fu,[e.createElementVNode("div",Tu,[e.createElementVNode("div",vu,[$u,e.createElementVNode("div",Au,[e.createVNode(se,{items:t.tournaments,itemTextKey:"name",onInput:r},null,8,["items"])])])]),e.createElementVNode("div",Iu,[e.createElementVNode("div",Pu,[Mu,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",Ru,[e.createVNode(se,{items:n.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Du,[Ou,s.value&&s.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Lu,[e.createVNode(oa,{items:s.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",zu,[e.createElementVNode("div",Uu,[Wu,s.value&&s.value.mapGamesByTeam&&u.value?(e.openBlock(),e.createElementBlock("div",Hu,[e.createVNode(mt,{items:s.value.mapGamesByTeam.get(u.value.team_id),onInput:_},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Yu,[e.createElementVNode("div",Gu,[ju,e.createElementVNode("div",qu,[e.createVNode(se,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:y},null,8,["items"])])]),e.createElementVNode("div",Zu,[Ju,e.createElementVNode("div",Ku,[e.createVNode(Ge,{modelValue:d.value,"onUpdate:modelValue":E[0]||(E[0]=C=>d.value=C)},null,8,["modelValue"])])])]),e.createElementVNode("div",Xu,[e.createVNode(Ut,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",Qu,[e.createVNode(je,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-6d73d5e6"]]),gy="",Oe=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),tm={class:"container"},om={class:"container__row"},am={class:"container__row__wrapper"},im=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),sm={class:"container__row__wrapper__input"},nm={class:"container__row two-items"},lm={class:"container__row__wrapper"},rm=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),dm={key:0,class:"container__row__wrapper__input"},cm={class:"container__row__wrapper"},um=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),mm={key:0,class:"container__row__wrapper__input"},pm={class:"container__row"},fm={class:"container__row__wrapper"},hm=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),ym={key:0,class:"container__row__wrapper__input"},_m={class:"container__row type-and-advanced"},gm={class:"container__row__wrapper"},Sm=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),bm={class:"container__row__wrapper__input"},Cm={class:"container__row__wrapper center"},km=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Em={class:"container__row__wrapper__input",style:{width:"fit-content"}},xm={class:"container__row"},wm={class:"container__action"},Vm=L({__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const o=t,a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},n=e.ref(null),s=e.ref(null),l=e.ref(null),u=e.ref(null),c=e.ref(null),d=e.ref(!0),m=e.computed(()=>o.advancedFilterCategories.games);function r(g){n.value=g,i("update:tournament",g)}function h(g){s.value=g,i("update:season",g)}function f(g){l.value=g}function _(g){u.value=g}function y(g){c.value=g}return(g,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",tm,[e.createElementVNode("div",om,[e.createElementVNode("div",am,[im,e.createElementVNode("div",sm,[e.createVNode(se,{items:t.tournaments,itemTextKey:"name",onInput:r},null,8,["items"])])])]),e.createElementVNode("div",nm,[e.createElementVNode("div",lm,[rm,n.value&&n.value.seasons?(e.openBlock(),e.createElementBlock("div",dm,[e.createVNode(se,{items:n.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",cm,[um,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",mm,[e.createVNode(se,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",pm,[e.createElementVNode("div",fm,[hm,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",ym,[e.createVNode(mt,{items:l.value.arrayGames,onInput:_},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_m,[e.createElementVNode("div",gm,[Sm,e.createElementVNode("div",bm,[e.createVNode(se,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:y},null,8,["items"])])]),e.createElementVNode("div",Cm,[km,e.createElementVNode("div",Em,[e.createVNode(Ge,{modelValue:d.value,"onUpdate:modelValue":E[0]||(E[0]=C=>d.value=C)},null,8,["modelValue"])])])]),e.createElementVNode("div",xm,[e.createVNode(Ut,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",wm,[e.createVNode(je,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},[["__scopeId","data-v-6e904db8"]]),by="",Nm={class:"template-videos"},Bm={class:"template-videos__header"},Fm={class:"template-videos__body"},Tm=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:Oc,VideosPlayer:Bu,VideosTeam:em,VideosGame:Vm}}),vm=L(Object.assign(Tm,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const o=t,a={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},n=[],s=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[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],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},u={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),m=e.ref(c.value[0]),r=e.ref({}),h=e.ref({}),f=e.ref({}),_=e.ref({}),y=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const E=e.ref(null);e.watch(r,k=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(F=>F.id===k.id),k.arrayMatchDays?(_.value=k.arrayMatchDays[0]||{},f.value=k.arrayTeams[0]||{}):(te(k),oe(k))}),e.watch(f,()=>{setTimeout(()=>{r.value.mapPlayersByTeam&&(!f.value.arrayPlayers||!f.value.arrayPlayers.length)&&(f.value.arrayPlayers=r.value.mapPlayersByTeam.get(f.value.team_id))},700)});async function C(){try{d.value=await P()}catch(k){throw new Error(k)}}async function P(){try{const k={Authorization:zt()||o.token},F={}.API_TOURNAMENTS||o.tournamentsUrl,I=await Be.get(F,{headers:k});return I.data?I.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(k){return Promise.reject(k)}}async function q(k,F,I=""){i("loading-data");let $=I;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||o.gamesUrl,k.forEach((M,x)=>{$+=`${x===0?"":"&"}seasons=${M}`}));const A={Authorization:zt()||o.token},{data:{data:U,teams:z}}=await Be.get($,{headers:A});return{seasonsAndGames:U,seasonsAndTeams:z}}catch(A){if(F>0)return q(k,F-1,$);throw new Error(A)}finally{i("loading-data")}}async function G(k){try{const F={Authorization:zt()||o.token},$=` ${{}.API_PLAYERS_BY_SEASON||o.playersUrl}${k.seasonId}`,A=await Be.get($,{headers:F});return A.data?A.data.players:[]}catch(F){return Promise.reject(F)}}async function te(k){try{const{seasonsAndGames:F,seasonsAndTeams:I}=await q([k.id,...k.related_seasons.map(z=>z.id)],3),$=I.find(z=>z._id===k.id);r.value.arrayTeams=[],r.value.mapTeams=new Map;const A=$.teams.reduce((z,M)=>(r.value.arrayTeams.push(M),r.value.mapTeams.set(M.team_id,{name:M.colloquial_name,acronym:M.acronym,logo:M.logo,id:M.team_id}),z.set(M.team_id,M),z),new Map);f.value=r.value.arrayTeams[0],r.value.mapGames=new Map,r.value.mapGamesByTeam=new Map;const U=Array.from(F.reduce((z,M)=>(M.games.forEach(x=>{if(x.game_status===1&&x.has_video){(!r.value.maxGameId||x.game_id>r.value.maxGameId)&&(r.value.maxGameId=x.game_id);let R=x.matchday_abbreviation.replace("M","J"),Y=x.matchday_abbreviation.replace("M","Jornada ");const Q=x.matchday_abbreviation.replace("M","");M.season_type===0?h.value.tournament_type===1&&(x.seasonId===881?(R=ec[Q]||R,Y=Qd[Q]||Y):(R=ta[x.matchday_abbreviation]?x.matchday_abbreviation:R,Y=ta[x.matchday_abbreviation]||Y,R==="FINAL"&&(R="F"))):M.season_type===1?(R=Xd[x.matchday_abbreviation],Y=R):(R=x.matchday_abbreviation.replace("PO","R"),Y="Repechaje"),x.roundAbbreviation=R,x.roundName=Y,r.value.mapGames.set(x.game_id,{id:x.game_id,date:x.date,dateTimeMillis:new Date(x.date_time_utc).valueOf(),homeTeam:r.value.mapTeams.get(x.home_team),awayTeam:r.value.mapTeams.get(x.visiting_team),roundAbbreviation:x.roundAbbreviation,roundName:x.roundName,score:x.score,gameResult:x.score[0]>x.score[1]?1:x.score[0]<x.score[1]?2:3,seasonId:M.season_id});const fe=z.get(x.roundAbbreviation);x.numberDateTimeMillis=new Date(x.date_time_utc).getTime(),x.homeTeam=A.get(x.home_team),x.awayTeam=A.get(x.visiting_team);const he=r.value.mapGamesByTeam.get(x.home_team),Le=r.value.mapGamesByTeam.get(x.visiting_team);he?he.push(x):r.value.mapGamesByTeam.set(x.home_team,[x]),Le?Le.push(x):r.value.mapGamesByTeam.set(x.visiting_team,[x]),fe?fe.arrayGames.push(x):z.set(x.roundAbbreviation,{stringMatchDayAbbreviation:x.roundAbbreviation,stringMatchDayName:x.roundName,arrayGames:[x]})}}),z),new Map).values());U.reverse(),U.forEach(z=>{z.arrayGames.sort((M,x)=>M.numberDateTimeMillis-x.numberDateTimeMillis)}),r.value.arrayMatchDays=U,_.value=U[0]||{}}catch(F){throw new Error(F)}}async function oe(k){try{const F=await v(k.id);r.value.mapPlayers=new Map,r.value.mapPlayersByTeam=F.reduce((I,$)=>{r.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const A=I.get($.team_id);return A?A.push($):I.set($.team_id,[$]),I},new Map)}catch(F){throw new Error(F)}}async function X(){try{let k=[];y.value.isEmpty?(k=await T(),g.value={...k}):k=g.value;const F=[];if(k&&k.length){y.value=k.reduce((M,x)=>{if(x.group_id!=="g-55"){const R={idAux:x.group_id,ids:[...x.ids?x.ids:[],...x.rival_Ids?x.rival_Ids:[]],type:x.type,name:x.name,coordinatePoint:x.coordinate_point,requiresRivalTransform:s.includes(x.group_id)};R.idsAux=[...R.ids],R.subcategoryGroups=x.group_id==="g-12"?[]:le(x,0,new Map,!1,{},R.idsAux),F.push(R),R.type.includes(u.player)&&M.player.push(R),R.type.includes(u.team)&&(R.idAux!=="g-2"&&M.games.push(R),M.team.push(R)),R.type.includes(u.goalkeeper)&&M.goalkeeper.push(R)}return M},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const I=new Map,$="Resumen",A="Todas sus jugadas",U=y.value.player.reduce((M,x)=>{const R=de(x);return R.forEach(Y=>{I.set(Y,x.name)}),M.push(...R),M},[]),z=y.value.goalkeeper.reduce((M,x)=>{const R=de(x);return R.forEach(Y=>{I.set(Y,x.name)}),M.push(...R),M},[]);y.value.games.unshift({name:$,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),y.value.team.unshift({name:$,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),y.value.player.unshift({name:$,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:A,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0}),y.value.goalkeeper.unshift({name:$,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:A,arrayCategoriesIds:z,booleanIsMinutesPlayed:!0})}}catch(k){throw new Error(k)}}function le(k,F=0,I=new Map,$=!1,A={},U=[]){if(!k.group_id)return;let z=I.get(F);const M=$?`${k.id_category}_r`:k.id_category;k.id_category&&U.push(k.id_category);let x={ids:[M],groupId:k.group_id,level:F,name:k.name,isSelected:!0,fatherCategories:F>0?[A]:[],idsByFatherCategory:{[k.category_father]:[M]}};if(F>0&&F===1&&(x.id=k.id_category),z&&F!==0){const R=k.group_id.charAt(k.group_id.length-1),Y=z.find(Q=>Q.groupId.endsWith(R));Y&&!n.includes(x.groupId)?(x=Y,Y.ids.push(M),Y.fatherCategories.push(A),Y.fatherCategories.forEach(Q=>{Q.childCategories?Q.childCategories.find(he=>he.groupId===x.groupId)||Q.childCategories.push(x):Q.childCategories=[x]}),Y.idsByFatherCategory[k.category_father]?Y.idsByFatherCategory[k.category_father].push(M):Y.idsByFatherCategory[k.category_father]=[M]):(x.fatherCategories.forEach(Q=>{Q.childCategories?Q.childCategories.find(he=>he.groupId===x.groupId)||Q.childCategories.push(x):Q.childCategories=[x]}),z.push(x))}else F!==0&&(A.childCategories?A.childCategories.push(x):A.childCategories=[x],z=[x],I.set(F,z));if(k.categories&&k.categories.length?k.categories.forEach(R=>{le(R,F+1,I,$,x,U)}):k.rival_categories&&k.rival_categories.length&&k.rival_categories.forEach(R=>{le(R,F+1,I,!0,x,U)}),F===0)return Array.from(I.values())}function de(k){const F=k||k;if(F.booleanIsBestPlays)return F.arrayCategoriesIds;const I={total:[],toRemove:[]};if(F.subcategoryGroups&&F.subcategoryGroups.length?F.subcategoryGroups[0].forEach(A=>{N(A,null,I)}):(F.ids&&I.total.push(...F.ids),F.rival_ids&&F.rival_ids.forEach($=>{I.total.push(`${$}_r`)})),I.total=I.total.reduce(($,A)=>(I.toRemove.includes(A)||$.push(A),$),[]),!k){const A=F.name.toLowerCase().includes("recibid");E.value.isRivalSubject=A,E.value.avoidCategorySingleName=A,E.value.coordinatePoint=F.coordinatePoint,E.value.requiresRivalTransform=F.requiresRivalTransform}return I.total}function N(k,F=[],I={total:[],toRemove:[]}){k.isSelected?k.childCategories?k.childCategories.forEach($=>{const A=F?Object.entries(k.idsByFatherCategory).reduce((U,[z,M])=>(F.includes(Number(z))&&M.forEach(x=>{typeof x=="string"&&x.endsWith("_r")?U.push(Number(x.split("_")[0])):U.push(x)}),U),[]):[k.id];N($,A,I)}):F?Object.entries(k.idsByFatherCategory).forEach(([$,A])=>{F.includes(Number($))&&A.forEach(U=>{I.total.push(U)})}):k.level===1?Object.entries(k.idsByFatherCategory).forEach(([$,A])=>{A.forEach(U=>{I.total.push(U)})}):I.total.push(k.id):k.childCategories||k.ids.forEach($=>{I.toRemove.push($)})}async function v(k){try{const F=await G({seasonId:k});return F.forEach(I=>{const[$,A]=I.player_name.split(","),U=$.split(" ");let z="";for(const M of U)if(z+=` ${M}`,M.length>3)break;I.shortName=A&&$?`${A.trim().charAt(0)}.${z}`:""}),F}catch(F){return Promise.reject(F)}}async function T(){try{const k={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Be.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:k})).data||[]}catch(k){return Promise.reject(k)}}function w(k){m.value=k}function Z(k){h.value=k,r.value=k.seasons[0]}function me(k){r.value=k}function pe(k){f.value=k}return C(),X(),(k,F)=>(e.openBlock(),e.createElementBlock("div",Nm,[e.createElementVNode("div",Bm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,I=>(e.openBlock(),e.createBlock(je,e.mergeProps({key:I.name},a,{text:I.name,"is-active":m.value.componentName===I.componentName,tournaments:d.value,onClick:$=>w(I)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",Fm,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value.componentName),{tournaments:d.value,"advanced-filter-categories":y.value,"onUpdate:tournament":Z,"onUpdate:season":me,"onUpdate:team":pe},null,40,["tournaments","advanced-filter-categories"]))])]))}}),[["__scopeId","data-v-d6f7aec8"]]),aa=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),ky="",$m={class:"template-taken-corners"},Am={class:"template-taken-corners__header"},Im={class:"template-taken-corners__header__all"},Pm={class:"template-taken-corners__body"},Mm={class:"template-taken-corners__body__players"},Rm={class:"template-taken-corners__body__players__player__jersey"},Dm={class:"template-taken-corners__body__players__player__photo"},Om={class:"template-taken-corners__body__players__player__photo__img"},Lm=["src"],zm={class:"template-taken-corners__body__players__player__info"},Um={class:"template-taken-corners__body__players__player__info__name"},Wm={class:"template-taken-corners__body__players__player__info__position"},Hm={class:"template-taken-corners__body__players__player__info__position__nationality"},Ym=["src"],Gm={class:"template-taken-corners__body__players__player__info__position__name"},jm={class:"template-taken-corners__body__players__player__checkbox"},qm=L({__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!1),s=e.ref([]),l=e.computed(()=>a.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),u=e.computed(()=>s.value.reduce((y,g)=>g.isSelected?y+1:y,0));e.watch(()=>a.takenCornersFilters,y=>{s.value=y.map(g=>{const E={...g};return(g.isSelected===void 0||g.isSelected===null)&&(E.isSelected=!0),E})},{immediate:!0,deep:!0}),e.watch(u,y=>{n.value=y===s.value.length,o("change-filters-selected",y),o("update:filters",s.value)},{immediate:!0});function c(y){return`https://golstatsimages.blob.core.windows.net/flags/${y}.jpg`}function d(y){return`https://golstatsimages.blob.core.windows.net/players-profile/${y}.png`}function m(y){let g=!1;return y.split(" ").reduce((C,P)=>(g||(P.length>3?(C=P,g=!0):C+=`${P} `),C),"").trim()}function r(y){return`${m(y.last_name)}, ${y.first_name.trim()}`}function h(y){return a.isFemale?aa.get(y.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):aa.get(y.positions[0])}function f(y){y?s.value.forEach(g=>{g.isSelected=!0}):s.value.forEach((g,E)=>{g.isSelected=E===0})}function _(){s.value.forEach(y=>{y.isSelected=!0})}return i({clearFilters:_}),(y,g)=>(e.openBlock(),e.createElementBlock("div",$m,[e.createElementVNode("div",Am,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",Im,[e.createVNode(e.unref(O),{"model-value":n.value,label:"Seleccionar todos","onUpdate:modelValue":f},null,8,["model-value"])])]),e.createElementVNode("div",Pm,[e.createElementVNode("div",Mm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,E=>(e.openBlock(),e.createElementBlock("div",{key:E.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",Rm,e.toDisplayString(E.jersey),1),e.createElementVNode("div",Dm,[e.createElementVNode("div",Om,[e.createElementVNode("img",{src:d(E.player_id),alt:"player photo",width:"36",height:"36"},null,8,Lm)])]),e.createElementVNode("div",zm,[e.createElementVNode("div",Um,e.toDisplayString(r(E)),1),e.createElementVNode("div",Wm,[e.createElementVNode("div",Hm,[e.createElementVNode("img",{src:c(E.nationality_id),alt:"country flag"},null,8,Ym)]),e.createElementVNode("div",Gm,e.toDisplayString(h(E)),1)])]),e.createElementVNode("div",jm,[e.createVNode(e.unref(O),{modelValue:E.isSelected,"onUpdate:modelValue":C=>E.isSelected=C,"avoid-interaction":u.value===1&&E.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},[["__scopeId","data-v-763fcc54"]]),ft={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},xy="",Wt=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),Zm={class:"template-how-was-corner"},Jm={class:"template-how-was-corner__header"},Km=Wt(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),Xm={class:"template-how-was-corner__header__radio-input"},Qm={class:"template-how-was-corner__header__radio-input__radio"},ep=Wt(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),tp={class:"template-how-was-corner__header__radio-input"},op={class:"template-how-was-corner__header__radio-input__radio"},ap=Wt(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),ip=["onClick"],sp={class:"template-how-was-corner__content__corner-type__img"},np=["src","alt"],lp={class:"template-how-was-corner__content__corner-type__info"},rp={class:"template-how-was-corner__content__corner-type__info__title"},dp=L({__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>ft},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const o=t,a=e.ref("left"),n=e.computed(()=>o.howWasCornerFilters[o.howWasCornerFilters.cornerType]),s=e.computed(()=>n.value.filter(u=>u.isSelected).length);e.watch(()=>a.value,u=>{o.howWasCornerFilters.cornerType=u}),e.watch(()=>o.howWasCornerFilters,u=>{i("change-filters-selected",o.howWasCornerFilters[u.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),a.value=u.cornerType,i("update:filters",u)},{deep:!0,immediate:!0});function l(u){u.isSelected&&s.value===1||(u.isSelected=!u.isSelected)}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Zm,[e.createElementVNode("div",Jm,[Km,e.createElementVNode("div",Xm,[e.createElementVNode("div",Qm,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d)},null,512),[[e.vModelRadio,a.value]]),ep])]),e.createElementVNode("div",tp,[e.createElementVNode("div",op,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>a.value=d)},null,512),[[e.vModelRadio,a.value]]),ap])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:r=>l(d)},[e.createElementVNode("div",sp,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,np)]),e.createElementVNode("div",lp,[e.createElementVNode("div",rp,e.toDisplayString(d.title),1)])],10,ip))),128))],2)]))}},[["__scopeId","data-v-b7e3b8e0"]]),qe=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],Vy="",ke=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),cp={class:"template-zone"},up={class:"controls-zone-container"},mp={class:"controls-zone-container-title-checkcon"},pp={class:"controls-zone-container-title-checkcon-check"},fp={class:"gsc-field-img-container"},hp={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yp=["fill"],_p=["fill"],gp=["fill"],Sp=["fill"],bp=["fill"],Cp=["fill"],kp=["fill"],Ep=["fill"],xp=["fill"],wp=["fill"],Vp=["fill"],Np=["fill"],Bp=["fill"],Fp=["fill"],Tp=["fill"],vp=["fill"],$p=["fill"],Ap=["fill"],Ip=["fill"],Pp=["fill"],Mp=["fill"],Rp=["fill"],Dp=["fill"],Op=["fill"],Lp=["fill"],zp=["fill"],Up=["fill"],Wp=["fill"],Hp=["fill"],Yp=["fill"],Gp=["fill"],jp=["fill"],qp=["fill"],Zp=["fill"],Jp=["fill"],Kp=ke(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),Xp=ke(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),Qp=["id"],ef=[ke(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1))],tf=["mask"],of=[ke(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1))],af=ke(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),sf=ke(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),nf={class:"template-zone__total-corners"},lf=[ke(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),ke(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1))],rf=L({__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...qe]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(!0),s=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(s,m=>{n.value=m.length===35}),e.watch(()=>a.zoneFilters,m=>{s.value=m},{immediate:!0,deep:!0}),e.watch(()=>s.value,m=>{o("update:filters",m),o("change-filters-selected",m.length)},{deep:!0});function u(m){m?(s.value=qe,n.value=!0):(s.value=[],n.value=!1)}function c(m){s.value.includes(m)?s.value=s.value.filter(r=>r!==m):s.value.push(m),n.value=s.value.length===35}function d(){s.value=[...qe]}return i({clearFilters:d}),(m,r)=>(e.openBlock(),e.createElementBlock("div",cp,[e.createElementVNode("div",up,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",mp,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",pp,[e.createVNode(e.unref(O),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":n.value,"onUpdate:modelValue":u},null,8,["model-value"])])])]),e.createElementVNode("div",fp,[(e.openBlock(),e.createElementBlock("svg",hp,[e.createElementVNode("rect",{onClick:r[0]||(r[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,yp),e.createElementVNode("rect",{onClick:r[1]||(r[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,_p),e.createElementVNode("rect",{onClick:r[2]||(r[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,gp),e.createElementVNode("rect",{onClick:r[3]||(r[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,Sp),e.createElementVNode("rect",{onClick:r[4]||(r[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,bp),e.createElementVNode("rect",{onClick:r[5]||(r[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,Cp),e.createElementVNode("rect",{onClick:r[6]||(r[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,kp),e.createElementVNode("rect",{onClick:r[7]||(r[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,Ep),e.createElementVNode("rect",{onClick:r[8]||(r[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,xp),e.createElementVNode("rect",{onClick:r[9]||(r[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,wp),e.createElementVNode("rect",{onClick:r[10]||(r[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,Vp),e.createElementVNode("rect",{onClick:r[11]||(r[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,Np),e.createElementVNode("rect",{onClick:r[12]||(r[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,Bp),e.createElementVNode("rect",{onClick:r[13]||(r[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,Fp),e.createElementVNode("rect",{onClick:r[14]||(r[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,Tp),e.createElementVNode("rect",{onClick:r[15]||(r[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,vp),e.createElementVNode("rect",{onClick:r[16]||(r[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,$p),e.createElementVNode("rect",{onClick:r[17]||(r[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,Ap),e.createElementVNode("rect",{onClick:r[18]||(r[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,Ip),e.createElementVNode("rect",{onClick:r[19]||(r[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,Pp),e.createElementVNode("rect",{onClick:r[20]||(r[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,Mp),e.createElementVNode("rect",{onClick:r[21]||(r[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,Rp),e.createElementVNode("rect",{onClick:r[22]||(r[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,Dp),e.createElementVNode("rect",{onClick:r[23]||(r[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,Op),e.createElementVNode("rect",{onClick:r[24]||(r[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,Lp),e.createElementVNode("rect",{onClick:r[25]||(r[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,zp),e.createElementVNode("rect",{onClick:r[26]||(r[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,Up),e.createElementVNode("rect",{onClick:r[27]||(r[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,Wp),e.createElementVNode("rect",{onClick:r[28]||(r[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,Hp),e.createElementVNode("rect",{onClick:r[29]||(r[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,Yp),e.createElementVNode("rect",{onClick:r[30]||(r[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,Gp),e.createElementVNode("rect",{onClick:r[31]||(r[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,jp),e.createElementVNode("rect",{onClick:r[32]||(r[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,qp),e.createElementVNode("rect",{onClick:r[33]||(r[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,Zp),e.createElementVNode("rect",{onClick:r[34]||(r[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:s.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,Jp),Kp,Xp,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},ef,8,Qp),e.createElementVNode("g",{mask:`url(#${l.value})`},of,8,tf),af,sf]))]),e.withDirectives(e.createElementVNode("div",nf,lf,512),[[e.vShow,!1]])]))}},[["__scopeId","data-v-378bf7e2"]]),ht=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],$y="",df={class:"what-happened"},cf={class:"what-happened__all"},uf={class:"what-happened__filters"},mf={key:0,class:"what-happened__filters__filter__composed"},pf={class:"what-happened__filters__filter__composed__main"},ff={key:1,class:"what-happened__filters__filter__single"},hf=L({__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...ht]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.computed(()=>a.whatHappenedFilters.reduce((f,_)=>(_.child?_.child.forEach(y=>{y.isSelected&&f++}):_.isSelected&&f++,f),0)),s=e.computed(()=>a.whatHappenedFilters.reduce((f,_)=>(_.child?f+=_.child.length:f++,f),0)),l=e.computed(()=>n.value===s.value),u=e.computed(()=>n.value===1);e.watch(()=>a.whatHappenedFilters,f=>{o("change-filters-selected",n.value),o("update:filters",f)},{deep:!0,immediate:!0});function c(f){a.whatHappenedFilters.forEach(_=>{f?(_.isSelected=f,_.child&&_.child.forEach(y=>{y.isSelected=f})):_.child?(_.isSelected=!0,_.child.forEach(y=>{y.isSelected=!0})):_.isSelected=!1})}function d(f,_){_.isSelected=f,_.child.forEach(y=>{y.isSelected=f})}function m(f,_,y){y.isSelected=f,_.isSelected=_.child.every(g=>g.isSelected)}function r(f,_){_.isSelected=f}function h(){a.whatHappenedFilters.forEach(f=>{f.child?f.child.forEach(_=>{_.isSelected=!0}):f.isSelected=!0})}return i({onResetFilters:h}),(f,_)=>(e.openBlock(),e.createElementBlock("div",df,[e.createElementVNode("div",cf,[e.createVNode(e.unref(O),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",uf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(y,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[y.child?(e.openBlock(),e.createElementBlock("div",mf,[e.createElementVNode("div",pf,[e.createVNode(e.unref(O),{"model-value":y.isSelected,label:t.isFemale?y.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):y.text,"avoid-interaction":u.value&&y.isSelected,"onUpdate:modelValue":E=>d(E,y)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.child,(E,C)=>(e.openBlock(),e.createElementBlock("div",{key:`c${C}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(O),{"model-value":E.isSelected,label:t.isFemale?E.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):E.text,"avoid-interaction":u.value&&E.isSelected,"onUpdate:modelValue":P=>m(P,y,E)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",ff,[e.createVNode(e.unref(O),{"model-value":y.isSelected,label:t.isFemale?y.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):y.text,"avoid-interaction":u.value&&y.isSelected,"onUpdate:modelValue":E=>r(E,y)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},[["__scopeId","data-v-8f375a1a"]]),yt={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Iy="",ia=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),yf={class:"template-results"},_f={class:"template-results__type-switch"},gf=ia(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),Sf=ia(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),bf={class:"template-results__info"},Cf={key:0,class:"template-results__group"},kf={key:1,class:"template-results__group"},Ef=L({__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...yt})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(null),s=e.computed(()=>{const c=n.value.isMoment?n.value.results.moment.filter(d=>d.isSelected).length:n.value.results.final.filter(d=>d.isSelected).length;return o("change-filters-selected",c),c}),l=e.computed(()=>n.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>a.resultsFilters,c=>{n.value===null&&(n.value={...c})},{deep:!0,immediate:!0}),e.watch(n,c=>{o("update:filters",c)},{deep:!0,immediate:!0});function u(){n.value.isMoment=!1,n.value.results.moment.forEach(c=>{c.isSelected=!0}),n.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:u}),(c,d)=>(e.openBlock(),e.createElementBlock("div",yf,[e.withDirectives(e.createElementVNode("div",_f,[gf,e.createVNode(Ge,{modelValue:n.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value.isMoment=m)},null,8,["modelValue"]),Sf],512),[[e.vShow,!n.value.isMomentOnly]]),e.createElementVNode("div",bf,e.toDisplayString(l.value),1),n.value.isMoment?(e.openBlock(),e.createElementBlock("div",Cf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.results.moment,(m,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:m.isSelected,"onUpdate:modelValue":h=>m.isSelected=h,label:m.name,"avoid-interaction":s.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",kf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.results.final,(m,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"template-results__result"},[e.createVNode(e.unref(O),{modelValue:m.isSelected,"onUpdate:modelValue":h=>m.isSelected=h,label:m.name,"avoid-interaction":s.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},[["__scopeId","data-v-ee3b28d3"]]),My="",xf={class:"years"},wf=["onClick"],Vf=L({__name:"TemplateYears",props:{years:{type:Array,default:()=>[]}},emits:["change-year"],setup(t,{emit:i}){function o(a){i("change-year",a)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",xf,[e.createVNode(Ie,{height:"200px"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"item",style:{padding:"5px 10px"},onClick:n[0]||(n[0]=s=>o(0))},"Sin límite"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.years,(s,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"item",style:{padding:"5px 10px"},onClick:u=>o(s)},e.toDisplayString(s),9,wf))),128))]),_:1})]))}},[["__scopeId","data-v-90979ff5"]]),Nf={class:"positions"},Bf={__name:"TemplatePositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-positions"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref(""),s=e.computed(()=>{let u=o.positions&&o.positions.length?[...o.positions]:[];const c=u[0];return(!c||c.id!==0)&&u.unshift(a),u.sort((d,m)=>d.id-m.id),u});e.watch(s,u=>{const c=u.filter(d=>d.isSelected);c.length===s.value.length-1&&(u[0].isSelected=!0),u[0]&&u[0].isSelected?n.value="Todas las posiciones":c.length===1?n.value=c[0].name:n.value=`${c.length} seleccionadas`,i("change-positions",u)},{immediate:!0,deep:!0});function l(u,c){c.id===0?s.value.forEach(d=>{d.isSelected=u}):(c.isSelected=u,s.value[0].isSelected=s.value.every((d,m)=>m===0?!0:d.isSelected))}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Nf,[e.createVNode(Ie,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,style:{padding:"5px 0"}},[e.createVNode(e.unref(O),{"model-value":d.isSelected,label:t.isFemale?d.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":r=>l(r,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},Ff={class:"nationalities"},Tf={__name:"TemplateNationalities",props:{nationalities:{type:Array,default:()=>[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-nationalities"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las nacionalidades",isSelected:!1},n=e.ref(""),s=e.computed(()=>{let u=o.nationalities&&o.nationalities.length?[...o.nationalities]:[],c=[];const d=u.find(h=>h.id===138),m=u.find(h=>h.id===0),r=u.filter(h=>h.id!==138);return r.sort((h,f)=>h.name.localeCompare(f.name)),d&&(c=[d,...r]),m||(c=[a,...c]),c});e.watch(s,u=>{const c=u.filter(m=>m.isSelected);c.length===s.value.length-1&&(u[0].isSelected=!0),u[0]&&u[0].isSelected?n.value="Todas las posiciones":c.length===1?n.value=c[0].name:n.value=`${c.length} seleccionadas`;const d=u.filter(m=>m.id!==0&&m.isSelected);i("change-nationality",d)},{immediate:!0,deep:!0});function l(u,c){c.id===0?s.value.forEach(d=>{u?d.isSelected=u:d.isSelected=d.id===138}):(c.isSelected=u,s.value[0].isSelected=s.value.every((d,m)=>m===0?!0:d.isSelected))}return(u,c)=>(e.openBlock(),e.createElementBlock("div",Ff,[e.createVNode(Ie,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,style:{padding:"5px 0"}},[e.createVNode(e.unref(O),{"model-value":d.isSelected,label:d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":r=>l(r,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},Dy="",vf=t=>(e.pushScopeId("data-v-ed1a65e4"),t=t(),e.popScopeId(),t),$f={class:"teams"},Af=vf(()=>e.createElementVNode("div",{class:"teams__header"},[e.createTextVNode(" No considerar partidos jugados vs "),e.createElementVNode("div",{class:"vertical-separator"})],-1)),If={class:"team-logo"},Pf=["src","alt"],Mf={class:"team-name"},Rf=L({__name:"TemplateTeams",props:{seasonsIds:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:o}){const a=t;e.ref(!1);const n=e.ref([]);e.computed(()=>n.value.filter(d=>d.isSelected).length),e.watch(()=>a.seasonsIds,async d=>{if(d)try{await s()}catch(m){console.error("Error fetching teams:",m)}},{immediate:!0}),e.watch(()=>n.value,d=>{const m=d.filter(r=>r.isSelected);o("change-filters-selected",m.length),o("update:filters",m)},{immediate:!0,deep:!0});async function s(){const d=new Set,m=[],r=a.seasonsIds.map(f=>l({seasonId:f}));(await Promise.all(r)).forEach(f=>{f.teams.forEach(_=>{d.has(_.id||_.team_id)||(d.add(_.id||_.team_id),m.push({..._,isSelected:!1}))})}),n.value=m}async function l({seasonId:d}){try{const m=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${d}`;return(await fetch(m,{headers:{Authorization:a.token}})).json()}catch(m){return Promise.reject(m)}}function u(d,m){m.isSelected=d}function c(){n.value.forEach(d=>{d.isSelected=!1})}return i({clearSelectedTeams:c}),(d,m)=>(e.openBlock(),e.createElementBlock("div",$f,[Af,e.createVNode(Ie,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id||r.team_id,class:"teams__team"},[e.createVNode(e.unref(O),{"model-value":r.isSelected,fontFamily:t.fontFamily,width:"fit-content","onUpdate:modelValue":h=>u(h,r)},null,8,["model-value","fontFamily","onUpdate:modelValue"]),e.createElementVNode("div",If,[e.createElementVNode("img",{src:r.logo,alt:r.colloquial_name,width:"24",height:"24"},null,8,Pf)]),e.createElementVNode("div",Mf,e.toDisplayString(r.colloquial_name),1)]))),128))]),_:1})]))}},[["__scopeId","data-v-ed1a65e4"]]),Ly="",Df={key:0,class:"productivity__header__text"},Of={key:0},Lf={key:1},zf={key:2},Uf={key:3},Wf={key:1,class:"productivity__header__checkbox"},Hf={class:"templates__body"},Yf={key:0,class:"templates-plays"},Gf={key:1,class:"templates-productivity"},jf={key:2,class:"template-field"},qf={key:3,class:"template-details"},Zf={key:4,class:"template-personal-data"},Jf={key:5,class:"template-leagues"},Kf={key:6,class:"template-teams"},Xf={key:7,class:"template-plays"},Qf={key:8,class:"template-plays"},e1={key:9,class:"template-universe"},t1={key:10,class:"template-distance"},o1={key:11,class:"template-results"},a1={key:12,class:"template-results-by-type"},i1={key:13,class:"template-games"},s1={key:14,class:"template-taken-corners"},n1={key:15,class:"template-videos"},l1={key:16,class:"template-how-was-corner"},r1={key:17,class:"template-zone"},d1={key:18,class:"template-what-happened"},c1={key:19,class:"template-position"},u1={key:20,class:"template-year"},m1={key:21,class:"template-nationalities"},p1={key:1,class:"templates__footer"},f1={class:"templates__footer__button"},h1={class:"templates__footer__button"},sa=L({__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},isEligibilityVisible:{type:Boolean,default:!0},positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},years:{type:Array,default:()=>Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t)},nationalities:{type:Array,default:()=>[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]},seasonsIds:{type:Array,default:()=>[]}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters","click-parameters"],setup(t,{expose:i,emit:o}){const a=t,n=e.ref(null),s=e.ref(null),l=e.ref(!1),u=e.ref({playingAs:a.playingAs,gameSections:a.gameSections,statisticType:a.statisticType}),c=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),m=e.ref(null),r=e.ref(null),h=e.ref(null),f=e.ref(null),_=e.computed(()=>({"--width":a.width,"--max-width":a.maxWidth,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.borderColor,"--border-width":a.borderWidth,"--box-shadow":a.boxShadow,"--padding":a.filterType!==p.VIDEOS?a.isExpansionMode?"10px 0":a.padding:"0","--footer-border-color":a.footerBorderColor,"--footer-border-width":a.footerBorderWidth,"--text-color":a.textColor})),y=e.computed(()=>{const b=[];return Array.isArray(a.productivityCategories)?a.productivityCategories.forEach(V=>{b.push(V)}):a.productivityCategories&&Object.values(a.productivityCategories).forEach(V=>{V.categories&&V.categories.forEach(J=>{b.push(J)})}),b}),g=e.computed(()=>{const b=[];return a.playsCategories&&Object.values(a.playsCategories).forEach(V=>{V.categories&&V.categories.forEach(J=>{b.push(J)})}),b}),E=e.computed(()=>{const b=y.value.filter(V=>V.isSelected);return G(b),a.filterType===p.PRODUCTIVITY&&o("change-categories-selected",b.length),b.length}),C=e.computed(()=>!a.isForTemplateForm&&E.value>=a.productivityMaxCategories),P=e.computed(()=>!a.isForTemplateForm&&E.value<=a.productivityMinCategories),q=e.computed(()=>a.isPlayingAsHidden?a.gameSections:a.playingAs.concat(a.gameSections));e.watch(u,b=>{a.filterType===p.DETAILS&&o("update:filters",b)},{immediate:!0,deep:!0}),e.watch(()=>q.value,b=>{if(a.filterType===p.DETAILS){const V=b.filter(J=>J.isSelected);o("change-filters-selected",V.length)}},{immediate:!0,deep:!0}),e.watch(()=>a.playsGolstatsCategories,b=>{if(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS){const V=b.filter(J=>J.isSelected);o("change-filters-selected",V.length)}},{immediate:!0}),e.watch(()=>a.fieldAreas,b=>{a.filterType===p.FIELD&&o("change-filters-selected",b.length)}),e.watch(g,()=>{a.filterType===p.PLAYS&&T()},{immediate:!0,deep:!0}),e.watch(y,()=>{a.filterType===p.PRODUCTIVITY&&w()},{immediate:!0,deep:!0}),e.watch(()=>a.resultsFilters,b=>{a.filterType===p.RESULTS&&o("change-filters-selected",b.results.filter(V=>V.isSelected).length)},{immediate:!0,deep:!0});function G(b){setTimeout(()=>{b.sort((V,J)=>V.priority-J.priority),b.forEach((V,J)=>{V.priority=J+1})},10)}function te(b=null){oe(b)}function oe(b=null){a.filterType===p.PRODUCTIVITY?y.value.forEach(V=>{V.isSelected=V.isDefault||!1}):a.filterType===p.PLAYS?(g.value.forEach(V=>{V.isSelected=!0}),l.value=!0):a.filterType===p.FIELD?o("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):a.filterType===p.DETAILS?(a.playingAs.forEach(V=>{V.isSelected=!0}),a.gameSections.forEach(V=>{V.isSelected=!0})):a.filterType===p.TOURNAMENTS?(a.tournaments.forEach((V,J)=>{a.isOneTournamentOnly?V.isSelected=J===0:V.isSelected=!0}),o("change-filters-selected",0)):a.filterType===p.PLAYS_TYPES?a.playsGolstatsCategories.forEach(V=>{V.isSelected=!0}):a.filterType===p.GOLSTATS?a.playsGolstatsCategories.forEach(V=>{V.isSelected=!1}):a.filterType===p.UNIVERSE?d.value&&d.value.resetFilters():a.filterType===p.PERSONAL_DATA?(s.value&&s.value.onClearFilters(b||be.All),o("change-personal-data-filters",{})):a.filterType===p.DISTANCE?o("update:filters",{minValue:a.distanceFilters.minLimit,maxValue:a.distanceFilters.maxLimit}):a.filterType===p.RESULTS?o("update:filters",{results:a.resultsFilters.results.map(V=>(V.isSelected=!0,V))}):a.filterType===p.RESULTS_BY_TIME?f.value&&f.value.removeFilters():a.filterType===p.GAMES?a.gamesFilters.forEach(V=>{V.isSelected=!0}):a.filterType===p.TAKEN_CORNERS?m.value.clearFilters():a.filterType===p.HOW_WAS_CORNER?(a.howWasCornerFilters.left.forEach(V=>{V.isSelected=!0}),a.howWasCornerFilters.right.forEach(V=>{V.isSelected=!0})):a.filterType===p.ZONE?r.value&&r.value.clearFilters():a.filterType===p.WHAT_HAPPENED?h.value&&h.value.onResetFilters():a.filterType===p.NATIONALITIES?a.nationalities.forEach(V=>{V.isSelected=!0}):a.filterType===p.TEAMS&&n.value&&n.value.clearSelectedTeams()}function X(b){a.filterType===p.UNIVERSE&&o("change-universe-filters",b)}function le(b){a.filterType===p.FIELD&&o("change-field-areas",b)}function de(b){a.filterType===p.GOLSTATS&&o("change-filters-selected",b)}function N(b){o("change-filters-selected",b)}function v(b){a.filterType===p.PRODUCTIVITY?y.value.forEach(V=>{V.isSelected=b}):(l.value=b,a.playsCategories.offensive.categories.forEach(V=>{V.isSelected=b}),a.playsCategories.defensive.categories.forEach(V=>{V.isSelected=b}),a.playsCategories.possession.categories.forEach(V=>{V.isSelected=b}),a.playsCategories.offenses.categories.forEach(V=>{V.isSelected=b}))}function T(){let b=0;const V={playsCategories:g.value.filter(J=>J.isSelected)};l.value=V.playsCategories.length===g.value.length,b=V.playsCategories.length,Object.values(c.value).forEach(J=>{J&&b++}),o("change-filters-selected",b),o("update:filters",V)}function w(){let b=0;const V={productivityFilters:y.value.filter(J=>J.isSelected),offensesConditions:c.value};b=V.productivityFilters.length,Object.values(c.value).forEach(J=>{J&&b++}),o("change-filters-selected",b),o("update:filters",V)}function Z(b){o("click-parameters",b)}function me(){o("apply")}function pe(){(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS)&&a.playsGolstatsCategories&&a.playsGolstatsCategories.forEach(b=>{b.isSelected=!1}),a.filterType===p.PRODUCTIVITY&&y.value.forEach(b=>{b.isSelected=!1}),o("apply")}function k(b){o("update:filters",b)}function F(b){a.filterType===p.POSITIONS&&o("update:filters",b)}function I(b){a.filterType===p.YEARS&&o("update:filters",b)}function $(b){a.filterType===p.NATIONALITIES&&o("update:filters",b)}function A(b){a.filterType===p.PERSONAL_DATA&&o("update:filters",b)}function U(b){a.filterType===p.TOURNAMENTS&&o("change-filters-selected",b)}function z(b){a.filterType===p.TOURNAMENTS&&o("update:filters",b)}function M(b){a.filterType===p.TEAMS&&o("change-filters-selected",b)}function x(b){a.filterType===p.TEAMS&&o("update:filters",b)}function R(b){(a.filterType===p.PLAYS_TYPES||a.filterType===p.GOLSTATS)&&o("update:filters",b)}function Y(b){a.filterType===p.PRODUCTIVITY&&(c.value=b,w())}function Q(b){a.filterType===p.DISTANCE&&o("update:filters",b)}function fe(b){a.filterType===p.RESULTS&&o("update:filters",b)}function he(b){a.filterType===p.GAMES&&(o("update:filters",b),o("change-filters-selected",b.filter(V=>V.isSelected).length))}function Le(b){u.value.statisticType=b}const B=e.computed(()=>a.filterType===p.PLAYS?g.value.length:a.filterType===p.PRODUCTIVITY?y.value.length:a.filterType===p.FIELD?16:a.filterType===p.UNIVERSE?6:a.filterType===p.DETAILS?8:a.filterType===p.RESULTS||a.filterType===p.RESULTS_BY_TIME?3:a.filterType===p.GAMES?a.gamesFilters.length:0);return o("total-filters",B),i({clearFilters:te}),(b,V)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(_.value)},[t.filterType===e.unref(p).PRODUCTIVITY||t.filterType===e.unref(p).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(p).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Df,[t.productivityText?(e.openBlock(),e.createElementBlock("div",Of,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",Lf,[e.createTextVNode(" Elige tipo de jugadas: "),e.createElementVNode("span",null,"mínimo "+e.toDisplayString(t.productivityMinCategories)+" categorías y máximo "+e.toDisplayString(t.productivityMaxCategories),1)])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",zf,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",Uf,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Wf,[e.createVNode(e.unref(O),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":v},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Hf,[t.filterType===e.unref(p).PLAYS?(e.openBlock(),e.createElementBlock("div",Yf,[e.createVNode(Zd,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Gf,[e.createVNode(si,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":E.value,"are-max-categories-reached":C.value,"are-min-categories-reached":P.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":Y,onClickParameters:Z},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).FIELD?(e.openBlock(),e.createElementBlock("div",jf,[e.createVNode(e.unref(lo),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":le}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).DETAILS?(e.openBlock(),e.createElementBlock("div",qf,[e.createVNode(Pi,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:Le},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Zf,[e.createVNode(Ad,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"is-eligibility-visible":t.isEligibilityVisible,"onUpdate:filters":A},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters","is-eligibility-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",Jf,[e.createVNode(Oi,{"tournaments-url":t.tournamentsUrl,token:t.token,tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:U,"onUpdate:filters":z},null,8,["tournaments-url","token","tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TEAMS?(e.openBlock(),e.createElementBlock("div",Kf,[e.createVNode(Rf,{ref_key:"templateTeams",ref:n,"seasons-ids":t.seasonsIds,onChangeFiltersSelected:M,"onUpdate:filters":x},null,8,["seasons-ids"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Xf,[e.createVNode(Gt,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":R},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Qf,[e.createVNode(Gt,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:de,"onUpdate:filters":R},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).UNIVERSE?(e.openBlock(),e.createElementBlock("div",e1,[e.createVNode(Ps,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":X},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).DISTANCE?(e.openBlock(),e.createElementBlock("div",t1,[e.createVNode(tn,{distance:t.distanceFilters,"onUpdate:distanceFilters":Q},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).RESULTS?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(Kd,{ref_key:"templateResults",ref:f,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":fe},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",a1,[e.createVNode(Ef,{ref_key:"templateResults",ref:f,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:N,"onUpdate:filters":k},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).GAMES?(e.openBlock(),e.createElementBlock("div",i1,[e.createVNode(rn,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":he},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",s1,[e.createVNode(qm,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:m,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":k},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).VIDEOS?(e.openBlock(),e.createElementBlock("div",n1,[e.createVNode(vm,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",l1,[e.createVNode(dp,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":k},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).ZONE?(e.openBlock(),e.createElementBlock("div",r1,[e.createVNode(rf,{ref_key:"templateZone",ref:r,"zone-filters":t.zoneFilters,onChangeFiltersSelected:N,"onUpdate:filters":k},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",d1,[e.createVNode(hf,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:h,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:N,"onUpdate:filters":k},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).POSITIONS?(e.openBlock(),e.createElementBlock("div",c1,[e.createVNode(Bf,{positions:t.positions,onChangePositions:F},null,8,["positions"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).YEARS?(e.openBlock(),e.createElementBlock("div",u1,[e.createVNode(Vf,{years:t.years,onChangeYear:I},null,8,["years"])])):e.createCommentVNode("",!0),t.filterType===e.unref(p).NATIONALITIES?(e.openBlock(),e.createElementBlock("div",m1,[e.createVNode(Tf,{nationalities:t.nationalities,onChangeNationality:$},null,8,["nationalities"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",p1,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Ze),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:pe})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",f1,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Ze),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:pe})):(e.openBlock(),e.createBlock(e.unref(Ze),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:oe}))]),e.createElementVNode("div",h1,[e.createVNode(e.unref(Ze),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:me})])],64))])):e.createCommentVNode("",!0)],4))}},[["__scopeId","data-v-efc03862"]]),y1=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},_1={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t;e.useCssVars(f=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const a=e.ref(null),n=e.ref(!1),s=e.ref(null),l=e.ref({}),u=e.computed(()=>{const f={top:"0px","--left-menu":o.leftMenu};if(a.value){const _=a.value.getBoundingClientRect();f.top=`${_.height+o.menuMarginTop}px`}return f}),c=e.computed(()=>n.value?o.zIndexOpen:1);e.watch(()=>o.modelValue,f=>{f!==n.value&&(n.value=f)},{immediate:!0}),e.watch(n,f=>{f||setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(f){const _=window.innerWidth,y=f.boundingClientRect.x,g=f.boundingClientRect.x+f.boundingClientRect.width,E=y<=0?Math.abs(y)+4:g>=_?_-(g+10):0;l.value["--translate-x"]=`${E}px`}function m(){new IntersectionObserver(f=>{f[0].intersectionRatio>0&&d(f[0])}).observe(s.value)}function r(){n.value=!n.value,i("update:modelValue",n.value)}function h(){n.value=!1,i("update:modelValue",n.value)}return e.onMounted(()=>{e.nextTick(()=>{m()})}),(f,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:a,class:"menu-container__trigger",onClick:r},[e.renderSlot(f.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:s,class:"menu-container__menu",style:e.normalizeStyle(u.value)},[e.renderSlot(f.$slots,"menu",{},void 0,!0)],4),[[e.vShow,n.value]])]),_:3})],4)],64))}},g1=y1(_1,[["__scopeId","data-v-18c0df61"]]),Uy="",$e=t=>(e.pushScopeId("data-v-d5ddc1ae"),t=t(),e.popScopeId(),t),S1={key:0,class:"button__icon"},b1={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C1=["stroke"],k1=["stroke"],E1=["stroke"],x1={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w1=["stroke"],V1=["stroke"],N1=["fill"],B1={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F1=["fill"],T1={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v1=["stroke"],$1=["stroke"],A1=["stroke"],I1=["stroke"],P1=["stroke"],M1={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R1=[$e(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1))],D1={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},O1=[$e(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1))],L1={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},z1=[$e(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1))],U1={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W1=[$e(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),$e(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),$e(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),$e(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1))],H1={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y1=[e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-d5ddc1ae><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-d5ddc1ae></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-d5ddc1ae></path></g><defs data-v-d5ddc1ae><clipPath id="gpdeo9cu3a" data-v-d5ddc1ae><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-d5ddc1ae></path></clipPath></defs>',2)],G1={class:"button__text"},j1={key:0,class:"info-container"},q1={key:1,style:{width:"20px"}},Z1={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J1=["fill"],K1=L({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,o=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),a=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),n=e.computed(()=>[p.PLAYS_TYPES,p.GOLSTATS,p.TOURNAMENTS,p.PLAYS,p.RESULTS,p.RESULTS_BY_TIME].includes(i.iconType)),s=e.computed(()=>[p.FIELD,p.GAMES].includes(i.iconType)),l=e.computed(()=>[p.DETAILS,p.UNIVERSE].includes(i.iconType)),u=e.computed(()=>[p.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[p.PRODUCTIVITY].includes(i.iconType)),d=e.computed(()=>[p.HOW_WAS_CORNER].includes(i.iconType)),m=e.computed(()=>[p.TAKEN_CORNERS].includes(i.iconType)),r=e.computed(()=>[p.ZONE].includes(i.iconType)),h=e.computed(()=>[p.WHAT_HAPPENED].includes(i.iconType));return(f,_)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(o.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",S1,[u.value?(e.openBlock(),e.createElementBlock("svg",b1,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,C1),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,k1),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,E1)])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("svg",x1,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,w1),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,V1),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,N1)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",B1,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,F1)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",T1,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,v1),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,$1),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,A1),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,I1),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,P1)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",M1,R1)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",D1,O1)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",L1,z1)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",U1,W1)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",H1,Y1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",G1,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",j1,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(a.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!==parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(a.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",q1)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",Z1,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,J1)]))],2)],4))}},[["__scopeId","data-v-d5ddc1ae"]]),X1=(t,i)=>{const o=t.__vccOpts||t;for(const[a,n]of i)o[a]=n;return o},Q1=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),eh={class:"panel__activator__icon"},th=["src"],oh={class:"panel__activator__text"},ah=["height","width"],ih=["stroke"],sh={class:"panel__content"},nh=Q1(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),lh={class:"panel__content__slot"},rh={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const o=t,a=e.ref(o.modelValue),n=e.computed(()=>({"--activator-height":o.height,"--activator-text-font-family":o.textFontFamily,"--activator-text-font-size":o.textFontSize,"--activator-text-color":o.textColor,"--background-color":o.backgroundColor,"--panel-width":o.width,"--panel-padding":o.panelPadding,"--panel-border-radius":o.borderRadius,"--panel-border-color":o.borderColor,"--panel-border-width":o.borderWidth,"--arrow-height":o.arrowHeight,"--arrow-width":o.arrowWidth,"--separator-width":o.separatorWidth,"--separator-color":o.separatorColor}));e.watch(()=>o.modelValue,l=>{a.value=l},{immediate:!0});function s(){a.value=!a.value,i("update:modelValue",a.value)}return(l,u)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:s},[e.createElementVNode("div",eh,[o.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.icon,alt:""},null,8,th)):e.createCommentVNode("",!0)]),e.createElementVNode("div",oh,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":a.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,ih)],8,ah))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sh,[nh,e.createElementVNode("div",lh,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,a.value]])]),_:3})],4))}},dh=X1(rh,[["__scopeId","data-v-0ca35abc"]]),ne={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},na={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},la={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},ra={minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},da=[{name:"Sub-20",logo:null,isSelected:!1,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!1,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!1,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!1,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!1,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!1,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!1,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!1,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!1,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],ca=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],ua=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],ch={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Ht={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},Xy="",uh={class:"filters"},mh={key:0,class:"filters__expansion"},ph={class:"content"},fh={key:1,class:"filters__menus"},hh=L({__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},tournamentsUrl:{type:String,default:""},dropdownProps:{type:Object,default:()=>null},selectedYear:{type:[Number,String],default:0}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:i,emit:o}){const a=t;e.useCssVars(B=>({f37314ea:t.width}));const n={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PRODUCTIVITY,isFooterVisible:!0},s={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.FIELD,isFooterVisible:!0},u={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TOURNAMENTS,isFooterVisible:!0},d={width:"fit-content",maxWidth:"fit-content",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TOURNAMENTS,isFooterVisible:!0},m={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.POSITIONS,isFooterVisible:!0},r={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.YEARS,isFooterVisible:!0},h={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.NATIONALITIES,isFooterVisible:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PERSONAL_DATA,isFooterVisible:!0},_={width:"310px",modalHeight:a.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"380px",modalHeight:a.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},g={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.UNIVERSE,isFooterVisible:!0},E={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.DISTANCE,isFooterVisible:!0},C={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.RESULTS,padding:"0",isFooterVisible:!0},P={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},q={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.VIDEOS,isFooterVisible:!1},G={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.GAMES,isFooterVisible:!0},te={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.TAKEN_CORNERS,isFooterVisible:!0},oe={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.HOW_WAS_CORNER,isFooterVisible:!0},X={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.ZONE,isFooterVisible:!0},le={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:p.WHAT_HAPPENED,isFooterVisible:!0},de=e.ref(!1),N=e.ref(!1),v=e.ref(0),T=e.ref(0),w=e.ref({}),Z=e.ref(null),me=e.ref(null),pe=e.ref("Universo"),k=e.ref(""),F=e.ref(""),I=e.computed(()=>a.isForTemplateForm?"0":"unset"),$=e.computed(()=>a.isFromTemplates?p.RESULTS:a.filterType),A=e.ref(null);e.watch(()=>a.filterType,B=>{if(B===p.PRODUCTIVITY)w.value={...n,...a.templateProps,productivityCategories:a.filters||na};else if(B===p.PLAYS)w.value={...s,...a.templateProps,fontFamily:a.buttonFilterProps?a.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:a.filters||la};else if(B===p.FIELD)w.value={...l,...a.templateProps,fieldComponentProps:a.fieldComponentProps,fieldAreas:a.filters||[]};else if(B===p.DETAILS)w.value={...u,...a.templateProps,isPlayingAsHidden:a.filters?a.filters.isPlayingAsHidden:ne.isPlayingAsHidden,playingAs:a.filters&&a.filters.playingAs||ne.playingAs,gameSections:a.filters&&a.filters.gameSections||ne.gameSections,statisticType:a.filters?a.filters.statisticType:ne.statisticType,isStatisticTypeVisible:a.filters?a.filters.isStatisticTypeVisible:ne.isStatisticTypeVisible};else if(B===p.TOURNAMENTS){const b=a.filters||da;a.isOneTournamentOnly&&b.forEach(V=>{V.isSelected=V.id===a.defaultTournamentId}),w.value={...c,...a.templateProps,tournaments:b}}else B===p.TEAMS?w.value={...d,...a.templateProps,seasonsIds:a.filters||[]}:B===p.PERSONAL_DATA?w.value={...f,...a.templateProps,token:a.token,awaitForFilters:a.awaitForFilters,personalDataFilters:a.filters}:B===p.PLAYS_TYPES?w.value={..._,...a.templateProps,playsGolstatsCategories:a.filters||ca}:B===p.GOLSTATS?w.value={...y,...a.templateProps,playsGolstatsCategories:a.filters||ua}:B===p.UNIVERSE?w.value={...g,...a.templateProps,universeFilters:a.filters||ra}:B===p.DISTANCE?w.value={...E,...a.templateProps,distanceFilters:a.filters||ch}:B===p.RESULTS?w.value={...C,...a.templateProps,resultsFilters:a.filters||Ht}:B===p.RESULTS_BY_TIME?w.value={...P,...a.templateProps,resultsByTimeFilters:a.filters||yt}:B===p.GAMES?w.value={...G,...a.templateProps,gamesFilters:a.filters||[]}:B===p.VIDEOS?w.value={...q,...a.templateProps,token:a.token}:B===p.TAKEN_CORNERS?w.value={...te,...a.templateProps,takenCornersFilters:a.filters||[]}:B===p.HOW_WAS_CORNER?w.value={...oe,...a.templateProps,howWasCornerFilters:a.filters||ft}:B===p.ZONE?w.value={...X,...a.templateProps,zoneFilters:a.filters||[...qe]}:B===p.WHAT_HAPPENED?w.value={...le,...a.templateProps,whatHappenedFilters:a.filters||[...ht]}:B===p.POSITIONS?w.value={...m,...a.templateProps,positions:a.filters||[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]}:B===p.YEARS?w.value={...r,...a.templateProps,years:a.filters||Array.from({length:30},(b,V)=>1981+V).sort((b,V)=>V-b)}:B===p.NATIONALITIES&&(w.value={...h,...a.templateProps,nationalities:a.filters||[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]});w.value.isExpansionMode=a.isExpansionPanel,a.isExpansionPanel&&(w.value.width="100%",w.value.maxWidth="100%"),U()},{immediate:!0}),e.watch(()=>a.filters,()=>{if(a.filterType===p.PRODUCTIVITY)w.value={...n,...a.templateProps,productivityCategories:a.filters};else if(a.filterType===p.PLAYS)w.value={...s,...a.templateProps,playsCategories:a.filters};else if(a.filterType===p.FIELD)w.value={...l,...a.templateProps,fieldComponentProps:a.fieldComponentProps,fieldAreas:a.filters};else if(a.filterType===p.DETAILS)w.value={...u,...a.templateProps,isPlayingAsHidden:a.filters?a.filters.isPlayingAsHidden:ne.isPlayingAsHidden,playingAs:a.filters?a.filters.playingAs:ne.playingAs,gameSections:a.filters?a.filters.gameSections:ne.gameSections,statisticType:a.filters?a.filters.statisticType:ne.statisticType,isStatisticVisible:a.filters?a.filters.isStatisticVisible:ne.isStatisticVisible};else if(a.filterType===p.TOURNAMENTS){const B=a.filters;a.isOneTournamentOnly&&B.forEach(b=>{b.isSelected=b.id===a.defaultTournamentId}),w.value={...c,...a.templateProps,tournaments:B}}else a.filterType===p.TEAMS?w.value={...d,...a.templateProps,seasonsIds:a.filters||[]}:a.filterType===p.PERSONAL_DATA?w.value={...f,...a.templateProps,token:a.token,awaitForFilters:a.awaitForFilters,personalDataFilters:a.filters}:a.filterType===p.PLAYS_TYPES?w.value={..._,...a.templateProps,playsGolstatsCategories:a.filters}:a.filterType===p.GOLSTATS?w.value={...y,...a.templateProps,playsGolstatsCategories:a.filters}:a.filterType===p.UNIVERSE?w.value={...g,...a.templateProps,universeFilters:a.filters}:a.filterType===p.DISTANCE?w.value={...E,...a.templateProps,distanceFilters:a.filters}:a.filterType===p.RESULTS?w.value={...C,...a.templateProps,resultsFilters:a.filters||Ht}:a.filterType===p.RESULTS_BY_TIME?w.value={...P,...a.templateProps,resultsByTimeFilters:a.filters||yt}:a.filterType===p.GAMES?w.value={...G,...a.templateProps,gamesFilters:a.filters}:a.filterType===p.VIDEOS?w.value={...q,...a.templateProps,token:a.token}:a.filterType===p.TAKEN_CORNERS?w.value={...te,...a.templateProps,takenCornersFilters:a.filters||[]}:a.filterType===p.HOW_WAS_CORNER?w.value={...oe,...a.templateProps,howWasCornerFilters:a.filters||ft}:a.filterType===p.ZONE?w.value={...X,...a.templateProps,zoneFilters:a.filters||[...qe]}:a.filterType===p.WHAT_HAPPENED?w.value={...le,...a.templateProps,whatHappenedFilters:a.filters||[...ht]}:a.filterType===p.POSITIONS?w.value={...m,...a.templateProps,positions:a.filters||[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]}:a.filterType===p.YEARS?w.value={...r,...a.templateProps,years:a.filters||Array.from({length:30},(B,b)=>1981+b).sort((B,b)=>b-B)}:a.filterType===p.NATIONALITIES&&(w.value={...h,...a.templateProps,nationalities:a.filters||[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}]});w.value.isExpansionMode=a.isExpansionPanel,a.isExpansionPanel&&(w.value.width="100%",w.value.maxWidth="100%")}),e.watch(de,B=>{B||o("close",A.value)}),e.watch(N,B=>{B||o("close",A.value)});function U(){k.value=a.filterType===p.UNIVERSE&&a.showUniverseTime?pe.value:a.buttonFilterProps&&a.buttonFilterProps.text?a.buttonFilterProps.text:a.menuButtonText||x(),F.value=a.expansionPanelText||x()}function z(B){v.value=B}function M(){a.isExpansionPanel?N.value=!1:de.value=!1,o("apply",A.value)}function x(){if(a.filterType===p.PRODUCTIVITY)return a.isFromTemplates?"Tipos de jugadas":"Características de juego";if(a.filterType===p.PLAYS)return"Jugada(s)";if(a.filterType===p.FIELD)return"Zona de cancha";if(a.filterType===p.DETAILS)return"Detalles";if(a.filterType===p.TEAMS)return"Equipos";if(a.filterType===p.TOURNAMENTS)return"Ligas";if(a.filterType===p.PERSONAL_DATA)return"Datos personales";if(a.filterType===p.PLAYS_TYPES)return"Tipos de jugada";if(a.filterType===p.GOLSTATS)return"Filtros Golstats";if(a.filterType===p.UNIVERSE)return`Estadísticas ${A.value&&A.value.statisticsRadios==="total"?"totales":"cada 90 min"}`;if(a.filterType===p.DISTANCE)return"Distancia";if([p.RESULTS,p.RESULTS_BY_TIME].includes(a.filterType))return"Resultados";if(a.filterType===p.GAMES)return"Partidos";if(a.filterType===p.VIDEOS)return"Videos";if(a.filterType===p.TAKEN_CORNERS)return"¿Quién cobró?";if(a.filterType===p.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(a.filterType===p.ZONE)return"Zona";if(a.filterType===p.WHAT_HAPPENED)return"¿Qué sucedió?";if(a.filterType===p.POSITIONS){const B=A.value?A.value.find(V=>V.id===0):null;if(B&&B.isSelected)return B.name;const b=A.value?A.value.filter(V=>V.isSelected&&V.id!==0):[];return b.length===1?b[0].name:`${b.length} nacionalidades`}else{if(a.filterType===p.YEARS)return`Año ${A.value||a.selectedYear}`;if(a.filterType===p.NATIONALITIES){const B=A.value?A.value.length:a.filters.length;return a.filters.length===B?"Todas las nacionalidades":B===1?A.value[0].name:`${B} nacionalidades`}}}function R(B){o("click-parameters",B)}function Y(B){w.value.fieldAreas=B,v.value=B.length,fe(B)}function Q(B){let b=0;B.value&&B.value.statistics&&(B.value.minutesPlayed&&b++,B.value.percentMinutesPlayed&&b++,B.value.lastMonths&&b++,B.value.statistics.totals&&b++,B.value.statistics.averagePerGame&&b++,B.value.statistics.averagePerMinute&&b++),a.showUniverseTime&&(pe.value=`Durante los últimos ${B.value.lastMonths} meses`),w.value.universe=B.value,v.value=b,fe(B.value)}function fe(B){A.value=B,U(),o("update:filters",B)}function he(B){T.value=B}function Le(B=null){Z.value&&Z.value.clearFilters(B),me.value&&me.value.clearFilters(B)}return i({clearFilters:Le}),(B,b)=>(e.openBlock(),e.createElementBlock("div",uh,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",mh,[e.createVNode(e.unref(dh),e.mergeProps(t.expansionPanelProps,{modelValue:N.value,"onUpdate:modelValue":b[0]||(b[0]=V=>N.value=V),text:F.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+a.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",ph,[e.createVNode(sa,e.mergeProps(w.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateExpansionPanel",ref:me,onChangeFieldAreas:Y,onChangeCategoriesSelected:z,onChangeFiltersSelected:z,onChangeUniverseFilters:Q,onApply:M,"onUpdate:filters":fe,onTotalFilters:he,onClickParameters:R}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",fh,[e.createVNode(e.unref(g1),{modelValue:de.value,"onUpdate:modelValue":b[1]||(b[1]=V=>de.value=V),width:t.width,"left-menu":I.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(K1,e.mergeProps(t.buttonFilterProps,{text:k.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":v.value,"filters-total":T.value.value,"is-active":de.value,"icon-type":$.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(sa,e.mergeProps(w.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateMenu",ref:Z,onChangeFieldAreas:Y,onChangeCategoriesSelected:z,onChangeFiltersSelected:z,onChangeUniverseFilters:Q,"onUpdate:filters":fe,onTotalFilters:he,onApply:M,onClickParameters:R}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},[["__scopeId","data-v-44274796"]]),e2="",yh={class:"dropdown__position"},_h={key:0,class:"label"},gh={class:"selected-position"},Sh=L({__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const o=t,a={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref(""),s=e.computed(()=>{const c={...ge};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(d=>{c[d]=o.dropdownProps[d]}),c}),l=e.computed(()=>{let c=o.positions&&o.positions.length?[...o.positions]:[];const d=c[0];return(!d||d.id!==0)&&c.unshift(a),c.sort((m,r)=>m.id-r.id),c});e.watch(l,c=>{const d=c.filter(m=>m.isSelected);d.length===l.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?n.value="Todas las posiciones":d.length===1?n.value=d[0].name:n.value=`${d.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function u(c,d){d.id===0?l.value.forEach(m=>{m.isSelected=c}):(d.isSelected=c,l.value[0].isSelected=l.value.every((m,r)=>r===0?!0:m.isSelected))}return(c,d)=>(e.openBlock(),e.createElementBlock("div",yh,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",_h,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(re),e.mergeProps(s.value,{"is-multiple-option":"",items:l.value}),{default:e.withCtx(()=>[e.createElementVNode("div",gh,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.value),1)],64))])]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(O),{"model-value":m.isSelected,label:t.isFemale?m.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):m.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":r=>u(r,m)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},[["__scopeId","data-v-c810bd0a"]]),ma={offensive:{title:"Ofensivo",categories:[{name:"Goles",abbreviation:"Goles",isSelected:!0,id:[12,55],isDefault:!0},{name:"Asistencias",abbreviation:"Asist",isSelected:!0,id:[10],isDefault:!0},{name:"Participaciones en gol",abbreviation:"Part en Gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",abbreviation:"Cab área/riv",isSelected:!1,id:[328]},{name:"Tiros a gol totales",abbreviation:"Tiros/g tot",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",abbreviation:"Tiros/g dest",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",abbreviation:"Tir/g/f/a",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",abbreviation:"Tir/g/f/a/d",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",abbreviation:"Tir/g/d/área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",abbreviation:"Tir/g/d/a/d",isSelected:!1,id:[91]},{name:"Centros por izquierda",abbreviation:"Centros izq",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",abbreviation:"Cent izq/dest",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",abbreviation:"Centros der",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",abbreviation:"Cent der/dest",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",abbreviation:"1vs1 ofens",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",abbreviation:"1vs1 of/gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Balones ganados en área propia",abbreviation:"Bal gan a/pr",isSelected:!0,id:[23],isDefault:!0},{name:"Cabeceo en área propia",abbreviation:"Cab área/pr",isSelected:!1,id:[231,238,280,287,294,406]},{name:"1vs1 defensivos exitosos",abbreviation:"1vs1 defens",isSelected:!0,id:[5],isDefault:!0},{name:"Rechaces",abbreviation:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Balones recuperados totales",abbreviation:"Recup total",isSelected:!0,id:[222,223,224,225],isDefault:!0},{name:"Balones recuperados 1/4 de cancha",abbreviation:"Recup 1/4",isSelected:!1,id:[222]},{name:"Balones recuperados 2/4 de cancha",abbreviation:"Recup 2/4",isSelected:!1,id:[223]},{name:"Balones recuperados 3/4 de cancha",abbreviation:"Recup 3/4",isSelected:!1,id:[224]},{name:"Balones recuperados 4/4 de cancha",abbreviation:"Recup 4/4",isSelected:!1,id:[225]},{name:"Pases acertados",abbreviation:"Pases acert",isSelected:!0,id:[2,20],isDefault:!0,parameters:_e(2,Yt()),parametersDefault:_e(2,Yt()),parametersConditions:{title:"Elige las condiciones del pase acertado",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 1/4",abbreviation:"Pas acer 1/4",isSelected:!1,id:[213],parameters:_e(1,Ee(1)),parametersDefault:_e(1,Ee(1)),parametersConditions:{title:"Elige las condiciones del pase acertado de 1/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 2/4",abbreviation:"Pas acer 2/4",isSelected:!1,id:[214],parameters:_e(1,Ee(2)),parametersDefault:_e(1,Ee(2)),parametersConditions:{title:"Elige las condiciones del pase acertado de 2/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 3/4",abbreviation:"Pas acer 3/4",isSelected:!1,id:[215],parameters:_e(1,Ee(3)),parametersDefault:_e(1,Ee(3)),parametersConditions:{title:"Elige las condiciones del pase acertado de 3/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}},{name:"Pases acertados en 4/4",abbreviation:"Pas acer 4/4",isSelected:!1,id:[216],parameters:_e(1,Ee(4)),parametersDefault:_e(1,Ee(4)),parametersConditions:{title:"Elige las condiciones del pase acertado de 4/4 de cancha",x:{min:0,max:105},y:{min:0,max:68},total:{min:0,max:125}}}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}};function Yt(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function pa(){return Array.from({length:16},(t,i)=>i+1)}function Ee(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function _e(t=1,i=null){return{origin_zones:t===1?pa():Yt(),destiny_zones:i||pa(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const bh={lateralPorDerecha:{categories:["1vs1 defensivos exitosos","Balones ganados en área propia","Centros por derecha","Balones recuperados totales","1vs1 exitosos ofensivos"]},lateralPorIzquierda:{categories:["1vs1 defensivos exitosos","Balones ganados en área propia","Centros por izquierda","Balones recuperados totales","1vs1 exitosos ofensivos"]},defensaCentral:{categories:["Balones ganados en área propia","1vs1 defensivos exitosos","Rechaces","Balones recuperados totales","Cabeceos en área rival"]},medioContencion:{categories:["Balones recuperados 3/4 de cancha","Balones recuperados 2/4 de cancha","1vs1 defensivos exitosos","Pases acertados en 3/4","Participaciones en gol"]},mediaPunta:{categories:["Participaciones en gol","Asistencias","Pases claves","1vs1 exitosos ofensivos","Tiros a gol totales","1vs1 que terminan en gol"]},extremoPorDerecha:{categories:["Centros por derecha","Centros por derecha acertados","1vs1 exitosos ofensivos","Participaciones en gol","Balones recuperados totales"]},extremoPorIzquierda:{categories:["Centros por izquierda","Centros por izquierda acertados","1vs1 exitosos ofensivos","Participaciones en gol","Balones recuperados totales"]},delantero:{categories:["Goles","Participaciones en gol","Cabeceos en área rival","Asistencias","Tiros a gol dentro del área"]},todasPosiciones:{categories:["Goles","Asistencias","Pases acertados","Balones recuperados totales","1vs1 Defensivos exitosos","Balones ganados en área propia"]}};function fa(t){return JSON.parse(JSON.stringify(t))}function ee(t){if(t){const i=bh[t];if(i){const o=fa(ma),a=Object.values(o);for(const n of a)n.categories&&n.categories.forEach(s=>{for(let l=0;l<i.categories.length;l++)if(s.name===i.categories[l]){s.isSelected=!0,s.priority=l+1;break}else s.isSelected=!1});return o}}return fa(ma)}const u2="",Ch=t=>(e.pushScopeId("data-v-6ca764b8"),t=t(),e.popScopeId(),t),kh={class:"dropdown__position"},Eh={key:0,class:"label"},xh={class:"selected-item"},wh={class:"item-position"},Vh={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nh=[Ch(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1))],Bh=L({__name:"DropdownPositionsMultiple",props:{isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null},defaultPositionName:{type:String,default:""},isFemaleMode:{type:Boolean,default:!1}},emits:["change-position"],setup(t,{emit:i}){const o=t,a=[{positionIds:[4],name:"Lateral por derecha",categories:ee("lateralPorDerecha")},{positionIds:[3],name:"Lateral por izquierda",categories:ee("lateralPorIzquierda")},{positionIds:[2],name:"Defensa central",categories:ee("defensaCentral")},{positionIds:[7],name:"Medio contención",categories:ee("medioContencion")},{positionIds:[8,6,5],name:"Media punta",categories:ee("mediaPunta")},{positionIds:[6,8,9],name:"Extremo por derecha",categories:ee("extremoPorDerecha")},{positionIds:[5,8,9],name:"Extremo por izquierda",categories:ee("extremoPorIzquierda")},{positionIds:[9,8,6,5],name:"Delantero",categories:ee("delantero")},{positionIds:[2,3,4,5,6,7,8,9],name:"Todas las posiciones",categories:ee("todasPosiciones")}],n=[{positionIds:[4],name:"Lateral por derecha",categories:ee("lateralPorDerecha")},{positionIds:[3],name:"Lateral por izquierda",categories:ee("lateralPorIzquierda")},{positionIds:[2],name:"Defensa central",categories:ee("defensaCentral")},{positionIds:[7],name:"Media contención",categories:ee("medioContencion")},{positionIds:[8,6,5],name:"Media punta",categories:ee("mediaPunta")},{positionIds:[6,8,9],name:"Extrema por derecha",categories:ee("extremoPorDerecha")},{positionIds:[5,8,9],name:"Extrema por izquierda",categories:ee("extremoPorIzquierda")},{positionIds:[9,8,6,5],name:"Delantera",categories:ee("delantero")},{positionIds:[2,3,4,5,6,7,8,9],name:"Todas las posiciones",categories:ee("todasPosiciones")}],s=e.ref({}),l=e.computed(()=>{const d={...ge};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(m=>{d[m]=o.dropdownProps[m]}),d}),u=e.computed(()=>o.isFemaleMode?n:a);e.watch(u,d=>{if(o.defaultPositionName){const m=d.find(r=>r.name===o.defaultPositionName);m&&(s.value=m)}else s.value.ids||(s.value=d[0])},{immediate:!0,deep:!0});function c(d){s.value=d,i("change-position",d)}return(d,m)=>(e.openBlock(),e.createElementBlock("div",kh,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",Eh,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(re),e.mergeProps(l.value,{items:u.value,"model-value":s.value,"onUpdate:modelValue":c}),{default:e.withCtx(()=>[e.createElementVNode("div",xh,e.toDisplayString(s.value.name),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",wh,[e.createElementVNode("div",null,e.toDisplayString(r.name),1),e.createElementVNode("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Vh,Nh,512)),[[e.vShow,s.value.name===r.name]])])])]),_:1},16,["items","model-value"])]))}},[["__scopeId","data-v-6ca764b8"]]),f2="",Fh={class:"dropdown-years"},Th={key:0,class:"label"},vh={class:"selected-year"},$h=L({__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null},selectedItemPrefix:{type:String,default:""}},emits:["change-year"],setup(t,{emit:i}){const o=t,a=e.computed(()=>{const l={...ge};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(u=>{l[u]=o.dropdownProps[u]}),l}),n=e.computed(()=>o.hasNoLimitOption?["Sin límite",...o.years]:o.years);function s(l){i("change-year",l)}return(l,u)=>(e.openBlock(),e.createElementBlock("div",Fh,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",Th,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(re),e.mergeProps({"model-value":t.selectedYear},a.value,{items:n.value,"onUpdate:modelValue":s}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",vh,e.toDisplayString(Number.isNaN(Number(c))?c:`${t.selectedItemPrefix} ${c}`),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},[["__scopeId","data-v-77be2ab3"]]),y2="",Ah=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),Ih={class:"dropdown-templates"},Ph={key:0,class:"label"},Mh={class:"selected-item"},Rh={class:"item"},Dh={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oh=[Ah(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1))],Lh=L({__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const o=t,a=e.ref([]),n=e.ref(null),s=e.computed(()=>{const c={...ge};return o.dropdownProps&&Object.keys(o.dropdownProps).forEach(d=>{c[d]=o.dropdownProps[d]}),c});e.watch(()=>o.teamId,c=>{c&&u()},{immediate:!0});function l(c){n.value=c,i("change-template",c)}async function u(){try{const c=await Be.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${o.teamId}/templates`,{headers:{Authorization:o.token}});a.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return u(),(c,d)=>(e.openBlock(),e.createElementBlock("div",Ih,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",Ph,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(re),e.mergeProps({"model-value":t.selectedTemplate},s.value,{items:a.value,"arrow-width":"10",onInput:l}),{default:e.withCtx(({selectedItem:m})=>[e.createElementVNode("div",Mh,e.toDisplayString(m.name),1)]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",Rh,[e.createElementVNode("div",null,e.toDisplayString(m.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",Dh,Oh,512)),[[e.vShow,n.value.name===m.name]])])]),_:1},16,["model-value","items"])]))}},[["__scopeId","data-v-8bd3ce77"]]),S2="",zh={class:"subcategory-group"},Uh=L({__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,o)=>(e.openBlock(),e.createElementBlock("div",zh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,a=>(e.openBlock(),e.createBlock(e.unref(O),{key:a.id,modelValue:a.isSelected,"onUpdate:modelValue":n=>a.isSelected=n,label:a.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},[["__scopeId","data-v-ae6f3d72"]]),C2="",Wh={class:"filter-subcategories"},Hh=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,o)=>(e.openBlock(),e.createElementBlock("div",Wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"filter-subcategories__group"},[e.createVNode(Uh,{subcategoryGroup:a},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),x2="",_t=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Yh={class:"details__header"},Gh=_t(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),jh={class:"details__header__checkbox"},qh={class:"details__body"},Zh={class:"details__body__playing-as"},Jh=["onClick"],Kh={class:"details__header"},Xh=_t(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Qh={class:"details__header__checkbox"},e0={class:"details__body"},t0=_t(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),o0={class:"details__body__game-section"},a0=["onClick"],i0={class:"details__body"},s0=_t(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),n0={class:"details__body__game-section"},l0=["onClick"],r0=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterConditions",props:{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}]},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(t){const i=t;e.useCssVars(m=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const o=e.computed(()=>i.playingAs.every(m=>m.isSelected)),a=e.computed(()=>i.gameSections.every(m=>m.isSelected)),n=e.computed(()=>i.gameSections.reduce((m,r)=>(r.value<=3?m.firstHalf.push(r):m.secondHalf.push(r),m),{firstHalf:[],secondHalf:[]})),s=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function l(m){m?i.playingAs.forEach(r=>{r.isSelected=!0}):i.playingAs.forEach((r,h)=>{r.isSelected=h===0})}function u(m){i.playingAs.filter(r=>r.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){i.gameSections.filter(r=>r.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?i.gameSections.forEach(r=>{r.isSelected=!0}):i.gameSections.forEach((r,h)=>{r.isSelected=h===0})}return(m,r)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",Yh,[Gh,e.createElementVNode("div",jh,[e.createVNode(e.unref(O),{label:"Todos","model-value":o.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",qh,[e.createElementVNode("div",Zh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:_=>u(h)},e.toDisplayString(h.name),11,Jh))),128))])]),e.createElementVNode("div",Kh,[Xh,e.createElementVNode("div",Qh,[e.createVNode(e.unref(O),{label:"Todos","model-value":a.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",e0,[t0,e.createElementVNode("div",o0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.firstHalf,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:_=>c(h)},e.toDisplayString(h.text),11,a0))),128))])]),e.createElementVNode("div",i0,[s0,e.createElementVNode("div",n0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.secondHalf,(h,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:_=>c(h)},e.toDisplayString(h.text),11,l0))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),N2="",d0={class:"filter-field"},c0=Object.freeze(Object.defineProperty({__proto__:null,default:L({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(a,n)=>n+1));function o(){}return(a,n)=>(e.openBlock(),e.createElementBlock("div",d0,[e.createVNode(e.unref(lo),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));W.DropdownPositions=Sh,W.DropdownPositionsMultiple=Bh,W.DropdownTemplates=Lh,W.DropdownYears=$h,W.GSCFilters=hh,W.detailsFilters=ne,W.filtersTypes=p,W.getPersonalDataFiltersBySeasons=ud,W.golstatsFilters=ua,W.howWasCornerFilters=ft,W.personalDataFilters=He,W.personalDataSubFiltersTypes=be,W.playsFilters=la,W.playsTypesFilters=ca,W.productivityFilters=na,W.resultsByTimeFilters=yt,W.resultsFilters=Ht,W.tournamentsFilters=da,W.universeFilters=ra,W.whatHappenedFilters=ht,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});