@golstats/gsc-lists 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{FilterConditions-5dfb1730-C85DIrTG.js → FilterConditions-5dfb1730-Brgxo2hr.js} +1 -1
- package/dist/{FilterField-561d1607-BjeqcuiP.js → FilterField-561d1607-CeMSN9lK.js} +1 -1
- package/dist/{FilterSubcategories-773e7631-bUNKiOoY.js → FilterSubcategories-773e7631-BToEwfqw.js} +1 -1
- package/dist/css/fonts.css +112 -112
- package/dist/gsc-lists.css +1 -1
- package/dist/gsc-lists.es.js +1 -1
- package/dist/gsc-lists.umd.js +9 -9
- package/dist/{index-CX87EEfG.js → index-DwPrPN3q.js} +4305 -4064
- package/package.json +36 -36
package/dist/gsc-lists.umd.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(Te,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(Te=typeof globalThis<"u"?globalThis:Te||self,e(Te.GSCList={},Te.Vue))})(this,function(Te,e){"use strict";const zt=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Ut={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(o=>t.has(o)))return;const a=Array.from(t).map(Number).sort((o,l)=>o-l);this.lastSelectedSections=[...a],this.$emit("sections-changed",a)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const a=Math.ceil(t/4);this.isQuarterEnabled(a)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const a=Math.ceil(t/4);this.isQuarterEnabled(a)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const a=Math.ceil(t/4);if(!this.isQuarterEnabled(a))return;const o=t.toString();this.selectedSections.size===1&&this.selectedSections.has(o)||(this.selectedSections.has(o)?this.selectedSections.delete(o):this.selectedSections.add(o),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=t.toString(),l=Math.ceil(t/4);if(this.isQuarterEnabled(l)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode)this.selectedSections.add(o);else{if(this.selectedSections.size===1&&this.selectedSections.has(o))return;this.selectedSections.delete(o)}this.updateSelectAllState()}},getSectionNumber(t,a){return(t-1)*4+a},getSectionIndex(t,a){return(t-1)*4+a},selectColumn(t){if(!this.isQuarterEnabled(t))return;const a=(t-1)*4+1,o=t*4;if(Array.from({length:4},(l,r)=>(a+r).toString()).every(l=>this.selectedSections.has(l))&&this.selectedSections.size>4)for(let l=a;l<=o;l++)this.selectedSections.delete(l.toString());else for(let l=a;l<=o;l++)this.selectedSections.add(l.toString());this.updateSelectAllState()},isQuarterSelected(t){const a=(t-1)*4+1;return Array.from({length:4},(o,l)=>(a+l).toString()).every(o=>this.selectedSections.has(o))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Ra=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Oa=Ut.setup;Ut.setup=Oa?(t,a)=>(Ra(),Oa(t,a)):Ra;const Kl={class:"field-template-element"},Xl={class:"field-container"},Ql=["onMouseenter","onMousedown"],ei={class:"column-buttons"},ti=["onClick","disabled"];function ai(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("div",Xl,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":o.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(o.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:a[0]||(a[0]=(...n)=>i.startDragging&&i.startDragging(...n)),onMouseup:a[1]||(a[1]=(...n)=>i.stopDragging&&i.stopDragging(...n)),onMouseleave:a[2]||(a[2]=(...n)=>i.stopDragging&&i.stopDragging(...n))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:n,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,s=>e.createElementVNode("div",{key:`${n}-${s}`,class:e.normalizeClass(["field-section",{selected:i.isSelected(i.getSectionIndex(n,s)),"display-mode":o.displayMode}]),onMouseenter:d=>r.isDragging&&i.handleDragSelect(i.getSectionIndex(n,s)),onMousedown:e.withModifiers(d=>!o.displayMode&&i.toggleSection(i.getSectionIndex(n,s)),["prevent"])},null,42,Ql)),64))])),64))],32),e.createElementVNode("div",ei,[o.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,n=>e.createElementVNode("div",{key:n,class:"column-label"},e.toDisplayString(n)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,n=>e.createElementVNode("button",{key:n,class:e.normalizeClass(["column-button",{selected:i.isQuarterSelected(n),disabled:!i.isQuarterEnabled(n)}]),onClick:s=>i.selectColumn(n),disabled:!i.isQuarterEnabled(n)},e.toDisplayString(n)+"/4 tos ",11,ti)),64))])])])}const oi=zt(Ut,[["render",ai],["__scopeId","data-v-1f6351a4"]]),jt={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const a=Array.from(t).map(i=>{const[n,s]=i.split("-").map(Number);return{row:n,col:s,value:this.getSequentialNumber(n,s)}}),o={};a.forEach(i=>{o[i.col]||(o[i.col]=[]),o[i.col].push(i)});const l=[];Object.values(o).forEach(i=>{i.sort((s,d)=>d.row-s.row);let n=[i[0]];for(let s=1;s<i.length;s++){const d=i[s];i[s-1].row-d.row===1?n.push(d):(n.length>0&&l.push(n),n=[d])}n.length>0&&l.push(n)});const r=l.sort((i,n)=>{const s=Math.min(...i.map(c=>c.value)),d=Math.min(...n.map(c=>c.value));return s-d}).map(i=>{const n=i.map(s=>s.value).sort((s,d)=>d-s);return n.length===1?[n[0],n[0]]:[n[0],n[n.length-1]]});this.$emit("sections-changed",r)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[a,o]=t,l=17-Math.floor((a-1)/21),r=(a-1)%21+1,i=17-Math.floor((o-1)/21),n=(o-1)%21+1;if(r===n){const s=Math.min(l,i),d=Math.max(l,i);for(let c=s;c<=d;c++)this.selectedSections.add(this.getSectionId(c,r))}else{const s=Math.min(r,n),d=Math.max(r,n);for(let c=s;c<=d;c++){const h=c===r?l:1,p=c===n?i:17;for(let y=Math.min(h,p);y<=Math.max(h,p);y++)this.selectedSections.add(this.getSectionId(y,c))}}}});else for(let t=1;t<=17;t++)for(let a=1;a<=21;a++)this.selectedSections.add(this.getSectionId(t,a));this.updateSelectAllState()},getSectionId(t,a){return`${t}-${a}`},isSelected(t,a){return this.selectedSections.has(this.getSectionId(t,a))},toggleSection(t,a){const o=this.getSectionId(t,a);this.selectedSections.has(o)?this.selectedSections.delete(o):this.selectedSections.add(o),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let a=1;a<=21;a++)this.selectedSections.add(this.getSectionId(t,a));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,a){if(this.displayMode)return;const o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const l=this.getSectionId(t,a);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(l)),this.dragSelectMode?this.selectedSections.add(l):this.selectedSections.delete(l),this.updateSelectAllState()},getSequentialNumber(t,a){return(17-t)*21+a}}},za=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},Ua=jt.setup;jt.setup=Ua?(t,a)=>(za(),Ua(t,a)):za;const li={class:"field-template-element"},ii={class:"field-container"},ri={key:0,class:"select-all-container"},ni={class:"select-all-label"},si=["onMouseenter","onMousedown"];function di(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("div",ii,[o.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ri,[e.createElementVNode("label",ni,[a[5]||(a[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":a[0]||(a[0]=n=>r.selectAll=n),onChange:a[1]||(a[1]=(...n)=>i.toggleAllSections&&i.toggleAllSections(...n))},null,544),[[e.vModelCheckbox,r.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:a[2]||(a[2]=(...n)=>i.startDragging&&i.startDragging(...n)),onMouseup:a[3]||(a[3]=(...n)=>i.stopDragging&&i.stopDragging(...n)),onMouseleave:a[4]||(a[4]=(...n)=>i.stopDragging&&i.stopDragging(...n))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,s=>e.createElementVNode("div",{key:`${n}-${s}`,class:e.normalizeClass(["field-section",{selected:i.isSelected(n,s),"display-mode":o.displayMode}]),onMouseenter:d=>r.isDragging&&i.handleDragSelect(n,s),onMousedown:e.withModifiers(d=>!o.displayMode&&i.toggleSection(n,s),["prevent"])},null,42,si)),64))],64))),64))],32),a[6]||(a[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const ci=zt(jt,[["render",di],["__scopeId","data-v-389c50fa"]]),mi={components:{FieldGolStatsTemplates:oi,FieldTemplatesElement:ci},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(a=>Array.isArray(a))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},pi={key:0,class:"modal-wrapper"},ui={class:"modal-overlay"},fi={class:"modal-container"},hi={class:"modal-content"},yi={class:"modal-header"},gi={class:"fields-container"},bi={class:"field-section"},Si={class:"field-section"},_i={class:"distance-section"},Ci={class:"distance-info"},Ei={class:"info-row"},wi={class:"info-value"},ki={class:"info-row"},Vi={class:"info-value"},Ni={class:"info-row"},xi={class:"info-value"},Bi={class:"distance-section"},Fi={class:"distance-info"},Ti={class:"info-row"},Mi={class:"info-value"},Ai={class:"info-row"},Li={class:"info-value"},Pi={class:"info-row"},Di={class:"info-value"};function Ii(t,a,o,l,r,i){var n,s,d,c,h,p,y,f,u,m,g,b;const N=e.resolveComponent("FieldGolStatsTemplates"),I=e.resolveComponent("FieldTemplatesElement");return o.isVisible?(e.openBlock(),e.createElementBlock("div",pi,[e.createElementVNode("div",ui,[e.createElementVNode("div",fi,[e.createElementVNode("div",hi,[e.createElementVNode("div",yi,[a[2]||(a[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=G=>t.$emit("update:isVisible",!1))},a[1]||(a[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",gi,[e.createElementVNode("div",bi,[i.isArrayOfArrays((n=o.parameters)==null?void 0:n.origin_zones)?(e.openBlock(),e.createBlock(I,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=o.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(N,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(s=o.parameters)==null?void 0:s.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Si,[i.isArrayOfArrays((c=o.parameters)==null?void 0:c.destiny_zones)?(e.openBlock(),e.createBlock(I,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(p=o.parameters)==null?void 0:p.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(N,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(h=o.parameters)==null?void 0:h.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",_i,[a[6]||(a[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Ci,[e.createElementVNode("div",Ei,[a[3]||(a[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",wi,e.toDisplayString((y=o.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",ki,[a[4]||(a[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Vi,e.toDisplayString((f=o.parameters)==null?void 0:f.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Ni,[a[5]||(a[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",xi,e.toDisplayString((u=o.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Bi,[a[10]||(a[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Fi,[e.createElementVNode("div",Ti,[a[7]||(a[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Mi,e.toDisplayString((m=o.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Ai,[a[8]||(a[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Li,e.toDisplayString((g=o.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",Pi,[a[9]||(a[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Di,e.toDisplayString((b=o.parameters)==null?void 0:b.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const ja=zt(mi,[["render",Ii],["__scopeId","data-v-834c0128"]]),Ee=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},vi={class:"player-card"},Ri={class:"player-card__image"},Oi={key:0,class:"checkbox-container"},zi=["checked"],Ui=["src"],ji={class:"player-card__right-data"},$i={class:"player-card__age"},Hi={class:"player-card__flag"},Wi={class:"player-card__details"},Gi={class:"player-card__name"},qi={class:"player-card__position"},Zi={key:0,class:"button-row"},Yi={class:"stat-header"},Ji={class:"stat-left"},Ki=["onClick"],Xi={class:"stat-label"},Qi={class:"stat-value"},er={class:"stat-bar-container"},tr={key:1,class:"loading-overlay"},$t={name:"GridView",components:{GscPlayerCard:Ee({__name:"GscPlayerCard",props:{player:{type:Object,default:()=>({})},loading:{type:Boolean,default:!0},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},player_id:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},is_female:{type:Number,default:0},isImgFullWidth:{type:Boolean,default:!1},stats:{type:Object,default:()=>({})},additionalData:{type:Object,default:()=>({})},deleteActive:{type:Boolean,default:!1},categories:{type:Array,default:()=>[],required:!0},statsPromise:{type:Promise,required:!0},isSelected:{type:Boolean,default:!1}},setup(t){const a=t,o=e.ref(null),l=e.ref(!1),r=e.ref(null);e.onMounted(async()=>{try{o.value=await a.statsPromise}catch(d){console.error("Error cargando estadísticas:",d)}});const i=d=>{if(!d)return 0;if(typeof d.value=="string"&&d.value.includes("%"))return parseFloat(d.value.replace("%",""));const c=d.max;return d.value*100/c};e.computed(()=>a.stats&&Object.keys(a.stats).length>0);const n=d=>{r.value=d,l.value=!0},s=()=>{l.value=!1,r.value=null};return(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",vi,[e.createElementVNode("div",Ri,[t.deleteActive?(e.openBlock(),e.createElementBlock("div",Oi,[e.createElementVNode("input",{type:"checkbox",class:"player-checkbox",checked:t.isSelected,onChange:c[0]||(c[0]=h=>d.$emit("toggleSelection")),onClick:c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))},null,40,zi)])):e.createCommentVNode("",!0),e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.photo,alt:"Player Image"},null,10,Ui),e.createElementVNode("div",ji,[e.createElementVNode("div",$i,e.toDisplayString(t.age)+" años ",1),e.createElementVNode("div",Hi,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(${a.countryFlag})`})},null,4)])])]),e.createElementVNode("div",Wi,[e.createElementVNode("p",Gi,e.toDisplayString(t.name),1),e.createElementVNode("p",qi,e.toDisplayString(t.position),1)]),e.createElementVNode("div",{class:e.normalizeClass(["player-card__actions",{"hide-buttons":t.deleteActive}])},[t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("button",{class:"action-button graph-button",onClick:c[2]||(c[2]=e.withModifiers(h=>d.$emit("showGraph",{player_id:a.player_id,name:a.name,position:a.position,stats:a.stats}),["stop"]))},c[6]||(c[6]=[e.createStaticVNode(' Gráfica <span class="button-icon" data-v-a34a3611><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-a34a3611><g clip-path="url(#clip0_3514_71971)" data-v-a34a3611><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-a34a3611></path></g><defs data-v-a34a3611><clipPath id="clip0_3514_71971" data-v-a34a3611><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-a34a3611></rect></clipPath></defs></svg></span>',2)])),e.createElementVNode("button",{class:"action-button delete-button",onClick:c[3]||(c[3]=e.withModifiers(h=>d.$emit("deletePlayer",{player_id:a.player_id,name:a.name,position:a.position}),["stop"]))},c[7]||(c[7]=[e.createStaticVNode(' Eliminar <span class="button-icon" data-v-a34a3611><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-a34a3611><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path></svg></span>',2)]))])),t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-button profile-button",onClick:c[4]||(c[4]=e.withModifiers(h=>d.$emit("showProfile",{player_id:a.player_id,season_id:a.additionalData.season_id,team_id:a.additionalData.team_id,name:a.name,position:a.position,age:a.age,nationality:a.nationality,photo:a.photo,stats:a.stats}),["stop"]))}," Ver perfil "))],2),e.createElementVNode("div",{class:e.normalizeClass(["player-card__stats",{"disabled-stats":t.deleteActive}])},[t.loading?(e.openBlock(),e.createElementBlock("div",tr,c[9]||(c[9]=[e.createElementVNode("div",{class:"loading-animation"},null,-1)]))):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value,(h,p)=>(e.openBlock(),e.createElementBlock("div",{class:"stat-row",key:p},[e.createElementVNode("div",Yi,[e.createElementVNode("div",Ji,[h.parametros!="no"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"stat-info-button",onClick:y=>n(h.parametros)},c[8]||(c[8]=[e.createElementVNode("svg",{width:"8",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.17355 0.761719C6.44909 0.761719 5.77355 1.23716 5.56275 1.90573L0.887836 1.90458C0.572235 1.90458 0.316406 2.16058 0.316406 2.47601C0.316406 2.79144 0.572235 3.04744 0.887836 3.04744L5.56275 3.04688C5.8188 3.74688 6.44909 4.1903 7.17355 4.1903C7.89801 4.1903 8.53475 3.74574 8.79527 3.04231L10.0307 3.04744C10.3463 3.04744 10.6021 2.79144 10.6021 2.47601C10.6021 2.16058 10.3463 1.90458 10.0307 1.90458H8.79041C8.51527 1.20801 7.89801 0.761719 7.17355 0.761719ZM7.17355 1.90458C7.48915 1.90458 7.74498 2.16058 7.74498 2.47601C7.74498 2.79144 7.48915 3.04744 7.17355 3.04744C6.85795 3.04744 6.60212 2.79144 6.60212 2.47601C6.60212 2.16058 6.85795 1.90458 7.17355 1.90458ZM3.74498 5.04744C2.99184 5.04744 2.36144 5.51602 2.13127 6.19142C2.05092 6.19657 0.887836 6.19028 0.887836 6.19028C0.572235 6.19028 0.316406 6.44628 0.316406 6.76171C0.316406 7.07714 0.572235 7.33314 0.887836 7.33314C0.887836 7.33314 2.06064 7.32114 2.13372 7.32857C2.3639 8.004 2.99184 8.476 3.74498 8.476C4.46943 8.476 5.09023 8.032 5.36177 7.33485L10.0307 7.33314C10.3463 7.33314 10.6021 7.07714 10.6021 6.76171C10.6021 6.44628 10.3463 6.19028 10.0307 6.19028L5.3588 6.18519C5.10835 5.50346 4.46943 5.04744 3.74498 5.04744ZM3.74498 6.19028C4.06058 6.19028 4.31641 6.44628 4.31641 6.76171C4.31641 7.07714 4.06058 7.33314 3.74498 7.33314C3.42938 7.33314 3.17355 7.07714 3.17355 6.76171C3.17355 6.44628 3.42938 6.19028 3.74498 6.19028ZM7.17355 9.33314C6.44909 9.33314 5.7864 9.81029 5.56235 10.4703L0.887836 10.476C0.572235 10.476 0.316406 10.732 0.316406 11.0474C0.316406 11.3629 0.572235 11.6189 0.887836 11.6189L5.55389 11.6194C5.79098 12.2966 6.44909 12.7617 7.17355 12.7617C7.89801 12.7617 8.52264 12.3086 8.79784 11.6194L10.0307 11.6189C10.3463 11.6189 10.6021 11.3629 10.6021 11.0474C10.6021 10.732 10.3463 10.476 10.0307 10.476L8.79264 10.4726C8.54595 9.79663 7.89801 9.33314 7.17355 9.33314ZM7.17355 10.476C7.48915 10.476 7.74498 10.732 7.74498 11.0474C7.74498 11.3629 7.48915 11.6189 7.17355 11.6189C6.85795 11.6189 6.60212 11.3629 6.60212 11.0474C6.60212 10.732 6.85795 10.476 7.17355 10.476Z",fill:"white"})],-1)]),8,Ki)):e.createCommentVNode("",!0),e.createElementVNode("span",Xi,e.toDisplayString(p),1)]),e.createElementVNode("span",Qi,e.toDisplayString(t.stats[h.variable]?t.stats[h.variable].value:"-"),1)]),e.createElementVNode("div",er,[e.createElementVNode("div",{style:e.normalizeStyle({width:`${i(t.stats[h.variable])}%`}),class:"stat-bar"},null,4)])]))),128))],2)]),e.createVNode(e.unref(ja),{isVisible:l.value,"onUpdate:isVisible":c[5]||(c[5]=h=>l.value=h),onClose:s,parameters:r.value},null,8,["isVisible","parameters"])],64))}},[["__scopeId","data-v-a34a3611"]])},props:{categories:{type:Array,default:()=>[],required:!0},deleteActive:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},playerStats:{type:Object,default:()=>({})},playerAddtionalData:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{currentSlide:0,containerWidth:0,cardGap:9,touchStartX:0,touchEndX:0,isDragging:!1,dragStartX:0,dragCurrentX:0,selectedPlayers:[]}},computed:{showSlider(){return this.containerWidth<610},isSingleCardView(){return this.containerWidth<440},visiblePlayers(){const t=this.isSingleCardView?1:2;return this.players.slice(this.currentSlide,this.currentSlide+t)},columnsCount(){const t=this.containerWidth;return t>=1500?5:t>=1200?4:t>=900?3:(t>=600,2)},cardWidth(){if(!this.containerWidth||!this.columnsCount)return 0;const t=this.containerWidth,a=this.cardGap*(this.columnsCount-1);return Math.floor((t-a)/this.columnsCount)},sliderCardWidth(){return this.isSingleCardView?Math.floor(this.containerWidth-this.cardGap*2):Math.floor((this.containerWidth-this.cardGap*3)/2)},layoutClass(){return{"grid-container":!this.showSlider,"slider-container":this.showSlider}},totalPages(){const t=this.isSingleCardView?1:2;return Math.ceil(this.players.length/t)},currentPage(){const t=this.isSingleCardView?1:2;return Math.floor(this.currentSlide/t)},isLastPage(){const t=this.isSingleCardView?1:2;return this.currentSlide+t>=this.players.length}},methods:{handleShowGraph(t){this.$emit("showGraph",t)},getPlayerStats(t){return this.statsLoaded?this.playerStats[t]||{}:null},getPlayerAdditionalData(t){return this.statsLoaded?this.playerAddtionalData[t]||{}:null},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},transformCategoriesToStats(t){return new Promise(a=>{const o={};t.forEach(l=>{o[l.name]={variable:l.id_variable,parametros:l.parameters}}),a(o)})},setupSliderListeners(){if(this.removeSliderListeners(),this.showSlider){const t=this.$el.querySelector(".slider-content");t&&(t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchend",this.handleTouchEnd),t.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp))}},removeSliderListeners(){const t=this.$el.querySelector(".slider-content");t&&(t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp))},updateContainerWidth(){this.$el&&(this.containerWidth=this.$el.offsetWidth,this.$nextTick(()=>{this.setupSliderListeners()}))},nextSlide(){const t=this.isSingleCardView?1:2,a=this.currentSlide+t;a<this.players.length?this.currentSlide=a:a>this.players.length&&this.currentSlide+1<this.players.length&&(this.currentSlide=this.players.length-1)},prevSlide(){const t=this.isSingleCardView?1:2;this.currentSlide>0&&(this.currentSlide-=t)},goToPage(t){const a=this.isSingleCardView?1:2;this.currentSlide=t*a},handleKeyPress(t){this.showSlider&&(t.key==="ArrowLeft"?this.prevSlide():t.key==="ArrowRight"&&this.nextSlide())},handleTouchStart(t){this.showSlider&&(this.touchStartX=t.touches[0].clientX)},handleTouchEnd(t){this.showSlider&&(this.touchEndX=t.changedTouches[0].clientX,this.handleSwipe())},handleSwipe(){const a=this.touchStartX-this.touchEndX;Math.abs(a)>50&&(a>0?this.nextSlide():this.prevSlide())},handleMouseDown(t){this.showSlider&&(this.isDragging=!0,this.dragStartX=t.clientX,this.dragCurrentX=t.clientX,t.preventDefault())},handleMouseMove(t){this.isDragging&&(this.dragCurrentX=t.clientX)},handleMouseUp(){if(!this.isDragging)return;const t=this.dragStartX-this.dragCurrentX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide()),this.isDragging=!1},shouldShowDot(t){if(this.isSingleCardView){if(t===0||t===this.totalPages-1)return!0;const a=this.currentPage;return Math.abs(t-a)<=1}return!0},togglePlayerSelection(t){const a=this.selectedPlayers.findIndex(o=>o.player_id===t.player_id);a===-1?this.selectedPlayers.push(t):this.selectedPlayers.splice(a,1),this.$emit("selectedPlayersToDelete",this.selectedPlayers),this.$emit("updateSelection",this.selectedPlayers.length>0)},isPlayerSelected(t){return this.selectedPlayers.some(a=>a.player_id===t.player_id)},handleDeletePlayer(t){this.$emit("delete-player",t)},handleShowProfile(t){this.$emit("showProfile",t)}},mounted(){this.$nextTick(()=>{this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth),window.addEventListener("keydown",this.handleKeyPress)})},beforeDestroy(){window.removeEventListener("resize",this.updateContainerWidth),window.removeEventListener("keydown",this.handleKeyPress),this.removeSliderListeners()},watch:{showSlider:{handler(t){this.$nextTick(()=>{this.setupSliderListeners()})}},deleteActive(t){t||(this.selectedPlayers=[],this.$emit("selectedPlayersToDelete",[]),this.$emit("updateSelection",!1))}}},$a=()=>{e.useCssVars(t=>({e0ff4f4c:t.cardGap+"px"}))},Ha=$t.setup;$t.setup=Ha?(t,a)=>($a(),Ha(t,a)):$a;const ar={class:"grid-view"},or={key:1,class:"slider"},lr={class:"slider-content"},ir={class:"slider-navigation"},rr=["disabled"],nr={class:"slider-pagination"},sr=["onClick"],dr=["disabled"];function cr(t,a,o,l,r,i){const n=e.resolveComponent("GscPlayerCard");return e.openBlock(),e.createElementBlock("div",ar,[e.createElementVNode("div",{class:e.normalizeClass(i.layoutClass)},[i.showSlider?(e.openBlock(),e.createElementBlock("div",or,[e.createElementVNode("div",lr,[e.createVNode(e.TransitionGroup,{name:"slide"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visiblePlayers,(s,d)=>(e.openBlock(),e.createBlock(n,e.mergeProps({key:s.id||d,onShowGraph:i.handleShowGraph,onDeletePlayer:i.handleDeletePlayer,onShowProfile:i.handleShowProfile,ref_for:!0},s,{age:i.calculateAge(s.dob),stats:i.getPlayerStats(s.player_id),additionalData:i.getPlayerAdditionalData(s.player_id),loading:!o.statsLoaded,"stats-promise":i.transformCategoriesToStats(o.categories),deleteActive:o.deleteActive,isSelected:i.isPlayerSelected(s),onToggleSelection:c=>i.togglePlayerSelection(s),class:"slider-item",style:{width:i.sliderCardWidth+"px"}}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","age","stats","additionalData","loading","stats-promise","deleteActive","isSelected","onToggleSelection","style"]))),128))]),_:1})]),e.createElementVNode("div",ir,[e.createElementVNode("button",{class:"slider-btn prev",onClick:a[0]||(a[0]=(...s)=>i.prevSlide&&i.prevSlide(...s)),disabled:r.currentSlide===0},a[2]||(a[2]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecla-left.png",alt:"prev",class:"nav-icon"},null,-1)]),8,rr),e.createElementVNode("div",nr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.totalPages,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[i.shouldShowDot(s-1)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["pagination-dot",{active:i.currentPage===s-1}]),onClick:d=>i.goToPage(s-1)},null,10,sr)):e.createCommentVNode("",!0)],64))),128))]),e.createElementVNode("button",{class:"slider-btn next",onClick:a[1]||(a[1]=(...s)=>i.nextSlide&&i.nextSlide(...s)),disabled:i.isLastPage},a[3]||(a[3]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecha-rigth.png",alt:"next",class:"nav-icon"},null,-1)]),8,dr)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.players,(s,d)=>(e.openBlock(),e.createBlock(n,e.mergeProps({key:d,onShowGraph:i.handleShowGraph,onDeletePlayer:i.handleDeletePlayer,onShowProfile:i.handleShowProfile,ref_for:!0},s,{player:s,age:i.calculateAge(s.dob),stats:i.getPlayerStats(s.player_id),additionalData:i.getPlayerAdditionalData(s.player_id),loading:!o.statsLoaded,"stats-promise":i.transformCategoriesToStats(o.categories),style:{width:i.cardWidth+"px"},deleteActive:o.deleteActive,isSelected:i.isPlayerSelected(s),onToggleSelection:c=>i.togglePlayerSelection(s)}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","player","age","stats","additionalData","loading","stats-promise","style","deleteActive","isSelected","onToggleSelection"]))),128))],2)])}const mr=Ee($t,[["render",cr],["__scopeId","data-v-03f77a98"]]),pr=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ur={key:1},fr={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr=["fill"],yr={key:0,class:"checkbox__teams"},gr={class:"checkbox__teams__logo"},br=["src"],Sr={class:"checkbox__teams__logo"},_r=["src"],Cr={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",ur,[(e.openBlock(),e.createElementBlock("svg",fr,[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,hr)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",yr,[e.createElementVNode("div",gr,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,br)]),e.createElementVNode("div",Sr,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,_r)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},Er=pr(Cr,[["__scopeId","data-v-b6f124d8"]]),wr=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Ht={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))}}},Wa=()=>{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}))},Ga=Ht.setup;Ht.setup=Ga?(t,a)=>(Wa(),Ga(t,a)):Wa;const kr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Vr=["src"],Nr={key:1,class:"text"},xr=["src"],Br={class:"stats"},Fr=kr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Tr={class:"numstats"},Mr={class:"leyend"};function Ar(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,Vr)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",Nr,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,xr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",Br,[Fr,e.createElementVNode("div",Tr,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Mr,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Lr=wr(Ht,[["render",Ar],["__scopeId","data-v-f3ee6b2b"]]),qa=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Za=t=>(e.pushScopeId("data-v-16177785"),t=t(),e.popScopeId(),t),Pr={key:0,class:"overlay"},Dr={class:"name"},Ir=["onClick"],vr=Za(()=>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)),Rr=[vr],Or=Za(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),zr=["onClick"],Ur={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(null),i=e.ref(null),n=e.ref(0);e.ref(!1);const s=e.computed(()=>{const f=l.availablePlayers[0];return f?f.stats:[]}),d=e.computed(()=>{const f=`repeat(${s.value.length}, max-content) 36px`;let u="";return n.value>0&&document.querySelectorAll(".column-title-2").forEach(m=>{u+=`${m.offsetWidth}px `}),{"--grid-template-columns":f,"--grid-template-columns-totals":u||f}});function c(){r.value=new ResizeObserver(f=>{for(const u of f){const{width:m}=u.contentRect;n.value=m}}),r.value.observe(i.value)}function h(f,u){const m=document.querySelectorAll(".scrollable-row-totals")[f+1];m&&(m.style.marginTop=`${u}px`)}function p({player:f,stat:u}){!u.total||u==="0%"||!u.seasons||!u.seasons.length||o("open-media",{...f,stat:u})}function y(f){!f||f==="no"||o("click-parameters",f)}return e.onMounted(()=>{c()}),a({setMarginTopDetails:h}),(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",Pr)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:i,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${g}`,class:"column-title-2"},[e.createElementVNode("div",Dr,e.toDisplayString(m.name),1),m.parameters&&m.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:b=>y(m.parameters)},Rr,8,Ir)):e.createCommentVNode("",!0)]))),128)),Or],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${m.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.stats,b=>(e.openBlock(),e.createElementBlock("div",{key:b.category_id,class:e.normalizeClass(["row data-info",{odd:g%2!==0,underline:!!b.total&&b.total!=="0%"&&b.seasons&&b.seasons.length}]),onClick:N=>p({player:m,stat:b})},e.toDisplayString(b.total),11,zr))),128))]))),128))],4))}},jr=qa(Ur,[["__scopeId","data-v-16177785"]]),pe=t=>(e.pushScopeId("data-v-bfcf1c28"),t=t(),e.popScopeId(),t),$r={class:"table__static-column"},Hr=pe(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),Wr={class:"container"},Gr={class:"details-row__info"},qr={class:"details-row__info__personal"},Zr={class:"bold"},Yr={class:"bold"},Jr={class:"bold"},Kr={class:"bold"},Xr={class:"details-row__info__games"},Qr={class:"bold"},en={class:"bold"},tn=["onClick"],an=pe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),on=pe(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),ln=[an,on],rn=["onClick"],nn=pe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),sn=pe(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),dn=[nn,sn],cn=["onClick"],mn=pe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),pn=pe(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),un=[mn,pn],fn=["onClick"],hn=pe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),yn=[hn],gn={class:"static-row__info-player"},bn={class:"position"},Sn=["onClick"],_n=pe(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Cn=pe(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),En=pe(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),wn=[_n,Cn,En],kn=["onClick"],Vn=pe(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Nn=pe(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),xn=pe(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Bn=[Vn,Nn,xn],Fn={class:"player-photo"},Tn=["src"],Mn={class:"player-name"},An={class:"arrow"},Ln=["onClick"],Pn=pe(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),Dn=[Pn],In=e.createStaticVNode('<div class="titles scrollable-row" data-v-bfcf1c28><div class="column-title" data-v-bfcf1c28>Equipo</div><div class="column-title" data-v-bfcf1c28>Posición</div><div class="column-title" data-v-bfcf1c28>Edad</div><div class="column-title" data-v-bfcf1c28>País</div><div class="column-title" data-v-bfcf1c28>Partidos Jugados</div><div class="column-title" data-v-bfcf1c28>Minutos Jugados</div><div class="column-title" data-v-bfcf1c28>Liga</div><div class="column-title" data-v-bfcf1c28>Videos</div><div class="column-title" data-v-bfcf1c28></div></div>',1),vn={class:"team-logo"},Rn=["src"],On={class:"team-name data-info"},zn=["src"],Un={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:a}){const o=t;let l=null,r=null;const i=e.ref([]),n=e.ref(null),s=e.ref(null),d=e.ref(0),c=e.ref(0),h=e.ref(-1);e.ref(!1);const p=e.ref(null),y=e.ref(null),f=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${u.value?"8px":"18px"}`,"--width-static-column":`${u.value?"50%":"256px"}`})),u=e.computed(()=>d.value<600);e.watch(()=>o.players,T=>{T&&T.length&&(i.value=T.map((_,k)=>{const A=k+1,P={..._,position:A<10?`0${A}`:`${A}`,isSelected:!1,isExpanded:!1,isOdd:k%2!==0,index:k};return P.parameters&&Object.entries(P.parameters).forEach(([L,U])=>{const O=P.stats.find(B=>B.custom_category_id===Number(L));O&&(O.parameters=U)}),P}))},{immediate:!0,deep:!0}),e.watch(()=>o.isEditMode,T=>{T&&i.value.forEach(_=>{_.isSelected=!1})}),e.watch(c,T=>{const _=document.querySelectorAll(".static-row")[h.value+1];_&&(_.style.marginTop=`${T}px`),o.isGeneral?m(h.value,T):s.value&&s.value.setMarginTopDetails(h.value,T),T===0&&p.value&&v(p.value)});function m(T,_){const k=document.querySelectorAll(".scrollable-row")[T+2];k&&(k.style.marginTop=`${_}px`)}function g(T){a("click-parameters",T)}function b(T){const _=T.player||T.objeto_player,k=_?_.player_id||_.id||_.playerId:T.id||T.player_id,A={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:k?[k]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(T.stat&&T.stat.parameters&&(A.parameters=T.stat.parameters),T.stat&&T.stat.seasons&&T.stat.seasons.length||T.seasons&&T.seasons.length){const P=[...T.stat&&T.stat.seasons&&T.stat.seasons.length?T.stat.seasons:T.seasons];P.sort((L,U)=>L-U),A.seasonId=P.shift(),A.seasonsIds=P}else(T.season_id||T.seasonId)&&(A.seasonId=T.season_id||T.seasonId);T.stat?T.stat.category_id&&T.stat.category_id.length?A.categoryIds=T.stat.category_id:T.stat.custom_category_id&&(A.customCategoryIds=[T.stat.custom_category_id]):A.categoryIds=G(T.player_position),a("open-media",A)}function N(){l=new ResizeObserver(T=>{for(const _ of T)d.value=_.contentRect.width}),l.observe(n.value)}function I(T){r=new ResizeObserver(_=>{for(const k of _)c.value=k.contentRect.height}),r.observe(T)}function G(T){return T==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function z(T,_){_.isSelected=T;const k=i.value.filter(A=>A.isSelected);a("change-selected-players",k)}function q(T){a("view-profile",T)}function Z(T){a("delete-from-list",T)}function Y(T){a("add-to-list",T)}function oe(T){a("show-graph",T)}function v(T){if(T.isExpanded){T.isExpanded=!1,p.value=null;return}const _=i.value.find(A=>A.isExpanded);if(_&&(_.isExpanded=!1),_){p.value=T;return}const k=document.querySelectorAll(".details-row")[T.index];h.value=T.index,I(k),T.isExpanded=!0}let M=!1,R,D,K=function(T){M=!0,R=T.pageX-y.value.offsetLeft,D=y.value.scrollLeft},te=function(){M=!1};function me(){y.value&&(y.value.addEventListener("mousemove",T=>{if(!M)return;const _=T.pageX-y.value.offsetLeft-R;y.value.scrollLeft=D-_}),y.value.addEventListener("mousedown",K,!1),y.value.addEventListener("mouseup",te,!1),y.value.addEventListener("mouseleave",te,!1))}return e.onMounted(()=>{N(),me()}),e.onBeforeUnmount(()=>{l&&l.disconnect(),r&&r.disconnect(),y.value&&(y.value.removeEventListener("mousemove",K,!1),y.value.removeEventListener("mouseup",te,!1),y.value.removeEventListener("mouseleave",te,!1))}),(T,_)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:n,style:e.normalizeStyle(f.value)},[e.createElementVNode("div",$r,[Hr,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,k=>(e.openBlock(),e.createElementBlock("div",{key:`s-${k.id}`,class:e.normalizeClass(["row static-row",{odd:k.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:k.isOdd}])},[e.createElementVNode("div",Wr,[e.createElementVNode("div",Gr,[e.createElementVNode("div",qr,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",Zr,e.toDisplayString(k.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",Yr,e.toDisplayString(k.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",Jr,e.toDisplayString(k.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",Kr,e.toDisplayString(k.position_name),1)])]),e.createElementVNode("div",Xr,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",Qr,e.toDisplayString(k.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",en,e.toDisplayString(k.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(u.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:A=>oe(k)},ln,8,tn),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:A=>Z(k)},dn,8,rn)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:A=>Y(k)},un,8,cn)),e.createElementVNode("div",{role:"button",class:"button green",onClick:A=>q(k)},yn,8,fn)],4)])],2),[[e.vShow,k.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(Er),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":k.isSelected,"onUpdate:modelValue":A=>z(A,k)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",gn,[e.createElementVNode("div",bn,e.toDisplayString(k.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:A=>Z(k)},wn,8,Sn)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:A=>Y(k)},Bn,8,kn)),e.createElementVNode("div",Fn,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:k.player_photo,alt:"player photo"},null,8,Tn)])]),e.createElementVNode("div",Mn,e.toDisplayString(k.player_name),1)]),e.createElementVNode("div",An,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:k.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:A=>v(k)},Dn,10,Ln))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:y,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[In,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,k=>(e.openBlock(),e.createElementBlock("div",{key:`i-${k.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:k.isOdd}])},[e.createElementVNode("div",vn,[e.createElementVNode("img",{src:k.team_logo,alt:"team logo"},null,8,Rn)]),e.createElementVNode("div",On,e.toDisplayString(k.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},e.toDisplayString(k.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},e.toDisplayString(k.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},[e.createElementVNode("img",{src:k.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,zn)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},e.toDisplayString(k.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},e.toDisplayString(k.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},e.toDisplayString(k.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},[e.createVNode(e.unref(Lr),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:A=>b(k)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:k.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(jr,{key:1,ref_key:"scrollColumns",ref:s,"available-players":i.value,"is-edit-mode":t.isEditMode,onOpenMedia:b,onClickParameters:g},null,8,["available-players","is-edit-mode"]))],512)],4))}},jn=qa(Un,[["__scopeId","data-v-bfcf1c28"]]),Wt={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"},$n={name:"ListView",components:{GSCTableScrollable:jn,ModalViewVarGolstats:ja},props:{categories:{type:Array,default:()=>[],required:!0},isGeneral:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},deleteActive:{type:Boolean,default:!1},playerAddtionalData:{type:Object,default:()=>({})},playerStats:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{showModal:!1,currentParameters:{},playersFormatted:[]}},watch:{players:{immediate:!0,handler(t){this.isGeneral?this.playersFormatted=t.map(a=>this.formatPlayerDataGeneral(a)):this.playersFormatted=t.map(a=>this.formatPlayerData(a))}},playerStats:{handler(t,a){t!==a&&(this.playersFormatted=this.players.map(o=>this.formatPlayerData(o)))},deep:!0}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},showProfile(t){this.$emit("view-profile",t)},deleteFromList(t){this.$emit("delete-from-list",t)},showGraph(t){this.$emit("show-graph",t)},onOpenMedia(t){this.$emit("open-media",t)},formatPlayerDataGeneral(t){var a,o,l,r,i;return{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Wt[`${t.nationality_id}`]||t.nationality,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t.nationality_id+".jpg",player_games:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.games_played)||0,player_min:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.minutes)||0,league_name:(r=this.playerAddtionalData[t.player_id])==null?void 0:r.tournament_name,seasons:[...new Set(this.categories.map(n=>{var s,d;return((d=(s=this.playerStats[t.player_id])==null?void 0:s[n.id_variable])==null?void 0:d.season)||[]}).flat())].filter(n=>n&&n!==0),season_id:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.season_id)||0,stats:this.categories.map(n=>{var s,d,c,h,p,y,f,u;return{category_id:((d=(s=this.playerStats[t.player_id])==null?void 0:s[n.id_variable])==null?void 0:d.categories)||null,custom_category_id:((h=(c=this.playerStats[t.player_id])==null?void 0:c[n.id_variable])==null?void 0:h.variable_id)||null,name:n.name,parameters:n.parameters,total:((y=(p=this.playerStats[t.player_id])==null?void 0:p[n.id_variable])==null?void 0:y.value)||0,seasons:((u=(f=this.playerStats[t.player_id])==null?void 0:f[n.id_variable])==null?void 0:u.season)||null}})}},formatPlayerData(t){var a,o,l,r;return Object.keys(this.playerStats[t.player_id])[0],{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Wt[`${t.nationality_id}`]||t.nationality,player_country_flag:t.countryFlag,player_games:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.games_played)||0,player_min:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.minutes)||0,league_name:"-",seasons:[...new Set(this.categories.map(i=>{var n,s;return((s=(n=this.playerStats[t.player_id])==null?void 0:n[i.id_variable])==null?void 0:s.season)||[]}).flat())].filter(i=>i&&i!==0),season_id:((r=this.playerAddtionalData[t.player_id])==null?void 0:r.season_id)||0,stats:this.categories.map(i=>{var n,s,d,c,h,p,y,f;return{category_id:((s=(n=this.playerStats[t.player_id])==null?void 0:n[i.id_variable])==null?void 0:s.categories)||null,custom_category_id:((c=(d=this.playerStats[t.player_id])==null?void 0:d[i.id_variable])==null?void 0:c.variable_id)||null,name:i.name,parameters:i.parameters,total:((p=(h=this.playerStats[t.player_id])==null?void 0:h[i.id_variable])==null?void 0:p.value)||0,seasons:((f=(y=this.playerStats[t.player_id])==null?void 0:y[i.id_variable])==null?void 0:f.season)||null}})}},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},handleSelectedPlayers(t){const a=t.map(o=>o.objeto_player);this.$emit("change-selected-players",a)}}},Hn={class:"list-view"};function Wn(t,a,o,l,r,i){const n=e.resolveComponent("ModalViewVarGolstats"),s=e.resolveComponent("GSCTableScrollable");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{isVisible:r.showModal,"onUpdate:isVisible":a[0]||(a[0]=d=>r.showModal=d),onClose:i.closeModal,parameters:r.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",Hn,[e.createVNode(s,{players:r.playersFormatted,"is-general":o.isGeneral,"is-edit-mode":o.deleteActive,"is-table-from-list":!0,onChangeSelectedPlayers:i.handleSelectedPlayers,onViewProfile:i.showProfile,onDeleteFromList:i.deleteFromList,onShowGraph:i.showGraph,onOpenMedia:i.onOpenMedia,onClickParameters:i.onClickParameters},null,8,["players","is-general","is-edit-mode","onChangeSelectedPlayers","onViewProfile","onDeleteFromList","onShowGraph","onOpenMedia","onClickParameters"])])],64)}const Gn=Ee($n,[["render",Wn],["__scopeId","data-v-be19430e"]]);function Ya(t,a){return function(){return t.apply(a,arguments)}}const{toString:qn}=Object.prototype,{getPrototypeOf:Gt}=Object,dt=(t=>a=>{const o=qn.call(a);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Se=t=>(t=t.toLowerCase(),a=>dt(a)===t),ct=t=>a=>typeof a===t,{isArray:Ue}=Array,Je=ct("undefined");function Zn(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&he(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ja=Se("ArrayBuffer");function Yn(t){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(t):a=t&&t.buffer&&Ja(t.buffer),a}const Jn=ct("string"),he=ct("function"),Ka=ct("number"),mt=t=>t!==null&&typeof t=="object",Kn=t=>t===!0||t===!1,pt=t=>{if(dt(t)!=="object")return!1;const a=Gt(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Xn=Se("Date"),Qn=Se("File"),es=Se("Blob"),ts=Se("FileList"),as=t=>mt(t)&&he(t.pipe),os=t=>{let a;return t&&(typeof FormData=="function"&&t instanceof FormData||he(t.append)&&((a=dt(t))==="formdata"||a==="object"&&he(t.toString)&&t.toString()==="[object FormData]"))},ls=Se("URLSearchParams"),[is,rs,ns,ss]=["ReadableStream","Request","Response","Headers"].map(Se),ds=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ke(t,a,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let l,r;if(typeof t!="object"&&(t=[t]),Ue(t))for(l=0,r=t.length;l<r;l++)a.call(null,t[l],l,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),n=i.length;let s;for(l=0;l<n;l++)s=i[l],a.call(null,t[s],s,t)}}function Xa(t,a){a=a.toLowerCase();const o=Object.keys(t);let l=o.length,r;for(;l-- >0;)if(r=o[l],a===r.toLowerCase())return r;return null}const Me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qa=t=>!Je(t)&&t!==Me;function qt(){const{caseless:t}=Qa(this)&&this||{},a={},o=(l,r)=>{const i=t&&Xa(a,r)||r;pt(a[i])&&pt(l)?a[i]=qt(a[i],l):pt(l)?a[i]=qt({},l):Ue(l)?a[i]=l.slice():a[i]=l};for(let l=0,r=arguments.length;l<r;l++)arguments[l]&&Ke(arguments[l],o);return a}const cs=(t,a,o,{allOwnKeys:l}={})=>(Ke(a,(r,i)=>{o&&he(r)?t[i]=Ya(r,o):t[i]=r},{allOwnKeys:l}),t),ms=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ps=(t,a,o,l)=>{t.prototype=Object.create(a.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:a.prototype}),o&&Object.assign(t.prototype,o)},us=(t,a,o,l)=>{let r,i,n;const s={};if(a=a||{},t==null)return a;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)n=r[i],(!l||l(n,t,a))&&!s[n]&&(a[n]=t[n],s[n]=!0);t=o!==!1&&Gt(t)}while(t&&(!o||o(t,a))&&t!==Object.prototype);return a},fs=(t,a,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=a.length;const l=t.indexOf(a,o);return l!==-1&&l===o},hs=t=>{if(!t)return null;if(Ue(t))return t;let a=t.length;if(!Ka(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=t[a];return o},ys=(t=>a=>t&&a instanceof t)(typeof Uint8Array<"u"&&Gt(Uint8Array)),gs=(t,a)=>{const l=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=l.next())&&!r.done;){const i=r.value;a.call(t,i[0],i[1])}},bs=(t,a)=>{let o;const l=[];for(;(o=t.exec(a))!==null;)l.push(o);return l},Ss=Se("HTMLFormElement"),_s=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,l,r){return l.toUpperCase()+r}),eo=(({hasOwnProperty:t})=>(a,o)=>t.call(a,o))(Object.prototype),Cs=Se("RegExp"),to=(t,a)=>{const o=Object.getOwnPropertyDescriptors(t),l={};Ke(o,(r,i)=>{let n;(n=a(r,i,t))!==!1&&(l[i]=n||r)}),Object.defineProperties(t,l)},Es=t=>{to(t,(a,o)=>{if(he(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const l=t[o];if(he(l)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},ws=(t,a)=>{const o={},l=r=>{r.forEach(i=>{o[i]=!0})};return Ue(t)?l(t):l(String(t).split(a)),o},ks=()=>{},Vs=(t,a)=>t!=null&&Number.isFinite(t=+t)?t:a;function Ns(t){return!!(t&&he(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const xs=t=>{const a=new Array(10),o=(l,r)=>{if(mt(l)){if(a.indexOf(l)>=0)return;if(!("toJSON"in l)){a[r]=l;const i=Ue(l)?[]:{};return Ke(l,(n,s)=>{const d=o(n,r+1);!Je(d)&&(i[s]=d)}),a[r]=void 0,i}}return l};return o(t,0)},Bs=Se("AsyncFunction"),Fs=t=>t&&(mt(t)||he(t))&&he(t.then)&&he(t.catch),ao=((t,a)=>t?setImmediate:a?((o,l)=>(Me.addEventListener("message",({source:r,data:i})=>{r===Me&&i===o&&l.length&&l.shift()()},!1),r=>{l.push(r),Me.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",he(Me.postMessage)),Ts=typeof queueMicrotask<"u"?queueMicrotask.bind(Me):typeof process<"u"&&process.nextTick||ao,C={isArray:Ue,isArrayBuffer:Ja,isBuffer:Zn,isFormData:os,isArrayBufferView:Yn,isString:Jn,isNumber:Ka,isBoolean:Kn,isObject:mt,isPlainObject:pt,isReadableStream:is,isRequest:rs,isResponse:ns,isHeaders:ss,isUndefined:Je,isDate:Xn,isFile:Qn,isBlob:es,isRegExp:Cs,isFunction:he,isStream:as,isURLSearchParams:ls,isTypedArray:ys,isFileList:ts,forEach:Ke,merge:qt,extend:cs,trim:ds,stripBOM:ms,inherits:ps,toFlatObject:us,kindOf:dt,kindOfTest:Se,endsWith:fs,toArray:hs,forEachEntry:gs,matchAll:bs,isHTMLForm:Ss,hasOwnProperty:eo,hasOwnProp:eo,reduceDescriptors:to,freezeMethods:Es,toObjectSet:ws,toCamelCase:_s,noop:ks,toFiniteNumber:Vs,findKey:Xa,global:Me,isContextDefined:Qa,isSpecCompliantForm:Ns,toJSONObject:xs,isAsyncFn:Bs,isThenable:Fs,setImmediate:ao,asap:Ts};function $(t,a,o,l,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),r&&(this.response=r,this.status=r.status?r.status:null)}C.inherits($,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:C.toJSONObject(this.config),code:this.code,status:this.status}}});const oo=$.prototype,lo={};["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=>{lo[t]={value:t}}),Object.defineProperties($,lo),Object.defineProperty(oo,"isAxiosError",{value:!0}),$.from=(t,a,o,l,r,i)=>{const n=Object.create(oo);return C.toFlatObject(t,n,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),$.call(n,t.message,a,o,l,r),n.cause=t,n.name=t.name,i&&Object.assign(n,i),n};const Ms=null;function Zt(t){return C.isPlainObject(t)||C.isArray(t)}function io(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ro(t,a,o){return t?t.concat(a).map(function(r,i){return r=io(r),!o&&i?"["+r+"]":r}).join(o?".":""):a}function As(t){return C.isArray(t)&&!t.some(Zt)}const Ls=C.toFlatObject(C,{},null,function(a){return/^is[A-Z]/.test(a)});function ut(t,a,o){if(!C.isObject(t))throw new TypeError("target must be an object");a=a||new FormData,o=C.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!C.isUndefined(g[m])});const l=o.metaTokens,r=o.visitor||h,i=o.dots,n=o.indexes,d=(o.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(a);if(!C.isFunction(r))throw new TypeError("visitor must be a function");function c(u){if(u===null)return"";if(C.isDate(u))return u.toISOString();if(!d&&C.isBlob(u))throw new $("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(u)||C.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function h(u,m,g){let b=u;if(u&&!g&&typeof u=="object"){if(C.endsWith(m,"{}"))m=l?m:m.slice(0,-2),u=JSON.stringify(u);else if(C.isArray(u)&&As(u)||(C.isFileList(u)||C.endsWith(m,"[]"))&&(b=C.toArray(u)))return m=io(m),b.forEach(function(I,G){!(C.isUndefined(I)||I===null)&&a.append(n===!0?ro([m],G,i):n===null?m:m+"[]",c(I))}),!1}return Zt(u)?!0:(a.append(ro(g,m,i),c(u)),!1)}const p=[],y=Object.assign(Ls,{defaultVisitor:h,convertValue:c,isVisitable:Zt});function f(u,m){if(!C.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),C.forEach(u,function(b,N){(!(C.isUndefined(b)||b===null)&&r.call(a,b,C.isString(N)?N.trim():N,m,y))===!0&&f(b,m?m.concat(N):[N])}),p.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return f(t),a}function no(t){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(l){return a[l]})}function Yt(t,a){this._pairs=[],t&&ut(t,this,a)}const so=Yt.prototype;so.append=function(a,o){this._pairs.push([a,o])},so.toString=function(a){const o=a?function(l){return a.call(this,l,no)}:no;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function Ps(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function co(t,a,o){if(!a)return t;const l=o&&o.encode||Ps;C.isFunction(o)&&(o={serialize:o});const r=o&&o.serialize;let i;if(r?i=r(a,o):i=C.isURLSearchParams(a)?a.toString():new Yt(a,o).toString(l),i){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class mo{constructor(){this.handlers=[]}use(a,o,l){return this.handlers.push({fulfilled:a,rejected:o,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){C.forEach(this.handlers,function(l){l!==null&&a(l)})}}const po={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ds={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Yt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jt=typeof window<"u"&&typeof document<"u",Kt=typeof navigator=="object"&&navigator||void 0,Is=Jt&&(!Kt||["ReactNative","NativeScript","NS"].indexOf(Kt.product)<0),vs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rs=Jt&&window.location.href||"http://localhost",de={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jt,hasStandardBrowserEnv:Is,hasStandardBrowserWebWorkerEnv:vs,navigator:Kt,origin:Rs},Symbol.toStringTag,{value:"Module"})),...Ds};function Os(t,a){return ut(t,new de.classes.URLSearchParams,Object.assign({visitor:function(o,l,r,i){return de.isNode&&C.isBuffer(o)?(this.append(l,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function zs(t){return C.matchAll(/\w+|\[(\w*)]/g,t).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Us(t){const a={},o=Object.keys(t);let l;const r=o.length;let i;for(l=0;l<r;l++)i=o[l],a[i]=t[i];return a}function uo(t){function a(o,l,r,i){let n=o[i++];if(n==="__proto__")return!0;const s=Number.isFinite(+n),d=i>=o.length;return n=!n&&C.isArray(r)?r.length:n,d?(C.hasOwnProp(r,n)?r[n]=[r[n],l]:r[n]=l,!s):((!r[n]||!C.isObject(r[n]))&&(r[n]=[]),a(o,l,r[n],i)&&C.isArray(r[n])&&(r[n]=Us(r[n])),!s)}if(C.isFormData(t)&&C.isFunction(t.entries)){const o={};return C.forEachEntry(t,(l,r)=>{a(zs(l),r,o,0)}),o}return null}function js(t,a,o){if(C.isString(t))try{return(a||JSON.parse)(t),C.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(o||JSON.stringify)(t)}const Xe={transitional:po,adapter:["xhr","http","fetch"],transformRequest:[function(a,o){const l=o.getContentType()||"",r=l.indexOf("application/json")>-1,i=C.isObject(a);if(i&&C.isHTMLForm(a)&&(a=new FormData(a)),C.isFormData(a))return r?JSON.stringify(uo(a)):a;if(C.isArrayBuffer(a)||C.isBuffer(a)||C.isStream(a)||C.isFile(a)||C.isBlob(a)||C.isReadableStream(a))return a;if(C.isArrayBufferView(a))return a.buffer;if(C.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let s;if(i){if(l.indexOf("application/x-www-form-urlencoded")>-1)return Os(a,this.formSerializer).toString();if((s=C.isFileList(a))||l.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ut(s?{"files[]":a}:a,d&&new d,this.formSerializer)}}return i||r?(o.setContentType("application/json",!1),js(a)):a}],transformResponse:[function(a){const o=this.transitional||Xe.transitional,l=o&&o.forcedJSONParsing,r=this.responseType==="json";if(C.isResponse(a)||C.isReadableStream(a))return a;if(a&&C.isString(a)&&(l&&!this.responseType||r)){const n=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(a)}catch(s){if(n)throw s.name==="SyntaxError"?$.from(s,$.ERR_BAD_RESPONSE,this,null,this.response):s}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],t=>{Xe.headers[t]={}});const $s=C.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"]),Hs=t=>{const a={};let o,l,r;return t&&t.split(`
|
|
2
|
-
`).forEach(function(n){r=n.indexOf(":"),o=n.substring(0,r).trim().toLowerCase(),l=n.substring(r+1).trim(),!(!o||a[o]
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const l=new this(a);return o.forEach(r=>l.set(r)),l}static accessor(a){const l=(this[fo]=this[fo]={accessors:{}}).accessors,r=this.prototype;function i(n){const s=Qe(n);l[s]||(Zs(r,n),l[s]=!0)}return C.isArray(a)?a.forEach(i):i(a),this}};ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(ue.prototype,({value:t},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>t,set(l){this[o]=l}}}),C.freezeMethods(ue);function Qt(t,a){const o=this||Xe,l=a||o,r=ue.from(l.headers);let i=l.data;return C.forEach(t,function(s){i=s.call(o,i,r.normalize(),a?a.status:void 0)}),r.normalize(),i}function ho(t){return!!(t&&t.__CANCEL__)}function je(t,a,o){$.call(this,t??"canceled",$.ERR_CANCELED,a,o),this.name="CanceledError"}C.inherits(je,$,{__CANCEL__:!0});function yo(t,a,o){const l=o.config.validateStatus;!o.status||!l||l(o.status)?t(o):a(new $("Request failed with status code "+o.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Ys(t){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}function Js(t,a){t=t||10;const o=new Array(t),l=new Array(t);let r=0,i=0,n;return a=a!==void 0?a:1e3,function(d){const c=Date.now(),h=l[i];n||(n=c),o[r]=d,l[r]=c;let p=i,y=0;for(;p!==r;)y+=o[p++],p=p%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),c-n<a)return;const f=h&&c-h;return f?Math.round(y*1e3/f):void 0}}function Ks(t,a){let o=0,l=1e3/a,r,i;const n=(c,h=Date.now())=>{o=h,r=null,i&&(clearTimeout(i),i=null),t.apply(null,c)};return[(...c)=>{const h=Date.now(),p=h-o;p>=l?n(c,h):(r=c,i||(i=setTimeout(()=>{i=null,n(r)},l-p)))},()=>r&&n(r)]}const ht=(t,a,o=3)=>{let l=0;const r=Js(50,250);return Ks(i=>{const n=i.loaded,s=i.lengthComputable?i.total:void 0,d=n-l,c=r(d),h=n<=s;l=n;const p={loaded:n,total:s,progress:s?n/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&h?(s-n)/c:void 0,event:i,lengthComputable:s!=null,[a?"download":"upload"]:!0};t(p)},o)},go=(t,a)=>{const o=t!=null;return[l=>a[0]({lengthComputable:o,total:t,loaded:l}),a[1]]},bo=t=>(...a)=>C.asap(()=>t(...a)),Xs=de.hasStandardBrowserEnv?((t,a)=>o=>(o=new URL(o,de.origin),t.protocol===o.protocol&&t.host===o.host&&(a||t.port===o.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,Qs=de.hasStandardBrowserEnv?{write(t,a,o,l,r,i){const n=[t+"="+encodeURIComponent(a)];C.isNumber(o)&&n.push("expires="+new Date(o).toGMTString()),C.isString(l)&&n.push("path="+l),C.isString(r)&&n.push("domain="+r),i===!0&&n.push("secure"),document.cookie=n.join("; ")},read(t){const a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ed(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function td(t,a){return a?t.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):t}function So(t,a,o){let l=!ed(a);return t&&(l||o==!1)?td(t,a):a}const _o=t=>t instanceof ue?{...t}:t;function Ae(t,a){a=a||{};const o={};function l(c,h,p,y){return C.isPlainObject(c)&&C.isPlainObject(h)?C.merge.call({caseless:y},c,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function r(c,h,p,y){if(C.isUndefined(h)){if(!C.isUndefined(c))return l(void 0,c,p,y)}else return l(c,h,p,y)}function i(c,h){if(!C.isUndefined(h))return l(void 0,h)}function n(c,h){if(C.isUndefined(h)){if(!C.isUndefined(c))return l(void 0,c)}else return l(void 0,h)}function s(c,h,p){if(p in a)return l(c,h);if(p in t)return l(void 0,c)}const d={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:s,headers:(c,h,p)=>r(_o(c),_o(h),p,!0)};return C.forEach(Object.keys(Object.assign({},t,a)),function(h){const p=d[h]||r,y=p(t[h],a[h],h);C.isUndefined(y)&&p!==s||(o[h]=y)}),o}const Co=t=>{const a=Ae({},t);let{data:o,withXSRFToken:l,xsrfHeaderName:r,xsrfCookieName:i,headers:n,auth:s}=a;a.headers=n=ue.from(n),a.url=co(So(a.baseURL,a.url,a.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&n.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(C.isFormData(o)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if((d=n.getContentType())!==!1){const[c,...h]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];n.setContentType([c||"multipart/form-data",...h].join("; "))}}if(de.hasStandardBrowserEnv&&(l&&C.isFunction(l)&&(l=l(a)),l||l!==!1&&Xs(a.url))){const c=r&&i&&Qs.read(i);c&&n.set(r,c)}return a},ad=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,l){const r=Co(t);let i=r.data;const n=ue.from(r.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:c}=r,h,p,y,f,u;function m(){f&&f(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function b(){if(!g)return;const I=ue.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),z={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:I,config:t,request:g};yo(function(Z){o(Z),m()},function(Z){l(Z),m()},z),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(l(new $("Request aborted",$.ECONNABORTED,t,g)),g=null)},g.onerror=function(){l(new $("Network Error",$.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let G=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const z=r.transitional||po;r.timeoutErrorMessage&&(G=r.timeoutErrorMessage),l(new $(G,z.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,g)),g=null},i===void 0&&n.setContentType(null),"setRequestHeader"in g&&C.forEach(n.toJSON(),function(G,z){g.setRequestHeader(z,G)}),C.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([y,u]=ht(c,!0),g.addEventListener("progress",y)),d&&g.upload&&([p,f]=ht(d),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",f)),(r.cancelToken||r.signal)&&(h=I=>{g&&(l(!I||I.type?new je(null,t,g):I),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const N=Ys(r.url);if(N&&de.protocols.indexOf(N)===-1){l(new $("Unsupported protocol "+N+":",$.ERR_BAD_REQUEST,t));return}g.send(i||null)})},od=(t,a)=>{const{length:o}=t=t?t.filter(Boolean):[];if(a||o){let l=new AbortController,r;const i=function(c){if(!r){r=!0,s();const h=c instanceof Error?c:this.reason;l.abort(h instanceof $?h:new je(h instanceof Error?h.message:h))}};let n=a&&setTimeout(()=>{n=null,i(new $(`timeout ${a} of ms exceeded`,$.ETIMEDOUT))},a);const s=()=>{t&&(n&&clearTimeout(n),n=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:d}=l;return d.unsubscribe=()=>C.asap(s),d}},ld=function*(t,a){let o=t.byteLength;if(o<a){yield t;return}let l=0,r;for(;l<o;)r=l+a,yield t.slice(l,r),l=r},id=async function*(t,a){for await(const o of rd(t))yield*ld(o,a)},rd=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const a=t.getReader();try{for(;;){const{done:o,value:l}=await a.read();if(o)break;yield l}}finally{await a.cancel()}},Eo=(t,a,o,l)=>{const r=id(t,a);let i=0,n,s=d=>{n||(n=!0,l&&l(d))};return new ReadableStream({async pull(d){try{const{done:c,value:h}=await r.next();if(c){s(),d.close();return}let p=h.byteLength;if(o){let y=i+=p;o(y)}d.enqueue(new Uint8Array(h))}catch(c){throw s(c),c}},cancel(d){return s(d),r.return()}},{highWaterMark:2})},yt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wo=yt&&typeof ReadableStream=="function",nd=yt&&(typeof TextEncoder=="function"?(t=>a=>t.encode(a))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ko=(t,...a)=>{try{return!!t(...a)}catch{return!1}},sd=wo&&ko(()=>{let t=!1;const a=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!a}),Vo=64*1024,ea=wo&&ko(()=>C.isReadableStream(new Response("").body)),gt={stream:ea&&(t=>t.body)};yt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!gt[a]&&(gt[a]=C.isFunction(t[a])?o=>o[a]():(o,l)=>{throw new $(`Response type '${a}' is not supported`,$.ERR_NOT_SUPPORT,l)})})})(new Response);const dd=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(de.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await nd(t)).byteLength},cd=async(t,a)=>{const o=C.toFiniteNumber(t.getContentLength());return o??dd(a)},ta={http:Ms,xhr:ad,fetch:yt&&(async t=>{let{url:a,method:o,data:l,signal:r,cancelToken:i,timeout:n,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:h,withCredentials:p="same-origin",fetchOptions:y}=Co(t);c=c?(c+"").toLowerCase():"text";let f=od([r,i&&i.toAbortSignal()],n),u;const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(d&&sd&&o!=="get"&&o!=="head"&&(g=await cd(h,l))!==0){let z=new Request(a,{method:"POST",body:l,duplex:"half"}),q;if(C.isFormData(l)&&(q=z.headers.get("content-type"))&&h.setContentType(q),z.body){const[Z,Y]=go(g,ht(bo(d)));l=Eo(z.body,Vo,Z,Y)}}C.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;u=new Request(a,{...y,signal:f,method:o.toUpperCase(),headers:h.normalize().toJSON(),body:l,duplex:"half",credentials:b?p:void 0});let N=await fetch(u);const I=ea&&(c==="stream"||c==="response");if(ea&&(s||I&&m)){const z={};["status","statusText","headers"].forEach(oe=>{z[oe]=N[oe]});const q=C.toFiniteNumber(N.headers.get("content-length")),[Z,Y]=s&&go(q,ht(bo(s),!0))||[];N=new Response(Eo(N.body,Vo,Z,()=>{Y&&Y(),m&&m()}),z)}c=c||"text";let G=await gt[C.findKey(gt,c)||"text"](N,t);return!I&&m&&m(),await new Promise((z,q)=>{yo(z,q,{data:G,headers:ue.from(N.headers),status:N.status,statusText:N.statusText,config:t,request:u})})}catch(b){throw m&&m(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,t,u),{cause:b.cause||b}):$.from(b,b&&b.code,t,u)}})};C.forEach(ta,(t,a)=>{if(t){try{Object.defineProperty(t,"name",{value:a})}catch{}Object.defineProperty(t,"adapterName",{value:a})}});const No=t=>`- ${t}`,md=t=>C.isFunction(t)||t===null||t===!1,xo={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:a}=t;let o,l;const r={};for(let i=0;i<a;i++){o=t[i];let n;if(l=o,!md(o)&&(l=ta[(n=String(o)).toLowerCase()],l===void 0))throw new $(`Unknown adapter '${n}'`);if(l)break;r[n||"#"+i]=l}if(!l){const i=Object.entries(r).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let n=a?i.length>1?`since :
|
|
1
|
+
(function(Te,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(Te=typeof globalThis<"u"?globalThis:Te||self,e(Te.GSCList={},Te.Vue))})(this,function(Te,e){"use strict";const zt=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Ut={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(o=>t.has(o)))return;const a=Array.from(t).map(Number).sort((o,l)=>o-l);this.lastSelectedSections=[...a],this.$emit("sections-changed",a)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const a=Math.ceil(t/4);this.isQuarterEnabled(a)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const a=Math.ceil(t/4);this.isQuarterEnabled(a)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const a=Math.ceil(t/4);if(!this.isQuarterEnabled(a))return;const o=t.toString();this.selectedSections.size===1&&this.selectedSections.has(o)||(this.selectedSections.has(o)?this.selectedSections.delete(o):this.selectedSections.add(o),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=t.toString(),l=Math.ceil(t/4);if(this.isQuarterEnabled(l)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode)this.selectedSections.add(o);else{if(this.selectedSections.size===1&&this.selectedSections.has(o))return;this.selectedSections.delete(o)}this.updateSelectAllState()}},getSectionNumber(t,a){return(t-1)*4+a},getSectionIndex(t,a){return(t-1)*4+a},selectColumn(t){if(!this.isQuarterEnabled(t))return;const a=(t-1)*4+1,o=t*4;if(Array.from({length:4},(l,r)=>(a+r).toString()).every(l=>this.selectedSections.has(l))&&this.selectedSections.size>4)for(let l=a;l<=o;l++)this.selectedSections.delete(l.toString());else for(let l=a;l<=o;l++)this.selectedSections.add(l.toString());this.updateSelectAllState()},isQuarterSelected(t){const a=(t-1)*4+1;return Array.from({length:4},(o,l)=>(a+l).toString()).every(o=>this.selectedSections.has(o))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Oa=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},za=Ut.setup;Ut.setup=za?(t,a)=>(Oa(),za(t,a)):Oa;const Kl={class:"field-template-element"},Xl={class:"field-container"},Ql=["onMouseenter","onMousedown"],ei={class:"column-buttons"},ti=["onClick","disabled"];function ai(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("div",Xl,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":o.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(o.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:a[0]||(a[0]=(...n)=>i.startDragging&&i.startDragging(...n)),onMouseup:a[1]||(a[1]=(...n)=>i.stopDragging&&i.stopDragging(...n)),onMouseleave:a[2]||(a[2]=(...n)=>i.stopDragging&&i.stopDragging(...n))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:n,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,s=>e.createElementVNode("div",{key:`${n}-${s}`,class:e.normalizeClass(["field-section",{selected:i.isSelected(i.getSectionIndex(n,s)),"display-mode":o.displayMode}]),onMouseenter:d=>r.isDragging&&i.handleDragSelect(i.getSectionIndex(n,s)),onMousedown:e.withModifiers(d=>!o.displayMode&&i.toggleSection(i.getSectionIndex(n,s)),["prevent"])},null,42,Ql)),64))])),64))],32),e.createElementVNode("div",ei,[o.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,n=>e.createElementVNode("div",{key:n,class:"column-label"},e.toDisplayString(n)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,n=>e.createElementVNode("button",{key:n,class:e.normalizeClass(["column-button",{selected:i.isQuarterSelected(n),disabled:!i.isQuarterEnabled(n)}]),onClick:s=>i.selectColumn(n),disabled:!i.isQuarterEnabled(n)},e.toDisplayString(n)+"/4 tos ",11,ti)),64))])])])}const oi=zt(Ut,[["render",ai],["__scopeId","data-v-1f6351a4"]]),jt={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const a=Array.from(t).map(i=>{const[n,s]=i.split("-").map(Number);return{row:n,col:s,value:this.getSequentialNumber(n,s)}}),o={};a.forEach(i=>{o[i.col]||(o[i.col]=[]),o[i.col].push(i)});const l=[];Object.values(o).forEach(i=>{i.sort((s,d)=>d.row-s.row);let n=[i[0]];for(let s=1;s<i.length;s++){const d=i[s];i[s-1].row-d.row===1?n.push(d):(n.length>0&&l.push(n),n=[d])}n.length>0&&l.push(n)});const r=l.sort((i,n)=>{const s=Math.min(...i.map(c=>c.value)),d=Math.min(...n.map(c=>c.value));return s-d}).map(i=>{const n=i.map(s=>s.value).sort((s,d)=>d-s);return n.length===1?[n[0],n[0]]:[n[0],n[n.length-1]]});this.$emit("sections-changed",r)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[a,o]=t,l=17-Math.floor((a-1)/21),r=(a-1)%21+1,i=17-Math.floor((o-1)/21),n=(o-1)%21+1;if(r===n){const s=Math.min(l,i),d=Math.max(l,i);for(let c=s;c<=d;c++)this.selectedSections.add(this.getSectionId(c,r))}else{const s=Math.min(r,n),d=Math.max(r,n);for(let c=s;c<=d;c++){const f=c===r?l:1,p=c===n?i:17;for(let y=Math.min(f,p);y<=Math.max(f,p);y++)this.selectedSections.add(this.getSectionId(y,c))}}}});else for(let t=1;t<=17;t++)for(let a=1;a<=21;a++)this.selectedSections.add(this.getSectionId(t,a));this.updateSelectAllState()},getSectionId(t,a){return`${t}-${a}`},isSelected(t,a){return this.selectedSections.has(this.getSectionId(t,a))},toggleSection(t,a){const o=this.getSectionId(t,a);this.selectedSections.has(o)?this.selectedSections.delete(o):this.selectedSections.add(o),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let a=1;a<=21;a++)this.selectedSections.add(this.getSectionId(t,a));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,a){if(this.displayMode)return;const o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const l=this.getSectionId(t,a);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(l)),this.dragSelectMode?this.selectedSections.add(l):this.selectedSections.delete(l),this.updateSelectAllState()},getSequentialNumber(t,a){return(17-t)*21+a}}},Ua=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},ja=jt.setup;jt.setup=ja?(t,a)=>(Ua(),ja(t,a)):Ua;const li={class:"field-template-element"},ii={class:"field-container"},ri={key:0,class:"select-all-container"},ni={class:"select-all-label"},si=["onMouseenter","onMousedown"];function di(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("div",ii,[o.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ri,[e.createElementVNode("label",ni,[a[5]||(a[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":a[0]||(a[0]=n=>r.selectAll=n),onChange:a[1]||(a[1]=(...n)=>i.toggleAllSections&&i.toggleAllSections(...n))},null,544),[[e.vModelCheckbox,r.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:a[2]||(a[2]=(...n)=>i.startDragging&&i.startDragging(...n)),onMouseup:a[3]||(a[3]=(...n)=>i.stopDragging&&i.stopDragging(...n)),onMouseleave:a[4]||(a[4]=(...n)=>i.stopDragging&&i.stopDragging(...n))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,s=>e.createElementVNode("div",{key:`${n}-${s}`,class:e.normalizeClass(["field-section",{selected:i.isSelected(n,s),"display-mode":o.displayMode}]),onMouseenter:d=>r.isDragging&&i.handleDragSelect(n,s),onMousedown:e.withModifiers(d=>!o.displayMode&&i.toggleSection(n,s),["prevent"])},null,42,si)),64))],64))),64))],32),a[6]||(a[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const ci=zt(jt,[["render",di],["__scopeId","data-v-389c50fa"]]),mi={components:{FieldGolStatsTemplates:oi,FieldTemplatesElement:ci},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(a=>Array.isArray(a))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},pi={key:0,class:"modal-wrapper"},ui={class:"modal-overlay"},fi={class:"modal-container"},hi={class:"modal-content"},yi={class:"modal-header"},gi={class:"fields-container"},bi={class:"field-section"},Si={class:"field-section"},_i={class:"distance-section"},Ci={class:"distance-info"},Ei={class:"info-row"},wi={class:"info-value"},ki={class:"info-row"},Vi={class:"info-value"},Ni={class:"info-row"},xi={class:"info-value"},Bi={class:"distance-section"},Fi={class:"distance-info"},Ti={class:"info-row"},Mi={class:"info-value"},Ai={class:"info-row"},Li={class:"info-value"},Pi={class:"info-row"},Di={class:"info-value"};function Ii(t,a,o,l,r,i){var n,s,d,c,f,p,y,h,u,m,g,_;const B=e.resolveComponent("FieldGolStatsTemplates"),I=e.resolveComponent("FieldTemplatesElement");return o.isVisible?(e.openBlock(),e.createElementBlock("div",pi,[e.createElementVNode("div",ui,[e.createElementVNode("div",fi,[e.createElementVNode("div",hi,[e.createElementVNode("div",yi,[a[2]||(a[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=G=>t.$emit("update:isVisible",!1))},a[1]||(a[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",gi,[e.createElementVNode("div",bi,[i.isArrayOfArrays((n=o.parameters)==null?void 0:n.origin_zones)?(e.openBlock(),e.createBlock(I,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=o.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(B,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(s=o.parameters)==null?void 0:s.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Si,[i.isArrayOfArrays((c=o.parameters)==null?void 0:c.destiny_zones)?(e.openBlock(),e.createBlock(I,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(p=o.parameters)==null?void 0:p.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(B,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(f=o.parameters)==null?void 0:f.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",_i,[a[6]||(a[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Ci,[e.createElementVNode("div",Ei,[a[3]||(a[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",wi,e.toDisplayString((y=o.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",ki,[a[4]||(a[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Vi,e.toDisplayString((h=o.parameters)==null?void 0:h.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Ni,[a[5]||(a[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",xi,e.toDisplayString((u=o.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Bi,[a[10]||(a[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Fi,[e.createElementVNode("div",Ti,[a[7]||(a[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Mi,e.toDisplayString((m=o.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Ai,[a[8]||(a[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Li,e.toDisplayString((g=o.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",Pi,[a[9]||(a[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Di,e.toDisplayString((_=o.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const $a=zt(mi,[["render",Ii],["__scopeId","data-v-834c0128"]]),Ee=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Ri={class:"player-card"},vi={class:"player-card__image"},Oi={key:0,class:"checkbox-container"},zi=["checked"],Ui=["src"],ji={class:"player-card__right-data"},$i={class:"player-card__age"},Hi={class:"player-card__flag"},Wi={class:"player-card__details"},Gi={class:"player-card__name"},qi={class:"player-card__position"},Zi={key:0,class:"button-row"},Yi={class:"stat-header"},Ji={class:"stat-left"},Ki=["onClick"],Xi={class:"stat-label"},Qi={class:"stat-value"},er={class:"stat-bar-container"},tr={key:1,class:"loading-overlay"},$t={name:"GridView",components:{GscPlayerCard:Ee({__name:"GscPlayerCard",props:{player:{type:Object,default:()=>({})},loading:{type:Boolean,default:!0},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},player_id:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},is_female:{type:Number,default:0},isImgFullWidth:{type:Boolean,default:!1},stats:{type:Object,default:()=>({})},additionalData:{type:Object,default:()=>({})},deleteActive:{type:Boolean,default:!1},categories:{type:Array,default:()=>[],required:!0},statsPromise:{type:Promise,required:!0},isSelected:{type:Boolean,default:!1}},setup(t){const a=t,o=e.ref(null),l=e.ref(!1),r=e.ref(null);e.onMounted(async()=>{try{o.value=await a.statsPromise}catch(d){console.error("Error cargando estadísticas:",d)}});const i=d=>{if(!d)return 0;if(typeof d.value=="string"&&d.value.includes("%"))return parseFloat(d.value.replace("%",""));const c=d.max;return d.value*100/c};e.computed(()=>a.stats&&Object.keys(a.stats).length>0);const n=d=>{r.value=d,l.value=!0},s=()=>{l.value=!1,r.value=null};return(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Ri,[e.createElementVNode("div",vi,[t.deleteActive?(e.openBlock(),e.createElementBlock("div",Oi,[e.createElementVNode("input",{type:"checkbox",class:"player-checkbox",checked:t.isSelected,onChange:c[0]||(c[0]=f=>d.$emit("toggleSelection")),onClick:c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))},null,40,zi)])):e.createCommentVNode("",!0),e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.photo,alt:"Player Image"},null,10,Ui),e.createElementVNode("div",ji,[e.createElementVNode("div",$i,e.toDisplayString(t.age)+" años ",1),e.createElementVNode("div",Hi,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(${a.countryFlag})`})},null,4)])])]),e.createElementVNode("div",Wi,[e.createElementVNode("p",Gi,e.toDisplayString(t.name),1),e.createElementVNode("p",qi,e.toDisplayString(t.position),1)]),e.createElementVNode("div",{class:e.normalizeClass(["player-card__actions",{"hide-buttons":t.deleteActive}])},[t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("button",{class:"action-button graph-button",onClick:c[2]||(c[2]=e.withModifiers(f=>d.$emit("showGraph",{player_id:a.player_id,name:a.name,position:a.position,stats:a.stats}),["stop"]))},c[6]||(c[6]=[e.createStaticVNode(' Gráfica <span class="button-icon" data-v-2baeacbf><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-2baeacbf><g clip-path="url(#clip0_3514_71971)" data-v-2baeacbf><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-2baeacbf></path></g><defs data-v-2baeacbf><clipPath id="clip0_3514_71971" data-v-2baeacbf><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-2baeacbf></rect></clipPath></defs></svg></span>',2)])),e.createElementVNode("button",{class:"action-button delete-button",onClick:c[3]||(c[3]=e.withModifiers(f=>d.$emit("deletePlayer",{player_id:a.player_id,name:a.name,position:a.position}),["stop"]))},c[7]||(c[7]=[e.createStaticVNode(' Eliminar <span class="button-icon" data-v-2baeacbf><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2baeacbf><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path></svg></span>',2)]))])),t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-button profile-button",onClick:c[4]||(c[4]=e.withModifiers(f=>d.$emit("showProfile",{player_id:a.player_id,season_id:a.additionalData.season_id,team_id:a.additionalData.team_id,name:a.name,position:a.position,age:a.age,nationality:a.nationality,photo:a.photo,stats:a.stats}),["stop"]))}," Ver perfil "))],2),e.createElementVNode("div",{class:e.normalizeClass(["player-card__stats",{"disabled-stats":t.deleteActive}])},[t.loading?(e.openBlock(),e.createElementBlock("div",tr,c[9]||(c[9]=[e.createElementVNode("div",{class:"loading-animation"},null,-1)]))):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value,(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"stat-row",key:p},[e.createElementVNode("div",Yi,[e.createElementVNode("div",Ji,[f.parametros!="no"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"stat-info-button",onClick:y=>n(f.parametros)},c[8]||(c[8]=[e.createElementVNode("svg",{width:"8",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.17355 0.761719C6.44909 0.761719 5.77355 1.23716 5.56275 1.90573L0.887836 1.90458C0.572235 1.90458 0.316406 2.16058 0.316406 2.47601C0.316406 2.79144 0.572235 3.04744 0.887836 3.04744L5.56275 3.04688C5.8188 3.74688 6.44909 4.1903 7.17355 4.1903C7.89801 4.1903 8.53475 3.74574 8.79527 3.04231L10.0307 3.04744C10.3463 3.04744 10.6021 2.79144 10.6021 2.47601C10.6021 2.16058 10.3463 1.90458 10.0307 1.90458H8.79041C8.51527 1.20801 7.89801 0.761719 7.17355 0.761719ZM7.17355 1.90458C7.48915 1.90458 7.74498 2.16058 7.74498 2.47601C7.74498 2.79144 7.48915 3.04744 7.17355 3.04744C6.85795 3.04744 6.60212 2.79144 6.60212 2.47601C6.60212 2.16058 6.85795 1.90458 7.17355 1.90458ZM3.74498 5.04744C2.99184 5.04744 2.36144 5.51602 2.13127 6.19142C2.05092 6.19657 0.887836 6.19028 0.887836 6.19028C0.572235 6.19028 0.316406 6.44628 0.316406 6.76171C0.316406 7.07714 0.572235 7.33314 0.887836 7.33314C0.887836 7.33314 2.06064 7.32114 2.13372 7.32857C2.3639 8.004 2.99184 8.476 3.74498 8.476C4.46943 8.476 5.09023 8.032 5.36177 7.33485L10.0307 7.33314C10.3463 7.33314 10.6021 7.07714 10.6021 6.76171C10.6021 6.44628 10.3463 6.19028 10.0307 6.19028L5.3588 6.18519C5.10835 5.50346 4.46943 5.04744 3.74498 5.04744ZM3.74498 6.19028C4.06058 6.19028 4.31641 6.44628 4.31641 6.76171C4.31641 7.07714 4.06058 7.33314 3.74498 7.33314C3.42938 7.33314 3.17355 7.07714 3.17355 6.76171C3.17355 6.44628 3.42938 6.19028 3.74498 6.19028ZM7.17355 9.33314C6.44909 9.33314 5.7864 9.81029 5.56235 10.4703L0.887836 10.476C0.572235 10.476 0.316406 10.732 0.316406 11.0474C0.316406 11.3629 0.572235 11.6189 0.887836 11.6189L5.55389 11.6194C5.79098 12.2966 6.44909 12.7617 7.17355 12.7617C7.89801 12.7617 8.52264 12.3086 8.79784 11.6194L10.0307 11.6189C10.3463 11.6189 10.6021 11.3629 10.6021 11.0474C10.6021 10.732 10.3463 10.476 10.0307 10.476L8.79264 10.4726C8.54595 9.79663 7.89801 9.33314 7.17355 9.33314ZM7.17355 10.476C7.48915 10.476 7.74498 10.732 7.74498 11.0474C7.74498 11.3629 7.48915 11.6189 7.17355 11.6189C6.85795 11.6189 6.60212 11.3629 6.60212 11.0474C6.60212 10.732 6.85795 10.476 7.17355 10.476Z",fill:"white"})],-1)]),8,Ki)):e.createCommentVNode("",!0),e.createElementVNode("span",Xi,e.toDisplayString(p),1)]),e.createElementVNode("span",Qi,e.toDisplayString(t.stats[f.variable]?t.stats[f.variable].value:"-"),1)]),e.createElementVNode("div",er,[e.createElementVNode("div",{style:e.normalizeStyle({width:`${i(t.stats[f.variable])}%`}),class:"stat-bar"},null,4)])]))),128))],2)]),e.createVNode(e.unref($a),{isVisible:l.value,"onUpdate:isVisible":c[5]||(c[5]=f=>l.value=f),onClose:s,parameters:r.value},null,8,["isVisible","parameters"])],64))}},[["__scopeId","data-v-2baeacbf"]])},props:{categories:{type:Array,default:()=>[],required:!0},deleteActive:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},playerStats:{type:Object,default:()=>({})},playerAddtionalData:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{currentSlide:0,containerWidth:0,cardGap:9,touchStartX:0,touchEndX:0,isDragging:!1,dragStartX:0,dragCurrentX:0,selectedPlayers:[]}},computed:{showSlider(){return this.containerWidth<610},isSingleCardView(){return this.containerWidth<440},visiblePlayers(){const t=this.isSingleCardView?1:2;return this.players.slice(this.currentSlide,this.currentSlide+t)},columnsCount(){const t=this.containerWidth;return t>=1500?5:t>=1200?4:t>=900?3:(t>=600,2)},cardWidth(){if(!this.containerWidth||!this.columnsCount)return 0;const t=this.containerWidth,a=this.cardGap*(this.columnsCount-1);return Math.floor((t-a)/this.columnsCount)},sliderCardWidth(){return this.isSingleCardView?Math.floor(this.containerWidth-this.cardGap*2):Math.floor((this.containerWidth-this.cardGap*3)/2)},layoutClass(){return{"grid-container":!this.showSlider,"slider-container":this.showSlider}},totalPages(){const t=this.isSingleCardView?1:2;return Math.ceil(this.players.length/t)},currentPage(){const t=this.isSingleCardView?1:2;return Math.floor(this.currentSlide/t)},isLastPage(){const t=this.isSingleCardView?1:2;return this.currentSlide+t>=this.players.length}},methods:{handleShowGraph(t){this.$emit("showGraph",t)},getPlayerStats(t){return this.statsLoaded?this.playerStats[t]||{}:null},getPlayerAdditionalData(t){return this.statsLoaded?this.playerAddtionalData[t]||{}:null},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},transformCategoriesToStats(t){return new Promise(a=>{const o={};t.forEach(l=>{o[l.name]={variable:l.id_variable,parametros:l.parameters}}),a(o)})},setupSliderListeners(){if(this.removeSliderListeners(),this.showSlider){const t=this.$el.querySelector(".slider-content");t&&(t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchend",this.handleTouchEnd),t.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp))}},removeSliderListeners(){const t=this.$el.querySelector(".slider-content");t&&(t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp))},updateContainerWidth(){this.$el&&(this.containerWidth=this.$el.offsetWidth,this.$nextTick(()=>{this.setupSliderListeners()}))},nextSlide(){const t=this.isSingleCardView?1:2,a=this.currentSlide+t;a<this.players.length?this.currentSlide=a:a>this.players.length&&this.currentSlide+1<this.players.length&&(this.currentSlide=this.players.length-1)},prevSlide(){const t=this.isSingleCardView?1:2;this.currentSlide>0&&(this.currentSlide-=t)},goToPage(t){const a=this.isSingleCardView?1:2;this.currentSlide=t*a},handleKeyPress(t){this.showSlider&&(t.key==="ArrowLeft"?this.prevSlide():t.key==="ArrowRight"&&this.nextSlide())},handleTouchStart(t){this.showSlider&&(this.touchStartX=t.touches[0].clientX)},handleTouchEnd(t){this.showSlider&&(this.touchEndX=t.changedTouches[0].clientX,this.handleSwipe())},handleSwipe(){const a=this.touchStartX-this.touchEndX;Math.abs(a)>50&&(a>0?this.nextSlide():this.prevSlide())},handleMouseDown(t){this.showSlider&&(this.isDragging=!0,this.dragStartX=t.clientX,this.dragCurrentX=t.clientX,t.preventDefault())},handleMouseMove(t){this.isDragging&&(this.dragCurrentX=t.clientX)},handleMouseUp(){if(!this.isDragging)return;const t=this.dragStartX-this.dragCurrentX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide()),this.isDragging=!1},shouldShowDot(t){if(this.isSingleCardView){if(t===0||t===this.totalPages-1)return!0;const a=this.currentPage;return Math.abs(t-a)<=1}return!0},togglePlayerSelection(t){const a=this.selectedPlayers.findIndex(o=>o.player_id===t.player_id);a===-1?this.selectedPlayers.push(t):this.selectedPlayers.splice(a,1),this.$emit("selectedPlayersToDelete",this.selectedPlayers),this.$emit("updateSelection",this.selectedPlayers.length>0)},isPlayerSelected(t){return this.selectedPlayers.some(a=>a.player_id===t.player_id)},handleDeletePlayer(t){this.$emit("delete-player",t)},handleShowProfile(t){this.$emit("showProfile",t)}},mounted(){this.$nextTick(()=>{this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth),window.addEventListener("keydown",this.handleKeyPress)})},beforeDestroy(){window.removeEventListener("resize",this.updateContainerWidth),window.removeEventListener("keydown",this.handleKeyPress),this.removeSliderListeners()},watch:{showSlider:{handler(t){this.$nextTick(()=>{this.setupSliderListeners()})}},deleteActive(t){t||(this.selectedPlayers=[],this.$emit("selectedPlayersToDelete",[]),this.$emit("updateSelection",!1))}}},Ha=()=>{e.useCssVars(t=>({d428e65e:t.cardGap+"px"}))},Wa=$t.setup;$t.setup=Wa?(t,a)=>(Ha(),Wa(t,a)):Ha;const ar={class:"grid-view"},or={key:1,class:"slider"},lr={class:"slider-content"},ir={class:"slider-navigation"},rr=["disabled"],nr={class:"slider-pagination"},sr=["onClick"],dr=["disabled"];function cr(t,a,o,l,r,i){const n=e.resolveComponent("GscPlayerCard");return e.openBlock(),e.createElementBlock("div",ar,[e.createElementVNode("div",{class:e.normalizeClass(i.layoutClass)},[i.showSlider?(e.openBlock(),e.createElementBlock("div",or,[e.createElementVNode("div",lr,[e.createVNode(e.TransitionGroup,{name:"slide"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.visiblePlayers,(s,d)=>(e.openBlock(),e.createBlock(n,e.mergeProps({key:s.id||d,onShowGraph:i.handleShowGraph,onDeletePlayer:i.handleDeletePlayer,onShowProfile:i.handleShowProfile,ref_for:!0},s,{age:i.calculateAge(s.dob),stats:i.getPlayerStats(s.player_id),additionalData:i.getPlayerAdditionalData(s.player_id),loading:!o.statsLoaded,"stats-promise":i.transformCategoriesToStats(o.categories),deleteActive:o.deleteActive,isSelected:i.isPlayerSelected(s),onToggleSelection:c=>i.togglePlayerSelection(s),class:"slider-item",style:{width:i.sliderCardWidth+"px"}}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","age","stats","additionalData","loading","stats-promise","deleteActive","isSelected","onToggleSelection","style"]))),128))]),_:1})]),e.createElementVNode("div",ir,[e.createElementVNode("button",{class:"slider-btn prev",onClick:a[0]||(a[0]=(...s)=>i.prevSlide&&i.prevSlide(...s)),disabled:r.currentSlide===0},a[2]||(a[2]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecla-left.png",alt:"prev",class:"nav-icon"},null,-1)]),8,rr),e.createElementVNode("div",nr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.totalPages,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s},[i.shouldShowDot(s-1)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["pagination-dot",{active:i.currentPage===s-1}]),onClick:d=>i.goToPage(s-1)},null,10,sr)):e.createCommentVNode("",!0)],64))),128))]),e.createElementVNode("button",{class:"slider-btn next",onClick:a[1]||(a[1]=(...s)=>i.nextSlide&&i.nextSlide(...s)),disabled:i.isLastPage},a[3]||(a[3]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecha-rigth.png",alt:"next",class:"nav-icon"},null,-1)]),8,dr)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.players,(s,d)=>(e.openBlock(),e.createBlock(n,e.mergeProps({key:d,onShowGraph:i.handleShowGraph,onDeletePlayer:i.handleDeletePlayer,onShowProfile:i.handleShowProfile,ref_for:!0},s,{player:s,age:i.calculateAge(s.dob),stats:i.getPlayerStats(s.player_id),additionalData:i.getPlayerAdditionalData(s.player_id),loading:!o.statsLoaded,"stats-promise":i.transformCategoriesToStats(o.categories),style:{width:i.cardWidth+"px"},deleteActive:o.deleteActive,isSelected:i.isPlayerSelected(s),onToggleSelection:c=>i.togglePlayerSelection(s)}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","player","age","stats","additionalData","loading","stats-promise","style","deleteActive","isSelected","onToggleSelection"]))),128))],2)])}const mr=Ee($t,[["render",cr],["__scopeId","data-v-f6994525"]]),pr=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ur={key:1},fr={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr=["fill"],yr={key:0,class:"checkbox__teams"},gr={class:"checkbox__teams__logo"},br=["src"],Sr={class:"checkbox__teams__logo"},_r=["src"],Cr={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",ur,[(e.openBlock(),e.createElementBlock("svg",fr,[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,hr)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",yr,[e.createElementVNode("div",gr,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,br)]),e.createElementVNode("div",Sr,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,_r)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},Er=pr(Cr,[["__scopeId","data-v-b6f124d8"]]),wr=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Ht={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))}}},Ga=()=>{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}))},qa=Ht.setup;Ht.setup=qa?(t,a)=>(Ga(),qa(t,a)):Ga;const kr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Vr=["src"],Nr={key:1,class:"text"},xr=["src"],Br={class:"stats"},Fr=kr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Tr={class:"numstats"},Mr={class:"leyend"};function Ar(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,Vr)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",Nr,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,xr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",Br,[Fr,e.createElementVNode("div",Tr,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Mr,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Lr=wr(Ht,[["render",Ar],["__scopeId","data-v-f3ee6b2b"]]),Za=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Wt=t=>(e.pushScopeId("data-v-df83603b"),t=t(),e.popScopeId(),t),Pr={key:0,class:"overlay"},Dr=["onClick"],Ir=Wt(()=>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)),Rr=[Ir],vr={class:"name"},Or=["onClick"],zr=Wt(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),Ur=[zr],jr=Wt(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),$r=["onClick"],Hr={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters","sort"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(null),i=e.ref(null),n=e.ref(0);e.ref(!1);const s=e.computed(()=>{const u=l.availablePlayers[0];return u?u.stats:[]}),d=e.computed(()=>{const u=`repeat(${s.value.length}, max-content) 36px`;let m="";return n.value>0&&document.querySelectorAll(".column-title-2").forEach(g=>{m+=`${g.offsetWidth}px `}),{"--grid-template-columns":u,"--grid-template-columns-totals":m||u}});function c(){r.value=new ResizeObserver(u=>{for(const m of u){const{width:g}=m.contentRect;n.value=g}}),r.value.observe(i.value)}function f(u,m){const g=document.querySelectorAll(".scrollable-row-totals")[u+1];g&&(g.style.marginTop=`${m}px`)}function p({player:u,stat:m}){!m.total||m==="0%"||!m.seasons||!m.seasons.length||o("open-media",{...u,stat:m})}function y(u){!u||u==="no"||o("click-parameters",u)}function h(u){o("sort",u)}return e.onMounted(()=>{c()}),a({setMarginTopDetails:f}),(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",Pr)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:i,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(g,_)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${_}`,class:"column-title-2"},[g.parameters&&g.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:B=>y(g.parameters)},Rr,8,Dr)):e.createCommentVNode("",!0),e.createElementVNode("div",vr,e.toDisplayString(g.name),1),(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B=>h(g)},Ur,8,Or))]))),128)),jr],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(g,_)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${g.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.stats,B=>(e.openBlock(),e.createElementBlock("div",{key:B.category_id,class:e.normalizeClass(["row data-info",{odd:_%2!==0,underline:!!B.total&&B.total!=="0%"&&B.seasons&&B.seasons.length}])},[e.createElementVNode("span",{onClick:I=>p({player:g,stat:B})},e.toDisplayString(B.total),9,$r)],2))),128))]))),128))],4))}},Wr=Za(Hr,[["__scopeId","data-v-df83603b"]]),ee=t=>(e.pushScopeId("data-v-14d97ca7"),t=t(),e.popScopeId(),t),Gr={class:"table__static-column"},qr={class:"static-title column-title restore"},Zr=ee(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),Yr=ee(()=>e.createElementVNode("div",null,"Restaurar orden",-1)),Jr=[Zr,Yr],Kr=["id"],Xr={class:"container"},Qr={class:"details-row__info"},en={class:"details-row__info__personal"},tn={class:"bold"},an={class:"bold"},on={class:"bold"},ln={class:"bold"},rn={class:"details-row__info__games"},nn={class:"bold"},sn={class:"bold"},dn=["onClick"],cn=ee(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),mn=ee(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),pn=[cn,mn],un=["onClick"],fn=ee(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),hn=ee(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),yn=[fn,hn],gn=["onClick"],bn=ee(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),Sn=ee(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),_n=[bn,Sn],Cn=["onClick"],En=ee(()=>e.createElementVNode("div",null,"Ver perfil",-1)),wn=[En],kn={class:"static-row__info-player"},Vn={class:"position"},Nn=["onClick"],xn=ee(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Bn=ee(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Fn=ee(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Tn=[xn,Bn,Fn],Mn=["onClick"],An=ee(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Ln=ee(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Pn=ee(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Dn=[An,Ln,Pn],In={class:"player-photo"},Rn=["src"],vn={class:"player-name"},On={class:"arrow"},zn=["onClick"],Un=ee(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),jn=[Un],$n={class:"titles scrollable-row"},Hn={class:"column-title"},Wn=ee(()=>e.createElementVNode("div",null," Equipo ",-1)),Gn=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),qn=[Gn],Zn={class:"column-title"},Yn=ee(()=>e.createElementVNode("div",null," Posición ",-1)),Jn=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),Kn=[Jn],Xn={class:"column-title"},Qn=ee(()=>e.createElementVNode("div",null," Edad ",-1)),es=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),ts=[es],as=ee(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),os={class:"column-title"},ls=ee(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),is=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),rs=[is],ns={class:"column-title"},ss=ee(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),ds=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),cs=[ds],ms={class:"column-title"},ps=ee(()=>e.createElementVNode("div",null," Liga ",-1)),us=ee(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),fs=[us],hs=ee(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),ys={class:"team-logo"},gs=["src"],bs={class:"team-name data-info"},Ss=["src"],_s={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:a}){const o=t;let l=null,r=null;const i=e.ref([]),n=e.ref(null),s=e.ref(null),d=e.ref(0),c=e.ref(0),f=e.ref(-1);e.ref(!1);const p=e.ref(null),y=e.ref(null),h=e.ref(null),u=e.ref([]),m=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),g=e.ref(0),_=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${B.value?"8px":"18px"}`,"--width-static-column":`${B.value?"50%":"256px"}`})),B=e.computed(()=>d.value<600);e.watch(()=>o.players,S=>{S&&S.length&&(i.value=S.map((M,N)=>{const V=N+1,C={...M,position:V<10?`0${V}`:`${V}`,isSelected:!1,isExpanded:!1,isOdd:N%2!==0,index:N};return M.stats&&M.stats.length&&(C.stats=M.stats.map(x=>({...x,isDesc:!1,isRoot:!1}))),C.parameters&&Object.entries(C.parameters).forEach(([x,E])=>{const T=C.stats.find(U=>U.custom_category_id===Number(x));T&&(T.parameters=E)}),C}),u.value=i.value.map(M=>({...M})))},{immediate:!0,deep:!0}),e.watch(()=>o.isEditMode,S=>{S&&i.value.forEach(M=>{M.isSelected=!1})}),e.watch(()=>h.value,S=>{if(S){let M=[...u.value];S.isRoot?M.sort((N,V)=>typeof N[S.name]=="string"?S.isDesc?N[S.name].localeCompare(V[S.name]):N[S.name].localeCompare(V[S.name])*-1:S.isDesc?V[S.name]-N[S.name]:N[S.name]-V[S.name]):M.sort((N,V)=>{const C=N.stats.find(E=>E.name===S.name),x=V.stats.find(E=>E.name===S.name);return typeof C.value=="string"?S.isDesc?C.total.localeCompare(x.total):C.total.localeCompare(x.total)*-1:S.isDesc?x.total-C.total:C.total-x.total}),M.forEach((N,V)=>{N.isOdd=V%2!==0}),u.value=M}else u.value.sort((M,N)=>M.index-N.index).forEach((M,N)=>{M.isOdd=N%2!==0})},{immediate:!0,deep:!0}),e.watch(c,S=>{const M=document.querySelectorAll(".static-row")[f.value+1];M&&(M.style.marginTop=`${S}px`),o.isGeneral?I(f.value,S):s.value&&s.value.setMarginTopDetails(f.value,S),S===0&&p.value&&ae(p.value)});function I(S,M){const N=document.querySelectorAll(".scrollable-row")[S+2];N&&(N.style.marginTop=`${M}px`)}function G(S){a("click-parameters",S)}function z(S){S&&(S.isDesc=!S.isDesc),h.value=S}function H(S){const M=S.player||S.objeto_player,N=M?M.player_id||M.id||M.playerId:S.id||S.player_id,V={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:N?[N]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(S.stat&&S.stat.parameters&&(V.parameters=S.stat.parameters),S.stat&&S.stat.seasons&&S.stat.seasons.length||S.seasons&&S.seasons.length){const C=[...S.stat&&S.stat.seasons&&S.stat.seasons.length?S.stat.seasons:S.seasons];C.sort((x,E)=>x-E),V.seasonId=C.shift(),V.seasonsIds=C}else(S.season_id||S.seasonId)&&(V.seasonId=S.season_id||S.seasonId);S.stat?S.stat.category_id&&S.stat.category_id.length?V.categoryIds=S.stat.category_id:S.stat.custom_category_id&&(V.customCategoryIds=[S.stat.custom_category_id]):V.categoryIds=oe(S.player_position),a("open-media",V)}function q(){l=new ResizeObserver(S=>{for(const M of S)d.value=M.contentRect.width}),l.observe(n.value)}function Z(S){r=new ResizeObserver(M=>{for(const N of M)c.value=N.contentRect.height}),r.observe(S)}function oe(S){return S==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function v(S,M){M.isSelected=S;const N=i.value.filter(V=>V.isSelected);a("change-selected-players",N)}function A(S){a("view-profile",S)}function R(S){a("delete-from-list",S)}function P(S){a("add-to-list",S)}function J(S){a("show-graph",S)}function ae(S){if(S.isExpanded){S.isExpanded=!1,p.value=null;return}const M=i.value.find(x=>x.isExpanded);if(M&&(M.isExpanded=!1),M){p.value=S;return}const N=document.querySelectorAll(".details-row");let V=-1;N.forEach((x,E)=>{x.id===`dr-${S.id}`&&(V=E)});const C=N[V];f.value=V,Z(C),S.isExpanded=!0}let de=!1,re,F,L=function(S){de=!0,re=S.pageX-y.value.offsetLeft,F=y.value.scrollLeft},O=function(){de=!1};function D(){y.value&&(y.value.addEventListener("mousemove",S=>{if(!de)return;const M=S.pageX-y.value.offsetLeft-re;y.value.scrollLeft=F-M}),y.value.addEventListener("mousedown",L,!1),y.value.addEventListener("mouseup",O,!1),y.value.addEventListener("mouseleave",O,!1))}return e.onMounted(()=>{q(),D()}),e.onBeforeUnmount(()=>{l&&l.disconnect(),r&&r.disconnect(),y.value&&(y.value.removeEventListener("mousemove",L,!1),y.value.removeEventListener("mouseup",O,!1),y.value.removeEventListener("mouseleave",O,!1))}),(S,M)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:n,style:e.normalizeStyle(_.value),key:g.value},[e.createElementVNode("div",Gr,[e.createElementVNode("div",qr,[e.createElementVNode("div",{role:"button",class:"restore-button",onClick:M[0]||(M[0]=N=>z(null))},Jr)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,N=>(e.openBlock(),e.createElementBlock("div",{key:`s-${N.id}`,class:e.normalizeClass(["row static-row",{odd:N.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${N.id}`,class:e.normalizeClass(["details-row",{odd:N.isOdd}])},[e.createElementVNode("div",Xr,[e.createElementVNode("div",Qr,[e.createElementVNode("div",en,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",tn,e.toDisplayString(N.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",an,e.toDisplayString(N.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",on,e.toDisplayString(N.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",ln,e.toDisplayString(N.position_name),1)])]),e.createElementVNode("div",rn,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",nn,e.toDisplayString(N.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",sn,e.toDisplayString(N.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(B.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:V=>J(N)},pn,8,dn),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:V=>R(N)},yn,8,un)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:V=>P(N)},_n,8,gn)),e.createElementVNode("div",{role:"button",class:"button green",onClick:V=>A(N)},wn,8,Cn)],4)])],10,Kr),[[e.vShow,N.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(Er),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":N.isSelected,"onUpdate:modelValue":V=>v(V,N)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",kn,[e.createElementVNode("div",Vn,e.toDisplayString(N.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:V=>R(N)},Tn,8,Nn)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:V=>P(N)},Dn,8,Mn)),e.createElementVNode("div",In,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:N.player_photo,alt:"player photo"},null,8,Rn)])]),e.createElementVNode("div",vn,e.toDisplayString(N.player_name),1)]),e.createElementVNode("div",On,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:N.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:V=>ae(N)},jn,10,zn))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:y,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",$n,[e.createElementVNode("div",Hn,[Wn,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[1]||(M[1]=N=>z(m.value[0]))},qn))]),e.createElementVNode("div",Zn,[Yn,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[2]||(M[2]=N=>z(m.value[1]))},Kn))]),e.createElementVNode("div",Xn,[Qn,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[3]||(M[3]=N=>z(m.value[2]))},ts))]),as,e.createElementVNode("div",os,[ls,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[4]||(M[4]=N=>z(m.value[3]))},rs))]),e.createElementVNode("div",ns,[ss,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[5]||(M[5]=N=>z(m.value[4]))},cs))]),e.createElementVNode("div",ms,[ps,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:M[6]||(M[6]=N=>z(m.value[5]))},fs))]),hs]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,N=>(e.openBlock(),e.createElementBlock("div",{key:`i-${N.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:N.isOdd}])},[e.createElementVNode("div",ys,[e.createElementVNode("img",{src:N.team_logo,alt:"team logo"},null,8,gs)]),e.createElementVNode("div",bs,e.toDisplayString(N.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},e.toDisplayString(N.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},e.toDisplayString(N.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},[e.createElementVNode("img",{src:N.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,Ss)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},e.toDisplayString(N.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},e.toDisplayString(N.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},e.toDisplayString(N.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:N.isOdd}])},[e.createVNode(e.unref(Lr),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:V=>H(N)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(Wr,{key:1,ref_key:"scrollColumns",ref:s,"available-players":u.value,"is-edit-mode":t.isEditMode,onOpenMedia:H,onClickParameters:G,onSort:z},null,8,["available-players","is-edit-mode"]))],512)],4))}},Cs=Za(_s,[["__scopeId","data-v-14d97ca7"]]),Gt={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"},Es={name:"ListView",components:{GSCTableScrollable:Cs,ModalViewVarGolstats:$a},props:{categories:{type:Array,default:()=>[],required:!0},isGeneral:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},deleteActive:{type:Boolean,default:!1},playerAddtionalData:{type:Object,default:()=>({})},playerStats:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{showModal:!1,currentParameters:{},playersFormatted:[]}},watch:{players:{immediate:!0,handler(t){this.isGeneral?this.playersFormatted=t.map(a=>this.formatPlayerDataGeneral(a)):this.playersFormatted=t.map(a=>this.formatPlayerData(a))}},playerStats:{handler(t,a){t!==a&&(this.playersFormatted=this.players.map(o=>this.formatPlayerData(o)))},deep:!0}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},showProfile(t){this.$emit("view-profile",t)},deleteFromList(t){this.$emit("delete-from-list",t)},showGraph(t){this.$emit("show-graph",t)},onOpenMedia(t){this.$emit("open-media",t)},formatPlayerDataGeneral(t){var a,o,l,r,i;return{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Gt[`${t.nationality_id}`]||t.nationality,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t.nationality_id+".jpg",player_games:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.games_played)||0,player_min:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.minutes)||0,league_name:(r=this.playerAddtionalData[t.player_id])==null?void 0:r.tournament_name,seasons:[...new Set(this.categories.map(n=>{var s,d;return((d=(s=this.playerStats[t.player_id])==null?void 0:s[n.id_variable])==null?void 0:d.season)||[]}).flat())].filter(n=>n&&n!==0),season_id:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.season_id)||0,stats:this.categories.map(n=>{var s,d,c,f,p,y,h,u;return{category_id:((d=(s=this.playerStats[t.player_id])==null?void 0:s[n.id_variable])==null?void 0:d.categories)||null,custom_category_id:((f=(c=this.playerStats[t.player_id])==null?void 0:c[n.id_variable])==null?void 0:f.variable_id)||null,name:n.name,parameters:n.parameters,total:((y=(p=this.playerStats[t.player_id])==null?void 0:p[n.id_variable])==null?void 0:y.value)||0,seasons:((u=(h=this.playerStats[t.player_id])==null?void 0:h[n.id_variable])==null?void 0:u.season)||null}})}},formatPlayerData(t){var a,o,l,r;return Object.keys(this.playerStats[t.player_id])[0],{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Gt[`${t.nationality_id}`]||t.nationality,player_country_flag:t.countryFlag,player_games:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.games_played)||0,player_min:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.minutes)||0,league_name:"-",seasons:[...new Set(this.categories.map(i=>{var n,s;return((s=(n=this.playerStats[t.player_id])==null?void 0:n[i.id_variable])==null?void 0:s.season)||[]}).flat())].filter(i=>i&&i!==0),season_id:((r=this.playerAddtionalData[t.player_id])==null?void 0:r.season_id)||0,stats:this.categories.map(i=>{var n,s,d,c,f,p,y,h;return{category_id:((s=(n=this.playerStats[t.player_id])==null?void 0:n[i.id_variable])==null?void 0:s.categories)||null,custom_category_id:((c=(d=this.playerStats[t.player_id])==null?void 0:d[i.id_variable])==null?void 0:c.variable_id)||null,name:i.name,parameters:i.parameters,total:((p=(f=this.playerStats[t.player_id])==null?void 0:f[i.id_variable])==null?void 0:p.value)||0,seasons:((h=(y=this.playerStats[t.player_id])==null?void 0:y[i.id_variable])==null?void 0:h.season)||null}})}},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},handleSelectedPlayers(t){const a=t.map(o=>o.objeto_player);this.$emit("change-selected-players",a)}}},ws={class:"list-view"};function ks(t,a,o,l,r,i){const n=e.resolveComponent("ModalViewVarGolstats"),s=e.resolveComponent("GSCTableScrollable");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n,{isVisible:r.showModal,"onUpdate:isVisible":a[0]||(a[0]=d=>r.showModal=d),onClose:i.closeModal,parameters:r.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",ws,[e.createVNode(s,{players:r.playersFormatted,"is-general":o.isGeneral,"is-edit-mode":o.deleteActive,"is-table-from-list":!0,onChangeSelectedPlayers:i.handleSelectedPlayers,onViewProfile:i.showProfile,onDeleteFromList:i.deleteFromList,onShowGraph:i.showGraph,onOpenMedia:i.onOpenMedia,onClickParameters:i.onClickParameters},null,8,["players","is-general","is-edit-mode","onChangeSelectedPlayers","onViewProfile","onDeleteFromList","onShowGraph","onOpenMedia","onClickParameters"])])],64)}const Vs=Ee(Es,[["render",ks],["__scopeId","data-v-b865218d"]]);function Ya(t,a){return function(){return t.apply(a,arguments)}}const{toString:Ns}=Object.prototype,{getPrototypeOf:qt}=Object,dt=(t=>a=>{const o=Ns.call(a);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Se=t=>(t=t.toLowerCase(),a=>dt(a)===t),ct=t=>a=>typeof a===t,{isArray:Ue}=Array,Je=ct("undefined");function xs(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&he(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ja=Se("ArrayBuffer");function Bs(t){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(t):a=t&&t.buffer&&Ja(t.buffer),a}const Fs=ct("string"),he=ct("function"),Ka=ct("number"),mt=t=>t!==null&&typeof t=="object",Ts=t=>t===!0||t===!1,pt=t=>{if(dt(t)!=="object")return!1;const a=qt(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ms=Se("Date"),As=Se("File"),Ls=Se("Blob"),Ps=Se("FileList"),Ds=t=>mt(t)&&he(t.pipe),Is=t=>{let a;return t&&(typeof FormData=="function"&&t instanceof FormData||he(t.append)&&((a=dt(t))==="formdata"||a==="object"&&he(t.toString)&&t.toString()==="[object FormData]"))},Rs=Se("URLSearchParams"),[vs,Os,zs,Us]=["ReadableStream","Request","Response","Headers"].map(Se),js=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ke(t,a,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let l,r;if(typeof t!="object"&&(t=[t]),Ue(t))for(l=0,r=t.length;l<r;l++)a.call(null,t[l],l,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),n=i.length;let s;for(l=0;l<n;l++)s=i[l],a.call(null,t[s],s,t)}}function Xa(t,a){a=a.toLowerCase();const o=Object.keys(t);let l=o.length,r;for(;l-- >0;)if(r=o[l],a===r.toLowerCase())return r;return null}const Me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qa=t=>!Je(t)&&t!==Me;function Zt(){const{caseless:t}=Qa(this)&&this||{},a={},o=(l,r)=>{const i=t&&Xa(a,r)||r;pt(a[i])&&pt(l)?a[i]=Zt(a[i],l):pt(l)?a[i]=Zt({},l):Ue(l)?a[i]=l.slice():a[i]=l};for(let l=0,r=arguments.length;l<r;l++)arguments[l]&&Ke(arguments[l],o);return a}const $s=(t,a,o,{allOwnKeys:l}={})=>(Ke(a,(r,i)=>{o&&he(r)?t[i]=Ya(r,o):t[i]=r},{allOwnKeys:l}),t),Hs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ws=(t,a,o,l)=>{t.prototype=Object.create(a.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:a.prototype}),o&&Object.assign(t.prototype,o)},Gs=(t,a,o,l)=>{let r,i,n;const s={};if(a=a||{},t==null)return a;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)n=r[i],(!l||l(n,t,a))&&!s[n]&&(a[n]=t[n],s[n]=!0);t=o!==!1&&qt(t)}while(t&&(!o||o(t,a))&&t!==Object.prototype);return a},qs=(t,a,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=a.length;const l=t.indexOf(a,o);return l!==-1&&l===o},Zs=t=>{if(!t)return null;if(Ue(t))return t;let a=t.length;if(!Ka(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=t[a];return o},Ys=(t=>a=>t&&a instanceof t)(typeof Uint8Array<"u"&&qt(Uint8Array)),Js=(t,a)=>{const l=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=l.next())&&!r.done;){const i=r.value;a.call(t,i[0],i[1])}},Ks=(t,a)=>{let o;const l=[];for(;(o=t.exec(a))!==null;)l.push(o);return l},Xs=Se("HTMLFormElement"),Qs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,l,r){return l.toUpperCase()+r}),eo=(({hasOwnProperty:t})=>(a,o)=>t.call(a,o))(Object.prototype),ed=Se("RegExp"),to=(t,a)=>{const o=Object.getOwnPropertyDescriptors(t),l={};Ke(o,(r,i)=>{let n;(n=a(r,i,t))!==!1&&(l[i]=n||r)}),Object.defineProperties(t,l)},td=t=>{to(t,(a,o)=>{if(he(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const l=t[o];if(he(l)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},ad=(t,a)=>{const o={},l=r=>{r.forEach(i=>{o[i]=!0})};return Ue(t)?l(t):l(String(t).split(a)),o},od=()=>{},ld=(t,a)=>t!=null&&Number.isFinite(t=+t)?t:a;function id(t){return!!(t&&he(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rd=t=>{const a=new Array(10),o=(l,r)=>{if(mt(l)){if(a.indexOf(l)>=0)return;if(!("toJSON"in l)){a[r]=l;const i=Ue(l)?[]:{};return Ke(l,(n,s)=>{const d=o(n,r+1);!Je(d)&&(i[s]=d)}),a[r]=void 0,i}}return l};return o(t,0)},nd=Se("AsyncFunction"),sd=t=>t&&(mt(t)||he(t))&&he(t.then)&&he(t.catch),ao=((t,a)=>t?setImmediate:a?((o,l)=>(Me.addEventListener("message",({source:r,data:i})=>{r===Me&&i===o&&l.length&&l.shift()()},!1),r=>{l.push(r),Me.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",he(Me.postMessage)),dd=typeof queueMicrotask<"u"?queueMicrotask.bind(Me):typeof process<"u"&&process.nextTick||ao,w={isArray:Ue,isArrayBuffer:Ja,isBuffer:xs,isFormData:Is,isArrayBufferView:Bs,isString:Fs,isNumber:Ka,isBoolean:Ts,isObject:mt,isPlainObject:pt,isReadableStream:vs,isRequest:Os,isResponse:zs,isHeaders:Us,isUndefined:Je,isDate:Ms,isFile:As,isBlob:Ls,isRegExp:ed,isFunction:he,isStream:Ds,isURLSearchParams:Rs,isTypedArray:Ys,isFileList:Ps,forEach:Ke,merge:Zt,extend:$s,trim:js,stripBOM:Hs,inherits:Ws,toFlatObject:Gs,kindOf:dt,kindOfTest:Se,endsWith:qs,toArray:Zs,forEachEntry:Js,matchAll:Ks,isHTMLForm:Xs,hasOwnProperty:eo,hasOwnProp:eo,reduceDescriptors:to,freezeMethods:td,toObjectSet:ad,toCamelCase:Qs,noop:od,toFiniteNumber:ld,findKey:Xa,global:Me,isContextDefined:Qa,isSpecCompliantForm:id,toJSONObject:rd,isAsyncFn:nd,isThenable:sd,setImmediate:ao,asap:dd};function j(t,a,o,l,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),r&&(this.response=r,this.status=r.status?r.status:null)}w.inherits(j,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:w.toJSONObject(this.config),code:this.code,status:this.status}}});const oo=j.prototype,lo={};["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=>{lo[t]={value:t}}),Object.defineProperties(j,lo),Object.defineProperty(oo,"isAxiosError",{value:!0}),j.from=(t,a,o,l,r,i)=>{const n=Object.create(oo);return w.toFlatObject(t,n,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),j.call(n,t.message,a,o,l,r),n.cause=t,n.name=t.name,i&&Object.assign(n,i),n};const cd=null;function Yt(t){return w.isPlainObject(t)||w.isArray(t)}function io(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function ro(t,a,o){return t?t.concat(a).map(function(r,i){return r=io(r),!o&&i?"["+r+"]":r}).join(o?".":""):a}function md(t){return w.isArray(t)&&!t.some(Yt)}const pd=w.toFlatObject(w,{},null,function(a){return/^is[A-Z]/.test(a)});function ut(t,a,o){if(!w.isObject(t))throw new TypeError("target must be an object");a=a||new FormData,o=w.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!w.isUndefined(g[m])});const l=o.metaTokens,r=o.visitor||f,i=o.dots,n=o.indexes,d=(o.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(a);if(!w.isFunction(r))throw new TypeError("visitor must be a function");function c(u){if(u===null)return"";if(w.isDate(u))return u.toISOString();if(!d&&w.isBlob(u))throw new j("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(u)||w.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function f(u,m,g){let _=u;if(u&&!g&&typeof u=="object"){if(w.endsWith(m,"{}"))m=l?m:m.slice(0,-2),u=JSON.stringify(u);else if(w.isArray(u)&&md(u)||(w.isFileList(u)||w.endsWith(m,"[]"))&&(_=w.toArray(u)))return m=io(m),_.forEach(function(I,G){!(w.isUndefined(I)||I===null)&&a.append(n===!0?ro([m],G,i):n===null?m:m+"[]",c(I))}),!1}return Yt(u)?!0:(a.append(ro(g,m,i),c(u)),!1)}const p=[],y=Object.assign(pd,{defaultVisitor:f,convertValue:c,isVisitable:Yt});function h(u,m){if(!w.isUndefined(u)){if(p.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(u),w.forEach(u,function(_,B){(!(w.isUndefined(_)||_===null)&&r.call(a,_,w.isString(B)?B.trim():B,m,y))===!0&&h(_,m?m.concat(B):[B])}),p.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return h(t),a}function no(t){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(l){return a[l]})}function Jt(t,a){this._pairs=[],t&&ut(t,this,a)}const so=Jt.prototype;so.append=function(a,o){this._pairs.push([a,o])},so.toString=function(a){const o=a?function(l){return a.call(this,l,no)}:no;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function ud(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function co(t,a,o){if(!a)return t;const l=o&&o.encode||ud;w.isFunction(o)&&(o={serialize:o});const r=o&&o.serialize;let i;if(r?i=r(a,o):i=w.isURLSearchParams(a)?a.toString():new Jt(a,o).toString(l),i){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class mo{constructor(){this.handlers=[]}use(a,o,l){return this.handlers.push({fulfilled:a,rejected:o,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){w.forEach(this.handlers,function(l){l!==null&&a(l)})}}const po={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Jt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Kt=typeof window<"u"&&typeof document<"u",Xt=typeof navigator=="object"&&navigator||void 0,hd=Kt&&(!Xt||["ReactNative","NativeScript","NS"].indexOf(Xt.product)<0),yd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gd=Kt&&window.location.href||"http://localhost",me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kt,hasStandardBrowserEnv:hd,hasStandardBrowserWebWorkerEnv:yd,navigator:Xt,origin:gd},Symbol.toStringTag,{value:"Module"})),...fd};function bd(t,a){return ut(t,new me.classes.URLSearchParams,Object.assign({visitor:function(o,l,r,i){return me.isNode&&w.isBuffer(o)?(this.append(l,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Sd(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(a=>a[0]==="[]"?"":a[1]||a[0])}function _d(t){const a={},o=Object.keys(t);let l;const r=o.length;let i;for(l=0;l<r;l++)i=o[l],a[i]=t[i];return a}function uo(t){function a(o,l,r,i){let n=o[i++];if(n==="__proto__")return!0;const s=Number.isFinite(+n),d=i>=o.length;return n=!n&&w.isArray(r)?r.length:n,d?(w.hasOwnProp(r,n)?r[n]=[r[n],l]:r[n]=l,!s):((!r[n]||!w.isObject(r[n]))&&(r[n]=[]),a(o,l,r[n],i)&&w.isArray(r[n])&&(r[n]=_d(r[n])),!s)}if(w.isFormData(t)&&w.isFunction(t.entries)){const o={};return w.forEachEntry(t,(l,r)=>{a(Sd(l),r,o,0)}),o}return null}function Cd(t,a,o){if(w.isString(t))try{return(a||JSON.parse)(t),w.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(o||JSON.stringify)(t)}const Xe={transitional:po,adapter:["xhr","http","fetch"],transformRequest:[function(a,o){const l=o.getContentType()||"",r=l.indexOf("application/json")>-1,i=w.isObject(a);if(i&&w.isHTMLForm(a)&&(a=new FormData(a)),w.isFormData(a))return r?JSON.stringify(uo(a)):a;if(w.isArrayBuffer(a)||w.isBuffer(a)||w.isStream(a)||w.isFile(a)||w.isBlob(a)||w.isReadableStream(a))return a;if(w.isArrayBufferView(a))return a.buffer;if(w.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let s;if(i){if(l.indexOf("application/x-www-form-urlencoded")>-1)return bd(a,this.formSerializer).toString();if((s=w.isFileList(a))||l.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ut(s?{"files[]":a}:a,d&&new d,this.formSerializer)}}return i||r?(o.setContentType("application/json",!1),Cd(a)):a}],transformResponse:[function(a){const o=this.transitional||Xe.transitional,l=o&&o.forcedJSONParsing,r=this.responseType==="json";if(w.isResponse(a)||w.isReadableStream(a))return a;if(a&&w.isString(a)&&(l&&!this.responseType||r)){const n=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(a)}catch(s){if(n)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Xe.headers[t]={}});const Ed=w.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"]),wd=t=>{const a={};let o,l,r;return t&&t.split(`
|
|
2
|
+
`).forEach(function(n){r=n.indexOf(":"),o=n.substring(0,r).trim().toLowerCase(),l=n.substring(r+1).trim(),!(!o||a[o]&&Ed[o])&&(o==="set-cookie"?a[o]?a[o].push(l):a[o]=[l]:a[o]=a[o]?a[o]+", "+l:l)}),a},fo=Symbol("internals");function Qe(t){return t&&String(t).trim().toLowerCase()}function ft(t){return t===!1||t==null?t:w.isArray(t)?t.map(ft):String(t)}function kd(t){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=o.exec(t);)a[l[1]]=l[2];return a}const Vd=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qt(t,a,o,l,r){if(w.isFunction(l))return l.call(this,a,o);if(r&&(a=o),!!w.isString(a)){if(w.isString(l))return a.indexOf(l)!==-1;if(w.isRegExp(l))return l.test(a)}}function Nd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,l)=>o.toUpperCase()+l)}function xd(t,a){const o=w.toCamelCase(" "+a);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+o,{value:function(r,i,n){return this[l].call(this,a,r,i,n)},configurable:!0})})}let ue=class{constructor(a){a&&this.set(a)}set(a,o,l){const r=this;function i(s,d,c){const f=Qe(d);if(!f)throw new Error("header name must be a non-empty string");const p=w.findKey(r,f);(!p||r[p]===void 0||c===!0||c===void 0&&r[p]!==!1)&&(r[p||d]=ft(s))}const n=(s,d)=>w.forEach(s,(c,f)=>i(c,f,d));if(w.isPlainObject(a)||a instanceof this.constructor)n(a,o);else if(w.isString(a)&&(a=a.trim())&&!Vd(a))n(wd(a),o);else if(w.isHeaders(a))for(const[s,d]of a.entries())i(d,s,l);else a!=null&&i(o,a,l);return this}get(a,o){if(a=Qe(a),a){const l=w.findKey(this,a);if(l){const r=this[l];if(!o)return r;if(o===!0)return kd(r);if(w.isFunction(o))return o.call(this,r,l);if(w.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=Qe(a),a){const l=w.findKey(this,a);return!!(l&&this[l]!==void 0&&(!o||Qt(this,this[l],l,o)))}return!1}delete(a,o){const l=this;let r=!1;function i(n){if(n=Qe(n),n){const s=w.findKey(l,n);s&&(!o||Qt(l,l[s],s,o))&&(delete l[s],r=!0)}}return w.isArray(a)?a.forEach(i):i(a),r}clear(a){const o=Object.keys(this);let l=o.length,r=!1;for(;l--;){const i=o[l];(!a||Qt(this,this[i],i,a,!0))&&(delete this[i],r=!0)}return r}normalize(a){const o=this,l={};return w.forEach(this,(r,i)=>{const n=w.findKey(l,i);if(n){o[n]=ft(r),delete o[i];return}const s=a?Nd(i):String(i).trim();s!==i&&delete o[i],o[s]=ft(r),l[s]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return w.forEach(this,(l,r)=>{l!=null&&l!==!1&&(o[r]=a&&w.isArray(l)?l.join(", "):l)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const l=new this(a);return o.forEach(r=>l.set(r)),l}static accessor(a){const l=(this[fo]=this[fo]={accessors:{}}).accessors,r=this.prototype;function i(n){const s=Qe(n);l[s]||(xd(r,n),l[s]=!0)}return w.isArray(a)?a.forEach(i):i(a),this}};ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(ue.prototype,({value:t},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>t,set(l){this[o]=l}}}),w.freezeMethods(ue);function ea(t,a){const o=this||Xe,l=a||o,r=ue.from(l.headers);let i=l.data;return w.forEach(t,function(s){i=s.call(o,i,r.normalize(),a?a.status:void 0)}),r.normalize(),i}function ho(t){return!!(t&&t.__CANCEL__)}function je(t,a,o){j.call(this,t??"canceled",j.ERR_CANCELED,a,o),this.name="CanceledError"}w.inherits(je,j,{__CANCEL__:!0});function yo(t,a,o){const l=o.config.validateStatus;!o.status||!l||l(o.status)?t(o):a(new j("Request failed with status code "+o.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Bd(t){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}function Fd(t,a){t=t||10;const o=new Array(t),l=new Array(t);let r=0,i=0,n;return a=a!==void 0?a:1e3,function(d){const c=Date.now(),f=l[i];n||(n=c),o[r]=d,l[r]=c;let p=i,y=0;for(;p!==r;)y+=o[p++],p=p%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),c-n<a)return;const h=f&&c-f;return h?Math.round(y*1e3/h):void 0}}function Td(t,a){let o=0,l=1e3/a,r,i;const n=(c,f=Date.now())=>{o=f,r=null,i&&(clearTimeout(i),i=null),t.apply(null,c)};return[(...c)=>{const f=Date.now(),p=f-o;p>=l?n(c,f):(r=c,i||(i=setTimeout(()=>{i=null,n(r)},l-p)))},()=>r&&n(r)]}const ht=(t,a,o=3)=>{let l=0;const r=Fd(50,250);return Td(i=>{const n=i.loaded,s=i.lengthComputable?i.total:void 0,d=n-l,c=r(d),f=n<=s;l=n;const p={loaded:n,total:s,progress:s?n/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&f?(s-n)/c:void 0,event:i,lengthComputable:s!=null,[a?"download":"upload"]:!0};t(p)},o)},go=(t,a)=>{const o=t!=null;return[l=>a[0]({lengthComputable:o,total:t,loaded:l}),a[1]]},bo=t=>(...a)=>w.asap(()=>t(...a)),Md=me.hasStandardBrowserEnv?((t,a)=>o=>(o=new URL(o,me.origin),t.protocol===o.protocol&&t.host===o.host&&(a||t.port===o.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,Ad=me.hasStandardBrowserEnv?{write(t,a,o,l,r,i){const n=[t+"="+encodeURIComponent(a)];w.isNumber(o)&&n.push("expires="+new Date(o).toGMTString()),w.isString(l)&&n.push("path="+l),w.isString(r)&&n.push("domain="+r),i===!0&&n.push("secure"),document.cookie=n.join("; ")},read(t){const a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ld(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Pd(t,a){return a?t.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):t}function So(t,a,o){let l=!Ld(a);return t&&(l||o==!1)?Pd(t,a):a}const _o=t=>t instanceof ue?{...t}:t;function Ae(t,a){a=a||{};const o={};function l(c,f,p,y){return w.isPlainObject(c)&&w.isPlainObject(f)?w.merge.call({caseless:y},c,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}function r(c,f,p,y){if(w.isUndefined(f)){if(!w.isUndefined(c))return l(void 0,c,p,y)}else return l(c,f,p,y)}function i(c,f){if(!w.isUndefined(f))return l(void 0,f)}function n(c,f){if(w.isUndefined(f)){if(!w.isUndefined(c))return l(void 0,c)}else return l(void 0,f)}function s(c,f,p){if(p in a)return l(c,f);if(p in t)return l(void 0,c)}const d={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:s,headers:(c,f,p)=>r(_o(c),_o(f),p,!0)};return w.forEach(Object.keys(Object.assign({},t,a)),function(f){const p=d[f]||r,y=p(t[f],a[f],f);w.isUndefined(y)&&p!==s||(o[f]=y)}),o}const Co=t=>{const a=Ae({},t);let{data:o,withXSRFToken:l,xsrfHeaderName:r,xsrfCookieName:i,headers:n,auth:s}=a;a.headers=n=ue.from(n),a.url=co(So(a.baseURL,a.url,a.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&n.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(w.isFormData(o)){if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if((d=n.getContentType())!==!1){const[c,...f]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];n.setContentType([c||"multipart/form-data",...f].join("; "))}}if(me.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(a)),l||l!==!1&&Md(a.url))){const c=r&&i&&Ad.read(i);c&&n.set(r,c)}return a},Dd=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(o,l){const r=Co(t);let i=r.data;const n=ue.from(r.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:c}=r,f,p,y,h,u;function m(){h&&h(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(){if(!g)return;const I=ue.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),z={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:I,config:t,request:g};yo(function(q){o(q),m()},function(q){l(q),m()},z),g=null}"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(_)},g.onabort=function(){g&&(l(new j("Request aborted",j.ECONNABORTED,t,g)),g=null)},g.onerror=function(){l(new j("Network Error",j.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let G=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const z=r.transitional||po;r.timeoutErrorMessage&&(G=r.timeoutErrorMessage),l(new j(G,z.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,g)),g=null},i===void 0&&n.setContentType(null),"setRequestHeader"in g&&w.forEach(n.toJSON(),function(G,z){g.setRequestHeader(z,G)}),w.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([y,u]=ht(c,!0),g.addEventListener("progress",y)),d&&g.upload&&([p,h]=ht(d),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(f=I=>{g&&(l(!I||I.type?new je(null,t,g):I),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const B=Bd(r.url);if(B&&me.protocols.indexOf(B)===-1){l(new j("Unsupported protocol "+B+":",j.ERR_BAD_REQUEST,t));return}g.send(i||null)})},Id=(t,a)=>{const{length:o}=t=t?t.filter(Boolean):[];if(a||o){let l=new AbortController,r;const i=function(c){if(!r){r=!0,s();const f=c instanceof Error?c:this.reason;l.abort(f instanceof j?f:new je(f instanceof Error?f.message:f))}};let n=a&&setTimeout(()=>{n=null,i(new j(`timeout ${a} of ms exceeded`,j.ETIMEDOUT))},a);const s=()=>{t&&(n&&clearTimeout(n),n=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:d}=l;return d.unsubscribe=()=>w.asap(s),d}},Rd=function*(t,a){let o=t.byteLength;if(o<a){yield t;return}let l=0,r;for(;l<o;)r=l+a,yield t.slice(l,r),l=r},vd=async function*(t,a){for await(const o of Od(t))yield*Rd(o,a)},Od=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const a=t.getReader();try{for(;;){const{done:o,value:l}=await a.read();if(o)break;yield l}}finally{await a.cancel()}},Eo=(t,a,o,l)=>{const r=vd(t,a);let i=0,n,s=d=>{n||(n=!0,l&&l(d))};return new ReadableStream({async pull(d){try{const{done:c,value:f}=await r.next();if(c){s(),d.close();return}let p=f.byteLength;if(o){let y=i+=p;o(y)}d.enqueue(new Uint8Array(f))}catch(c){throw s(c),c}},cancel(d){return s(d),r.return()}},{highWaterMark:2})},yt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wo=yt&&typeof ReadableStream=="function",zd=yt&&(typeof TextEncoder=="function"?(t=>a=>t.encode(a))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ko=(t,...a)=>{try{return!!t(...a)}catch{return!1}},Ud=wo&&ko(()=>{let t=!1;const a=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!a}),Vo=64*1024,ta=wo&&ko(()=>w.isReadableStream(new Response("").body)),gt={stream:ta&&(t=>t.body)};yt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!gt[a]&&(gt[a]=w.isFunction(t[a])?o=>o[a]():(o,l)=>{throw new j(`Response type '${a}' is not supported`,j.ERR_NOT_SUPPORT,l)})})})(new Response);const jd=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(me.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await zd(t)).byteLength},$d=async(t,a)=>{const o=w.toFiniteNumber(t.getContentLength());return o??jd(a)},aa={http:cd,xhr:Dd,fetch:yt&&(async t=>{let{url:a,method:o,data:l,signal:r,cancelToken:i,timeout:n,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:f,withCredentials:p="same-origin",fetchOptions:y}=Co(t);c=c?(c+"").toLowerCase():"text";let h=Id([r,i&&i.toAbortSignal()],n),u;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(d&&Ud&&o!=="get"&&o!=="head"&&(g=await $d(f,l))!==0){let z=new Request(a,{method:"POST",body:l,duplex:"half"}),H;if(w.isFormData(l)&&(H=z.headers.get("content-type"))&&f.setContentType(H),z.body){const[q,Z]=go(g,ht(bo(d)));l=Eo(z.body,Vo,q,Z)}}w.isString(p)||(p=p?"include":"omit");const _="credentials"in Request.prototype;u=new Request(a,{...y,signal:h,method:o.toUpperCase(),headers:f.normalize().toJSON(),body:l,duplex:"half",credentials:_?p:void 0});let B=await fetch(u);const I=ta&&(c==="stream"||c==="response");if(ta&&(s||I&&m)){const z={};["status","statusText","headers"].forEach(oe=>{z[oe]=B[oe]});const H=w.toFiniteNumber(B.headers.get("content-length")),[q,Z]=s&&go(H,ht(bo(s),!0))||[];B=new Response(Eo(B.body,Vo,q,()=>{Z&&Z(),m&&m()}),z)}c=c||"text";let G=await gt[w.findKey(gt,c)||"text"](B,t);return!I&&m&&m(),await new Promise((z,H)=>{yo(z,H,{data:G,headers:ue.from(B.headers),status:B.status,statusText:B.statusText,config:t,request:u})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,t,u),{cause:_.cause||_}):j.from(_,_&&_.code,t,u)}})};w.forEach(aa,(t,a)=>{if(t){try{Object.defineProperty(t,"name",{value:a})}catch{}Object.defineProperty(t,"adapterName",{value:a})}});const No=t=>`- ${t}`,Hd=t=>w.isFunction(t)||t===null||t===!1,xo={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:a}=t;let o,l;const r={};for(let i=0;i<a;i++){o=t[i];let n;if(l=o,!Hd(o)&&(l=aa[(n=String(o)).toLowerCase()],l===void 0))throw new j(`Unknown adapter '${n}'`);if(l)break;r[n||"#"+i]=l}if(!l){const i=Object.entries(r).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let n=a?i.length>1?`since :
|
|
4
4
|
`+i.map(No).join(`
|
|
5
|
-
`):" "+No(i[0]):"as no adapter specified";throw new
|
|
6
|
-
`+i):l.stack=i}catch{}}throw l}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ae(this.defaults,o);const{transitional:l,paramsSerializer:r,headers:i}=o;l!==void 0&&St.assertOptions(l,{silentJSONParsing:we.transitional(we.boolean),forcedJSONParsing:we.transitional(we.boolean),clarifyTimeoutError:we.transitional(we.boolean)},!1),r!=null&&(C.isFunction(r)?o.paramsSerializer={serialize:r}:St.assertOptions(r,{encode:we.function,serialize:we.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),St.assertOptions(o,{baseUrl:we.spelling("baseURL"),withXsrfToken:we.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let n=i&&C.merge(i.common,i[o.method]);i&&C.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),o.headers=ue.concat(n,i);const s=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(d=d&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let h,p=0,y;if(!d){const u=[Bo.bind(this),void 0];for(u.unshift.apply(u,s),u.push.apply(u,c),y=u.length,h=Promise.resolve(o);p<y;)h=h.then(u[p++],u[p++]);return h}y=s.length;let f=o;for(p=0;p<y;){const u=s[p++],m=s[p++];try{f=u(f)}catch(g){m.call(this,g);break}}try{h=Bo.call(this,f)}catch(u){return Promise.reject(u)}for(p=0,y=c.length;p<y;)h=h.then(c[p++],c[p++]);return h}getUri(a){a=Ae(this.defaults,a);const o=So(a.baseURL,a.url,a.allowAbsoluteUrls);return co(o,a.params,a.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(a){Le.prototype[a]=function(o,l){return this.request(Ae(l||{},{method:a,url:o,data:(l||{}).data}))}}),C.forEach(["post","put","patch"],function(a){function o(l){return function(i,n,s){return this.request(Ae(s||{},{method:a,headers:l?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Le.prototype[a]=o(),Le.prototype[a+"Form"]=o(!0)});let ud=class Jl{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const l=this;this.promise.then(r=>{if(!l._listeners)return;let i=l._listeners.length;for(;i-- >0;)l._listeners[i](r);l._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(s=>{l.subscribe(s),i=s}).then(r);return n.cancel=function(){l.unsubscribe(i)},n},a(function(i,n,s){l.reason||(l.reason=new je(i,n,s),o(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const a=new AbortController,o=l=>{a.abort(l)};return this.subscribe(o),a.signal.unsubscribe=()=>this.unsubscribe(o),a.signal}static source(){let a;return{token:new Jl(function(r){a=r}),cancel:a}}};function fd(t){return function(o){return t.apply(null,o)}}function hd(t){return C.isObject(t)&&t.isAxiosError===!0}const oa={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(oa).forEach(([t,a])=>{oa[a]=t});function Mo(t){const a=new Le(t),o=Ya(Le.prototype.request,a);return C.extend(o,Le.prototype,a,{allOwnKeys:!0}),C.extend(o,a,null,{allOwnKeys:!0}),o.create=function(r){return Mo(Ae(t,r))},o}const Q=Mo(Xe);Q.Axios=Le,Q.CanceledError=je,Q.CancelToken=ud,Q.isCancel=ho,Q.VERSION=Fo,Q.toFormData=ut,Q.AxiosError=$,Q.Cancel=Q.CanceledError,Q.all=function(a){return Promise.all(a)},Q.spread=fd,Q.isAxiosError=hd,Q.mergeConfig=Ae,Q.AxiosHeaders=ue,Q.formToJSON=t=>uo(C.isHTMLForm(t)?new FormData(t):t),Q.getAdapter=xo.getAdapter,Q.HttpStatusCode=oa,Q.default=Q;const{Axios:J7,AxiosError:K7,CanceledError:X7,isCancel:Q7,CancelToken:e9,VERSION:t9,all:a9,Cancel:o9,isAxiosError:l9,spread:i9,toFormData:r9,AxiosHeaders:n9,HttpStatusCode:s9,formToJSON:d9,getAdapter:c9,mergeConfig:m9}=Q,_t=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,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 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:1934,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:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],se={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},yd=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},gd={key:1},bd={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sd=["fill"],_d={key:0,class:"checkbox__teams"},Cd={class:"checkbox__teams__logo"},Ed=["src"],wd={class:"checkbox__teams__logo"},kd=["src"],Vd={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",gd,[(e.openBlock(),e.createElementBlock("svg",bd,[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,Sd)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",_d,[e.createElementVNode("div",Cd,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,Ed)]),e.createElementVNode("div",wd,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,kd)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},J=yd(Vd,[["__scopeId","data-v-b6f124d8"]]),X=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Nd={class:"container"},xd={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bd=["fill"],Fd={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Td=["fill"],Md={__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(a=>({"563e5242":t.width,a529e9a4:t.height})),(a,o)=>(e.openBlock(),e.createElementBlock("div",Nd,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",xd,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,Bd)])):(e.openBlock(),e.createElementBlock("svg",Fd,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,Td)]))]))}},Pe=X(Md,[["__scopeId","data-v-166b6226"]]),$e=t=>(e.pushScopeId("data-v-a2dffe27"),t=t(),e.popScopeId(),t),Ad={class:"productivity"},Ld={class:"productivity__body__offensive"},Pd={class:"productivity__body__title"},Dd={class:"productivity__body__title__info"},Id={class:"number-of-categories"},vd={class:"productivity__body__categories"},Rd={class:"productivity__body__defensive-possession"},Od={class:"block"},zd={class:"productivity__body__title"},Ud={class:"productivity__body__title__info"},jd={class:"number-of-categories"},$d={class:"productivity__body__categories"},Hd={class:"block"},Wd={class:"productivity__body__title"},Gd={class:"productivity__body__title__info"},qd={class:"number-of-categories"},Zd={class:"productivity__body__categories"},Yd=["onClick"],Jd=$e(()=>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)),Kd=[Jd],Xd={key:0,class:"productivity__footer"},Qd={class:"productivity__footer__offenses"},ec=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),tc={class:"productivity__footer__offenses__table"},ac=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Si"),e.createElementVNode("div",null,"No")],-1)),oc={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},lc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),ic={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},rc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),nc={class:"productivity__footer__offenses__table__row has-padding"},sc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),dc={__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}},emits:["update:offensesConditions","click-parameters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.ref(!1),i=e.ref(!1),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),s=e.computed(()=>({"--template-columns":o.isExpansionMode?"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(()=>o.productivityCategories.offensive.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),c=e.computed(()=>o.productivityCategories.defensive.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),h=e.computed(()=>o.productivityCategories.possession.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),p=e.computed(()=>o.isFromTemplates||o.isForTemplateForm);e.watch(()=>o.productivityCategories,m=>{n.value.areYellowCardsSelected=m.offensesConditions.areYellowCardsSelected,n.value.areRedCardsSelected=m.offensesConditions.areRedCardsSelected,n.value.areFoulsCommittedSelected=m.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),e.watch(n,m=>{a("update:offensesConditions",m)},{deep:!0,immediate:!0});function y(m,g){g.isSelected=m,setTimeout(()=>{g.priority=o.numberOfCategoriesSelected},10)}function f(m){a("click-parameters",m)}function u(m){m==="offensive"?l.value=!l.value:m==="defensive"?r.value=!r.value:m==="possession"&&(i.value=!i.value)}return(m,g)=>(e.openBlock(),e.createElementBlock("div",Ad,[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",Ld,[e.createElementVNode("div",Pd,[e.createElementVNode("div",Dd,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",Id,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[0]||(g[0]=b=>u("offensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",vd,[(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(J),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":p.value?null:b.priority||0,"onUpdate:modelValue":N=>y(N,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])]),e.createElementVNode("div",Rd,[e.createElementVNode("div",Od,[e.createElementVNode("div",zd,[e.createElementVNode("div",Ud,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",jd,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[1]||(g[1]=b=>u("defensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",$d,[(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(J),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":p.value?null:b.priority||0,"onUpdate:modelValue":N=>y(N,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])]),e.createElementVNode("div",Hd,[e.createElementVNode("div",Wd,[e.createElementVNode("div",Gd,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",qd,"("+e.toDisplayString(h.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[2]||(g[2]=b=>u("possession"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":i.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.productivityCategories.possession.categories,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"productivity__checkbox"},[e.createVNode(e.unref(J),{label:b.name,fontFamily:t.fontFamily,"model-value":b.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&b.isSelected,"box-value":p.value?null:b.priority||0,"onUpdate:modelValue":N=>y(N,b)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),b.parameters?(e.openBlock(),e.createElementBlock("div",{key:0,class:"options",role:"button",onClick:N=>f(b)},Kd,8,Yd)):e.createCommentVNode("",!0)]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]])])])],4),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Xd,[e.createElementVNode("div",Qd,[ec,e.createElementVNode("div",tc,[ac,e.createElementVNode("div",oc,[lc,e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":n.value.areFoulsCommittedSelected,"avoid-interaction":n.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":g[3]||(g[3]=b=>n.value.areFoulsCommittedSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":!n.value.areFoulsCommittedSelected,"avoid-interaction":!n.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":g[4]||(g[4]=b=>n.value.areFoulsCommittedSelected=!b)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",ic,[rc,e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":n.value.areYellowCardsSelected,"avoid-interaction":n.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":g[5]||(g[5]=b=>n.value.areYellowCardsSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":!n.value.areYellowCardsSelected,"avoid-interaction":!n.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":g[6]||(g[6]=b=>n.value.areYellowCardsSelected=!b)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",nc,[sc,e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":n.value.areRedCardsSelected,"avoid-interaction":n.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":g[7]||(g[7]=b=>n.value.areRedCardsSelected=b)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":!n.value.areRedCardsSelected,"avoid-interaction":!n.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":g[8]||(g[8]=b=>n.value.areRedCardsSelected=!b)},null,8,["model-value","avoid-interaction"])])])])])]))]))}},cc=X(dc,[["__scopeId","data-v-a2dffe27"]]),xe=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),mc={class:"details__header"},pc=xe(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),uc={class:"details__header__checkbox"},fc={class:"details__body"},hc={class:"details__body__playing-as"},yc=["onClick"],gc={class:"details__header"},bc=xe(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),Sc={class:"details__header__checkbox"},_c={class:"details__body"},Cc=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Ec={class:"details__body__game-section"},wc=["onClick"],kc={class:"details__body"},Vc=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Nc={class:"details__body__game-section"},xc=["onClick"],Bc={key:0,class:"details_body"},Fc=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),Tc={class:"radios"},Mc={class:"radio-input"},Ac={class:"radio-input__radio"},Lc=xe(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),Pc={class:"radio-input"},Dc={class:"radio-input__radio"},Ic=xe(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),vc={class:"radio-input"},Rc={class:"radio-input__radio"},Oc=xe(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),zc={__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:a}){const o=t;e.useCssVars(y=>({"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 l=e.ref("");e.watch(()=>o.statisticType,y=>{l.value=y},{immediate:!0}),e.watch(()=>l.value,y=>{o.statisticType=y,a("change-statistic-type",y)});const r=e.computed(()=>o.playingAs.every(y=>y.isSelected)),i=e.computed(()=>o.gameSections.every(y=>y.isSelected)),n=e.computed(()=>o.gameSections.reduce((y,f)=>(f.value<=3?y.firstHalf.push(f):y.secondHalf.push(f),y),{firstHalf:[],secondHalf:[]})),s=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function d(y){y?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,u)=>{f.isSelected=u===0})}function c(y){o.playingAs.filter(f=>f.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function h(y){o.gameSections.filter(f=>f.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,u)=>{f.isSelected=u===0})}return(y,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(s.value)},[e.withDirectives(e.createElementVNode("div",mc,[pc,e.createElementVNode("div",uc,[e.createVNode(e.unref(J),{label:"Todos",fontFamily:t.fontFamily,"model-value":r.value,"onUpdate:modelValue":d},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",fc,[e.createElementVNode("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>c(u)},e.toDisplayString(u.name),11,yc))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",gc,[bc,e.createElementVNode("div",Sc,[e.createVNode(e.unref(J),{label:"Todos",fontFamily:t.fontFamily,"model-value":i.value,"onUpdate:modelValue":p},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",_c,[Cc,e.createElementVNode("div",Ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.firstHalf,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>h(u)},e.toDisplayString(u.text),11,wc))),128))])]),e.createElementVNode("div",kc,[Vc,e.createElementVNode("div",Nc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.secondHalf,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>h(u)},e.toDisplayString(u.text),11,xc))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",Bc,[Fc,e.createElementVNode("div",Tc,[e.createElementVNode("div",Mc,[e.createElementVNode("div",Ac,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=u=>l.value=u),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),Lc])]),e.createElementVNode("div",Pc,[e.createElementVNode("div",Dc,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[1]||(f[1]=u=>l.value=u),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),Ic])]),e.createElementVNode("div",vc,[e.createElementVNode("div",Rc,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":f[2]||(f[2]=u=>l.value=u),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),Oc])])])])):e.createCommentVNode("",!0)],4))}},Uc=X(zc,[["__scopeId","data-v-feb56031"]]),jc={class:"scroll-container"},$c={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(a=>({"6aab424d":t.height,39848040:t.width})),(a,o)=>(e.openBlock(),e.createElementBlock("div",jc,[e.renderSlot(a.$slots,"default",{},void 0,!0)]))}},Ao=X($c,[["__scopeId","data-v-218f5976"]]),Hc={class:"tournaments"},Wc={key:0,class:"tournaments__tournament"},Gc={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1}},emits:["change-filters-selected","update:filters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.computed(()=>o.tournaments.filter(s=>s.isSelected).length);e.watch(()=>o.tournaments,s=>{const d=s.filter(c=>c.isSelected);l.value=d.length===s.length,a("change-filters-selected",d.length),a("update:filters",o.tournaments)},{immediate:!0,deep:!0});function i(s){o.tournaments.forEach((d,c)=>{d.isSelected=s||(c!==0?s:!0)})}function n(s,d){o.isOneTournamentOnly&&o.tournaments.forEach(c=>{c.isSelected=!1}),d.isSelected=s}return(s,d)=>(e.openBlock(),e.createElementBlock("div",Hc,[e.createVNode(Ao,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wc,[e.createVNode(e.unref(J),{"model-value":l.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":i},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tournaments,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id||c._id,class:"tournaments__tournament"},[e.createVNode(e.unref(J),{"model-value":c.isSelected,label:c.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":r.value===1&&c.isSelected,"onUpdate:modelValue":h=>n(h,c)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},qc=X(Gc,[["__scopeId","data-v-f2d7cddf"]]),S={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"},Zc={key:0,class:"plays-golstats__placeholder"},Yc=["onClick"],Jc={key:0,class:"plays-golstats__item__value"},Kc={class:"plays-golstats__item__text"},Xc={class:"plays-golstats__item__svg"},Qc={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=["fill"],t1={__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:a}){const o=t,l=e.computed(()=>({"--grid-template-columns":o.type===S.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${o.svgWidth}px`,"--svg-height":`${o.svgHeight}px`}));e.watch(()=>o.categories,i=>{const n=i.filter(s=>s.isSelected);a("update:filters",n)},{immediate:!0,deep:!0});function r(i){i.isSelected||(o.categories.forEach(n=>{n.isSelected=!1}),i.isSelected=!0,o.type===S.GOLSTATS&&a("change-filters-selected",i.value))}return(i,n)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(l.value)},[e.createVNode(Ao,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(S).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Zc," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(s,d)=>(e.openBlock(),e.createElementBlock("div",{key:`k${d}`,class:"plays-golstats__item",onClick:c=>r(s)},[t.type===e.unref(S).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Jc,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Kc,e.toDisplayString(s.name),1),e.createElementVNode("div",Xc,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",Qc,[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,e1)],512)),[[e.vShow,s.isSelected]])])],8,Yc))),128))]),_:1},8,["height"])],4))}},Lo=X(t1,[["__scopeId","data-v-af3c1673"]]),a1=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},la={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 a=t.which?t.which:t.keyCode();a>31&&(a<48||a>57)&&t.preventDefault()}}}},Po=()=>{e.useCssVars(t=>({"53e1855a":t.textRightColor,da8ee600:t.textRightFontSize,"9fb876ba":t.textRightFontFamily}))},Do=la.setup;la.setup=Do?(t,a)=>(Po(),Do(t,a)):Po;const o1={class:"input-container"},l1=["type","placeholder","value"],i1={class:"right-text"};function r1(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",o1,[e.createElementVNode("input",{type:o.inputType,placeholder:o.placeholder,value:o.value,style:e.normalizeStyle(i.inputStyle),onKeydown:a[0]||(a[0]=(...n)=>i.onKeyDown&&i.onKeyDown(...n)),onInput:a[1]||(a[1]=(...n)=>i.updateInputValue&&i.updateInputValue(...n))},null,44,l1),e.createElementVNode("div",i1,e.toDisplayString(o.textRight),1)])}const Io=a1(la,[["render",r1],["__scopeId","data-v-b73049e7"]]),n1=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ia={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))}}},vo=()=>{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}))},Ro=ia.setup;ia.setup=Ro?(t,a)=>(vo(),Ro(t,a)):vo;const s1=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),d1=["src"],c1={key:1,class:"text"},m1=["src"],p1={class:"stats"},u1=s1(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),f1={class:"numstats"},h1={class:"leyend"};function y1(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,d1)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",c1,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,m1)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",p1,[u1,e.createElementVNode("div",f1,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",h1,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const g1=n1(ia,[["render",y1],["__scopeId","data-v-f3ee6b2b"]]),b1={class:"gsc-dropdown__main-container__item-selected"},S1=["height","width"],_1=["stroke"],C1={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E1=["fill"],w1={class:"gsc-dropdown__items-container"},k1=["onClick"],V1={key:0,class:"gsc-dropdown__items-footer"},Be={__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(a=>a 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:a}){const o=t,l=e.ref({}),r=e.ref(null),i=e.ref(o.isMultipleOption?-1:0),n=e.ref(!1);e.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const m=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);m!==-1?(i.value=m,l.value=f[m]):(i.value=0,l.value=f[0])}else l.value=f[o.defaultItemByIndex];a("input",l.value)}},{immediate:!0}),e.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(m=>typeof f=="object"?JSON.stringify(m)===JSON.stringify(f):m===f);u!==-1&&(i.value=u,l.value=o.items[u],a("update:modelValue",l.value))}},{immediate:!0});const s=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"})),d=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(n.value=!n.value)}function h(f){r.value&&!r.value.contains(f.target)&&(n.value=!1)}function p(f,u){o.isMultipleOption?i.value=-1:(i.value=u,n.value=!1),l.value=f,a("input",l.value),a("update:modelValue",l.value)}function y(){n.value=!1,a("click-ready")}return e.onMounted(()=>{document.addEventListener("click",h)}),e.onBeforeMount(()=>{document.removeEventListener("click",h)}),(f,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:r,class:"gsc-dropdown",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:c},[e.createElementVNode("div",b1,[e.renderSlot(f.$slots,"default",{selectedItem:l.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:e.normalizeStyle(d.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,_1)],8,S1)):(e.openBlock(),e.createElementBlock("svg",C1,[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,E1)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",w1,[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,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:b=>p(m,g)},[e.renderSlot(f.$slots,"availableItem",{item:m})],10,k1)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",V1,[e.createVNode(e.unref(g1),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):e.createCommentVNode("",!0)])],512),[[e.vShow,n.value]])]),_:3})],4))}},et={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},He=t=>(e.pushScopeId("data-v-b1fc2fa6"),t=t(),e.popScopeId(),t),N1={class:"universe"},x1=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),B1=He(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),F1={class:"universe__inputs"},T1={class:"universe__inputs__input"},M1={class:"universe__inputs__checkbox"},A1=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),L1=He(()=>e.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),P1={class:"universe__inputs"},D1={class:"universe__inputs__input"},I1={class:"universe__inputs__checkbox"},v1=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),R1=He(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),O1={class:"universe__dropdown"},z1={class:"selected-item"},Oo=11,U1={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(!1),i=e.ref(!1),n=e.ref(!1),s=e.ref({statistics:{}});e.watch(()=>l.universeFilters,f=>{s.value={...f,lastMonths:f.selectedMonth?f.selectedMonth:f.lastMonths[Oo],statistics:{...f.statistics}}},{deep:!0,immediate:!0}),e.watch(()=>s,f=>{r.value=!f.value.minutesPlayed||Number(f.value.minutesPlayed)===0,i.value=!f.value.percentMinutesPlayed||Number(f.value.percentMinutesPlayed)===0,n.value=!f.value.lastMonths||Number(f.value.lastMonths)===0,o("update:universeFilters",f)},{deep:!0,immediate:!0});function d(f){s.value.minutesPlayed=f}function c(f){s.value.percentMinutesPlayed=f}function h(f,u){switch(u){case"minutes":r.value=f,f&&(s.value.minutesPlayed=0);break;case"percent":i.value=f,f&&(s.value.percentMinutesPlayed=0);break;case"months":n.value=f,f&&(s.value.lastMonths=0);break}}function p(){s.value={...l.universeFilters,lastMonths:l.universeFilters.lastMonths[Oo],statistics:{...l.universeFilters.statistics}}}function y(f){s.value.lastMonths=f}return a({resetFilters:p}),(f,u)=>(e.openBlock(),e.createElementBlock("div",N1,[x1,B1,e.createElementVNode("div",F1,[e.createElementVNode("div",T1,[e.createVNode(e.unref(Io),{value:s.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:d},null,8,["value"])]),e.createElementVNode("div",M1,[e.createVNode(e.unref(J),{modelValue:r.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":u[0]||(u[0]=m=>h(m,"minutes"))},null,8,["modelValue","fontFamily"])])]),A1,L1,e.createElementVNode("div",P1,[e.createElementVNode("div",D1,[e.createVNode(e.unref(Io),{value:s.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:c},null,8,["value"])]),e.createElementVNode("div",I1,[e.createVNode(e.unref(J),{modelValue:i.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":u[1]||(u[1]=m=>h(m,"percent"))},null,8,["modelValue","fontFamily"])])]),v1,R1,e.createElementVNode("div",O1,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.universeFilters.lastMonths,"model-value":s.value.lastMonths,onInput:y}),{default:e.withCtx(({selectedItem:m})=>[e.createElementVNode("div",z1,e.toDisplayString(m)+" "+e.toDisplayString(m===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",null,e.toDisplayString(m)+" "+e.toDisplayString(m===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},j1=X(U1,[["__scopeId","data-v-b1fc2fa6"]]),zo=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},$1={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||[],a=this.min===void 0?0:this.min,o=t.length?t.length-1:100,l=this.max===void 0?o:this.max,r=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(r=1);let i=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(i=t.length-2),l<=a)throw new Error("Invalid props min or max");if(r>i)throw new Error("Invalid props minValue or maxValue");let n=this.rangeMargin===void 0?this.step:this.rangeMargin,s=n%this.step;return s&&(n=n+this.step-s),{valueMin:r<a?a:r,valueMax:i>l?l:i,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:n}},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 a=parseFloat(t.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:t.target.value=this.valueMin},onInputMaxChange(t){let a=parseFloat(t.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a: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 a=t.clientX;t.type==="touchmove"&&(a=t.touches[0].clientX);let o=(a-this.startX)/this.barBox.width,l=this.barValue+(this.maximum-this.minimum)*o,r=l%this.step;l-=r,l<this.minimum?l=this.minimum:l>this.valueMax-this.rangeMarginValue&&(l=this.valueMax-this.rangeMarginValue),this.valueMin=l},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 a=t.clientX;t.type==="touchmove"&&(a=t.touches[0].clientX);let o=(a-this.startX)/this.barBox.width,l=this.barValue+(this.maximum-this.minimum)*o,r=l%this.step;l-=r,l<this.valueMin+this.rangeMarginValue?l=this.valueMin+this.rangeMarginValue:l>this.maximum&&(l=this.maximum),this.valueMax=l},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 a=this.step;t.deltaY<0&&(a=-a),t.shiftKey&&t.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):t.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):t.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],a=t.length?t.length-1:100;return this.max===void 0?a: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(){}},H1={class:"bar"},W1=["min","max","step","value"],G1={class:"caption"},q1={class:"min-caption"},Z1={class:"bar-inner"},Y1=["min","max","step","value"],J1={class:"caption"},K1={class:"max-caption"},X1={key:0,class:"ruler"},Q1={key:1,class:"sub-ruler"},em={key:2,class:"labels"};function tm(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.baseClassName,r.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=e.withModifiers((...n)=>i.onMouseWheel&&i.onMouseWheel(...n),["prevent","stop"]))},[e.createElementVNode("div",H1,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:i.barMin+"%"}),onClick:a[0]||(a[0]=(...n)=>i.onBarLeftClick&&i.onBarLeftClick(...n))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:i.minimum,max:i.maximum,step:o.step,value:r.valueMin,onInput:a[1]||(a[1]=e.withModifiers((...n)=>i.onInputMinChange&&i.onInputMinChange(...n),["stop","prevent"]))},null,40,W1),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...n)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...n)),onTouchstart:a[3]||(a[3]=(...n)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...n))},[e.createElementVNode("div",G1,[e.createElementVNode("span",q1,e.toDisplayString(o.minCaption||i.barMinVal),1)])],32),e.createElementVNode("div",Z1,[e.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...n)=>i.onInnerBarLeftClick&&i.onInnerBarLeftClick(...n))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...n)=>i.onInnerBarRightClick&&i.onInnerBarRightClick(...n))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:i.minimum,max:i.maximum,step:o.step,value:r.valueMax,onInput:a[6]||(a[6]=e.withModifiers((...n)=>i.onInputMaxChange&&i.onInputMaxChange(...n),["stop","prevent"]))},null,40,Y1),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...n)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...n)),onTouchstart:a[8]||(a[8]=(...n)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...n))},[e.createElementVNode("div",J1,[e.createElementVNode("span",K1,e.toDisplayString(o.maxCaption||i.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:i.barMax+"%"}),onClick:a[9]||(a[9]=(...n)=>i.onBarRightClick&&i.onBarRightClick(...n))},null,4)]),o.ruler?(e.openBlock(),e.createElementBlock("div",X1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.stepCount,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),i.subStepCount?(e.openBlock(),e.createElementBlock("div",Q1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.subStepCount,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("div",em,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.scaleLabels,n=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:n},e.toDisplayString(n),1))),128))])):e.createCommentVNode("",!0)],34)}const am=zo($1,[["render",tm]]),ra={components:{MultiRangeSlider:am},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)}}},Uo=()=>{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}))},jo=ra.setup;ra.setup=jo?(t,a)=>(Uo(),jo(t,a)):Uo;const om={class:"center"},lm={class:"bar-ref"},im={class:"bar-ref-element-left"},rm={class:"bar-ref-element-right"};function nm(t,a,o,l,r,i){const n=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(i.customStyle)},[e.createElementVNode("div",om,[e.createElementVNode("div",lm,[e.createElementVNode("div",im,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(i.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(i.customStyleValue)},e.toDisplayString(r.minValueLocal)+e.toDisplayString(o.minSuffix),5)]),e.createElementVNode("div",rm,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(i.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(i.customStyleValue)},e.toDisplayString(r.maxValueLocal)+e.toDisplayString(o.maxSuffix),5)])]),e.createVNode(n,{baseClassName:"multi-range-slider",min:o.minLimit,max:o.maxLimit,step:1,ruler:!1,label:!1,"min-value":r.minValueLocal,"max-value":r.maxValueLocal,"range-margin":0,onInput:i.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const $o=zo(ra,[["render",nm]]),sm={class:"template-distance"},dm={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:a}){const o=t,l=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>l.value,i=>{a("update:distanceFilters",i)},{deep:!0}),e.watch(()=>o.distance,i=>{l.value.minValue=i.minValue,l.value.maxValue=i.maxValue,l.value.minLimit=i.minLimit,l.value.maxLimit=i.maxLimit},{immediate:!0,deep:!0});function r(i){l.value.minValue=i.minValue,l.value.maxValue=i.maxValue}return(i,n)=>(e.openBlock(),e.createElementBlock("div",sm,[e.createVNode(e.unref($o),{"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":l.value.minLimit,"max-limit":l.value.maxLimit,"min-value":l.value.minValue,"max-value":l.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:r},null,8,["min-limit","max-limit","min-value","max-value"])]))}},cm=t=>(e.pushScopeId("data-v-be32e3d8"),t=t(),e.popScopeId(),t),mm={class:"template-games"},pm={class:"template-games__header"},um=cm(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),fm={class:"template-games__header__all-games"},hm={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.computed(()=>o.gamesFilters.filter(n=>n.isSelected).length);e.watch(()=>o.gamesFilters,n=>{a("update:gamesFilters",n)},{deep:!0}),e.watch(r,n=>{l.value=n===o.gamesFilters.length,a("update:gamesFilters",o.gamesFilters)},{immediate:!0});const i=n=>{n?o.gamesFilters.forEach(s=>{s.isSelected=n}):o.gamesFilters.forEach((s,d)=>{s.isSelected=d===0}),l.value=n};return(n,s)=>(e.openBlock(),e.createElementBlock("div",mm,[e.createElementVNode("div",pm,[um,e.createElementVNode("div",fm,[e.createVNode(e.unref(J),{modelValue:l.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":i},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"template-games__game"},[e.createVNode(e.unref(J),{modelValue:d.isSelected,"onUpdate:modelValue":h=>d.isSelected=h,label:d.label,"teams-ids":d.teamsIds,"avoid-interaction":r.value===1&&d.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},ym=X(hm,[["__scopeId","data-v-be32e3d8"]]),gm=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},na={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))}}},Ho=()=>{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}))},Wo=na.setup;na.setup=Wo?(t,a)=>(Ho(),Wo(t,a)):Ho;const bm=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Sm=["src"],_m={key:1,class:"text"},Cm=["src"],Em={class:"stats"},wm=bm(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),km={class:"numstats"},Vm={class:"leyend"};function Nm(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,Sm)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",_m,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,Cm)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",Em,[wm,e.createElementVNode("div",km,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Vm,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Ct=gm(na,[["render",Nm],["__scopeId","data-v-f3ee6b2b"]]),xm=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},sa={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))}}},Go=()=>{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}))},qo=sa.setup;sa.setup=qo?(t,a)=>(Go(),qo(t,a)):Go;const Bm=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Fm=["src"],Tm={key:1,class:"text"},Mm=["src"],Am={class:"stats"},Lm=Bm(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Pm={class:"numstats"},Dm={class:"leyend"};function Im(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,Fm)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",Tm,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,Mm)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",Am,[Lm,e.createElementVNode("div",Pm,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Dm,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const vm=xm(sa,[["render",Im],["__scopeId","data-v-f3ee6b2b"]]),Rm=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Om={key:1},zm={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Um=["fill"],jm={key:0,class:"checkbox__teams"},$m={class:"checkbox__teams__logo"},Hm=["src"],Wm={class:"checkbox__teams__logo"},Gm=["src"],qm={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",Om,[(e.openBlock(),e.createElementBlock("svg",zm,[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,Um)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",jm,[e.createElementVNode("div",$m,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,Hm)]),e.createElementVNode("div",Wm,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,Gm)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},Zm=Rm(qm,[["__scopeId","data-v-b6f124d8"]]),Ym=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},da={components:{GSCButton:vm,GSCCheckbox:Zm},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,a)=>({sector:a+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 a=t.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((o,l)=>{o.active=t.includes(l+1),this.validateField(l)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var a=[];for(let o=0;o<t.length;o++)t[o].active&&a.push(o+1);this.$emit("update:modelValue",a)},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 a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);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 a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),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 a=0;this.sectors[t].active=!this.sectors[t].active;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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)}}},Zo=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},Yo=da.setup;da.setup=Yo?(t,a)=>(Zo(),Yo(t,a)):Zo;const Jm={class:"gsc-field"},Km={class:"gsc-field__title-checked"},Xm={class:"gsc-field__title-checked__title"},Qm={class:"gsc-field__container-field"},ep={class:"gsc-field__container-field__field"},tp={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},ap=["stroke"],op=["stroke","stroke-width"],lp=["stroke","stroke-width"],ip=["stroke-width","stroke"],rp=["fill","fill-opacity","stroke","stroke-width"],np=["fill","fill-opacity","stroke","stroke-width"],sp=["fill","fill-opacity","stroke","stroke-width"],dp=["fill","fill-opacity","stroke","stroke-width"],cp=["fill","fill-opacity","stroke","stroke-width"],mp=["fill","fill-opacity","stroke","stroke-width"],pp=["fill","fill-opacity","stroke","stroke-width"],up=["fill","fill-opacity","stroke","stroke-width"],fp=["fill","fill-opacity","stroke","stroke-width"],hp=["fill","fill-opacity","stroke","stroke-width"],yp=["fill","fill-opacity","stroke","stroke-width"],gp=["fill","fill-opacity","stroke","stroke-width"],bp=["fill","fill-opacity","stroke","stroke-width"],Sp=["fill","fill-opacity","stroke","stroke-width"],_p=["fill","fill-opacity","stroke","stroke-width"],Cp=["fill","fill-opacity","stroke","stroke-width"],Ep={class:"gsc-field__container-field__bar-buttons"};function wp(t,a,o,l,r,i){const n=e.resolveComponent("GSCCheckbox"),s=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Jm,[e.createElementVNode("div",Km,[e.createElementVNode("div",Xm,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(n,{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:r.all,key:r.update,"model-value":r.all,"onUpdate:modelValue":i.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",Qm,[e.createElementVNode("div",ep,[(e.openBlock(),e.createElementBlock("svg",tp,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:o.colorLineField},null,8,ap),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+i.translx+"px, "+i.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,op),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+i.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,lp),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+i.translxcircle+"px, "+i.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,ip),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:r.sectors[0].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[0]||(a[0]=d=>i.selectSector(0))},null,8,rp),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:r.sectors[1].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[1]||(a[1]=d=>i.selectSector(1))},null,8,np),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:r.sectors[2].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[2]||(a[2]=d=>i.selectSector(2))},null,8,sp),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:r.sectors[3].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[3]||(a[3]=d=>i.selectSector(3))},null,8,dp),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:r.sectors[4].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[4]||(a[4]=d=>i.selectSector(4))},null,8,cp),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:r.sectors[5].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[5]||(a[5]=d=>i.selectSector(5))},null,8,mp),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:r.sectors[6].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[6]||(a[6]=d=>i.selectSector(6))},null,8,pp),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:r.sectors[7].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[7]||(a[7]=d=>i.selectSector(7))},null,8,up),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:r.sectors[8].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[8]||(a[8]=d=>i.selectSector(8))},null,8,fp),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:r.sectors[9].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[9]||(a[9]=d=>i.selectSector(9))},null,8,hp),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:r.sectors[10].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[10]||(a[10]=d=>i.selectSector(10))},null,8,yp),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:r.sectors[11].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[11]||(a[11]=d=>i.selectSector(11))},null,8,gp),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:r.sectors[12].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[12]||(a[12]=d=>i.selectSector(12))},null,8,bp),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:r.sectors[13].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[13]||(a[13]=d=>i.selectSector(13))},null,8,Sp),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:r.sectors[14].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[14]||(a[14]=d=>i.selectSector(14))},null,8,_p),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:r.sectors[15].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[15]||(a[15]=d=>i.selectSector(15))},null,8,Cp)]))]),e.createElementVNode("div",Ep,[(e.openBlock(),e.createBlock(s,{"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:i.btn14,key:r.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn24,key:r.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn34,key:r.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn44,key:r.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const Jo=Ym(da,[["render",wp],["__scopeId","data-v-b85699b8"]]),kp={class:"toggle-buttons__background"},Vp=["onClick"],Np={__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:a}){const o=t;e.useCssVars(n=>({"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 l=e.ref(o.selectedButtonIndex),r=e.computed(()=>({"--grid-template-columns":`repeat(${o.buttons.length}, 1fr)`}));e.watch(()=>o.selectedButtonIndex,n=>{l.value=n}),e.watch(l,(n,s)=>{n!==s&&a("change",{index:n,button:o.buttons[n]})});function i(n){l.value=n}return(n,s)=>(e.openBlock(),e.createElementBlock("div",kp,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:`b${c}`,class:e.normalizeClass(["toggle-buttons__button",{active:l.value===c}]),onClick:h=>i(c)},e.toDisplayString(d.text||d),11,Vp))),128))],4)]))}},xp=X(Np,[["__scopeId","data-v-ac2af001"]]);function Ko(t,a){return function(){return t.apply(a,arguments)}}const{toString:Bp}=Object.prototype,{getPrototypeOf:ca}=Object,Et=(t=>a=>{const o=Bp.call(a);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),a=>Et(a)===t),wt=t=>a=>typeof a===t,{isArray:We}=Array,tt=wt("undefined");function Fp(t){return t!==null&&!tt(t)&&t.constructor!==null&&!tt(t.constructor)&&ye(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xo=_e("ArrayBuffer");function Tp(t){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(t):a=t&&t.buffer&&Xo(t.buffer),a}const Mp=wt("string"),ye=wt("function"),Qo=wt("number"),kt=t=>t!==null&&typeof t=="object",Ap=t=>t===!0||t===!1,Vt=t=>{if(Et(t)!=="object")return!1;const a=ca(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Lp=_e("Date"),Pp=_e("File"),Dp=_e("Blob"),Ip=_e("FileList"),vp=t=>kt(t)&&ye(t.pipe),Rp=t=>{let a;return t&&(typeof FormData=="function"&&t instanceof FormData||ye(t.append)&&((a=Et(t))==="formdata"||a==="object"&&ye(t.toString)&&t.toString()==="[object FormData]"))},Op=_e("URLSearchParams"),[zp,Up,jp,$p]=["ReadableStream","Request","Response","Headers"].map(_e),Hp=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function at(t,a,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let l,r;if(typeof t!="object"&&(t=[t]),We(t))for(l=0,r=t.length;l<r;l++)a.call(null,t[l],l,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),n=i.length;let s;for(l=0;l<n;l++)s=i[l],a.call(null,t[s],s,t)}}function el(t,a){a=a.toLowerCase();const o=Object.keys(t);let l=o.length,r;for(;l-- >0;)if(r=o[l],a===r.toLowerCase())return r;return null}const De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tl=t=>!tt(t)&&t!==De;function ma(){const{caseless:t}=tl(this)&&this||{},a={},o=(l,r)=>{const i=t&&el(a,r)||r;Vt(a[i])&&Vt(l)?a[i]=ma(a[i],l):Vt(l)?a[i]=ma({},l):We(l)?a[i]=l.slice():a[i]=l};for(let l=0,r=arguments.length;l<r;l++)arguments[l]&&at(arguments[l],o);return a}const Wp=(t,a,o,{allOwnKeys:l}={})=>(at(a,(r,i)=>{o&&ye(r)?t[i]=Ko(r,o):t[i]=r},{allOwnKeys:l}),t),Gp=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qp=(t,a,o,l)=>{t.prototype=Object.create(a.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:a.prototype}),o&&Object.assign(t.prototype,o)},Zp=(t,a,o,l)=>{let r,i,n;const s={};if(a=a||{},t==null)return a;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)n=r[i],(!l||l(n,t,a))&&!s[n]&&(a[n]=t[n],s[n]=!0);t=o!==!1&&ca(t)}while(t&&(!o||o(t,a))&&t!==Object.prototype);return a},Yp=(t,a,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=a.length;const l=t.indexOf(a,o);return l!==-1&&l===o},Jp=t=>{if(!t)return null;if(We(t))return t;let a=t.length;if(!Qo(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=t[a];return o},Kp=(t=>a=>t&&a instanceof t)(typeof Uint8Array<"u"&&ca(Uint8Array)),Xp=(t,a)=>{const o=(t&&t[Symbol.iterator]).call(t);let l;for(;(l=o.next())&&!l.done;){const r=l.value;a.call(t,r[0],r[1])}},Qp=(t,a)=>{let o;const l=[];for(;(o=t.exec(a))!==null;)l.push(o);return l},eu=_e("HTMLFormElement"),tu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,l){return o.toUpperCase()+l}),al=(({hasOwnProperty:t})=>(a,o)=>t.call(a,o))(Object.prototype),au=_e("RegExp"),ol=(t,a)=>{const o=Object.getOwnPropertyDescriptors(t),l={};at(o,(r,i)=>{let n;(n=a(r,i,t))!==!1&&(l[i]=n||r)}),Object.defineProperties(t,l)},ou=t=>{ol(t,(a,o)=>{if(ye(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const l=t[o];if(ye(l)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},lu=(t,a)=>{const o={},l=r=>{r.forEach(i=>{o[i]=!0})};return We(t)?l(t):l(String(t).split(a)),o},iu=()=>{},ru=(t,a)=>t!=null&&Number.isFinite(t=+t)?t:a;function nu(t){return!!(t&&ye(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const su=t=>{const a=new Array(10),o=(l,r)=>{if(kt(l)){if(a.indexOf(l)>=0)return;if(!("toJSON"in l)){a[r]=l;const i=We(l)?[]:{};return at(l,(n,s)=>{const d=o(n,r+1);!tt(d)&&(i[s]=d)}),a[r]=void 0,i}}return l};return o(t,0)},du=_e("AsyncFunction"),cu=t=>t&&(kt(t)||ye(t))&&ye(t.then)&&ye(t.catch),ll=((t,a)=>t?setImmediate:a?((o,l)=>(De.addEventListener("message",({source:r,data:i})=>{r===De&&i===o&&l.length&&l.shift()()},!1),r=>{l.push(r),De.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ye(De.postMessage)),mu=typeof queueMicrotask<"u"?queueMicrotask.bind(De):typeof process<"u"&&process.nextTick||ll,E={isArray:We,isArrayBuffer:Xo,isBuffer:Fp,isFormData:Rp,isArrayBufferView:Tp,isString:Mp,isNumber:Qo,isBoolean:Ap,isObject:kt,isPlainObject:Vt,isReadableStream:zp,isRequest:Up,isResponse:jp,isHeaders:$p,isUndefined:tt,isDate:Lp,isFile:Pp,isBlob:Dp,isRegExp:au,isFunction:ye,isStream:vp,isURLSearchParams:Op,isTypedArray:Kp,isFileList:Ip,forEach:at,merge:ma,extend:Wp,trim:Hp,stripBOM:Gp,inherits:qp,toFlatObject:Zp,kindOf:Et,kindOfTest:_e,endsWith:Yp,toArray:Jp,forEachEntry:Xp,matchAll:Qp,isHTMLForm:eu,hasOwnProperty:al,hasOwnProp:al,reduceDescriptors:ol,freezeMethods:ou,toObjectSet:lu,toCamelCase:tu,noop:iu,toFiniteNumber:ru,findKey:el,global:De,isContextDefined:tl,isSpecCompliantForm:nu,toJSONObject:su,isAsyncFn:du,isThenable:cu,setImmediate:ll,asap:mu};function H(t,a,o,l,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),r&&(this.response=r,this.status=r.status?r.status:null)}E.inherits(H,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:E.toJSONObject(this.config),code:this.code,status:this.status}}});const il=H.prototype,rl={};["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=>{rl[t]={value:t}}),Object.defineProperties(H,rl),Object.defineProperty(il,"isAxiosError",{value:!0}),H.from=(t,a,o,l,r,i)=>{const n=Object.create(il);return E.toFlatObject(t,n,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),H.call(n,t.message,a,o,l,r),n.cause=t,n.name=t.name,i&&Object.assign(n,i),n};const pu=null;function pa(t){return E.isPlainObject(t)||E.isArray(t)}function nl(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function sl(t,a,o){return t?t.concat(a).map(function(l,r){return l=nl(l),!o&&r?"["+l+"]":l}).join(o?".":""):a}function uu(t){return E.isArray(t)&&!t.some(pa)}const fu=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Nt(t,a,o){if(!E.isObject(t))throw new TypeError("target must be an object");a=a||new FormData,o=E.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,u){return!E.isUndefined(u[f])});const l=o.metaTokens,r=o.visitor||c,i=o.dots,n=o.indexes,s=(o.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(a);if(!E.isFunction(r))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(E.isDate(f))return f.toISOString();if(!s&&E.isBlob(f))throw new H("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(f)||E.isTypedArray(f)?s&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,u,m){let g=f;if(f&&!m&&typeof f=="object"){if(E.endsWith(u,"{}"))u=l?u:u.slice(0,-2),f=JSON.stringify(f);else if(E.isArray(f)&&uu(f)||(E.isFileList(f)||E.endsWith(u,"[]"))&&(g=E.toArray(f)))return u=nl(u),g.forEach(function(b,N){!(E.isUndefined(b)||b===null)&&a.append(n===!0?sl([u],N,i):n===null?u:u+"[]",d(b))}),!1}return pa(f)?!0:(a.append(sl(m,u,i),d(f)),!1)}const h=[],p=Object.assign(fu,{defaultVisitor:c,convertValue:d,isVisitable:pa});function y(f,u){if(!E.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+u.join("."));h.push(f),E.forEach(f,function(m,g){(!(E.isUndefined(m)||m===null)&&r.call(a,m,E.isString(g)?g.trim():g,u,p))===!0&&y(m,u?u.concat(g):[g])}),h.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return y(t),a}function dl(t){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function ua(t,a){this._pairs=[],t&&Nt(t,this,a)}const cl=ua.prototype;cl.append=function(t,a){this._pairs.push([t,a])},cl.toString=function(t){const a=t?function(o){return t.call(this,o,dl)}:dl;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function hu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ml(t,a,o){if(!a)return t;const l=o&&o.encode||hu;E.isFunction(o)&&(o={serialize:o});const r=o&&o.serialize;let i;if(r?i=r(a,o):i=E.isURLSearchParams(a)?a.toString():new ua(a,o).toString(l),i){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class yu{constructor(){this.handlers=[]}use(a,o,l){return this.handlers.push({fulfilled:a,rejected:o,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){E.forEach(this.handlers,function(o){o!==null&&a(o)})}}const pl=yu,ul={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gu=typeof URLSearchParams<"u"?URLSearchParams:ua,bu=typeof FormData<"u"?FormData:null,Su=typeof Blob<"u"?Blob:null,_u={isBrowser:!0,classes:{URLSearchParams:gu,FormData:bu,Blob:Su},protocols:["http","https","file","blob","url","data"]},fa=typeof window<"u"&&typeof document<"u",ha=typeof navigator=="object"&&navigator||void 0,Cu=fa&&(!ha||["ReactNative","NativeScript","NS"].indexOf(ha.product)<0),Eu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wu=fa&&window.location.href||"http://localhost",ku=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fa,hasStandardBrowserEnv:Cu,hasStandardBrowserWebWorkerEnv:Eu,navigator:ha,origin:wu},Symbol.toStringTag,{value:"Module"})),ce={...ku,..._u};function Vu(t,a){return Nt(t,new ce.classes.URLSearchParams,Object.assign({visitor:function(o,l,r,i){return ce.isNode&&E.isBuffer(o)?(this.append(l,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Nu(t){return E.matchAll(/\w+|\[(\w*)]/g,t).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xu(t){const a={},o=Object.keys(t);let l;const r=o.length;let i;for(l=0;l<r;l++)i=o[l],a[i]=t[i];return a}function fl(t){function a(o,l,r,i){let n=o[i++];if(n==="__proto__")return!0;const s=Number.isFinite(+n),d=i>=o.length;return n=!n&&E.isArray(r)?r.length:n,d?(E.hasOwnProp(r,n)?r[n]=[r[n],l]:r[n]=l,!s):((!r[n]||!E.isObject(r[n]))&&(r[n]=[]),a(o,l,r[n],i)&&E.isArray(r[n])&&(r[n]=xu(r[n])),!s)}if(E.isFormData(t)&&E.isFunction(t.entries)){const o={};return E.forEachEntry(t,(l,r)=>{a(Nu(l),r,o,0)}),o}return null}function Bu(t,a,o){if(E.isString(t))try{return(a||JSON.parse)(t),E.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(o||JSON.stringify)(t)}const ya={transitional:ul,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const o=a.getContentType()||"",l=o.indexOf("application/json")>-1,r=E.isObject(t);if(r&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return l?JSON.stringify(fl(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Vu(t,this.formSerializer).toString();if((i=E.isFileList(t))||o.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return Nt(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}return r||l?(a.setContentType("application/json",!1),Bu(t)):t}],transformResponse:[function(t){const a=this.transitional||ya.transitional,o=a&&a.forcedJSONParsing,l=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(o&&!this.responseType||l)){const r=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?H.from(i,H.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],t=>{ya.headers[t]={}});const ga=ya,Fu=E.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"]),Tu=t=>{const a={};let o,l,r;return t&&t.split(`
|
|
7
|
-
`).forEach(function(i){r=i.indexOf(":"),o=i.substring(0,r).trim().toLowerCase(),l=i.substring(r+1).trim(),!(!o||a[o]&&
|
|
8
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const l=new this(a);return o.forEach(r=>l.set(r)),l}static accessor(a){const o=(this[hl]=this[hl]={accessors:{}}).accessors,l=this.prototype;function r(i){const n=ot(i);o[n]||(Pu(l,i),o[n]=!0)}return E.isArray(a)?a.forEach(r):r(a),this}}Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Bt.prototype,({value:t},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>t,set(l){this[o]=l}}}),E.freezeMethods(Bt);const Ce=Bt;function Sa(t,a){const o=this||ga,l=a||o,r=Ce.from(l.headers);let i=l.data;return E.forEach(t,function(n){i=n.call(o,i,r.normalize(),a?a.status:void 0)}),r.normalize(),i}function yl(t){return!!(t&&t.__CANCEL__)}function Ge(t,a,o){H.call(this,t??"canceled",H.ERR_CANCELED,a,o),this.name="CanceledError"}E.inherits(Ge,H,{__CANCEL__:!0});function gl(t,a,o){const l=o.config.validateStatus;!o.status||!l||l(o.status)?t(o):a(new H("Request failed with status code "+o.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Du(t){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}function Iu(t,a){t=t||10;const o=new Array(t),l=new Array(t);let r=0,i=0,n;return a=a!==void 0?a:1e3,function(s){const d=Date.now(),c=l[i];n||(n=d),o[r]=s,l[r]=d;let h=i,p=0;for(;h!==r;)p+=o[h++],h=h%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),d-n<a)return;const y=c&&d-c;return y?Math.round(p*1e3/y):void 0}}function vu(t,a){let o=0,l=1e3/a,r,i;const n=(s,d=Date.now())=>{o=d,r=null,i&&(clearTimeout(i),i=null),t.apply(null,s)};return[(...s)=>{const d=Date.now(),c=d-o;c>=l?n(s,d):(r=s,i||(i=setTimeout(()=>{i=null,n(r)},l-c)))},()=>r&&n(r)]}const Ft=(t,a,o=3)=>{let l=0;const r=Iu(50,250);return vu(i=>{const n=i.loaded,s=i.lengthComputable?i.total:void 0,d=n-l,c=r(d),h=n<=s;l=n;const p={loaded:n,total:s,progress:s?n/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&h?(s-n)/c:void 0,event:i,lengthComputable:s!=null,[a?"download":"upload"]:!0};t(p)},o)},bl=(t,a)=>{const o=t!=null;return[l=>a[0]({lengthComputable:o,total:t,loaded:l}),a[1]]},Sl=t=>(...a)=>E.asap(()=>t(...a)),Ru=ce.hasStandardBrowserEnv?((t,a)=>o=>(o=new URL(o,ce.origin),t.protocol===o.protocol&&t.host===o.host&&(a||t.port===o.port)))(new URL(ce.origin),ce.navigator&&/(msie|trident)/i.test(ce.navigator.userAgent)):()=>!0,Ou=ce.hasStandardBrowserEnv?{write(t,a,o,l,r,i){const n=[t+"="+encodeURIComponent(a)];E.isNumber(o)&&n.push("expires="+new Date(o).toGMTString()),E.isString(l)&&n.push("path="+l),E.isString(r)&&n.push("domain="+r),i===!0&&n.push("secure"),document.cookie=n.join("; ")},read(t){const a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zu(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Uu(t,a){return a?t.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):t}function _l(t,a,o){let l=!zu(a);return t&&(l||o==!1)?Uu(t,a):a}const Cl=t=>t instanceof Ce?{...t}:t;function Ie(t,a){a=a||{};const o={};function l(c,h,p,y){return E.isPlainObject(c)&&E.isPlainObject(h)?E.merge.call({caseless:y},c,h):E.isPlainObject(h)?E.merge({},h):E.isArray(h)?h.slice():h}function r(c,h,p,y){if(E.isUndefined(h)){if(!E.isUndefined(c))return l(void 0,c,p,y)}else return l(c,h,p,y)}function i(c,h){if(!E.isUndefined(h))return l(void 0,h)}function n(c,h){if(E.isUndefined(h)){if(!E.isUndefined(c))return l(void 0,c)}else return l(void 0,h)}function s(c,h,p){if(p in a)return l(c,h);if(p in t)return l(void 0,c)}const d={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:s,headers:(c,h,p)=>r(Cl(c),Cl(h),p,!0)};return E.forEach(Object.keys(Object.assign({},t,a)),function(c){const h=d[c]||r,p=h(t[c],a[c],c);E.isUndefined(p)&&h!==s||(o[c]=p)}),o}const El=t=>{const a=Ie({},t);let{data:o,withXSRFToken:l,xsrfHeaderName:r,xsrfCookieName:i,headers:n,auth:s}=a;a.headers=n=Ce.from(n),a.url=ml(_l(a.baseURL,a.url,a.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&n.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(E.isFormData(o)){if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if((d=n.getContentType())!==!1){const[c,...h]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];n.setContentType([c||"multipart/form-data",...h].join("; "))}}if(ce.hasStandardBrowserEnv&&(l&&E.isFunction(l)&&(l=l(a)),l||l!==!1&&Ru(a.url))){const c=r&&i&&Ou.read(i);c&&n.set(r,c)}return a},ju=typeof XMLHttpRequest<"u",$u=ju&&function(t){return new Promise(function(a,o){const l=El(t);let r=l.data;const i=Ce.from(l.headers).normalize();let{responseType:n,onUploadProgress:s,onDownloadProgress:d}=l,c,h,p,y,f;function u(){y&&y(),f&&f(),l.cancelToken&&l.cancelToken.unsubscribe(c),l.signal&&l.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout;function g(){if(!m)return;const N=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),I={data:!n||n==="text"||n==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:N,config:t,request:m};gl(function(G){a(G),u()},function(G){o(G),u()},I),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(o(new H("Request aborted",H.ECONNABORTED,t,m)),m=null)},m.onerror=function(){o(new H("Network Error",H.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let N=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const I=l.transitional||ul;l.timeoutErrorMessage&&(N=l.timeoutErrorMessage),o(new H(N,I.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,m)),m=null},r===void 0&&i.setContentType(null),"setRequestHeader"in m&&E.forEach(i.toJSON(),function(N,I){m.setRequestHeader(I,N)}),E.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),n&&n!=="json"&&(m.responseType=l.responseType),d&&([p,f]=Ft(d,!0),m.addEventListener("progress",p)),s&&m.upload&&([h,y]=Ft(s),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",y)),(l.cancelToken||l.signal)&&(c=N=>{m&&(o(!N||N.type?new Ge(null,t,m):N),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(c),l.signal&&(l.signal.aborted?c():l.signal.addEventListener("abort",c)));const b=Du(l.url);if(b&&ce.protocols.indexOf(b)===-1){o(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,t));return}m.send(r||null)})},Hu=(t,a)=>{const{length:o}=t=t?t.filter(Boolean):[];if(a||o){let l=new AbortController,r;const i=function(c){if(!r){r=!0,s();const h=c instanceof Error?c:this.reason;l.abort(h instanceof H?h:new Ge(h instanceof Error?h.message:h))}};let n=a&&setTimeout(()=>{n=null,i(new H(`timeout ${a} of ms exceeded`,H.ETIMEDOUT))},a);const s=()=>{t&&(n&&clearTimeout(n),n=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:d}=l;return d.unsubscribe=()=>E.asap(s),d}},Wu=Hu,Gu=function*(t,a){let o=t.byteLength;if(o<a){yield t;return}let l=0,r;for(;l<o;)r=l+a,yield t.slice(l,r),l=r},qu=async function*(t,a){for await(const o of Zu(t))yield*Gu(o,a)},Zu=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const a=t.getReader();try{for(;;){const{done:o,value:l}=await a.read();if(o)break;yield l}}finally{await a.cancel()}},wl=(t,a,o,l)=>{const r=qu(t,a);let i=0,n,s=d=>{n||(n=!0,l&&l(d))};return new ReadableStream({async pull(d){try{const{done:c,value:h}=await r.next();if(c){s(),d.close();return}let p=h.byteLength;if(o){let y=i+=p;o(y)}d.enqueue(new Uint8Array(h))}catch(c){throw s(c),c}},cancel(d){return s(d),r.return()}},{highWaterMark:2})},Tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kl=Tt&&typeof ReadableStream=="function",Yu=Tt&&(typeof TextEncoder=="function"?(t=>a=>t.encode(a))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vl=(t,...a)=>{try{return!!t(...a)}catch{return!1}},Ju=kl&&Vl(()=>{let t=!1;const a=new Request(ce.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!a}),Nl=64*1024,_a=kl&&Vl(()=>E.isReadableStream(new Response("").body)),Mt={stream:_a&&(t=>t.body)};Tt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Mt[a]&&(Mt[a]=E.isFunction(t[a])?o=>o[a]():(o,l)=>{throw new H(`Response type '${a}' is not supported`,H.ERR_NOT_SUPPORT,l)})})})(new Response);const Ku=async t=>{if(t==null)return 0;if(E.isBlob(t))return t.size;if(E.isSpecCompliantForm(t))return(await new Request(ce.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(E.isArrayBufferView(t)||E.isArrayBuffer(t))return t.byteLength;if(E.isURLSearchParams(t)&&(t=t+""),E.isString(t))return(await Yu(t)).byteLength},Xu=async(t,a)=>E.toFiniteNumber(t.getContentLength())??Ku(a),Qu=Tt&&(async t=>{let{url:a,method:o,data:l,signal:r,cancelToken:i,timeout:n,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:h,withCredentials:p="same-origin",fetchOptions:y}=El(t);c=c?(c+"").toLowerCase():"text";let f=Wu([r,i&&i.toAbortSignal()],n),u;const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(d&&Ju&&o!=="get"&&o!=="head"&&(g=await Xu(h,l))!==0){let z=new Request(a,{method:"POST",body:l,duplex:"half"}),q;if(E.isFormData(l)&&(q=z.headers.get("content-type"))&&h.setContentType(q),z.body){const[Z,Y]=bl(g,Ft(Sl(d)));l=wl(z.body,Nl,Z,Y)}}E.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;u=new Request(a,{...y,signal:f,method:o.toUpperCase(),headers:h.normalize().toJSON(),body:l,duplex:"half",credentials:b?p:void 0});let N=await fetch(u);const I=_a&&(c==="stream"||c==="response");if(_a&&(s||I&&m)){const z={};["status","statusText","headers"].forEach(oe=>{z[oe]=N[oe]});const q=E.toFiniteNumber(N.headers.get("content-length")),[Z,Y]=s&&bl(q,Ft(Sl(s),!0))||[];N=new Response(wl(N.body,Nl,Z,()=>{Y&&Y(),m&&m()}),z)}c=c||"text";let G=await Mt[E.findKey(Mt,c)||"text"](N,t);return!I&&m&&m(),await new Promise((z,q)=>{gl(z,q,{data:G,headers:Ce.from(N.headers),status:N.status,statusText:N.statusText,config:t,request:u})})}catch(b){throw m&&m(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,t,u),{cause:b.cause||b}):H.from(b,b&&b.code,t,u)}}),Ca={http:pu,xhr:$u,fetch:Qu};E.forEach(Ca,(t,a)=>{if(t){try{Object.defineProperty(t,"name",{value:a})}catch{}Object.defineProperty(t,"adapterName",{value:a})}});const xl=t=>`- ${t}`,ef=t=>E.isFunction(t)||t===null||t===!1,Bl={getAdapter:t=>{t=E.isArray(t)?t:[t];const{length:a}=t;let o,l;const r={};for(let i=0;i<a;i++){o=t[i];let n;if(l=o,!ef(o)&&(l=Ca[(n=String(o)).toLowerCase()],l===void 0))throw new H(`Unknown adapter '${n}'`);if(l)break;r[n||"#"+i]=l}if(!l){const i=Object.entries(r).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let n=a?i.length>1?`since :
|
|
5
|
+
`):" "+No(i[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return l},adapters:aa};function oa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new je(null,t)}function Bo(t){return oa(t),t.headers=ue.from(t.headers),t.data=ea.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xo.getAdapter(t.adapter||Xe.adapter)(t).then(function(l){return oa(t),l.data=ea.call(t,t.transformResponse,l),l.headers=ue.from(l.headers),l},function(l){return ho(l)||(oa(t),l&&l.response&&(l.response.data=ea.call(t,t.transformResponse,l.response),l.response.headers=ue.from(l.response.headers))),Promise.reject(l)})}const Fo="1.8.4",bt={};["object","boolean","number","function","string","symbol"].forEach((t,a)=>{bt[t]=function(l){return typeof l===t||"a"+(a<1?"n ":" ")+t}});const To={};bt.transitional=function(a,o,l){function r(i,n){return"[Axios v"+Fo+"] Transitional option '"+i+"'"+n+(l?". "+l:"")}return(i,n,s)=>{if(a===!1)throw new j(r(n," has been removed"+(o?" in "+o:"")),j.ERR_DEPRECATED);return o&&!To[n]&&(To[n]=!0,console.warn(r(n," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(i,n,s):!0}},bt.spelling=function(a){return(o,l)=>(console.warn(`${l} is likely a misspelling of ${a}`),!0)};function Wd(t,a,o){if(typeof t!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const l=Object.keys(t);let r=l.length;for(;r-- >0;){const i=l[r],n=a[i];if(n){const s=t[i],d=s===void 0||n(s,i,t);if(d!==!0)throw new j("option "+i+" must be "+d,j.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const St={assertOptions:Wd,validators:bt},we=St.validators;let Le=class{constructor(a){this.defaults=a,this.interceptors={request:new mo,response:new mo}}async request(a,o){try{return await this._request(a,o)}catch(l){if(l instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
|
|
6
|
+
`+i):l.stack=i}catch{}}throw l}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ae(this.defaults,o);const{transitional:l,paramsSerializer:r,headers:i}=o;l!==void 0&&St.assertOptions(l,{silentJSONParsing:we.transitional(we.boolean),forcedJSONParsing:we.transitional(we.boolean),clarifyTimeoutError:we.transitional(we.boolean)},!1),r!=null&&(w.isFunction(r)?o.paramsSerializer={serialize:r}:St.assertOptions(r,{encode:we.function,serialize:we.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),St.assertOptions(o,{baseUrl:we.spelling("baseURL"),withXsrfToken:we.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let n=i&&w.merge(i.common,i[o.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),o.headers=ue.concat(n,i);const s=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(d=d&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,p=0,y;if(!d){const u=[Bo.bind(this),void 0];for(u.unshift.apply(u,s),u.push.apply(u,c),y=u.length,f=Promise.resolve(o);p<y;)f=f.then(u[p++],u[p++]);return f}y=s.length;let h=o;for(p=0;p<y;){const u=s[p++],m=s[p++];try{h=u(h)}catch(g){m.call(this,g);break}}try{f=Bo.call(this,h)}catch(u){return Promise.reject(u)}for(p=0,y=c.length;p<y;)f=f.then(c[p++],c[p++]);return f}getUri(a){a=Ae(this.defaults,a);const o=So(a.baseURL,a.url,a.allowAbsoluteUrls);return co(o,a.params,a.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(a){Le.prototype[a]=function(o,l){return this.request(Ae(l||{},{method:a,url:o,data:(l||{}).data}))}}),w.forEach(["post","put","patch"],function(a){function o(l){return function(i,n,s){return this.request(Ae(s||{},{method:a,headers:l?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Le.prototype[a]=o(),Le.prototype[a+"Form"]=o(!0)});let Gd=class Jl{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const l=this;this.promise.then(r=>{if(!l._listeners)return;let i=l._listeners.length;for(;i-- >0;)l._listeners[i](r);l._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(s=>{l.subscribe(s),i=s}).then(r);return n.cancel=function(){l.unsubscribe(i)},n},a(function(i,n,s){l.reason||(l.reason=new je(i,n,s),o(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const a=new AbortController,o=l=>{a.abort(l)};return this.subscribe(o),a.signal.unsubscribe=()=>this.unsubscribe(o),a.signal}static source(){let a;return{token:new Jl(function(r){a=r}),cancel:a}}};function qd(t){return function(o){return t.apply(null,o)}}function Zd(t){return w.isObject(t)&&t.isAxiosError===!0}const la={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(la).forEach(([t,a])=>{la[a]=t});function Mo(t){const a=new Le(t),o=Ya(Le.prototype.request,a);return w.extend(o,Le.prototype,a,{allOwnKeys:!0}),w.extend(o,a,null,{allOwnKeys:!0}),o.create=function(r){return Mo(Ae(t,r))},o}const X=Mo(Xe);X.Axios=Le,X.CanceledError=je,X.CancelToken=Gd,X.isCancel=ho,X.VERSION=Fo,X.toFormData=ut,X.AxiosError=j,X.Cancel=X.CanceledError,X.all=function(a){return Promise.all(a)},X.spread=qd,X.isAxiosError=Zd,X.mergeConfig=Ae,X.AxiosHeaders=ue,X.formToJSON=t=>uo(w.isHTMLForm(t)?new FormData(t):t),X.getAdapter=xo.getAdapter,X.HttpStatusCode=la,X.default=X;const{Axios:F9,AxiosError:T9,CanceledError:M9,isCancel:A9,CancelToken:L9,VERSION:P9,all:D9,Cancel:I9,isAxiosError:R9,spread:v9,toFormData:O9,AxiosHeaders:z9,HttpStatusCode:U9,formToJSON:j9,getAdapter:$9,mergeConfig:H9}=X,_t=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,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 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:1934,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:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],ce={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Yd=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Jd={key:1},Kd={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xd=["fill"],Qd={key:0,class:"checkbox__teams"},ec={class:"checkbox__teams__logo"},tc=["src"],ac={class:"checkbox__teams__logo"},oc=["src"],lc={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",Jd,[(e.openBlock(),e.createElementBlock("svg",Kd,[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,Xd)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Qd,[e.createElementVNode("div",ec,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,tc)]),e.createElementVNode("div",ac,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,oc)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},Y=Yd(lc,[["__scopeId","data-v-b6f124d8"]]),K=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ic={class:"container"},rc={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nc=["fill"],sc={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dc=["fill"],cc={__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(a=>({"563e5242":t.width,a529e9a4:t.height})),(a,o)=>(e.openBlock(),e.createElementBlock("div",ic,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",rc,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,nc)])):(e.openBlock(),e.createElementBlock("svg",sc,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,dc)]))]))}},Pe=K(cc,[["__scopeId","data-v-166b6226"]]),$e=t=>(e.pushScopeId("data-v-a2dffe27"),t=t(),e.popScopeId(),t),mc={class:"productivity"},pc={class:"productivity__body__offensive"},uc={class:"productivity__body__title"},fc={class:"productivity__body__title__info"},hc={class:"number-of-categories"},yc={class:"productivity__body__categories"},gc={class:"productivity__body__defensive-possession"},bc={class:"block"},Sc={class:"productivity__body__title"},_c={class:"productivity__body__title__info"},Cc={class:"number-of-categories"},Ec={class:"productivity__body__categories"},wc={class:"block"},kc={class:"productivity__body__title"},Vc={class:"productivity__body__title__info"},Nc={class:"number-of-categories"},xc={class:"productivity__body__categories"},Bc=["onClick"],Fc=$e(()=>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)),Tc=[Fc],Mc={key:0,class:"productivity__footer"},Ac={class:"productivity__footer__offenses"},Lc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),Pc={class:"productivity__footer__offenses__table"},Dc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Si"),e.createElementVNode("div",null,"No")],-1)),Ic={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},Rc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),vc={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},Oc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),zc={class:"productivity__footer__offenses__table__row has-padding"},Uc=$e(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),jc={__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}},emits:["update:offensesConditions","click-parameters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.ref(!1),i=e.ref(!1),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),s=e.computed(()=>({"--template-columns":o.isExpansionMode?"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(()=>o.productivityCategories.offensive.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),c=e.computed(()=>o.productivityCategories.defensive.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),f=e.computed(()=>o.productivityCategories.possession.categories.reduce((m,g)=>(g.isSelected&&m++,m),0)),p=e.computed(()=>o.isFromTemplates||o.isForTemplateForm);e.watch(()=>o.productivityCategories,m=>{n.value.areYellowCardsSelected=m.offensesConditions.areYellowCardsSelected,n.value.areRedCardsSelected=m.offensesConditions.areRedCardsSelected,n.value.areFoulsCommittedSelected=m.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),e.watch(n,m=>{a("update:offensesConditions",m)},{deep:!0,immediate:!0});function y(m,g){g.isSelected=m,setTimeout(()=>{g.priority=o.numberOfCategoriesSelected},10)}function h(m){a("click-parameters",m)}function u(m){m==="offensive"?l.value=!l.value:m==="defensive"?r.value=!r.value:m==="possession"&&(i.value=!i.value)}return(m,g)=>(e.openBlock(),e.createElementBlock("div",mc,[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",pc,[e.createElementVNode("div",uc,[e.createElementVNode("div",fc,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",hc,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[0]||(g[0]=_=>u("offensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",yc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.offensive.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"productivity__checkbox"},[e.createVNode(e.unref(Y),{label:_.name,fontFamily:t.fontFamily,"model-value":_.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&_.isSelected,"box-value":p.value?null:_.priority||0,"onUpdate:modelValue":B=>y(B,_)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])]),e.createElementVNode("div",gc,[e.createElementVNode("div",bc,[e.createElementVNode("div",Sc,[e.createElementVNode("div",_c,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",Cc,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[1]||(g[1]=_=>u("defensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ec,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.defensive.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"productivity__checkbox"},[e.createVNode(e.unref(Y),{label:_.name,fontFamily:t.fontFamily,"model-value":_.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&_.isSelected,"box-value":p.value?null:_.priority||0,"onUpdate:modelValue":B=>y(B,_)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])]),e.createElementVNode("div",wc,[e.createElementVNode("div",kc,[e.createElementVNode("div",Vc,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",Nc,"("+e.toDisplayString(f.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:g[2]||(g[2]=_=>u("possession"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",xc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.possession.categories,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:"productivity__checkbox"},[e.createVNode(e.unref(Y),{label:_.name,fontFamily:t.fontFamily,"model-value":_.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&_.isSelected,"box-value":p.value?null:_.priority||0,"onUpdate:modelValue":B=>y(B,_)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"]),_.parameters?(e.openBlock(),e.createElementBlock("div",{key:0,class:"options",role:"button",onClick:B=>h(_)},Tc,8,Bc)):e.createCommentVNode("",!0)]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]])])])],4),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Mc,[e.createElementVNode("div",Ac,[Lc,e.createElementVNode("div",Pc,[Dc,e.createElementVNode("div",Ic,[Rc,e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":n.value.areFoulsCommittedSelected,"avoid-interaction":n.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":g[3]||(g[3]=_=>n.value.areFoulsCommittedSelected=_)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":!n.value.areFoulsCommittedSelected,"avoid-interaction":!n.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":g[4]||(g[4]=_=>n.value.areFoulsCommittedSelected=!_)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",vc,[Oc,e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":n.value.areYellowCardsSelected,"avoid-interaction":n.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":g[5]||(g[5]=_=>n.value.areYellowCardsSelected=_)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":!n.value.areYellowCardsSelected,"avoid-interaction":!n.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":g[6]||(g[6]=_=>n.value.areYellowCardsSelected=!_)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",zc,[Uc,e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":n.value.areRedCardsSelected,"avoid-interaction":n.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":g[7]||(g[7]=_=>n.value.areRedCardsSelected=_)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":!n.value.areRedCardsSelected,"avoid-interaction":!n.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":g[8]||(g[8]=_=>n.value.areRedCardsSelected=!_)},null,8,["model-value","avoid-interaction"])])])])])]))]))}},$c=K(jc,[["__scopeId","data-v-a2dffe27"]]),xe=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),Hc={class:"details__header"},Wc=xe(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Gc={class:"details__header__checkbox"},qc={class:"details__body"},Zc={class:"details__body__playing-as"},Yc=["onClick"],Jc={class:"details__header"},Kc=xe(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),Xc={class:"details__header__checkbox"},Qc={class:"details__body"},e1=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),t1={class:"details__body__game-section"},a1=["onClick"],o1={class:"details__body"},l1=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),i1={class:"details__body__game-section"},r1=["onClick"],n1={key:0,class:"details_body"},s1=xe(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),d1={class:"radios"},c1={class:"radio-input"},m1={class:"radio-input__radio"},p1=xe(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),u1={class:"radio-input"},f1={class:"radio-input__radio"},h1=xe(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),y1={class:"radio-input"},g1={class:"radio-input__radio"},b1=xe(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),S1={__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:a}){const o=t;e.useCssVars(y=>({"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 l=e.ref("");e.watch(()=>o.statisticType,y=>{l.value=y},{immediate:!0}),e.watch(()=>l.value,y=>{o.statisticType=y,a("change-statistic-type",y)});const r=e.computed(()=>o.playingAs.every(y=>y.isSelected)),i=e.computed(()=>o.gameSections.every(y=>y.isSelected)),n=e.computed(()=>o.gameSections.reduce((y,h)=>(h.value<=3?y.firstHalf.push(h):y.secondHalf.push(h),y),{firstHalf:[],secondHalf:[]})),s=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function d(y){y?o.playingAs.forEach(h=>{h.isSelected=!0}):o.playingAs.forEach((h,u)=>{h.isSelected=u===0})}function c(y){o.playingAs.filter(h=>h.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function f(y){o.gameSections.filter(h=>h.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?o.gameSections.forEach(h=>{h.isSelected=!0}):o.gameSections.forEach((h,u)=>{h.isSelected=u===0})}return(y,h)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(s.value)},[e.withDirectives(e.createElementVNode("div",Hc,[Wc,e.createElementVNode("div",Gc,[e.createVNode(e.unref(Y),{label:"Todos",fontFamily:t.fontFamily,"model-value":r.value,"onUpdate:modelValue":d},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",qc,[e.createElementVNode("div",Zc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>c(u)},e.toDisplayString(u.name),11,Yc))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",Jc,[Kc,e.createElementVNode("div",Xc,[e.createVNode(e.unref(Y),{label:"Todos",fontFamily:t.fontFamily,"model-value":i.value,"onUpdate:modelValue":p},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",Qc,[e1,e.createElementVNode("div",t1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.firstHalf,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>f(u)},e.toDisplayString(u.text),11,a1))),128))])]),e.createElementVNode("div",o1,[l1,e.createElementVNode("div",i1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.secondHalf,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:u.isSelected}]),onClick:g=>f(u)},e.toDisplayString(u.text),11,r1))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",n1,[s1,e.createElementVNode("div",d1,[e.createElementVNode("div",c1,[e.createElementVNode("div",m1,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=u=>l.value=u),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),p1])]),e.createElementVNode("div",u1,[e.createElementVNode("div",f1,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[1]||(h[1]=u=>l.value=u),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),h1])]),e.createElementVNode("div",y1,[e.createElementVNode("div",g1,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[2]||(h[2]=u=>l.value=u),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,l.value]]),b1])])])])):e.createCommentVNode("",!0)],4))}},_1=K(S1,[["__scopeId","data-v-feb56031"]]),C1={class:"scroll-container"},E1={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(a=>({"6aab424d":t.height,39848040:t.width})),(a,o)=>(e.openBlock(),e.createElementBlock("div",C1,[e.renderSlot(a.$slots,"default",{},void 0,!0)]))}},Ao=K(E1,[["__scopeId","data-v-218f5976"]]),w1={class:"tournaments"},k1={key:0,class:"tournaments__tournament"},V1={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1}},emits:["change-filters-selected","update:filters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.computed(()=>o.tournaments.filter(s=>s.isSelected).length);e.watch(()=>o.tournaments,s=>{const d=s.filter(c=>c.isSelected);l.value=d.length===s.length,a("change-filters-selected",d.length),a("update:filters",o.tournaments)},{immediate:!0,deep:!0});function i(s){o.tournaments.forEach((d,c)=>{d.isSelected=s||(c!==0?s:!0)})}function n(s,d){o.isOneTournamentOnly&&o.tournaments.forEach(c=>{c.isSelected=!1}),d.isSelected=s}return(s,d)=>(e.openBlock(),e.createElementBlock("div",w1,[e.createVNode(Ao,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",k1,[e.createVNode(e.unref(Y),{"model-value":l.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":i},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tournaments,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id||c._id,class:"tournaments__tournament"},[e.createVNode(e.unref(Y),{"model-value":c.isSelected,label:c.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":r.value===1&&c.isSelected,"onUpdate:modelValue":f=>n(f,c)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},N1=K(V1,[["__scopeId","data-v-f2d7cddf"]]),b={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"},x1={key:0,class:"plays-golstats__placeholder"},B1=["onClick"],F1={key:0,class:"plays-golstats__item__value"},T1={class:"plays-golstats__item__text"},M1={class:"plays-golstats__item__svg"},A1={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L1=["fill"],P1={__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:a}){const o=t,l=e.computed(()=>({"--grid-template-columns":o.type===b.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${o.svgWidth}px`,"--svg-height":`${o.svgHeight}px`}));e.watch(()=>o.categories,i=>{const n=i.filter(s=>s.isSelected);a("update:filters",n)},{immediate:!0,deep:!0});function r(i){i.isSelected||(o.categories.forEach(n=>{n.isSelected=!1}),i.isSelected=!0,o.type===b.GOLSTATS&&a("change-filters-selected",i.value))}return(i,n)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(l.value)},[e.createVNode(Ao,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(b).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",x1," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(s,d)=>(e.openBlock(),e.createElementBlock("div",{key:`k${d}`,class:"plays-golstats__item",onClick:c=>r(s)},[t.type===e.unref(b).GOLSTATS?(e.openBlock(),e.createElementBlock("div",F1,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",T1,e.toDisplayString(s.name),1),e.createElementVNode("div",M1,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",A1,[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,L1)],512)),[[e.vShow,s.isSelected]])])],8,B1))),128))]),_:1},8,["height"])],4))}},Lo=K(P1,[["__scopeId","data-v-af3c1673"]]),D1=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ia={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 a=t.which?t.which:t.keyCode();a>31&&(a<48||a>57)&&t.preventDefault()}}}},Po=()=>{e.useCssVars(t=>({"53e1855a":t.textRightColor,da8ee600:t.textRightFontSize,"9fb876ba":t.textRightFontFamily}))},Do=ia.setup;ia.setup=Do?(t,a)=>(Po(),Do(t,a)):Po;const I1={class:"input-container"},R1=["type","placeholder","value"],v1={class:"right-text"};function O1(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",I1,[e.createElementVNode("input",{type:o.inputType,placeholder:o.placeholder,value:o.value,style:e.normalizeStyle(i.inputStyle),onKeydown:a[0]||(a[0]=(...n)=>i.onKeyDown&&i.onKeyDown(...n)),onInput:a[1]||(a[1]=(...n)=>i.updateInputValue&&i.updateInputValue(...n))},null,44,R1),e.createElementVNode("div",v1,e.toDisplayString(o.textRight),1)])}const Io=D1(ia,[["render",O1],["__scopeId","data-v-b73049e7"]]),z1=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ra={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))}}},Ro=()=>{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}))},vo=ra.setup;ra.setup=vo?(t,a)=>(Ro(),vo(t,a)):Ro;const U1=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),j1=["src"],$1={key:1,class:"text"},H1=["src"],W1={class:"stats"},G1=U1(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),q1={class:"numstats"},Z1={class:"leyend"};function Y1(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,j1)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",$1,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,H1)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",W1,[G1,e.createElementVNode("div",q1,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Z1,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const J1=z1(ra,[["render",Y1],["__scopeId","data-v-f3ee6b2b"]]),K1={class:"gsc-dropdown__main-container__item-selected"},X1=["height","width"],Q1=["stroke"],em={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tm=["fill"],am={class:"gsc-dropdown__items-container"},om=["onClick"],lm={key:0,class:"gsc-dropdown__items-footer"},Be={__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(a=>a 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:a}){const o=t,l=e.ref({}),r=e.ref(null),i=e.ref(o.isMultipleOption?-1:0),n=e.ref(!1);e.watch(()=>o.items,(h,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&h&&h.length){if(o.defaultItemByProp){const m=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);m!==-1?(i.value=m,l.value=h[m]):(i.value=0,l.value=h[0])}else l.value=h[o.defaultItemByIndex];a("input",l.value)}},{immediate:!0}),e.watch(()=>o.modelValue,h=>{if(h){const u=o.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);u!==-1&&(i.value=u,l.value=o.items[u],a("update:modelValue",l.value))}},{immediate:!0});const s=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"})),d=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(n.value=!n.value)}function f(h){r.value&&!r.value.contains(h.target)&&(n.value=!1)}function p(h,u){o.isMultipleOption?i.value=-1:(i.value=u,n.value=!1),l.value=h,a("input",l.value),a("update:modelValue",l.value)}function y(){n.value=!1,a("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(h,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:r,class:"gsc-dropdown",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:c},[e.createElementVNode("div",K1,[e.renderSlot(h.$slots,"default",{selectedItem:l.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:e.normalizeStyle(d.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,Q1)],8,X1)):(e.openBlock(),e.createElementBlock("svg",em,[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,tm)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",am,[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,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:_=>p(m,g)},[e.renderSlot(h.$slots,"availableItem",{item:m})],10,om)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",lm,[e.createVNode(e.unref(J1),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):e.createCommentVNode("",!0)])],512),[[e.vShow,n.value]])]),_:3})],4))}},et={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},He=t=>(e.pushScopeId("data-v-b1fc2fa6"),t=t(),e.popScopeId(),t),im={class:"universe"},rm=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),nm=He(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),sm={class:"universe__inputs"},dm={class:"universe__inputs__input"},cm={class:"universe__inputs__checkbox"},mm=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),pm=He(()=>e.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),um={class:"universe__inputs"},fm={class:"universe__inputs__input"},hm={class:"universe__inputs__checkbox"},ym=He(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),gm=He(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),bm={class:"universe__dropdown"},Sm={class:"selected-item"},Oo=11,_m={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(!1),i=e.ref(!1),n=e.ref(!1),s=e.ref({statistics:{}});e.watch(()=>l.universeFilters,h=>{s.value={...h,lastMonths:h.selectedMonth?h.selectedMonth:h.lastMonths[Oo],statistics:{...h.statistics}}},{deep:!0,immediate:!0}),e.watch(()=>s,h=>{r.value=!h.value.minutesPlayed||Number(h.value.minutesPlayed)===0,i.value=!h.value.percentMinutesPlayed||Number(h.value.percentMinutesPlayed)===0,n.value=!h.value.lastMonths||Number(h.value.lastMonths)===0,o("update:universeFilters",h)},{deep:!0,immediate:!0});function d(h){s.value.minutesPlayed=h}function c(h){s.value.percentMinutesPlayed=h}function f(h,u){switch(u){case"minutes":r.value=h,h&&(s.value.minutesPlayed=0);break;case"percent":i.value=h,h&&(s.value.percentMinutesPlayed=0);break;case"months":n.value=h,h&&(s.value.lastMonths=0);break}}function p(){s.value={...l.universeFilters,lastMonths:l.universeFilters.lastMonths[Oo],statistics:{...l.universeFilters.statistics}}}function y(h){s.value.lastMonths=h}return a({resetFilters:p}),(h,u)=>(e.openBlock(),e.createElementBlock("div",im,[rm,nm,e.createElementVNode("div",sm,[e.createElementVNode("div",dm,[e.createVNode(e.unref(Io),{value:s.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:d},null,8,["value"])]),e.createElementVNode("div",cm,[e.createVNode(e.unref(Y),{modelValue:r.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":u[0]||(u[0]=m=>f(m,"minutes"))},null,8,["modelValue","fontFamily"])])]),mm,pm,e.createElementVNode("div",um,[e.createElementVNode("div",fm,[e.createVNode(e.unref(Io),{value:s.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:c},null,8,["value"])]),e.createElementVNode("div",hm,[e.createVNode(e.unref(Y),{modelValue:i.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":u[1]||(u[1]=m=>f(m,"percent"))},null,8,["modelValue","fontFamily"])])]),ym,gm,e.createElementVNode("div",bm,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.universeFilters.lastMonths,"model-value":s.value.lastMonths,onInput:y}),{default:e.withCtx(({selectedItem:m})=>[e.createElementVNode("div",Sm,e.toDisplayString(m)+" "+e.toDisplayString(m===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:m})=>[e.createElementVNode("div",null,e.toDisplayString(m)+" "+e.toDisplayString(m===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},Cm=K(_m,[["__scopeId","data-v-b1fc2fa6"]]),zo=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Em={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||[],a=this.min===void 0?0:this.min,o=t.length?t.length-1:100,l=this.max===void 0?o:this.max,r=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(r=1);let i=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(i=t.length-2),l<=a)throw new Error("Invalid props min or max");if(r>i)throw new Error("Invalid props minValue or maxValue");let n=this.rangeMargin===void 0?this.step:this.rangeMargin,s=n%this.step;return s&&(n=n+this.step-s),{valueMin:r<a?a:r,valueMax:i>l?l:i,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:n}},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 a=parseFloat(t.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:t.target.value=this.valueMin},onInputMaxChange(t){let a=parseFloat(t.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a: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 a=t.clientX;t.type==="touchmove"&&(a=t.touches[0].clientX);let o=(a-this.startX)/this.barBox.width,l=this.barValue+(this.maximum-this.minimum)*o,r=l%this.step;l-=r,l<this.minimum?l=this.minimum:l>this.valueMax-this.rangeMarginValue&&(l=this.valueMax-this.rangeMarginValue),this.valueMin=l},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 a=t.clientX;t.type==="touchmove"&&(a=t.touches[0].clientX);let o=(a-this.startX)/this.barBox.width,l=this.barValue+(this.maximum-this.minimum)*o,r=l%this.step;l-=r,l<this.valueMin+this.rangeMarginValue?l=this.valueMin+this.rangeMarginValue:l>this.maximum&&(l=this.maximum),this.valueMax=l},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 a=this.step;t.deltaY<0&&(a=-a),t.shiftKey&&t.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):t.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):t.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],a=t.length?t.length-1:100;return this.max===void 0?a: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(){}},wm={class:"bar"},km=["min","max","step","value"],Vm={class:"caption"},Nm={class:"min-caption"},xm={class:"bar-inner"},Bm=["min","max","step","value"],Fm={class:"caption"},Tm={class:"max-caption"},Mm={key:0,class:"ruler"},Am={key:1,class:"sub-ruler"},Lm={key:2,class:"labels"};function Pm(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.baseClassName,r.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=e.withModifiers((...n)=>i.onMouseWheel&&i.onMouseWheel(...n),["prevent","stop"]))},[e.createElementVNode("div",wm,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:i.barMin+"%"}),onClick:a[0]||(a[0]=(...n)=>i.onBarLeftClick&&i.onBarLeftClick(...n))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:i.minimum,max:i.maximum,step:o.step,value:r.valueMin,onInput:a[1]||(a[1]=e.withModifiers((...n)=>i.onInputMinChange&&i.onInputMinChange(...n),["stop","prevent"]))},null,40,km),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...n)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...n)),onTouchstart:a[3]||(a[3]=(...n)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...n))},[e.createElementVNode("div",Vm,[e.createElementVNode("span",Nm,e.toDisplayString(o.minCaption||i.barMinVal),1)])],32),e.createElementVNode("div",xm,[e.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...n)=>i.onInnerBarLeftClick&&i.onInnerBarLeftClick(...n))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...n)=>i.onInnerBarRightClick&&i.onInnerBarRightClick(...n))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:i.minimum,max:i.maximum,step:o.step,value:r.valueMax,onInput:a[6]||(a[6]=e.withModifiers((...n)=>i.onInputMaxChange&&i.onInputMaxChange(...n),["stop","prevent"]))},null,40,Bm),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...n)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...n)),onTouchstart:a[8]||(a[8]=(...n)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...n))},[e.createElementVNode("div",Fm,[e.createElementVNode("span",Tm,e.toDisplayString(o.maxCaption||i.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:i.barMax+"%"}),onClick:a[9]||(a[9]=(...n)=>i.onBarRightClick&&i.onBarRightClick(...n))},null,4)]),o.ruler?(e.openBlock(),e.createElementBlock("div",Mm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.stepCount,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),i.subStepCount?(e.openBlock(),e.createElementBlock("div",Am,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.subStepCount,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("div",Lm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.scaleLabels,n=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:n},e.toDisplayString(n),1))),128))])):e.createCommentVNode("",!0)],34)}const Dm=zo(Em,[["render",Pm]]),na={components:{MultiRangeSlider:Dm},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)}}},Uo=()=>{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}))},jo=na.setup;na.setup=jo?(t,a)=>(Uo(),jo(t,a)):Uo;const Im={class:"center"},Rm={class:"bar-ref"},vm={class:"bar-ref-element-left"},Om={class:"bar-ref-element-right"};function zm(t,a,o,l,r,i){const n=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(i.customStyle)},[e.createElementVNode("div",Im,[e.createElementVNode("div",Rm,[e.createElementVNode("div",vm,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(i.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(i.customStyleValue)},e.toDisplayString(r.minValueLocal)+e.toDisplayString(o.minSuffix),5)]),e.createElementVNode("div",Om,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(i.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(i.customStyleValue)},e.toDisplayString(r.maxValueLocal)+e.toDisplayString(o.maxSuffix),5)])]),e.createVNode(n,{baseClassName:"multi-range-slider",min:o.minLimit,max:o.maxLimit,step:1,ruler:!1,label:!1,"min-value":r.minValueLocal,"max-value":r.maxValueLocal,"range-margin":0,onInput:i.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const $o=zo(na,[["render",zm]]),Um={class:"template-distance"},jm={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:a}){const o=t,l=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>l.value,i=>{a("update:distanceFilters",i)},{deep:!0}),e.watch(()=>o.distance,i=>{l.value.minValue=i.minValue,l.value.maxValue=i.maxValue,l.value.minLimit=i.minLimit,l.value.maxLimit=i.maxLimit},{immediate:!0,deep:!0});function r(i){l.value.minValue=i.minValue,l.value.maxValue=i.maxValue}return(i,n)=>(e.openBlock(),e.createElementBlock("div",Um,[e.createVNode(e.unref($o),{"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":l.value.minLimit,"max-limit":l.value.maxLimit,"min-value":l.value.minValue,"max-value":l.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:r},null,8,["min-limit","max-limit","min-value","max-value"])]))}},$m=t=>(e.pushScopeId("data-v-be32e3d8"),t=t(),e.popScopeId(),t),Hm={class:"template-games"},Wm={class:"template-games__header"},Gm=$m(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),qm={class:"template-games__header__all-games"},Zm={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:a}){const o=t,l=e.ref(!1),r=e.computed(()=>o.gamesFilters.filter(n=>n.isSelected).length);e.watch(()=>o.gamesFilters,n=>{a("update:gamesFilters",n)},{deep:!0}),e.watch(r,n=>{l.value=n===o.gamesFilters.length,a("update:gamesFilters",o.gamesFilters)},{immediate:!0});const i=n=>{n?o.gamesFilters.forEach(s=>{s.isSelected=n}):o.gamesFilters.forEach((s,d)=>{s.isSelected=d===0}),l.value=n};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Hm,[e.createElementVNode("div",Wm,[Gm,e.createElementVNode("div",qm,[e.createVNode(e.unref(Y),{modelValue:l.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":i},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"template-games__game"},[e.createVNode(e.unref(Y),{modelValue:d.isSelected,"onUpdate:modelValue":f=>d.isSelected=f,label:d.label,"teams-ids":d.teamsIds,"avoid-interaction":r.value===1&&d.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},Ym=K(Zm,[["__scopeId","data-v-be32e3d8"]]),Jm=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},sa={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))}}},Ho=()=>{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}))},Wo=sa.setup;sa.setup=Wo?(t,a)=>(Ho(),Wo(t,a)):Ho;const Km=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Xm=["src"],Qm={key:1,class:"text"},ep=["src"],tp={class:"stats"},ap=Km(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),op={class:"numstats"},lp={class:"leyend"};function ip(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,Xm)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",Qm,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,ep)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",tp,[ap,e.createElementVNode("div",op,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",lp,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const Ct=Jm(sa,[["render",ip],["__scopeId","data-v-f3ee6b2b"]]),rp=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},da={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))}}},Go=()=>{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}))},qo=da.setup;da.setup=qo?(t,a)=>(Go(),qo(t,a)):Go;const np=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),sp=["src"],dp={key:1,class:"text"},cp=["src"],mp={class:"stats"},pp=np(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),up={class:"numstats"},fp={class:"leyend"};function hp(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,sp)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",dp,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,cp)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",mp,[pp,e.createElementVNode("div",up,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",fp,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const yp=rp(da,[["render",hp],["__scopeId","data-v-f3ee6b2b"]]),gp=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},bp={key:1},Sp={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_p=["fill"],Cp={key:0,class:"checkbox__teams"},Ep={class:"checkbox__teams__logo"},wp=["src"],kp={class:"checkbox__teams__logo"},Vp=["src"],Np={__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:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const l=e.ref(!1),r=e.computed(()=>{const c={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 l.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),n=e.computed(()=>{const c={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")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==l.value&&(l.value=c)},{immediate:!0});function s(){o.avoidInteraction||!l.value&&o.avoidToCheck||(l.value=!l.value,a("update:modelValue",l.value))}function d(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:s},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(r.value)},[l.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(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",bp,[(e.openBlock(),e.createElementBlock("svg",Sp,[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,_p)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Cp,[e.createElementVNode("div",Ep,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,wp)]),e.createElementVNode("div",kp,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,Vp)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(n.value)},e.toDisplayString(t.label),5)],2))}},xp=gp(Np,[["__scopeId","data-v-b6f124d8"]]),Bp=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},ca={components:{GSCButton:yp,GSCCheckbox:xp},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,a)=>({sector:a+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 a=t.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((o,l)=>{o.active=t.includes(l+1),this.validateField(l)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var a=[];for(let o=0;o<t.length;o++)t[o].active&&a.push(o+1);this.$emit("update:modelValue",a)},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 a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);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 a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),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 a=0;this.sectors[t].active=!this.sectors[t].active;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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 a=0;for(let o=0;o<this.sectors.length;o++)this.sectors[o].active&&(a+=1);a==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,a==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)}}},Zo=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},Yo=ca.setup;ca.setup=Yo?(t,a)=>(Zo(),Yo(t,a)):Zo;const Fp={class:"gsc-field"},Tp={class:"gsc-field__title-checked"},Mp={class:"gsc-field__title-checked__title"},Ap={class:"gsc-field__container-field"},Lp={class:"gsc-field__container-field__field"},Pp={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},Dp=["stroke"],Ip=["stroke","stroke-width"],Rp=["stroke","stroke-width"],vp=["stroke-width","stroke"],Op=["fill","fill-opacity","stroke","stroke-width"],zp=["fill","fill-opacity","stroke","stroke-width"],Up=["fill","fill-opacity","stroke","stroke-width"],jp=["fill","fill-opacity","stroke","stroke-width"],$p=["fill","fill-opacity","stroke","stroke-width"],Hp=["fill","fill-opacity","stroke","stroke-width"],Wp=["fill","fill-opacity","stroke","stroke-width"],Gp=["fill","fill-opacity","stroke","stroke-width"],qp=["fill","fill-opacity","stroke","stroke-width"],Zp=["fill","fill-opacity","stroke","stroke-width"],Yp=["fill","fill-opacity","stroke","stroke-width"],Jp=["fill","fill-opacity","stroke","stroke-width"],Kp=["fill","fill-opacity","stroke","stroke-width"],Xp=["fill","fill-opacity","stroke","stroke-width"],Qp=["fill","fill-opacity","stroke","stroke-width"],eu=["fill","fill-opacity","stroke","stroke-width"],tu={class:"gsc-field__container-field__bar-buttons"};function au(t,a,o,l,r,i){const n=e.resolveComponent("GSCCheckbox"),s=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Fp,[e.createElementVNode("div",Tp,[e.createElementVNode("div",Mp,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(n,{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:r.all,key:r.update,"model-value":r.all,"onUpdate:modelValue":i.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",Ap,[e.createElementVNode("div",Lp,[(e.openBlock(),e.createElementBlock("svg",Pp,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:o.colorLineField},null,8,Dp),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+i.translx+"px, "+i.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,Ip),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+i.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,Rp),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+i.translxcircle+"px, "+i.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,vp),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:r.sectors[0].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[0]||(a[0]=d=>i.selectSector(0))},null,8,Op),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:r.sectors[1].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[1]||(a[1]=d=>i.selectSector(1))},null,8,zp),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:r.sectors[2].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[2]||(a[2]=d=>i.selectSector(2))},null,8,Up),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:r.sectors[3].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[3]||(a[3]=d=>i.selectSector(3))},null,8,jp),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:r.sectors[4].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[4]||(a[4]=d=>i.selectSector(4))},null,8,$p),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:r.sectors[5].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[5]||(a[5]=d=>i.selectSector(5))},null,8,Hp),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:r.sectors[6].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[6]||(a[6]=d=>i.selectSector(6))},null,8,Wp),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:r.sectors[7].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[7]||(a[7]=d=>i.selectSector(7))},null,8,Gp),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:r.sectors[8].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[8]||(a[8]=d=>i.selectSector(8))},null,8,qp),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:r.sectors[9].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[9]||(a[9]=d=>i.selectSector(9))},null,8,Zp),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:r.sectors[10].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[10]||(a[10]=d=>i.selectSector(10))},null,8,Yp),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:r.sectors[11].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[11]||(a[11]=d=>i.selectSector(11))},null,8,Jp),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:r.sectors[12].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[12]||(a[12]=d=>i.selectSector(12))},null,8,Kp),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:r.sectors[13].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[13]||(a[13]=d=>i.selectSector(13))},null,8,Xp),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:r.sectors[14].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[14]||(a[14]=d=>i.selectSector(14))},null,8,Qp),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:r.sectors[15].active?o.backgroundSectorActive:o.backgroundSectorDisabled,"fill-opacity":o.opacitySector,stroke:o.borderColor,"stroke-width":o.borderWidth,onClick:a[15]||(a[15]=d=>i.selectSector(15))},null,8,eu)]))]),e.createElementVNode("div",tu,[(e.openBlock(),e.createBlock(s,{"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:i.btn14,key:r.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn24,key:r.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn34,key:r.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(s,{"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:i.btn44,key:r.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const Jo=Bp(ca,[["render",au],["__scopeId","data-v-b85699b8"]]),ou={class:"toggle-buttons__background"},lu=["onClick"],iu={__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:a}){const o=t;e.useCssVars(n=>({"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 l=e.ref(o.selectedButtonIndex),r=e.computed(()=>({"--grid-template-columns":`repeat(${o.buttons.length}, 1fr)`}));e.watch(()=>o.selectedButtonIndex,n=>{l.value=n}),e.watch(l,(n,s)=>{n!==s&&a("change",{index:n,button:o.buttons[n]})});function i(n){l.value=n}return(n,s)=>(e.openBlock(),e.createElementBlock("div",ou,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:`b${c}`,class:e.normalizeClass(["toggle-buttons__button",{active:l.value===c}]),onClick:f=>i(c)},e.toDisplayString(d.text||d),11,lu))),128))],4)]))}},ru=K(iu,[["__scopeId","data-v-ac2af001"]]);function Ko(t,a){return function(){return t.apply(a,arguments)}}const{toString:nu}=Object.prototype,{getPrototypeOf:ma}=Object,Et=(t=>a=>{const o=nu.call(a);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),a=>Et(a)===t),wt=t=>a=>typeof a===t,{isArray:We}=Array,tt=wt("undefined");function su(t){return t!==null&&!tt(t)&&t.constructor!==null&&!tt(t.constructor)&&ye(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xo=_e("ArrayBuffer");function du(t){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(t):a=t&&t.buffer&&Xo(t.buffer),a}const cu=wt("string"),ye=wt("function"),Qo=wt("number"),kt=t=>t!==null&&typeof t=="object",mu=t=>t===!0||t===!1,Vt=t=>{if(Et(t)!=="object")return!1;const a=ma(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},pu=_e("Date"),uu=_e("File"),fu=_e("Blob"),hu=_e("FileList"),yu=t=>kt(t)&&ye(t.pipe),gu=t=>{let a;return t&&(typeof FormData=="function"&&t instanceof FormData||ye(t.append)&&((a=Et(t))==="formdata"||a==="object"&&ye(t.toString)&&t.toString()==="[object FormData]"))},bu=_e("URLSearchParams"),[Su,_u,Cu,Eu]=["ReadableStream","Request","Response","Headers"].map(_e),wu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function at(t,a,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let l,r;if(typeof t!="object"&&(t=[t]),We(t))for(l=0,r=t.length;l<r;l++)a.call(null,t[l],l,t);else{const i=o?Object.getOwnPropertyNames(t):Object.keys(t),n=i.length;let s;for(l=0;l<n;l++)s=i[l],a.call(null,t[s],s,t)}}function el(t,a){a=a.toLowerCase();const o=Object.keys(t);let l=o.length,r;for(;l-- >0;)if(r=o[l],a===r.toLowerCase())return r;return null}const De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tl=t=>!tt(t)&&t!==De;function pa(){const{caseless:t}=tl(this)&&this||{},a={},o=(l,r)=>{const i=t&&el(a,r)||r;Vt(a[i])&&Vt(l)?a[i]=pa(a[i],l):Vt(l)?a[i]=pa({},l):We(l)?a[i]=l.slice():a[i]=l};for(let l=0,r=arguments.length;l<r;l++)arguments[l]&&at(arguments[l],o);return a}const ku=(t,a,o,{allOwnKeys:l}={})=>(at(a,(r,i)=>{o&&ye(r)?t[i]=Ko(r,o):t[i]=r},{allOwnKeys:l}),t),Vu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Nu=(t,a,o,l)=>{t.prototype=Object.create(a.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:a.prototype}),o&&Object.assign(t.prototype,o)},xu=(t,a,o,l)=>{let r,i,n;const s={};if(a=a||{},t==null)return a;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)n=r[i],(!l||l(n,t,a))&&!s[n]&&(a[n]=t[n],s[n]=!0);t=o!==!1&&ma(t)}while(t&&(!o||o(t,a))&&t!==Object.prototype);return a},Bu=(t,a,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=a.length;const l=t.indexOf(a,o);return l!==-1&&l===o},Fu=t=>{if(!t)return null;if(We(t))return t;let a=t.length;if(!Qo(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=t[a];return o},Tu=(t=>a=>t&&a instanceof t)(typeof Uint8Array<"u"&&ma(Uint8Array)),Mu=(t,a)=>{const o=(t&&t[Symbol.iterator]).call(t);let l;for(;(l=o.next())&&!l.done;){const r=l.value;a.call(t,r[0],r[1])}},Au=(t,a)=>{let o;const l=[];for(;(o=t.exec(a))!==null;)l.push(o);return l},Lu=_e("HTMLFormElement"),Pu=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,l){return o.toUpperCase()+l}),al=(({hasOwnProperty:t})=>(a,o)=>t.call(a,o))(Object.prototype),Du=_e("RegExp"),ol=(t,a)=>{const o=Object.getOwnPropertyDescriptors(t),l={};at(o,(r,i)=>{let n;(n=a(r,i,t))!==!1&&(l[i]=n||r)}),Object.defineProperties(t,l)},Iu=t=>{ol(t,(a,o)=>{if(ye(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const l=t[o];if(ye(l)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ru=(t,a)=>{const o={},l=r=>{r.forEach(i=>{o[i]=!0})};return We(t)?l(t):l(String(t).split(a)),o},vu=()=>{},Ou=(t,a)=>t!=null&&Number.isFinite(t=+t)?t:a;function zu(t){return!!(t&&ye(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Uu=t=>{const a=new Array(10),o=(l,r)=>{if(kt(l)){if(a.indexOf(l)>=0)return;if(!("toJSON"in l)){a[r]=l;const i=We(l)?[]:{};return at(l,(n,s)=>{const d=o(n,r+1);!tt(d)&&(i[s]=d)}),a[r]=void 0,i}}return l};return o(t,0)},ju=_e("AsyncFunction"),$u=t=>t&&(kt(t)||ye(t))&&ye(t.then)&&ye(t.catch),ll=((t,a)=>t?setImmediate:a?((o,l)=>(De.addEventListener("message",({source:r,data:i})=>{r===De&&i===o&&l.length&&l.shift()()},!1),r=>{l.push(r),De.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ye(De.postMessage)),Hu=typeof queueMicrotask<"u"?queueMicrotask.bind(De):typeof process<"u"&&process.nextTick||ll,k={isArray:We,isArrayBuffer:Xo,isBuffer:su,isFormData:gu,isArrayBufferView:du,isString:cu,isNumber:Qo,isBoolean:mu,isObject:kt,isPlainObject:Vt,isReadableStream:Su,isRequest:_u,isResponse:Cu,isHeaders:Eu,isUndefined:tt,isDate:pu,isFile:uu,isBlob:fu,isRegExp:Du,isFunction:ye,isStream:yu,isURLSearchParams:bu,isTypedArray:Tu,isFileList:hu,forEach:at,merge:pa,extend:ku,trim:wu,stripBOM:Vu,inherits:Nu,toFlatObject:xu,kindOf:Et,kindOfTest:_e,endsWith:Bu,toArray:Fu,forEachEntry:Mu,matchAll:Au,isHTMLForm:Lu,hasOwnProperty:al,hasOwnProp:al,reduceDescriptors:ol,freezeMethods:Iu,toObjectSet:Ru,toCamelCase:Pu,noop:vu,toFiniteNumber:Ou,findKey:el,global:De,isContextDefined:tl,isSpecCompliantForm:zu,toJSONObject:Uu,isAsyncFn:ju,isThenable:$u,setImmediate:ll,asap:Hu};function $(t,a,o,l,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),l&&(this.request=l),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits($,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const il=$.prototype,rl={};["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=>{rl[t]={value:t}}),Object.defineProperties($,rl),Object.defineProperty(il,"isAxiosError",{value:!0}),$.from=(t,a,o,l,r,i)=>{const n=Object.create(il);return k.toFlatObject(t,n,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),$.call(n,t.message,a,o,l,r),n.cause=t,n.name=t.name,i&&Object.assign(n,i),n};const Wu=null;function ua(t){return k.isPlainObject(t)||k.isArray(t)}function nl(t){return k.endsWith(t,"[]")?t.slice(0,-2):t}function sl(t,a,o){return t?t.concat(a).map(function(l,r){return l=nl(l),!o&&r?"["+l+"]":l}).join(o?".":""):a}function Gu(t){return k.isArray(t)&&!t.some(ua)}const qu=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Nt(t,a,o){if(!k.isObject(t))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,u){return!k.isUndefined(u[h])});const l=o.metaTokens,r=o.visitor||c,i=o.dots,n=o.indexes,s=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(k.isDate(h))return h.toISOString();if(!s&&k.isBlob(h))throw new $("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(h)||k.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,u,m){let g=h;if(h&&!m&&typeof h=="object"){if(k.endsWith(u,"{}"))u=l?u:u.slice(0,-2),h=JSON.stringify(h);else if(k.isArray(h)&&Gu(h)||(k.isFileList(h)||k.endsWith(u,"[]"))&&(g=k.toArray(h)))return u=nl(u),g.forEach(function(_,B){!(k.isUndefined(_)||_===null)&&a.append(n===!0?sl([u],B,i):n===null?u:u+"[]",d(_))}),!1}return ua(h)?!0:(a.append(sl(m,u,i),d(h)),!1)}const f=[],p=Object.assign(qu,{defaultVisitor:c,convertValue:d,isVisitable:ua});function y(h,u){if(!k.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+u.join("."));f.push(h),k.forEach(h,function(m,g){(!(k.isUndefined(m)||m===null)&&r.call(a,m,k.isString(g)?g.trim():g,u,p))===!0&&y(m,u?u.concat(g):[g])}),f.pop()}}if(!k.isObject(t))throw new TypeError("data must be an object");return y(t),a}function dl(t){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function fa(t,a){this._pairs=[],t&&Nt(t,this,a)}const cl=fa.prototype;cl.append=function(t,a){this._pairs.push([t,a])},cl.toString=function(t){const a=t?function(o){return t.call(this,o,dl)}:dl;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Zu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ml(t,a,o){if(!a)return t;const l=o&&o.encode||Zu;k.isFunction(o)&&(o={serialize:o});const r=o&&o.serialize;let i;if(r?i=r(a,o):i=k.isURLSearchParams(a)?a.toString():new fa(a,o).toString(l),i){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Yu{constructor(){this.handlers=[]}use(a,o,l){return this.handlers.push({fulfilled:a,rejected:o,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const pl=Yu,ul={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ju=typeof URLSearchParams<"u"?URLSearchParams:fa,Ku=typeof FormData<"u"?FormData:null,Xu=typeof Blob<"u"?Blob:null,Qu={isBrowser:!0,classes:{URLSearchParams:Ju,FormData:Ku,Blob:Xu},protocols:["http","https","file","blob","url","data"]},ha=typeof window<"u"&&typeof document<"u",ya=typeof navigator=="object"&&navigator||void 0,ef=ha&&(!ya||["ReactNative","NativeScript","NS"].indexOf(ya.product)<0),tf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",af=ha&&window.location.href||"http://localhost",of=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ha,hasStandardBrowserEnv:ef,hasStandardBrowserWebWorkerEnv:tf,navigator:ya,origin:af},Symbol.toStringTag,{value:"Module"})),pe={...of,...Qu};function lf(t,a){return Nt(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(o,l,r,i){return pe.isNode&&k.isBuffer(o)?(this.append(l,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function rf(t){return k.matchAll(/\w+|\[(\w*)]/g,t).map(a=>a[0]==="[]"?"":a[1]||a[0])}function nf(t){const a={},o=Object.keys(t);let l;const r=o.length;let i;for(l=0;l<r;l++)i=o[l],a[i]=t[i];return a}function fl(t){function a(o,l,r,i){let n=o[i++];if(n==="__proto__")return!0;const s=Number.isFinite(+n),d=i>=o.length;return n=!n&&k.isArray(r)?r.length:n,d?(k.hasOwnProp(r,n)?r[n]=[r[n],l]:r[n]=l,!s):((!r[n]||!k.isObject(r[n]))&&(r[n]=[]),a(o,l,r[n],i)&&k.isArray(r[n])&&(r[n]=nf(r[n])),!s)}if(k.isFormData(t)&&k.isFunction(t.entries)){const o={};return k.forEachEntry(t,(l,r)=>{a(rf(l),r,o,0)}),o}return null}function sf(t,a,o){if(k.isString(t))try{return(a||JSON.parse)(t),k.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(o||JSON.stringify)(t)}const ga={transitional:ul,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const o=a.getContentType()||"",l=o.indexOf("application/json")>-1,r=k.isObject(t);if(r&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return l?JSON.stringify(fl(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1)return lf(t,this.formSerializer).toString();if((i=k.isFileList(t))||o.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return Nt(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}return r||l?(a.setContentType("application/json",!1),sf(t)):t}],transformResponse:[function(t){const a=this.transitional||ga.transitional,o=a&&a.forcedJSONParsing,l=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(o&&!this.responseType||l)){const r=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?$.from(i,$.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],t=>{ga.headers[t]={}});const ba=ga,df=k.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"]),cf=t=>{const a={};let o,l,r;return t&&t.split(`
|
|
7
|
+
`).forEach(function(i){r=i.indexOf(":"),o=i.substring(0,r).trim().toLowerCase(),l=i.substring(r+1).trim(),!(!o||a[o]&&df[o])&&(o==="set-cookie"?a[o]?a[o].push(l):a[o]=[l]:a[o]=a[o]?a[o]+", "+l:l)}),a},hl=Symbol("internals");function ot(t){return t&&String(t).trim().toLowerCase()}function xt(t){return t===!1||t==null?t:k.isArray(t)?t.map(xt):String(t)}function mf(t){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=o.exec(t);)a[l[1]]=l[2];return a}const pf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Sa(t,a,o,l,r){if(k.isFunction(l))return l.call(this,a,o);if(r&&(a=o),!!k.isString(a)){if(k.isString(l))return a.indexOf(l)!==-1;if(k.isRegExp(l))return l.test(a)}}function uf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,l)=>o.toUpperCase()+l)}function ff(t,a){const o=k.toCamelCase(" "+a);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+o,{value:function(r,i,n){return this[l].call(this,a,r,i,n)},configurable:!0})})}class Bt{constructor(a){a&&this.set(a)}set(a,o,l){const r=this;function i(s,d,c){const f=ot(d);if(!f)throw new Error("header name must be a non-empty string");const p=k.findKey(r,f);(!p||r[p]===void 0||c===!0||c===void 0&&r[p]!==!1)&&(r[p||d]=xt(s))}const n=(s,d)=>k.forEach(s,(c,f)=>i(c,f,d));if(k.isPlainObject(a)||a instanceof this.constructor)n(a,o);else if(k.isString(a)&&(a=a.trim())&&!pf(a))n(cf(a),o);else if(k.isHeaders(a))for(const[s,d]of a.entries())i(d,s,l);else a!=null&&i(o,a,l);return this}get(a,o){if(a=ot(a),a){const l=k.findKey(this,a);if(l){const r=this[l];if(!o)return r;if(o===!0)return mf(r);if(k.isFunction(o))return o.call(this,r,l);if(k.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=ot(a),a){const l=k.findKey(this,a);return!!(l&&this[l]!==void 0&&(!o||Sa(this,this[l],l,o)))}return!1}delete(a,o){const l=this;let r=!1;function i(n){if(n=ot(n),n){const s=k.findKey(l,n);s&&(!o||Sa(l,l[s],s,o))&&(delete l[s],r=!0)}}return k.isArray(a)?a.forEach(i):i(a),r}clear(a){const o=Object.keys(this);let l=o.length,r=!1;for(;l--;){const i=o[l];(!a||Sa(this,this[i],i,a,!0))&&(delete this[i],r=!0)}return r}normalize(a){const o=this,l={};return k.forEach(this,(r,i)=>{const n=k.findKey(l,i);if(n){o[n]=xt(r),delete o[i];return}const s=a?uf(i):String(i).trim();s!==i&&delete o[i],o[s]=xt(r),l[s]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return k.forEach(this,(l,r)=>{l!=null&&l!==!1&&(o[r]=a&&k.isArray(l)?l.join(", "):l)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
8
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const l=new this(a);return o.forEach(r=>l.set(r)),l}static accessor(a){const o=(this[hl]=this[hl]={accessors:{}}).accessors,l=this.prototype;function r(i){const n=ot(i);o[n]||(ff(l,i),o[n]=!0)}return k.isArray(a)?a.forEach(r):r(a),this}}Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Bt.prototype,({value:t},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>t,set(l){this[o]=l}}}),k.freezeMethods(Bt);const Ce=Bt;function _a(t,a){const o=this||ba,l=a||o,r=Ce.from(l.headers);let i=l.data;return k.forEach(t,function(n){i=n.call(o,i,r.normalize(),a?a.status:void 0)}),r.normalize(),i}function yl(t){return!!(t&&t.__CANCEL__)}function Ge(t,a,o){$.call(this,t??"canceled",$.ERR_CANCELED,a,o),this.name="CanceledError"}k.inherits(Ge,$,{__CANCEL__:!0});function gl(t,a,o){const l=o.config.validateStatus;!o.status||!l||l(o.status)?t(o):a(new $("Request failed with status code "+o.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function hf(t){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return a&&a[1]||""}function yf(t,a){t=t||10;const o=new Array(t),l=new Array(t);let r=0,i=0,n;return a=a!==void 0?a:1e3,function(s){const d=Date.now(),c=l[i];n||(n=d),o[r]=s,l[r]=d;let f=i,p=0;for(;f!==r;)p+=o[f++],f=f%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),d-n<a)return;const y=c&&d-c;return y?Math.round(p*1e3/y):void 0}}function gf(t,a){let o=0,l=1e3/a,r,i;const n=(s,d=Date.now())=>{o=d,r=null,i&&(clearTimeout(i),i=null),t.apply(null,s)};return[(...s)=>{const d=Date.now(),c=d-o;c>=l?n(s,d):(r=s,i||(i=setTimeout(()=>{i=null,n(r)},l-c)))},()=>r&&n(r)]}const Ft=(t,a,o=3)=>{let l=0;const r=yf(50,250);return gf(i=>{const n=i.loaded,s=i.lengthComputable?i.total:void 0,d=n-l,c=r(d),f=n<=s;l=n;const p={loaded:n,total:s,progress:s?n/s:void 0,bytes:d,rate:c||void 0,estimated:c&&s&&f?(s-n)/c:void 0,event:i,lengthComputable:s!=null,[a?"download":"upload"]:!0};t(p)},o)},bl=(t,a)=>{const o=t!=null;return[l=>a[0]({lengthComputable:o,total:t,loaded:l}),a[1]]},Sl=t=>(...a)=>k.asap(()=>t(...a)),bf=pe.hasStandardBrowserEnv?((t,a)=>o=>(o=new URL(o,pe.origin),t.protocol===o.protocol&&t.host===o.host&&(a||t.port===o.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Sf=pe.hasStandardBrowserEnv?{write(t,a,o,l,r,i){const n=[t+"="+encodeURIComponent(a)];k.isNumber(o)&&n.push("expires="+new Date(o).toGMTString()),k.isString(l)&&n.push("path="+l),k.isString(r)&&n.push("domain="+r),i===!0&&n.push("secure"),document.cookie=n.join("; ")},read(t){const a=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _f(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Cf(t,a){return a?t.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):t}function _l(t,a,o){let l=!_f(a);return t&&(l||o==!1)?Cf(t,a):a}const Cl=t=>t instanceof Ce?{...t}:t;function Ie(t,a){a=a||{};const o={};function l(c,f,p,y){return k.isPlainObject(c)&&k.isPlainObject(f)?k.merge.call({caseless:y},c,f):k.isPlainObject(f)?k.merge({},f):k.isArray(f)?f.slice():f}function r(c,f,p,y){if(k.isUndefined(f)){if(!k.isUndefined(c))return l(void 0,c,p,y)}else return l(c,f,p,y)}function i(c,f){if(!k.isUndefined(f))return l(void 0,f)}function n(c,f){if(k.isUndefined(f)){if(!k.isUndefined(c))return l(void 0,c)}else return l(void 0,f)}function s(c,f,p){if(p in a)return l(c,f);if(p in t)return l(void 0,c)}const d={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:s,headers:(c,f,p)=>r(Cl(c),Cl(f),p,!0)};return k.forEach(Object.keys(Object.assign({},t,a)),function(c){const f=d[c]||r,p=f(t[c],a[c],c);k.isUndefined(p)&&f!==s||(o[c]=p)}),o}const El=t=>{const a=Ie({},t);let{data:o,withXSRFToken:l,xsrfHeaderName:r,xsrfCookieName:i,headers:n,auth:s}=a;a.headers=n=Ce.from(n),a.url=ml(_l(a.baseURL,a.url,a.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&n.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(k.isFormData(o)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if((d=n.getContentType())!==!1){const[c,...f]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];n.setContentType([c||"multipart/form-data",...f].join("; "))}}if(pe.hasStandardBrowserEnv&&(l&&k.isFunction(l)&&(l=l(a)),l||l!==!1&&bf(a.url))){const c=r&&i&&Sf.read(i);c&&n.set(r,c)}return a},Ef=typeof XMLHttpRequest<"u",wf=Ef&&function(t){return new Promise(function(a,o){const l=El(t);let r=l.data;const i=Ce.from(l.headers).normalize();let{responseType:n,onUploadProgress:s,onDownloadProgress:d}=l,c,f,p,y,h;function u(){y&&y(),h&&h(),l.cancelToken&&l.cancelToken.unsubscribe(c),l.signal&&l.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout;function g(){if(!m)return;const B=Ce.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),I={data:!n||n==="text"||n==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:B,config:t,request:m};gl(function(G){a(G),u()},function(G){o(G),u()},I),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(o(new $("Request aborted",$.ECONNABORTED,t,m)),m=null)},m.onerror=function(){o(new $("Network Error",$.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let B=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const I=l.transitional||ul;l.timeoutErrorMessage&&(B=l.timeoutErrorMessage),o(new $(B,I.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,m)),m=null},r===void 0&&i.setContentType(null),"setRequestHeader"in m&&k.forEach(i.toJSON(),function(B,I){m.setRequestHeader(I,B)}),k.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),n&&n!=="json"&&(m.responseType=l.responseType),d&&([p,h]=Ft(d,!0),m.addEventListener("progress",p)),s&&m.upload&&([f,y]=Ft(s),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",y)),(l.cancelToken||l.signal)&&(c=B=>{m&&(o(!B||B.type?new Ge(null,t,m):B),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(c),l.signal&&(l.signal.aborted?c():l.signal.addEventListener("abort",c)));const _=hf(l.url);if(_&&pe.protocols.indexOf(_)===-1){o(new $("Unsupported protocol "+_+":",$.ERR_BAD_REQUEST,t));return}m.send(r||null)})},kf=(t,a)=>{const{length:o}=t=t?t.filter(Boolean):[];if(a||o){let l=new AbortController,r;const i=function(c){if(!r){r=!0,s();const f=c instanceof Error?c:this.reason;l.abort(f instanceof $?f:new Ge(f instanceof Error?f.message:f))}};let n=a&&setTimeout(()=>{n=null,i(new $(`timeout ${a} of ms exceeded`,$.ETIMEDOUT))},a);const s=()=>{t&&(n&&clearTimeout(n),n=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:d}=l;return d.unsubscribe=()=>k.asap(s),d}},Vf=kf,Nf=function*(t,a){let o=t.byteLength;if(o<a){yield t;return}let l=0,r;for(;l<o;)r=l+a,yield t.slice(l,r),l=r},xf=async function*(t,a){for await(const o of Bf(t))yield*Nf(o,a)},Bf=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const a=t.getReader();try{for(;;){const{done:o,value:l}=await a.read();if(o)break;yield l}}finally{await a.cancel()}},wl=(t,a,o,l)=>{const r=xf(t,a);let i=0,n,s=d=>{n||(n=!0,l&&l(d))};return new ReadableStream({async pull(d){try{const{done:c,value:f}=await r.next();if(c){s(),d.close();return}let p=f.byteLength;if(o){let y=i+=p;o(y)}d.enqueue(new Uint8Array(f))}catch(c){throw s(c),c}},cancel(d){return s(d),r.return()}},{highWaterMark:2})},Tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kl=Tt&&typeof ReadableStream=="function",Ff=Tt&&(typeof TextEncoder=="function"?(t=>a=>t.encode(a))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vl=(t,...a)=>{try{return!!t(...a)}catch{return!1}},Tf=kl&&Vl(()=>{let t=!1;const a=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!a}),Nl=64*1024,Ca=kl&&Vl(()=>k.isReadableStream(new Response("").body)),Mt={stream:Ca&&(t=>t.body)};Tt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Mt[a]&&(Mt[a]=k.isFunction(t[a])?o=>o[a]():(o,l)=>{throw new $(`Response type '${a}' is not supported`,$.ERR_NOT_SUPPORT,l)})})})(new Response);const Mf=async t=>{if(t==null)return 0;if(k.isBlob(t))return t.size;if(k.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(k.isArrayBufferView(t)||k.isArrayBuffer(t))return t.byteLength;if(k.isURLSearchParams(t)&&(t=t+""),k.isString(t))return(await Ff(t)).byteLength},Af=async(t,a)=>k.toFiniteNumber(t.getContentLength())??Mf(a),Lf=Tt&&(async t=>{let{url:a,method:o,data:l,signal:r,cancelToken:i,timeout:n,onDownloadProgress:s,onUploadProgress:d,responseType:c,headers:f,withCredentials:p="same-origin",fetchOptions:y}=El(t);c=c?(c+"").toLowerCase():"text";let h=Vf([r,i&&i.toAbortSignal()],n),u;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(d&&Tf&&o!=="get"&&o!=="head"&&(g=await Af(f,l))!==0){let z=new Request(a,{method:"POST",body:l,duplex:"half"}),H;if(k.isFormData(l)&&(H=z.headers.get("content-type"))&&f.setContentType(H),z.body){const[q,Z]=bl(g,Ft(Sl(d)));l=wl(z.body,Nl,q,Z)}}k.isString(p)||(p=p?"include":"omit");const _="credentials"in Request.prototype;u=new Request(a,{...y,signal:h,method:o.toUpperCase(),headers:f.normalize().toJSON(),body:l,duplex:"half",credentials:_?p:void 0});let B=await fetch(u);const I=Ca&&(c==="stream"||c==="response");if(Ca&&(s||I&&m)){const z={};["status","statusText","headers"].forEach(oe=>{z[oe]=B[oe]});const H=k.toFiniteNumber(B.headers.get("content-length")),[q,Z]=s&&bl(H,Ft(Sl(s),!0))||[];B=new Response(wl(B.body,Nl,q,()=>{Z&&Z(),m&&m()}),z)}c=c||"text";let G=await Mt[k.findKey(Mt,c)||"text"](B,t);return!I&&m&&m(),await new Promise((z,H)=>{gl(z,H,{data:G,headers:Ce.from(B.headers),status:B.status,statusText:B.statusText,config:t,request:u})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,t,u),{cause:_.cause||_}):$.from(_,_&&_.code,t,u)}}),Ea={http:Wu,xhr:wf,fetch:Lf};k.forEach(Ea,(t,a)=>{if(t){try{Object.defineProperty(t,"name",{value:a})}catch{}Object.defineProperty(t,"adapterName",{value:a})}});const xl=t=>`- ${t}`,Pf=t=>k.isFunction(t)||t===null||t===!1,Bl={getAdapter:t=>{t=k.isArray(t)?t:[t];const{length:a}=t;let o,l;const r={};for(let i=0;i<a;i++){o=t[i];let n;if(l=o,!Pf(o)&&(l=Ea[(n=String(o)).toLowerCase()],l===void 0))throw new $(`Unknown adapter '${n}'`);if(l)break;r[n||"#"+i]=l}if(!l){const i=Object.entries(r).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let n=a?i.length>1?`since :
|
|
9
9
|
`+i.map(xl).join(`
|
|
10
|
-
`):" "+xl(i[0]):"as no adapter specified";throw new
|
|
11
|
-
`+i):l.stack=i}catch{}}throw l}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ie(this.defaults,o);const{transitional:l,paramsSerializer:r,headers:i}=o;l!==void 0&&Lt.assertOptions(l,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),r!=null&&(E.isFunction(r)?o.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:ke.function,serialize:ke.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Lt.assertOptions(o,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let n=i&&E.merge(i.common,i[o.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),o.headers=Ce.concat(n,i);const s=[];let d=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(d=d&&u.synchronous,s.unshift(u.fulfilled,u.rejected))});const c=[];this.interceptors.response.forEach(function(u){c.push(u.fulfilled,u.rejected)});let h,p=0,y;if(!d){const u=[Fl.bind(this),void 0];for(u.unshift.apply(u,s),u.push.apply(u,c),y=u.length,h=Promise.resolve(o);p<y;)h=h.then(u[p++],u[p++]);return h}y=s.length;let f=o;for(p=0;p<y;){const u=s[p++],m=s[p++];try{f=u(f)}catch(g){m.call(this,g);break}}try{h=Fl.call(this,f)}catch(u){return Promise.reject(u)}for(p=0,y=c.length;p<y;)h=h.then(c[p++],c[p++]);return h}getUri(a){a=Ie(this.defaults,a);const o=_l(a.baseURL,a.url,a.allowAbsoluteUrls);return ml(o,a.params,a.paramsSerializer)}}E.forEach(["delete","get","head","options"],function(t){Pt.prototype[t]=function(a,o){return this.request(Ie(o||{},{method:t,url:a,data:(o||{}).data}))}}),E.forEach(["post","put","patch"],function(t){function a(o){return function(l,r,i){return this.request(Ie(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:r}))}}Pt.prototype[t]=a(),Pt.prototype[t+"Form"]=a(!0)});const Dt=Pt;class wa{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const l=this;this.promise.then(r=>{if(!l._listeners)return;let i=l._listeners.length;for(;i-- >0;)l._listeners[i](r);l._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(s=>{l.subscribe(s),i=s}).then(r);return n.cancel=function(){l.unsubscribe(i)},n},a(function(r,i,n){l.reason||(l.reason=new Ge(r,i,n),o(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const a=new AbortController,o=l=>{a.abort(l)};return this.subscribe(o),a.signal.unsubscribe=()=>this.unsubscribe(o),a.signal}static source(){let a;return{token:new wa(function(o){a=o}),cancel:a}}}const af=wa;function of(t){return function(a){return t.apply(null,a)}}function lf(t){return E.isObject(t)&&t.isAxiosError===!0}const ka={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(ka).forEach(([t,a])=>{ka[a]=t});const rf=ka;function Al(t){const a=new Dt(t),o=Ko(Dt.prototype.request,a);return E.extend(o,Dt.prototype,a,{allOwnKeys:!0}),E.extend(o,a,null,{allOwnKeys:!0}),o.create=function(l){return Al(Ie(t,l))},o}const ne=Al(ga);ne.Axios=Dt,ne.CanceledError=Ge,ne.CancelToken=af,ne.isCancel=yl,ne.VERSION=Tl,ne.toFormData=Nt,ne.AxiosError=H,ne.Cancel=ne.CanceledError,ne.all=function(t){return Promise.all(t)},ne.spread=of,ne.isAxiosError=lf,ne.mergeConfig=Ie,ne.AxiosHeaders=Ce,ne.formToJSON=t=>fl(E.isHTMLForm(t)?new FormData(t):t),ne.getAdapter=Bl.getAdapter,ne.HttpStatusCode=rf,ne.default=ne;const lt=ne,Va={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,a)=>1981+a).sort((t,a)=>a-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"}]},nf={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"},sf={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 It(t){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},It(t)}function Ne(t){if(t===null||t===!0||t===!1)return NaN;var a=Number(t);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function ie(t,a){if(a.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+a.length+" present")}function ae(t){ie(1,arguments);var a=Object.prototype.toString.call(t);return t instanceof Date||It(t)==="object"&&a==="[object Date]"?new Date(t.getTime()):typeof t=="number"||a==="[object Number]"?new Date(t):((typeof t=="string"||a==="[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 df(t,a){ie(2,arguments);var o=ae(t),l=Ne(a);return isNaN(l)?new Date(NaN):(l&&o.setDate(o.getDate()+l),o)}function cf(t,a){ie(2,arguments);var o=ae(t),l=Ne(a);if(isNaN(l))return new Date(NaN);if(!l)return o;var r=o.getDate(),i=new Date(o.getTime());i.setMonth(o.getMonth()+l+1,0);var n=i.getDate();return r>=n?i:(o.setFullYear(i.getFullYear(),i.getMonth(),r),o)}function it(t,a){if(ie(2,arguments),!a||It(a)!=="object")return new Date(NaN);var o=a.years?Ne(a.years):0,l=a.months?Ne(a.months):0,r=a.weeks?Ne(a.weeks):0,i=a.days?Ne(a.days):0,n=a.hours?Ne(a.hours):0,s=a.minutes?Ne(a.minutes):0,d=a.seconds?Ne(a.seconds):0,c=ae(t),h=l||o?cf(c,l+o*12):c,p=i||r?df(h,i+r*7):h,y=s+n*60,f=d+y*60,u=f*1e3,m=new Date(p.getTime()+u);return m}function Ll(t){var a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),t.getTime()-a.getTime()}function Pl(t){ie(1,arguments);var a=ae(t);return a.setHours(0,0,0,0),a}var mf=864e5;function pf(t,a){ie(2,arguments);var o=Pl(t),l=Pl(a),r=o.getTime()-Ll(o),i=l.getTime()-Ll(l);return Math.round((r-i)/mf)}function qe(t,a){ie(2,arguments);var o=ae(t),l=ae(a),r=o.getTime()-l.getTime();return r<0?-1:r>0?1:r}var uf=6e4,ff=36e5;function hf(t,a){ie(2,arguments);var o=ae(t),l=ae(a),r=o.getFullYear()-l.getFullYear(),i=o.getMonth()-l.getMonth();return r*12+i}function yf(t,a){ie(2,arguments);var o=ae(t),l=ae(a);return o.getFullYear()-l.getFullYear()}function Dl(t,a){var o=t.getFullYear()-a.getFullYear()||t.getMonth()-a.getMonth()||t.getDate()-a.getDate()||t.getHours()-a.getHours()||t.getMinutes()-a.getMinutes()||t.getSeconds()-a.getSeconds()||t.getMilliseconds()-a.getMilliseconds();return o<0?-1:o>0?1:o}function gf(t,a){ie(2,arguments);var o=ae(t),l=ae(a),r=Dl(o,l),i=Math.abs(pf(o,l));o.setDate(o.getDate()-r*i);var n=+(Dl(o,l)===-r),s=r*(i-n);return s===0?0:s}function Na(t,a){return ie(2,arguments),ae(t).getTime()-ae(a).getTime()}var bf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Sf="trunc";function xa(t){return bf[Sf]}function _f(t,a,o){ie(2,arguments);var l=Na(t,a)/ff;return xa()(l)}function Cf(t,a,o){ie(2,arguments);var l=Na(t,a)/uf;return xa()(l)}function Ef(t){ie(1,arguments);var a=ae(t);return a.setHours(23,59,59,999),a}function wf(t){ie(1,arguments);var a=ae(t),o=a.getMonth();return a.setFullYear(a.getFullYear(),o+1,0),a.setHours(23,59,59,999),a}function kf(t){ie(1,arguments);var a=ae(t);return Ef(a).getTime()===wf(a).getTime()}function Vf(t,a){ie(2,arguments);var o=ae(t),l=ae(a),r=qe(o,l),i=Math.abs(hf(o,l)),n;if(i<1)n=0;else{o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-r*i);var s=qe(o,l)===-r;kf(ae(t))&&i===1&&qe(t,l)===1&&(s=!1),n=r*(i-Number(s))}return n===0?0:n}function Nf(t,a,o){ie(2,arguments);var l=Na(t,a)/1e3;return xa()(l)}function xf(t,a){ie(2,arguments);var o=ae(t),l=ae(a),r=qe(o,l),i=Math.abs(yf(o,l));o.setFullYear(1584),l.setFullYear(1584);var n=qe(o,l)===-r,s=r*(i-Number(n));return s===0?0:s}function Bf(t){return ie(1,arguments),ae(t).getFullYear()}function Ff(t){ie(1,arguments);var a=ae(t.start),o=ae(t.end);if(isNaN(a.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(o.getTime()))throw new RangeError("End Date is invalid");var l={};l.years=Math.abs(xf(o,a));var r=qe(o,a),i=it(a,{years:r*l.years});l.months=Math.abs(Vf(o,i));var n=it(i,{months:r*l.months});l.days=Math.abs(gf(o,n));var s=it(n,{days:r*l.days});l.hours=Math.abs(_f(o,s));var d=it(s,{hours:r*l.hours});l.minutes=Math.abs(Cf(o,d));var c=it(d,{minutes:r*l.minutes});return l.seconds=Math.abs(Nf(o,c)),l}const Tf=new Set([1]),Mf={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:a}){const o=t,l=e.ref(null);e.watch(()=>o.modelValue,()=>{r()},{immediate:!0});function r(){l.value&&(l.value.checked=o.modelValue)}function i(n){a("update:modelValue",n.target.checked)}return e.onMounted(()=>{r()}),(n,s)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:l,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},rt=X(Mf,[["__scopeId","data-v-e3a6ae4e"]]),ve=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),Af={class:"personal-data"},Lf={class:"personal-data__age"},Pf={class:"personal-data__age__toggle"},Df={class:"personal-data__age__range"},If={class:"personal-data__age__dropdown"},vf=ve(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),Rf={class:"selected-item"},Of=ve(()=>e.createElementVNode("div",{class:"separator"},null,-1)),zf={class:"personal-data__nationality-position"},Uf={key:0,class:"personal-data__nationality-position__switch"},jf=ve(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),$f=ve(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Hf={class:"personal-data__nationality-position__nationality"},Wf=ve(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Gf={class:"selected-item"},qf=ve(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Zf={class:"selected-item"},Yf={class:"personal-data__nationality-position__position"},Jf=ve(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),Kf={class:"selected-item"},Xf="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Qf={__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},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:a,emit:o}){const l=t,r={id:0,name:"Todas las nacionalidades",isSelected:!1},i={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref({...Va}),s=e.ref(["Por edad","Por año"]),d=e.ref(0),c=e.ref({min:Va.minAge,max:Va.maxAge}),h=e.ref(et),p=e.ref(""),y=e.ref(""),f=e.ref(n.value.availableYears[n.value.availableYears.length-1]),u=e.ref(0),m=e.computed(()=>{const M=n.value.nationalities?[...n.value.nationalities]:[];l.isSeleccion&&M.forEach(D=>{D.isSelected=D.id===138});const R=M[0];return(!R||R.id!==0)&&M.unshift(r),M}),g=e.computed(()=>{let M=(l.filter&&l.filter.positions?l.filter.positions:n.value.positions)?[...n.value.positions]:[];const R=M[0];return(!R||R.id!==0)&&M.unshift(i),M.sort((D,K)=>D.id-K.id),M}),b=e.computed(()=>l.season&&l.season.tournamentId&&Tf.has(l.season.tournamentId)||l.filters&&l.filters.isEligibilitySwitchVisible);e.watch(m,M=>{const R=M.reduce((D,K,te)=>(te!==0&&K.isSelected&&D++,D),0);R===m.value.length-1&&(M[0].isSelected=!0),M[0]&&M[0].isSelected?p.value="Todas las nacionalidades":p.value=`${R} seleccionadas`,Y()},{immediate:!0,deep:!0}),e.watch(g,M=>{const R=M.reduce((D,K,te)=>(te!==0&&K.isSelected&&D++,D),0);R===g.value.length-1&&(M[0].isSelected=!0),M[0]&&M[0].isSelected?y.value="Todas las posiciones":y.value=`${R} seleccionadas`,Y()},{immediate:!0,deep:!0}),e.watch(()=>l.filters,M=>{if(M&&M.availableYears){const R=!Number.isNaN(Number(M.selectedYear));n.value=M,d.value=n.value.selectedYear&&R?1:0,f.value=R?n.value.selectedYear:n.value.availableYears[0],c.value.min=n.value.minAge,c.value.max=n.value.maxAge,i.isSelected=M.positions.every(D=>D.isSelected),Y()}},{immediate:!0,deep:!0}),e.watch(()=>n.value.isEligibilitySelected,()=>{Y()}),e.watch(()=>l.season,M=>{M&&M.id!==u.value&&!l.awaitForFilters&&(u.value=M.id,N(M))},{immediate:!0,deep:!1});async function N(M){try{if(M&&M.id){const R=new Set,D=await G(M.id),K=new Date,te=[],me=new Map,T=new Map;D.forEach(_=>{const k=new Date(_.dob),A=Bf(k),P=Ff({start:k,end:K});me.has(_.nationality_id)||me.set(_.nationality_id,{id:_.nationality_id,isSelected:!0,name:nf[`${_.nationality_id}`]}),T.has(_.position_id)||T.set(_.position_id,{id:_.position_id,isSelected:!0,name:sf[`${_.position_id}`]}),R.add(A),te.push(P.years)}),n.value.minAge=Math.min(...te),n.value.maxAge=Math.max(...te),n.value.availableYears=[...R].sort((_,k)=>k-_),f.value=n.value.availableYears[0],n.value.nationalities=[...me.values()],n.value.positions=[...T.values()],c.value.min=n.value.minAge,c.value.max=n.value.maxAge}}catch(R){throw new Error(R)}}function I(M=null){const R=!M||M===se.All;(R||M===se.NATIONALITY)&&m.value.forEach(D=>{D.isSelected=!0}),(R||M===se.ELIGIBILITY)&&(n.value.isEligibilitySelected=!1),(R||M===se.POSITION)&&g.value.forEach(D=>{D.isSelected=!0}),(R||M===se.AGE_RANGE)&&(c.value.min=n.value.minAge,c.value.max=n.value.maxAge,d.value=0),(R||M===se.YEAR)&&(f.value=l.isScouting?n.value.availableYears[n.value.availableYears.length-1]:n.value.availableYears[0],d.value=0),Y()}async function G(M){try{const R={Authorization:localStorage.getItem("user_token")||l.token},D={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Xf,K=await lt.get(D+M,{headers:R});return K.data?K.data.players:[]}catch(R){return Promise.reject(R)}}function z(M){d.value=M.index,l.filters&&l.filters.availableYears&&M.index===0&&(l.filters.selectedYear="Sin límite")}function q(M){c.value.min=M.minValue,c.value.max=M.maxValue,Y()}function Z(M,R){R.id===0?m.value.forEach(D=>{D.isSelected=M}):(R.isSelected=M,m.value[0].isSelected=m.value.every((D,K)=>K===0?!0:D.isSelected))}function Y(){const M=d.value===0,R={};M?(R.ageByRange=c.value,R.ageLimits={min:n.value.minAge,max:n.value.maxAge}):R.year=f.value,n.value.isEligibilitySelected?R.eligibility=[...n.value.eligibility]:R.nationalities=m.value.reduce((D,K,te)=>(te!==0&&D.push({...K}),D),[]),R.positions=g.value.reduce((D,K,te)=>(te!==0&&D.push({...K}),D),[]),o("update:filters",R)}function oe(M,R){R.id===0?g.value.forEach(D=>{D.isSelected=M}):(R.isSelected=M,g.value[0].isSelected=g.value.every((D,K)=>K===0?!0:D.isSelected))}function v(M){f.value=M,l.filters&&(l.filters.selectedYear=M),Y()}return a({onClearFilters:I}),(M,R)=>(e.openBlock(),e.createElementBlock("div",Af,[e.createElementVNode("div",Lf,[e.createElementVNode("div",Pf,[e.createVNode(xp,{"selected-button-index":d.value,buttons:s.value,width:"220px",onChange:z},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",Df,[e.createVNode(e.unref($o),{"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":n.value.minAge,"max-limit":n.value.maxAge,"min-value":c.value.min,"max-value":c.value.max,onInput:q},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,d.value===0]]),e.withDirectives(e.createElementVNode("div",If,[vf,e.createVNode(e.unref(Be),e.mergeProps({"model-value":f.value},h.value,{items:n.value.availableYears,onInput:v}),{default:e.withCtx(({selectedItem:D})=>[e.createElementVNode("div",Rf,e.toDisplayString(D),1)]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,e.toDisplayString(D),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,d.value===1]])]),Of,e.createElementVNode("div",zf,[b.value?(e.openBlock(),e.createElementBlock("div",Uf,[jf,e.createVNode(rt,{modelValue:n.value.isEligibilitySelected,"onUpdate:modelValue":R[0]||(R[0]=D=>n.value.isEligibilitySelected=D)},null,8,["modelValue"]),$f])):e.createCommentVNode("",!0),e.createElementVNode("div",Hf,[n.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[qf,e.createVNode(e.unref(Be),e.mergeProps(h.value,{"is-multiple-option":"",items:n.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:D})=>[e.createElementVNode("div",Zf,e.toDisplayString(D.name),1)]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":D.isSelected,label:D.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},[Wf,e.createVNode(e.unref(Be),e.mergeProps(h.value,{"is-multiple-option":"",items:m.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Gf,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"model-value":D.isSelected,label:D.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":K=>Z(K,D)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Yf,[Jf,e.createVNode(e.unref(Be),e.mergeProps(h.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Kf,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.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(y.value),1)],64))])]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(J),{"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,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":K=>oe(K,D)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},eh=X(Qf,[["__scopeId","data-v-23130339"]]),th={class:"plays"},ah={class:"plays__body__offensive"},oh={class:"plays__body__title"},lh={class:"number-of-categories"},ih={class:"plays__body__categories"},rh={class:"plays__body__defensive-possession-offenses"},nh={class:"plays__body__title"},sh={class:"number-of-categories"},dh={class:"plays__body__categories"},ch={class:"plays__body__title"},mh={class:"number-of-categories"},ph={class:"plays__body__categories"},uh={class:"plays__body__title"},fh={class:"number-of-categories"},hh={class:"plays__body__categories"},yh={__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 a=t,o=e.ref(!1),l=e.ref(!1),r=e.ref(!1),i=e.ref(!1),n=e.computed(()=>({"--template-columns":a.isExpansionMode?"1fr":"1fr 1fr"})),s=e.computed(()=>a.playsCategories.offensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),d=e.computed(()=>a.playsCategories.defensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),c=e.computed(()=>a.playsCategories.possession.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),h=e.computed(()=>a.playsCategories.offenses.categories.reduce((f,u)=>(u.isSelected&&f++,f),0));function p(f,u){u.isSelected=f}function y(f){f==="offensive"?o.value=!o.value:f==="defensive"?l.value=!l.value:f==="possession"?r.value=!r.value:f==="offenses"&&(i.value=!i.value)}return(f,u)=>(e.openBlock(),e.createElementBlock("div",th,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",ah,[e.createElementVNode("div",oh,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[0]||(u[0]=m=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",lh,"("+e.toDisplayString(s.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[1]||(u[1]=m=>y("offensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",ih,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(J),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",rh,[e.createElementVNode("div",nh,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[2]||(u[2]=m=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",sh,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[3]||(u[3]=m=>y("defensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",dh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(J),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]]),e.createElementVNode("div",ch,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[4]||(u[4]=m=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",mh,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[5]||(u[5]=m=>y("possession"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",ph,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(J),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]]),e.createElementVNode("div",uh,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[6]||(u[6]=m=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",fh,"("+e.toDisplayString(h.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[7]||(u[7]=m=>y("offenses"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",hh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(J),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]])])],4)]))}},gh=X(yh,[["__scopeId","data-v-364e6cae"]]),bh={class:"template-results"},Sh={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:a}){const o=t,l=e.computed(()=>o.resultsFilters.results.filter(r=>r.isSelected).length);return e.watch(()=>o.resultsFilters,r=>{a("update:resultsFilters",r)},{deep:!0,immediate:!0}),(r,i)=>(e.openBlock(),e.createElementBlock("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"template-results__result"},[e.createVNode(e.unref(J),{modelValue:n.isSelected,"onUpdate:modelValue":d=>n.isSelected=d,label:n.name,"avoid-interaction":l.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},_h=X(Sh,[["__scopeId","data-v-453e89c2"]]),Ch={__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:a}){const o=t,l=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 r(){a("click")}return(i,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(l.value),onClick:r},e.toDisplayString(t.text),7))}},nt=X(Ch,[["__scopeId","data-v-9688933e"]]),Eh={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Il={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},wh={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},kh={4:"OF",5:"Cf",6:"S",7:"F"};function Ba(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Vh={class:"dropdown"},Nh={class:"selected-item"},xh={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",Nh,e.toDisplayString(t.itemTextKey?i[t.itemTextKey]:i),1)]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?i[t.itemTextKey]:i),1)]),_:1},16,["is-list-same-width","items"])]))}},fe=X(xh,[["__scopeId","data-v-064d5f86"]]),Bh={class:"dropdown"},Fh={class:"game-item"},Th={key:0,class:"item-game"},Mh={class:"match-day"},Ah={class:"team-logo"},Lh=["src"],Ph={class:"text"},Dh={class:"text score"},Ih={class:"text"},vh={class:"team-logo"},Rh=["src"],Oh={class:"item-game"},zh={class:"team-logo"},Uh=["src"],jh={class:"text"},$h={class:"text score"},Hh={class:"text"},Wh={class:"team-logo"},Gh=["src"],qh={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",Bh,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",Fh,[i.homeTeam?(e.openBlock(),e.createElementBlock("div",Th,[e.createElementVNode("div",Mh,e.toDisplayString(i.roundAbbreviation),1),e.createElementVNode("div",Ah,[e.createElementVNode("img",{src:i.homeTeam.logo,alt:""},null,8,Lh)]),e.createElementVNode("div",Ph,e.toDisplayString(i.homeTeam.acronym),1),e.createElementVNode("div",Dh,e.toDisplayString(i.score[0])+" - "+e.toDisplayString(i.score[1]),1),e.createElementVNode("div",Ih,e.toDisplayString(i.awayTeam.acronym),1),e.createElementVNode("div",vh,[e.createElementVNode("img",{src:i.awayTeam.logo,alt:""},null,8,Rh)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",Oh,[e.createElementVNode("div",null,e.toDisplayString(i.roundAbbreviation),1),e.createElementVNode("div",zh,[e.createElementVNode("img",{src:i.homeTeam.logo,alt:""},null,8,Uh)]),e.createElementVNode("div",jh,e.toDisplayString(i.homeTeam.acronym),1),e.createElementVNode("div",$h,e.toDisplayString(i.score[0])+" - "+e.toDisplayString(i.score[1]),1),e.createElementVNode("div",Hh,e.toDisplayString(i.awayTeam.acronym),1),e.createElementVNode("div",Wh,[e.createElementVNode("img",{src:i.awayTeam.logo,alt:""},null,8,Gh)])])]),_:1},16,["items"])]))}},vt=X(qh,[["__scopeId","data-v-7883a91e"]]),Rt=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Zh={class:"container"},Yh={class:"container__row"},Jh={class:"container__row__wrapper"},Kh=Rt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Xh={class:"container__row__wrapper__input"},Qh={class:"container__row two-items"},e0={class:"container__row__wrapper"},t0=Rt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),a0={key:0,class:"container__row__wrapper__input"},o0={class:"container__row__wrapper"},l0=Rt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),i0={key:0,class:"container__row__wrapper__input"},r0={class:"container__row"},n0={class:"container__row__wrapper"},s0=Rt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),d0={key:0,class:"container__row__wrapper__input"},c0={class:"container__action"},m0={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:a}){const o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},l=e.ref(null),r=e.ref(null),i=e.ref(null),n=e.ref(null);function s(p){l.value=p,a("update:tournament",p)}function d(p){r.value=p,a("update:season",p)}function c(p){i.value=p}function h(p){n.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Zh,[e.createElementVNode("div",Yh,[e.createElementVNode("div",Jh,[Kh,e.createElementVNode("div",Xh,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:s},null,8,["items"])])])]),e.createElementVNode("div",Qh,[e.createElementVNode("div",e0,[t0,l.value&&l.value.seasons?(e.openBlock(),e.createElementBlock("div",a0,[e.createVNode(fe,{items:l.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",o0,[l0,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",i0,[e.createVNode(fe,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",r0,[e.createElementVNode("div",n0,[s0,i.value&&i.value.arrayGames?(e.openBlock(),e.createElementBlock("div",d0,[e.createVNode(vt,{items:i.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",c0,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},p0=X(m0,[["__scopeId","data-v-b63e9c84"]]),u0={class:"dropdown"},f0={class:"item-team"},h0={class:"team-logo"},y0=["src"],g0={class:"team-acronym"},b0={class:"item-team"},S0={class:"team-logo"},_0=["src"],C0={class:"team-acronym"},E0={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",u0,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",f0,[e.createElementVNode("div",h0,[e.createElementVNode("img",{src:i.logo,alt:""},null,8,y0)]),e.createElementVNode("div",g0,e.toDisplayString(i.acronym),1)])]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",b0,[e.createElementVNode("div",S0,[e.createElementVNode("img",{src:i.logo,alt:""},null,8,_0)]),e.createElementVNode("div",C0,e.toDisplayString(i.acronym),1)])]),_:1},16,["items"])]))}},vl=X(E0,[["__scopeId","data-v-afd2bee8"]]),w0={class:"advanced-filters"},k0={class:"advanced-filters__buttons"},V0=["onClick"],N0={class:"advanced-filters__filters"},x0={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const a=t,o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>C7)),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>O7)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>U7)),i=[{name:"Sub categorías",component:o},{name:"Cancha",component:r},{name:"Condiciones",component:l}],n=e.ref(i[0]),s=e.computed(()=>a.selectedCategory?a.selectedCategory.subcategoryGroups||[]:[]);function d(c){n.value=c}return(c,h)=>(e.openBlock(),e.createElementBlock("div",w0,[e.createElementVNode("div",k0,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:n.value.name===p.name}]),onClick:y=>d(p)},e.toDisplayString(p.name),11,V0)),64))]),e.createElementVNode("div",N0,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value.component),{"subcategory-groups":s.value},null,8,["subcategory-groups"]))],1024))])]))}},Fa=X(x0,[["__scopeId","data-v-c62c5b9c"]]),Re=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),B0={class:"container"},F0={class:"container__row"},T0={class:"container__row__wrapper"},M0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),A0={class:"container__row__wrapper__input"},L0={class:"container__row two-items"},P0={class:"container__row__wrapper"},D0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),I0={key:0,class:"container__row__wrapper__input"},v0={class:"container__row__wrapper"},R0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),O0={key:0,class:"container__row__wrapper__input"},z0={class:"container__row"},U0={class:"container__row__wrapper"},j0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),$0={key:0,class:"container__row__wrapper__input"},H0={class:"container__row"},W0={class:"container__row__wrapper"},G0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),q0={key:0,class:"container__row__wrapper__input"},Z0={class:"container__row type-and-advanced"},Y0={class:"container__row__wrapper"},J0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),K0={class:"container__row__wrapper__input"},X0={class:"container__row__wrapper center"},Q0=Re(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),e2={class:"container__row__wrapper__input"},t2={class:"container__row"},a2={class:"container__action"},o2={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null);e.ref(null);const n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(null),h=e.ref(!0),p=e.computed(()=>d.value?d.value.position_id===1?o.advancedFilterCategories.goalkeeper:o.advancedFilterCategories.player:[]);function y(N){r.value=N,a("update:tournament",N)}function f(N){i.value=N,a("update:season",N)}function u(N){s.value=N,a("update:team",N)}function m(N){d.value=N}function g(N){n.value=N}function b(N){c.value=N}return(N,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B0,[e.createElementVNode("div",F0,[e.createElementVNode("div",T0,[M0,e.createElementVNode("div",A0,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",L0,[e.createElementVNode("div",P0,[D0,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",I0,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",v0,[R0,i.value&&i.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",O0,[e.createVNode(vl,{items:i.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",z0,[e.createElementVNode("div",U0,[j0,s.value&&s.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",$0,[e.createVNode(fe,{items:s.value.arrayPlayers,itemTextKey:"player_name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",H0,[e.createElementVNode("div",W0,[G0,i.value&&i.value.mapGamesByTeam&&s.value?(e.openBlock(),e.createElementBlock("div",q0,[e.createVNode(vt,{items:i.value.mapGamesByTeam.get(s.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Z0,[e.createElementVNode("div",Y0,[J0,e.createElementVNode("div",K0,[e.createVNode(fe,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:b},null,8,["items"])])]),e.createElementVNode("div",X0,[Q0,e.createElementVNode("div",e2,[e.createVNode(rt,{modelValue:h.value,"onUpdate:modelValue":I[0]||(I[0]=G=>h.value=G)},null,8,["modelValue"])])])]),e.createElementVNode("div",t2,[e.createVNode(Fa,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",a2,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},l2=X(o2,[["__scopeId","data-v-575b26b5"]]),Ze=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),i2={class:"container"},r2={class:"container__row"},n2={class:"container__row__wrapper"},s2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),d2={class:"container__row__wrapper__input"},c2={class:"container__row two-items"},m2={class:"container__row__wrapper"},p2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),u2={key:0,class:"container__row__wrapper__input"},f2={class:"container__row__wrapper"},h2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),y2={key:0,class:"container__row__wrapper__input"},g2={class:"container__row"},b2={class:"container__row__wrapper"},S2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),_2={key:0,class:"container__row__wrapper__input"},C2={class:"container__row type-and-advanced"},E2={class:"container__row__wrapper"},w2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),k2={class:"container__row__wrapper__input"},V2={class:"container__row__wrapper center"},N2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),x2={class:"container__row__wrapper__input"},B2={class:"container__row"},F2={class:"container__action"},T2={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null);e.ref(null);const n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(!0),h=e.computed(()=>o.advancedFilterCategories.team);function p(g){r.value=g,a("update:tournament",g)}function y(g){i.value=g,a("update:season",g)}function f(g){s.value=g,a("update:team",g)}function u(g){n.value=g}function m(g){d.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",i2,[e.createElementVNode("div",r2,[e.createElementVNode("div",n2,[s2,e.createElementVNode("div",d2,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",c2,[e.createElementVNode("div",m2,[p2,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",u2,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",f2,[h2,i.value&&i.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",y2,[e.createVNode(vl,{items:i.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",g2,[e.createElementVNode("div",b2,[S2,i.value&&i.value.mapGamesByTeam&&s.value?(e.openBlock(),e.createElementBlock("div",_2,[e.createVNode(vt,{items:i.value.mapGamesByTeam.get(s.value.team_id),onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",C2,[e.createElementVNode("div",E2,[w2,e.createElementVNode("div",k2,[e.createVNode(fe,{items:h.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",V2,[N2,e.createElementVNode("div",x2,[e.createVNode(rt,{modelValue:c.value,"onUpdate:modelValue":b[0]||(b[0]=N=>c.value=N)},null,8,["modelValue"])])])]),e.createElementVNode("div",B2,[e.createVNode(Fa,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",F2,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},M2=X(T2,[["__scopeId","data-v-6d73d5e6"]]),Ye=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),A2={class:"container"},L2={class:"container__row"},P2={class:"container__row__wrapper"},D2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),I2={class:"container__row__wrapper__input"},v2={class:"container__row two-items"},R2={class:"container__row__wrapper"},O2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),z2={key:0,class:"container__row__wrapper__input"},U2={class:"container__row__wrapper"},j2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),$2={key:0,class:"container__row__wrapper__input"},H2={class:"container__row"},W2={class:"container__row__wrapper"},G2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),q2={key:0,class:"container__row__wrapper__input"},Z2={class:"container__row type-and-advanced"},Y2={class:"container__row__wrapper"},J2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),K2={class:"container__row__wrapper__input"},X2={class:"container__row__wrapper center"},Q2=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),ey={class:"container__row__wrapper__input",style:{width:"fit-content"}},ty={class:"container__row"},ay={class:"container__action"},oy={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null),n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(!0),h=e.computed(()=>o.advancedFilterCategories.games);function p(g){r.value=g,a("update:tournament",g)}function y(g){i.value=g,a("update:season",g)}function f(g){n.value=g}function u(g){s.value=g}function m(g){d.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",A2,[e.createElementVNode("div",L2,[e.createElementVNode("div",P2,[D2,e.createElementVNode("div",I2,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",v2,[e.createElementVNode("div",R2,[O2,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",z2,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",U2,[j2,i.value&&i.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",$2,[e.createVNode(fe,{items:i.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",H2,[e.createElementVNode("div",W2,[G2,n.value&&n.value.arrayGames?(e.openBlock(),e.createElementBlock("div",q2,[e.createVNode(vt,{items:n.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Z2,[e.createElementVNode("div",Y2,[J2,e.createElementVNode("div",K2,[e.createVNode(fe,{items:h.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",X2,[Q2,e.createElementVNode("div",ey,[e.createVNode(rt,{modelValue:c.value,"onUpdate:modelValue":b[0]||(b[0]=N=>c.value=N)},null,8,["modelValue"])])])]),e.createElementVNode("div",ty,[e.createVNode(Fa,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",ay,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},ly=X(oy,[["__scopeId","data-v-6e904db8"]]),iy={class:"template-videos"},ry={class:"template-videos__header"},ny={class:"template-videos__body"},sy=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:p0,VideosPlayer:l2,VideosTeam:M2,VideosGame:ly}}),dy=Object.assign(sy,{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:a}){const o=t,l={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},r=[],i=["g-23","g-24","g-25"],n={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]}},s={player:1,team:2,goalkeeper:3},d=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),c=e.ref([]),h=e.ref(d.value[0]),p=e.ref({}),y=e.ref({}),f=e.ref({}),u=e.ref({}),m=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const b=e.ref(null);e.watch(p,_=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(k=>k.id===_.id),_.arrayMatchDays?(u.value=_.arrayMatchDays[0]||{},f.value=_.arrayTeams[0]||{}):(q(_),Z(_))}),e.watch(f,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!f.value.arrayPlayers||!f.value.arrayPlayers.length)&&(f.value.arrayPlayers=p.value.mapPlayersByTeam.get(f.value.team_id))},700)});async function N(){try{c.value=await I()}catch(_){throw new Error(_)}}async function I(){try{const _={Authorization:Ba()||o.token},k={}.API_TOURNAMENTS||o.tournamentsUrl,A=await lt.get(k,{headers:_});return A.data?A.data.map(P=>({...P.tournament,seasons:P.seasons})):[]}catch(_){return Promise.reject(_)}}async function G(_,k,A=""){a("loading-data");let P=A;try{P||(P={}.API_CALENDAR_GAMES_BY_SEASON||o.gamesUrl,_.forEach((B,V)=>{P+=`${V===0?"":"&"}seasons=${B}`}));const L={Authorization:Ba()||o.token},{data:{data:U,teams:O}}=await lt.get(P,{headers:L});return{seasonsAndGames:U,seasonsAndTeams:O}}catch(L){if(k>0)return G(_,k-1,P);throw new Error(L)}finally{a("loading-data")}}async function z(_){try{const k={Authorization:Ba()||o.token},A=` ${{}.API_PLAYERS_BY_SEASON||o.playersUrl}${_.seasonId}`,P=await lt.get(A,{headers:k});return P.data?P.data.players:[]}catch(k){return Promise.reject(k)}}async function q(_){try{const{seasonsAndGames:k,seasonsAndTeams:A}=await G([_.id,..._.related_seasons.map(O=>O.id)],3),P=A.find(O=>O._id===_.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const L=P.teams.reduce((O,B)=>(p.value.arrayTeams.push(B),p.value.mapTeams.set(B.team_id,{name:B.colloquial_name,acronym:B.acronym,logo:B.logo,id:B.team_id}),O.set(B.team_id,B),O),new Map);f.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const U=Array.from(k.reduce((O,B)=>(B.games.forEach(V=>{if(V.game_status===1&&V.has_video){(!p.value.maxGameId||V.game_id>p.value.maxGameId)&&(p.value.maxGameId=V.game_id);let x=V.matchday_abbreviation.replace("M","J"),w=V.matchday_abbreviation.replace("M","Jornada ");const F=V.matchday_abbreviation.replace("M","");B.season_type===0?y.value.tournament_type===1&&(V.seasonId===881?(x=kh[F]||x,w=wh[F]||w):(x=Il[V.matchday_abbreviation]?V.matchday_abbreviation:x,w=Il[V.matchday_abbreviation]||w,x==="FINAL"&&(x="F"))):B.season_type===1?(x=Eh[V.matchday_abbreviation],w=x):(x=V.matchday_abbreviation.replace("PO","R"),w="Repechaje"),V.roundAbbreviation=x,V.roundName=w,p.value.mapGames.set(V.game_id,{id:V.game_id,date:V.date,dateTimeMillis:new Date(V.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(V.home_team),awayTeam:p.value.mapTeams.get(V.visiting_team),roundAbbreviation:V.roundAbbreviation,roundName:V.roundName,score:V.score,gameResult:V.score[0]>V.score[1]?1:V.score[0]<V.score[1]?2:3,seasonId:B.season_id});const j=O.get(V.roundAbbreviation);V.numberDateTimeMillis=new Date(V.date_time_utc).getTime(),V.homeTeam=L.get(V.home_team),V.awayTeam=L.get(V.visiting_team);const be=p.value.mapGamesByTeam.get(V.home_team),ze=p.value.mapGamesByTeam.get(V.visiting_team);be?be.push(V):p.value.mapGamesByTeam.set(V.home_team,[V]),ze?ze.push(V):p.value.mapGamesByTeam.set(V.visiting_team,[V]),j?j.arrayGames.push(V):O.set(V.roundAbbreviation,{stringMatchDayAbbreviation:V.roundAbbreviation,stringMatchDayName:V.roundName,arrayGames:[V]})}}),O),new Map).values());U.reverse(),U.forEach(O=>{O.arrayGames.sort((B,V)=>B.numberDateTimeMillis-V.numberDateTimeMillis)}),p.value.arrayMatchDays=U,u.value=U[0]||{}}catch(k){throw new Error(k)}}async function Z(_){try{const k=await R(_.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=k.reduce((A,P)=>{p.value.mapPlayers.set(P.player_id,{id:P.player_id,name:P.player_name,shortName:P.shortName,photo:P.player_photo,teamId:P.team_id,positionId:P.position_id});const L=A.get(P.team_id);return L?L.push(P):A.set(P.team_id,[P]),A},new Map)}catch(k){throw new Error(k)}}async function Y(){try{let _=[];m.value.isEmpty?(_=await D(),g.value={..._}):_=g.value;const k=[];if(_&&_.length){m.value=_.reduce((B,V)=>{if(V.group_id!=="g-55"){const x={idAux:V.group_id,ids:[...V.ids?V.ids:[],...V.rival_Ids?V.rival_Ids:[]],type:V.type,name:V.name,coordinatePoint:V.coordinate_point,requiresRivalTransform:i.includes(V.group_id)};x.idsAux=[...x.ids],x.subcategoryGroups=V.group_id==="g-12"?[]:oe(V,0,new Map,!1,{},x.idsAux),k.push(x),x.type.includes(s.player)&&B.player.push(x),x.type.includes(s.team)&&(x.idAux!=="g-2"&&B.games.push(x),B.team.push(x)),x.type.includes(s.goalkeeper)&&B.goalkeeper.push(x)}return B},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const A=new Map,P="Resumen",L="Todas sus jugadas",U=m.value.player.reduce((B,V)=>{const x=v(V);return x.forEach(w=>{A.set(w,V.name)}),B.push(...x),B},[]),O=m.value.goalkeeper.reduce((B,V)=>{const x=v(V);return x.forEach(w=>{A.set(w,V.name)}),B.push(...x),B},[]);m.value.games.unshift({name:P,arrayCategoriesIds:n.games,booleanIsBestPlays:!0}),m.value.team.unshift({name:P,arrayCategoriesIds:n.team,booleanIsBestPlays:!0}),m.value.player.unshift({name:P,arrayCategoriesIds:n.player.regular,booleanIsBestPlays:!0},{name:L,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0}),m.value.goalkeeper.unshift({name:P,arrayCategoriesIds:n.player.goalkeeper,booleanIsBestPlays:!0},{name:L,arrayCategoriesIds:O,booleanIsMinutesPlayed:!0})}}catch(_){throw new Error(_)}}function oe(_,k=0,A=new Map,P=!1,L={},U=[]){if(!_.group_id)return;let O=A.get(k);const B=P?`${_.id_category}_r`:_.id_category;_.id_category&&U.push(_.id_category);let V={ids:[B],groupId:_.group_id,level:k,name:_.name,isSelected:!0,fatherCategories:k>0?[L]:[],idsByFatherCategory:{[_.category_father]:[B]}};if(k>0&&k===1&&(V.id=_.id_category),O&&k!==0){const x=_.group_id.charAt(_.group_id.length-1),w=O.find(F=>F.groupId.endsWith(x));w&&!r.includes(V.groupId)?(V=w,w.ids.push(B),w.fatherCategories.push(L),w.fatherCategories.forEach(F=>{F.childCategories?F.childCategories.find(j=>j.groupId===V.groupId)||F.childCategories.push(V):F.childCategories=[V]}),w.idsByFatherCategory[_.category_father]?w.idsByFatherCategory[_.category_father].push(B):w.idsByFatherCategory[_.category_father]=[B]):(V.fatherCategories.forEach(F=>{F.childCategories?F.childCategories.find(j=>j.groupId===V.groupId)||F.childCategories.push(V):F.childCategories=[V]}),O.push(V))}else k!==0&&(L.childCategories?L.childCategories.push(V):L.childCategories=[V],O=[V],A.set(k,O));if(_.categories&&_.categories.length?_.categories.forEach(x=>{oe(x,k+1,A,P,V,U)}):_.rival_categories&&_.rival_categories.length&&_.rival_categories.forEach(x=>{oe(x,k+1,A,!0,V,U)}),k===0)return Array.from(A.values())}function v(_){const k=_||_;if(k.booleanIsBestPlays)return k.arrayCategoriesIds;const A={total:[],toRemove:[]};if(k.subcategoryGroups&&k.subcategoryGroups.length?k.subcategoryGroups[0].forEach(P=>{M(P,null,A)}):(k.ids&&A.total.push(...k.ids),k.rival_ids&&k.rival_ids.forEach(P=>{A.total.push(`${P}_r`)})),A.total=A.total.reduce((P,L)=>(A.toRemove.includes(L)||P.push(L),P),[]),!_){const P=k.name.toLowerCase().includes("recibid");b.value.isRivalSubject=P,b.value.avoidCategorySingleName=P,b.value.coordinatePoint=k.coordinatePoint,b.value.requiresRivalTransform=k.requiresRivalTransform}return A.total}function M(_,k=[],A={total:[],toRemove:[]}){_.isSelected?_.childCategories?_.childCategories.forEach(P=>{const L=k?Object.entries(_.idsByFatherCategory).reduce((U,[O,B])=>(k.includes(Number(O))&&B.forEach(V=>{typeof V=="string"&&V.endsWith("_r")?U.push(Number(V.split("_")[0])):U.push(V)}),U),[]):[_.id];M(P,L,A)}):k?Object.entries(_.idsByFatherCategory).forEach(([P,L])=>{k.includes(Number(P))&&L.forEach(U=>{A.total.push(U)})}):_.level===1?Object.entries(_.idsByFatherCategory).forEach(([P,L])=>{L.forEach(U=>{A.total.push(U)})}):A.total.push(_.id):_.childCategories||_.ids.forEach(P=>{A.toRemove.push(P)})}async function R(_){try{const k=await z({seasonId:_});return k.forEach(A=>{const[P,L]=A.player_name.split(","),U=P.split(" ");let O="";for(const B of U)if(O+=` ${B}`,B.length>3)break;A.shortName=L&&P?`${L.trim().charAt(0)}.${O}`:""}),k}catch(k){return Promise.reject(k)}}async function D(){try{const _={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await lt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:_})).data||[]}catch(_){return Promise.reject(_)}}function K(_){h.value=_}function te(_){y.value=_,p.value=_.seasons[0]}function me(_){p.value=_}function T(_){f.value=_}return N(),Y(),(_,k)=>(e.openBlock(),e.createElementBlock("div",iy,[e.createElementVNode("div",ry,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,A=>(e.openBlock(),e.createBlock(nt,e.mergeProps({key:A.name},l,{text:A.name,"is-active":h.value.componentName===A.componentName,tournaments:c.value,onClick:P=>K(A)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",ny,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value.componentName),{tournaments:c.value,"advanced-filter-categories":m.value,"onUpdate:tournament":te,"onUpdate:season":me,"onUpdate:team":T},null,40,["tournaments","advanced-filter-categories"]))])]))}}),cy=X(dy,[["__scopeId","data-v-d6f7aec8"]]),Rl=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"]]),my={class:"template-taken-corners"},py={class:"template-taken-corners__header"},uy={class:"template-taken-corners__header__all"},fy={class:"template-taken-corners__body"},hy={class:"template-taken-corners__body__players"},yy={class:"template-taken-corners__body__players__player__jersey"},gy={class:"template-taken-corners__body__players__player__photo"},by={class:"template-taken-corners__body__players__player__photo__img"},Sy=["src"],_y={class:"template-taken-corners__body__players__player__info"},Cy={class:"template-taken-corners__body__players__player__info__name"},Ey={class:"template-taken-corners__body__players__player__info__position"},wy={class:"template-taken-corners__body__players__player__info__position__nationality"},ky=["src"],Vy={class:"template-taken-corners__body__players__player__info__position__name"},Ny={class:"template-taken-corners__body__players__player__checkbox"},xy={__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:a,emit:o}){const l=t,r=e.ref(!1),i=e.ref([]),n=e.computed(()=>l.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),s=e.computed(()=>i.value.reduce((m,g)=>g.isSelected?m+1:m,0));e.watch(()=>l.takenCornersFilters,m=>{i.value=m.map(g=>{const b={...g};return(g.isSelected===void 0||g.isSelected===null)&&(b.isSelected=!0),b})},{immediate:!0,deep:!0}),e.watch(s,m=>{r.value=m===i.value.length,o("change-filters-selected",m),o("update:filters",i.value)},{immediate:!0});function d(m){return`https://golstatsimages.blob.core.windows.net/flags/${m}.jpg`}function c(m){return`https://golstatsimages.blob.core.windows.net/players-profile/${m}.png`}function h(m){let g=!1;return m.split(" ").reduce((b,N)=>(g||(N.length>3?(b=N,g=!0):b+=`${N} `),b),"").trim()}function p(m){return`${h(m.last_name)}, ${m.first_name.trim()}`}function y(m){return l.isFemale?Rl.get(m.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):Rl.get(m.positions[0])}function f(m){m?i.value.forEach(g=>{g.isSelected=!0}):i.value.forEach((g,b)=>{g.isSelected=b===0})}function u(){i.value.forEach(m=>{m.isSelected=!0})}return a({clearFilters:u}),(m,g)=>(e.openBlock(),e.createElementBlock("div",my,[e.createElementVNode("div",py,[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(n.value),5),e.createElementVNode("div",uy,[e.createVNode(e.unref(J),{"model-value":r.value,label:"Seleccionar todos","onUpdate:modelValue":f},null,8,["model-value"])])]),e.createElementVNode("div",fy,[e.createElementVNode("div",hy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",yy,e.toDisplayString(b.jersey),1),e.createElementVNode("div",gy,[e.createElementVNode("div",by,[e.createElementVNode("img",{src:c(b.player_id),alt:"player photo",width:"36",height:"36"},null,8,Sy)])]),e.createElementVNode("div",_y,[e.createElementVNode("div",Cy,e.toDisplayString(p(b)),1),e.createElementVNode("div",Ey,[e.createElementVNode("div",wy,[e.createElementVNode("img",{src:d(b.nationality_id),alt:"country flag"},null,8,ky)]),e.createElementVNode("div",Vy,e.toDisplayString(y(b)),1)])]),e.createElementVNode("div",Ny,[e.createVNode(e.unref(J),{modelValue:b.isSelected,"onUpdate:modelValue":N=>b.isSelected=N,"avoid-interaction":s.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},By=X(xy,[["__scopeId","data-v-763fcc54"]]),Ta={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]}]},Ma=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),Fy={class:"template-how-was-corner"},Ty={class:"template-how-was-corner__header"},My=Ma(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),Ay={class:"template-how-was-corner__header__radio-input"},Ly={class:"template-how-was-corner__header__radio-input__radio"},Py=Ma(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),Dy={class:"template-how-was-corner__header__radio-input"},Iy={class:"template-how-was-corner__header__radio-input__radio"},vy=Ma(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),Ry=["onClick"],Oy={class:"template-how-was-corner__content__corner-type__img"},zy=["src","alt"],Uy={class:"template-how-was-corner__content__corner-type__info"},jy={class:"template-how-was-corner__content__corner-type__info__title"},$y={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ta},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:a}){const o=t,l=e.ref("left"),r=e.computed(()=>o.howWasCornerFilters[o.howWasCornerFilters.cornerType]),i=e.computed(()=>r.value.filter(s=>s.isSelected).length);e.watch(()=>l.value,s=>{o.howWasCornerFilters.cornerType=s}),e.watch(()=>o.howWasCornerFilters,s=>{a("change-filters-selected",o.howWasCornerFilters[s.cornerType].reduce((d,c)=>c.isSelected?d+1:d,0)),l.value=s.cornerType,a("update:filters",s)},{deep:!0,immediate:!0});function n(s){s.isSelected&&i.value===1||(s.isSelected=!s.isSelected)}return(s,d)=>(e.openBlock(),e.createElementBlock("div",Fy,[e.createElementVNode("div",Ty,[My,e.createElementVNode("div",Ay,[e.createElementVNode("div",Ly,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":d[0]||(d[0]=c=>l.value=c)},null,512),[[e.vModelRadio,l.value]]),Py])]),e.createElementVNode("div",Dy,[e.createElementVNode("div",Iy,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":d[1]||(d[1]=c=>l.value=c)},null,512),[[e.vModelRadio,l.value]]),vy])])]),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(r.value,(c,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":c.isSelected}]),onClick:p=>n(c)},[e.createElementVNode("div",Oy,[e.createElementVNode("img",{src:c.imgSrc,alt:c.title},null,8,zy)]),e.createElementVNode("div",Uy,[e.createElementVNode("div",jy,e.toDisplayString(c.title),1)])],10,Ry))),128))],2)]))}},Hy=X($y,[["__scopeId","data-v-b7e3b8e0"]]),st=[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],Fe=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),Wy={class:"template-zone"},Gy={class:"controls-zone-container"},qy={class:"controls-zone-container-title-checkcon"},Zy={class:"controls-zone-container-title-checkcon-check"},Yy={class:"gsc-field-img-container"},Jy={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ky=["fill"],Xy=["fill"],Qy=["fill"],e3=["fill"],t3=["fill"],a3=["fill"],o3=["fill"],l3=["fill"],i3=["fill"],r3=["fill"],n3=["fill"],s3=["fill"],d3=["fill"],c3=["fill"],m3=["fill"],p3=["fill"],u3=["fill"],f3=["fill"],h3=["fill"],y3=["fill"],g3=["fill"],b3=["fill"],S3=["fill"],_3=["fill"],C3=["fill"],E3=["fill"],w3=["fill"],k3=["fill"],V3=["fill"],N3=["fill"],x3=["fill"],B3=["fill"],F3=["fill"],T3=["fill"],M3=["fill"],A3=Fe(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),L3=Fe(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),P3=["id"],D3=Fe(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),I3=[D3],v3=["mask"],R3=Fe(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),O3=[R3],z3=Fe(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),U3=Fe(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),j3={class:"template-zone__total-corners"},$3=Fe(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),H3=Fe(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),W3=[$3,H3],G3={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...st]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(!0),i=e.ref([]),n=e.computed(()=>new Date().getTime());e.watch(i,h=>{r.value=h.length===35}),e.watch(()=>l.zoneFilters,h=>{i.value=h},{immediate:!0,deep:!0}),e.watch(()=>i.value,h=>{o("update:filters",h),o("change-filters-selected",h.length)},{deep:!0});function s(h){h?(i.value=st,r.value=!0):(i.value=[],r.value=!1)}function d(h){i.value.includes(h)?i.value=i.value.filter(p=>p!==h):i.value.push(h),r.value=i.value.length===35}function c(){i.value=[...st]}return a({clearFilters:c}),(h,p)=>(e.openBlock(),e.createElementBlock("div",Wy,[e.createElementVNode("div",Gy,[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",qy,[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",Zy,[e.createVNode(e.unref(J),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":r.value,"onUpdate:modelValue":s},null,8,["model-value"])])])]),e.createElementVNode("div",Yy,[(e.openBlock(),e.createElementBlock("svg",Jy,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>d(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:i.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,Ky),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>d(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:i.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,Xy),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>d(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:i.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,Qy),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>d(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:i.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,e3),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>d(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:i.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,t3),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>d(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:i.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,a3),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>d(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:i.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,o3),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>d(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:i.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,l3),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>d(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:i.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,i3),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>d(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:i.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,r3),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>d(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:i.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,n3),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>d(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:i.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,s3),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>d(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:i.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,d3),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>d(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:i.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,c3),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>d(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:i.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,m3),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>d(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:i.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,p3),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>d(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:i.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,u3),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>d(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:i.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,f3),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>d(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:i.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,h3),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>d(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:i.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,y3),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>d(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:i.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,g3),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>d(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:i.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,b3),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>d(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:i.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,S3),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>d(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:i.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,_3),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>d(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:i.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,C3),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>d(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:i.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,E3),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>d(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:i.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,w3),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>d(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:i.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,k3),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>d(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:i.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,V3),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>d(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:i.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,N3),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>d(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:i.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,x3),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>d(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:i.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,B3),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>d(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:i.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,F3),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>d(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:i.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,T3),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>d(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:i.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,M3),A3,L3,e.createElementVNode("mask",{id:n.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},I3,8,P3),e.createElementVNode("g",{mask:`url(#${n.value})`},O3,8,v3),z3,U3]))]),e.withDirectives(e.createElementVNode("div",j3,W3,512),[[e.vShow,!1]])]))}},q3=X(G3,[["__scopeId","data-v-378bf7e2"]]),Aa=[{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]}],Z3={class:"what-happened"},Y3={class:"what-happened__all"},J3={class:"what-happened__filters"},K3={key:0,class:"what-happened__filters__filter__composed"},X3={class:"what-happened__filters__filter__composed__main"},Q3={key:1,class:"what-happened__filters__filter__single"},eg={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Aa]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:a,emit:o}){const l=t,r=e.computed(()=>l.whatHappenedFilters.reduce((f,u)=>(u.child?u.child.forEach(m=>{m.isSelected&&f++}):u.isSelected&&f++,f),0)),i=e.computed(()=>l.whatHappenedFilters.reduce((f,u)=>(u.child?f+=u.child.length:f++,f),0)),n=e.computed(()=>r.value===i.value),s=e.computed(()=>r.value===1);e.watch(()=>l.whatHappenedFilters,f=>{o("change-filters-selected",r.value),o("update:filters",f)},{deep:!0,immediate:!0});function d(f){l.whatHappenedFilters.forEach(u=>{f?(u.isSelected=f,u.child&&u.child.forEach(m=>{m.isSelected=f})):u.child?(u.isSelected=!0,u.child.forEach(m=>{m.isSelected=!0})):u.isSelected=!1})}function c(f,u){u.isSelected=f,u.child.forEach(m=>{m.isSelected=f})}function h(f,u,m){m.isSelected=f,u.isSelected=u.child.every(g=>g.isSelected)}function p(f,u){u.isSelected=f}function y(){l.whatHappenedFilters.forEach(f=>{f.child?f.child.forEach(u=>{u.isSelected=!0}):f.isSelected=!0})}return a({onResetFilters:y}),(f,u)=>(e.openBlock(),e.createElementBlock("div",Z3,[e.createElementVNode("div",Y3,[e.createVNode(e.unref(J),{label:"Todos","model-value":n.value,"box-position":"right","onUpdate:modelValue":d},null,8,["model-value"])]),e.createElementVNode("div",J3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[m.child?(e.openBlock(),e.createElementBlock("div",K3,[e.createElementVNode("div",X3,[e.createVNode(e.unref(J),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":s.value&&m.isSelected,"onUpdate:modelValue":b=>c(b,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.child,(b,N)=>(e.openBlock(),e.createElementBlock("div",{key:`c${N}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(J),{"model-value":b.isSelected,label:t.isFemale?b.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):b.text,"avoid-interaction":s.value&&b.isSelected,"onUpdate:modelValue":I=>h(I,m,b)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Q3,[e.createVNode(e.unref(J),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":s.value&&m.isSelected,"onUpdate:modelValue":b=>p(b,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},tg=X(eg,[["__scopeId","data-v-8f375a1a"]]),La={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}]}},Ol=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),ag={class:"template-results"},og={class:"template-results__type-switch"},lg=Ol(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),ig=Ol(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),rg={class:"template-results__info"},ng={key:0,class:"template-results__group"},sg={key:1,class:"template-results__group"},dg={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...La})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(null),i=e.computed(()=>{const d=r.value.isMoment?r.value.results.moment.filter(c=>c.isSelected).length:r.value.results.final.filter(c=>c.isSelected).length;return o("change-filters-selected",d),d}),n=e.computed(()=>r.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>l.resultsFilters,d=>{r.value===null&&(r.value={...d})},{deep:!0,immediate:!0}),e.watch(r,d=>{o("update:filters",d)},{deep:!0,immediate:!0});function s(){r.value.isMoment=!1,r.value.results.moment.forEach(d=>{d.isSelected=!0}),r.value.results.final.forEach(d=>{d.isSelected=!0})}return a({removeFilters:s}),(d,c)=>(e.openBlock(),e.createElementBlock("div",ag,[e.withDirectives(e.createElementVNode("div",og,[lg,e.createVNode(rt,{modelValue:r.value.isMoment,"onUpdate:modelValue":c[0]||(c[0]=h=>r.value.isMoment=h)},null,8,["modelValue"]),ig],512),[[e.vShow,!r.value.isMomentOnly]]),e.createElementVNode("div",rg,e.toDisplayString(n.value),1),r.value.isMoment?(e.openBlock(),e.createElementBlock("div",ng,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.results.moment,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(J),{modelValue:h.isSelected,"onUpdate:modelValue":y=>h.isSelected=y,label:h.name,"avoid-interaction":i.value===1&&h.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",sg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.results.final,(h,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(J),{modelValue:h.isSelected,"onUpdate:modelValue":y=>h.isSelected=y,label:h.name,"avoid-interaction":i.value===1&&h.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},cg=X(dg,[["__scopeId","data-v-ee3b28d3"]]),mg={key:0,class:"productivity__header__text"},pg={key:0},ug={key:1},fg={key:2},hg={key:1,class:"productivity__header__checkbox"},yg={class:"templates__body"},gg={key:0,class:"templates-plays"},bg={key:1,class:"templates-productivity"},Sg={key:2,class:"template-field"},_g={key:3,class:"template-details"},Cg={key:4,class:"template-personal-data"},Eg={key:5,class:"template-leagues"},wg={key:6,class:"template-plays"},kg={key:7,class:"template-plays"},Vg={key:8,class:"template-universe"},Ng={key:9,class:"template-distance"},xg={key:10,class:"template-results"},Bg={key:11,class:"template-results-by-type"},Fg={key:12,class:"template-games"},Tg={key:13,class:"template-taken-corners"},Mg={key:14,class:"template-videos"},Ag={key:15,class:"template-how-was-corner"},Lg={key:16,class:"template-zone"},Pg={key:17,class:"template-what-happened"},Dg={key:1,class:"templates__footer"},Ig={class:"templates__footer__button"},vg={class:"templates__footer__button"},Rg={__name:"GSC-FilterTemplates",props:{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},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+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}},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:a,emit:o}){const l=t,r=e.ref(null),i=e.ref(!1),n=e.ref({playingAs:l.playingAs,gameSections:l.gameSections,statisticType:l.statisticType}),s=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),c=e.ref(null),h=e.ref(null),p=e.ref(null),y=e.ref(null),f=e.computed(()=>({"--width":l.width,"--max-width":l.maxWidth,"--background-color":l.backgroundColor,"--border-radius":l.borderRadius,"--border-color":l.borderColor,"--border-width":l.borderWidth,"--box-shadow":l.boxShadow,"--padding":l.filterType!==S.VIDEOS?l.isExpansionMode?"10px 0":l.padding:"0","--footer-border-color":l.footerBorderColor,"--footer-border-width":l.footerBorderWidth,"--text-color":l.textColor})),u=e.computed(()=>{const w=[];return l.productivityCategories&&Object.values(l.productivityCategories).forEach(F=>{F.categories&&F.categories.forEach(j=>{w.push(j)})}),w}),m=e.computed(()=>{const w=[];return l.playsCategories&&Object.values(l.playsCategories).forEach(F=>{F.categories&&F.categories.forEach(j=>{w.push(j)})}),w}),g=e.computed(()=>{const w=u.value.filter(F=>F.isSelected);return G(w),l.filterType===S.PRODUCTIVITY&&o("change-categories-selected",w.length),w.length}),b=e.computed(()=>!l.isForTemplateForm&&g.value>=l.productivityMaxCategories),N=e.computed(()=>!l.isForTemplateForm&&g.value<=l.productivityMinCategories),I=e.computed(()=>l.isPlayingAsHidden?l.gameSections:l.playingAs.concat(l.gameSections));e.watch(n,w=>{l.filterType===S.DETAILS&&o("update:filters",w)},{immediate:!0,deep:!0}),e.watch(()=>I.value,w=>{if(l.filterType===S.DETAILS){const F=w.filter(j=>j.isSelected);o("change-filters-selected",F.length)}},{immediate:!0,deep:!0}),e.watch(()=>l.playsGolstatsCategories,w=>{if(l.filterType===S.PLAYS_TYPES||l.filterType===S.GOLSTATS){const F=w.filter(j=>j.isSelected);o("change-filters-selected",F.length)}},{immediate:!0}),e.watch(()=>l.fieldAreas,w=>{l.filterType===S.FIELD&&o("change-filters-selected",w.length)}),e.watch(m,()=>{l.filterType===S.PLAYS&&D()},{immediate:!0,deep:!0}),e.watch(u,()=>{l.filterType===S.PRODUCTIVITY&&K()},{immediate:!0,deep:!0}),e.watch(()=>l.resultsFilters,w=>{l.filterType===S.RESULTS&&o("change-filters-selected",w.results.filter(F=>F.isSelected).length)},{immediate:!0,deep:!0});function G(w){setTimeout(()=>{w.sort((F,j)=>F.priority-j.priority),w.forEach((F,j)=>{F.priority=j+1})},10)}function z(w=null){q(w)}function q(w=null){l.filterType===S.PRODUCTIVITY?u.value.forEach(F=>{F.isSelected=!1}):l.filterType===S.PLAYS?(m.value.forEach(F=>{F.isSelected=!0}),i.value=!0):l.filterType===S.FIELD?o("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):l.filterType===S.DETAILS?(l.playingAs.forEach(F=>{F.isSelected=!0}),l.gameSections.forEach(F=>{F.isSelected=!0})):l.filterType===S.TOURNAMENTS?(l.tournaments.forEach((F,j)=>{l.isOneTournamentOnly?F.isSelected=j===0:F.isSelected=!0}),o("change-filters-selected",0)):l.filterType===S.PLAYS_TYPES?l.playsGolstatsCategories.forEach(F=>{F.isSelected=!0}):l.filterType===S.GOLSTATS?l.playsGolstatsCategories.forEach(F=>{F.isSelected=!1}):l.filterType===S.UNIVERSE?d.value&&d.value.resetFilters():l.filterType===S.PERSONAL_DATA?(r.value&&r.value.onClearFilters(w||se.All),o("change-personal-data-filters",{})):l.filterType===S.DISTANCE?o("update:filters",{minValue:l.distanceFilters.minLimit,maxValue:l.distanceFilters.maxLimit}):l.filterType===S.RESULTS?o("update:filters",{results:l.resultsFilters.results.map(F=>(F.isSelected=!0,F))}):l.filterType===S.RESULTS_BY_TIME?y.value&&y.value.removeFilters():l.filterType===S.GAMES?l.gamesFilters.forEach(F=>{F.isSelected=!0}):l.filterType===S.TAKEN_CORNERS?c.value.clearFilters():l.filterType===S.HOW_WAS_CORNER?(l.howWasCornerFilters.left.forEach(F=>{F.isSelected=!0}),l.howWasCornerFilters.right.forEach(F=>{F.isSelected=!0})):l.filterType===S.ZONE?h.value&&h.value.clearFilters():l.filterType===S.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function Z(w){l.filterType===S.TOURNAMENTS&&o("change-filters-selected",w)}function Y(w){l.filterType===S.UNIVERSE&&o("change-universe-filters",w)}function oe(w){l.filterType===S.FIELD&&o("change-field-areas",w)}function v(w){l.filterType===S.GOLSTATS&&o("change-filters-selected",w)}function M(w){o("change-filters-selected",w)}function R(w){l.filterType===S.PRODUCTIVITY?u.value.forEach(F=>{F.isSelected=w}):(i.value=w,l.playsCategories.offensive.categories.forEach(F=>{F.isSelected=w}),l.playsCategories.defensive.categories.forEach(F=>{F.isSelected=w}),l.playsCategories.possession.categories.forEach(F=>{F.isSelected=w}),l.playsCategories.offenses.categories.forEach(F=>{F.isSelected=w}))}function D(){let w=0;const F={playsCategories:m.value.filter(j=>j.isSelected)};i.value=F.playsCategories.length===m.value.length,w=F.playsCategories.length,Object.values(s.value).forEach(j=>{j&&w++}),o("change-filters-selected",w),o("update:filters",F)}function K(){let w=0;const F={productivityFilters:u.value.filter(j=>j.isSelected),offensesConditions:s.value};w=F.productivityFilters.length,Object.values(s.value).forEach(j=>{j&&w++}),o("change-filters-selected",w),o("update:filters",F)}function te(w){o("click-parameters",w)}function me(){o("apply")}function T(){(l.filterType===S.PLAYS_TYPES||l.filterType===S.GOLSTATS)&&l.playsGolstatsCategories&&l.playsGolstatsCategories.forEach(w=>{w.isSelected=!1}),l.filterType===S.PRODUCTIVITY&&u.value.forEach(w=>{w.isSelected=!1}),o("apply")}function _(w){o("update:filters",w)}function k(w){l.filterType===S.PERSONAL_DATA&&o("update:filters",w)}function A(w){l.filterType===S.TOURNAMENTS&&o("update:filters",w)}function P(w){(l.filterType===S.PLAYS_TYPES||l.filterType===S.GOLSTATS)&&o("update:filters",w)}function L(w){l.filterType===S.PRODUCTIVITY&&(s.value=w,K())}function U(w){l.filterType===S.DISTANCE&&o("update:filters",w)}function O(w){l.filterType===S.RESULTS&&o("update:filters",w)}function B(w){l.filterType===S.GAMES&&(o("update:filters",w),o("change-filters-selected",w.filter(F=>F.isSelected).length))}function V(w){n.value.statisticType=w}const x=e.computed(()=>l.filterType===S.PLAYS?m.value.length:l.filterType===S.PRODUCTIVITY?u.value.length:l.filterType===S.FIELD?16:l.filterType===S.UNIVERSE?6:l.filterType===S.DETAILS?8:l.filterType===S.RESULTS||l.filterType===S.RESULTS_BY_TIME?3:l.filterType===S.GAMES?l.gamesFilters.length:0);return o("total-filters",x),a({clearFilters:z}),(w,F)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(f.value)},[t.filterType===e.unref(S).PRODUCTIVITY||t.filterType===e.unref(S).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(S).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",mg,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",pg,[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",ug,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",fg,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(S).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",hg,[e.createVNode(e.unref(J),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":i.value,"label-color":t.textColor,"onUpdate:modelValue":R},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",yg,[t.filterType===e.unref(S).PLAYS?(e.openBlock(),e.createElementBlock("div",gg,[e.createVNode(gh,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",bg,[e.createVNode(cc,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":b.value,"are-min-categories-reached":N.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":L,onClickParameters:te},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"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).FIELD?(e.openBlock(),e.createElementBlock("div",Sg,[e.createVNode(e.unref(Jo),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":oe}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).DETAILS?(e.openBlock(),e.createElementBlock("div",_g,[e.createVNode(Uc,{"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(S).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Cg,[e.createVNode(eh,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:r,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":k},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",Eg,[e.createVNode(qc,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Z,"onUpdate:filters":A},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",wg,[e.createVNode(Lo,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":P},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).GOLSTATS?(e.openBlock(),e.createElementBlock("div",kg,[e.createVNode(Lo,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:v,"onUpdate:filters":P},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).UNIVERSE?(e.openBlock(),e.createElementBlock("div",Vg,[e.createVNode(j1,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"onUpdate:universeFilters":Y},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).DISTANCE?(e.openBlock(),e.createElementBlock("div",Ng,[e.createVNode(dm,{distance:t.distanceFilters,"onUpdate:distanceFilters":U},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).RESULTS?(e.openBlock(),e.createElementBlock("div",xg,[e.createVNode(_h,{ref_key:"templateResults",ref:y,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":O},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",Bg,[e.createVNode(cg,{ref_key:"templateResults",ref:y,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:M,"onUpdate:filters":_},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).GAMES?(e.openBlock(),e.createElementBlock("div",Fg,[e.createVNode(ym,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":B},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",Tg,[e.createVNode(By,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:c,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:M,"onUpdate:filters":_},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).VIDEOS?(e.openBlock(),e.createElementBlock("div",Mg,[e.createVNode(cy,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",Ag,[e.createVNode(Hy,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:M,"onUpdate:filters":_},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).ZONE?(e.openBlock(),e.createElementBlock("div",Lg,[e.createVNode(q3,{ref_key:"templateZone",ref:h,"zone-filters":t.zoneFilters,onChangeFiltersSelected:M,"onUpdate:filters":_},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(S).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",Pg,[e.createVNode(tg,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:M,"onUpdate:filters":_},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Dg,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Ct),{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:T})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ig,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Ct),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:T})):(e.openBlock(),e.createBlock(e.unref(Ct),{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",vg,[e.createVNode(e.unref(Ct),{"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))}},zl=X(Rg,[["__scopeId","data-v-5452e6cf"]]),Og=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},zg={__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:a}){const o=t;e.useCssVars(f=>({"398d9242":t.width,f164e302:d.value,"4bb88040":t.menuWidth}));const l=e.ref(null),r=e.ref(!1),i=e.ref(null),n=e.ref({}),s=e.computed(()=>{const f={top:"0px","--left-menu":o.leftMenu};if(l.value){const u=l.value.getBoundingClientRect();f.top=`${u.height+o.menuMarginTop}px`}return f}),d=e.computed(()=>r.value?o.zIndexOpen:1);e.watch(()=>o.modelValue,f=>{f!==r.value&&(r.value=f)},{immediate:!0}),e.watch(r,f=>{f||setTimeout(()=>{n.value["--translate-x"]="0px"},500)});function c(f){const u=window.innerWidth,m=f.boundingClientRect.x,g=f.boundingClientRect.x+f.boundingClientRect.width,b=m<=0?Math.abs(m)+4:g>=u?u-(g+10):0;n.value["--translate-x"]=`${b}px`}function h(){new IntersectionObserver(f=>{f[0].intersectionRatio>0&&c(f[0])}).observe(i.value)}function p(){r.value=!r.value,a("update:modelValue",r.value)}function y(){r.value=!1,a("update:modelValue",r.value)}return e.onMounted(()=>{e.nextTick(()=>{h()})}),(f,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:y})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:l,class:"menu-container__trigger",onClick:p},[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:i,class:"menu-container__menu",style:e.normalizeStyle(s.value)},[e.renderSlot(f.$slots,"menu",{},void 0,!0)],4),[[e.vShow,r.value]])]),_:3})],4)],64))}},Ug=Og(zg,[["__scopeId","data-v-18c0df61"]]),Oe=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),jg={key:0,class:"button__icon"},$g={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["stroke"],Wg=["stroke"],Gg=["stroke"],qg={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zg=["stroke"],Yg=["stroke"],Jg=["fill"],Kg={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["fill"],Qg={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e5=["stroke"],t5=["stroke"],a5=["stroke"],o5=["stroke"],l5=["stroke"],i5={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r5=Oe(()=>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)),n5=[r5],s5={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d5=Oe(()=>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)),c5=[d5],m5={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p5=Oe(()=>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)),u5=[p5],f5={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h5=Oe(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),y5=Oe(()=>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)),g5=Oe(()=>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)),b5=Oe(()=>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)),S5=[h5,y5,g5,b5],_5={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C5=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><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-2504d135></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-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),E5=[C5],w5={class:"button__text"},k5={key:0,class:"info-container"},V5={key:1,style:{width:"20px"}},N5={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x5=["fill"],B5={__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 a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),l=e.computed(()=>({"--info-background-color":a.infoValue?a.infoBackgroundColor:"transparent","--info-border-color":a.infoValue?a.infoBorderColor:"transparent","--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth})),r=e.computed(()=>[S.PLAYS_TYPES,S.GOLSTATS,S.TOURNAMENTS,S.PLAYS,S.RESULTS,S.RESULTS_BY_TIME].includes(a.iconType)),i=e.computed(()=>[S.FIELD,S.GAMES].includes(a.iconType)),n=e.computed(()=>[S.DETAILS,S.UNIVERSE].includes(a.iconType)),s=e.computed(()=>[S.PERSONAL_DATA].includes(a.iconType)),d=e.computed(()=>[S.PRODUCTIVITY].includes(a.iconType)),c=e.computed(()=>[S.HOW_WAS_CORNER].includes(a.iconType)),h=e.computed(()=>[S.TAKEN_CORNERS].includes(a.iconType)),p=e.computed(()=>[S.ZONE].includes(a.iconType)),y=e.computed(()=>[S.WHAT_HAPPENED].includes(a.iconType));return(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(o.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",jg,[s.value?(e.openBlock(),e.createElementBlock("svg",$g,[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,Hg),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,Wg),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,Gg)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",qg,[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,Zg),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,Yg),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,Jg)])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("svg",Kg,[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,Xg)])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("svg",Qg,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,e5),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,t5),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,a5),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,o5),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,l5)])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",i5,n5)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",s5,c5)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",m5,u5)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",f5,S5)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",_5,E5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",w5,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",k5,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(l.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(l.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",V5)):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",N5,[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,x5)]))],2)],4))}},F5=X(B5,[["__scopeId","data-v-2504d135"]]),T5=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},M5=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),A5={class:"panel__activator__icon"},L5=["src"],P5={class:"panel__activator__text"},D5=["height","width"],I5=["stroke"],v5={class:"panel__content"},R5=M5(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),O5={class:"panel__content__slot"},z5={__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:a}){const o=t,l=e.ref(o.modelValue),r=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,n=>{l.value=n},{immediate:!0});function i(){l.value=!l.value,a("update:modelValue",l.value)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:i},[e.createElementVNode("div",A5,[o.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.icon,alt:""},null,8,L5)):e.createCommentVNode("",!0)]),e.createElementVNode("div",P5,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":l.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,I5)],8,D5))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",v5,[R5,e.createElementVNode("div",O5,[e.renderSlot(n.$slots,"content",{},void 0,!0)])],512),[[e.vShow,l.value]])]),_:3})],4))}},U5=T5(z5,[["__scopeId","data-v-0ca35abc"]]),Ve={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},j5={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}},$5={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}]}},H5={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},W5=[{name:"Sub-20",logo:null,isSelected:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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}]}],G5=[{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}],q5=[{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}],Z5={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Ul={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},Y5={class:"filters"},J5={key:0,class:"filters__expansion"},K5={class:"content"},X5={key:1,class:"filters__menus"},Q5={__name:"GSC-Filters",props:{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}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:a,emit:o}){const l=t;e.useCssVars(x=>({"5274d93a":t.width}));const r={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.PRODUCTIVITY,isFooterVisible:!0},i={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.PLAYS,isFooterVisible:!0},n={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.FIELD,isFooterVisible:!0},s={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.DETAILS,isFooterVisible:!0},d={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.TOURNAMENTS,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.PERSONAL_DATA,isFooterVisible:!0},h={width:"310px",modalHeight:l.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:l.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.UNIVERSE,isFooterVisible:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.DISTANCE,isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.RESULTS,padding:"0",isFooterVisible:!0},m={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.VIDEOS,isFooterVisible:!1},b={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.GAMES,isFooterVisible:!0},N={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.TAKEN_CORNERS,isFooterVisible:!0},I={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.HOW_WAS_CORNER,isFooterVisible:!0},G={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.ZONE,isFooterVisible:!0},z={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:S.WHAT_HAPPENED,isFooterVisible:!0},q=e.ref(!1),Z=e.ref(!1),Y=e.ref(0),oe=e.ref(0),v=e.ref({}),M=e.ref(null),R=e.ref(null),D=e.computed(()=>l.isForTemplateForm?"0":"unset"),K=e.computed(()=>l.buttonFilterProps&&l.buttonFilterProps.text?l.buttonFilterProps.text:l.menuButtonText||A()),te=e.computed(()=>l.isFromTemplates?S.RESULTS:l.filterType),me=e.computed(()=>l.expansionPanelText||A()),T=e.ref(null);e.watch(()=>l.filterType,x=>{if(x===S.PRODUCTIVITY)v.value={...r,...l.templateProps,productivityCategories:l.filters||j5};else if(x===S.PLAYS)v.value={...i,...l.templateProps,fontFamily:l.buttonFilterProps?l.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:l.filters||$5};else if(x===S.FIELD)v.value={...n,...l.templateProps,fieldComponentProps:l.fieldComponentProps,fieldAreas:l.filters||[]};else if(x===S.DETAILS)v.value={...s,...l.templateProps,isPlayingAsHidden:l.filters?l.filters.isPlayingAsHidden:Ve.isPlayingAsHidden,playingAs:l.filters&&l.filters.playingAs||Ve.playingAs,gameSections:l.filters&&l.filters.gameSections||Ve.gameSections,statisticType:l.filters?l.filters.statisticType:Ve.statisticType,isStatisticTypeVisible:l.filters?l.filters.isStatisticTypeVisible:Ve.isStatisticTypeVisible};else if(x===S.TOURNAMENTS){const w=l.filters||W5;l.isOneTournamentOnly&&w.forEach(F=>{F.isSelected=F.id===l.defaultTournamentId}),v.value={...d,...l.templateProps,tournaments:w}}else x===S.PERSONAL_DATA?v.value={...c,...l.templateProps,token:l.token,awaitForFilters:l.awaitForFilters,personalDataFilters:l.filters}:x===S.PLAYS_TYPES?v.value={...h,...l.templateProps,playsGolstatsCategories:l.filters||G5}:x===S.GOLSTATS?v.value={...p,...l.templateProps,playsGolstatsCategories:l.filters||q5}:x===S.UNIVERSE?v.value={...y,...l.templateProps,universeFilters:l.filters||H5}:x===S.DISTANCE?v.value={...f,...l.templateProps,distanceFilters:l.filters||Z5}:x===S.RESULTS?v.value={...u,...l.templateProps,resultsFilters:l.filters||Ul}:x===S.RESULTS_BY_TIME?v.value={...m,...l.templateProps,resultsByTimeFilters:l.filters||La}:x===S.GAMES?v.value={...b,...l.templateProps,gamesFilters:l.filters||[]}:x===S.VIDEOS?v.value={...g,...l.templateProps,token:l.token}:x===S.TAKEN_CORNERS?v.value={...N,...l.templateProps,takenCornersFilters:l.filters||[]}:x===S.HOW_WAS_CORNER?v.value={...I,...l.templateProps,howWasCornerFilters:l.filters||Ta}:x===S.ZONE?v.value={...G,...l.templateProps,zoneFilters:l.filters||[...st]}:x===S.WHAT_HAPPENED&&(v.value={...z,...l.templateProps,whatHappenedFilters:l.filters||[...Aa]});v.value.isExpansionMode=l.isExpansionPanel,l.isExpansionPanel&&(v.value.width="100%",v.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>l.filters,()=>{if(l.filterType===S.PRODUCTIVITY)v.value={...r,...l.templateProps,productivityCategories:l.filters};else if(l.filterType===S.PLAYS)v.value={...i,...l.templateProps,playsCategories:l.filters};else if(l.filterType===S.FIELD)v.value={...n,...l.templateProps,fieldComponentProps:l.fieldComponentProps,fieldAreas:l.filters};else if(l.filterType===S.DETAILS)v.value={...s,...l.templateProps,isPlayingAsHidden:l.filters?l.filters.isPlayingAsHidden:Ve.isPlayingAsHidden,playingAs:l.filters?l.filters.playingAs:Ve.playingAs,gameSections:l.filters?l.filters.gameSections:Ve.gameSections,statisticType:l.filters?l.filters.statisticType:Ve.statisticType,isStatisticVisible:l.filters?l.filters.isStatisticVisible:Ve.isStatisticVisible};else if(l.filterType===S.TOURNAMENTS){const x=l.filters;l.isOneTournamentOnly&&x.forEach(w=>{w.isSelected=w.id===l.defaultTournamentId}),v.value={...d,...l.templateProps,tournaments:x}}else l.filterType===S.PERSONAL_DATA?v.value={...c,...l.templateProps,token:l.token,awaitForFilters:l.awaitForFilters,personalDataFilters:l.filters}:l.filterType===S.PLAYS_TYPES?v.value={...h,...l.templateProps,playsGolstatsCategories:l.filters}:l.filterType===S.GOLSTATS?v.value={...p,...l.templateProps,playsGolstatsCategories:l.filters}:l.filterType===S.UNIVERSE?v.value={...y,...l.templateProps,universeFilters:l.filters}:l.filterType===S.DISTANCE?v.value={...f,...l.templateProps,distanceFilters:l.filters}:l.filterType===S.RESULTS?v.value={...u,...l.templateProps,resultsFilters:l.filters||Ul}:l.filterType===S.RESULTS_BY_TIME?v.value={...m,...l.templateProps,resultsByTimeFilters:l.filters||La}:l.filterType===S.GAMES?v.value={...b,...l.templateProps,gamesFilters:l.filters}:l.filterType===S.VIDEOS?v.value={...g,...l.templateProps,token:l.token}:l.filterType===S.TAKEN_CORNERS?v.value={...N,...l.templateProps,takenCornersFilters:l.filters||[]}:l.filterType===S.HOW_WAS_CORNER?v.value={...I,...l.templateProps,howWasCornerFilters:l.filters||Ta}:l.filterType===S.ZONE?v.value={...G,...l.templateProps,zoneFilters:l.filters||[...st]}:l.filterType===S.WHAT_HAPPENED&&(v.value={...z,...l.templateProps,whatHappenedFilters:l.filters||[...Aa]});v.value.isExpansionMode=l.isExpansionPanel,l.isExpansionPanel&&(v.value.width="100%",v.value.maxWidth="100%")}),e.watch(q,x=>{x||o("close",T.value)}),e.watch(Z,x=>{x||o("close",T.value)});function _(x){Y.value=x}function k(){l.isExpansionPanel?Z.value=!1:q.value=!1,o("apply",T.value)}function A(){if(l.filterType===S.PRODUCTIVITY)return l.isFromTemplates?"Tipos de jugadas":"Características de juego";if(l.filterType===S.PLAYS)return"Jugada(s)";if(l.filterType===S.FIELD)return"Zona de cancha";if(l.filterType===S.DETAILS)return"Detalles";if(l.filterType===S.TOURNAMENTS)return"Ligas";if(l.filterType===S.PERSONAL_DATA)return"Datos personales";if(l.filterType===S.PLAYS_TYPES)return"Tipos de jugada";if(l.filterType===S.GOLSTATS)return"Filtros Golstats";if(l.filterType===S.UNIVERSE)return"Universo";if(l.filterType===S.DISTANCE)return"Distancia";if([S.RESULTS,S.RESULTS_BY_TIME].includes(l.filterType))return"Resultados";if(l.filterType===S.GAMES)return"Partidos";if(l.filterType===S.VIDEOS)return"Videos";if(l.filterType===S.TAKEN_CORNERS)return"¿Quién cobró?";if(l.filterType===S.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(l.filterType===S.ZONE)return"Zona";if(l.filterType===S.WHAT_HAPPENED)return"¿Qué sucedió?"}function P(x){o("click-parameters",x)}function L(x){v.value.fieldAreas=x,Y.value=x.length,O(x)}function U(x){let w=0;x.value&&x.value.statistics&&(x.value.minutesPlayed&&w++,x.value.percentMinutesPlayed&&w++,x.value.lastMonths&&w++,x.value.statistics.totals&&w++,x.value.statistics.averagePerGame&&w++,x.value.statistics.averagePerMinute&&w++),v.value.universe=x.value,Y.value=w,O(x.value)}function O(x){T.value=x,o("update:filters",x)}function B(x){oe.value=x}function V(x=null){M.value&&M.value.clearFilters(x),R.value&&R.value.clearFilters(x)}return a({clearFilters:V}),(x,w)=>(e.openBlock(),e.createElementBlock("div",Y5,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",J5,[e.createVNode(e.unref(U5),e.mergeProps(t.expansionPanelProps,{modelValue:Z.value,"onUpdate:modelValue":w[0]||(w[0]=F=>Z.value=F),text:me.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+l.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",K5,[e.createVNode(zl,e.mergeProps(v.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,ref_key:"filterTemplateExpansionPanel",ref:R,onChangeFieldAreas:L,onChangeCategoriesSelected:_,onChangeFiltersSelected:_,onChangeUniverseFilters:U,onApply:k,"onUpdate:filters":O,onTotalFilters:B,onClickParameters:P}),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"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",X5,[e.createVNode(e.unref(Ug),{modelValue:q.value,"onUpdate:modelValue":w[1]||(w[1]=F=>q.value=F),width:t.width,"left-menu":D.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(F5,e.mergeProps(t.buttonFilterProps,{text:K.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":Y.value,"filters-total":oe.value.value,"is-active":q.value,"icon-type":te.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(zl,e.mergeProps(v.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,ref_key:"filterTemplateMenu",ref:M,onChangeFieldAreas:L,onChangeCategoriesSelected:_,onChangeFiltersSelected:_,onChangeUniverseFilters:U,"onUpdate:filters":O,onTotalFilters:B,onApply:k,onClickParameters:P}),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"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},jl=X(Q5,[["__scopeId","data-v-bf4e3ef5"]]);function $l(){return{backgroundColor:"#2e3b46",width:"98.9%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"30px",padding:"5px 2.2%",textFontFamily:"'Poppins-Regular'"}}const e4=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Pa={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))}}},Hl=()=>{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}))},Wl=Pa.setup;Pa.setup=Wl?(t,a)=>(Hl(),Wl(t,a)):Hl;const t4=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),a4=["src"],o4={key:1,class:"text"},l4=["src"],i4={class:"stats"},r4=t4(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),n4={class:"numstats"},s4={class:"leyend"};function d4(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,a4)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",o4,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,l4)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",i4,[r4,e.createElementVNode("div",n4,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",s4,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const c4=e4(Pa,[["render",d4],["__scopeId","data-v-f3ee6b2b"]]),m4={class:"gsc-dropdown__main-container__item-selected"},p4=["height","width"],u4=["stroke"],f4={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h4=["fill"],y4={class:"gsc-dropdown__items-container"},g4=["onClick"],b4={key:0,class:"gsc-dropdown__items-footer"},Gl={__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(a=>a 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:a}){const o=t,l=e.ref({}),r=e.ref(null),i=e.ref(o.isMultipleOption?-1:0),n=e.ref(!1);e.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const m=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);m!==-1?(i.value=m,l.value=f[m]):(i.value=0,l.value=f[0])}else l.value=f[o.defaultItemByIndex];a("input",l.value)}},{immediate:!0}),e.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(m=>typeof f=="object"?JSON.stringify(m)===JSON.stringify(f):m===f);u!==-1&&(i.value=u,l.value=o.items[u],a("update:modelValue",l.value))}},{immediate:!0});const s=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"})),d=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(n.value=!n.value)}function h(f){r.value&&!r.value.contains(f.target)&&(n.value=!1)}function p(f,u){o.isMultipleOption?i.value=-1:(i.value=u,n.value=!1),l.value=f,a("input",l.value),a("update:modelValue",l.value)}function y(){n.value=!1,a("click-ready")}return e.onMounted(()=>{document.addEventListener("click",h)}),e.onBeforeMount(()=>{document.removeEventListener("click",h)}),(f,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:r,class:"gsc-dropdown",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:c},[e.createElementVNode("div",m4,[e.renderSlot(f.$slots,"default",{selectedItem:l.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:e.normalizeStyle(d.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,u4)],8,p4)):(e.openBlock(),e.createElementBlock("svg",f4,[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,h4)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",y4,[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,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:b=>p(m,g)},[e.renderSlot(f.$slots,"availableItem",{item:m})],10,g4)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",b4,[e.createVNode(e.unref(c4),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):e.createCommentVNode("",!0)])],512),[[e.vShow,n.value]])]),_:3})],4))}},S4={name:"ModalCreatePlayList",components:{GSCFilters:jl,GSCDropdown:Gl},props:{isVisible:{type:Boolean,default:!1},seasons:{type:Array,required:!0},userTeamId:{type:Number,default:1},teamId:{type:Number,required:!0},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0},listExistingNames:{type:Array,default:[]}},setup(t,{emit:a}){const o=e.ref($l()),l=e.ref(null),r=e.ref(1),i=e.ref(!1),n=e.ref({title:"",position:""}),s=e.ref(0),d=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"]]),c=e.ref(!1),h=e.ref([]),p=e.ref([]),y=e.ref([]),f=e.ref(!1);e.ref([]);const u=e.ref(new Set),m=e.ref({tournaments:[],personalData:[]}),g=e.ref(null),b=e.ref(!0),N=e.ref(!1),I=e.ref(""),G=e.ref(0),z="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",q=()=>{l.value&&(s.value=l.value.offsetWidth)},Z=B=>{document.body.style.overflow=B?"hidden":"auto"},Y=e.ref(null),oe=()=>{q(),t.isVisible&&Z(!0)},v=()=>{r.value=1,n.value={title:"",position:""},Y.value&&(Y.value.clearFilters(se.ALL),Y.value.clearFilters(se.AGE_RANGE),Y.value.clearFilters(se.YEAR),Y.value.clearFilters(se.NATIONALITY),Y.value.clearFilters(se.POSITION)),_t.forEach(B=>{B.isSelected=B.name==="Liga MX",B.seasons.forEach(V=>{V.isSelected=B.name==="Liga MX"})}),u.value.clear(),G.value++,I.value="",N.value=!1,b.value=!0,g.value=null,p.value=[],y.value=[],a("close")},M=()=>{if(r.value===1){if(!K.value||!n.value.position)return;r.value=2}},R=async()=>{try{c.value=!0;const V=await Q.create({headers:{Authorization:`${z}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${t.userTeamId}/templates?general=1`);h.value=V.data.data,h.value.unshift({id:0,name:"Selecciona un template para tu lista..."})}catch(B){console.error("Error al cargar templates:",B)}finally{c.value=!1}};e.onMounted(()=>{R(),window.addEventListener("resize",oe)}),e.onUnmounted(()=>{window.removeEventListener("resize",oe),Z(!1)}),e.watch(()=>t.isVisible,B=>{B?(r.value=1,setTimeout(q,0),Z(!0)):(r.value=1,Z(!1))}),e.watch(()=>r.value,B=>{B===2&&setTimeout(()=>{b.value=!0,g.value=null,_()},100)});const D=e.computed(()=>({...o.value})),K=e.computed(()=>{const B=n.value.title.toLowerCase(),V=t.listExistingNames.includes(B);return i.value=V,n.value.title.length>=3&&!V}),te=async B=>{m.value.tournaments=B,T()},me=async B=>{m.value.personalData=B,T()},T=()=>{if(!g.value){b.value=!0;return}const B=JSON.stringify(m.value)!==JSON.stringify(g.value);b.value=B},_=async()=>{var B,V,x,w,F,j;if(b.value){N.value=!0;try{const be=m.value.tournaments.find(ze=>ze.isSelected===!0);if(be&&be.seasons.length>0){const ze=be.seasons[0];f.value=!0,p.value=[];try{let W=[...(await Q.create({headers:{Authorization:`${z}`}}).get(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${ze.id}`)).data.players.map(ee=>{var re;return{id:ee.player_id,name:A(ee.player_name),name_full:ee.player_name,photo:ee.player_photo||"https://golstatsimages.blob.core.windows.net/players-profile/default.png",position:d.get(ee.position_id)||"No especificada",position_id:ee.position_id||0,age:ee.age||"-",dob:ee.dob||"-",jersey:ee.jersey||0,nationality:ee.nationality||"",is_female:ee.is_female,nationality_id:ee.nationality_id||0,minutes_played:ee.minutes_played||0,team_id:ee.team_id,team:{logo:`https://golstatsimages.blob.core.windows.net/teams-80/${ee.team_id}.png`,shortName:((re=ee.team)==null?void 0:re.shortName)||"-",tournament:be.name||"No especificada"},isSelected:u.value.has(ee.player_id)}})];if((B=m.value.personalData)!=null&&B.ageByRange&&(W=W.filter(ee=>{const re=parseInt(ee.age);return!isNaN(re)&&re>=m.value.personalData.ageByRange.min&&re<=m.value.personalData.ageByRange.max})),(V=m.value.personalData)!=null&&V.year){const ee=m.value.personalData.year;W=W.filter(re=>re.dob?parseInt(re.dob.substring(0,4))===ee:!1)}if(((w=(x=m.value.personalData)==null?void 0:x.nationalities)==null?void 0:w.length)>0){const ee=m.value.personalData.nationalities.filter(re=>re.isSelected).map(re=>re.id);ee.length>0&&(W=W.filter(re=>ee.includes(re.nationality_id)))}if(((j=(F=m.value.personalData)==null?void 0:F.positions)==null?void 0:j.length)>0){const ee=m.value.personalData.positions.filter(re=>re.isSelected).map(re=>re.id);ee.length>0&&(W=W.filter(re=>ee.includes(re.position_id)))}p.value=W;const le=new Set(y.value.map(ee=>ee.id)),va=W.filter(ee=>!le.has(ee.id));va.length>0&&(y.value=[...y.value,...va]),g.value=JSON.parse(JSON.stringify(m.value)),b.value=!1}catch(ge){console.error("Error al obtener jugadores:",ge)}finally{f.value=!1}}}catch(be){console.error("Error al procesar la búsqueda:",be),f.value=!1}}},k=B=>{u.value.has(B)?u.value.delete(B):u.value.add(B)},A=B=>{if(!B)return"-";const[V,x]=B.split(",").map(F=>F.trim());if(!x)return B;const w=V.split(" ")[0];return`${x[0]}. ${w}`},P=e.computed(()=>{if(!I.value)return p.value;const B=I.value.toLowerCase().trim();return p.value.filter(V=>V.name_full.toLowerCase().includes(B))});return{modalContent:l,currentStep:r,playlistData:n,showError:i,modalWidth:s,isLoading:c,templates:h,players:p,allPlayers:y,isLoadingPlayers:f,positions:d,closeModal:v,handleNext:M,filterButtonProps:D,filtersTypes:S,onFiltersTournamentsTops:te,tournamentsToFilter:_t,onFiltersPersonalData:me,isSearchButtonActive:b,handleSearch:_,handlePlayerSelection:k,selectedPlayers:u,hasSearched:N,searchQuery:I,filteredPlayers:P,clearSearch:()=>{I.value=""},handleCreatePlaylist:async()=>{try{const B=h.value.find(F=>F.id===n.value.position),V={user_id:t.userId,name:n.value.title,template:B,players:u.value.size>0?Array.from(u.value).map(F=>{const j=y.value.find(be=>be.id===F);return{player_id:F,name:j.name_full,position:j.position_id,dob:j.dob,team_id:j.team_id,jersey:j.jersey,nationality:j.nationality,nationality_id:j.nationality_id,is_female:j.is_female}}):[]},w=await Q.create({headers:{Authorization:`${z}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,V);(w.status===200||w.status===201)&&(a("playlist-created",w.data),v())}catch(B){console.error("Error al crear la playlist:",B)}},filterKey:G,personalDataFilter:Y,isValidPlaylistName:K,onInputTemplate:B=>{n.value.position=B.id}}}},_4={key:0,class:"modal-overlay"},C4={class:"modal-content",ref:"modalContent"},E4={class:"modal-header"},w4={class:"title-section"},k4={key:0,class:"modal-body"},V4={class:"dropdown-container"},N4={class:"selected-item"},x4={class:"available-item"},B4={key:0,class:"error-message"},F4={key:1,class:"modal-body"},T4={class:"search-section"},M4={class:"filters-row"},A4={class:"filter-container"},L4={class:"filter-container"},P4={class:"search-input"},D4={class:"players-table"},I4={class:"table-body"},v4={key:0,class:"loading-container"},R4={key:1,class:"no-results"},O4={key:2,class:"no-results"},z4={class:"cell checkbox-cell"},U4=["checked","onChange"],j4={class:"cell player-cell"},$4=["src"],H4={class:"cell team-cell"},W4=["src"],G4={class:"cell"},q4={class:"cell"},Z4={class:"cell"},Y4={class:"cell"},J4={class:"modal-footer"},K4={key:0,class:"buttons-container buttons-container-step1"},X4=["disabled"],Q4={class:"selected-players-info"},e8={class:"bold"},t8={class:"buttons-container buttons-container-step2"};function a8(t,a,o,l,r,i){const n=e.resolveComponent("GSCDropdown"),s=e.resolveComponent("GSCFilters");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",_4,[e.createElementVNode("div",C4,[e.createElementVNode("div",E4,[e.createElementVNode("div",w4,[a[9]||(a[9]=e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),e.createElementVNode("h2",null,e.toDisplayString(l.currentStep===1?"Crear nueva lista":"Agregar jugadores"),1)]),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...d)=>l.closeModal&&l.closeModal(...d))},a[10]||(a[10]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),l.currentStep===1?(e.openBlock(),e.createElementBlock("div",k4,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=d=>l.playlistData.title=d),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.createElementVNode("div",V4,[e.createVNode(n,{items:l.templates,"list-alignment":"left",height:"40px",width:"100%","background-color":"#2e3b46",arrowColor:"#fff",color:"#FFF","list-height":"200px","list-background-color":"#2E3B46","list-item-color":"#FFF","is-list-same-width":"true",hoverBackgroundColor:"#4a5b69",listItemSelectedBackgroundColor:"#576978",listBorderRadius:"5px",listBorderColor:"rgba(255, 255, 255, 0.2)","border-color":"rgba(255, 255, 255, 0.2)","border-radius":8,onInput:l.onInputTemplate},{default:e.withCtx(({selectedItem:d})=>[e.createElementVNode("div",N4,e.toDisplayString(d&&d.name&&l.playlistData.position!==0?d.name:"Selecciona un template para tu lista..."),1)]),availableItem:e.withCtx(({item:d})=>[e.createElementVNode("div",x4,e.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])]),l.showError?(e.openBlock(),e.createElementBlock("p",B4,a[11]||(a[11]=[e.createTextVNode(" Ya existe una lista con este nombre,"),e.createElementVNode("br",{class:"mobile-break"},null,-1),e.createTextVNode(" utiliza otro para poder continuar. ")]))):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",F4,[e.createElementVNode("div",T4,[e.createElementVNode("div",M4,[e.createElementVNode("div",A4,[(e.openBlock(),e.createBlock(s,{key:l.filterKey,width:"98.9%",class:"filter-mobile","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!0,"filter-type":l.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:l.tournamentsToFilter,"onUpdate:filters":l.onFiltersTournamentsTops},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"]))]),e.createElementVNode("div",L4,[(e.openBlock(),e.createBlock(s,{ref:"personalDataFilter",key:`personal-${l.filterKey}`,class:"filter-mobile","button-filter-props":l.filterButtonProps,"filter-type":l.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",width:"98.9%",season:null,"onUpdate:filters":l.onFiltersPersonalData},null,8,["button-filter-props","filter-type","onUpdate:filters"]))]),e.createElementVNode("button",{class:e.normalizeClass(["search-button",{"search-button-active":l.isSearchButtonActive}]),onClick:a[2]||(a[2]=(...d)=>l.handleSearch&&l.handleSearch(...d))}," Buscar ",2)]),e.createElementVNode("div",P4,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=d=>l.searchQuery=d),type:"text",placeholder:"Filtrar jugador por nombre"},null,512),[[e.vModelText,l.searchQuery]]),l.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:a[4]||(a[4]=(...d)=>l.clearSearch&&l.clearSearch(...d))},a[12]||(a[12]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)]))):e.createCommentVNode("",!0)])]),e.createElementVNode("div",D4,[a[14]||(a[14]=e.createElementVNode("div",{class:"table-header"},[e.createElementVNode("div",{class:"header-cell checkbox-cell"}),e.createElementVNode("div",{class:"header-cell"},"Jugadores"),e.createElementVNode("div",{class:"header-cell"},"Equipo"),e.createElementVNode("div",{class:"header-cell"},"Posición"),e.createElementVNode("div",{class:"header-cell"},"Edad"),e.createElementVNode("div",{class:"header-cell"},"Liga"),e.createElementVNode("div",{class:"header-cell"},"Minutos")],-1)),e.createElementVNode("div",I4,[l.isLoadingPlayers?(e.openBlock(),e.createElementBlock("div",v4,a[13]||(a[13]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("span",null,"Buscando jugadores...",-1)]))):l.hasSearched?!l.isLoadingPlayers&&l.players.length===0?(e.openBlock(),e.createElementBlock("div",O4," No se encontraron resultados para tu búsqueda ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.filteredPlayers,d=>(e.openBlock(),e.createElementBlock("div",{class:"table-row",key:d.id},[e.createElementVNode("div",z4,[e.createElementVNode("input",{type:"checkbox",class:"checkbox-player",checked:l.selectedPlayers.has(d.id),onChange:c=>l.handlePlayerSelection(d.id)},null,40,U4)]),e.createElementVNode("div",j4,[e.createElementVNode("img",{src:d.photo,class:"player-avatar"},null,8,$4),e.createElementVNode("span",null,e.toDisplayString(d.name),1)]),e.createElementVNode("div",H4,[e.createElementVNode("img",{src:d.team.logo,class:"team-logo"},null,8,W4)]),e.createElementVNode("div",G4,e.toDisplayString(d.position),1),e.createElementVNode("div",q4,e.toDisplayString(d.age),1),e.createElementVNode("div",Z4,e.toDisplayString(d.team.tournament),1),e.createElementVNode("div",Y4,e.toDisplayString(d.minutes_played),1)]))),128)):(e.openBlock(),e.createElementBlock("div",R4,' Haz click en "Buscar" para aplicar tus filtros '))])])])),e.createElementVNode("div",J4,[l.currentStep===1?(e.openBlock(),e.createElementBlock("div",K4,[e.createElementVNode("button",{class:"cancelar",onClick:a[5]||(a[5]=(...d)=>l.closeModal&&l.closeModal(...d))},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["siguiente",{disabled:!l.isValidPlaylistName||!l.playlistData.position}]),onClick:a[6]||(a[6]=(...d)=>l.handleNext&&l.handleNext(...d)),disabled:!l.isValidPlaylistName||!l.playlistData.position}," Siguiente ",10,X4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Q4,[l.selectedPlayers.size===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a[15]||(a[15]=e.createElementVNode("span",{class:"bold"},"No tienes",-1)),a[16]||(a[16]=e.createTextVNode(" jugadores seleccionados. "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",e8,"Tienes "+e.toDisplayString(l.selectedPlayers.size),1),e.createTextVNode(" "+e.toDisplayString(l.selectedPlayers.size===1?"jugador seleccionado":"jugadores seleccionados")+". ",1)],64))]),e.createElementVNode("div",t8,[e.createElementVNode("button",{class:"cancelar",onClick:a[7]||(a[7]=(...d)=>l.closeModal&&l.closeModal(...d))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[8]||(a[8]=(...d)=>l.handleCreatePlaylist&&l.handleCreatePlaylist(...d))}," Crear lista ")])],64))])],512)])):e.createCommentVNode("",!0)]),_:1})}const o8=Ee(S4,[["render",a8],["__scopeId","data-v-401623c9"]]),l8={name:"ModalCreatePlayList",components:{GSCDropdown:Gl},props:{isVisible:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},seasons:{type:Array,required:!0},teamId:{type:Number,required:!0},listData:{type:Object,default:null},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0}},setup(t,{emit:a}){const o=e.ref({id:0,name:"Selecciona un template para tu lista..."}),l=e.ref(0),r=e.ref(null),i=e.ref([]),n=e.ref({title:"",templateId:""}),s=e.ref(0),d=()=>{r.value&&(s.value=r.value.offsetWidth)},c=g=>{document.body.style.overflow=g?"hidden":"auto"},h="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",p=()=>{d(),t.isVisible&&c(!0)},y=()=>{n.value={title:"",templateId:""},a("close")},f=g=>{n.value.templateId=g.id},u=async()=>{var g,b;if(!(!n.value.title||!n.value.templateId))try{const N=Q.create({headers:{Authorization:`${h}`}}),I=(g=t.listData)==null?void 0:g.id;(await N.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${I}`,{user_id:t.userId,template:i.value.find(z=>z.id===n.value.templateId),name:n.value.title,id:I,players:(b=t.listData)==null?void 0:b.players})).status===200&&(a("next",n.value),y())}catch(N){console.error("Error al actualizar la lista:",N)}},m=async()=>{try{const b=await Q.create({headers:{Authorization:`${h}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${t.userTeamId}/templates?general=1`);i.value=b.data.data,i.value.unshift({id:0,name:"Selecciona un template para tu lista..."})}catch(g){console.error("Error al obtener templates:",g)}};return e.onMounted(()=>{window.addEventListener("resize",p),m()}),e.onUnmounted(()=>{window.removeEventListener("resize",p),c(!1)}),e.watch(()=>t.isVisible,g=>{g?(setTimeout(d,0),c(!0),o.value.name=t.listData.name,n.value.title=t.listData.name,o.value.id=t.listData.template,n.value.templateId=t.listData.template,l.value=i.value.findIndex(b=>b.id===n.value.templateId)):c(!1)}),{modalContent:r,playlistData:n,modalWidth:s,closeModal:y,handleNext:u,templates:i,onInputTemplate:f,selectedTemplate:o,selectedTemplateKey:l}}},i8={class:"modal-header"},r8={class:"modal-body"},n8={class:"dropdown-container"},s8={class:"selected-item"},d8={class:"available-item"},c8={class:"modal-footer"},m8={class:"buttons-container buttons-container-step1"},p8=["disabled"];function u8(t,a,o,l,r,i){const n=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:a[5]||(a[5]=(...s)=>l.closeModal&&l.closeModal(...s))},[e.createElementVNode("div",{class:"modal-content",onClick:a[4]||(a[4]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",i8,[a[7]||(a[7]=e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3214_107704)"},[e.createElementVNode("path",{d:"M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3214_107704"},[e.createElementVNode("rect",{width:"18",height:"18",fill:"white"})])])]),e.createElementVNode("h2",null,"Editar lista")],-1)),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>l.closeModal&&l.closeModal(...s))},a[6]||(a[6]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),e.createElementVNode("div",r8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>l.playlistData.title=s),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.createElementVNode("div",n8,[e.createVNode(n,{items:l.templates,"list-alignment":"left",height:"40px",width:"100%","background-color":"#2e3b46",arrowColor:"#fff",color:"#FFF","list-height":"200px","list-background-color":"#2E3B46","list-item-color":"#FFF","is-list-same-width":"true",hoverBackgroundColor:"#4a5b69",listItemSelectedBackgroundColor:"#576978",listBorderRadius:"5px",listBorderColor:"rgba(255, 255, 255, 0.2)","border-color":"rgba(255, 255, 255, 0.2)","border-radius":8,onInput:l.onInputTemplate,defaultItemByIndex:l.selectedTemplateKey},{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",s8,e.toDisplayString(s&&s.name&&l.playlistData.position!==0?s.name:"Selecciona un template para tu lista..."),1)]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",d8,e.toDisplayString(s.name),1)]),_:1},8,["items","onInput","defaultItemByIndex"])])]),e.createElementVNode("div",c8,[e.createElementVNode("div",m8,[e.createElementVNode("button",{class:"cancelar",onClick:a[2]||(a[2]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[3]||(a[3]=(...s)=>l.handleNext&&l.handleNext(...s)),disabled:!l.playlistData.title||!l.playlistData.templateId}," Guardar ",8,p8)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const f8=Ee(l8,[["render",u8],["__scopeId","data-v-b20b2a58"]]),h8={name:"ModalCreatePlayList",components:{GSCFilters:jl},props:{isVisible:{type:Boolean,default:!1},seasons:{type:Array,required:!0},teamId:{type:Number,required:!0},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0},listId:{type:Number,required:!0}},setup(t,{emit:a}){const o=e.ref($l()),l=e.ref(null),r=e.ref(2),i=e.ref({title:"",position:""}),n=e.ref(0),s=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"]]),d=e.ref(!1),c=e.ref([]),h=e.ref([]),p=e.ref([]),y=e.ref(!1),f=e.ref(new Set),u=e.ref({tournaments:[],personalData:[]}),m=e.ref(null),g=e.ref(!0),b=e.ref(!1),N=e.ref(""),I=e.ref(0),G="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",z=()=>{l.value&&(n.value=l.value.offsetWidth)},q=L=>{document.body.style.overflow=L?"hidden":"auto"},Z=e.ref(null),Y=()=>{z(),t.isVisible&&q(!0)},oe=()=>{i.value={title:"",position:""},Z.value&&(Z.value.clearFilters(se.ALL),Z.value.clearFilters(se.AGE_RANGE),Z.value.clearFilters(se.YEAR),Z.value.clearFilters(se.NATIONALITY),Z.value.clearFilters(se.POSITION)),_t.forEach(L=>{L.isSelected=L.name==="Liga MX",L.seasons.forEach(U=>{U.isSelected=L.name==="Liga MX"})}),f.value.clear(),I.value++,N.value="",b.value=!1,g.value=!0,m.value=null,h.value=[],p.value=[],a("close")},v=()=>{if(r.value===1){if(!i.value.title||!i.value.position)return;r.value=2,g.value=!0,m.value=null}},M=async()=>{try{d.value=!0;const U=await Q.create({headers:{Authorization:`${G}`}}).get("https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/templates");c.value=U.data.data}catch(L){console.error("Error al cargar templates:",L)}finally{d.value=!1}};e.onMounted(()=>{M(),window.addEventListener("resize",Y)}),e.onUnmounted(()=>{window.removeEventListener("resize",Y),q(!1)}),e.watch(()=>t.isVisible,L=>{L?(setTimeout(z,0),q(!0),setTimeout(()=>{g.value=!0,m.value=null,me()},100)):q(!1)});const R=e.computed(()=>({...o.value})),D=async L=>{u.value.tournaments=L,te()},K=async L=>{u.value.personalData=L,te()},te=()=>{if(!m.value){g.value=!0;return}const L=JSON.stringify(u.value)!==JSON.stringify(m.value);g.value=L},me=async()=>{var L,U,O,B,V,x;if(g.value){b.value=!0;try{const w=u.value.tournaments.find(F=>F.isSelected===!0);if(w&&w.seasons.length>0){const F=w.seasons[0];y.value=!0,h.value=[];try{let ge=[...(await Q.create({headers:{Authorization:`${G}`}}).get(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${F.id}`)).data.players.map(W=>{var le;return{id:W.player_id,name:_(W.player_name),name_full:W.player_name,photo:W.player_photo||"https://golstatsimages.blob.core.windows.net/players-profile/default.png",position:s.get(W.position_id)||"No especificada",position_id:W.position_id||0,age:W.age||"-",dob:W.dob||"-",jersey:W.jersey||0,nationality:W.nationality||"",is_female:W.is_female,nationality_id:W.nationality_id||0,minutes_played:W.minutes_played||0,team_id:W.team_id,team:{logo:`https://golstatsimages.blob.core.windows.net/teams-80/${W.team_id}.png`,shortName:((le=W.team)==null?void 0:le.shortName)||"-",tournament:w.name||"No especificada"},isSelected:f.value.has(W.player_id)}})];if((L=u.value.personalData)!=null&&L.ageByRange&&(ge=ge.filter(W=>{const le=parseInt(W.age);return!isNaN(le)&&le>=u.value.personalData.ageByRange.min&&le<=u.value.personalData.ageByRange.max})),(U=u.value.personalData)!=null&&U.year){const W=u.value.personalData.year;ge=ge.filter(le=>le.dob?parseInt(le.dob.substring(0,4))===W:!1)}if(((B=(O=u.value.personalData)==null?void 0:O.nationalities)==null?void 0:B.length)>0){const W=u.value.personalData.nationalities.filter(le=>le.isSelected).map(le=>le.id);W.length>0&&(ge=ge.filter(le=>W.includes(le.nationality_id)))}if(((x=(V=u.value.personalData)==null?void 0:V.positions)==null?void 0:x.length)>0){const W=u.value.personalData.positions.filter(le=>le.isSelected).map(le=>le.id);W.length>0&&(ge=ge.filter(le=>W.includes(le.position_id)))}h.value=ge;const Yl=new Set(p.value.map(W=>W.id)),Ia=ge.filter(W=>!Yl.has(W.id));Ia.length>0&&(p.value=[...p.value,...Ia]),m.value=JSON.parse(JSON.stringify(u.value)),g.value=!1}catch(j){console.error("Error al obtener jugadores:",j)}finally{y.value=!1}}}catch(w){console.error("Error al procesar la búsqueda:",w),y.value=!1}}},T=L=>{f.value.has(L)?f.value.delete(L):f.value.add(L)},_=L=>{if(!L)return"-";const[U,O]=L.split(",").map(V=>V.trim());if(!O)return L;const B=U.split(" ")[0];return`${O[0]}. ${B}`};e.watch(r,L=>{L===2&&(b.value=!1,g.value=!0,m.value=null)});const k=e.computed(()=>{if(!N.value)return h.value;const L=N.value.toLowerCase().trim();return h.value.filter(U=>U.name_full.toLowerCase().includes(L))});return{modalContent:l,currentStep:r,playlistData:i,modalWidth:n,isLoading:d,templates:c,players:h,allPlayers:p,isLoadingPlayers:y,positions:s,closeModal:oe,handleNext:v,filterButtonProps:R,filtersTypes:S,onFiltersTournamentsTops:D,tournamentsToFilter:_t,onFiltersPersonalData:K,isSearchButtonActive:g,handleSearch:me,handlePlayerSelection:T,selectedPlayers:f,hasSearched:b,searchQuery:N,filteredPlayers:k,clearSearch:()=>{N.value=""},handleCreatePlaylist:async()=>{try{const L={user_id:t.userId,id:t.listId,players:Array.from(f.value).map(B=>{const V=p.value.find(x=>x.id===B);return{player_id:B,name:V.name_full,position:V.position_id,dob:V.dob,team_id:V.team_id,jersey:V.jersey,nationality:V.nationality,nationality_id:V.nationality_id,is_female:V.is_female}})},O=await Q.create({headers:{Authorization:`${G}`}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${t.listId}/players`,L);(O.status===200||O.status===201)&&(a("playlist-created",O.data),oe())}catch(L){console.error("Error al agregar jugadores a la lista:",L)}},filterKey:I,personalDataFilter:Z}}},y8={key:0,class:"modal-overlay"},g8={class:"modal-header"},b8={class:"title-section"},S8={key:0,class:"modal-body"},_8=["value"],C8={key:1,disabled:""},E8={key:1,class:"modal-body"},w8={class:"search-section"},k8={class:"filters-row"},V8={class:"filter-container"},N8={class:"filter-container"},x8={class:"search-input"},B8={class:"players-table"},F8={class:"table-body"},T8={key:0,class:"loading-container"},M8={key:1,class:"no-results"},A8={key:2,class:"no-results"},L8={class:"cell checkbox-cell"},P8=["checked","onChange"],D8={class:"cell player-cell"},I8=["src"],v8={class:"cell team-cell"},R8=["src"],O8={class:"cell"},z8={class:"cell"},U8={class:"cell"},j8={class:"cell"},$8={class:"modal-footer"},H8={key:0,class:"buttons-container buttons-container-step1"},W8=["disabled"],G8={class:"selected-players-info"},q8={class:"bold"},Z8={class:"buttons-container buttons-container-step2"},Y8=["disabled"];function J8(t,a,o,l,r,i){const n=e.resolveComponent("GSCFilters");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",y8,[e.createElementVNode("div",{class:"modal-content",onClick:a[10]||(a[10]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",g8,[e.createElementVNode("div",b8,[a[11]||(a[11]=e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),e.createElementVNode("h2",null,e.toDisplayString(l.currentStep===1?"Crear nueva lista":"Agregar jugadores"),1)]),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>l.closeModal&&l.closeModal(...s))},a[12]||(a[12]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),l.currentStep===1?(e.openBlock(),e.createElementBlock("div",S8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>l.playlistData.title=s),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":a[2]||(a[2]=s=>l.playlistData.position=s),class:"select-position"},[a[13]||(a[13]=e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una posición para tu lista",-1)),l.isLoading?(e.openBlock(),e.createElementBlock("option",C8,"Cargando templates...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.templates,s=>(e.openBlock(),e.createElementBlock("option",{key:s.id,value:s.id},e.toDisplayString(s.name),9,_8))),128))],512),[[e.vModelSelect,l.playlistData.position]])])):(e.openBlock(),e.createElementBlock("div",E8,[e.createElementVNode("div",w8,[e.createElementVNode("div",k8,[e.createElementVNode("div",V8,[(e.openBlock(),e.createBlock(n,{key:l.filterKey,width:"98.9%",class:"filter-mobile","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!0,"filter-type":l.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:l.tournamentsToFilter,"onUpdate:filters":l.onFiltersTournamentsTops},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"]))]),e.createElementVNode("div",N8,[(e.openBlock(),e.createBlock(n,{ref:"personalDataFilter",key:`personal-${l.filterKey}`,class:"filter-mobile","button-filter-props":l.filterButtonProps,"filter-type":l.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",width:"98.9%",season:null,"onUpdate:filters":l.onFiltersPersonalData},null,8,["button-filter-props","filter-type","onUpdate:filters"]))]),e.createElementVNode("button",{class:e.normalizeClass(["search-button",{"search-button-active":l.isSearchButtonActive}]),onClick:a[3]||(a[3]=(...s)=>l.handleSearch&&l.handleSearch(...s))}," Buscar ",2)]),e.createElementVNode("div",x8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[4]||(a[4]=s=>l.searchQuery=s),type:"text",placeholder:"Filtrar jugador por nombre"},null,512),[[e.vModelText,l.searchQuery]]),l.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:a[5]||(a[5]=(...s)=>l.clearSearch&&l.clearSearch(...s))},a[14]||(a[14]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)]))):e.createCommentVNode("",!0)])]),e.createElementVNode("div",B8,[a[16]||(a[16]=e.createElementVNode("div",{class:"table-header"},[e.createElementVNode("div",{class:"header-cell checkbox-cell"}),e.createElementVNode("div",{class:"header-cell"},"Jugadores"),e.createElementVNode("div",{class:"header-cell"},"Equipo"),e.createElementVNode("div",{class:"header-cell"},"Posición"),e.createElementVNode("div",{class:"header-cell"},"Edad"),e.createElementVNode("div",{class:"header-cell"},"Liga"),e.createElementVNode("div",{class:"header-cell"},"Minutos")],-1)),e.createElementVNode("div",F8,[l.isLoadingPlayers?(e.openBlock(),e.createElementBlock("div",T8,a[15]||(a[15]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("span",null,"Buscando jugadores...",-1)]))):l.hasSearched?!l.isLoadingPlayers&&l.players.length===0?(e.openBlock(),e.createElementBlock("div",A8," No se encontraron resultados para tu búsqueda ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.filteredPlayers,s=>(e.openBlock(),e.createElementBlock("div",{class:"table-row",key:s.id},[e.createElementVNode("div",L8,[e.createElementVNode("input",{type:"checkbox",class:"checkbox-player",checked:l.selectedPlayers.has(s.id),onChange:d=>l.handlePlayerSelection(s.id)},null,40,P8)]),e.createElementVNode("div",D8,[e.createElementVNode("img",{src:s.photo,class:"player-avatar"},null,8,I8),e.createElementVNode("span",null,e.toDisplayString(s.name),1)]),e.createElementVNode("div",v8,[e.createElementVNode("img",{src:s.team.logo,class:"team-logo"},null,8,R8)]),e.createElementVNode("div",O8,e.toDisplayString(s.position),1),e.createElementVNode("div",z8,e.toDisplayString(s.age),1),e.createElementVNode("div",U8,e.toDisplayString(s.team.tournament),1),e.createElementVNode("div",j8,e.toDisplayString(s.minutes_played),1)]))),128)):(e.openBlock(),e.createElementBlock("div",M8,' Haz click en "Buscar" para aplicar tus filtros '))])])])),e.createElementVNode("div",$8,[l.currentStep===1?(e.openBlock(),e.createElementBlock("div",H8,[e.createElementVNode("button",{class:"cancelar",onClick:a[6]||(a[6]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[7]||(a[7]=(...s)=>l.handleNext&&l.handleNext(...s)),disabled:!l.playlistData.title||!l.playlistData.position}," Siguiente ",8,W8)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",G8,[l.selectedPlayers.size===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a[17]||(a[17]=e.createElementVNode("span",{class:"bold"},"No tienes",-1)),a[18]||(a[18]=e.createTextVNode(" jugadores seleccionados. "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",q8,"Tienes "+e.toDisplayString(l.selectedPlayers.size),1),e.createTextVNode(" "+e.toDisplayString(l.selectedPlayers.size===1?"jugador seleccionado":"jugadores seleccionados")+". ",1)],64))]),e.createElementVNode("div",Z8,[e.createElementVNode("button",{class:"cancelar",onClick:a[8]||(a[8]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[9]||(a[9]=(...s)=>l.handleCreatePlaylist&&l.handleCreatePlaylist(...s)),disabled:l.selectedPlayers.size===0}," Agregar a lista ",8,Y8)])],64))])],512)])):e.createCommentVNode("",!0)]),_:1})}const K8=Ee(h8,[["render",J8],["__scopeId","data-v-8b8bca02"]]),X8={name:"ModalDeleteLista",data(){return{show:!1}},methods:{open(){this.show=!0},close(){this.show=!1,this.$emit("close")},handleDelete(){this.$emit("confirm-delete-lista"),this.close()}}},Q8={key:0,class:"modal-wrapper"},e6={class:"modal-overlay"},t6={class:"modal-content"},a6={class:"modal-actions"};function o6(t,a,o,l,r,i){return r.show?(e.openBlock(),e.createElementBlock("div",Q8,[e.createElementVNode("div",e6,[e.createElementVNode("div",{class:"modal-container",onClick:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",t6,[a[3]||(a[3]=e.createStaticVNode('<div class="modal-header" data-v-8403b57a><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar playlist" class="icon-trash" data-v-8403b57a><span data-v-8403b57a>Eliminar Lista</span></div><div class="separator" data-v-8403b57a></div><p class="modal-message" data-v-8403b57a> ¿Estás seguro que deseas eliminar<br data-v-8403b57a> esta lista? Si lo haces no hay manera<br data-v-8403b57a> de recuperala. </p><div class="separator" data-v-8403b57a></div>',4)),e.createElementVNode("div",a6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("close"))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.handleDelete&&i.handleDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const l6=Ee(X8,[["render",o6],["__scopeId","data-v-8403b57a"]]),i6={name:"ModalDeletePlayers",data(){return{show:!1}},methods:{open(){this.show=!0},close(){this.show=!1,this.$emit("close")},handleDelete(){this.$emit("confirm-delete"),this.close()}}},r6={key:0,class:"modal-wrapper"},n6={class:"modal-content"},s6={class:"modal-actions"};function d6(t,a,o,l,r,i){return r.show?(e.openBlock(),e.createElementBlock("div",r6,[e.createElementVNode("div",{class:"modal-overlay",onClick:a[3]||(a[3]=n=>t.$emit("close"))},[e.createElementVNode("div",{class:"modal-container",onClick:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",n6,[a[4]||(a[4]=e.createStaticVNode('<div class="modal-header" data-v-3d60eaf1><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-3d60eaf1><span data-v-3d60eaf1>Eliminar jugadores</span></div><div class="separator" data-v-3d60eaf1></div><p class="modal-message" data-v-3d60eaf1> ¿Estás seguro que deseas eliminar a<br data-v-3d60eaf1> estos jugadores de la lista? </p><div class="separator" data-v-3d60eaf1></div>',4)),e.createElementVNode("div",s6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("close"))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.handleDelete&&i.handleDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const c6=Ee(i6,[["render",d6],["__scopeId","data-v-3d60eaf1"]]),m6={name:"ModalDeletePlayers",props:{modelValue:{type:Boolean,required:!0}},methods:{confirmDelete(){this.$emit("confirm-delete"),this.$emit("update:modelValue",!1)}}},p6={key:0,class:"modal-wrapper"},u6={class:"modal-container"},f6={class:"modal-content"},h6={class:"modal-actions"};function y6(t,a,o,l,r,i){return o.modelValue?(e.openBlock(),e.createElementBlock("div",p6,[e.createElementVNode("div",{class:"modal-overlay",onClick:a[2]||(a[2]=n=>t.$emit("update:modelValue",!1))},[e.createElementVNode("div",u6,[e.createElementVNode("div",f6,[a[3]||(a[3]=e.createStaticVNode('<div class="modal-header" data-v-e9a8dd88><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-e9a8dd88><span data-v-e9a8dd88>Eliminar jugadores</span></div><div class="separator" data-v-e9a8dd88></div><p class="modal-message" data-v-e9a8dd88> ¿Estás seguro que deseas eliminar a<br data-v-e9a8dd88> estos jugadores de la lista? </p><div class="separator" data-v-e9a8dd88></div>',4)),e.createElementVNode("div",h6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("update:modelValue",!1))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.confirmDelete&&i.confirmDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const g6=Ee(m6,[["render",y6],["__scopeId","data-v-e9a8dd88"]]);function b6(t){const a=e.ref({width:0,height:0});function o(){const l=t.value.getBoundingClientRect();a.value.width=l.width,a.value.height=l.height}return e.onMounted(()=>{o(),window.addEventListener("resize",o)}),e.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Da={name:"GSCList",props:{userId:{type:Number,default:0},userTeamId:{type:Number,default:1}},components:{GridView:mr,ListView:Gn,ModalCreatePlaylist:o8,ModalEditarLista:f8,ModalAddPlayers:K8,ModalDeleteLista:l6,ModalDeletePlayers:c6,ModalDeletePlayer:g6},data(){return{modalVisible:!1,modalEditarVisible:!1,modalAddPlayersVisible:!1,modalDeleteVisible:!1,modalCompareVisible:!1,selectedListId:null,selectedListName:"",activeItem:null,activeTooltip:null,viewMode:"grid",searchText:"",tooltipY:0,listExistingNames:[],isGeneral:!1,positions: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"]]),positionsFemale:new Map([[1,"Portera"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensiva"],[8,"Volante ofensiva"],[9,"Delantera"],[10,"Desconocida"]]),token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lists:[],templates:{},showDeleteModal:!1,selectedPlayersToDelete:[],hasSelectedPlayers:!1,currentListIndex:null,selectedListData:null,statsLoaded:!1,originalOverflow:null,isScrollLocked:!1}},setup(){const t=e.ref(null),{elementSize:a}=b6(t);return{elementSize:a,myDivRefList:t}},computed:{isMobileLayout(){return this.elementSize.width<768},isCompactLayout(){return this.elementSize.width<768},searchCompact(){return this.elementSize.width<1e3},searchCloseCompact(){return this.elementSize.width<920},smallMobileCompact(){return this.elementSize.width<480},tooltipStyle(){return this.smallMobileCompact?{top:`${this.tooltipY}px`,transform:"translateX(-50%)"}:{}},filteredLists(){let t=this.lists;if(this.searchText){const a=this.searchText.toLowerCase();t=t.filter(o=>o.name.toLowerCase().includes(a))}return t.sort((a,o)=>new Date(o.originalDate)-new Date(a.originalDate))},currentTemplateCategories(){if(this.activeItem===null)return[];const t=this.lists.find(o=>o.id===this.activeItem);if(!t)return[];const a=this.templates[t.template];return!a||!a.variables?[]:a.variables.map(o=>({id:o.id,id_variable:o.custom_id,parameters:o.parameters&&(Array.isArray(o.parameters)&&o.parameters.length>0||typeof o.parameters=="object"&&Object.keys(o.parameters).length>0)?o.parameters:"no",name:o.name}))},isAnyListInDeleteMode(){return this.lists.some(t=>t.deleteActive)},isCurrentListGeneral(){if(!this.activeItem)return!1;const t=this.lists.find(a=>a.id===this.activeItem);return t?t.position.toLowerCase()==="info general":!1}},methods:{handleViewProfile(t){this.$emit("showProfile",t)},handleDeleteFromList(t){let a={player_id:t.player_id,name:t.player_name,position:t.position_name};this.handleDeletePlayer(a)},showGraph(t,a){this.$emit("showGraph",{data:t,templateId:a.template})},async fetchUserLists(){try{await this.fetchTemplates();const a=await Q.create({headers:{Authorization:`${this.token}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed`);this.listExistingNames=a.data.data.map(l=>l.name.toLowerCase());const o=a.data.data.sort((l,r)=>new Date(r.created_at)-new Date(l.created_at));this.lists=o.map(l=>{var r,i,n,s,d;return{id:l.id,name:l.name,position:((n=this.templates[((r=l.template)==null?void 0:r.id)||((i=l.template_id)==null?void 0:i.id)])==null?void 0:n.name)||"Sin template",template:((s=l.template)==null?void 0:s.id)||((d=l.template_id)==null?void 0:d.id),createdAt:this.formatDate(l.created_at),originalDate:l.created_at,deleteActive:!1,players:(l.players||[]).map(c=>({...c,position:c.is_female?this.positionsFemale.get(c.position)||"Desconocida":this.positions.get(c.position)||"Desconocida",name:c.name.split(",").map(h=>h.trim().split(" ")[0]).reverse().join(" "),photo:`https://golstatsimages.blob.core.windows.net/players-profile/${c.player_id}.png`,countryFlag:c.nationality_id?`https://golstatsimages.blob.core.windows.net/flags/${c.nationality_id}.jpg`:"",nationality:c.nationality})),playerStats:{}}})}catch(t){console.error("Error al obtener las listas:",t)}},async fetchTemplates(){try{const a=await Q.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.userTeamId}/templates?general=1`),o={};a.data.data.forEach(l=>{o[l.id]=l}),this.templates=o}catch(t){console.error("Error al obtener los templates:",t)}},getOriginalList(t){return this.lists.find(a=>a.id===t)},toggleItem(t,a){if(this.isAnyListInDeleteMode&&!this.getOriginalList(t).deleteActive){a.preventDefault();return}this.activeItem===t?this.activeItem=null:(this.lists.forEach(o=>{o.deleteActive=!1}),this.statsLoaded=!1,this.activeItem=t,this.fetchPlayerStats(t))},async fetchPlayerStats(t){try{const o=await Q.create({headers:{Authorization:`${this.token}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${t}/stats`),l=this.lists.findIndex(d=>d.id===t),r={},i={},n={};o.data.max.forEach(([d,c])=>{i[d]=parseInt(c)}),Object.entries(o.data.data).forEach(([d,c])=>{d!=="max"&&(r[d]={},c.forEach(h=>{const[p,,y,f,u]=h;r[d][p]={variable_id:p,value:y,max:i[p]||0,season:f,categories:u}}))}),Object.entries(o.data.additional_data).forEach(([d,c])=>{n[d]=c}),l!==-1&&(this.lists[l].playerStats=r,this.lists[l].additionalData=n),this.statsLoaded=!0}catch(a){console.error("Error fetching player stats:",a),this.statsLoaded=!0}},toggleViewMode(t){this.viewMode=t},toggleTooltip(t,a){this.activeTooltip===t?(this.activeTooltip=null,this.handleScroll(!1)):(this.activeTooltip!==null&&this.handleScroll(!1),this.activeTooltip=t,this.smallMobileCompact&&(this.tooltipY=a.clientY,this.handleScroll(!0))),a.stopPropagation()},editarLista(t){this.selectedListId=this.lists[t].id,this.selectedListData=this.lists[t],this.modalEditarVisible=!0,this.activeTooltip=null},closeModalEditar(){this.modalEditarVisible=!1,this.selectedListId=null},agregarJugadores(t){const a=this.filteredLists[t];this.currentListIndex=this.lists.findIndex(o=>o.id===a.id),this.selectedListId=a.id,this.modalAddPlayersVisible=!0,this.activeTooltip=null},closeModalAddPlayers(){this.modalAddPlayersVisible=!1,this.selectedListId=null},eliminarJugadores(t){const a=this.filteredLists[t];this.activeItem!==a.id&&this.toggleItem(a.id),this.lists.forEach(l=>{l.deleteActive=!1});const o=this.getOriginalList(a.id);o&&(o.deleteActive=!0),this.currentListIndex=this.lists.findIndex(l=>l.id===a.id),this.activeTooltip=null},async compararListas(t){const a=this.filteredLists[t],o=this.lists.find(r=>r.id===a.id);if(!o||!o.players){console.error("No se encontró la lista o no tiene jugadores");return}this.activeItem!==a.id&&(this.statsLoaded=!1,this.activeItem=a.id,await this.fetchPlayerStats(a.id));const l=o.players.map(r=>{var i,n,s,d,c,h,p,y,f,u;return{position:r.position,player_name:r.name,player_photo:r.photo,total:"-",id:r.player_id,player_age:this.calculateAge(r.dob),team_abrev:((n=(i=o.additionalData)==null?void 0:i[r.player_id])==null?void 0:n.team_abrev)||"-",team_name:((d=(s=o.additionalData)==null?void 0:s[r.player_id])==null?void 0:d.team_name)||"-",team_logo:`https://golstatsimages.blob.core.windows.net/teams-80/${r.team_id}.png`,position_name:r.position,player_position:r.position,player_country:Wt[`${r.nationality_id}`]||r.nationality,player_country_flag:r.countryFlag,player_games:((h=(c=o.additionalData)==null?void 0:c[r.player_id])==null?void 0:h.games_played)||0,player_min:((y=(p=o.additionalData)==null?void 0:p[r.player_id])==null?void 0:y.minutes)||0,league_name:"-",seasons:[...new Set(this.currentTemplateCategories.map(m=>{var g,b;return((b=(g=o.playerStats[r.player_id])==null?void 0:g[m.id_variable])==null?void 0:b.season)||[]}).flat())].filter(m=>m&&m!==0),season_id:((u=(f=o.additionalData)==null?void 0:f[r.player_id])==null?void 0:u.season_id)||0,stats:this.currentTemplateCategories.map(m=>{var g,b,N,I,G,z,q,Z;return{category_id:((b=(g=o.playerStats[r.player_id])==null?void 0:g[m.id_variable])==null?void 0:b.variable_id)||null,custom_category_id:((I=(N=o.playerStats[r.player_id])==null?void 0:N[m.id_variable])==null?void 0:I.variable_id)||null,name:m.name,total:((z=(G=o.playerStats[r.player_id])==null?void 0:G[m.id_variable])==null?void 0:z.value)||0,seasons:((Z=(q=o.playerStats[r.player_id])==null?void 0:q[m.id_variable])==null?void 0:Z.season)||null}})}});this.$emit("compare-players",l),this.activeTooltip=null},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},closeModalCompare(){this.modalCompareVisible=!1},eliminarLista(t){const a=this.filteredLists[t];this.selectedListId=a.id,this.selectedListName=a.name,this.$refs.deleteModal.open(),this.activeTooltip=null},closeModalDelete(){this.$refs.deleteModal.close(),this.selectedListId=null,this.selectedListName=""},closeModalDeletePlayers(){this.$refs.deleteModalPlayers.close()},closeModalDeletePlayer(){this.$refs.deleteModalPlayer.close()},async handleConfirmDeleteLista(){try{await Q.create({headers:{Authorization:`${this.token}`}}).delete(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${this.selectedListId}`);const a=this.searchText;this.lists=this.lists.filter(o=>o.id!==this.selectedListId),this.$refs.deleteModal.close(),await this.fetchUserLists(),a&&(this.searchText=a)}catch(t){console.error("Error al eliminar la lista:",t),await this.fetchUserLists()}},async handleConfirmDeletePlayers(){try{const t=this.lists[this.currentListIndex],a=t.id,o={user_id:this.userId,players:this.selectedPlayersToDelete,id:a};await Q.create({headers:{Authorization:`${this.token}`,"Content-Type":"application/json"}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${a}/players/delete`,o),t&&(t.players=t.players.filter(r=>!this.selectedPlayersToDelete.some(i=>i.player_id===r.player_id))),this.selectedPlayersToDelete=[],this.hasSelectedPlayers=!1,t&&(t.deleteActive=!1),this.$refs.deleteModalPlayers.close()}catch(t){console.error("Error al eliminar jugadores:",t)}},async handleConfirmDeletePlayer(){try{const t=this.lists.find(i=>i.id===this.activeItem);if(!t){console.error("No se encontró la lista activa");return}const a=t.id,o={user_id:this.userId,players:this.selectedPlayersToDelete,id:a};await Q.create({headers:{Authorization:`${this.token}`,"Content-Type":"application/json"}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${a}/players/delete`,o);const r=this.lists.findIndex(i=>i.id===a);if(r!==-1){const i=JSON.parse(JSON.stringify(this.lists[r]));i.players=i.players.filter(n=>!this.selectedPlayersToDelete.some(s=>s.player_id===n.player_id)),this.lists[r]=i}this.selectedPlayersToDelete=[],this.hasSelectedPlayers=!1,r!==-1&&(this.lists[r].deleteActive=!1)}catch(t){console.error("Error al eliminar jugadores:",t)}},formatDate(t){if(!t)return"";const a=new Date(t),o=a.getDate().toString().padStart(2,"0"),l=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"][a.getMonth()],r=a.getFullYear();return`${o} - ${l} - ${r}`},clearSearch(){this.searchText=""},cancelDelete(t){const a=this.filteredLists[t],o=this.getOriginalList(a.id);o&&(o.deleteActive=!1),this.hasSelectedPlayers=!1},handleShowGraph(t){this.$emit("showGraph",t)},handleSelectedPlayers(t){this.selectedPlayersToDelete=t,this.hasSelectedPlayers=t.length>0},handleSelectedPlayersToDelete(t){this.selectedPlayersToDelete=t,this.hasSelectedPlayers=t.length>0},updateSelectionStatus(t){this.hasSelectedPlayers=t},onOpenMedia(t){this.$emit("open-media",t)},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1},async handlePlaylistAddPlayer(t){try{const a=this.selectedListId,o=this.searchText;this.statsLoaded=!1,await this.fetchUserLists(),a&&(this.searchText=o,await this.$nextTick(),this.activeItem=a,await this.fetchPlayerStats(a),this.lists.find(r=>r.id===a)&&(this.filteredLists.some(i=>i.id===a)||(this.searchText=""))),this.closeModalAddPlayers()}catch(a){console.error("Error al recargar las listas:",a)}},handlePlaylistCreated(){try{this.fetchUserLists()}catch(t){console.error("Error al recargar las listas:",t)}},confirmDelete(t){if(!this.hasSelectedPlayers)return;const a=this.filteredLists[t];this.currentListIndex=this.lists.findIndex(o=>o.id===a.id),this.$refs.deleteModalPlayers.open()},handleListEdited(){this.closeModalEditar(),this.fetchUserLists()},handleScroll(t){t&&!this.isScrollLocked?(this.originalOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.documentElement.style.position="fixed",document.documentElement.style.width="100%",this.isScrollLocked=!0):!t&&this.isScrollLocked&&(document.documentElement.style.overflow="",document.body.style.overflow="",document.documentElement.style.position="",document.documentElement.style.width="",this.originalOverflow=null,this.isScrollLocked=!1)},closeTooltip(){this.activeTooltip!==null&&(this.activeTooltip=null,this.handleScroll(!1))},handleDeletePlayer(t){const a=this.lists.find(l=>l.id===this.activeItem);if(!a){console.error("No se encontró la lista activa");return}const o=a.players.find(l=>l.player_id===t.player_id);if(!o){console.error("No se encontró el jugador en la lista");return}this.userId,a.id,this.selectedPlayersToDelete=[o],this.hasSelectedPlayers=!0,this.showDeleteModal=!0},handleShowProfile(t){const a=this.lists.find(n=>n.id===this.activeItem);if(!a){console.error("No se encontró la lista activa");return}const o=a.players.find(n=>n.player_id===t.player_id);if(!o){console.error("No se encontró el jugador en la lista");return}const l=a.playerStats[o.player_id];let r=0;l&&Object.values(l).forEach(n=>{n.season!==null&&n.season!==void 0&&(r=n.season)});const i={team_id:o.team_id,player_id:o.player_id,seasons:r,season_id:t.season_id};this.$emit("showProfile",i)}},watch:{userId:{immediate:!0,handler(t){t&&t!==0&&this.fetchUserLists()}},smallMobileCompact(t){!t&&this.isScrollLocked&&this.handleScroll(!1)},activeTooltip(t){t===null&&this.isScrollLocked&&this.handleScroll(!1)},activeItem:{handler(t){this.isGeneral=this.isCurrentListGeneral}}},mounted(){const t=o=>{if(this.activeTooltip!==null){const l=document.querySelector(".tooltip-menu"),r=document.querySelector(".more-options");l&&!l.contains(o.target)&&r&&!r.contains(o.target)&&this.closeTooltip()}};document.addEventListener("click",t),this._handleGlobalClick=t;const a=o=>{o.key==="Escape"&&this.activeTooltip!==null&&this.closeTooltip()};document.addEventListener("keydown",a),this._handleEscape=a,this.fetchTemplates()},beforeUnmount(){this._handleGlobalClick&&document.removeEventListener("click",this._handleGlobalClick),this._handleEscape&&document.removeEventListener("keydown",this._handleEscape),this.isScrollLocked&&this.handleScroll(!1)}},ql=()=>{e.useCssVars(t=>({"169d2a3c":t.smallMobileCompact?"12px":"14px",bf3a9194:(t.isMobileLayout,"8px"),"558e02c6":t.isMobileLayout?"0":"8px","29f47e06":t.smallMobileCompact?"0 5px":"0 24px","54c771be":t.smallMobileCompact?"24px":"32px","029c15c8":t.smallMobileCompact?"4px":"24px","5e94eb76":t.smallMobileCompact?"16px":"20px","4afd9afe":t.smallMobileCompact?"32px":"40px","14a4c1e8":t.smallMobileCompact?"128px":"160px",a9bda8ce:t.isMobileLayout?"13px":"14px","25b40944":t.smallMobileCompact?"5px":"12px",b5c30634:t.smallMobileCompact?"4px":"0px","3bd526a8":t.searchCompact?t.isMobileLayout?t.smallMobileCompact?"calc(100% - 46px)":"calc(100% - 44px)":"88%":"93%",e81449f6:t.isMobileLayout?"-10px -15px -15px -15px":"-15px -15px","7c6c44d8":t.tooltipY+"px","9e655dc4":t.searchCompact?t.searchCloseCompact?t.isMobileLayout?t.smallMobileCompact?"2%":"1%":"2.5%":"5%":"1%","5bb54071":t.isMobileLayout?"0":"16px","2d51dbe1":t.isMobileLayout?"-12px 0px 8px 0px":"-15px -15px 15px -15px","7cf41380":t.isMobileLayout?"7px":"16px","0161a7de":(t.smallMobileCompact,"column"),"17fcce3c":t.isMobileLayout?"100%":"150px","3996347c":t.smallMobileCompact?"10px":"12px","564ba839":t.isMobileLayout?"center":"right","5bcf9df7":t.isMobileLayout?"0":"32px","5be06fb2":t.isMobileLayout?"0":"48px",b21557a8:t.isMobileLayout&&!t.smallMobileCompact?"flex":"none","655639a2":t.isMobileLayout?"auto":"32px"}))},Zl=Da.setup;Da.setup=Zl?(t,a)=>(ql(),Zl(t,a)):ql;const S6={ref:"myDivRefList",class:"gsc-list"},_6={class:"list-header"},C6={class:"list-count"},E6={class:"search-container"},w6={class:"search-box"},k6={class:"header-buttons"},V6=["disabled"],N6={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x6=["stroke"],B6=["stroke"],F6=["stroke"],T6=["stroke"],M6=["disabled"],A6={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L6=["stroke"],P6=["stroke"],D6=["stroke"],I6=["stroke"],v6=["stroke"],R6=["stroke"],O6={class:"search-container full-width"},z6={class:"search-box"},U6={class:"list-items"},j6={class:"list-name"},$6={class:"delete-mode-actions"},H6=["onClick"],W6=["disabled","onClick"],G6={key:0,class:"second-row-container"},q6={class:"delete-mode-actions"},Z6=["onClick"],Y6=["disabled","onClick"],J6={class:"delete-mode-actions mobile small"},K6=["onClick"],X6=["disabled","onClick"],Q6=["onClick"],e7={class:"header-main-row"},t7={class:"item-title"},a7={class:"item-controls"},o7={class:"tooltip-container"},l7=["onClick"],i7=["onClick"],r7=["onClick"],n7=["onClick"],s7=["onClick"],d7=["onClick"],c7={key:0,class:"separator"},m7={key:1,class:"mobile-meta-info"},p7={key:0,class:"item-content"},u7={class:"expanded-container"},f7={key:0,class:"no-results"};function h7(t,a,o,l,r,i){const n=e.resolveComponent("ModalCreatePlaylist"),s=e.resolveComponent("ModalEditarLista"),d=e.resolveComponent("ModalAddPlayers"),c=e.resolveComponent("ModalDeleteLista"),h=e.resolveComponent("ModalDeletePlayers"),p=e.resolveComponent("ModalDeletePlayer");return e.openBlock(),e.createElementBlock("div",S6,[e.createVNode(n,{isVisible:r.modalVisible,onClose:i.closeModal,seasons:[1922],"user-team-id":o.userTeamId,"team-id":2,"user-id":o.userId,"player-id":0,"position-id":9,"list-existing-names":r.listExistingNames,onPlaylistCreated:i.handlePlaylistCreated},null,8,["isVisible","onClose","user-team-id","user-id","list-existing-names","onPlaylistCreated"]),e.createVNode(s,{isVisible:r.modalEditarVisible,onClose:i.closeModalEditar,onNext:i.handleListEdited,"user-team-id":o.userTeamId,"user-id":o.userId,"list-id":r.selectedListId,"list-data":r.selectedListData},null,8,["isVisible","onClose","onNext","user-team-id","user-id","list-id","list-data"]),e.createVNode(d,{isVisible:r.modalAddPlayersVisible,onClose:i.closeModalAddPlayers,"user-id":o.userId,"list-id":r.selectedListId,onPlaylistCreated:i.handlePlaylistAddPlayer},null,8,["isVisible","onClose","user-id","list-id","onPlaylistCreated"]),e.createVNode(c,{ref:"deleteModal",onClose:i.closeModalDelete,onConfirmDeleteLista:i.handleConfirmDeleteLista},null,8,["onClose","onConfirmDeleteLista"]),e.createVNode(h,{ref:"deleteModalPlayers",onClose:i.closeModalDeletePlayers,onConfirmDelete:i.handleConfirmDeletePlayers},null,8,["onClose","onConfirmDelete"]),e.createVNode(p,{modelValue:r.showDeleteModal,"onUpdate:modelValue":a[0]||(a[0]=y=>r.showDeleteModal=y),onConfirmDelete:i.handleConfirmDeletePlayer},null,8,["modelValue","onConfirmDelete"]),r.activeTooltip!==null&&i.smallMobileCompact?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tooltip-overlay",onClick:a[1]||(a[1]=e.withModifiers(y=>r.activeTooltip=null,["stop"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",_6,[e.createElementVNode("div",{class:e.normalizeClass(["top-row",{compact:i.isCompactLayout}])},[e.createElementVNode("div",C6,e.toDisplayString(r.lists.length)+" "+e.toDisplayString(r.lists.length===1?"Lista":"Listas"),1),e.withDirectives(e.createElementVNode("div",E6,[e.createElementVNode("div",w6,[a[11]||(a[11]=e.createElementVNode("img",{class:"search-icon",src:"https://golstatsimages.blob.core.windows.net/todoelfut/search-svg.svg"},null,-1)),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[2]||(a[2]=y=>r.searchText=y),placeholder:"Buscar lista..."},null,512),[[e.vModelText,r.searchText]]),r.searchText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search-btn",onClick:a[3]||(a[3]=(...y)=>i.clearSearch&&i.clearSearch(...y))},a[10]||(a[10]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13 1L1 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M1 1L13 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):e.createCommentVNode("",!0)])],512),[[e.vShow,!i.isCompactLayout]]),e.createElementVNode("div",k6,[e.createElementVNode("button",{class:"create-list-btn",onClick:a[4]||(a[4]=(...y)=>i.openModal&&i.openModal(...y))},a[12]||(a[12]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-crear-lista.png"},null,-1),e.createTextVNode(" Crear lista ")])),e.createElementVNode("button",{class:e.normalizeClass(["view-mode-btn grid",{active:r.viewMode==="grid"}]),onClick:a[5]||(a[5]=y=>i.toggleViewMode("grid")),disabled:i.isAnyListInDeleteMode},[(e.openBlock(),e.createElementBlock("svg",N6,[e.createElementVNode("path",{d:"M10 3H3V10H10V3Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,x6),e.createElementVNode("path",{d:"M21 3H14V10H21V3Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,B6),e.createElementVNode("path",{d:"M21 14H14V21H21V14Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,F6),e.createElementVNode("path",{d:"M10 14H3V21H10V14Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,T6)]))],10,V6),e.createElementVNode("button",{class:e.normalizeClass(["view-mode-btn list",{active:r.viewMode==="list"}]),onClick:a[6]||(a[6]=y=>i.toggleViewMode("list")),disabled:i.isAnyListInDeleteMode},[(e.openBlock(),e.createElementBlock("svg",A6,[e.createElementVNode("path",{d:"M8 6H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,L6),e.createElementVNode("path",{d:"M8 12H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,P6),e.createElementVNode("path",{d:"M8 18H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,D6),e.createElementVNode("path",{d:"M3 6H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,I6),e.createElementVNode("path",{d:"M3 12H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,v6),e.createElementVNode("path",{d:"M3 18H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,R6)]))],10,M6)])],2),e.withDirectives(e.createElementVNode("div",O6,[e.createElementVNode("div",z6,[a[14]||(a[14]=e.createElementVNode("img",{class:"search-icon",src:"https://golstatsimages.blob.core.windows.net/todoelfut/search-svg.svg"},null,-1)),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[7]||(a[7]=y=>r.searchText=y),placeholder:"Buscar lista..."},null,512),[[e.vModelText,r.searchText]]),r.searchText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search-btn",onClick:a[8]||(a[8]=(...y)=>i.clearSearch&&i.clearSearch(...y))},a[13]||(a[13]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13 1L1 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M1 1L13 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):e.createCommentVNode("",!0)])],512),[[e.vShow,i.isCompactLayout]])]),e.createElementVNode("div",U6,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filteredLists,(y,f)=>(e.openBlock(),e.createElementBlock("div",{class:"list-item",key:y.id},[i.getOriginalList(y.id).deleteActive?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["delete-mode-header",{mobile:i.isMobileLayout,small:i.smallMobileCompact}])},[e.createElementVNode("div",{class:e.normalizeClass(["delete-mode-content",{mobile:i.isMobileLayout,small:i.smallMobileCompact}])},[i.isMobileLayout?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(["list-name mobile",{small:i.smallMobileCompact}])},e.toDisplayString(y.name),3),i.smallMobileCompact?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a[17]||(a[17]=e.createElementVNode("div",{class:"delete-mode-title mobile small"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",J6,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(f),["stop"])}," Cancelar ",8,K6),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(f),["stop"])}," Eliminar ",10,X6)])],64)):(e.openBlock(),e.createElementBlock("div",G6,[a[16]||(a[16]=e.createElementVNode("div",{class:"delete-mode-title"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",q6,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(f),["stop"])}," Cancelar ",8,Z6),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(f),["stop"])}," Eliminar ",10,Y6)])]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",j6,e.toDisplayString(y.name),1),a[15]||(a[15]=e.createElementVNode("div",{class:"delete-mode-title"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",$6,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(f),["stop"])}," Cancelar ",8,H6),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(f),["stop"])}," Eliminar ",10,W6)])],64))],2)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["item-header",{"mobile-layout":i.isMobileLayout,disabled:i.isAnyListInDeleteMode&&!i.getOriginalList(y.id).deleteActive}]),onClick:u=>i.toggleItem(y.id,u)},[e.createElementVNode("div",e7,[e.createElementVNode("div",t7,e.toDisplayString(y.name),1),e.createElementVNode("div",{class:e.normalizeClass(["meta-info",{"mobile-layout":i.isMobileLayout}])},[e.createElementVNode("span",null," "+e.toDisplayString(y.createdAt),1),e.createElementVNode("span",null," "+e.toDisplayString(y.position||"Sin template"),1)],2),e.createElementVNode("div",a7,[e.createElementVNode("div",o7,[e.createElementVNode("button",{class:"more-options",onClick:e.withModifiers(u=>i.toggleTooltip(f,u),["stop"])},a[18]||(a[18]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-options.png"},null,-1)]),8,l7),r.activeTooltip===f?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-menu",{mobile:i.smallMobileCompact}]),style:e.normalizeStyle(i.tooltipStyle),onClick:a[9]||(a[9]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.editarLista(f)},a[19]||(a[19]=[e.createStaticVNode('<svg width="16" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-d1a8b50b><g clip-path="url(#clip0_3214_107704)" data-v-d1a8b50b><path d="M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-d1a8b50b></path><path d="M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-d1a8b50b></path></g><defs data-v-d1a8b50b><clipPath id="clip0_3214_107704" data-v-d1a8b50b><rect width="18" height="18" fill="#CBEE6B" data-v-d1a8b50b></rect></clipPath></defs></svg> Editar lista ',2)]),8,i7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.agregarJugadores(f)},a[20]||(a[20]=[e.createElementVNode("svg",{width:"17",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1),e.createTextVNode(" Agregar jugadores ")]),8,r7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.eliminarJugadores(f)},a[21]||(a[21]=[e.createElementVNode("svg",{width:"17",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),e.createTextVNode(" Eliminar jugadores ")]),8,n7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.compararListas(f)},a[22]||(a[22]=[e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-d1a8b50b><g clip-path="url(#clip0_2936_393289)" data-v-d1a8b50b><mask id="mask0_2936_393289" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="18" height="18" data-v-d1a8b50b><path d="M0 0H18V18H0V0Z" fill="#CBEE6B" data-v-d1a8b50b></path></mask><g mask="url(#mask0_2936_393289)" data-v-d1a8b50b><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 1.28571C2.7248 1.28571 1.28571 2.7248 1.28571 4.5V13.5C1.28571 15.2752 2.7248 16.7143 4.5 16.7143H13.5C15.2752 16.7143 16.7143 15.2752 16.7143 13.5V4.5C16.7143 2.7248 15.2752 1.28571 13.5 1.28571H4.5ZM0 4.5C0 2.01471 2.01471 0 4.5 0H13.5C15.9853 0 18 2.01471 18 4.5V13.5C18 15.9853 15.9853 18 13.5 18H4.5C2.01471 18 0 15.9853 0 13.5V4.5Z" fill="#CBEE6B" data-v-d1a8b50b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.9285 4.5C11.2835 4.5 11.5714 4.78782 11.5714 5.14286V11.3051L13.0453 9.83115C13.2964 9.58009 13.7035 9.58009 13.9546 9.83115C14.2055 10.0822 14.2055 10.4892 13.9546 10.7403L11.3831 13.3118C11.1992 13.4956 10.9227 13.5505 10.6825 13.451C10.4423 13.3515 10.2856 13.1171 10.2856 12.8571V5.14286C10.2856 4.78782 10.5735 4.5 10.9285 4.5Z" fill="#CBEE6B" data-v-d1a8b50b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.31723 4.54895C7.55745 4.64845 7.71408 4.88287 7.71408 5.14288V12.8572C7.71408 13.2121 7.42626 13.5 7.07122 13.5C6.71619 13.5 6.42837 13.2121 6.42837 12.8572V6.69487L4.95436 8.16887C4.70331 8.41993 4.29628 8.41993 4.04523 8.16887C3.79417 7.91782 3.79417 7.51079 4.04523 7.25974L6.61666 4.68831C6.80052 4.50445 7.07701 4.44945 7.31723 4.54895Z" fill="#CBEE6B" data-v-d1a8b50b></path></g></g><defs data-v-d1a8b50b><clipPath id="clip0_2936_393289" data-v-d1a8b50b><rect width="18" height="18" fill="#CBEE6B" data-v-d1a8b50b></rect></clipPath></defs></svg> Comparar ',2)]),8,s7),e.createElementVNode("div",{class:"tooltip-item delete",onClick:u=>i.eliminarLista(f)},a[23]||(a[23]=[e.createElementVNode("svg",{width:"19",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M3.64583 0.894444H3.7625V0.777778V0.116667H7.90417V0.777778V0.894444H8.02083H11.55V2.21667H10.9375H10.8208V2.33333V12.4444C10.8208 12.8284 10.6778 13.1952 10.4253 13.4646C10.173 13.7337 9.83248 13.8833 9.47917 13.8833H2.1875C1.83419 13.8833 1.49369 13.7337 1.24142 13.4646C0.988898 13.1952 0.845833 12.8284 0.845833 12.4444V2.33333V2.21667H0.729167H0.116667V0.894444H3.64583ZM2.1875 2.21667H2.07083V2.33333V12.4444V12.5611H2.1875H9.47917H9.59583V12.4444V2.33333V2.21667H9.47917H2.1875ZM4.9875 10.7722H3.7625V4.00556H4.9875V10.7722ZM7.90417 10.7722H6.67917V4.00556H7.90417V10.7722Z",fill:"#CBEE6B",stroke:"#CBEE6B","stroke-width":"0.233333"})],-1),e.createTextVNode(" Eliminar lista ")]),8,d7)],6)):e.createCommentVNode("",!0)]),e.createElementVNode("i",{class:e.normalizeClass(["arrow",{"arrow-up":r.activeItem===y.id}])},a[24]||(a[24]=[e.createElementVNode("img",{width:"23",src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-collapse@2x.png"},null,-1)]),2)])]),i.isMobileLayout?(e.openBlock(),e.createElementBlock("div",c7)):e.createCommentVNode("",!0),i.isMobileLayout?(e.openBlock(),e.createElementBlock("div",m7,[e.createElementVNode("span",null," "+e.toDisplayString(y.createdAt),1),e.createElementVNode("span",null," "+e.toDisplayString(y.position||"Sin template"),1)])):e.createCommentVNode("",!0)],10,Q6),[[e.vShow,!i.getOriginalList(y.id).deleteActive]]),e.createVNode(e.Transition,{name:"expand"},{default:e.withCtx(()=>[r.activeItem===y.id?(e.openBlock(),e.createElementBlock("div",p7,[e.createElementVNode("div",u7,[e.createElementVNode("div",{class:e.normalizeClass(["expanded-content",{"list-view-margin":r.viewMode==="list"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.viewMode==="grid"?"GridView":"ListView"),{"is-general":r.isGeneral,categories:i.currentTemplateCategories,deleteActive:r.lists[f].deleteActive,players:y.players,playerStats:y.playerStats,playerAddtionalData:y.additionalData,"stats-loaded":r.statsLoaded,onShowGraph:[i.handleShowGraph,u=>i.showGraph(u,y)],onShowProfile:i.handleShowProfile,onViewProfile:i.handleViewProfile,onDeleteFromList:i.handleDeleteFromList,onChangeSelectedPlayers:i.handleSelectedPlayersToDelete,onSelectedPlayersToDelete:i.handleSelectedPlayers,onDeletePlayer:i.handleDeletePlayer,onUpdateSelection:i.updateSelectionStatus,onOpenMedia:i.onOpenMedia},null,40,["is-general","categories","deleteActive","players","playerStats","playerAddtionalData","stats-loaded","onShowGraph","onShowProfile","onViewProfile","onDeleteFromList","onChangeSelectedPlayers","onSelectedPlayersToDelete","onDeletePlayer","onUpdateSelection","onOpenMedia"]))],2)])])):e.createCommentVNode("",!0)]),_:2},1024)]))),128)),i.filteredLists.length===0&&r.searchText!=""?(e.openBlock(),e.createElementBlock("div",f7," No se encontraron listas que coincidan con tu búsqueda ")):e.createCommentVNode("",!0)])],512)}const y7=Ee(Da,[["render",h7],["__scopeId","data-v-d1a8b50b"]]),g7={class:"subcategory-group"},b7={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",g7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,l=>(e.openBlock(),e.createBlock(e.unref(J),{key:l.id,modelValue:l.isSelected,"onUpdate:modelValue":r=>l.isSelected=r,label:l.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},S7=X(b7,[["__scopeId","data-v-ae6f3d72"]]),_7={class:"filter-subcategories"},C7=Object.freeze(Object.defineProperty({__proto__:null,default:X({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",_7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"filter-subcategories__group"},[e.createVNode(S7,{subcategoryGroup:l},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ot=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),E7={class:"details__header"},w7=Ot(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),k7={class:"details__header__checkbox"},V7={class:"details__body"},N7={class:"details__body__playing-as"},x7=["onClick"],B7={class:"details__header"},F7=Ot(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),T7={class:"details__header__checkbox"},M7={class:"details__body"},A7=Ot(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),L7={class:"details__body__game-section"},P7=["onClick"],D7={class:"details__body"},I7=Ot(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),v7={class:"details__body__game-section"},R7=["onClick"],O7=Object.freeze(Object.defineProperty({__proto__:null,default:X({__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 a=t;e.useCssVars(h=>({"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(()=>a.playingAs.every(h=>h.isSelected)),l=e.computed(()=>a.gameSections.every(h=>h.isSelected)),r=e.computed(()=>a.gameSections.reduce((h,p)=>(p.value<=3?h.firstHalf.push(p):h.secondHalf.push(p),h),{firstHalf:[],secondHalf:[]})),i=e.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function n(h){h?a.playingAs.forEach(p=>{p.isSelected=!0}):a.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function s(h){a.playingAs.filter(p=>p.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function d(h){a.gameSections.filter(p=>p.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function c(h){h?a.gameSections.forEach(p=>{p.isSelected=!0}):a.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(h,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",E7,[w7,e.createElementVNode("div",k7,[e.createVNode(e.unref(J),{label:"Todos","model-value":o.value,"onUpdate:modelValue":n},null,8,["model-value"])])]),e.createElementVNode("div",V7,[e.createElementVNode("div",N7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.playingAs,(y,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>s(y)},e.toDisplayString(y.name),11,x7))),128))])]),e.createElementVNode("div",B7,[F7,e.createElementVNode("div",T7,[e.createVNode(e.unref(J),{label:"Todos","model-value":l.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",M7,[A7,e.createElementVNode("div",L7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.firstHalf,(y,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>d(y)},e.toDisplayString(y.text),11,P7))),128))])]),e.createElementVNode("div",D7,[I7,e.createElementVNode("div",v7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.secondHalf,(y,f)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${f}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>d(y)},e.toDisplayString(y.text),11,R7))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),z7={class:"filter-field"},U7=Object.freeze(Object.defineProperty({__proto__:null,default:X({__name:"FilterField",setup(t){const a=e.ref(Array.from({length:16},(l,r)=>r+1));function o(){}return(l,r)=>(e.openBlock(),e.createElementBlock("div",z7,[e.createVNode(e.unref(Jo),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Te.GSCList=y7,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|
|
10
|
+
`):" "+xl(i[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return l},adapters:Ea};function wa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ge(null,t)}function Fl(t){return wa(t),t.headers=Ce.from(t.headers),t.data=_a.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Bl.getAdapter(t.adapter||ba.adapter)(t).then(function(a){return wa(t),a.data=_a.call(t,t.transformResponse,a),a.headers=Ce.from(a.headers),a},function(a){return yl(a)||(wa(t),a&&a.response&&(a.response.data=_a.call(t,t.transformResponse,a.response),a.response.headers=Ce.from(a.response.headers))),Promise.reject(a)})}const Tl="1.8.4",At={};["object","boolean","number","function","string","symbol"].forEach((t,a)=>{At[t]=function(o){return typeof o===t||"a"+(a<1?"n ":" ")+t}});const Ml={};At.transitional=function(t,a,o){function l(r,i){return"[Axios v"+Tl+"] Transitional option '"+r+"'"+i+(o?". "+o:"")}return(r,i,n)=>{if(t===!1)throw new $(l(i," has been removed"+(a?" in "+a:"")),$.ERR_DEPRECATED);return a&&!Ml[i]&&(Ml[i]=!0,console.warn(l(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(r,i,n):!0}},At.spelling=function(t){return(a,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function Df(t,a,o){if(typeof t!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const l=Object.keys(t);let r=l.length;for(;r-- >0;){const i=l[r],n=a[i];if(n){const s=t[i],d=s===void 0||n(s,i,t);if(d!==!0)throw new $("option "+i+" must be "+d,$.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}}const Lt={assertOptions:Df,validators:At},ke=Lt.validators;class Pt{constructor(a){this.defaults=a,this.interceptors={request:new pl,response:new pl}}async request(a,o){try{return await this._request(a,o)}catch(l){if(l instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{l.stack?i&&!String(l.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(l.stack+=`
|
|
11
|
+
`+i):l.stack=i}catch{}}throw l}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ie(this.defaults,o);const{transitional:l,paramsSerializer:r,headers:i}=o;l!==void 0&&Lt.assertOptions(l,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean)},!1),r!=null&&(k.isFunction(r)?o.paramsSerializer={serialize:r}:Lt.assertOptions(r,{encode:ke.function,serialize:ke.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Lt.assertOptions(o,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let n=i&&k.merge(i.common,i[o.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),o.headers=Ce.concat(n,i);const s=[];let d=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(d=d&&u.synchronous,s.unshift(u.fulfilled,u.rejected))});const c=[];this.interceptors.response.forEach(function(u){c.push(u.fulfilled,u.rejected)});let f,p=0,y;if(!d){const u=[Fl.bind(this),void 0];for(u.unshift.apply(u,s),u.push.apply(u,c),y=u.length,f=Promise.resolve(o);p<y;)f=f.then(u[p++],u[p++]);return f}y=s.length;let h=o;for(p=0;p<y;){const u=s[p++],m=s[p++];try{h=u(h)}catch(g){m.call(this,g);break}}try{f=Fl.call(this,h)}catch(u){return Promise.reject(u)}for(p=0,y=c.length;p<y;)f=f.then(c[p++],c[p++]);return f}getUri(a){a=Ie(this.defaults,a);const o=_l(a.baseURL,a.url,a.allowAbsoluteUrls);return ml(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(t){Pt.prototype[t]=function(a,o){return this.request(Ie(o||{},{method:t,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(t){function a(o){return function(l,r,i){return this.request(Ie(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:r}))}}Pt.prototype[t]=a(),Pt.prototype[t+"Form"]=a(!0)});const Dt=Pt;class ka{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const l=this;this.promise.then(r=>{if(!l._listeners)return;let i=l._listeners.length;for(;i-- >0;)l._listeners[i](r);l._listeners=null}),this.promise.then=r=>{let i;const n=new Promise(s=>{l.subscribe(s),i=s}).then(r);return n.cancel=function(){l.unsubscribe(i)},n},a(function(r,i,n){l.reason||(l.reason=new Ge(r,i,n),o(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const a=new AbortController,o=l=>{a.abort(l)};return this.subscribe(o),a.signal.unsubscribe=()=>this.unsubscribe(o),a.signal}static source(){let a;return{token:new ka(function(o){a=o}),cancel:a}}}const If=ka;function Rf(t){return function(a){return t.apply(null,a)}}function vf(t){return k.isObject(t)&&t.isAxiosError===!0}const Va={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(Va).forEach(([t,a])=>{Va[a]=t});const Of=Va;function Al(t){const a=new Dt(t),o=Ko(Dt.prototype.request,a);return k.extend(o,Dt.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(l){return Al(Ie(t,l))},o}const se=Al(ba);se.Axios=Dt,se.CanceledError=Ge,se.CancelToken=If,se.isCancel=yl,se.VERSION=Tl,se.toFormData=Nt,se.AxiosError=$,se.Cancel=se.CanceledError,se.all=function(t){return Promise.all(t)},se.spread=Rf,se.isAxiosError=vf,se.mergeConfig=Ie,se.AxiosHeaders=Ce,se.formToJSON=t=>fl(k.isHTMLForm(t)?new FormData(t):t),se.getAdapter=Bl.getAdapter,se.HttpStatusCode=Of,se.default=se;const lt=se,Na={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,a)=>1981+a).sort((t,a)=>a-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"}]},zf={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"},Uf={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 It(t){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},It(t)}function Ne(t){if(t===null||t===!0||t===!1)return NaN;var a=Number(t);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function ie(t,a){if(a.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+a.length+" present")}function te(t){ie(1,arguments);var a=Object.prototype.toString.call(t);return t instanceof Date||It(t)==="object"&&a==="[object Date]"?new Date(t.getTime()):typeof t=="number"||a==="[object Number]"?new Date(t):((typeof t=="string"||a==="[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 jf(t,a){ie(2,arguments);var o=te(t),l=Ne(a);return isNaN(l)?new Date(NaN):(l&&o.setDate(o.getDate()+l),o)}function $f(t,a){ie(2,arguments);var o=te(t),l=Ne(a);if(isNaN(l))return new Date(NaN);if(!l)return o;var r=o.getDate(),i=new Date(o.getTime());i.setMonth(o.getMonth()+l+1,0);var n=i.getDate();return r>=n?i:(o.setFullYear(i.getFullYear(),i.getMonth(),r),o)}function it(t,a){if(ie(2,arguments),!a||It(a)!=="object")return new Date(NaN);var o=a.years?Ne(a.years):0,l=a.months?Ne(a.months):0,r=a.weeks?Ne(a.weeks):0,i=a.days?Ne(a.days):0,n=a.hours?Ne(a.hours):0,s=a.minutes?Ne(a.minutes):0,d=a.seconds?Ne(a.seconds):0,c=te(t),f=l||o?$f(c,l+o*12):c,p=i||r?jf(f,i+r*7):f,y=s+n*60,h=d+y*60,u=h*1e3,m=new Date(p.getTime()+u);return m}function Ll(t){var a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),t.getTime()-a.getTime()}function Pl(t){ie(1,arguments);var a=te(t);return a.setHours(0,0,0,0),a}var Hf=864e5;function Wf(t,a){ie(2,arguments);var o=Pl(t),l=Pl(a),r=o.getTime()-Ll(o),i=l.getTime()-Ll(l);return Math.round((r-i)/Hf)}function qe(t,a){ie(2,arguments);var o=te(t),l=te(a),r=o.getTime()-l.getTime();return r<0?-1:r>0?1:r}var Gf=6e4,qf=36e5;function Zf(t,a){ie(2,arguments);var o=te(t),l=te(a),r=o.getFullYear()-l.getFullYear(),i=o.getMonth()-l.getMonth();return r*12+i}function Yf(t,a){ie(2,arguments);var o=te(t),l=te(a);return o.getFullYear()-l.getFullYear()}function Dl(t,a){var o=t.getFullYear()-a.getFullYear()||t.getMonth()-a.getMonth()||t.getDate()-a.getDate()||t.getHours()-a.getHours()||t.getMinutes()-a.getMinutes()||t.getSeconds()-a.getSeconds()||t.getMilliseconds()-a.getMilliseconds();return o<0?-1:o>0?1:o}function Jf(t,a){ie(2,arguments);var o=te(t),l=te(a),r=Dl(o,l),i=Math.abs(Wf(o,l));o.setDate(o.getDate()-r*i);var n=+(Dl(o,l)===-r),s=r*(i-n);return s===0?0:s}function xa(t,a){return ie(2,arguments),te(t).getTime()-te(a).getTime()}var Kf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Xf="trunc";function Ba(t){return Kf[Xf]}function Qf(t,a,o){ie(2,arguments);var l=xa(t,a)/qf;return Ba()(l)}function eh(t,a,o){ie(2,arguments);var l=xa(t,a)/Gf;return Ba()(l)}function th(t){ie(1,arguments);var a=te(t);return a.setHours(23,59,59,999),a}function ah(t){ie(1,arguments);var a=te(t),o=a.getMonth();return a.setFullYear(a.getFullYear(),o+1,0),a.setHours(23,59,59,999),a}function oh(t){ie(1,arguments);var a=te(t);return th(a).getTime()===ah(a).getTime()}function lh(t,a){ie(2,arguments);var o=te(t),l=te(a),r=qe(o,l),i=Math.abs(Zf(o,l)),n;if(i<1)n=0;else{o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-r*i);var s=qe(o,l)===-r;oh(te(t))&&i===1&&qe(t,l)===1&&(s=!1),n=r*(i-Number(s))}return n===0?0:n}function ih(t,a,o){ie(2,arguments);var l=xa(t,a)/1e3;return Ba()(l)}function rh(t,a){ie(2,arguments);var o=te(t),l=te(a),r=qe(o,l),i=Math.abs(Yf(o,l));o.setFullYear(1584),l.setFullYear(1584);var n=qe(o,l)===-r,s=r*(i-Number(n));return s===0?0:s}function nh(t){return ie(1,arguments),te(t).getFullYear()}function sh(t){ie(1,arguments);var a=te(t.start),o=te(t.end);if(isNaN(a.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(o.getTime()))throw new RangeError("End Date is invalid");var l={};l.years=Math.abs(rh(o,a));var r=qe(o,a),i=it(a,{years:r*l.years});l.months=Math.abs(lh(o,i));var n=it(i,{months:r*l.months});l.days=Math.abs(Jf(o,n));var s=it(n,{days:r*l.days});l.hours=Math.abs(Qf(o,s));var d=it(s,{hours:r*l.hours});l.minutes=Math.abs(eh(o,d));var c=it(d,{minutes:r*l.minutes});return l.seconds=Math.abs(ih(o,c)),l}const dh=new Set([1]),ch={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:a}){const o=t,l=e.ref(null);e.watch(()=>o.modelValue,()=>{r()},{immediate:!0});function r(){l.value&&(l.value.checked=o.modelValue)}function i(n){a("update:modelValue",n.target.checked)}return e.onMounted(()=>{r()}),(n,s)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:l,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},rt=K(ch,[["__scopeId","data-v-e3a6ae4e"]]),Re=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),mh={class:"personal-data"},ph={class:"personal-data__age"},uh={class:"personal-data__age__toggle"},fh={class:"personal-data__age__range"},hh={class:"personal-data__age__dropdown"},yh=Re(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),gh={class:"selected-item"},bh=Re(()=>e.createElementVNode("div",{class:"separator"},null,-1)),Sh={class:"personal-data__nationality-position"},_h={key:0,class:"personal-data__nationality-position__switch"},Ch=Re(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Eh=Re(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),wh={class:"personal-data__nationality-position__nationality"},kh=Re(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Vh={class:"selected-item"},Nh=Re(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),xh={class:"selected-item"},Bh={class:"personal-data__nationality-position__position"},Fh=Re(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),Th={class:"selected-item"},Mh="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Ah={__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},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:a,emit:o}){const l=t,r={id:0,name:"Todas las nacionalidades",isSelected:!1},i={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref({...Na}),s=e.ref(["Por edad","Por año"]),d=e.ref(0),c=e.ref({min:Na.minAge,max:Na.maxAge}),f=e.ref(et),p=e.ref(""),y=e.ref(""),h=e.ref(n.value.availableYears[n.value.availableYears.length-1]),u=e.ref(0),m=e.computed(()=>{const A=n.value.nationalities?[...n.value.nationalities]:[];l.isSeleccion&&A.forEach(P=>{P.isSelected=P.id===138});const R=A[0];return(!R||R.id!==0)&&A.unshift(r),A}),g=e.computed(()=>{let A=(l.filter&&l.filter.positions?l.filter.positions:n.value.positions)?[...n.value.positions]:[];const R=A[0];return(!R||R.id!==0)&&A.unshift(i),A.sort((P,J)=>P.id-J.id),A}),_=e.computed(()=>l.season&&l.season.tournamentId&&dh.has(l.season.tournamentId)||l.filters&&l.filters.isEligibilitySwitchVisible);e.watch(m,A=>{const R=A.reduce((P,J,ae)=>(ae!==0&&J.isSelected&&P++,P),0);R===m.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?p.value="Todas las nacionalidades":p.value=`${R} seleccionadas`,Z()},{immediate:!0,deep:!0}),e.watch(g,A=>{const R=A.reduce((P,J,ae)=>(ae!==0&&J.isSelected&&P++,P),0);R===g.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?y.value="Todas las posiciones":y.value=`${R} seleccionadas`,Z()},{immediate:!0,deep:!0}),e.watch(()=>l.filters,A=>{if(A&&A.availableYears){const R=!Number.isNaN(Number(A.selectedYear));n.value=A,d.value=n.value.selectedYear&&R?1:0,h.value=R?n.value.selectedYear:n.value.availableYears[0],c.value.min=n.value.minAge,c.value.max=n.value.maxAge,i.isSelected=A.positions.every(P=>P.isSelected),Z()}},{immediate:!0,deep:!0}),e.watch(()=>n.value.isEligibilitySelected,()=>{Z()}),e.watch(()=>l.season,A=>{A&&A.id!==u.value&&!l.awaitForFilters&&(u.value=A.id,B(A))},{immediate:!0,deep:!1});async function B(A){try{if(A&&A.id){const R=new Set,P=await G(A.id),J=new Date,ae=[],de=new Map,re=new Map;P.forEach(F=>{const L=new Date(F.dob),O=nh(L),D=sh({start:L,end:J});de.has(F.nationality_id)||de.set(F.nationality_id,{id:F.nationality_id,isSelected:!0,name:zf[`${F.nationality_id}`]}),re.has(F.position_id)||re.set(F.position_id,{id:F.position_id,isSelected:!0,name:Uf[`${F.position_id}`]}),R.add(O),ae.push(D.years)}),n.value.minAge=Math.min(...ae),n.value.maxAge=Math.max(...ae),n.value.availableYears=[...R].sort((F,L)=>L-F),h.value=n.value.availableYears[0],n.value.nationalities=[...de.values()],n.value.positions=[...re.values()],c.value.min=n.value.minAge,c.value.max=n.value.maxAge}}catch(R){throw new Error(R)}}function I(A=null){const R=!A||A===ce.All;(R||A===ce.NATIONALITY)&&m.value.forEach(P=>{P.isSelected=!0}),(R||A===ce.ELIGIBILITY)&&(n.value.isEligibilitySelected=!1),(R||A===ce.POSITION)&&g.value.forEach(P=>{P.isSelected=!0}),(R||A===ce.AGE_RANGE)&&(c.value.min=n.value.minAge,c.value.max=n.value.maxAge,d.value=0),(R||A===ce.YEAR)&&(h.value=l.isScouting?n.value.availableYears[n.value.availableYears.length-1]:n.value.availableYears[0],d.value=0),Z()}async function G(A){try{const R={Authorization:localStorage.getItem("user_token")||l.token},P={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Mh,J=await lt.get(P+A,{headers:R});return J.data?J.data.players:[]}catch(R){return Promise.reject(R)}}function z(A){d.value=A.index,l.filters&&l.filters.availableYears&&A.index===0&&(l.filters.selectedYear="Sin límite")}function H(A){c.value.min=A.minValue,c.value.max=A.maxValue,Z()}function q(A,R){R.id===0?m.value.forEach(P=>{P.isSelected=A}):(R.isSelected=A,m.value[0].isSelected=m.value.every((P,J)=>J===0?!0:P.isSelected))}function Z(){const A=d.value===0,R={};A?(R.ageByRange=c.value,R.ageLimits={min:n.value.minAge,max:n.value.maxAge}):R.year=h.value,n.value.isEligibilitySelected?R.eligibility=[...n.value.eligibility]:R.nationalities=m.value.reduce((P,J,ae)=>(ae!==0&&P.push({...J}),P),[]),R.positions=g.value.reduce((P,J,ae)=>(ae!==0&&P.push({...J}),P),[]),o("update:filters",R)}function oe(A,R){R.id===0?g.value.forEach(P=>{P.isSelected=A}):(R.isSelected=A,g.value[0].isSelected=g.value.every((P,J)=>J===0?!0:P.isSelected))}function v(A){h.value=A,l.filters&&(l.filters.selectedYear=A),Z()}return a({onClearFilters:I}),(A,R)=>(e.openBlock(),e.createElementBlock("div",mh,[e.createElementVNode("div",ph,[e.createElementVNode("div",uh,[e.createVNode(ru,{"selected-button-index":d.value,buttons:s.value,width:"220px",onChange:z},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",fh,[e.createVNode(e.unref($o),{"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":n.value.minAge,"max-limit":n.value.maxAge,"min-value":c.value.min,"max-value":c.value.max,onInput:H},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,d.value===0]]),e.withDirectives(e.createElementVNode("div",hh,[yh,e.createVNode(e.unref(Be),e.mergeProps({"model-value":h.value},f.value,{items:n.value.availableYears,onInput:v}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",gh,e.toDisplayString(P),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,e.toDisplayString(P),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,d.value===1]])]),bh,e.createElementVNode("div",Sh,[_.value?(e.openBlock(),e.createElementBlock("div",_h,[Ch,e.createVNode(rt,{modelValue:n.value.isEligibilitySelected,"onUpdate:modelValue":R[0]||(R[0]=P=>n.value.isEligibilitySelected=P)},null,8,["modelValue"]),Eh])):e.createCommentVNode("",!0),e.createElementVNode("div",wh,[n.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Nh,e.createVNode(e.unref(Be),e.mergeProps(f.value,{"is-multiple-option":"",items:n.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",xh,e.toDisplayString(P.name),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":P.isSelected,label:P.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},[kh,e.createVNode(e.unref(Be),e.mergeProps(f.value,{"is-multiple-option":"",items:m.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Vh,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":P.isSelected,label:P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":J=>q(J,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Bh,[Fh,e.createVNode(e.unref(Be),e.mergeProps(f.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Th,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.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(y.value),1)],64))])]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Y),{"model-value":P.isSelected,label:t.isFemale?P.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":J=>oe(J,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},Lh=K(Ah,[["__scopeId","data-v-23130339"]]),Ph={class:"plays"},Dh={class:"plays__body__offensive"},Ih={class:"plays__body__title"},Rh={class:"number-of-categories"},vh={class:"plays__body__categories"},Oh={class:"plays__body__defensive-possession-offenses"},zh={class:"plays__body__title"},Uh={class:"number-of-categories"},jh={class:"plays__body__categories"},$h={class:"plays__body__title"},Hh={class:"number-of-categories"},Wh={class:"plays__body__categories"},Gh={class:"plays__body__title"},qh={class:"number-of-categories"},Zh={class:"plays__body__categories"},Yh={__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 a=t,o=e.ref(!1),l=e.ref(!1),r=e.ref(!1),i=e.ref(!1),n=e.computed(()=>({"--template-columns":a.isExpansionMode?"1fr":"1fr 1fr"})),s=e.computed(()=>a.playsCategories.offensive.categories.reduce((h,u)=>(u.isSelected&&h++,h),0)),d=e.computed(()=>a.playsCategories.defensive.categories.reduce((h,u)=>(u.isSelected&&h++,h),0)),c=e.computed(()=>a.playsCategories.possession.categories.reduce((h,u)=>(u.isSelected&&h++,h),0)),f=e.computed(()=>a.playsCategories.offenses.categories.reduce((h,u)=>(u.isSelected&&h++,h),0));function p(h,u){u.isSelected=h}function y(h){h==="offensive"?o.value=!o.value:h==="defensive"?l.value=!l.value:h==="possession"?r.value=!r.value:h==="offenses"&&(i.value=!i.value)}return(h,u)=>(e.openBlock(),e.createElementBlock("div",Ph,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",Dh,[e.createElementVNode("div",Ih,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[0]||(u[0]=m=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",Rh,"("+e.toDisplayString(s.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[1]||(u[1]=m=>y("offensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",vh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(Y),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",Oh,[e.createElementVNode("div",zh,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[2]||(u[2]=m=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",Uh,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[3]||(u[3]=m=>y("defensive"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",jh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(Y),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]]),e.createElementVNode("div",$h,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[4]||(u[4]=m=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",Hh,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[5]||(u[5]=m=>y("possession"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(Y),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]]),e.createElementVNode("div",Gh,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[6]||(u[6]=m=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",qh,"("+e.toDisplayString(f.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[7]||(u[7]=m=>y("offenses"))},[e.withDirectives(e.createVNode(Pe,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Zh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(Y),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>p(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]])])],4)]))}},Jh=K(Yh,[["__scopeId","data-v-364e6cae"]]),Kh={class:"template-results"},Xh={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:a}){const o=t,l=e.computed(()=>o.resultsFilters.results.filter(r=>r.isSelected).length);return e.watch(()=>o.resultsFilters,r=>{a("update:resultsFilters",r)},{deep:!0,immediate:!0}),(r,i)=>(e.openBlock(),e.createElementBlock("div",Kh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"template-results__result"},[e.createVNode(e.unref(Y),{modelValue:n.isSelected,"onUpdate:modelValue":d=>n.isSelected=d,label:n.name,"avoid-interaction":l.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},Qh=K(Xh,[["__scopeId","data-v-453e89c2"]]),e0={__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:a}){const o=t,l=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 r(){a("click")}return(i,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(l.value),onClick:r},e.toDisplayString(t.text),7))}},nt=K(e0,[["__scopeId","data-v-9688933e"]]),t0={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Il={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},a0={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},o0={4:"OF",5:"Cf",6:"S",7:"F"};function Fa(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const l0={class:"dropdown"},i0={class:"selected-item"},r0={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",l0,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",i0,e.toDisplayString(t.itemTextKey?i[t.itemTextKey]:i),1)]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?i[t.itemTextKey]:i),1)]),_:1},16,["is-list-same-width","items"])]))}},fe=K(r0,[["__scopeId","data-v-064d5f86"]]),n0={class:"dropdown"},s0={class:"game-item"},d0={key:0,class:"item-game"},c0={class:"match-day"},m0={class:"team-logo"},p0=["src"],u0={class:"text"},f0={class:"text score"},h0={class:"text"},y0={class:"team-logo"},g0=["src"],b0={class:"item-game"},S0={class:"team-logo"},_0=["src"],C0={class:"text"},E0={class:"text score"},w0={class:"text"},k0={class:"team-logo"},V0=["src"],N0={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",n0,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",s0,[i.homeTeam?(e.openBlock(),e.createElementBlock("div",d0,[e.createElementVNode("div",c0,e.toDisplayString(i.roundAbbreviation),1),e.createElementVNode("div",m0,[e.createElementVNode("img",{src:i.homeTeam.logo,alt:""},null,8,p0)]),e.createElementVNode("div",u0,e.toDisplayString(i.homeTeam.acronym),1),e.createElementVNode("div",f0,e.toDisplayString(i.score[0])+" - "+e.toDisplayString(i.score[1]),1),e.createElementVNode("div",h0,e.toDisplayString(i.awayTeam.acronym),1),e.createElementVNode("div",y0,[e.createElementVNode("img",{src:i.awayTeam.logo,alt:""},null,8,g0)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",b0,[e.createElementVNode("div",null,e.toDisplayString(i.roundAbbreviation),1),e.createElementVNode("div",S0,[e.createElementVNode("img",{src:i.homeTeam.logo,alt:""},null,8,_0)]),e.createElementVNode("div",C0,e.toDisplayString(i.homeTeam.acronym),1),e.createElementVNode("div",E0,e.toDisplayString(i.score[0])+" - "+e.toDisplayString(i.score[1]),1),e.createElementVNode("div",w0,e.toDisplayString(i.awayTeam.acronym),1),e.createElementVNode("div",k0,[e.createElementVNode("img",{src:i.awayTeam.logo,alt:""},null,8,V0)])])]),_:1},16,["items"])]))}},Rt=K(N0,[["__scopeId","data-v-7883a91e"]]),vt=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),x0={class:"container"},B0={class:"container__row"},F0={class:"container__row__wrapper"},T0=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),M0={class:"container__row__wrapper__input"},A0={class:"container__row two-items"},L0={class:"container__row__wrapper"},P0=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),D0={key:0,class:"container__row__wrapper__input"},I0={class:"container__row__wrapper"},R0=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),v0={key:0,class:"container__row__wrapper__input"},O0={class:"container__row"},z0={class:"container__row__wrapper"},U0=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),j0={key:0,class:"container__row__wrapper__input"},$0={class:"container__action"},H0={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:a}){const o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},l=e.ref(null),r=e.ref(null),i=e.ref(null),n=e.ref(null);function s(p){l.value=p,a("update:tournament",p)}function d(p){r.value=p,a("update:season",p)}function c(p){i.value=p}function f(p){n.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",x0,[e.createElementVNode("div",B0,[e.createElementVNode("div",F0,[T0,e.createElementVNode("div",M0,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:s},null,8,["items"])])])]),e.createElementVNode("div",A0,[e.createElementVNode("div",L0,[P0,l.value&&l.value.seasons?(e.openBlock(),e.createElementBlock("div",D0,[e.createVNode(fe,{items:l.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",I0,[R0,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",v0,[e.createVNode(fe,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",O0,[e.createElementVNode("div",z0,[U0,i.value&&i.value.arrayGames?(e.openBlock(),e.createElementBlock("div",j0,[e.createVNode(Rt,{items:i.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",$0,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},W0=K(H0,[["__scopeId","data-v-b63e9c84"]]),G0={class:"dropdown"},q0={class:"item-team"},Z0={class:"team-logo"},Y0=["src"],J0={class:"team-acronym"},K0={class:"item-team"},X0={class:"team-logo"},Q0=["src"],e2={class:"team-acronym"},t2={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:a}){function o(l){a("input",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",G0,[e.createVNode(e.unref(Be),e.mergeProps(e.unref(et),{items:t.items,onInput:o}),{default:e.withCtx(({selectedItem:i})=>[e.createElementVNode("div",q0,[e.createElementVNode("div",Z0,[e.createElementVNode("img",{src:i.logo,alt:""},null,8,Y0)]),e.createElementVNode("div",J0,e.toDisplayString(i.acronym),1)])]),availableItem:e.withCtx(({item:i})=>[e.createElementVNode("div",K0,[e.createElementVNode("div",X0,[e.createElementVNode("img",{src:i.logo,alt:""},null,8,Q0)]),e.createElementVNode("div",e2,e.toDisplayString(i.acronym),1)])]),_:1},16,["items"])]))}},Rl=K(t2,[["__scopeId","data-v-afd2bee8"]]),a2={class:"advanced-filters"},o2={class:"advanced-filters__buttons"},l2=["onClick"],i2={class:"advanced-filters__filters"},r2={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const a=t,o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>e9)),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>b9)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>_9)),i=[{name:"Sub categorías",component:o},{name:"Cancha",component:r},{name:"Condiciones",component:l}],n=e.ref(i[0]),s=e.computed(()=>a.selectedCategory?a.selectedCategory.subcategoryGroups||[]:[]);function d(c){n.value=c}return(c,f)=>(e.openBlock(),e.createElementBlock("div",a2,[e.createElementVNode("div",o2,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:n.value.name===p.name}]),onClick:y=>d(p)},e.toDisplayString(p.name),11,l2)),64))]),e.createElementVNode("div",i2,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value.component),{"subcategory-groups":s.value},null,8,["subcategory-groups"]))],1024))])]))}},Ta=K(r2,[["__scopeId","data-v-c62c5b9c"]]),ve=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),n2={class:"container"},s2={class:"container__row"},d2={class:"container__row__wrapper"},c2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),m2={class:"container__row__wrapper__input"},p2={class:"container__row two-items"},u2={class:"container__row__wrapper"},f2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),h2={key:0,class:"container__row__wrapper__input"},y2={class:"container__row__wrapper"},g2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),b2={key:0,class:"container__row__wrapper__input"},S2={class:"container__row"},_2={class:"container__row__wrapper"},C2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),E2={key:0,class:"container__row__wrapper__input"},w2={class:"container__row"},k2={class:"container__row__wrapper"},V2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),N2={key:0,class:"container__row__wrapper__input"},x2={class:"container__row type-and-advanced"},B2={class:"container__row__wrapper"},F2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),T2={class:"container__row__wrapper__input"},M2={class:"container__row__wrapper center"},A2=ve(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),L2={class:"container__row__wrapper__input"},P2={class:"container__row"},D2={class:"container__action"},I2={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null);e.ref(null);const n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(null),f=e.ref(!0),p=e.computed(()=>d.value?d.value.position_id===1?o.advancedFilterCategories.goalkeeper:o.advancedFilterCategories.player:[]);function y(B){r.value=B,a("update:tournament",B)}function h(B){i.value=B,a("update:season",B)}function u(B){s.value=B,a("update:team",B)}function m(B){d.value=B}function g(B){n.value=B}function _(B){c.value=B}return(B,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",n2,[e.createElementVNode("div",s2,[e.createElementVNode("div",d2,[c2,e.createElementVNode("div",m2,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",p2,[e.createElementVNode("div",u2,[f2,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",h2,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",y2,[g2,i.value&&i.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",b2,[e.createVNode(Rl,{items:i.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",S2,[e.createElementVNode("div",_2,[C2,s.value&&s.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",E2,[e.createVNode(fe,{items:s.value.arrayPlayers,itemTextKey:"player_name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",w2,[e.createElementVNode("div",k2,[V2,i.value&&i.value.mapGamesByTeam&&s.value?(e.openBlock(),e.createElementBlock("div",N2,[e.createVNode(Rt,{items:i.value.mapGamesByTeam.get(s.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",x2,[e.createElementVNode("div",B2,[F2,e.createElementVNode("div",T2,[e.createVNode(fe,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),e.createElementVNode("div",M2,[A2,e.createElementVNode("div",L2,[e.createVNode(rt,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=G=>f.value=G)},null,8,["modelValue"])])])]),e.createElementVNode("div",P2,[e.createVNode(Ta,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",D2,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},R2=K(I2,[["__scopeId","data-v-575b26b5"]]),Ze=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),v2={class:"container"},O2={class:"container__row"},z2={class:"container__row__wrapper"},U2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),j2={class:"container__row__wrapper__input"},$2={class:"container__row two-items"},H2={class:"container__row__wrapper"},W2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),G2={key:0,class:"container__row__wrapper__input"},q2={class:"container__row__wrapper"},Z2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Y2={key:0,class:"container__row__wrapper__input"},J2={class:"container__row"},K2={class:"container__row__wrapper"},X2=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Q2={key:0,class:"container__row__wrapper__input"},e3={class:"container__row type-and-advanced"},t3={class:"container__row__wrapper"},a3=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),o3={class:"container__row__wrapper__input"},l3={class:"container__row__wrapper center"},i3=Ze(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),r3={class:"container__row__wrapper__input"},n3={class:"container__row"},s3={class:"container__action"},d3={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null);e.ref(null);const n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(!0),f=e.computed(()=>o.advancedFilterCategories.team);function p(g){r.value=g,a("update:tournament",g)}function y(g){i.value=g,a("update:season",g)}function h(g){s.value=g,a("update:team",g)}function u(g){n.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",v2,[e.createElementVNode("div",O2,[e.createElementVNode("div",z2,[U2,e.createElementVNode("div",j2,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",$2,[e.createElementVNode("div",H2,[W2,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",G2,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",q2,[Z2,i.value&&i.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Y2,[e.createVNode(Rl,{items:i.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",J2,[e.createElementVNode("div",K2,[X2,i.value&&i.value.mapGamesByTeam&&s.value?(e.openBlock(),e.createElementBlock("div",Q2,[e.createVNode(Rt,{items:i.value.mapGamesByTeam.get(s.value.team_id),onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",e3,[e.createElementVNode("div",t3,[a3,e.createElementVNode("div",o3,[e.createVNode(fe,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",l3,[i3,e.createElementVNode("div",r3,[e.createVNode(rt,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=B=>c.value=B)},null,8,["modelValue"])])])]),e.createElementVNode("div",n3,[e.createVNode(Ta,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",s3,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},c3=K(d3,[["__scopeId","data-v-6d73d5e6"]]),Ye=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),m3={class:"container"},p3={class:"container__row"},u3={class:"container__row__wrapper"},f3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),h3={class:"container__row__wrapper__input"},y3={class:"container__row two-items"},g3={class:"container__row__wrapper"},b3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),S3={key:0,class:"container__row__wrapper__input"},_3={class:"container__row__wrapper"},C3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),E3={key:0,class:"container__row__wrapper__input"},w3={class:"container__row"},k3={class:"container__row__wrapper"},V3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),N3={key:0,class:"container__row__wrapper__input"},x3={class:"container__row type-and-advanced"},B3={class:"container__row__wrapper"},F3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),T3={class:"container__row__wrapper__input"},M3={class:"container__row__wrapper center"},A3=Ye(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),L3={class:"container__row__wrapper__input",style:{width:"fit-content"}},P3={class:"container__row"},D3={class:"container__action"},I3={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:a}){const o=t,l={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},r=e.ref(null),i=e.ref(null),n=e.ref(null),s=e.ref(null),d=e.ref(null),c=e.ref(!0),f=e.computed(()=>o.advancedFilterCategories.games);function p(g){r.value=g,a("update:tournament",g)}function y(g){i.value=g,a("update:season",g)}function h(g){n.value=g}function u(g){s.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",m3,[e.createElementVNode("div",p3,[e.createElementVNode("div",u3,[f3,e.createElementVNode("div",h3,[e.createVNode(fe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",y3,[e.createElementVNode("div",g3,[b3,r.value&&r.value.seasons?(e.openBlock(),e.createElementBlock("div",S3,[e.createVNode(fe,{items:r.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_3,[C3,i.value&&i.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",E3,[e.createVNode(fe,{items:i.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",w3,[e.createElementVNode("div",k3,[V3,n.value&&n.value.arrayGames?(e.openBlock(),e.createElementBlock("div",N3,[e.createVNode(Rt,{items:n.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",x3,[e.createElementVNode("div",B3,[F3,e.createElementVNode("div",T3,[e.createVNode(fe,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",M3,[A3,e.createElementVNode("div",L3,[e.createVNode(rt,{modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=B=>c.value=B)},null,8,["modelValue"])])])]),e.createElementVNode("div",P3,[e.createVNode(Ta,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",D3,[e.createVNode(nt,e.normalizeProps(e.guardReactiveProps(l)),null,16)])],64))}},R3=K(I3,[["__scopeId","data-v-6e904db8"]]),v3={class:"template-videos"},O3={class:"template-videos__header"},z3={class:"template-videos__body"},U3=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:W0,VideosPlayer:R2,VideosTeam:c3,VideosGame:R3}}),j3=Object.assign(U3,{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:a}){const o=t,l={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},r=[],i=["g-23","g-24","g-25"],n={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]}},s={player:1,team:2,goalkeeper:3},d=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),c=e.ref([]),f=e.ref(d.value[0]),p=e.ref({}),y=e.ref({}),h=e.ref({}),u=e.ref({}),m=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const _=e.ref(null);e.watch(p,F=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(L=>L.id===F.id),F.arrayMatchDays?(u.value=F.arrayMatchDays[0]||{},h.value=F.arrayTeams[0]||{}):(H(F),q(F))}),e.watch(h,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!h.value.arrayPlayers||!h.value.arrayPlayers.length)&&(h.value.arrayPlayers=p.value.mapPlayersByTeam.get(h.value.team_id))},700)});async function B(){try{c.value=await I()}catch(F){throw new Error(F)}}async function I(){try{const F={Authorization:Fa()||o.token},L={}.API_TOURNAMENTS||o.tournamentsUrl,O=await lt.get(L,{headers:F});return O.data?O.data.map(D=>({...D.tournament,seasons:D.seasons})):[]}catch(F){return Promise.reject(F)}}async function G(F,L,O=""){a("loading-data");let D=O;try{D||(D={}.API_CALENDAR_GAMES_BY_SEASON||o.gamesUrl,F.forEach((V,C)=>{D+=`${C===0?"":"&"}seasons=${V}`}));const S={Authorization:Fa()||o.token},{data:{data:M,teams:N}}=await lt.get(D,{headers:S});return{seasonsAndGames:M,seasonsAndTeams:N}}catch(S){if(L>0)return G(F,L-1,D);throw new Error(S)}finally{a("loading-data")}}async function z(F){try{const L={Authorization:Fa()||o.token},O=` ${{}.API_PLAYERS_BY_SEASON||o.playersUrl}${F.seasonId}`,D=await lt.get(O,{headers:L});return D.data?D.data.players:[]}catch(L){return Promise.reject(L)}}async function H(F){try{const{seasonsAndGames:L,seasonsAndTeams:O}=await G([F.id,...F.related_seasons.map(N=>N.id)],3),D=O.find(N=>N._id===F.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const S=D.teams.reduce((N,V)=>(p.value.arrayTeams.push(V),p.value.mapTeams.set(V.team_id,{name:V.colloquial_name,acronym:V.acronym,logo:V.logo,id:V.team_id}),N.set(V.team_id,V),N),new Map);h.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const M=Array.from(L.reduce((N,V)=>(V.games.forEach(C=>{if(C.game_status===1&&C.has_video){(!p.value.maxGameId||C.game_id>p.value.maxGameId)&&(p.value.maxGameId=C.game_id);let x=C.matchday_abbreviation.replace("M","J"),E=C.matchday_abbreviation.replace("M","Jornada ");const T=C.matchday_abbreviation.replace("M","");V.season_type===0?y.value.tournament_type===1&&(C.seasonId===881?(x=o0[T]||x,E=a0[T]||E):(x=Il[C.matchday_abbreviation]?C.matchday_abbreviation:x,E=Il[C.matchday_abbreviation]||E,x==="FINAL"&&(x="F"))):V.season_type===1?(x=t0[C.matchday_abbreviation],E=x):(x=C.matchday_abbreviation.replace("PO","R"),E="Repechaje"),C.roundAbbreviation=x,C.roundName=E,p.value.mapGames.set(C.game_id,{id:C.game_id,date:C.date,dateTimeMillis:new Date(C.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(C.home_team),awayTeam:p.value.mapTeams.get(C.visiting_team),roundAbbreviation:C.roundAbbreviation,roundName:C.roundName,score:C.score,gameResult:C.score[0]>C.score[1]?1:C.score[0]<C.score[1]?2:3,seasonId:V.season_id});const U=N.get(C.roundAbbreviation);C.numberDateTimeMillis=new Date(C.date_time_utc).getTime(),C.homeTeam=S.get(C.home_team),C.awayTeam=S.get(C.visiting_team);const be=p.value.mapGamesByTeam.get(C.home_team),ze=p.value.mapGamesByTeam.get(C.visiting_team);be?be.push(C):p.value.mapGamesByTeam.set(C.home_team,[C]),ze?ze.push(C):p.value.mapGamesByTeam.set(C.visiting_team,[C]),U?U.arrayGames.push(C):N.set(C.roundAbbreviation,{stringMatchDayAbbreviation:C.roundAbbreviation,stringMatchDayName:C.roundName,arrayGames:[C]})}}),N),new Map).values());M.reverse(),M.forEach(N=>{N.arrayGames.sort((V,C)=>V.numberDateTimeMillis-C.numberDateTimeMillis)}),p.value.arrayMatchDays=M,u.value=M[0]||{}}catch(L){throw new Error(L)}}async function q(F){try{const L=await R(F.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=L.reduce((O,D)=>{p.value.mapPlayers.set(D.player_id,{id:D.player_id,name:D.player_name,shortName:D.shortName,photo:D.player_photo,teamId:D.team_id,positionId:D.position_id});const S=O.get(D.team_id);return S?S.push(D):O.set(D.team_id,[D]),O},new Map)}catch(L){throw new Error(L)}}async function Z(){try{let F=[];m.value.isEmpty?(F=await P(),g.value={...F}):F=g.value;const L=[];if(F&&F.length){m.value=F.reduce((V,C)=>{if(C.group_id!=="g-55"){const x={idAux:C.group_id,ids:[...C.ids?C.ids:[],...C.rival_Ids?C.rival_Ids:[]],type:C.type,name:C.name,coordinatePoint:C.coordinate_point,requiresRivalTransform:i.includes(C.group_id)};x.idsAux=[...x.ids],x.subcategoryGroups=C.group_id==="g-12"?[]:oe(C,0,new Map,!1,{},x.idsAux),L.push(x),x.type.includes(s.player)&&V.player.push(x),x.type.includes(s.team)&&(x.idAux!=="g-2"&&V.games.push(x),V.team.push(x)),x.type.includes(s.goalkeeper)&&V.goalkeeper.push(x)}return V},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const O=new Map,D="Resumen",S="Todas sus jugadas",M=m.value.player.reduce((V,C)=>{const x=v(C);return x.forEach(E=>{O.set(E,C.name)}),V.push(...x),V},[]),N=m.value.goalkeeper.reduce((V,C)=>{const x=v(C);return x.forEach(E=>{O.set(E,C.name)}),V.push(...x),V},[]);m.value.games.unshift({name:D,arrayCategoriesIds:n.games,booleanIsBestPlays:!0}),m.value.team.unshift({name:D,arrayCategoriesIds:n.team,booleanIsBestPlays:!0}),m.value.player.unshift({name:D,arrayCategoriesIds:n.player.regular,booleanIsBestPlays:!0},{name:S,arrayCategoriesIds:M,booleanIsMinutesPlayed:!0}),m.value.goalkeeper.unshift({name:D,arrayCategoriesIds:n.player.goalkeeper,booleanIsBestPlays:!0},{name:S,arrayCategoriesIds:N,booleanIsMinutesPlayed:!0})}}catch(F){throw new Error(F)}}function oe(F,L=0,O=new Map,D=!1,S={},M=[]){if(!F.group_id)return;let N=O.get(L);const V=D?`${F.id_category}_r`:F.id_category;F.id_category&&M.push(F.id_category);let C={ids:[V],groupId:F.group_id,level:L,name:F.name,isSelected:!0,fatherCategories:L>0?[S]:[],idsByFatherCategory:{[F.category_father]:[V]}};if(L>0&&L===1&&(C.id=F.id_category),N&&L!==0){const x=F.group_id.charAt(F.group_id.length-1),E=N.find(T=>T.groupId.endsWith(x));E&&!r.includes(C.groupId)?(C=E,E.ids.push(V),E.fatherCategories.push(S),E.fatherCategories.forEach(T=>{T.childCategories?T.childCategories.find(U=>U.groupId===C.groupId)||T.childCategories.push(C):T.childCategories=[C]}),E.idsByFatherCategory[F.category_father]?E.idsByFatherCategory[F.category_father].push(V):E.idsByFatherCategory[F.category_father]=[V]):(C.fatherCategories.forEach(T=>{T.childCategories?T.childCategories.find(U=>U.groupId===C.groupId)||T.childCategories.push(C):T.childCategories=[C]}),N.push(C))}else L!==0&&(S.childCategories?S.childCategories.push(C):S.childCategories=[C],N=[C],O.set(L,N));if(F.categories&&F.categories.length?F.categories.forEach(x=>{oe(x,L+1,O,D,C,M)}):F.rival_categories&&F.rival_categories.length&&F.rival_categories.forEach(x=>{oe(x,L+1,O,!0,C,M)}),L===0)return Array.from(O.values())}function v(F){const L=F||F;if(L.booleanIsBestPlays)return L.arrayCategoriesIds;const O={total:[],toRemove:[]};if(L.subcategoryGroups&&L.subcategoryGroups.length?L.subcategoryGroups[0].forEach(D=>{A(D,null,O)}):(L.ids&&O.total.push(...L.ids),L.rival_ids&&L.rival_ids.forEach(D=>{O.total.push(`${D}_r`)})),O.total=O.total.reduce((D,S)=>(O.toRemove.includes(S)||D.push(S),D),[]),!F){const D=L.name.toLowerCase().includes("recibid");_.value.isRivalSubject=D,_.value.avoidCategorySingleName=D,_.value.coordinatePoint=L.coordinatePoint,_.value.requiresRivalTransform=L.requiresRivalTransform}return O.total}function A(F,L=[],O={total:[],toRemove:[]}){F.isSelected?F.childCategories?F.childCategories.forEach(D=>{const S=L?Object.entries(F.idsByFatherCategory).reduce((M,[N,V])=>(L.includes(Number(N))&&V.forEach(C=>{typeof C=="string"&&C.endsWith("_r")?M.push(Number(C.split("_")[0])):M.push(C)}),M),[]):[F.id];A(D,S,O)}):L?Object.entries(F.idsByFatherCategory).forEach(([D,S])=>{L.includes(Number(D))&&S.forEach(M=>{O.total.push(M)})}):F.level===1?Object.entries(F.idsByFatherCategory).forEach(([D,S])=>{S.forEach(M=>{O.total.push(M)})}):O.total.push(F.id):F.childCategories||F.ids.forEach(D=>{O.toRemove.push(D)})}async function R(F){try{const L=await z({seasonId:F});return L.forEach(O=>{const[D,S]=O.player_name.split(","),M=D.split(" ");let N="";for(const V of M)if(N+=` ${V}`,V.length>3)break;O.shortName=S&&D?`${S.trim().charAt(0)}.${N}`:""}),L}catch(L){return Promise.reject(L)}}async function P(){try{const F={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await lt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:F})).data||[]}catch(F){return Promise.reject(F)}}function J(F){f.value=F}function ae(F){y.value=F,p.value=F.seasons[0]}function de(F){p.value=F}function re(F){h.value=F}return B(),Z(),(F,L)=>(e.openBlock(),e.createElementBlock("div",v3,[e.createElementVNode("div",O3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,O=>(e.openBlock(),e.createBlock(nt,e.mergeProps({key:O.name},l,{text:O.name,"is-active":f.value.componentName===O.componentName,tournaments:c.value,onClick:D=>J(O)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",z3,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value.componentName),{tournaments:c.value,"advanced-filter-categories":m.value,"onUpdate:tournament":ae,"onUpdate:season":de,"onUpdate:team":re},null,40,["tournaments","advanced-filter-categories"]))])]))}}),$3=K(j3,[["__scopeId","data-v-d6f7aec8"]]),vl=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"]]),H3={class:"template-taken-corners"},W3={class:"template-taken-corners__header"},G3={class:"template-taken-corners__header__all"},q3={class:"template-taken-corners__body"},Z3={class:"template-taken-corners__body__players"},Y3={class:"template-taken-corners__body__players__player__jersey"},J3={class:"template-taken-corners__body__players__player__photo"},K3={class:"template-taken-corners__body__players__player__photo__img"},X3=["src"],Q3={class:"template-taken-corners__body__players__player__info"},ey={class:"template-taken-corners__body__players__player__info__name"},ty={class:"template-taken-corners__body__players__player__info__position"},ay={class:"template-taken-corners__body__players__player__info__position__nationality"},oy=["src"],ly={class:"template-taken-corners__body__players__player__info__position__name"},iy={class:"template-taken-corners__body__players__player__checkbox"},ry={__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:a,emit:o}){const l=t,r=e.ref(!1),i=e.ref([]),n=e.computed(()=>l.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),s=e.computed(()=>i.value.reduce((m,g)=>g.isSelected?m+1:m,0));e.watch(()=>l.takenCornersFilters,m=>{i.value=m.map(g=>{const _={...g};return(g.isSelected===void 0||g.isSelected===null)&&(_.isSelected=!0),_})},{immediate:!0,deep:!0}),e.watch(s,m=>{r.value=m===i.value.length,o("change-filters-selected",m),o("update:filters",i.value)},{immediate:!0});function d(m){return`https://golstatsimages.blob.core.windows.net/flags/${m}.jpg`}function c(m){return`https://golstatsimages.blob.core.windows.net/players-profile/${m}.png`}function f(m){let g=!1;return m.split(" ").reduce((_,B)=>(g||(B.length>3?(_=B,g=!0):_+=`${B} `),_),"").trim()}function p(m){return`${f(m.last_name)}, ${m.first_name.trim()}`}function y(m){return l.isFemale?vl.get(m.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):vl.get(m.positions[0])}function h(m){m?i.value.forEach(g=>{g.isSelected=!0}):i.value.forEach((g,_)=>{g.isSelected=_===0})}function u(){i.value.forEach(m=>{m.isSelected=!0})}return a({clearFilters:u}),(m,g)=>(e.openBlock(),e.createElementBlock("div",H3,[e.createElementVNode("div",W3,[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(n.value),5),e.createElementVNode("div",G3,[e.createVNode(e.unref(Y),{"model-value":r.value,label:"Seleccionar todos","onUpdate:modelValue":h},null,8,["model-value"])])]),e.createElementVNode("div",q3,[e.createElementVNode("div",Z3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",Y3,e.toDisplayString(_.jersey),1),e.createElementVNode("div",J3,[e.createElementVNode("div",K3,[e.createElementVNode("img",{src:c(_.player_id),alt:"player photo",width:"36",height:"36"},null,8,X3)])]),e.createElementVNode("div",Q3,[e.createElementVNode("div",ey,e.toDisplayString(p(_)),1),e.createElementVNode("div",ty,[e.createElementVNode("div",ay,[e.createElementVNode("img",{src:d(_.nationality_id),alt:"country flag"},null,8,oy)]),e.createElementVNode("div",ly,e.toDisplayString(y(_)),1)])]),e.createElementVNode("div",iy,[e.createVNode(e.unref(Y),{modelValue:_.isSelected,"onUpdate:modelValue":B=>_.isSelected=B,"avoid-interaction":s.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},ny=K(ry,[["__scopeId","data-v-763fcc54"]]),Ma={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]}]},Aa=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),sy={class:"template-how-was-corner"},dy={class:"template-how-was-corner__header"},cy=Aa(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),my={class:"template-how-was-corner__header__radio-input"},py={class:"template-how-was-corner__header__radio-input__radio"},uy=Aa(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),fy={class:"template-how-was-corner__header__radio-input"},hy={class:"template-how-was-corner__header__radio-input__radio"},yy=Aa(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),gy=["onClick"],by={class:"template-how-was-corner__content__corner-type__img"},Sy=["src","alt"],_y={class:"template-how-was-corner__content__corner-type__info"},Cy={class:"template-how-was-corner__content__corner-type__info__title"},Ey={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ma},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:a}){const o=t,l=e.ref("left"),r=e.computed(()=>o.howWasCornerFilters[o.howWasCornerFilters.cornerType]),i=e.computed(()=>r.value.filter(s=>s.isSelected).length);e.watch(()=>l.value,s=>{o.howWasCornerFilters.cornerType=s}),e.watch(()=>o.howWasCornerFilters,s=>{a("change-filters-selected",o.howWasCornerFilters[s.cornerType].reduce((d,c)=>c.isSelected?d+1:d,0)),l.value=s.cornerType,a("update:filters",s)},{deep:!0,immediate:!0});function n(s){s.isSelected&&i.value===1||(s.isSelected=!s.isSelected)}return(s,d)=>(e.openBlock(),e.createElementBlock("div",sy,[e.createElementVNode("div",dy,[cy,e.createElementVNode("div",my,[e.createElementVNode("div",py,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":d[0]||(d[0]=c=>l.value=c)},null,512),[[e.vModelRadio,l.value]]),uy])]),e.createElementVNode("div",fy,[e.createElementVNode("div",hy,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":d[1]||(d[1]=c=>l.value=c)},null,512),[[e.vModelRadio,l.value]]),yy])])]),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(r.value,(c,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":c.isSelected}]),onClick:p=>n(c)},[e.createElementVNode("div",by,[e.createElementVNode("img",{src:c.imgSrc,alt:c.title},null,8,Sy)]),e.createElementVNode("div",_y,[e.createElementVNode("div",Cy,e.toDisplayString(c.title),1)])],10,gy))),128))],2)]))}},wy=K(Ey,[["__scopeId","data-v-b7e3b8e0"]]),st=[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],Fe=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),ky={class:"template-zone"},Vy={class:"controls-zone-container"},Ny={class:"controls-zone-container-title-checkcon"},xy={class:"controls-zone-container-title-checkcon-check"},By={class:"gsc-field-img-container"},Fy={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ty=["fill"],My=["fill"],Ay=["fill"],Ly=["fill"],Py=["fill"],Dy=["fill"],Iy=["fill"],Ry=["fill"],vy=["fill"],Oy=["fill"],zy=["fill"],Uy=["fill"],jy=["fill"],$y=["fill"],Hy=["fill"],Wy=["fill"],Gy=["fill"],qy=["fill"],Zy=["fill"],Yy=["fill"],Jy=["fill"],Ky=["fill"],Xy=["fill"],Qy=["fill"],eg=["fill"],tg=["fill"],ag=["fill"],og=["fill"],lg=["fill"],ig=["fill"],rg=["fill"],ng=["fill"],sg=["fill"],dg=["fill"],cg=["fill"],mg=Fe(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),pg=Fe(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),ug=["id"],fg=Fe(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),hg=[fg],yg=["mask"],gg=Fe(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),bg=[gg],Sg=Fe(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),_g=Fe(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),Cg={class:"template-zone__total-corners"},Eg=Fe(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),wg=Fe(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),kg=[Eg,wg],Vg={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...st]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(!0),i=e.ref([]),n=e.computed(()=>new Date().getTime());e.watch(i,f=>{r.value=f.length===35}),e.watch(()=>l.zoneFilters,f=>{i.value=f},{immediate:!0,deep:!0}),e.watch(()=>i.value,f=>{o("update:filters",f),o("change-filters-selected",f.length)},{deep:!0});function s(f){f?(i.value=st,r.value=!0):(i.value=[],r.value=!1)}function d(f){i.value.includes(f)?i.value=i.value.filter(p=>p!==f):i.value.push(f),r.value=i.value.length===35}function c(){i.value=[...st]}return a({clearFilters:c}),(f,p)=>(e.openBlock(),e.createElementBlock("div",ky,[e.createElementVNode("div",Vy,[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",Ny,[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",xy,[e.createVNode(e.unref(Y),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":r.value,"onUpdate:modelValue":s},null,8,["model-value"])])])]),e.createElementVNode("div",By,[(e.openBlock(),e.createElementBlock("svg",Fy,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>d(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:i.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,Ty),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>d(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:i.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,My),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>d(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:i.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,Ay),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>d(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:i.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,Ly),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>d(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:i.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,Py),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>d(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:i.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,Dy),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>d(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:i.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,Iy),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>d(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:i.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,Ry),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>d(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:i.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,vy),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>d(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:i.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,Oy),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>d(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:i.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,zy),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>d(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:i.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,Uy),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>d(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:i.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,jy),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>d(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:i.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,$y),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>d(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:i.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,Hy),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>d(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:i.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,Wy),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>d(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:i.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,Gy),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>d(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:i.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,qy),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>d(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:i.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,Zy),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>d(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:i.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,Yy),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>d(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:i.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,Jy),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>d(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:i.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,Ky),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>d(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:i.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,Xy),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>d(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:i.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,Qy),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>d(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:i.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,eg),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>d(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:i.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,tg),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>d(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:i.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,ag),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>d(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:i.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,og),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>d(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:i.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,lg),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>d(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:i.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,ig),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>d(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:i.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,rg),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>d(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:i.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,ng),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>d(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:i.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,sg),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>d(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:i.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,dg),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>d(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:i.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,cg),mg,pg,e.createElementVNode("mask",{id:n.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},hg,8,ug),e.createElementVNode("g",{mask:`url(#${n.value})`},bg,8,yg),Sg,_g]))]),e.withDirectives(e.createElementVNode("div",Cg,kg,512),[[e.vShow,!1]])]))}},Ng=K(Vg,[["__scopeId","data-v-378bf7e2"]]),La=[{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]}],xg={class:"what-happened"},Bg={class:"what-happened__all"},Fg={class:"what-happened__filters"},Tg={key:0,class:"what-happened__filters__filter__composed"},Mg={class:"what-happened__filters__filter__composed__main"},Ag={key:1,class:"what-happened__filters__filter__single"},Lg={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...La]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:a,emit:o}){const l=t,r=e.computed(()=>l.whatHappenedFilters.reduce((h,u)=>(u.child?u.child.forEach(m=>{m.isSelected&&h++}):u.isSelected&&h++,h),0)),i=e.computed(()=>l.whatHappenedFilters.reduce((h,u)=>(u.child?h+=u.child.length:h++,h),0)),n=e.computed(()=>r.value===i.value),s=e.computed(()=>r.value===1);e.watch(()=>l.whatHappenedFilters,h=>{o("change-filters-selected",r.value),o("update:filters",h)},{deep:!0,immediate:!0});function d(h){l.whatHappenedFilters.forEach(u=>{h?(u.isSelected=h,u.child&&u.child.forEach(m=>{m.isSelected=h})):u.child?(u.isSelected=!0,u.child.forEach(m=>{m.isSelected=!0})):u.isSelected=!1})}function c(h,u){u.isSelected=h,u.child.forEach(m=>{m.isSelected=h})}function f(h,u,m){m.isSelected=h,u.isSelected=u.child.every(g=>g.isSelected)}function p(h,u){u.isSelected=h}function y(){l.whatHappenedFilters.forEach(h=>{h.child?h.child.forEach(u=>{u.isSelected=!0}):h.isSelected=!0})}return a({onResetFilters:y}),(h,u)=>(e.openBlock(),e.createElementBlock("div",xg,[e.createElementVNode("div",Bg,[e.createVNode(e.unref(Y),{label:"Todos","model-value":n.value,"box-position":"right","onUpdate:modelValue":d},null,8,["model-value"])]),e.createElementVNode("div",Fg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[m.child?(e.openBlock(),e.createElementBlock("div",Tg,[e.createElementVNode("div",Mg,[e.createVNode(e.unref(Y),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":s.value&&m.isSelected,"onUpdate:modelValue":_=>c(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.child,(_,B)=>(e.openBlock(),e.createElementBlock("div",{key:`c${B}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(Y),{"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":s.value&&_.isSelected,"onUpdate:modelValue":I=>f(I,m,_)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Ag,[e.createVNode(e.unref(Y),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":s.value&&m.isSelected,"onUpdate:modelValue":_=>p(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},Pg=K(Lg,[["__scopeId","data-v-8f375a1a"]]),Pa={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}]}},Ol=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),Dg={class:"template-results"},Ig={class:"template-results__type-switch"},Rg=Ol(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),vg=Ol(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),Og={class:"template-results__info"},zg={key:0,class:"template-results__group"},Ug={key:1,class:"template-results__group"},jg={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...Pa})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:a,emit:o}){const l=t,r=e.ref(null),i=e.computed(()=>{const d=r.value.isMoment?r.value.results.moment.filter(c=>c.isSelected).length:r.value.results.final.filter(c=>c.isSelected).length;return o("change-filters-selected",d),d}),n=e.computed(()=>r.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>l.resultsFilters,d=>{r.value===null&&(r.value={...d})},{deep:!0,immediate:!0}),e.watch(r,d=>{o("update:filters",d)},{deep:!0,immediate:!0});function s(){r.value.isMoment=!1,r.value.results.moment.forEach(d=>{d.isSelected=!0}),r.value.results.final.forEach(d=>{d.isSelected=!0})}return a({removeFilters:s}),(d,c)=>(e.openBlock(),e.createElementBlock("div",Dg,[e.withDirectives(e.createElementVNode("div",Ig,[Rg,e.createVNode(rt,{modelValue:r.value.isMoment,"onUpdate:modelValue":c[0]||(c[0]=f=>r.value.isMoment=f)},null,8,["modelValue"]),vg],512),[[e.vShow,!r.value.isMomentOnly]]),e.createElementVNode("div",Og,e.toDisplayString(n.value),1),r.value.isMoment?(e.openBlock(),e.createElementBlock("div",zg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.results.moment,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Y),{modelValue:f.isSelected,"onUpdate:modelValue":y=>f.isSelected=y,label:f.name,"avoid-interaction":i.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Ug,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.results.final,(f,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Y),{modelValue:f.isSelected,"onUpdate:modelValue":y=>f.isSelected=y,label:f.name,"avoid-interaction":i.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},$g=K(jg,[["__scopeId","data-v-ee3b28d3"]]),Hg={key:0,class:"productivity__header__text"},Wg={key:0},Gg={key:1},qg={key:2},Zg={key:1,class:"productivity__header__checkbox"},Yg={class:"templates__body"},Jg={key:0,class:"templates-plays"},Kg={key:1,class:"templates-productivity"},Xg={key:2,class:"template-field"},Qg={key:3,class:"template-details"},e4={key:4,class:"template-personal-data"},t4={key:5,class:"template-leagues"},a4={key:6,class:"template-plays"},o4={key:7,class:"template-plays"},l4={key:8,class:"template-universe"},i4={key:9,class:"template-distance"},r4={key:10,class:"template-results"},n4={key:11,class:"template-results-by-type"},s4={key:12,class:"template-games"},d4={key:13,class:"template-taken-corners"},c4={key:14,class:"template-videos"},m4={key:15,class:"template-how-was-corner"},p4={key:16,class:"template-zone"},u4={key:17,class:"template-what-happened"},f4={key:1,class:"templates__footer"},h4={class:"templates__footer__button"},y4={class:"templates__footer__button"},g4={__name:"GSC-FilterTemplates",props:{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},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+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}},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:a,emit:o}){const l=t,r=e.ref(null),i=e.ref(!1),n=e.ref({playingAs:l.playingAs,gameSections:l.gameSections,statisticType:l.statisticType}),s=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),c=e.ref(null),f=e.ref(null),p=e.ref(null),y=e.ref(null),h=e.computed(()=>({"--width":l.width,"--max-width":l.maxWidth,"--background-color":l.backgroundColor,"--border-radius":l.borderRadius,"--border-color":l.borderColor,"--border-width":l.borderWidth,"--box-shadow":l.boxShadow,"--padding":l.filterType!==b.VIDEOS?l.isExpansionMode?"10px 0":l.padding:"0","--footer-border-color":l.footerBorderColor,"--footer-border-width":l.footerBorderWidth,"--text-color":l.textColor})),u=e.computed(()=>{const E=[];return l.productivityCategories&&Object.values(l.productivityCategories).forEach(T=>{T.categories&&T.categories.forEach(U=>{E.push(U)})}),E}),m=e.computed(()=>{const E=[];return l.playsCategories&&Object.values(l.playsCategories).forEach(T=>{T.categories&&T.categories.forEach(U=>{E.push(U)})}),E}),g=e.computed(()=>{const E=u.value.filter(T=>T.isSelected);return G(E),l.filterType===b.PRODUCTIVITY&&o("change-categories-selected",E.length),E.length}),_=e.computed(()=>!l.isForTemplateForm&&g.value>=l.productivityMaxCategories),B=e.computed(()=>!l.isForTemplateForm&&g.value<=l.productivityMinCategories),I=e.computed(()=>l.isPlayingAsHidden?l.gameSections:l.playingAs.concat(l.gameSections));e.watch(n,E=>{l.filterType===b.DETAILS&&o("update:filters",E)},{immediate:!0,deep:!0}),e.watch(()=>I.value,E=>{if(l.filterType===b.DETAILS){const T=E.filter(U=>U.isSelected);o("change-filters-selected",T.length)}},{immediate:!0,deep:!0}),e.watch(()=>l.playsGolstatsCategories,E=>{if(l.filterType===b.PLAYS_TYPES||l.filterType===b.GOLSTATS){const T=E.filter(U=>U.isSelected);o("change-filters-selected",T.length)}},{immediate:!0}),e.watch(()=>l.fieldAreas,E=>{l.filterType===b.FIELD&&o("change-filters-selected",E.length)}),e.watch(m,()=>{l.filterType===b.PLAYS&&P()},{immediate:!0,deep:!0}),e.watch(u,()=>{l.filterType===b.PRODUCTIVITY&&J()},{immediate:!0,deep:!0}),e.watch(()=>l.resultsFilters,E=>{l.filterType===b.RESULTS&&o("change-filters-selected",E.results.filter(T=>T.isSelected).length)},{immediate:!0,deep:!0});function G(E){setTimeout(()=>{E.sort((T,U)=>T.priority-U.priority),E.forEach((T,U)=>{T.priority=U+1})},10)}function z(E=null){H(E)}function H(E=null){l.filterType===b.PRODUCTIVITY?u.value.forEach(T=>{T.isSelected=!1}):l.filterType===b.PLAYS?(m.value.forEach(T=>{T.isSelected=!0}),i.value=!0):l.filterType===b.FIELD?o("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):l.filterType===b.DETAILS?(l.playingAs.forEach(T=>{T.isSelected=!0}),l.gameSections.forEach(T=>{T.isSelected=!0})):l.filterType===b.TOURNAMENTS?(l.tournaments.forEach((T,U)=>{l.isOneTournamentOnly?T.isSelected=U===0:T.isSelected=!0}),o("change-filters-selected",0)):l.filterType===b.PLAYS_TYPES?l.playsGolstatsCategories.forEach(T=>{T.isSelected=!0}):l.filterType===b.GOLSTATS?l.playsGolstatsCategories.forEach(T=>{T.isSelected=!1}):l.filterType===b.UNIVERSE?d.value&&d.value.resetFilters():l.filterType===b.PERSONAL_DATA?(r.value&&r.value.onClearFilters(E||ce.All),o("change-personal-data-filters",{})):l.filterType===b.DISTANCE?o("update:filters",{minValue:l.distanceFilters.minLimit,maxValue:l.distanceFilters.maxLimit}):l.filterType===b.RESULTS?o("update:filters",{results:l.resultsFilters.results.map(T=>(T.isSelected=!0,T))}):l.filterType===b.RESULTS_BY_TIME?y.value&&y.value.removeFilters():l.filterType===b.GAMES?l.gamesFilters.forEach(T=>{T.isSelected=!0}):l.filterType===b.TAKEN_CORNERS?c.value.clearFilters():l.filterType===b.HOW_WAS_CORNER?(l.howWasCornerFilters.left.forEach(T=>{T.isSelected=!0}),l.howWasCornerFilters.right.forEach(T=>{T.isSelected=!0})):l.filterType===b.ZONE?f.value&&f.value.clearFilters():l.filterType===b.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function q(E){l.filterType===b.TOURNAMENTS&&o("change-filters-selected",E)}function Z(E){l.filterType===b.UNIVERSE&&o("change-universe-filters",E)}function oe(E){l.filterType===b.FIELD&&o("change-field-areas",E)}function v(E){l.filterType===b.GOLSTATS&&o("change-filters-selected",E)}function A(E){o("change-filters-selected",E)}function R(E){l.filterType===b.PRODUCTIVITY?u.value.forEach(T=>{T.isSelected=E}):(i.value=E,l.playsCategories.offensive.categories.forEach(T=>{T.isSelected=E}),l.playsCategories.defensive.categories.forEach(T=>{T.isSelected=E}),l.playsCategories.possession.categories.forEach(T=>{T.isSelected=E}),l.playsCategories.offenses.categories.forEach(T=>{T.isSelected=E}))}function P(){let E=0;const T={playsCategories:m.value.filter(U=>U.isSelected)};i.value=T.playsCategories.length===m.value.length,E=T.playsCategories.length,Object.values(s.value).forEach(U=>{U&&E++}),o("change-filters-selected",E),o("update:filters",T)}function J(){let E=0;const T={productivityFilters:u.value.filter(U=>U.isSelected),offensesConditions:s.value};E=T.productivityFilters.length,Object.values(s.value).forEach(U=>{U&&E++}),o("change-filters-selected",E),o("update:filters",T)}function ae(E){o("click-parameters",E)}function de(){o("apply")}function re(){(l.filterType===b.PLAYS_TYPES||l.filterType===b.GOLSTATS)&&l.playsGolstatsCategories&&l.playsGolstatsCategories.forEach(E=>{E.isSelected=!1}),l.filterType===b.PRODUCTIVITY&&u.value.forEach(E=>{E.isSelected=!1}),o("apply")}function F(E){o("update:filters",E)}function L(E){l.filterType===b.PERSONAL_DATA&&o("update:filters",E)}function O(E){l.filterType===b.TOURNAMENTS&&o("update:filters",E)}function D(E){(l.filterType===b.PLAYS_TYPES||l.filterType===b.GOLSTATS)&&o("update:filters",E)}function S(E){l.filterType===b.PRODUCTIVITY&&(s.value=E,J())}function M(E){l.filterType===b.DISTANCE&&o("update:filters",E)}function N(E){l.filterType===b.RESULTS&&o("update:filters",E)}function V(E){l.filterType===b.GAMES&&(o("update:filters",E),o("change-filters-selected",E.filter(T=>T.isSelected).length))}function C(E){n.value.statisticType=E}const x=e.computed(()=>l.filterType===b.PLAYS?m.value.length:l.filterType===b.PRODUCTIVITY?u.value.length:l.filterType===b.FIELD?16:l.filterType===b.UNIVERSE?6:l.filterType===b.DETAILS?8:l.filterType===b.RESULTS||l.filterType===b.RESULTS_BY_TIME?3:l.filterType===b.GAMES?l.gamesFilters.length:0);return o("total-filters",x),a({clearFilters:z}),(E,T)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(h.value)},[t.filterType===e.unref(b).PRODUCTIVITY||t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Hg,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",Wg,[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",Gg,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",qg,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Zg,[e.createVNode(e.unref(Y),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":i.value,"label-color":t.textColor,"onUpdate:modelValue":R},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Yg,[t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",Jg,[e.createVNode(Jh,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Kg,[e.createVNode($c,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":_.value,"are-min-categories-reached":B.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":S,onClickParameters:ae},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"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).FIELD?(e.openBlock(),e.createElementBlock("div",Xg,[e.createVNode(e.unref(Jo),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":oe}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DETAILS?(e.openBlock(),e.createElementBlock("div",Qg,[e.createVNode(_1,{"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:C},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(b).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",e4,[e.createVNode(Lh,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:r,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":L},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",t4,[e.createVNode(N1,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:q,"onUpdate:filters":O},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",a4,[e.createVNode(Lo,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":D},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GOLSTATS?(e.openBlock(),e.createElementBlock("div",o4,[e.createVNode(Lo,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:v,"onUpdate:filters":D},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).UNIVERSE?(e.openBlock(),e.createElementBlock("div",l4,[e.createVNode(Cm,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"onUpdate:universeFilters":Z},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DISTANCE?(e.openBlock(),e.createElementBlock("div",i4,[e.createVNode(jm,{distance:t.distanceFilters,"onUpdate:distanceFilters":M},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS?(e.openBlock(),e.createElementBlock("div",r4,[e.createVNode(Qh,{ref_key:"templateResults",ref:y,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":N},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",n4,[e.createVNode($g,{ref_key:"templateResults",ref:y,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:A,"onUpdate:filters":F},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GAMES?(e.openBlock(),e.createElementBlock("div",s4,[e.createVNode(Ym,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":V},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",d4,[e.createVNode(ny,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:c,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:A,"onUpdate:filters":F},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).VIDEOS?(e.openBlock(),e.createElementBlock("div",c4,[e.createVNode($3,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",m4,[e.createVNode(wy,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:A,"onUpdate:filters":F},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).ZONE?(e.openBlock(),e.createElementBlock("div",p4,[e.createVNode(Ng,{ref_key:"templateZone",ref:f,"zone-filters":t.zoneFilters,onChangeFiltersSelected:A,"onUpdate:filters":F},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",u4,[e.createVNode(Pg,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:A,"onUpdate:filters":F},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",f4,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Ct),{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:re})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",h4,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Ct),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:re})):(e.openBlock(),e.createBlock(e.unref(Ct),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:H}))]),e.createElementVNode("div",y4,[e.createVNode(e.unref(Ct),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:de})])],64))])):e.createCommentVNode("",!0)],4))}},zl=K(g4,[["__scopeId","data-v-5452e6cf"]]),b4=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},S4={__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:a}){const o=t;e.useCssVars(h=>({"398d9242":t.width,f164e302:d.value,"4bb88040":t.menuWidth}));const l=e.ref(null),r=e.ref(!1),i=e.ref(null),n=e.ref({}),s=e.computed(()=>{const h={top:"0px","--left-menu":o.leftMenu};if(l.value){const u=l.value.getBoundingClientRect();h.top=`${u.height+o.menuMarginTop}px`}return h}),d=e.computed(()=>r.value?o.zIndexOpen:1);e.watch(()=>o.modelValue,h=>{h!==r.value&&(r.value=h)},{immediate:!0}),e.watch(r,h=>{h||setTimeout(()=>{n.value["--translate-x"]="0px"},500)});function c(h){const u=window.innerWidth,m=h.boundingClientRect.x,g=h.boundingClientRect.x+h.boundingClientRect.width,_=m<=0?Math.abs(m)+4:g>=u?u-(g+10):0;n.value["--translate-x"]=`${_}px`}function f(){new IntersectionObserver(h=>{h[0].intersectionRatio>0&&c(h[0])}).observe(i.value)}function p(){r.value=!r.value,a("update:modelValue",r.value)}function y(){r.value=!1,a("update:modelValue",r.value)}return e.onMounted(()=>{e.nextTick(()=>{f()})}),(h,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:y})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:l,class:"menu-container__trigger",onClick:p},[e.renderSlot(h.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:i,class:"menu-container__menu",style:e.normalizeStyle(s.value)},[e.renderSlot(h.$slots,"menu",{},void 0,!0)],4),[[e.vShow,r.value]])]),_:3})],4)],64))}},_4=b4(S4,[["__scopeId","data-v-18c0df61"]]),Oe=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),C4={key:0,class:"button__icon"},E4={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w4=["stroke"],k4=["stroke"],V4=["stroke"],N4={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x4=["stroke"],B4=["stroke"],F4=["fill"],T4={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M4=["fill"],A4={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L4=["stroke"],P4=["stroke"],D4=["stroke"],I4=["stroke"],R4=["stroke"],v4={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},O4=Oe(()=>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)),z4=[O4],U4={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j4=Oe(()=>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)),$4=[j4],H4={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W4=Oe(()=>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)),G4=[W4],q4={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z4=Oe(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Y4=Oe(()=>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)),J4=Oe(()=>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)),K4=Oe(()=>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)),X4=[Z4,Y4,J4,K4],Q4={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e5=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><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-2504d135></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-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),t5=[e5],a5={class:"button__text"},o5={key:0,class:"info-container"},l5={key:1,style:{width:"20px"}},i5={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r5=["fill"],n5={__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 a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),l=e.computed(()=>({"--info-background-color":a.infoValue?a.infoBackgroundColor:"transparent","--info-border-color":a.infoValue?a.infoBorderColor:"transparent","--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth})),r=e.computed(()=>[b.PLAYS_TYPES,b.GOLSTATS,b.TOURNAMENTS,b.PLAYS,b.RESULTS,b.RESULTS_BY_TIME].includes(a.iconType)),i=e.computed(()=>[b.FIELD,b.GAMES].includes(a.iconType)),n=e.computed(()=>[b.DETAILS,b.UNIVERSE].includes(a.iconType)),s=e.computed(()=>[b.PERSONAL_DATA].includes(a.iconType)),d=e.computed(()=>[b.PRODUCTIVITY].includes(a.iconType)),c=e.computed(()=>[b.HOW_WAS_CORNER].includes(a.iconType)),f=e.computed(()=>[b.TAKEN_CORNERS].includes(a.iconType)),p=e.computed(()=>[b.ZONE].includes(a.iconType)),y=e.computed(()=>[b.WHAT_HAPPENED].includes(a.iconType));return(h,u)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(o.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",C4,[s.value?(e.openBlock(),e.createElementBlock("svg",E4,[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,w4),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,k4),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,V4)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",N4,[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,x4),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,B4),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,F4)])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("svg",T4,[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,M4)])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("svg",A4,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,L4),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,P4),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,D4),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,I4),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,R4)])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",v4,z4)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",U4,$4)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",H4,G4)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",q4,X4)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",Q4,t5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",a5,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",o5,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(l.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(l.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",l5)):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",i5,[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,r5)]))],2)],4))}},s5=K(n5,[["__scopeId","data-v-2504d135"]]),d5=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},c5=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),m5={class:"panel__activator__icon"},p5=["src"],u5={class:"panel__activator__text"},f5=["height","width"],h5=["stroke"],y5={class:"panel__content"},g5=c5(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),b5={class:"panel__content__slot"},S5={__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:a}){const o=t,l=e.ref(o.modelValue),r=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,n=>{l.value=n},{immediate:!0});function i(){l.value=!l.value,a("update:modelValue",l.value)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:i},[e.createElementVNode("div",m5,[o.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.icon,alt:""},null,8,p5)):e.createCommentVNode("",!0)]),e.createElementVNode("div",u5,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":l.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,h5)],8,f5))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",y5,[g5,e.createElementVNode("div",b5,[e.renderSlot(n.$slots,"content",{},void 0,!0)])],512),[[e.vShow,l.value]])]),_:3})],4))}},_5=d5(S5,[["__scopeId","data-v-0ca35abc"]]),Ve={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},C5={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}},E5={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}]}},w5={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,a)=>a+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},k5=[{name:"Sub-20",logo:null,isSelected:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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:!0,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}]}],V5=[{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}],N5=[{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}],x5={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Ul={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},B5={class:"filters"},F5={key:0,class:"filters__expansion"},T5={class:"content"},M5={key:1,class:"filters__menus"},A5={__name:"GSC-Filters",props:{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}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:a,emit:o}){const l=t;e.useCssVars(x=>({"5274d93a":t.width}));const r={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PRODUCTIVITY,isFooterVisible:!0},i={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS,isFooterVisible:!0},n={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.FIELD,isFooterVisible:!0},s={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DETAILS,isFooterVisible:!0},d={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TOURNAMENTS,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PERSONAL_DATA,isFooterVisible:!0},f={width:"310px",modalHeight:l.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:l.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.UNIVERSE,isFooterVisible:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DISTANCE,isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS,padding:"0",isFooterVisible:!0},m={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.VIDEOS,isFooterVisible:!1},_={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GAMES,isFooterVisible:!0},B={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TAKEN_CORNERS,isFooterVisible:!0},I={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.HOW_WAS_CORNER,isFooterVisible:!0},G={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.ZONE,isFooterVisible:!0},z={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.WHAT_HAPPENED,isFooterVisible:!0},H=e.ref(!1),q=e.ref(!1),Z=e.ref(0),oe=e.ref(0),v=e.ref({}),A=e.ref(null),R=e.ref(null),P=e.computed(()=>l.isForTemplateForm?"0":"unset"),J=e.computed(()=>l.buttonFilterProps&&l.buttonFilterProps.text?l.buttonFilterProps.text:l.menuButtonText||O()),ae=e.computed(()=>l.isFromTemplates?b.RESULTS:l.filterType),de=e.computed(()=>l.expansionPanelText||O()),re=e.ref(null);e.watch(()=>l.filterType,x=>{if(x===b.PRODUCTIVITY)v.value={...r,...l.templateProps,productivityCategories:l.filters||C5};else if(x===b.PLAYS)v.value={...i,...l.templateProps,fontFamily:l.buttonFilterProps?l.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:l.filters||E5};else if(x===b.FIELD)v.value={...n,...l.templateProps,fieldComponentProps:l.fieldComponentProps,fieldAreas:l.filters||[]};else if(x===b.DETAILS)v.value={...s,...l.templateProps,isPlayingAsHidden:l.filters?l.filters.isPlayingAsHidden:Ve.isPlayingAsHidden,playingAs:l.filters&&l.filters.playingAs||Ve.playingAs,gameSections:l.filters&&l.filters.gameSections||Ve.gameSections,statisticType:l.filters?l.filters.statisticType:Ve.statisticType,isStatisticTypeVisible:l.filters?l.filters.isStatisticTypeVisible:Ve.isStatisticTypeVisible};else if(x===b.TOURNAMENTS){const E=l.filters||k5;l.isOneTournamentOnly&&E.forEach(T=>{T.isSelected=T.id===l.defaultTournamentId}),v.value={...d,...l.templateProps,tournaments:E}}else x===b.PERSONAL_DATA?v.value={...c,...l.templateProps,token:l.token,awaitForFilters:l.awaitForFilters,personalDataFilters:l.filters}:x===b.PLAYS_TYPES?v.value={...f,...l.templateProps,playsGolstatsCategories:l.filters||V5}:x===b.GOLSTATS?v.value={...p,...l.templateProps,playsGolstatsCategories:l.filters||N5}:x===b.UNIVERSE?v.value={...y,...l.templateProps,universeFilters:l.filters||w5}:x===b.DISTANCE?v.value={...h,...l.templateProps,distanceFilters:l.filters||x5}:x===b.RESULTS?v.value={...u,...l.templateProps,resultsFilters:l.filters||Ul}:x===b.RESULTS_BY_TIME?v.value={...m,...l.templateProps,resultsByTimeFilters:l.filters||Pa}:x===b.GAMES?v.value={..._,...l.templateProps,gamesFilters:l.filters||[]}:x===b.VIDEOS?v.value={...g,...l.templateProps,token:l.token}:x===b.TAKEN_CORNERS?v.value={...B,...l.templateProps,takenCornersFilters:l.filters||[]}:x===b.HOW_WAS_CORNER?v.value={...I,...l.templateProps,howWasCornerFilters:l.filters||Ma}:x===b.ZONE?v.value={...G,...l.templateProps,zoneFilters:l.filters||[...st]}:x===b.WHAT_HAPPENED&&(v.value={...z,...l.templateProps,whatHappenedFilters:l.filters||[...La]});v.value.isExpansionMode=l.isExpansionPanel,l.isExpansionPanel&&(v.value.width="100%",v.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>l.filters,()=>{if(l.filterType===b.PRODUCTIVITY)v.value={...r,...l.templateProps,productivityCategories:l.filters};else if(l.filterType===b.PLAYS)v.value={...i,...l.templateProps,playsCategories:l.filters};else if(l.filterType===b.FIELD)v.value={...n,...l.templateProps,fieldComponentProps:l.fieldComponentProps,fieldAreas:l.filters};else if(l.filterType===b.DETAILS)v.value={...s,...l.templateProps,isPlayingAsHidden:l.filters?l.filters.isPlayingAsHidden:Ve.isPlayingAsHidden,playingAs:l.filters?l.filters.playingAs:Ve.playingAs,gameSections:l.filters?l.filters.gameSections:Ve.gameSections,statisticType:l.filters?l.filters.statisticType:Ve.statisticType,isStatisticVisible:l.filters?l.filters.isStatisticVisible:Ve.isStatisticVisible};else if(l.filterType===b.TOURNAMENTS){const x=l.filters;l.isOneTournamentOnly&&x.forEach(E=>{E.isSelected=E.id===l.defaultTournamentId}),v.value={...d,...l.templateProps,tournaments:x}}else l.filterType===b.PERSONAL_DATA?v.value={...c,...l.templateProps,token:l.token,awaitForFilters:l.awaitForFilters,personalDataFilters:l.filters}:l.filterType===b.PLAYS_TYPES?v.value={...f,...l.templateProps,playsGolstatsCategories:l.filters}:l.filterType===b.GOLSTATS?v.value={...p,...l.templateProps,playsGolstatsCategories:l.filters}:l.filterType===b.UNIVERSE?v.value={...y,...l.templateProps,universeFilters:l.filters}:l.filterType===b.DISTANCE?v.value={...h,...l.templateProps,distanceFilters:l.filters}:l.filterType===b.RESULTS?v.value={...u,...l.templateProps,resultsFilters:l.filters||Ul}:l.filterType===b.RESULTS_BY_TIME?v.value={...m,...l.templateProps,resultsByTimeFilters:l.filters||Pa}:l.filterType===b.GAMES?v.value={..._,...l.templateProps,gamesFilters:l.filters}:l.filterType===b.VIDEOS?v.value={...g,...l.templateProps,token:l.token}:l.filterType===b.TAKEN_CORNERS?v.value={...B,...l.templateProps,takenCornersFilters:l.filters||[]}:l.filterType===b.HOW_WAS_CORNER?v.value={...I,...l.templateProps,howWasCornerFilters:l.filters||Ma}:l.filterType===b.ZONE?v.value={...G,...l.templateProps,zoneFilters:l.filters||[...st]}:l.filterType===b.WHAT_HAPPENED&&(v.value={...z,...l.templateProps,whatHappenedFilters:l.filters||[...La]});v.value.isExpansionMode=l.isExpansionPanel,l.isExpansionPanel&&(v.value.width="100%",v.value.maxWidth="100%")}),e.watch(H,x=>{x||o("close",re.value)}),e.watch(q,x=>{x||o("close",re.value)});function F(x){Z.value=x}function L(){l.isExpansionPanel?q.value=!1:H.value=!1,o("apply",re.value)}function O(){if(l.filterType===b.PRODUCTIVITY)return l.isFromTemplates?"Tipos de jugadas":"Características de juego";if(l.filterType===b.PLAYS)return"Jugada(s)";if(l.filterType===b.FIELD)return"Zona de cancha";if(l.filterType===b.DETAILS)return"Detalles";if(l.filterType===b.TOURNAMENTS)return"Ligas";if(l.filterType===b.PERSONAL_DATA)return"Datos personales";if(l.filterType===b.PLAYS_TYPES)return"Tipos de jugada";if(l.filterType===b.GOLSTATS)return"Filtros Golstats";if(l.filterType===b.UNIVERSE)return"Universo";if(l.filterType===b.DISTANCE)return"Distancia";if([b.RESULTS,b.RESULTS_BY_TIME].includes(l.filterType))return"Resultados";if(l.filterType===b.GAMES)return"Partidos";if(l.filterType===b.VIDEOS)return"Videos";if(l.filterType===b.TAKEN_CORNERS)return"¿Quién cobró?";if(l.filterType===b.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(l.filterType===b.ZONE)return"Zona";if(l.filterType===b.WHAT_HAPPENED)return"¿Qué sucedió?"}function D(x){o("click-parameters",x)}function S(x){v.value.fieldAreas=x,Z.value=x.length,N(x)}function M(x){let E=0;x.value&&x.value.statistics&&(x.value.minutesPlayed&&E++,x.value.percentMinutesPlayed&&E++,x.value.lastMonths&&E++,x.value.statistics.totals&&E++,x.value.statistics.averagePerGame&&E++,x.value.statistics.averagePerMinute&&E++),v.value.universe=x.value,Z.value=E,N(x.value)}function N(x){re.value=x,o("update:filters",x)}function V(x){oe.value=x}function C(x=null){A.value&&A.value.clearFilters(x),R.value&&R.value.clearFilters(x)}return a({clearFilters:C}),(x,E)=>(e.openBlock(),e.createElementBlock("div",B5,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",F5,[e.createVNode(e.unref(_5),e.mergeProps(t.expansionPanelProps,{modelValue:q.value,"onUpdate:modelValue":E[0]||(E[0]=T=>q.value=T),text:de.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+l.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",T5,[e.createVNode(zl,e.mergeProps(v.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,ref_key:"filterTemplateExpansionPanel",ref:R,onChangeFieldAreas:S,onChangeCategoriesSelected:F,onChangeFiltersSelected:F,onChangeUniverseFilters:M,onApply:L,"onUpdate:filters":N,onTotalFilters:V,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"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(e.unref(_4),{modelValue:H.value,"onUpdate:modelValue":E[1]||(E[1]=T=>H.value=T),width:t.width,"left-menu":P.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(s5,e.mergeProps(t.buttonFilterProps,{text:J.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":Z.value,"filters-total":oe.value.value,"is-active":H.value,"icon-type":ae.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(zl,e.mergeProps(v.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,ref_key:"filterTemplateMenu",ref:A,onChangeFieldAreas:S,onChangeCategoriesSelected:F,onChangeFiltersSelected:F,onChangeUniverseFilters:M,"onUpdate:filters":N,onTotalFilters:V,onApply:L,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"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},jl=K(A5,[["__scopeId","data-v-bf4e3ef5"]]);function $l(){return{backgroundColor:"#2e3b46",width:"98.9%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"30px",padding:"5px 2.2%",textFontFamily:"'Poppins-Regular'"}}const L5=(t,a)=>{const o=t.__vccOpts||t;for(const[l,r]of a)o[l]=r;return o},Da={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))}}},Hl=()=>{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}))},Wl=Da.setup;Da.setup=Wl?(t,a)=>(Hl(),Wl(t,a)):Hl;const P5=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),D5=["src"],I5={key:1,class:"text"},R5=["src"],v5={class:"stats"},O5=P5(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),z5={class:"numstats"},U5={class:"leyend"};function j5(t,a,o,l,r,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",r.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,r.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[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,D5)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",I5,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,R5)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.createElementVNode("div",v5,[O5,e.createElementVNode("div",z5,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",U5,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const $5=L5(Da,[["render",j5],["__scopeId","data-v-f3ee6b2b"]]),H5={class:"gsc-dropdown__main-container__item-selected"},W5=["height","width"],G5=["stroke"],q5={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z5=["fill"],Y5={class:"gsc-dropdown__items-container"},J5=["onClick"],K5={key:0,class:"gsc-dropdown__items-footer"},Gl={__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(a=>a 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:a}){const o=t,l=e.ref({}),r=e.ref(null),i=e.ref(o.isMultipleOption?-1:0),n=e.ref(!1);e.watch(()=>o.items,(h,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&h&&h.length){if(o.defaultItemByProp){const m=o.items.findIndex(g=>g[o.defaultItemByProp.propName]===o.defaultItemByProp.value);m!==-1?(i.value=m,l.value=h[m]):(i.value=0,l.value=h[0])}else l.value=h[o.defaultItemByIndex];a("input",l.value)}},{immediate:!0}),e.watch(()=>o.modelValue,h=>{if(h){const u=o.items.findIndex(m=>typeof h=="object"?JSON.stringify(m)===JSON.stringify(h):m===h);u!==-1&&(i.value=u,l.value=o.items[u],a("update:modelValue",l.value))}},{immediate:!0});const s=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"})),d=e.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(n.value=!n.value)}function f(h){r.value&&!r.value.contains(h.target)&&(n.value=!1)}function p(h,u){o.isMultipleOption?i.value=-1:(i.value=u,n.value=!1),l.value=h,a("input",l.value),a("update:modelValue",l.value)}function y(){n.value=!1,a("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(h,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:r,class:"gsc-dropdown",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:c},[e.createElementVNode("div",H5,[e.renderSlot(h.$slots,"default",{selectedItem:l.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:e.normalizeStyle(d.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,G5)],8,W5)):(e.openBlock(),e.createElementBlock("svg",q5,[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,Z5)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Y5,[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,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:_=>p(m,g)},[e.renderSlot(h.$slots,"availableItem",{item:m})],10,J5)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",K5,[e.createVNode(e.unref($5),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):e.createCommentVNode("",!0)])],512),[[e.vShow,n.value]])]),_:3})],4))}},X5={name:"ModalCreatePlayList",components:{GSCFilters:jl,GSCDropdown:Gl},props:{isVisible:{type:Boolean,default:!1},seasons:{type:Array,required:!0},userTeamId:{type:Number,default:1},teamId:{type:Number,required:!0},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0},listExistingNames:{type:Array,default:[]}},setup(t,{emit:a}){const o=e.ref($l()),l=e.ref(null),r=e.ref(1),i=e.ref(!1),n=e.ref({title:"",position:""}),s=e.ref(0),d=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"]]),c=e.ref(!1),f=e.ref([]),p=e.ref([]),y=e.ref([]),h=e.ref(!1);e.ref([]);const u=e.ref(new Set),m=e.ref({tournaments:[],personalData:[]}),g=e.ref(null),_=e.ref(!0),B=e.ref(!1),I=e.ref(""),G=e.ref(0),z="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",H=()=>{l.value&&(s.value=l.value.offsetWidth)},q=V=>{document.body.style.overflow=V?"hidden":"auto"},Z=e.ref(null),oe=()=>{H(),t.isVisible&&q(!0)},v=()=>{r.value=1,n.value={title:"",position:""},Z.value&&(Z.value.clearFilters(ce.ALL),Z.value.clearFilters(ce.AGE_RANGE),Z.value.clearFilters(ce.YEAR),Z.value.clearFilters(ce.NATIONALITY),Z.value.clearFilters(ce.POSITION)),_t.forEach(V=>{V.isSelected=V.name==="Liga MX",V.seasons.forEach(C=>{C.isSelected=V.name==="Liga MX"})}),u.value.clear(),G.value++,I.value="",B.value=!1,_.value=!0,g.value=null,p.value=[],y.value=[],a("close")},A=()=>{if(r.value===1){if(!J.value||!n.value.position)return;r.value=2}},R=async()=>{try{c.value=!0;const C=await X.create({headers:{Authorization:`${z}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${t.userTeamId}/templates?general=1`);f.value=C.data.data,f.value.unshift({id:0,name:"Selecciona un template para tu lista..."})}catch(V){console.error("Error al cargar templates:",V)}finally{c.value=!1}};e.onMounted(()=>{R(),window.addEventListener("resize",oe)}),e.onUnmounted(()=>{window.removeEventListener("resize",oe),q(!1)}),e.watch(()=>t.isVisible,V=>{V?(r.value=1,setTimeout(H,0),q(!0)):(r.value=1,q(!1))}),e.watch(()=>r.value,V=>{V===2&&setTimeout(()=>{_.value=!0,g.value=null,F()},100)});const P=e.computed(()=>({...o.value})),J=e.computed(()=>{const V=n.value.title.toLowerCase(),C=t.listExistingNames.includes(V);return i.value=C,n.value.title.length>=3&&!C}),ae=async V=>{m.value.tournaments=V,re()},de=async V=>{m.value.personalData=V,re()},re=()=>{if(!g.value){_.value=!0;return}const V=JSON.stringify(m.value)!==JSON.stringify(g.value);_.value=V},F=async()=>{var V,C,x,E,T,U;if(_.value){B.value=!0;try{const be=m.value.tournaments.find(ze=>ze.isSelected===!0);if(be&&be.seasons.length>0){const ze=be.seasons[0];h.value=!0,p.value=[];try{let W=[...(await X.create({headers:{Authorization:`${z}`}}).get(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${ze.id}`)).data.players.map(Q=>{var ne;return{id:Q.player_id,name:O(Q.player_name),name_full:Q.player_name,photo:Q.player_photo||"https://golstatsimages.blob.core.windows.net/players-profile/default.png",position:d.get(Q.position_id)||"No especificada",position_id:Q.position_id||0,age:Q.age||"-",dob:Q.dob||"-",jersey:Q.jersey||0,nationality:Q.nationality||"",is_female:Q.is_female,nationality_id:Q.nationality_id||0,minutes_played:Q.minutes_played||0,team_id:Q.team_id,team:{logo:`https://golstatsimages.blob.core.windows.net/teams-80/${Q.team_id}.png`,shortName:((ne=Q.team)==null?void 0:ne.shortName)||"-",tournament:be.name||"No especificada"},isSelected:u.value.has(Q.player_id)}})];if((V=m.value.personalData)!=null&&V.ageByRange&&(W=W.filter(Q=>{const ne=parseInt(Q.age);return!isNaN(ne)&&ne>=m.value.personalData.ageByRange.min&&ne<=m.value.personalData.ageByRange.max})),(C=m.value.personalData)!=null&&C.year){const Q=m.value.personalData.year;W=W.filter(ne=>ne.dob?parseInt(ne.dob.substring(0,4))===Q:!1)}if(((E=(x=m.value.personalData)==null?void 0:x.nationalities)==null?void 0:E.length)>0){const Q=m.value.personalData.nationalities.filter(ne=>ne.isSelected).map(ne=>ne.id);Q.length>0&&(W=W.filter(ne=>Q.includes(ne.nationality_id)))}if(((U=(T=m.value.personalData)==null?void 0:T.positions)==null?void 0:U.length)>0){const Q=m.value.personalData.positions.filter(ne=>ne.isSelected).map(ne=>ne.id);Q.length>0&&(W=W.filter(ne=>Q.includes(ne.position_id)))}p.value=W;const le=new Set(y.value.map(Q=>Q.id)),va=W.filter(Q=>!le.has(Q.id));va.length>0&&(y.value=[...y.value,...va]),g.value=JSON.parse(JSON.stringify(m.value)),_.value=!1}catch(ge){console.error("Error al obtener jugadores:",ge)}finally{h.value=!1}}}catch(be){console.error("Error al procesar la búsqueda:",be),h.value=!1}}},L=V=>{u.value.has(V)?u.value.delete(V):u.value.add(V)},O=V=>{if(!V)return"-";const[C,x]=V.split(",").map(T=>T.trim());if(!x)return V;const E=C.split(" ")[0];return`${x[0]}. ${E}`},D=e.computed(()=>{if(!I.value)return p.value;const V=I.value.toLowerCase().trim();return p.value.filter(C=>C.name_full.toLowerCase().includes(V))});return{modalContent:l,currentStep:r,playlistData:n,showError:i,modalWidth:s,isLoading:c,templates:f,players:p,allPlayers:y,isLoadingPlayers:h,positions:d,closeModal:v,handleNext:A,filterButtonProps:P,filtersTypes:b,onFiltersTournamentsTops:ae,tournamentsToFilter:_t,onFiltersPersonalData:de,isSearchButtonActive:_,handleSearch:F,handlePlayerSelection:L,selectedPlayers:u,hasSearched:B,searchQuery:I,filteredPlayers:D,clearSearch:()=>{I.value=""},handleCreatePlaylist:async()=>{try{const V=f.value.find(T=>T.id===n.value.position),C={user_id:t.userId,name:n.value.title,template:V,players:u.value.size>0?Array.from(u.value).map(T=>{const U=y.value.find(be=>be.id===T);return{player_id:T,name:U.name_full,position:U.position_id,dob:U.dob,team_id:U.team_id,jersey:U.jersey,nationality:U.nationality,nationality_id:U.nationality_id,is_female:U.is_female}}):[]},E=await X.create({headers:{Authorization:`${z}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,C);(E.status===200||E.status===201)&&(a("playlist-created",E.data),v())}catch(V){console.error("Error al crear la playlist:",V)}},filterKey:G,personalDataFilter:Z,isValidPlaylistName:J,onInputTemplate:V=>{n.value.position=V.id}}}},Q5={key:0,class:"modal-overlay"},e8={class:"modal-content",ref:"modalContent"},t8={class:"modal-header"},a8={class:"title-section"},o8={key:0,class:"modal-body"},l8={class:"dropdown-container"},i8={class:"selected-item"},r8={class:"available-item"},n8={key:0,class:"error-message"},s8={key:1,class:"modal-body"},d8={class:"search-section"},c8={class:"filters-row"},m8={class:"filter-container"},p8={class:"filter-container"},u8={class:"search-input"},f8={class:"players-table"},h8={class:"table-body"},y8={key:0,class:"loading-container"},g8={key:1,class:"no-results"},b8={key:2,class:"no-results"},S8={class:"cell checkbox-cell"},_8=["checked","onChange"],C8={class:"cell player-cell"},E8=["src"],w8={class:"cell team-cell"},k8=["src"],V8={class:"cell"},N8={class:"cell"},x8={class:"cell"},B8={class:"cell"},F8={class:"modal-footer"},T8={key:0,class:"buttons-container buttons-container-step1"},M8=["disabled"],A8={class:"selected-players-info"},L8={class:"bold"},P8={class:"buttons-container buttons-container-step2"};function D8(t,a,o,l,r,i){const n=e.resolveComponent("GSCDropdown"),s=e.resolveComponent("GSCFilters");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",Q5,[e.createElementVNode("div",e8,[e.createElementVNode("div",t8,[e.createElementVNode("div",a8,[a[9]||(a[9]=e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),e.createElementVNode("h2",null,e.toDisplayString(l.currentStep===1?"Crear nueva lista":"Agregar jugadores"),1)]),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...d)=>l.closeModal&&l.closeModal(...d))},a[10]||(a[10]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),l.currentStep===1?(e.openBlock(),e.createElementBlock("div",o8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=d=>l.playlistData.title=d),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.createElementVNode("div",l8,[e.createVNode(n,{items:l.templates,"list-alignment":"left",height:"40px",width:"100%","background-color":"#2e3b46",arrowColor:"#fff",color:"#FFF","list-height":"200px","list-background-color":"#2E3B46","list-item-color":"#FFF","is-list-same-width":"true",hoverBackgroundColor:"#4a5b69",listItemSelectedBackgroundColor:"#576978",listBorderRadius:"5px",listBorderColor:"rgba(255, 255, 255, 0.2)","border-color":"rgba(255, 255, 255, 0.2)","border-radius":8,onInput:l.onInputTemplate},{default:e.withCtx(({selectedItem:d})=>[e.createElementVNode("div",i8,e.toDisplayString(d&&d.name&&l.playlistData.position!==0?d.name:"Selecciona un template para tu lista..."),1)]),availableItem:e.withCtx(({item:d})=>[e.createElementVNode("div",r8,e.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])]),l.showError?(e.openBlock(),e.createElementBlock("p",n8,a[11]||(a[11]=[e.createTextVNode(" Ya existe una lista con este nombre,"),e.createElementVNode("br",{class:"mobile-break"},null,-1),e.createTextVNode(" utiliza otro para poder continuar. ")]))):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",s8,[e.createElementVNode("div",d8,[e.createElementVNode("div",c8,[e.createElementVNode("div",m8,[(e.openBlock(),e.createBlock(s,{key:l.filterKey,width:"98.9%",class:"filter-mobile","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!0,"filter-type":l.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:l.tournamentsToFilter,"onUpdate:filters":l.onFiltersTournamentsTops},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"]))]),e.createElementVNode("div",p8,[(e.openBlock(),e.createBlock(s,{ref:"personalDataFilter",key:`personal-${l.filterKey}`,class:"filter-mobile","button-filter-props":l.filterButtonProps,"filter-type":l.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",width:"98.9%",season:null,"onUpdate:filters":l.onFiltersPersonalData},null,8,["button-filter-props","filter-type","onUpdate:filters"]))]),e.createElementVNode("button",{class:e.normalizeClass(["search-button",{"search-button-active":l.isSearchButtonActive}]),onClick:a[2]||(a[2]=(...d)=>l.handleSearch&&l.handleSearch(...d))}," Buscar ",2)]),e.createElementVNode("div",u8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=d=>l.searchQuery=d),type:"text",placeholder:"Filtrar jugador por nombre"},null,512),[[e.vModelText,l.searchQuery]]),l.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:a[4]||(a[4]=(...d)=>l.clearSearch&&l.clearSearch(...d))},a[12]||(a[12]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)]))):e.createCommentVNode("",!0)])]),e.createElementVNode("div",f8,[a[14]||(a[14]=e.createElementVNode("div",{class:"table-header"},[e.createElementVNode("div",{class:"header-cell checkbox-cell"}),e.createElementVNode("div",{class:"header-cell"},"Jugadores"),e.createElementVNode("div",{class:"header-cell"},"Equipo"),e.createElementVNode("div",{class:"header-cell"},"Posición"),e.createElementVNode("div",{class:"header-cell"},"Edad"),e.createElementVNode("div",{class:"header-cell"},"Liga"),e.createElementVNode("div",{class:"header-cell"},"Minutos")],-1)),e.createElementVNode("div",h8,[l.isLoadingPlayers?(e.openBlock(),e.createElementBlock("div",y8,a[13]||(a[13]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("span",null,"Buscando jugadores...",-1)]))):l.hasSearched?!l.isLoadingPlayers&&l.players.length===0?(e.openBlock(),e.createElementBlock("div",b8," No se encontraron resultados para tu búsqueda ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.filteredPlayers,d=>(e.openBlock(),e.createElementBlock("div",{class:"table-row",key:d.id},[e.createElementVNode("div",S8,[e.createElementVNode("input",{type:"checkbox",class:"checkbox-player",checked:l.selectedPlayers.has(d.id),onChange:c=>l.handlePlayerSelection(d.id)},null,40,_8)]),e.createElementVNode("div",C8,[e.createElementVNode("img",{src:d.photo,class:"player-avatar"},null,8,E8),e.createElementVNode("span",null,e.toDisplayString(d.name),1)]),e.createElementVNode("div",w8,[e.createElementVNode("img",{src:d.team.logo,class:"team-logo"},null,8,k8)]),e.createElementVNode("div",V8,e.toDisplayString(d.position),1),e.createElementVNode("div",N8,e.toDisplayString(d.age),1),e.createElementVNode("div",x8,e.toDisplayString(d.team.tournament),1),e.createElementVNode("div",B8,e.toDisplayString(d.minutes_played),1)]))),128)):(e.openBlock(),e.createElementBlock("div",g8,' Haz click en "Buscar" para aplicar tus filtros '))])])])),e.createElementVNode("div",F8,[l.currentStep===1?(e.openBlock(),e.createElementBlock("div",T8,[e.createElementVNode("button",{class:"cancelar",onClick:a[5]||(a[5]=(...d)=>l.closeModal&&l.closeModal(...d))},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["siguiente",{disabled:!l.isValidPlaylistName||!l.playlistData.position}]),onClick:a[6]||(a[6]=(...d)=>l.handleNext&&l.handleNext(...d)),disabled:!l.isValidPlaylistName||!l.playlistData.position}," Siguiente ",10,M8)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",A8,[l.selectedPlayers.size===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a[15]||(a[15]=e.createElementVNode("span",{class:"bold"},"No tienes",-1)),a[16]||(a[16]=e.createTextVNode(" jugadores seleccionados. "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",L8,"Tienes "+e.toDisplayString(l.selectedPlayers.size),1),e.createTextVNode(" "+e.toDisplayString(l.selectedPlayers.size===1?"jugador seleccionado":"jugadores seleccionados")+". ",1)],64))]),e.createElementVNode("div",P8,[e.createElementVNode("button",{class:"cancelar",onClick:a[7]||(a[7]=(...d)=>l.closeModal&&l.closeModal(...d))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[8]||(a[8]=(...d)=>l.handleCreatePlaylist&&l.handleCreatePlaylist(...d))}," Crear lista ")])],64))])],512)])):e.createCommentVNode("",!0)]),_:1})}const I8=Ee(X5,[["render",D8],["__scopeId","data-v-38fcce1e"]]),R8={name:"ModalCreatePlayList",components:{GSCDropdown:Gl},props:{isVisible:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},seasons:{type:Array,required:!0},teamId:{type:Number,required:!0},listData:{type:Object,default:null},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0}},setup(t,{emit:a}){const o=e.ref({id:0,name:"Selecciona un template para tu lista..."}),l=e.ref(0),r=e.ref(null),i=e.ref([]),n=e.ref({title:"",templateId:""}),s=e.ref(0),d=()=>{r.value&&(s.value=r.value.offsetWidth)},c=g=>{document.body.style.overflow=g?"hidden":"auto"},f="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",p=()=>{d(),t.isVisible&&c(!0)},y=()=>{n.value={title:"",templateId:""},a("close")},h=g=>{n.value.templateId=g.id},u=async()=>{var g,_;if(!(!n.value.title||!n.value.templateId))try{const B=X.create({headers:{Authorization:`${f}`}}),I=(g=t.listData)==null?void 0:g.id;(await B.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${I}`,{user_id:t.userId,template:i.value.find(z=>z.id===n.value.templateId),name:n.value.title,id:I,players:(_=t.listData)==null?void 0:_.players})).status===200&&(a("next",n.value),y())}catch(B){console.error("Error al actualizar la lista:",B)}},m=async()=>{try{const _=await X.create({headers:{Authorization:`${f}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${t.userTeamId}/templates?general=1`);i.value=_.data.data,i.value.unshift({id:0,name:"Selecciona un template para tu lista..."})}catch(g){console.error("Error al obtener templates:",g)}};return e.onMounted(()=>{window.addEventListener("resize",p),m()}),e.onUnmounted(()=>{window.removeEventListener("resize",p),c(!1)}),e.watch(()=>t.isVisible,g=>{g?(setTimeout(d,0),c(!0),o.value.name=t.listData.name,n.value.title=t.listData.name,o.value.id=t.listData.template,n.value.templateId=t.listData.template,l.value=i.value.findIndex(_=>_.id===n.value.templateId)):c(!1)}),{modalContent:r,playlistData:n,modalWidth:s,closeModal:y,handleNext:u,templates:i,onInputTemplate:h,selectedTemplate:o,selectedTemplateKey:l}}},v8={class:"modal-header"},O8={class:"modal-body"},z8={class:"dropdown-container"},U8={class:"selected-item"},j8={class:"available-item"},$8={class:"modal-footer"},H8={class:"buttons-container buttons-container-step1"},W8=["disabled"];function G8(t,a,o,l,r,i){const n=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:a[5]||(a[5]=(...s)=>l.closeModal&&l.closeModal(...s))},[e.createElementVNode("div",{class:"modal-content",onClick:a[4]||(a[4]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",v8,[a[7]||(a[7]=e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3214_107704)"},[e.createElementVNode("path",{d:"M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3214_107704"},[e.createElementVNode("rect",{width:"18",height:"18",fill:"white"})])])]),e.createElementVNode("h2",null,"Editar lista")],-1)),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>l.closeModal&&l.closeModal(...s))},a[6]||(a[6]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),e.createElementVNode("div",O8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>l.playlistData.title=s),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.createElementVNode("div",z8,[e.createVNode(n,{items:l.templates,"list-alignment":"left",height:"40px",width:"100%","background-color":"#2e3b46",arrowColor:"#fff",color:"#FFF","list-height":"200px","list-background-color":"#2E3B46","list-item-color":"#FFF","is-list-same-width":"true",hoverBackgroundColor:"#4a5b69",listItemSelectedBackgroundColor:"#576978",listBorderRadius:"5px",listBorderColor:"rgba(255, 255, 255, 0.2)","border-color":"rgba(255, 255, 255, 0.2)","border-radius":8,onInput:l.onInputTemplate,defaultItemByIndex:l.selectedTemplateKey},{default:e.withCtx(({selectedItem:s})=>[e.createElementVNode("div",U8,e.toDisplayString(s&&s.name&&l.playlistData.position!==0?s.name:"Selecciona un template para tu lista..."),1)]),availableItem:e.withCtx(({item:s})=>[e.createElementVNode("div",j8,e.toDisplayString(s.name),1)]),_:1},8,["items","onInput","defaultItemByIndex"])])]),e.createElementVNode("div",$8,[e.createElementVNode("div",H8,[e.createElementVNode("button",{class:"cancelar",onClick:a[2]||(a[2]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[3]||(a[3]=(...s)=>l.handleNext&&l.handleNext(...s)),disabled:!l.playlistData.title||!l.playlistData.templateId}," Guardar ",8,W8)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const q8=Ee(R8,[["render",G8],["__scopeId","data-v-b18b3b3c"]]),Z8={name:"ModalCreatePlayList",components:{GSCFilters:jl},props:{isVisible:{type:Boolean,default:!1},seasons:{type:Array,required:!0},teamId:{type:Number,required:!0},userId:{type:Number,default:0},playerId:{type:Number,default:0},positionId:{type:Number,default:0},listId:{type:Number,required:!0}},setup(t,{emit:a}){const o=e.ref($l()),l=e.ref(null),r=e.ref(2),i=e.ref({title:"",position:""}),n=e.ref(0),s=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"]]),d=e.ref(!1),c=e.ref([]),f=e.ref([]),p=e.ref([]),y=e.ref(!1),h=e.ref(new Set),u=e.ref({tournaments:[],personalData:[]}),m=e.ref(null),g=e.ref(!0),_=e.ref(!1),B=e.ref(""),I=e.ref(0),G="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",z=()=>{l.value&&(n.value=l.value.offsetWidth)},H=S=>{document.body.style.overflow=S?"hidden":"auto"},q=e.ref(null),Z=()=>{z(),t.isVisible&&H(!0)},oe=()=>{i.value={title:"",position:""},q.value&&(q.value.clearFilters(ce.ALL),q.value.clearFilters(ce.AGE_RANGE),q.value.clearFilters(ce.YEAR),q.value.clearFilters(ce.NATIONALITY),q.value.clearFilters(ce.POSITION)),_t.forEach(S=>{S.isSelected=S.name==="Liga MX",S.seasons.forEach(M=>{M.isSelected=S.name==="Liga MX"})}),h.value.clear(),I.value++,B.value="",_.value=!1,g.value=!0,m.value=null,f.value=[],p.value=[],a("close")},v=()=>{if(r.value===1){if(!i.value.title||!i.value.position)return;r.value=2,g.value=!0,m.value=null}},A=async()=>{try{d.value=!0;const M=await X.create({headers:{Authorization:`${G}`}}).get("https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/templates");c.value=M.data.data}catch(S){console.error("Error al cargar templates:",S)}finally{d.value=!1}};e.onMounted(()=>{A(),window.addEventListener("resize",Z)}),e.onUnmounted(()=>{window.removeEventListener("resize",Z),H(!1)}),e.watch(()=>t.isVisible,S=>{S?(setTimeout(z,0),H(!0),setTimeout(()=>{g.value=!0,m.value=null,de()},100)):H(!1)});const R=e.computed(()=>({...o.value})),P=async S=>{u.value.tournaments=S,ae()},J=async S=>{u.value.personalData=S,ae()},ae=()=>{if(!m.value){g.value=!0;return}const S=JSON.stringify(u.value)!==JSON.stringify(m.value);g.value=S},de=async()=>{var S,M,N,V,C,x;if(g.value){_.value=!0;try{const E=u.value.tournaments.find(T=>T.isSelected===!0);if(E&&E.seasons.length>0){const T=E.seasons[0];y.value=!0,f.value=[];try{let ge=[...(await X.create({headers:{Authorization:`${G}`}}).get(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${T.id}`)).data.players.map(W=>{var le;return{id:W.player_id,name:F(W.player_name),name_full:W.player_name,photo:W.player_photo||"https://golstatsimages.blob.core.windows.net/players-profile/default.png",position:s.get(W.position_id)||"No especificada",position_id:W.position_id||0,age:W.age||"-",dob:W.dob||"-",jersey:W.jersey||0,nationality:W.nationality||"",is_female:W.is_female,nationality_id:W.nationality_id||0,minutes_played:W.minutes_played||0,team_id:W.team_id,team:{logo:`https://golstatsimages.blob.core.windows.net/teams-80/${W.team_id}.png`,shortName:((le=W.team)==null?void 0:le.shortName)||"-",tournament:E.name||"No especificada"},isSelected:h.value.has(W.player_id)}})];if((S=u.value.personalData)!=null&&S.ageByRange&&(ge=ge.filter(W=>{const le=parseInt(W.age);return!isNaN(le)&&le>=u.value.personalData.ageByRange.min&&le<=u.value.personalData.ageByRange.max})),(M=u.value.personalData)!=null&&M.year){const W=u.value.personalData.year;ge=ge.filter(le=>le.dob?parseInt(le.dob.substring(0,4))===W:!1)}if(((V=(N=u.value.personalData)==null?void 0:N.nationalities)==null?void 0:V.length)>0){const W=u.value.personalData.nationalities.filter(le=>le.isSelected).map(le=>le.id);W.length>0&&(ge=ge.filter(le=>W.includes(le.nationality_id)))}if(((x=(C=u.value.personalData)==null?void 0:C.positions)==null?void 0:x.length)>0){const W=u.value.personalData.positions.filter(le=>le.isSelected).map(le=>le.id);W.length>0&&(ge=ge.filter(le=>W.includes(le.position_id)))}f.value=ge;const Yl=new Set(p.value.map(W=>W.id)),Ra=ge.filter(W=>!Yl.has(W.id));Ra.length>0&&(p.value=[...p.value,...Ra]),m.value=JSON.parse(JSON.stringify(u.value)),g.value=!1}catch(U){console.error("Error al obtener jugadores:",U)}finally{y.value=!1}}}catch(E){console.error("Error al procesar la búsqueda:",E),y.value=!1}}},re=S=>{h.value.has(S)?h.value.delete(S):h.value.add(S)},F=S=>{if(!S)return"-";const[M,N]=S.split(",").map(C=>C.trim());if(!N)return S;const V=M.split(" ")[0];return`${N[0]}. ${V}`};e.watch(r,S=>{S===2&&(_.value=!1,g.value=!0,m.value=null)});const L=e.computed(()=>{if(!B.value)return f.value;const S=B.value.toLowerCase().trim();return f.value.filter(M=>M.name_full.toLowerCase().includes(S))});return{modalContent:l,currentStep:r,playlistData:i,modalWidth:n,isLoading:d,templates:c,players:f,allPlayers:p,isLoadingPlayers:y,positions:s,closeModal:oe,handleNext:v,filterButtonProps:R,filtersTypes:b,onFiltersTournamentsTops:P,tournamentsToFilter:_t,onFiltersPersonalData:J,isSearchButtonActive:g,handleSearch:de,handlePlayerSelection:re,selectedPlayers:h,hasSearched:_,searchQuery:B,filteredPlayers:L,clearSearch:()=>{B.value=""},handleCreatePlaylist:async()=>{try{const S={user_id:t.userId,id:t.listId,players:Array.from(h.value).map(V=>{const C=p.value.find(x=>x.id===V);return{player_id:V,name:C.name_full,position:C.position_id,dob:C.dob,team_id:C.team_id,jersey:C.jersey,nationality:C.nationality,nationality_id:C.nationality_id,is_female:C.is_female}})},N=await X.create({headers:{Authorization:`${G}`}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${t.listId}/players`,S);(N.status===200||N.status===201)&&(a("playlist-created",N.data),oe())}catch(S){console.error("Error al agregar jugadores a la lista:",S)}},filterKey:I,personalDataFilter:q}}},Y8={key:0,class:"modal-overlay"},J8={class:"modal-header"},K8={class:"title-section"},X8={key:0,class:"modal-body"},Q8=["value"],e6={key:1,disabled:""},t6={key:1,class:"modal-body"},a6={class:"search-section"},o6={class:"filters-row"},l6={class:"filter-container"},i6={class:"filter-container"},r6={class:"search-input"},n6={class:"players-table"},s6={class:"table-body"},d6={key:0,class:"loading-container"},c6={key:1,class:"no-results"},m6={key:2,class:"no-results"},p6={class:"cell checkbox-cell"},u6=["checked","onChange"],f6={class:"cell player-cell"},h6=["src"],y6={class:"cell team-cell"},g6=["src"],b6={class:"cell"},S6={class:"cell"},_6={class:"cell"},C6={class:"cell"},E6={class:"modal-footer"},w6={key:0,class:"buttons-container buttons-container-step1"},k6=["disabled"],V6={class:"selected-players-info"},N6={class:"bold"},x6={class:"buttons-container buttons-container-step2"},B6=["disabled"];function F6(t,a,o,l,r,i){const n=e.resolveComponent("GSCFilters");return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",Y8,[e.createElementVNode("div",{class:"modal-content",onClick:a[10]||(a[10]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",J8,[e.createElementVNode("div",K8,[a[11]||(a[11]=e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),e.createElementVNode("h2",null,e.toDisplayString(l.currentStep===1?"Crear nueva lista":"Agregar jugadores"),1)]),e.createElementVNode("button",{class:"close-button",onClick:a[0]||(a[0]=(...s)=>l.closeModal&&l.closeModal(...s))},a[12]||(a[12]=[e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)]))]),l.currentStep===1?(e.openBlock(),e.createElementBlock("div",X8,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>l.playlistData.title=s),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,l.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":a[2]||(a[2]=s=>l.playlistData.position=s),class:"select-position"},[a[13]||(a[13]=e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una posición para tu lista",-1)),l.isLoading?(e.openBlock(),e.createElementBlock("option",e6,"Cargando templates...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.templates,s=>(e.openBlock(),e.createElementBlock("option",{key:s.id,value:s.id},e.toDisplayString(s.name),9,Q8))),128))],512),[[e.vModelSelect,l.playlistData.position]])])):(e.openBlock(),e.createElementBlock("div",t6,[e.createElementVNode("div",a6,[e.createElementVNode("div",o6,[e.createElementVNode("div",l6,[(e.openBlock(),e.createBlock(n,{key:l.filterKey,width:"98.9%",class:"filter-mobile","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!0,"filter-type":l.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:l.tournamentsToFilter,"onUpdate:filters":l.onFiltersTournamentsTops},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"]))]),e.createElementVNode("div",i6,[(e.openBlock(),e.createBlock(n,{ref:"personalDataFilter",key:`personal-${l.filterKey}`,class:"filter-mobile","button-filter-props":l.filterButtonProps,"filter-type":l.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",width:"98.9%",season:null,"onUpdate:filters":l.onFiltersPersonalData},null,8,["button-filter-props","filter-type","onUpdate:filters"]))]),e.createElementVNode("button",{class:e.normalizeClass(["search-button",{"search-button-active":l.isSearchButtonActive}]),onClick:a[3]||(a[3]=(...s)=>l.handleSearch&&l.handleSearch(...s))}," Buscar ",2)]),e.createElementVNode("div",r6,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[4]||(a[4]=s=>l.searchQuery=s),type:"text",placeholder:"Filtrar jugador por nombre"},null,512),[[e.vModelText,l.searchQuery]]),l.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:a[5]||(a[5]=(...s)=>l.clearSearch&&l.clearSearch(...s))},a[14]||(a[14]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)]))):e.createCommentVNode("",!0)])]),e.createElementVNode("div",n6,[a[16]||(a[16]=e.createElementVNode("div",{class:"table-header"},[e.createElementVNode("div",{class:"header-cell checkbox-cell"}),e.createElementVNode("div",{class:"header-cell"},"Jugadores"),e.createElementVNode("div",{class:"header-cell"},"Equipo"),e.createElementVNode("div",{class:"header-cell"},"Posición"),e.createElementVNode("div",{class:"header-cell"},"Edad"),e.createElementVNode("div",{class:"header-cell"},"Liga"),e.createElementVNode("div",{class:"header-cell"},"Minutos")],-1)),e.createElementVNode("div",s6,[l.isLoadingPlayers?(e.openBlock(),e.createElementBlock("div",d6,a[15]||(a[15]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("span",null,"Buscando jugadores...",-1)]))):l.hasSearched?!l.isLoadingPlayers&&l.players.length===0?(e.openBlock(),e.createElementBlock("div",m6," No se encontraron resultados para tu búsqueda ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.filteredPlayers,s=>(e.openBlock(),e.createElementBlock("div",{class:"table-row",key:s.id},[e.createElementVNode("div",p6,[e.createElementVNode("input",{type:"checkbox",class:"checkbox-player",checked:l.selectedPlayers.has(s.id),onChange:d=>l.handlePlayerSelection(s.id)},null,40,u6)]),e.createElementVNode("div",f6,[e.createElementVNode("img",{src:s.photo,class:"player-avatar"},null,8,h6),e.createElementVNode("span",null,e.toDisplayString(s.name),1)]),e.createElementVNode("div",y6,[e.createElementVNode("img",{src:s.team.logo,class:"team-logo"},null,8,g6)]),e.createElementVNode("div",b6,e.toDisplayString(s.position),1),e.createElementVNode("div",S6,e.toDisplayString(s.age),1),e.createElementVNode("div",_6,e.toDisplayString(s.team.tournament),1),e.createElementVNode("div",C6,e.toDisplayString(s.minutes_played),1)]))),128)):(e.openBlock(),e.createElementBlock("div",c6,' Haz click en "Buscar" para aplicar tus filtros '))])])])),e.createElementVNode("div",E6,[l.currentStep===1?(e.openBlock(),e.createElementBlock("div",w6,[e.createElementVNode("button",{class:"cancelar",onClick:a[6]||(a[6]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[7]||(a[7]=(...s)=>l.handleNext&&l.handleNext(...s)),disabled:!l.playlistData.title||!l.playlistData.position}," Siguiente ",8,k6)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",V6,[l.selectedPlayers.size===0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a[17]||(a[17]=e.createElementVNode("span",{class:"bold"},"No tienes",-1)),a[18]||(a[18]=e.createTextVNode(" jugadores seleccionados. "))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",N6,"Tienes "+e.toDisplayString(l.selectedPlayers.size),1),e.createTextVNode(" "+e.toDisplayString(l.selectedPlayers.size===1?"jugador seleccionado":"jugadores seleccionados")+". ",1)],64))]),e.createElementVNode("div",x6,[e.createElementVNode("button",{class:"cancelar",onClick:a[8]||(a[8]=(...s)=>l.closeModal&&l.closeModal(...s))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:a[9]||(a[9]=(...s)=>l.handleCreatePlaylist&&l.handleCreatePlaylist(...s)),disabled:l.selectedPlayers.size===0}," Agregar a lista ",8,B6)])],64))])],512)])):e.createCommentVNode("",!0)]),_:1})}const T6=Ee(Z8,[["render",F6],["__scopeId","data-v-5633ee9c"]]),M6={name:"ModalDeleteLista",data(){return{show:!1}},methods:{open(){this.show=!0},close(){this.show=!1,this.$emit("close")},handleDelete(){this.$emit("confirm-delete-lista"),this.close()}}},A6={key:0,class:"modal-wrapper"},L6={class:"modal-overlay"},P6={class:"modal-content"},D6={class:"modal-actions"};function I6(t,a,o,l,r,i){return r.show?(e.openBlock(),e.createElementBlock("div",A6,[e.createElementVNode("div",L6,[e.createElementVNode("div",{class:"modal-container",onClick:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",P6,[a[3]||(a[3]=e.createStaticVNode('<div class="modal-header" data-v-74c67ee0><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar playlist" class="icon-trash" data-v-74c67ee0><span data-v-74c67ee0>Eliminar Lista</span></div><div class="separator" data-v-74c67ee0></div><p class="modal-message" data-v-74c67ee0> ¿Estás seguro que deseas eliminar<br data-v-74c67ee0> esta lista? Si lo haces no hay manera<br data-v-74c67ee0> de recuperala. </p><div class="separator" data-v-74c67ee0></div>',4)),e.createElementVNode("div",D6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("close"))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.handleDelete&&i.handleDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const R6=Ee(M6,[["render",I6],["__scopeId","data-v-74c67ee0"]]),v6={name:"ModalDeletePlayers",data(){return{show:!1}},methods:{open(){this.show=!0},close(){this.show=!1,this.$emit("close")},handleDelete(){this.$emit("confirm-delete"),this.close()}}},O6={key:0,class:"modal-wrapper"},z6={class:"modal-content"},U6={class:"modal-actions"};function j6(t,a,o,l,r,i){return r.show?(e.openBlock(),e.createElementBlock("div",O6,[e.createElementVNode("div",{class:"modal-overlay",onClick:a[3]||(a[3]=n=>t.$emit("close"))},[e.createElementVNode("div",{class:"modal-container",onClick:a[2]||(a[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",z6,[a[4]||(a[4]=e.createStaticVNode('<div class="modal-header" data-v-44fad697><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-44fad697><span data-v-44fad697>Eliminar jugadores</span></div><div class="separator" data-v-44fad697></div><p class="modal-message" data-v-44fad697> ¿Estás seguro que deseas eliminar a<br data-v-44fad697> estos jugadores de la lista? </p><div class="separator" data-v-44fad697></div>',4)),e.createElementVNode("div",U6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("close"))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.handleDelete&&i.handleDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const $6=Ee(v6,[["render",j6],["__scopeId","data-v-44fad697"]]),H6={name:"ModalDeletePlayers",props:{modelValue:{type:Boolean,required:!0}},methods:{confirmDelete(){this.$emit("confirm-delete"),this.$emit("update:modelValue",!1)}}},W6={key:0,class:"modal-wrapper"},G6={class:"modal-container"},q6={class:"modal-content"},Z6={class:"modal-actions"};function Y6(t,a,o,l,r,i){return o.modelValue?(e.openBlock(),e.createElementBlock("div",W6,[e.createElementVNode("div",{class:"modal-overlay",onClick:a[2]||(a[2]=n=>t.$emit("update:modelValue",!1))},[e.createElementVNode("div",G6,[e.createElementVNode("div",q6,[a[3]||(a[3]=e.createStaticVNode('<div class="modal-header" data-v-f93914a4><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-f93914a4><span data-v-f93914a4>Eliminar jugadores</span></div><div class="separator" data-v-f93914a4></div><p class="modal-message" data-v-f93914a4> ¿Estás seguro que deseas eliminar a<br data-v-f93914a4> estos jugadores de la lista? </p><div class="separator" data-v-f93914a4></div>',4)),e.createElementVNode("div",Z6,[e.createElementVNode("button",{class:"btn-cancel",onClick:a[0]||(a[0]=n=>t.$emit("update:modelValue",!1))},"Cancelar"),e.createElementVNode("button",{class:"btn-delete",onClick:a[1]||(a[1]=(...n)=>i.confirmDelete&&i.confirmDelete(...n))},"Eliminar")])])])])])):e.createCommentVNode("",!0)}const J6=Ee(H6,[["render",Y6],["__scopeId","data-v-f93914a4"]]);function K6(t){const a=e.ref({width:0,height:0});function o(){const l=t.value.getBoundingClientRect();a.value.width=l.width,a.value.height=l.height}return e.onMounted(()=>{o(),window.addEventListener("resize",o)}),e.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Ia={name:"GSCList",props:{userId:{type:Number,default:0},userTeamId:{type:Number,default:1}},components:{GridView:mr,ListView:Vs,ModalCreatePlaylist:I8,ModalEditarLista:q8,ModalAddPlayers:T6,ModalDeleteLista:R6,ModalDeletePlayers:$6,ModalDeletePlayer:J6},data(){return{modalVisible:!1,modalEditarVisible:!1,modalAddPlayersVisible:!1,modalDeleteVisible:!1,modalCompareVisible:!1,selectedListId:null,selectedListName:"",activeItem:null,activeTooltip:null,viewMode:"grid",searchText:"",tooltipY:0,listExistingNames:[],isGeneral:!1,positions: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"]]),positionsFemale:new Map([[1,"Portera"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensiva"],[8,"Volante ofensiva"],[9,"Delantera"],[10,"Desconocida"]]),token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lists:[],templates:{},showDeleteModal:!1,selectedPlayersToDelete:[],hasSelectedPlayers:!1,currentListIndex:null,selectedListData:null,statsLoaded:!1,originalOverflow:null,isScrollLocked:!1}},setup(){const t=e.ref(null),{elementSize:a}=K6(t);return{elementSize:a,myDivRefList:t}},computed:{isMobileLayout(){return this.elementSize.width<768},isCompactLayout(){return this.elementSize.width<768},searchCompact(){return this.elementSize.width<1e3},searchCloseCompact(){return this.elementSize.width<920},smallMobileCompact(){return this.elementSize.width<480},tooltipStyle(){return this.smallMobileCompact?{top:`${this.tooltipY}px`,transform:"translateX(-50%)"}:{}},filteredLists(){let t=this.lists;if(this.searchText){const a=this.searchText.toLowerCase();t=t.filter(o=>o.name.toLowerCase().includes(a))}return t.sort((a,o)=>new Date(o.originalDate)-new Date(a.originalDate))},currentTemplateCategories(){if(this.activeItem===null)return[];const t=this.lists.find(o=>o.id===this.activeItem);if(!t)return[];const a=this.templates[t.template];return!a||!a.variables?[]:a.variables.map(o=>({id:o.id,id_variable:o.custom_id,parameters:o.parameters&&(Array.isArray(o.parameters)&&o.parameters.length>0||typeof o.parameters=="object"&&Object.keys(o.parameters).length>0)?o.parameters:"no",name:o.name}))},isAnyListInDeleteMode(){return this.lists.some(t=>t.deleteActive)},isCurrentListGeneral(){if(!this.activeItem)return!1;const t=this.lists.find(a=>a.id===this.activeItem);return t?t.position.toLowerCase()==="info general":!1}},methods:{handleViewProfile(t){this.$emit("showProfile",t)},handleDeleteFromList(t){let a={player_id:t.player_id,name:t.player_name,position:t.position_name};this.handleDeletePlayer(a)},showGraph(t,a){this.$emit("showGraph",{data:t,templateId:a.template})},async fetchUserLists(){try{await this.fetchTemplates();const a=await X.create({headers:{Authorization:`${this.token}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed`);this.listExistingNames=a.data.data.map(l=>l.name.toLowerCase());const o=a.data.data.sort((l,r)=>new Date(r.created_at)-new Date(l.created_at));this.lists=o.map(l=>{var r,i,n,s,d;return{id:l.id,name:l.name,position:((n=this.templates[((r=l.template)==null?void 0:r.id)||((i=l.template_id)==null?void 0:i.id)])==null?void 0:n.name)||"Sin template",template:((s=l.template)==null?void 0:s.id)||((d=l.template_id)==null?void 0:d.id),createdAt:this.formatDate(l.created_at),originalDate:l.created_at,deleteActive:!1,players:(l.players||[]).map(c=>({...c,position:c.is_female?this.positionsFemale.get(c.position)||"Desconocida":this.positions.get(c.position)||"Desconocida",name:c.name.split(",").map(f=>f.trim().split(" ")[0]).reverse().join(" "),photo:`https://golstatsimages.blob.core.windows.net/players-profile/${c.player_id}.png`,countryFlag:c.nationality_id?`https://golstatsimages.blob.core.windows.net/flags/${c.nationality_id}.jpg`:"",nationality:c.nationality})),playerStats:{}}})}catch(t){console.error("Error al obtener las listas:",t)}},async fetchTemplates(){try{const a=await X.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.userTeamId}/templates?general=1`),o={};a.data.data.forEach(l=>{o[l.id]=l}),this.templates=o}catch(t){console.error("Error al obtener los templates:",t)}},getOriginalList(t){return this.lists.find(a=>a.id===t)},toggleItem(t,a){if(this.isAnyListInDeleteMode&&!this.getOriginalList(t).deleteActive){a.preventDefault();return}this.activeItem===t?this.activeItem=null:(this.lists.forEach(o=>{o.deleteActive=!1}),this.statsLoaded=!1,this.activeItem=t,this.fetchPlayerStats(t))},async fetchPlayerStats(t){try{const o=await X.create({headers:{Authorization:`${this.token}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${t}/stats`),l=this.lists.findIndex(d=>d.id===t),r={},i={},n={};o.data.max.forEach(([d,c])=>{i[d]=parseInt(c)}),Object.entries(o.data.data).forEach(([d,c])=>{d!=="max"&&(r[d]={},c.forEach(f=>{const[p,,y,h,u]=f;r[d][p]={variable_id:p,value:y,max:i[p]||0,season:h,categories:u}}))}),Object.entries(o.data.additional_data).forEach(([d,c])=>{n[d]=c}),l!==-1&&(this.lists[l].playerStats=r,this.lists[l].additionalData=n),this.statsLoaded=!0}catch(a){console.error("Error fetching player stats:",a),this.statsLoaded=!0}},toggleViewMode(t){this.viewMode=t},toggleTooltip(t,a){this.activeTooltip===t?(this.activeTooltip=null,this.handleScroll(!1)):(this.activeTooltip!==null&&this.handleScroll(!1),this.activeTooltip=t,this.smallMobileCompact&&(this.tooltipY=a.clientY,this.handleScroll(!0))),a.stopPropagation()},editarLista(t){this.selectedListId=this.lists[t].id,this.selectedListData=this.lists[t],this.modalEditarVisible=!0,this.activeTooltip=null},closeModalEditar(){this.modalEditarVisible=!1,this.selectedListId=null},agregarJugadores(t){const a=this.filteredLists[t];this.currentListIndex=this.lists.findIndex(o=>o.id===a.id),this.selectedListId=a.id,this.modalAddPlayersVisible=!0,this.activeTooltip=null},closeModalAddPlayers(){this.modalAddPlayersVisible=!1,this.selectedListId=null},eliminarJugadores(t){const a=this.filteredLists[t];this.activeItem!==a.id&&this.toggleItem(a.id),this.lists.forEach(l=>{l.deleteActive=!1});const o=this.getOriginalList(a.id);o&&(o.deleteActive=!0),this.currentListIndex=this.lists.findIndex(l=>l.id===a.id),this.activeTooltip=null},async compararListas(t){const a=this.filteredLists[t],o=this.lists.find(r=>r.id===a.id);if(!o||!o.players){console.error("No se encontró la lista o no tiene jugadores");return}this.activeItem!==a.id&&(this.statsLoaded=!1,this.activeItem=a.id,await this.fetchPlayerStats(a.id));const l=o.players.map(r=>{var i,n,s,d,c,f,p,y,h,u;return{position:r.position,player_name:r.name,player_photo:r.photo,total:"-",id:r.player_id,player_age:this.calculateAge(r.dob),team_abrev:((n=(i=o.additionalData)==null?void 0:i[r.player_id])==null?void 0:n.team_abrev)||"-",team_name:((d=(s=o.additionalData)==null?void 0:s[r.player_id])==null?void 0:d.team_name)||"-",team_logo:`https://golstatsimages.blob.core.windows.net/teams-80/${r.team_id}.png`,position_name:r.position,player_position:r.position,player_country:Gt[`${r.nationality_id}`]||r.nationality,player_country_flag:r.countryFlag,player_games:((f=(c=o.additionalData)==null?void 0:c[r.player_id])==null?void 0:f.games_played)||0,player_min:((y=(p=o.additionalData)==null?void 0:p[r.player_id])==null?void 0:y.minutes)||0,league_name:"-",seasons:[...new Set(this.currentTemplateCategories.map(m=>{var g,_;return((_=(g=o.playerStats[r.player_id])==null?void 0:g[m.id_variable])==null?void 0:_.season)||[]}).flat())].filter(m=>m&&m!==0),season_id:((u=(h=o.additionalData)==null?void 0:h[r.player_id])==null?void 0:u.season_id)||0,stats:this.currentTemplateCategories.map(m=>{var g,_,B,I,G,z,H,q;return{category_id:((_=(g=o.playerStats[r.player_id])==null?void 0:g[m.id_variable])==null?void 0:_.variable_id)||null,custom_category_id:((I=(B=o.playerStats[r.player_id])==null?void 0:B[m.id_variable])==null?void 0:I.variable_id)||null,name:m.name,total:((z=(G=o.playerStats[r.player_id])==null?void 0:G[m.id_variable])==null?void 0:z.value)||0,seasons:((q=(H=o.playerStats[r.player_id])==null?void 0:H[m.id_variable])==null?void 0:q.season)||null}})}});this.$emit("compare-players",l),this.activeTooltip=null},calculateAge(t){if(!t)return"-";const a=new Date(t),o=new Date;let l=o.getFullYear()-a.getFullYear();const r=o.getMonth()-a.getMonth();return(r<0||r===0&&o.getDate()<a.getDate())&&l--,l},closeModalCompare(){this.modalCompareVisible=!1},eliminarLista(t){const a=this.filteredLists[t];this.selectedListId=a.id,this.selectedListName=a.name,this.$refs.deleteModal.open(),this.activeTooltip=null},closeModalDelete(){this.$refs.deleteModal.close(),this.selectedListId=null,this.selectedListName=""},closeModalDeletePlayers(){this.$refs.deleteModalPlayers.close()},closeModalDeletePlayer(){this.$refs.deleteModalPlayer.close()},async handleConfirmDeleteLista(){try{await X.create({headers:{Authorization:`${this.token}`}}).delete(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${this.selectedListId}`);const a=this.searchText;this.lists=this.lists.filter(o=>o.id!==this.selectedListId),this.$refs.deleteModal.close(),await this.fetchUserLists(),a&&(this.searchText=a)}catch(t){console.error("Error al eliminar la lista:",t),await this.fetchUserLists()}},async handleConfirmDeletePlayers(){try{const t=this.lists[this.currentListIndex],a=t.id,o={user_id:this.userId,players:this.selectedPlayersToDelete,id:a};await X.create({headers:{Authorization:`${this.token}`,"Content-Type":"application/json"}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${a}/players/delete`,o),t&&(t.players=t.players.filter(r=>!this.selectedPlayersToDelete.some(i=>i.player_id===r.player_id))),this.selectedPlayersToDelete=[],this.hasSelectedPlayers=!1,t&&(t.deleteActive=!1),this.$refs.deleteModalPlayers.close()}catch(t){console.error("Error al eliminar jugadores:",t)}},async handleConfirmDeletePlayer(){try{const t=this.lists.find(i=>i.id===this.activeItem);if(!t){console.error("No se encontró la lista activa");return}const a=t.id,o={user_id:this.userId,players:this.selectedPlayersToDelete,id:a};await X.create({headers:{Authorization:`${this.token}`,"Content-Type":"application/json"}}).put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${this.userId}/in-followed/${a}/players/delete`,o);const r=this.lists.findIndex(i=>i.id===a);if(r!==-1){const i=JSON.parse(JSON.stringify(this.lists[r]));i.players=i.players.filter(n=>!this.selectedPlayersToDelete.some(s=>s.player_id===n.player_id)),this.lists[r]=i}this.selectedPlayersToDelete=[],this.hasSelectedPlayers=!1,r!==-1&&(this.lists[r].deleteActive=!1)}catch(t){console.error("Error al eliminar jugadores:",t)}},formatDate(t){if(!t)return"";const a=new Date(t),o=a.getDate().toString().padStart(2,"0"),l=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"][a.getMonth()],r=a.getFullYear();return`${o} - ${l} - ${r}`},clearSearch(){this.searchText=""},cancelDelete(t){const a=this.filteredLists[t],o=this.getOriginalList(a.id);o&&(o.deleteActive=!1),this.hasSelectedPlayers=!1},handleShowGraph(t){this.$emit("showGraph",t)},handleSelectedPlayers(t){this.selectedPlayersToDelete=t,this.hasSelectedPlayers=t.length>0},handleSelectedPlayersToDelete(t){this.selectedPlayersToDelete=t,this.hasSelectedPlayers=t.length>0},updateSelectionStatus(t){this.hasSelectedPlayers=t},onOpenMedia(t){this.$emit("open-media",t)},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1},async handlePlaylistAddPlayer(t){try{const a=this.selectedListId,o=this.searchText;this.statsLoaded=!1,await this.fetchUserLists(),a&&(this.searchText=o,await this.$nextTick(),this.activeItem=a,await this.fetchPlayerStats(a),this.lists.find(r=>r.id===a)&&(this.filteredLists.some(i=>i.id===a)||(this.searchText=""))),this.closeModalAddPlayers()}catch(a){console.error("Error al recargar las listas:",a)}},handlePlaylistCreated(){try{this.fetchUserLists()}catch(t){console.error("Error al recargar las listas:",t)}},confirmDelete(t){if(!this.hasSelectedPlayers)return;const a=this.filteredLists[t];this.currentListIndex=this.lists.findIndex(o=>o.id===a.id),this.$refs.deleteModalPlayers.open()},handleListEdited(){this.closeModalEditar(),this.fetchUserLists()},handleScroll(t){t&&!this.isScrollLocked?(this.originalOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.documentElement.style.position="fixed",document.documentElement.style.width="100%",this.isScrollLocked=!0):!t&&this.isScrollLocked&&(document.documentElement.style.overflow="",document.body.style.overflow="",document.documentElement.style.position="",document.documentElement.style.width="",this.originalOverflow=null,this.isScrollLocked=!1)},closeTooltip(){this.activeTooltip!==null&&(this.activeTooltip=null,this.handleScroll(!1))},handleDeletePlayer(t){const a=this.lists.find(l=>l.id===this.activeItem);if(!a){console.error("No se encontró la lista activa");return}const o=a.players.find(l=>l.player_id===t.player_id);if(!o){console.error("No se encontró el jugador en la lista");return}this.userId,a.id,this.selectedPlayersToDelete=[o],this.hasSelectedPlayers=!0,this.showDeleteModal=!0},handleShowProfile(t){const a=this.lists.find(n=>n.id===this.activeItem);if(!a){console.error("No se encontró la lista activa");return}const o=a.players.find(n=>n.player_id===t.player_id);if(!o){console.error("No se encontró el jugador en la lista");return}const l=a.playerStats[o.player_id];let r=0;l&&Object.values(l).forEach(n=>{n.season!==null&&n.season!==void 0&&(r=n.season)});const i={team_id:o.team_id,player_id:o.player_id,seasons:r,season_id:t.season_id};this.$emit("showProfile",i)}},watch:{userId:{immediate:!0,handler(t){t&&t!==0&&this.fetchUserLists()}},smallMobileCompact(t){!t&&this.isScrollLocked&&this.handleScroll(!1)},activeTooltip(t){t===null&&this.isScrollLocked&&this.handleScroll(!1)},activeItem:{handler(t){this.isGeneral=this.isCurrentListGeneral}}},mounted(){const t=o=>{if(this.activeTooltip!==null){const l=document.querySelector(".tooltip-menu"),r=document.querySelector(".more-options");l&&!l.contains(o.target)&&r&&!r.contains(o.target)&&this.closeTooltip()}};document.addEventListener("click",t),this._handleGlobalClick=t;const a=o=>{o.key==="Escape"&&this.activeTooltip!==null&&this.closeTooltip()};document.addEventListener("keydown",a),this._handleEscape=a,this.fetchTemplates()},beforeUnmount(){this._handleGlobalClick&&document.removeEventListener("click",this._handleGlobalClick),this._handleEscape&&document.removeEventListener("keydown",this._handleEscape),this.isScrollLocked&&this.handleScroll(!1)}},ql=()=>{e.useCssVars(t=>({"5e6c1660":t.smallMobileCompact?"12px":"14px",f75ffe6c:(t.isMobileLayout,"8px"),"54aebd4c":t.isMobileLayout?"0":"8px","4d6ffde9":t.smallMobileCompact?"0 5px":"0 24px",e06ddc96:t.smallMobileCompact?"24px":"32px",15378808:t.smallMobileCompact?"4px":"24px",ea3b564e:t.smallMobileCompact?"16px":"20px",d6a405d6:t.smallMobileCompact?"32px":"40px","126d9108":t.smallMobileCompact?"128px":"160px","48e2602d":t.isMobileLayout?"13px":"14px","03ab8e4a":t.smallMobileCompact?"5px":"12px","5136470c":t.smallMobileCompact?"4px":"0px","4853cc94":t.searchCompact?t.isMobileLayout?t.smallMobileCompact?"calc(100% - 46px)":"calc(100% - 44px)":"88%":"93%","24bbbe99":t.isMobileLayout?"-10px -15px -15px -15px":"-15px -15px","2fe0f478":t.tooltipY+"px",db335a9c:t.searchCompact?t.searchCloseCompact?t.isMobileLayout?t.smallMobileCompact?"2%":"1%":"2.5%":"5%":"1%",42231746:t.isMobileLayout?"0":"16px",bf61d666:t.isMobileLayout?"-12px 0px 8px 0px":"-15px -15px 15px -15px","16affc6c":t.isMobileLayout?"7px":"16px","2781ef1c":(t.smallMobileCompact,"column"),"0e66f6ce":t.isMobileLayout?"100%":"150px","187a01e0":t.smallMobileCompact?"10px":"12px","6cd13b25":t.isMobileLayout?"center":"right","41ee5c3a":t.isMobileLayout?"0":"32px","41ccb8c4":t.isMobileLayout?"0":"48px",22003918:t.isMobileLayout&&!t.smallMobileCompact?"flex":"none","03176e36":t.isMobileLayout?"auto":"32px"}))},Zl=Ia.setup;Ia.setup=Zl?(t,a)=>(ql(),Zl(t,a)):ql;const X6={ref:"myDivRefList",class:"gsc-list"},Q6={class:"list-header"},e7={class:"list-count"},t7={class:"search-container"},a7={class:"search-box"},o7={class:"header-buttons"},l7=["disabled"],i7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r7=["stroke"],n7=["stroke"],s7=["stroke"],d7=["stroke"],c7=["disabled"],m7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p7=["stroke"],u7=["stroke"],f7=["stroke"],h7=["stroke"],y7=["stroke"],g7=["stroke"],b7={class:"search-container full-width"},S7={class:"search-box"},_7={class:"list-items"},C7={class:"list-name"},E7={class:"delete-mode-actions"},w7=["onClick"],k7=["disabled","onClick"],V7={key:0,class:"second-row-container"},N7={class:"delete-mode-actions"},x7=["onClick"],B7=["disabled","onClick"],F7={class:"delete-mode-actions mobile small"},T7=["onClick"],M7=["disabled","onClick"],A7=["onClick"],L7={class:"header-main-row"},P7={class:"item-title"},D7={class:"item-controls"},I7={class:"tooltip-container"},R7=["onClick"],v7=["onClick"],O7=["onClick"],z7=["onClick"],U7=["onClick"],j7=["onClick"],$7={key:0,class:"separator"},H7={key:1,class:"mobile-meta-info"},W7={key:0,class:"item-content"},G7={class:"expanded-container"},q7={key:0,class:"no-results"};function Z7(t,a,o,l,r,i){const n=e.resolveComponent("ModalCreatePlaylist"),s=e.resolveComponent("ModalEditarLista"),d=e.resolveComponent("ModalAddPlayers"),c=e.resolveComponent("ModalDeleteLista"),f=e.resolveComponent("ModalDeletePlayers"),p=e.resolveComponent("ModalDeletePlayer");return e.openBlock(),e.createElementBlock("div",X6,[e.createVNode(n,{isVisible:r.modalVisible,onClose:i.closeModal,seasons:[1922],"user-team-id":o.userTeamId,"team-id":2,"user-id":o.userId,"player-id":0,"position-id":9,"list-existing-names":r.listExistingNames,onPlaylistCreated:i.handlePlaylistCreated},null,8,["isVisible","onClose","user-team-id","user-id","list-existing-names","onPlaylistCreated"]),e.createVNode(s,{isVisible:r.modalEditarVisible,onClose:i.closeModalEditar,onNext:i.handleListEdited,"user-team-id":o.userTeamId,"user-id":o.userId,"list-id":r.selectedListId,"list-data":r.selectedListData},null,8,["isVisible","onClose","onNext","user-team-id","user-id","list-id","list-data"]),e.createVNode(d,{isVisible:r.modalAddPlayersVisible,onClose:i.closeModalAddPlayers,"user-id":o.userId,"list-id":r.selectedListId,onPlaylistCreated:i.handlePlaylistAddPlayer},null,8,["isVisible","onClose","user-id","list-id","onPlaylistCreated"]),e.createVNode(c,{ref:"deleteModal",onClose:i.closeModalDelete,onConfirmDeleteLista:i.handleConfirmDeleteLista},null,8,["onClose","onConfirmDeleteLista"]),e.createVNode(f,{ref:"deleteModalPlayers",onClose:i.closeModalDeletePlayers,onConfirmDelete:i.handleConfirmDeletePlayers},null,8,["onClose","onConfirmDelete"]),e.createVNode(p,{modelValue:r.showDeleteModal,"onUpdate:modelValue":a[0]||(a[0]=y=>r.showDeleteModal=y),onConfirmDelete:i.handleConfirmDeletePlayer},null,8,["modelValue","onConfirmDelete"]),r.activeTooltip!==null&&i.smallMobileCompact?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tooltip-overlay",onClick:a[1]||(a[1]=e.withModifiers(y=>r.activeTooltip=null,["stop"]))})):e.createCommentVNode("",!0),e.createElementVNode("div",Q6,[e.createElementVNode("div",{class:e.normalizeClass(["top-row",{compact:i.isCompactLayout}])},[e.createElementVNode("div",e7,e.toDisplayString(r.lists.length)+" "+e.toDisplayString(r.lists.length===1?"Lista":"Listas"),1),e.withDirectives(e.createElementVNode("div",t7,[e.createElementVNode("div",a7,[a[11]||(a[11]=e.createElementVNode("img",{class:"search-icon",src:"https://golstatsimages.blob.core.windows.net/todoelfut/search-svg.svg"},null,-1)),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[2]||(a[2]=y=>r.searchText=y),placeholder:"Buscar lista..."},null,512),[[e.vModelText,r.searchText]]),r.searchText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search-btn",onClick:a[3]||(a[3]=(...y)=>i.clearSearch&&i.clearSearch(...y))},a[10]||(a[10]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13 1L1 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M1 1L13 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):e.createCommentVNode("",!0)])],512),[[e.vShow,!i.isCompactLayout]]),e.createElementVNode("div",o7,[e.createElementVNode("button",{class:"create-list-btn",onClick:a[4]||(a[4]=(...y)=>i.openModal&&i.openModal(...y))},a[12]||(a[12]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-crear-lista.png"},null,-1),e.createTextVNode(" Crear lista ")])),e.createElementVNode("button",{class:e.normalizeClass(["view-mode-btn grid",{active:r.viewMode==="grid"}]),onClick:a[5]||(a[5]=y=>i.toggleViewMode("grid")),disabled:i.isAnyListInDeleteMode},[(e.openBlock(),e.createElementBlock("svg",i7,[e.createElementVNode("path",{d:"M10 3H3V10H10V3Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,r7),e.createElementVNode("path",{d:"M21 3H14V10H21V3Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,n7),e.createElementVNode("path",{d:"M21 14H14V21H21V14Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,s7),e.createElementVNode("path",{d:"M10 14H3V21H10V14Z",stroke:r.viewMode==="grid"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,d7)]))],10,l7),e.createElementVNode("button",{class:e.normalizeClass(["view-mode-btn list",{active:r.viewMode==="list"}]),onClick:a[6]||(a[6]=y=>i.toggleViewMode("list")),disabled:i.isAnyListInDeleteMode},[(e.openBlock(),e.createElementBlock("svg",m7,[e.createElementVNode("path",{d:"M8 6H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,p7),e.createElementVNode("path",{d:"M8 12H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,u7),e.createElementVNode("path",{d:"M8 18H21",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,f7),e.createElementVNode("path",{d:"M3 6H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,h7),e.createElementVNode("path",{d:"M3 12H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,y7),e.createElementVNode("path",{d:"M3 18H3.01",stroke:r.viewMode==="list"?"#CBEE6B":"#808080","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,g7)]))],10,c7)])],2),e.withDirectives(e.createElementVNode("div",b7,[e.createElementVNode("div",S7,[a[14]||(a[14]=e.createElementVNode("img",{class:"search-icon",src:"https://golstatsimages.blob.core.windows.net/todoelfut/search-svg.svg"},null,-1)),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[7]||(a[7]=y=>r.searchText=y),placeholder:"Buscar lista..."},null,512),[[e.vModelText,r.searchText]]),r.searchText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search-btn",onClick:a[8]||(a[8]=(...y)=>i.clearSearch&&i.clearSearch(...y))},a[13]||(a[13]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13 1L1 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M1 1L13 13",stroke:"#808080","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):e.createCommentVNode("",!0)])],512),[[e.vShow,i.isCompactLayout]])]),e.createElementVNode("div",_7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filteredLists,(y,h)=>(e.openBlock(),e.createElementBlock("div",{class:"list-item",key:y.id},[i.getOriginalList(y.id).deleteActive?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["delete-mode-header",{mobile:i.isMobileLayout,small:i.smallMobileCompact}])},[e.createElementVNode("div",{class:e.normalizeClass(["delete-mode-content",{mobile:i.isMobileLayout,small:i.smallMobileCompact}])},[i.isMobileLayout?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(["list-name mobile",{small:i.smallMobileCompact}])},e.toDisplayString(y.name),3),i.smallMobileCompact?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a[17]||(a[17]=e.createElementVNode("div",{class:"delete-mode-title mobile small"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",F7,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(h),["stop"])}," Cancelar ",8,T7),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(h),["stop"])}," Eliminar ",10,M7)])],64)):(e.openBlock(),e.createElementBlock("div",V7,[a[16]||(a[16]=e.createElementVNode("div",{class:"delete-mode-title"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",N7,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(h),["stop"])}," Cancelar ",8,x7),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(h),["stop"])}," Eliminar ",10,B7)])]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",C7,e.toDisplayString(y.name),1),a[15]||(a[15]=e.createElementVNode("div",{class:"delete-mode-title"}," Selecciona los jugadores que quieres eliminar de la lista ",-1)),e.createElementVNode("div",E7,[e.createElementVNode("button",{class:"cancel-btn",onClick:e.withModifiers(u=>i.cancelDelete(h),["stop"])}," Cancelar ",8,w7),e.createElementVNode("button",{class:e.normalizeClass(["delete-btn",{active:r.hasSelectedPlayers}]),disabled:!r.hasSelectedPlayers,onClick:e.withModifiers(u=>i.confirmDelete(h),["stop"])}," Eliminar ",10,k7)])],64))],2)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["item-header",{"mobile-layout":i.isMobileLayout,disabled:i.isAnyListInDeleteMode&&!i.getOriginalList(y.id).deleteActive}]),onClick:u=>i.toggleItem(y.id,u)},[e.createElementVNode("div",L7,[e.createElementVNode("div",P7,e.toDisplayString(y.name),1),e.createElementVNode("div",{class:e.normalizeClass(["meta-info",{"mobile-layout":i.isMobileLayout}])},[e.createElementVNode("span",null," "+e.toDisplayString(y.createdAt),1),e.createElementVNode("span",null," "+e.toDisplayString(y.position||"Sin template"),1)],2),e.createElementVNode("div",D7,[e.createElementVNode("div",I7,[e.createElementVNode("button",{class:"more-options",onClick:e.withModifiers(u=>i.toggleTooltip(h,u),["stop"])},a[18]||(a[18]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-options.png"},null,-1)]),8,R7),r.activeTooltip===h?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-menu",{mobile:i.smallMobileCompact}]),style:e.normalizeStyle(i.tooltipStyle),onClick:a[9]||(a[9]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.editarLista(h)},a[19]||(a[19]=[e.createStaticVNode('<svg width="16" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-69c7cc06><g clip-path="url(#clip0_3214_107704)" data-v-69c7cc06><path d="M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-69c7cc06></path><path d="M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-69c7cc06></path></g><defs data-v-69c7cc06><clipPath id="clip0_3214_107704" data-v-69c7cc06><rect width="18" height="18" fill="#CBEE6B" data-v-69c7cc06></rect></clipPath></defs></svg> Editar lista ',2)]),8,v7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.agregarJugadores(h)},a[20]||(a[20]=[e.createElementVNode("svg",{width:"17",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"#CBEE6B","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1),e.createTextVNode(" Agregar jugadores ")]),8,O7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.eliminarJugadores(h)},a[21]||(a[21]=[e.createElementVNode("svg",{width:"17",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"#CBEE6B","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1),e.createTextVNode(" Eliminar jugadores ")]),8,z7),e.createElementVNode("div",{class:"tooltip-item",onClick:u=>i.compararListas(h)},a[22]||(a[22]=[e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-69c7cc06><g clip-path="url(#clip0_2936_393289)" data-v-69c7cc06><mask id="mask0_2936_393289" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="18" height="18" data-v-69c7cc06><path d="M0 0H18V18H0V0Z" fill="#CBEE6B" data-v-69c7cc06></path></mask><g mask="url(#mask0_2936_393289)" data-v-69c7cc06><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 1.28571C2.7248 1.28571 1.28571 2.7248 1.28571 4.5V13.5C1.28571 15.2752 2.7248 16.7143 4.5 16.7143H13.5C15.2752 16.7143 16.7143 15.2752 16.7143 13.5V4.5C16.7143 2.7248 15.2752 1.28571 13.5 1.28571H4.5ZM0 4.5C0 2.01471 2.01471 0 4.5 0H13.5C15.9853 0 18 2.01471 18 4.5V13.5C18 15.9853 15.9853 18 13.5 18H4.5C2.01471 18 0 15.9853 0 13.5V4.5Z" fill="#CBEE6B" data-v-69c7cc06></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.9285 4.5C11.2835 4.5 11.5714 4.78782 11.5714 5.14286V11.3051L13.0453 9.83115C13.2964 9.58009 13.7035 9.58009 13.9546 9.83115C14.2055 10.0822 14.2055 10.4892 13.9546 10.7403L11.3831 13.3118C11.1992 13.4956 10.9227 13.5505 10.6825 13.451C10.4423 13.3515 10.2856 13.1171 10.2856 12.8571V5.14286C10.2856 4.78782 10.5735 4.5 10.9285 4.5Z" fill="#CBEE6B" data-v-69c7cc06></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.31723 4.54895C7.55745 4.64845 7.71408 4.88287 7.71408 5.14288V12.8572C7.71408 13.2121 7.42626 13.5 7.07122 13.5C6.71619 13.5 6.42837 13.2121 6.42837 12.8572V6.69487L4.95436 8.16887C4.70331 8.41993 4.29628 8.41993 4.04523 8.16887C3.79417 7.91782 3.79417 7.51079 4.04523 7.25974L6.61666 4.68831C6.80052 4.50445 7.07701 4.44945 7.31723 4.54895Z" fill="#CBEE6B" data-v-69c7cc06></path></g></g><defs data-v-69c7cc06><clipPath id="clip0_2936_393289" data-v-69c7cc06><rect width="18" height="18" fill="#CBEE6B" data-v-69c7cc06></rect></clipPath></defs></svg> Comparar ',2)]),8,U7),e.createElementVNode("div",{class:"tooltip-item delete",onClick:u=>i.eliminarLista(h)},a[23]||(a[23]=[e.createElementVNode("svg",{width:"19",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M3.64583 0.894444H3.7625V0.777778V0.116667H7.90417V0.777778V0.894444H8.02083H11.55V2.21667H10.9375H10.8208V2.33333V12.4444C10.8208 12.8284 10.6778 13.1952 10.4253 13.4646C10.173 13.7337 9.83248 13.8833 9.47917 13.8833H2.1875C1.83419 13.8833 1.49369 13.7337 1.24142 13.4646C0.988898 13.1952 0.845833 12.8284 0.845833 12.4444V2.33333V2.21667H0.729167H0.116667V0.894444H3.64583ZM2.1875 2.21667H2.07083V2.33333V12.4444V12.5611H2.1875H9.47917H9.59583V12.4444V2.33333V2.21667H9.47917H2.1875ZM4.9875 10.7722H3.7625V4.00556H4.9875V10.7722ZM7.90417 10.7722H6.67917V4.00556H7.90417V10.7722Z",fill:"#CBEE6B",stroke:"#CBEE6B","stroke-width":"0.233333"})],-1),e.createTextVNode(" Eliminar lista ")]),8,j7)],6)):e.createCommentVNode("",!0)]),e.createElementVNode("i",{class:e.normalizeClass(["arrow",{"arrow-up":r.activeItem===y.id}])},a[24]||(a[24]=[e.createElementVNode("img",{width:"23",src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-collapse@2x.png"},null,-1)]),2)])]),i.isMobileLayout?(e.openBlock(),e.createElementBlock("div",$7)):e.createCommentVNode("",!0),i.isMobileLayout?(e.openBlock(),e.createElementBlock("div",H7,[e.createElementVNode("span",null," "+e.toDisplayString(y.createdAt),1),e.createElementVNode("span",null," "+e.toDisplayString(y.position||"Sin template"),1)])):e.createCommentVNode("",!0)],10,A7),[[e.vShow,!i.getOriginalList(y.id).deleteActive]]),e.createVNode(e.Transition,{name:"expand"},{default:e.withCtx(()=>[r.activeItem===y.id?(e.openBlock(),e.createElementBlock("div",W7,[e.createElementVNode("div",G7,[e.createElementVNode("div",{class:e.normalizeClass(["expanded-content",{"list-view-margin":r.viewMode==="list"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.viewMode==="grid"?"GridView":"ListView"),{"is-general":r.isGeneral,categories:i.currentTemplateCategories,deleteActive:r.lists[h].deleteActive,players:y.players,playerStats:y.playerStats,playerAddtionalData:y.additionalData,"stats-loaded":r.statsLoaded,onShowGraph:[i.handleShowGraph,u=>i.showGraph(u,y)],onShowProfile:i.handleShowProfile,onViewProfile:i.handleViewProfile,onDeleteFromList:i.handleDeleteFromList,onChangeSelectedPlayers:i.handleSelectedPlayersToDelete,onSelectedPlayersToDelete:i.handleSelectedPlayers,onDeletePlayer:i.handleDeletePlayer,onUpdateSelection:i.updateSelectionStatus,onOpenMedia:i.onOpenMedia},null,40,["is-general","categories","deleteActive","players","playerStats","playerAddtionalData","stats-loaded","onShowGraph","onShowProfile","onViewProfile","onDeleteFromList","onChangeSelectedPlayers","onSelectedPlayersToDelete","onDeletePlayer","onUpdateSelection","onOpenMedia"]))],2)])])):e.createCommentVNode("",!0)]),_:2},1024)]))),128)),i.filteredLists.length===0&&r.searchText!=""?(e.openBlock(),e.createElementBlock("div",q7," No se encontraron listas que coincidan con tu búsqueda ")):e.createCommentVNode("",!0)])],512)}const Y7=Ee(Ia,[["render",Z7],["__scopeId","data-v-69c7cc06"]]),J7={class:"subcategory-group"},K7={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",J7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,l=>(e.openBlock(),e.createBlock(e.unref(Y),{key:l.id,modelValue:l.isSelected,"onUpdate:modelValue":r=>l.isSelected=r,label:l.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},X7=K(K7,[["__scopeId","data-v-ae6f3d72"]]),Q7={class:"filter-subcategories"},e9=Object.freeze(Object.defineProperty({__proto__:null,default:K({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("div",Q7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"filter-subcategories__group"},[e.createVNode(X7,{subcategoryGroup:l},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ot=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),t9={class:"details__header"},a9=Ot(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),o9={class:"details__header__checkbox"},l9={class:"details__body"},i9={class:"details__body__playing-as"},r9=["onClick"],n9={class:"details__header"},s9=Ot(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),d9={class:"details__header__checkbox"},c9={class:"details__body"},m9=Ot(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),p9={class:"details__body__game-section"},u9=["onClick"],f9={class:"details__body"},h9=Ot(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),y9={class:"details__body__game-section"},g9=["onClick"],b9=Object.freeze(Object.defineProperty({__proto__:null,default:K({__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 a=t;e.useCssVars(f=>({"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(()=>a.playingAs.every(f=>f.isSelected)),l=e.computed(()=>a.gameSections.every(f=>f.isSelected)),r=e.computed(()=>a.gameSections.reduce((f,p)=>(p.value<=3?f.firstHalf.push(p):f.secondHalf.push(p),f),{firstHalf:[],secondHalf:[]})),i=e.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function n(f){f?a.playingAs.forEach(p=>{p.isSelected=!0}):a.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function s(f){a.playingAs.filter(p=>p.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function d(f){a.gameSections.filter(p=>p.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function c(f){f?a.gameSections.forEach(p=>{p.isSelected=!0}):a.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(f,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",t9,[a9,e.createElementVNode("div",o9,[e.createVNode(e.unref(Y),{label:"Todos","model-value":o.value,"onUpdate:modelValue":n},null,8,["model-value"])])]),e.createElementVNode("div",l9,[e.createElementVNode("div",i9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.playingAs,(y,h)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${h}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>s(y)},e.toDisplayString(y.name),11,r9))),128))])]),e.createElementVNode("div",n9,[s9,e.createElementVNode("div",d9,[e.createVNode(e.unref(Y),{label:"Todos","model-value":l.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",c9,[m9,e.createElementVNode("div",p9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.firstHalf,(y,h)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${h}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>d(y)},e.toDisplayString(y.text),11,u9))),128))])]),e.createElementVNode("div",f9,[h9,e.createElementVNode("div",y9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.secondHalf,(y,h)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${h}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>d(y)},e.toDisplayString(y.text),11,g9))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),S9={class:"filter-field"},_9=Object.freeze(Object.defineProperty({__proto__:null,default:K({__name:"FilterField",setup(t){const a=e.ref(Array.from({length:16},(l,r)=>r+1));function o(){}return(l,r)=>(e.openBlock(),e.createElementBlock("div",S9,[e.createVNode(e.unref(Jo),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Te.GSCList=Y7,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|