@golstats/gsc-players-tracking 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-3d93eab5-82c17c03-BXsd98tt.js → FilterConditions-3d93eab5-82c17c03-cwhu2W-v.js} +1 -1
- package/dist/{FilterConditions-99cc2b67-BnF_aLzu-NGoVnRtN.js → FilterConditions-99cc2b67-CxpU9dUs-677-TPVZ.js} +1 -1
- package/dist/{FilterConditions-cd420512-BfLAFjRn-DcvWaOhv-VhNlLdQy.js → FilterConditions-cd420512-DCSDH7YW-B8jHT8XQ-D-QbJeJ4.js} +1 -1
- package/dist/{FilterField-1e367942-0e6856d1-BZ7qOhg8.js → FilterField-1e367942-0e6856d1-I62Q5XLx.js} +1 -1
- package/dist/{FilterField-8a93d757-C9w2vkFm-BbzN36mH.js → FilterField-8a93d757-u_-hP-2A-BPqofPuA.js} +1 -1
- package/dist/{FilterField-a29b1541-C0T1kF6j-BcwX1eqX-DBBNddAS.js → FilterField-a29b1541-CU71K4BQ-BkW7jQ6c-DfUAUT-a.js} +1 -1
- package/dist/{FilterSubcategories-107c6930-508e2c32-CpL9_ElE.js → FilterSubcategories-107c6930-508e2c32-CLrsK4DR.js} +1 -1
- package/dist/{FilterSubcategories-1f65c851-B6KmC3p2-CMPsZANJ-o_rIJf4l.js → FilterSubcategories-1f65c851-CWnk_SkS-DUUkFcIv-BFdwCdxY.js} +1 -1
- package/dist/{FilterSubcategories-a1b6596a-Da4lhwER-C77ptEAA.js → FilterSubcategories-a1b6596a-BCGSg5P1-DxlJUbXM.js} +1 -1
- package/dist/gsc-players-tracking.es.js +1 -1
- package/dist/gsc-players-tracking.umd.js +2 -2
- package/dist/{index-OzZ7SMxh.js → index-DS2I920K.js} +12 -12
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...a){const i=new this(o);return a.forEach(s=>i.set(s)),i}static accessor(o){const a=(this[Zh]=this[Zh]={accessors:{}}).accessors,i=this.prototype;function s(r){const l=Zi(r);a[l]||(fA(i,r),a[l]=!0)}return ie.isArray(o)?o.forEach(s):s(o),this}};vr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.reduceDescriptors(vr.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),ie.freezeMethods(vr);const Kt=vr;function ic(t,o){const a=this||ac,i=o||a,s=Kt.from(i.headers);let r=i.data;return ie.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function Yh(t){return!!(t&&t.__CANCEL__)}function Xo(t,o,a){we.call(this,t??"canceled",we.ERR_CANCELED,o,a),this.name="CanceledError"}ie.inherits(Xo,we,{__CANCEL__:!0});function Kh(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new we("Request failed with status code "+a.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function hA(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function yA(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let u=r,p=0;for(;u!==s;)p+=a[u++],u=u%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function gA(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const jr=(t,o,a=3)=>{let i=0;const s=yA(50,250);return gA(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(p)},a)},Xh=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},Qh=t=>(...o)=>ie.asap(()=>t(...o)),bA=mt.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,mt.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,_A=mt.hasStandardBrowserEnv?{write(t,o,a,i,s,r){const l=[t+"="+encodeURIComponent(o)];ie.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),ie.isString(i)&&l.push("path="+i),ie.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function SA(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function CA(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function ey(t,o,a){let i=!SA(o);return t&&(i||a==!1)?CA(t,o):o}const ty=t=>t instanceof Kt?{...t}:t;function co(t,o){o=o||{};const a={};function i(d,u,p,y){return ie.isPlainObject(d)&&ie.isPlainObject(u)?ie.merge.call({caseless:y},d,u):ie.isPlainObject(u)?ie.merge({},u):ie.isArray(u)?u.slice():u}function s(d,u,p,y){if(ie.isUndefined(u)){if(!ie.isUndefined(d))return i(void 0,d,p,y)}else return i(d,u,p,y)}function r(d,u){if(!ie.isUndefined(u))return i(void 0,u)}function l(d,u){if(ie.isUndefined(u)){if(!ie.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,p){if(p in o)return i(d,u);if(p in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,u,p)=>s(ty(d),ty(u),p,!0)};return ie.forEach(Object.keys(Object.assign({},t,o)),function(d){const u=c[d]||s,p=u(t[d],o[d],d);ie.isUndefined(p)&&u!==n||(a[d]=p)}),a}const ay=t=>{const o=co({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=Kt.from(l),o.url=Hh(ey(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(ie.isFormData(a)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(mt.hasStandardBrowserEnv&&(i&&ie.isFunction(i)&&(i=i(o)),i||i!==!1&&bA(o.url))){const d=s&&r&&_A.read(r);d&&l.set(s,d)}return o},wA=typeof XMLHttpRequest<"u",kA=wA&&function(t){return new Promise(function(o,a){const i=ay(t);let s=i.data;const r=Kt.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,p,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const _=Kt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),F={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:_,config:t,request:f};Kh(function(v){o(v),h()},function(v){a(v),h()},F),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new we("Request aborted",we.ECONNABORTED,t,f)),f=null)},f.onerror=function(){a(new we("Network Error",we.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||qh;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),a(new we(_,F.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&ie.forEach(r.toJSON(),function(_,F){f.setRequestHeader(F,_)}),ie.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([p,m]=jr(c,!0),f.addEventListener("progress",p)),n&&f.upload&&([u,y]=jr(n),f.upload.addEventListener("progress",u),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=_=>{f&&(a(!_||_.type?new Xo(null,t,f):_),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=hA(i.url);if(b&&mt.protocols.indexOf(b)===-1){a(new we("Unsupported protocol "+b+":",we.ERR_BAD_REQUEST,t));return}f.send(s||null)})},EA=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const u=d instanceof Error?d:this.reason;i.abort(u instanceof we?u:new Xo(u instanceof Error?u.message:u))}};let l=o&&setTimeout(()=>{l=null,r(new we(`timeout ${o} of ms exceeded`,we.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>ie.asap(n),c}},VA=EA,xA=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},NA=async function*(t,o){for await(const a of TA(t))yield*xA(a,o)},TA=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},oy=(t,o,a,i)=>{const s=NA(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){n(),c.close();return}let p=u.byteLength;if(a){let y=r+=p;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},Ur=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iy=Ur&&typeof ReadableStream=="function",BA=Ur&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),sy=(t,...o)=>{try{return!!t(...o)}catch{return!1}},FA=iy&&sy(()=>{let t=!1;const o=new Request(mt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),ry=64*1024,sc=iy&&sy(()=>ie.isReadableStream(new Response("").body)),Wr={stream:sc&&(t=>t.body)};Ur&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Wr[o]&&(Wr[o]=ie.isFunction(t[o])?a=>a[o]():(a,i)=>{throw new we(`Response type '${o}' is not supported`,we.ERR_NOT_SUPPORT,i)})})})(new Response);const PA=async t=>{if(t==null)return 0;if(ie.isBlob(t))return t.size;if(ie.isSpecCompliantForm(t))return(await new Request(mt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(t)||ie.isArrayBuffer(t))return t.byteLength;if(ie.isURLSearchParams(t)&&(t=t+""),ie.isString(t))return(await BA(t)).byteLength},$A=async(t,o)=>ie.toFiniteNumber(t.getContentLength())??PA(o),AA=Ur&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:u,withCredentials:p="same-origin",fetchOptions:y}=ay(t);d=d?(d+"").toLowerCase():"text";let m=VA([s,r&&r.toAbortSignal()],l),h;const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&FA&&a!=="get"&&a!=="head"&&(g=await $A(u,i))!==0){let T=new Request(o,{method:"POST",body:i,duplex:"half"}),z;if(ie.isFormData(i)&&(z=T.headers.get("content-type"))&&u.setContentType(z),T.body){const[D,P]=Xh(g,jr(Qh(c)));i=oy(T.body,ry,D,P)}}ie.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;h=new Request(o,{...y,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:b?p:void 0});let _=await fetch(h);const F=sc&&(d==="stream"||d==="response");if(sc&&(n||F&&f)){const T={};["status","statusText","headers"].forEach(Q=>{T[Q]=_[Q]});const z=ie.toFiniteNumber(_.headers.get("content-length")),[D,P]=n&&Xh(z,jr(Qh(n),!0))||[];_=new Response(oy(_.body,ry,D,()=>{P&&P(),f&&f()}),T)}d=d||"text";let v=await Wr[ie.findKey(Wr,d)||"text"](_,t);return!F&&f&&f(),await new Promise((T,z)=>{Kh(T,z,{data:v,headers:Kt.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:h})})}catch(b){throw f&&f(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,t,h),{cause:b.cause||b}):we.from(b,b&&b.code,t,h)}}),rc={http:q$,xhr:kA,fetch:AA};ie.forEach(rc,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const ly=t=>`- ${t}`,IA=t=>ie.isFunction(t)||t===null||t===!1,ny={getAdapter:t=>{t=ie.isArray(t)?t:[t];const{length:o}=t;let a,i;const s={};for(let r=0;r<o;r++){a=t[r];let l;if(i=a,!IA(a)&&(i=rc[(l=String(a)).toLowerCase()],i===void 0))throw new we(`Unknown adapter '${l}'`);if(i)break;s[l||"#"+r]=i}if(!i){const r=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=o?r.length>1?`since :
|
|
24
24
|
`+r.map(ly).join(`
|
|
25
25
|
`):" "+ly(r[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:rc};function lc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xo(null,t)}function dy(t){return lc(t),t.headers=Kt.from(t.headers),t.data=ic.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ny.getAdapter(t.adapter||ac.adapter)(t).then(function(o){return lc(t),o.data=ic.call(t,t.transformResponse,o),o.headers=Kt.from(o.headers),o},function(o){return Yh(o)||(lc(t),o&&o.response&&(o.response.data=ic.call(t,t.transformResponse,o.response),o.response.headers=Kt.from(o.response.headers))),Promise.reject(o)})}const cy="1.9.0",Hr={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Hr[t]=function(a){return typeof a===t||"a"+(o<1?"n ":" ")+t}});const py={};Hr.transitional=function(t,o,a){function i(s,r){return"[Axios v"+cy+"] Transitional option '"+s+"'"+r+(a?". "+a:"")}return(s,r,l)=>{if(t===!1)throw new we(i(r," has been removed"+(o?" in "+o:"")),we.ERR_DEPRECATED);return o&&!py[r]&&(py[r]=!0,console.warn(i(r," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,r,l):!0}},Hr.spelling=function(t){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function MA(t,o,a){if(typeof t!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],l=o[r];if(l){const n=t[r],c=n===void 0||l(n,r,t);if(c!==!0)throw new we("option "+r+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new we("Unknown option "+r,we.ERR_BAD_OPTION)}}const Gr={assertOptions:MA,validators:Hr},ua=Gr.validators;let qr=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Gh,response:new Gh}}async request(o,a){try{return await this._request(o,a)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
26
|
-
`+r):i.stack=r}catch{}}throw i}}_request(o,a){typeof o=="string"?(a=a||{},a.url=o):a=o||{},a=co(this.defaults,a);const{transitional:i,paramsSerializer:s,headers:r}=a;i!==void 0&&Gr.assertOptions(i,{silentJSONParsing:ua.transitional(ua.boolean),forcedJSONParsing:ua.transitional(ua.boolean),clarifyTimeoutError:ua.transitional(ua.boolean)},!1),s!=null&&(ie.isFunction(s)?a.paramsSerializer={serialize:s}:Gr.assertOptions(s,{encode:ua.function,serialize:ua.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Gr.assertOptions(a,{baseUrl:ua.spelling("baseURL"),withXsrfToken:ua.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let l=r&&ie.merge(r.common,r[a.method]);r&&ie.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),a.headers=Kt.concat(l,r);const n=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(c=c&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let u,p=0,y;if(!c){const h=[dy.bind(this),void 0];for(h.unshift.apply(h,n),h.push.apply(h,d),y=h.length,u=Promise.resolve(a);p<y;)u=u.then(h[p++],h[p++]);return u}y=n.length;let m=a;for(p=0;p<y;){const h=n[p++],f=n[p++];try{m=h(m)}catch(g){f.call(this,g);break}}try{u=dy.call(this,m)}catch(h){return Promise.reject(h)}for(p=0,y=d.length;p<y;)u=u.then(d[p++],d[p++]);return u}getUri(o){o=co(this.defaults,o);const a=ey(o.baseURL,o.url,o.allowAbsoluteUrls);return Hh(a,o.params,o.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){qr.prototype[t]=function(o,a){return this.request(co(a||{},{method:t,url:o,data:(a||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(co(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}qr.prototype[t]=o(),qr.prototype[t+"Form"]=o(!0)});const Jr=qr,zA=class g4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Xo(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new g4(function(a){o=a}),cancel:o}}};function OA(t){return function(o){return t.apply(null,o)}}function RA(t){return ie.isObject(t)&&t.isAxiosError===!0}const nc={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(nc).forEach(([t,o])=>{nc[o]=t});const LA=nc;function my(t){const o=new Jr(t),a=Fh(Jr.prototype.request,o);return ie.extend(a,Jr.prototype,o,{allOwnKeys:!0}),ie.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return my(co(t,i))},a}const Qe=my(ac);Qe.Axios=Jr,Qe.CanceledError=Xo,Qe.CancelToken=zA,Qe.isCancel=Yh,Qe.VERSION=cy,Qe.toFormData=Lr,Qe.AxiosError=we,Qe.Cancel=Qe.CanceledError,Qe.all=function(t){return Promise.all(t)},Qe.spread=OA,Qe.isAxiosError=RA,Qe.mergeConfig=co,Qe.AxiosHeaders=Kt,Qe.formToJSON=t=>Jh(ie.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=ny.getAdapter,Qe.HttpStatusCode=LA,Qe.default=Qe;const Yi=Qe,dc={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-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"}]},DA={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"},vA={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 Zr(t){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Zr(t)}function xa(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Ze(t,o){if(o.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+o.length+" present")}function ve(t){Ze(1,arguments);var o=Object.prototype.toString.call(t);return t instanceof Date||Zr(t)==="object"&&o==="[object Date]"?new Date(t.getTime()):typeof t=="number"||o==="[object Number]"?new Date(t):((typeof t=="string"||o==="[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 jA(t,o){Ze(2,arguments);var a=ve(t),i=xa(o);return isNaN(i)?new Date(NaN):(i&&a.setDate(a.getDate()+i),a)}function UA(t,o){Ze(2,arguments);var a=ve(t),i=xa(o);if(isNaN(i))return new Date(NaN);if(!i)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+i+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function Ki(t,o){if(Ze(2,arguments),!o||Zr(o)!=="object")return new Date(NaN);var a=o.years?xa(o.years):0,i=o.months?xa(o.months):0,s=o.weeks?xa(o.weeks):0,r=o.days?xa(o.days):0,l=o.hours?xa(o.hours):0,n=o.minutes?xa(o.minutes):0,c=o.seconds?xa(o.seconds):0,d=ve(t),u=i||a?UA(d,i+a*12):d,p=r||s?jA(u,r+s*7):u,y=n+l*60,m=c+y*60,h=m*1e3,f=new Date(p.getTime()+h);return f}function uy(t){var o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),t.getTime()-o.getTime()}function fy(t){Ze(1,arguments);var o=ve(t);return o.setHours(0,0,0,0),o}var WA=864e5;function HA(t,o){Ze(2,arguments);var a=fy(t),i=fy(o),s=a.getTime()-uy(a),r=i.getTime()-uy(i);return Math.round((s-r)/WA)}function Qo(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=a.getTime()-i.getTime();return s<0?-1:s>0?1:s}var GA=6e4,qA=36e5;function JA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=a.getFullYear()-i.getFullYear(),r=a.getMonth()-i.getMonth();return s*12+r}function ZA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o);return a.getFullYear()-i.getFullYear()}function hy(t,o){var a=t.getFullYear()-o.getFullYear()||t.getMonth()-o.getMonth()||t.getDate()-o.getDate()||t.getHours()-o.getHours()||t.getMinutes()-o.getMinutes()||t.getSeconds()-o.getSeconds()||t.getMilliseconds()-o.getMilliseconds();return a<0?-1:a>0?1:a}function YA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=hy(a,i),r=Math.abs(HA(a,i));a.setDate(a.getDate()-s*r);var l=+(hy(a,i)===-s),n=s*(r-l);return n===0?0:n}function cc(t,o){return Ze(2,arguments),ve(t).getTime()-ve(o).getTime()}var KA={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},XA="trunc";function pc(t){return KA[XA]}function QA(t,o,a){Ze(2,arguments);var i=cc(t,o)/qA;return pc()(i)}function eI(t,o,a){Ze(2,arguments);var i=cc(t,o)/GA;return pc()(i)}function tI(t){Ze(1,arguments);var o=ve(t);return o.setHours(23,59,59,999),o}function aI(t){Ze(1,arguments);var o=ve(t),a=o.getMonth();return o.setFullYear(o.getFullYear(),a+1,0),o.setHours(23,59,59,999),o}function oI(t){Ze(1,arguments);var o=ve(t);return tI(o).getTime()===aI(o).getTime()}function iI(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=Qo(a,i),r=Math.abs(JA(a,i)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Qo(a,i)===-s;oI(ve(t))&&r===1&&Qo(t,i)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function sI(t,o,a){Ze(2,arguments);var i=cc(t,o)/1e3;return pc()(i)}function rI(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=Qo(a,i),r=Math.abs(ZA(a,i));a.setFullYear(1584),i.setFullYear(1584);var l=Qo(a,i)===-s,n=s*(r-Number(l));return n===0?0:n}function lI(t){return Ze(1,arguments),ve(t).getFullYear()}function nI(t){Ze(1,arguments);var o=ve(t.start),a=ve(t.end);if(isNaN(o.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(rI(a,o));var s=Qo(a,o),r=Ki(o,{years:s*i.years});i.months=Math.abs(iI(a,r));var l=Ki(r,{months:s*i.months});i.days=Math.abs(YA(a,l));var n=Ki(l,{days:s*i.days});i.hours=Math.abs(QA(a,n));var c=Ki(n,{hours:s*i.hours});i.minutes=Math.abs(eI(a,c));var d=Ki(c,{minutes:s*i.minutes});return i.seconds=Math.abs(sI(a,d)),i}const dI=new Set([1]),cI={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,i=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){i.value&&(i.value.checked=a.modelValue)}function r(l){o("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},Xi=Oe(cI,[["__scopeId","data-v-e3a6ae4e"]]),po=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),pI={class:"personal-data"},mI={class:"personal-data__age"},uI={class:"personal-data__age__toggle"},fI={class:"personal-data__age__range"},hI={class:"personal-data__age__dropdown"},yI=po(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),gI={class:"selected-item"},bI=po(()=>e.createElementVNode("div",{class:"separator"},null,-1)),_I={class:"personal-data__nationality-position"},SI={key:0,class:"personal-data__nationality-position__switch"},CI=po(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),wI=po(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),kI={class:"personal-data__nationality-position__nationality"},EI=po(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),VI={class:"selected-item"},xI=po(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),NI={class:"selected-item"},TI={class:"personal-data__nationality-position__position"},BI=po(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),FI={class:"selected-item"},PI="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$I={__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:o,emit:a}){const i=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},r={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({...dc}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:dc.minAge,max:dc.maxAge}),u=e.ref(Gi),p=e.ref(""),y=e.ref(""),m=e.ref(l.value.availableYears[l.value.availableYears.length-1]),h=e.ref(0),f=e.computed(()=>{const k=l.value.nationalities?[...l.value.nationalities]:[];i.isSeleccion&&k.forEach(V=>{V.isSelected=V.id===138});const E=k[0];return(!E||E.id!==0)&&k.unshift(s),k}),g=e.computed(()=>{let k=(i.filter&&i.filter.positions?i.filter.positions:l.value.positions)?[...l.value.positions]:[];const E=k[0];return(!E||E.id!==0)&&k.unshift(r),k.sort((V,N)=>V.id-N.id),k}),b=e.computed(()=>i.season&&i.season.tournamentId&&dI.has(i.season.tournamentId)||i.filters&&i.filters.isEligibilitySwitchVisible);e.watch(f,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===f.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?p.value="Todas las nacionalidades":p.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(g,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===g.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?y.value="Todas las posiciones":y.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(()=>i.filters,k=>{if(k&&k.availableYears){const E=!Number.isNaN(Number(k.selectedYear));l.value=k,c.value=l.value.selectedYear&&E?1:0,m.value=E?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,r.isSelected=k.positions.every(V=>V.isSelected),P()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{P()}),e.watch(()=>i.season,k=>{k&&k.id!==h.value&&!i.awaitForFilters&&(h.value=k.id,_(k))},{immediate:!0,deep:!1});async function _(k){try{if(k&&k.id){const E=new Set,V=await v(k.id),N=new Date,Y=[],de=new Map,ue=new Map;V.forEach(C=>{const I=new Date(C.dob),U=lI(I),M=nI({start:I,end:N});de.has(C.nationality_id)||de.set(C.nationality_id,{id:C.nationality_id,isSelected:!0,name:DA[`${C.nationality_id}`]}),ue.has(C.position_id)||ue.set(C.position_id,{id:C.position_id,isSelected:!0,name:vA[`${C.position_id}`]}),E.add(U),Y.push(M.years)}),l.value.minAge=Math.min(...Y),l.value.maxAge=Math.max(...Y),l.value.availableYears=[...E].sort((C,I)=>I-C),m.value=l.value.availableYears[0],l.value.nationalities=[...de.values()],l.value.positions=[...ue.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(E){throw new Error(E)}}function F(k=null){const E=!k||k===ro.All;(E||k===ro.NATIONALITY)&&f.value.forEach(V=>{V.isSelected=!0}),(E||k===ro.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(E||k===ro.POSITION)&&g.value.forEach(V=>{V.isSelected=!0}),(E||k===ro.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(E||k===ro.YEAR)&&(m.value=i.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),P()}async function v(k){try{const E={Authorization:localStorage.getItem("user_token")||i.token},V={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:PI,N=await Yi.get(V+k,{headers:E});return N.data?N.data.players:[]}catch(E){return Promise.reject(E)}}function T(k){c.value=k.index,i.filters&&i.filters.availableYears&&k.index===0&&(i.filters.selectedYear="Sin límite")}function z(k){d.value.min=k.minValue,d.value.max=k.maxValue,P()}function D(k,E){E.id===0?f.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,f.value[0].isSelected=f.value.every((V,N)=>N===0?!0:V.isSelected))}function P(){const k=c.value===0,E={};k?(E.ageByRange=d.value,E.ageLimits={min:l.value.minAge,max:l.value.maxAge}):E.year=m.value,l.value.isEligibilitySelected?E.eligibility=[...l.value.eligibility]:E.nationalities=f.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),E.positions=g.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),a("update:filters",E)}function Q(k,E){E.id===0?g.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,g.value[0].isSelected=g.value.every((V,N)=>N===0?!0:V.isSelected))}function O(k){m.value=k,i.filters&&(i.filters.selectedYear=k),P()}return o({onClearFilters:F}),(k,E)=>(e.openBlock(),e.createElementBlock("div",pI,[e.createElementVNode("div",mI,[e.createElementVNode("div",uI,[e.createVNode(l$,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:T},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",fI,[e.createVNode(e.unref(wh),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:z},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",hI,[yI,e.createVNode(e.unref($a),e.mergeProps({"model-value":m.value},u.value,{items:l.value.availableYears,onInput:O}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",gI,e.toDisplayString(V),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,e.toDisplayString(V),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),bI,e.createElementVNode("div",_I,[b.value?(e.openBlock(),e.createElementBlock("div",SI,[CI,e.createVNode(Xi,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value.isEligibilitySelected=V)},null,8,["modelValue"]),wI])):e.createCommentVNode("",!0),e.createElementVNode("div",kI,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[xI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",NI,e.toDisplayString(V.name),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:V.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},[EI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:f.value}),{default:e.withCtx(()=>[e.createElementVNode("div",VI,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>D(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",TI,[BI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",FI,[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:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:t.isFemale?V.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>Q(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},AI=Oe($I,[["__scopeId","data-v-23130339"]]),II={class:"plays"},MI={class:"plays__body__offensive"},zI={class:"plays__body__title"},OI={class:"number-of-categories"},RI={class:"plays__body__categories"},LI={class:"plays__body__defensive-possession-offenses"},DI={class:"plays__body__title"},vI={class:"number-of-categories"},jI={class:"plays__body__categories"},UI={class:"plays__body__title"},WI={class:"number-of-categories"},HI={class:"plays__body__categories"},GI={class:"plays__body__title"},qI={class:"number-of-categories"},JI={class:"plays__body__categories"},ZI={__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 o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(!1),r=e.ref(!1),l=e.computed(()=>({"--template-columns":o.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>o.playsCategories.offensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),c=e.computed(()=>o.playsCategories.defensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),d=e.computed(()=>o.playsCategories.possession.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),u=e.computed(()=>o.playsCategories.offenses.categories.reduce((m,h)=>(h.isSelected&&m++,m),0));function p(m,h){h.isSelected=m}function y(m){m==="offensive"?a.value=!a.value:m==="defensive"?i.value=!i.value:m==="possession"?s.value=!s.value:m==="offenses"&&(r.value=!r.value)}return(m,h)=>(e.openBlock(),e.createElementBlock("div",II,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",MI,[e.createElementVNode("div",zI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=f=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",OI,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=f=>y("offensive"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",RI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",LI,[e.createElementVNode("div",DI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=f=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",vI,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=f=>y("defensive"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]]),e.createElementVNode("div",UI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=f=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",WI,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=f=>y("possession"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",HI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",GI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=f=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",qI,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=f=>y("offenses"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",JI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},YI=Oe(ZI,[["__scopeId","data-v-364e6cae"]]),KI={class:"template-results"},XI={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:o}){const a=t,i=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{o("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,r)=>(e.openBlock(),e.createElementBlock("div",KI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":i.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},QI=Oe(XI,[["__scopeId","data-v-453e89c2"]]),eM={__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:o}){const a=t,i=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){o("click")}return(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(i.value),onClick:s},e.toDisplayString(t.text),7))}},Qi=Oe(eM,[["__scopeId","data-v-9688933e"]]),tM={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},yy={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},aM={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},oM={4:"OF",5:"Cf",6:"S",7:"F"};function mc(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const iM={class:"dropdown"},sM={class:"selected-item"},rM={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",iM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",sM,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},Bt=Oe(rM,[["__scopeId","data-v-064d5f86"]]),lM={class:"dropdown"},nM={class:"game-item"},dM={key:0,class:"item-game"},cM={class:"match-day"},pM={class:"team-logo"},mM=["src"],uM={class:"text"},fM={class:"text score"},hM={class:"text"},yM={class:"team-logo"},gM=["src"],bM={class:"item-game"},_M={class:"team-logo"},SM=["src"],CM={class:"text"},wM={class:"text score"},kM={class:"text"},EM={class:"team-logo"},VM=["src"],xM={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",lM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",nM,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",dM,[e.createElementVNode("div",cM,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",pM,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,mM)]),e.createElementVNode("div",uM,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",fM,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",hM,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",yM,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,gM)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",bM,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",_M,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,SM)]),e.createElementVNode("div",CM,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",wM,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",kM,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",EM,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,VM)])])]),_:1},16,["items"])]))}},Yr=Oe(xM,[["__scopeId","data-v-7883a91e"]]),Kr=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),NM={class:"container"},TM={class:"container__row"},BM={class:"container__row__wrapper"},FM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),PM={class:"container__row__wrapper__input"},$M={class:"container__row two-items"},AM={class:"container__row__wrapper"},IM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),MM={key:0,class:"container__row__wrapper__input"},zM={class:"container__row__wrapper"},OM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),RM={key:0,class:"container__row__wrapper__input"},LM={class:"container__row"},DM={class:"container__row__wrapper"},vM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),jM={key:0,class:"container__row__wrapper__input"},UM={class:"container__action"},WM={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=e.ref(null),s=e.ref(null),r=e.ref(null),l=e.ref(null);function n(p){i.value=p,o("update:tournament",p)}function c(p){s.value=p,o("update:season",p)}function d(p){r.value=p}function u(p){l.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",NM,[e.createElementVNode("div",TM,[e.createElementVNode("div",BM,[FM,e.createElementVNode("div",PM,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",$M,[e.createElementVNode("div",AM,[IM,i.value&&i.value.seasons?(e.openBlock(),e.createElementBlock("div",MM,[e.createVNode(Bt,{items:i.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zM,[OM,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",RM,[e.createVNode(Bt,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",LM,[e.createElementVNode("div",DM,[vM,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",jM,[e.createVNode(Yr,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",UM,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},HM=Oe(WM,[["__scopeId","data-v-b63e9c84"]]),GM={class:"dropdown"},qM={class:"item-team"},JM={class:"team-logo"},ZM=["src"],YM={class:"team-acronym"},KM={class:"item-team"},XM={class:"team-logo"},QM=["src"],ez={class:"team-acronym"},tz={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",GM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",qM,[e.createElementVNode("div",JM,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,ZM)]),e.createElementVNode("div",YM,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",KM,[e.createElementVNode("div",XM,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,QM)]),e.createElementVNode("div",ez,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},gy=Oe(tz,[["__scopeId","data-v-afd2bee8"]]),az={class:"advanced-filters"},oz={class:"advanced-filters__buttons"},iz=["onClick"],sz={class:"advanced-filters__filters"},rz={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const o=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>kGe)),i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>vGe)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>UGe)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:i}],l=e.ref(r[0]),n=e.computed(()=>o.selectedCategory?o.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,u)=>(e.openBlock(),e.createElementBlock("div",az,[e.createElementVNode("div",oz,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:y=>c(p)},e.toDisplayString(p.name),11,iz)),64))]),e.createElementVNode("div",sz,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},uc=Oe(rz,[["__scopeId","data-v-c62c5b9c"]]),mo=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),lz={class:"container"},nz={class:"container__row"},dz={class:"container__row__wrapper"},cz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),pz={class:"container__row__wrapper__input"},mz={class:"container__row two-items"},uz={class:"container__row__wrapper"},fz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),hz={key:0,class:"container__row__wrapper__input"},yz={class:"container__row__wrapper"},gz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),bz={key:0,class:"container__row__wrapper__input"},_z={class:"container__row"},Sz={class:"container__row__wrapper"},Cz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),wz={key:0,class:"container__row__wrapper__input"},kz={class:"container__row"},Ez={class:"container__row__wrapper"},Vz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),xz={key:0,class:"container__row__wrapper__input"},Nz={class:"container__row type-and-advanced"},Tz={class:"container__row__wrapper"},Bz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),Fz={class:"container__row__wrapper__input"},Pz={class:"container__row__wrapper center"},$z=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Az={class:"container__row__wrapper__input"},Iz={class:"container__row"},Mz={class:"container__action"},zz={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(null),u=e.ref(!0),p=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function y(_){s.value=_,o("update:tournament",_)}function m(_){r.value=_,o("update:season",_)}function h(_){n.value=_,o("update:team",_)}function f(_){c.value=_}function g(_){l.value=_}function b(_){d.value=_}return(_,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",lz,[e.createElementVNode("div",nz,[e.createElementVNode("div",dz,[cz,e.createElementVNode("div",pz,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",mz,[e.createElementVNode("div",uz,[fz,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",hz,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",yz,[gz,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",bz,[e.createVNode(gy,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_z,[e.createElementVNode("div",Sz,[Cz,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",wz,[e.createVNode(Bt,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",kz,[e.createElementVNode("div",Ez,[Vz,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",xz,[e.createVNode(Yr,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Nz,[e.createElementVNode("div",Tz,[Bz,e.createElementVNode("div",Fz,[e.createVNode(Bt,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:b},null,8,["items"])])]),e.createElementVNode("div",Pz,[$z,e.createElementVNode("div",Az,[e.createVNode(Xi,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=v=>u.value=v)},null,8,["modelValue"])])])]),e.createElementVNode("div",Iz,[e.createVNode(uc,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",Mz,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},Oz=Oe(zz,[["__scopeId","data-v-575b26b5"]]),ei=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),Rz={class:"container"},Lz={class:"container__row"},Dz={class:"container__row__wrapper"},vz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),jz={class:"container__row__wrapper__input"},Uz={class:"container__row two-items"},Wz={class:"container__row__wrapper"},Hz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Gz={key:0,class:"container__row__wrapper__input"},qz={class:"container__row__wrapper"},Jz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Zz={key:0,class:"container__row__wrapper__input"},Yz={class:"container__row"},Kz={class:"container__row__wrapper"},Xz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Qz={key:0,class:"container__row__wrapper__input"},eO={class:"container__row type-and-advanced"},tO={class:"container__row__wrapper"},aO=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),oO={class:"container__row__wrapper__input"},iO={class:"container__row__wrapper center"},sO=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),rO={class:"container__row__wrapper__input"},lO={class:"container__row"},nO={class:"container__action"},dO={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){n.value=g,o("update:team",g)}function h(g){l.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Rz,[e.createElementVNode("div",Lz,[e.createElementVNode("div",Dz,[vz,e.createElementVNode("div",jz,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",Uz,[e.createElementVNode("div",Wz,[Hz,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",Gz,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qz,[Jz,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Zz,[e.createVNode(gy,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Yz,[e.createElementVNode("div",Kz,[Xz,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",Qz,[e.createVNode(Yr,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",eO,[e.createElementVNode("div",tO,[aO,e.createElementVNode("div",oO,[e.createVNode(Bt,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",iO,[sO,e.createElementVNode("div",rO,[e.createVNode(Xi,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=_=>d.value=_)},null,8,["modelValue"])])])]),e.createElementVNode("div",lO,[e.createVNode(uc,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",nO,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},cO=Oe(dO,[["__scopeId","data-v-6d73d5e6"]]),ti=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),pO={class:"container"},mO={class:"container__row"},uO={class:"container__row__wrapper"},fO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),hO={class:"container__row__wrapper__input"},yO={class:"container__row two-items"},gO={class:"container__row__wrapper"},bO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),_O={key:0,class:"container__row__wrapper__input"},SO={class:"container__row__wrapper"},CO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),wO={key:0,class:"container__row__wrapper__input"},kO={class:"container__row"},EO={class:"container__row__wrapper"},VO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),xO={key:0,class:"container__row__wrapper__input"},NO={class:"container__row type-and-advanced"},TO={class:"container__row__wrapper"},BO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),FO={class:"container__row__wrapper__input"},PO={class:"container__row__wrapper center"},$O=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),AO={class:"container__row__wrapper__input",style:{width:"fit-content"}},IO={class:"container__row"},MO={class:"container__action"},zO={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){l.value=g}function h(g){n.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pO,[e.createElementVNode("div",mO,[e.createElementVNode("div",uO,[fO,e.createElementVNode("div",hO,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",yO,[e.createElementVNode("div",gO,[bO,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",_O,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",SO,[CO,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",wO,[e.createVNode(Bt,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",kO,[e.createElementVNode("div",EO,[VO,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",xO,[e.createVNode(Yr,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",NO,[e.createElementVNode("div",TO,[BO,e.createElementVNode("div",FO,[e.createVNode(Bt,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",PO,[$O,e.createElementVNode("div",AO,[e.createVNode(Xi,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=_=>d.value=_)},null,8,["modelValue"])])])]),e.createElementVNode("div",IO,[e.createVNode(uc,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",MO,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},OO=Oe(zO,[["__scopeId","data-v-6e904db8"]]),RO={class:"template-videos"},LO={class:"template-videos__header"},DO={class:"template-videos__body"},vO=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:HM,VideosPlayer:Oz,VideosTeam:cO,VideosGame:OO}}),jO=Object.assign(vO,{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:o}){const a=t,i={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],r=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),u=e.ref(c.value[0]),p=e.ref({}),y=e.ref({}),m=e.ref({}),h=e.ref({}),f=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const b=e.ref(null);e.watch(p,C=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(I=>I.id===C.id),C.arrayMatchDays?(h.value=C.arrayMatchDays[0]||{},m.value=C.arrayTeams[0]||{}):(z(C),D(C))}),e.watch(m,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!m.value.arrayPlayers||!m.value.arrayPlayers.length)&&(m.value.arrayPlayers=p.value.mapPlayersByTeam.get(m.value.team_id))},700)});async function _(){try{d.value=await F()}catch(C){throw new Error(C)}}async function F(){try{const C={Authorization:mc()||a.token},I={}.API_TOURNAMENTS||a.tournamentsUrl,U=await Yi.get(I,{headers:C});return U.data?U.data.map(M=>({...M.tournament,seasons:M.seasons})):[]}catch(C){return Promise.reject(C)}}async function v(C,I,U=""){o("loading-data");let M=U;try{M||(M={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,C.forEach((H,w)=>{M+=`${w===0?"":"&"}seasons=${H}`}));const W={Authorization:mc()||a.token},{data:{data:ce,teams:j}}=await Yi.get(M,{headers:W});return{seasonsAndGames:ce,seasonsAndTeams:j}}catch(W){if(I>0)return v(C,I-1,M);throw new Error(W)}finally{o("loading-data")}}async function T(C){try{const I={Authorization:mc()||a.token},U=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${C.seasonId}`,M=await Yi.get(U,{headers:I});return M.data?M.data.players:[]}catch(I){return Promise.reject(I)}}async function z(C){try{const{seasonsAndGames:I,seasonsAndTeams:U}=await v([C.id,...C.related_seasons.map(j=>j.id)],3),M=U.find(j=>j._id===C.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const W=M.teams.reduce((j,H)=>(p.value.arrayTeams.push(H),p.value.mapTeams.set(H.team_id,{name:H.colloquial_name,acronym:H.acronym,logo:H.logo,id:H.team_id}),j.set(H.team_id,H),j),new Map);m.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const ce=Array.from(I.reduce((j,H)=>(H.games.forEach(w=>{if(w.game_status===1&&w.has_video){(!p.value.maxGameId||w.game_id>p.value.maxGameId)&&(p.value.maxGameId=w.game_id);let G=w.matchday_abbreviation.replace("M","J"),$=w.matchday_abbreviation.replace("M","Jornada ");const J=w.matchday_abbreviation.replace("M","");H.season_type===0?y.value.tournament_type===1&&(w.seasonId===881?(G=oM[J]||G,$=aM[J]||$):(G=yy[w.matchday_abbreviation]?w.matchday_abbreviation:G,$=yy[w.matchday_abbreviation]||$,G==="FINAL"&&(G="F"))):H.season_type===1?(G=tM[w.matchday_abbreviation],$=G):(G=w.matchday_abbreviation.replace("PO","R"),$="Repechaje"),w.roundAbbreviation=G,w.roundName=$,p.value.mapGames.set(w.game_id,{id:w.game_id,date:w.date,dateTimeMillis:new Date(w.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(w.home_team),awayTeam:p.value.mapTeams.get(w.visiting_team),roundAbbreviation:w.roundAbbreviation,roundName:w.roundName,score:w.score,gameResult:w.score[0]>w.score[1]?1:w.score[0]<w.score[1]?2:3,seasonId:H.season_id});const fe=j.get(w.roundAbbreviation);w.numberDateTimeMillis=new Date(w.date_time_utc).getTime(),w.homeTeam=W.get(w.home_team),w.awayTeam=W.get(w.visiting_team);const ye=p.value.mapGamesByTeam.get(w.home_team),ge=p.value.mapGamesByTeam.get(w.visiting_team);ye?ye.push(w):p.value.mapGamesByTeam.set(w.home_team,[w]),ge?ge.push(w):p.value.mapGamesByTeam.set(w.visiting_team,[w]),fe?fe.arrayGames.push(w):j.set(w.roundAbbreviation,{stringMatchDayAbbreviation:w.roundAbbreviation,stringMatchDayName:w.roundName,arrayGames:[w]})}}),j),new Map).values());ce.reverse(),ce.forEach(j=>{j.arrayGames.sort((H,w)=>H.numberDateTimeMillis-w.numberDateTimeMillis)}),p.value.arrayMatchDays=ce,h.value=ce[0]||{}}catch(I){throw new Error(I)}}async function D(C){try{const I=await E(C.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=I.reduce((U,M)=>{p.value.mapPlayers.set(M.player_id,{id:M.player_id,name:M.player_name,shortName:M.shortName,photo:M.player_photo,teamId:M.team_id,positionId:M.position_id});const W=U.get(M.team_id);return W?W.push(M):U.set(M.team_id,[M]),U},new Map)}catch(I){throw new Error(I)}}async function P(){try{let C=[];f.value.isEmpty?(C=await V(),g.value={...C}):C=g.value;const I=[];if(C&&C.length){f.value=C.reduce((H,w)=>{if(w.group_id!=="g-55"){const G={idAux:w.group_id,ids:[...w.ids?w.ids:[],...w.rival_Ids?w.rival_Ids:[]],type:w.type,name:w.name,coordinatePoint:w.coordinate_point,requiresRivalTransform:r.includes(w.group_id)};G.idsAux=[...G.ids],G.subcategoryGroups=w.group_id==="g-12"?[]:Q(w,0,new Map,!1,{},G.idsAux),I.push(G),G.type.includes(n.player)&&H.player.push(G),G.type.includes(n.team)&&(G.idAux!=="g-2"&&H.games.push(G),H.team.push(G)),G.type.includes(n.goalkeeper)&&H.goalkeeper.push(G)}return H},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const U=new Map,M="Resumen",W="Todas sus jugadas",ce=f.value.player.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]),j=f.value.goalkeeper.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]);f.value.games.unshift({name:M,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),f.value.team.unshift({name:M,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),f.value.player.unshift({name:M,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:ce,booleanIsMinutesPlayed:!0}),f.value.goalkeeper.unshift({name:M,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:j,booleanIsMinutesPlayed:!0})}}catch(C){throw new Error(C)}}function Q(C,I=0,U=new Map,M=!1,W={},ce=[]){if(!C.group_id)return;let j=U.get(I);const H=M?`${C.id_category}_r`:C.id_category;C.id_category&&ce.push(C.id_category);let w={ids:[H],groupId:C.group_id,level:I,name:C.name,isSelected:!0,fatherCategories:I>0?[W]:[],idsByFatherCategory:{[C.category_father]:[H]}};if(I>0&&I===1&&(w.id=C.id_category),j&&I!==0){const G=C.group_id.charAt(C.group_id.length-1),$=j.find(J=>J.groupId.endsWith(G));$&&!s.includes(w.groupId)?(w=$,$.ids.push(H),$.fatherCategories.push(W),$.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),$.idsByFatherCategory[C.category_father]?$.idsByFatherCategory[C.category_father].push(H):$.idsByFatherCategory[C.category_father]=[H]):(w.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),j.push(w))}else I!==0&&(W.childCategories?W.childCategories.push(w):W.childCategories=[w],j=[w],U.set(I,j));if(C.categories&&C.categories.length?C.categories.forEach(G=>{Q(G,I+1,U,M,w,ce)}):C.rival_categories&&C.rival_categories.length&&C.rival_categories.forEach(G=>{Q(G,I+1,U,!0,w,ce)}),I===0)return Array.from(U.values())}function O(C){const I=C||C;if(I.booleanIsBestPlays)return I.arrayCategoriesIds;const U={total:[],toRemove:[]};if(I.subcategoryGroups&&I.subcategoryGroups.length?I.subcategoryGroups[0].forEach(M=>{k(M,null,U)}):(I.ids&&U.total.push(...I.ids),I.rival_ids&&I.rival_ids.forEach(M=>{U.total.push(`${M}_r`)})),U.total=U.total.reduce((M,W)=>(U.toRemove.includes(W)||M.push(W),M),[]),!C){const M=I.name.toLowerCase().includes("recibid");b.value.isRivalSubject=M,b.value.avoidCategorySingleName=M,b.value.coordinatePoint=I.coordinatePoint,b.value.requiresRivalTransform=I.requiresRivalTransform}return U.total}function k(C,I=[],U={total:[],toRemove:[]}){C.isSelected?C.childCategories?C.childCategories.forEach(M=>{const W=I?Object.entries(C.idsByFatherCategory).reduce((ce,[j,H])=>(I.includes(Number(j))&&H.forEach(w=>{typeof w=="string"&&w.endsWith("_r")?ce.push(Number(w.split("_")[0])):ce.push(w)}),ce),[]):[C.id];k(M,W,U)}):I?Object.entries(C.idsByFatherCategory).forEach(([M,W])=>{I.includes(Number(M))&&W.forEach(ce=>{U.total.push(ce)})}):C.level===1?Object.entries(C.idsByFatherCategory).forEach(([M,W])=>{W.forEach(ce=>{U.total.push(ce)})}):U.total.push(C.id):C.childCategories||C.ids.forEach(M=>{U.toRemove.push(M)})}async function E(C){try{const I=await T({seasonId:C});return I.forEach(U=>{const[M,W]=U.player_name.split(","),ce=M.split(" ");let j="";for(const H of ce)if(j+=` ${H}`,H.length>3)break;U.shortName=W&&M?`${W.trim().charAt(0)}.${j}`:""}),I}catch(I){return Promise.reject(I)}}async function V(){try{const C={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Yi.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:C})).data||[]}catch(C){return Promise.reject(C)}}function N(C){u.value=C}function Y(C){y.value=C,p.value=C.seasons[0]}function de(C){p.value=C}function ue(C){m.value=C}return _(),P(),(C,I)=>(e.openBlock(),e.createElementBlock("div",RO,[e.createElementVNode("div",LO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,U=>(e.openBlock(),e.createBlock(Qi,e.mergeProps({key:U.name},i,{text:U.name,"is-active":u.value.componentName===U.componentName,tournaments:d.value,onClick:M=>N(U)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",DO,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value.componentName),{tournaments:d.value,"advanced-filter-categories":f.value,"onUpdate:tournament":Y,"onUpdate:season":de,"onUpdate:team":ue},null,40,["tournaments","advanced-filter-categories"]))])]))}}),UO=Oe(jO,[["__scopeId","data-v-d6f7aec8"]]),by=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"]]),WO={class:"template-taken-corners"},HO={class:"template-taken-corners__header"},GO={class:"template-taken-corners__header__all"},qO={class:"template-taken-corners__body"},JO={class:"template-taken-corners__body__players"},ZO={class:"template-taken-corners__body__players__player__jersey"},YO={class:"template-taken-corners__body__players__player__photo"},KO={class:"template-taken-corners__body__players__player__photo__img"},XO=["src"],QO={class:"template-taken-corners__body__players__player__info"},eR={class:"template-taken-corners__body__players__player__info__name"},tR={class:"template-taken-corners__body__players__player__info__position"},aR={class:"template-taken-corners__body__players__player__info__position__nationality"},oR=["src"],iR={class:"template-taken-corners__body__players__player__info__position__name"},sR={class:"template-taken-corners__body__players__player__checkbox"},rR={__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:o,emit:a}){const i=t,s=e.ref(!1),r=e.ref([]),l=e.computed(()=>i.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((f,g)=>g.isSelected?f+1:f,0));e.watch(()=>i.takenCornersFilters,f=>{r.value=f.map(g=>{const b={...g};return(g.isSelected===void 0||g.isSelected===null)&&(b.isSelected=!0),b})},{immediate:!0,deep:!0}),e.watch(n,f=>{s.value=f===r.value.length,a("change-filters-selected",f),a("update:filters",r.value)},{immediate:!0});function c(f){return`https://golstatsimages.blob.core.windows.net/flags/${f}.jpg`}function d(f){return`https://golstatsimages.blob.core.windows.net/players-profile/${f}.png`}function u(f){let g=!1;return f.split(" ").reduce((b,_)=>(g||(_.length>3?(b=_,g=!0):b+=`${_} `),b),"").trim()}function p(f){return`${u(f.last_name)}, ${f.first_name.trim()}`}function y(f){return i.isFemale?by.get(f.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):by.get(f.positions[0])}function m(f){f?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,b)=>{g.isSelected=b===0})}function h(){r.value.forEach(f=>{f.isSelected=!0})}return o({clearFilters:h}),(f,g)=>(e.openBlock(),e.createElementBlock("div",WO,[e.createElementVNode("div",HO,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",GO,[e.createVNode(e.unref(Me),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":m},null,8,["model-value"])])]),e.createElementVNode("div",qO,[e.createElementVNode("div",JO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",ZO,e.toDisplayString(b.jersey),1),e.createElementVNode("div",YO,[e.createElementVNode("div",KO,[e.createElementVNode("img",{src:d(b.player_id),alt:"player photo",width:"36",height:"36"},null,8,XO)])]),e.createElementVNode("div",QO,[e.createElementVNode("div",eR,e.toDisplayString(p(b)),1),e.createElementVNode("div",tR,[e.createElementVNode("div",aR,[e.createElementVNode("img",{src:c(b.nationality_id),alt:"country flag"},null,8,oR)]),e.createElementVNode("div",iR,e.toDisplayString(y(b)),1)])]),e.createElementVNode("div",sR,[e.createVNode(e.unref(Me),{modelValue:b.isSelected,"onUpdate:modelValue":_=>b.isSelected=_,"avoid-interaction":n.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},lR=Oe(rR,[["__scopeId","data-v-763fcc54"]]),fc={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]}]},hc=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),nR={class:"template-how-was-corner"},dR={class:"template-how-was-corner__header"},cR=hc(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),pR={class:"template-how-was-corner__header__radio-input"},mR={class:"template-how-was-corner__header__radio-input__radio"},uR=hc(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),fR={class:"template-how-was-corner__header__radio-input"},hR={class:"template-how-was-corner__header__radio-input__radio"},yR=hc(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),gR=["onClick"],bR={class:"template-how-was-corner__content__corner-type__img"},_R=["src","alt"],SR={class:"template-how-was-corner__content__corner-type__info"},CR={class:"template-how-was-corner__content__corner-type__info__title"},wR={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>fc},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:o}){const a=t,i=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),r=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>i.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{o("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),i.value=n.cornerType,o("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",nR,[e.createElementVNode("div",dR,[cR,e.createElementVNode("div",pR,[e.createElementVNode("div",mR,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),uR])]),e.createElementVNode("div",fR,[e.createElementVNode("div",hR,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),yR])])]),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(s.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:p=>l(d)},[e.createElementVNode("div",bR,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,_R)]),e.createElementVNode("div",SR,[e.createElementVNode("div",CR,e.toDisplayString(d.title),1)])],10,gR))),128))],2)]))}},kR=Oe(wR,[["__scopeId","data-v-b7e3b8e0"]]),es=[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],Aa=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),ER={class:"template-zone"},VR={class:"controls-zone-container"},xR={class:"controls-zone-container-title-checkcon"},NR={class:"controls-zone-container-title-checkcon-check"},TR={class:"gsc-field-img-container"},BR={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FR=["fill"],PR=["fill"],$R=["fill"],AR=["fill"],IR=["fill"],MR=["fill"],zR=["fill"],OR=["fill"],RR=["fill"],LR=["fill"],DR=["fill"],vR=["fill"],jR=["fill"],UR=["fill"],WR=["fill"],HR=["fill"],GR=["fill"],qR=["fill"],JR=["fill"],ZR=["fill"],YR=["fill"],KR=["fill"],XR=["fill"],QR=["fill"],eL=["fill"],tL=["fill"],aL=["fill"],oL=["fill"],iL=["fill"],sL=["fill"],rL=["fill"],lL=["fill"],nL=["fill"],dL=["fill"],cL=["fill"],pL=Aa(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),mL=Aa(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),uL=["id"],fL=Aa(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),hL=[fL],yL=["mask"],gL=Aa(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),bL=[gL],_L=Aa(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),SL=Aa(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),CL={class:"template-zone__total-corners"},wL=Aa(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),kL=Aa(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),EL=[wL,kL],VL={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...es]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(!0),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,u=>{s.value=u.length===35}),e.watch(()=>i.zoneFilters,u=>{r.value=u},{immediate:!0,deep:!0}),e.watch(()=>r.value,u=>{a("update:filters",u),a("change-filters-selected",u.length)},{deep:!0});function n(u){u?(r.value=es,s.value=!0):(r.value=[],s.value=!1)}function c(u){r.value.includes(u)?r.value=r.value.filter(p=>p!==u):r.value.push(u),s.value=r.value.length===35}function d(){r.value=[...es]}return o({clearFilters:d}),(u,p)=>(e.openBlock(),e.createElementBlock("div",ER,[e.createElementVNode("div",VR,[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",xR,[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",NR,[e.createVNode(e.unref(Me),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",TR,[(e.openBlock(),e.createElementBlock("svg",BR,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,FR),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,PR),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,$R),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,AR),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,IR),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,MR),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,zR),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,OR),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,RR),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,LR),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,DR),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,vR),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,jR),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,UR),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,WR),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,HR),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,GR),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,qR),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,JR),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,ZR),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,YR),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,KR),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,XR),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,QR),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,eL),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,tL),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,aL),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,oL),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,iL),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,sL),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,rL),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,lL),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,nL),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,dL),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,cL),pL,mL,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},hL,8,uL),e.createElementVNode("g",{mask:`url(#${l.value})`},bL,8,yL),_L,SL]))]),e.withDirectives(e.createElementVNode("div",CL,EL,512),[[e.vShow,!1]])]))}},xL=Oe(VL,[["__scopeId","data-v-378bf7e2"]]),yc=[{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]}],NL={class:"what-happened"},TL={class:"what-happened__all"},BL={class:"what-happened__filters"},FL={key:0,class:"what-happened__filters__filter__composed"},PL={class:"what-happened__filters__filter__composed__main"},$L={key:1,class:"what-happened__filters__filter__single"},AL={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...yc]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?h.child.forEach(f=>{f.isSelected&&m++}):h.isSelected&&m++,m),0)),r=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?m+=h.child.length:m++,m),0)),l=e.computed(()=>s.value===r.value),n=e.computed(()=>s.value===1);e.watch(()=>i.whatHappenedFilters,m=>{a("change-filters-selected",s.value),a("update:filters",m)},{deep:!0,immediate:!0});function c(m){i.whatHappenedFilters.forEach(h=>{m?(h.isSelected=m,h.child&&h.child.forEach(f=>{f.isSelected=m})):h.child?(h.isSelected=!0,h.child.forEach(f=>{f.isSelected=!0})):h.isSelected=!1})}function d(m,h){h.isSelected=m,h.child.forEach(f=>{f.isSelected=m})}function u(m,h,f){f.isSelected=m,h.isSelected=h.child.every(g=>g.isSelected)}function p(m,h){h.isSelected=m}function y(){i.whatHappenedFilters.forEach(m=>{m.child?m.child.forEach(h=>{h.isSelected=!0}):m.isSelected=!0})}return o({onResetFilters:y}),(m,h)=>(e.openBlock(),e.createElementBlock("div",NL,[e.createElementVNode("div",TL,[e.createVNode(e.unref(Me),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",BL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(f,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[f.child?(e.openBlock(),e.createElementBlock("div",FL,[e.createElementVNode("div",PL,[e.createVNode(e.unref(Me),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>d(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.child,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:`c${_}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(Me),{"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":n.value&&b.isSelected,"onUpdate:modelValue":F=>u(F,f,b)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",$L,[e.createVNode(e.unref(Me),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>p(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},IL=Oe(AL,[["__scopeId","data-v-8f375a1a"]]),gc={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}]}},_y=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),ML={class:"template-results"},zL={class:"template-results__type-switch"},OL=_y(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),RL=_y(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),LL={class:"template-results__info"},DL={key:0,class:"template-results__group"},vL={key:1,class:"template-results__group"},jL={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...gc})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(d=>d.isSelected).length:s.value.results.final.filter(d=>d.isSelected).length;return a("change-filters-selected",c),c}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>i.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return o({removeFilters:n}),(c,d)=>(e.openBlock(),e.createElementBlock("div",ML,[e.withDirectives(e.createElementVNode("div",zL,[OL,e.createVNode(Xi,{modelValue:s.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=u=>s.value.isMoment=u)},null,8,["modelValue"]),RL],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",LL,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",DL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",vL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},UL=Oe(jL,[["__scopeId","data-v-ee3b28d3"]]),WL={key:0,class:"productivity__header__text"},HL={key:0},GL={key:1},qL={key:2},JL={key:3},ZL={key:1,class:"productivity__header__checkbox"},YL={class:"templates__body"},KL={key:0,class:"templates-plays"},XL={key:1,class:"templates-productivity"},QL={key:2,class:"template-field"},eD={key:3,class:"template-details"},tD={key:4,class:"template-personal-data"},aD={key:5,class:"template-leagues"},oD={key:6,class:"template-plays"},iD={key:7,class:"template-plays"},sD={key:8,class:"template-universe"},rD={key:9,class:"template-distance"},lD={key:10,class:"template-results"},nD={key:11,class:"template-results-by-type"},dD={key:12,class:"template-games"},cD={key:13,class:"template-taken-corners"},pD={key:14,class:"template-videos"},mD={key:15,class:"template-how-was-corner"},uD={key:16,class:"template-zone"},fD={key:17,class:"template-what-happened"},hD={key:1,class:"templates__footer"},yD={class:"templates__footer__button"},gD={class:"templates__footer__button"},bD={__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0}},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:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(!1),l=e.ref({playingAs:i.playingAs,gameSections:i.gameSections,statisticType:i.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),d=e.ref(null),u=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.computed(()=>({"--width":i.width,"--max-width":i.maxWidth,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.borderColor,"--border-width":i.borderWidth,"--box-shadow":i.boxShadow,"--padding":i.filterType!==q.VIDEOS?i.isExpansionMode?"10px 0":i.padding:"0","--footer-border-color":i.footerBorderColor,"--footer-border-width":i.footerBorderWidth,"--text-color":i.textColor})),h=e.computed(()=>{const $=[];return Array.isArray(i.productivityCategories)?i.productivityCategories.forEach(J=>{$.push(J)}):i.productivityCategories&&Object.values(i.productivityCategories).forEach(J=>{J.categories&&J.categories.forEach(fe=>{$.push(fe)})}),$}),f=e.computed(()=>{const $=[];return i.playsCategories&&Object.values(i.playsCategories).forEach(J=>{J.categories&&J.categories.forEach(fe=>{$.push(fe)})}),$}),g=e.computed(()=>{const $=h.value.filter(J=>J.isSelected);return v($),i.filterType===q.PRODUCTIVITY&&a("change-categories-selected",$.length),$.length}),b=e.computed(()=>!i.isForTemplateForm&&g.value>=i.productivityMaxCategories),_=e.computed(()=>!i.isForTemplateForm&&g.value<=i.productivityMinCategories),F=e.computed(()=>i.isPlayingAsHidden?i.gameSections:i.playingAs.concat(i.gameSections));e.watch(l,$=>{i.filterType===q.DETAILS&&a("update:filters",$)},{immediate:!0,deep:!0}),e.watch(()=>F.value,$=>{if(i.filterType===q.DETAILS){const J=$.filter(fe=>fe.isSelected);a("change-filters-selected",J.length)}},{immediate:!0,deep:!0}),e.watch(()=>i.playsGolstatsCategories,$=>{if(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS){const J=$.filter(fe=>fe.isSelected);a("change-filters-selected",J.length)}},{immediate:!0}),e.watch(()=>i.fieldAreas,$=>{i.filterType===q.FIELD&&a("change-filters-selected",$.length)}),e.watch(f,()=>{i.filterType===q.PLAYS&&V()},{immediate:!0,deep:!0}),e.watch(h,()=>{i.filterType===q.PRODUCTIVITY&&N()},{immediate:!0,deep:!0}),e.watch(()=>i.resultsFilters,$=>{i.filterType===q.RESULTS&&a("change-filters-selected",$.results.filter(J=>J.isSelected).length)},{immediate:!0,deep:!0});function v($){setTimeout(()=>{$.sort((J,fe)=>J.priority-fe.priority),$.forEach((J,fe)=>{J.priority=fe+1})},10)}function T($=null){z($)}function z($=null){i.filterType===q.PRODUCTIVITY?h.value.forEach(J=>{J.isSelected=J.isDefault||!1}):i.filterType===q.PLAYS?(f.value.forEach(J=>{J.isSelected=!0}),r.value=!0):i.filterType===q.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):i.filterType===q.DETAILS?(i.playingAs.forEach(J=>{J.isSelected=!0}),i.gameSections.forEach(J=>{J.isSelected=!0})):i.filterType===q.TOURNAMENTS?(i.tournaments.forEach((J,fe)=>{i.isOneTournamentOnly?J.isSelected=fe===0:J.isSelected=!0}),a("change-filters-selected",0)):i.filterType===q.PLAYS_TYPES?i.playsGolstatsCategories.forEach(J=>{J.isSelected=!0}):i.filterType===q.GOLSTATS?i.playsGolstatsCategories.forEach(J=>{J.isSelected=!1}):i.filterType===q.UNIVERSE?c.value&&c.value.resetFilters():i.filterType===q.PERSONAL_DATA?(s.value&&s.value.onClearFilters($||ro.All),a("change-personal-data-filters",{})):i.filterType===q.DISTANCE?a("update:filters",{minValue:i.distanceFilters.minLimit,maxValue:i.distanceFilters.maxLimit}):i.filterType===q.RESULTS?a("update:filters",{results:i.resultsFilters.results.map(J=>(J.isSelected=!0,J))}):i.filterType===q.RESULTS_BY_TIME?y.value&&y.value.removeFilters():i.filterType===q.GAMES?i.gamesFilters.forEach(J=>{J.isSelected=!0}):i.filterType===q.TAKEN_CORNERS?d.value.clearFilters():i.filterType===q.HOW_WAS_CORNER?(i.howWasCornerFilters.left.forEach(J=>{J.isSelected=!0}),i.howWasCornerFilters.right.forEach(J=>{J.isSelected=!0})):i.filterType===q.ZONE?u.value&&u.value.clearFilters():i.filterType===q.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function D($){i.filterType===q.TOURNAMENTS&&a("change-filters-selected",$)}function P($){i.filterType===q.UNIVERSE&&a("change-universe-filters",$)}function Q($){i.filterType===q.FIELD&&a("change-field-areas",$)}function O($){i.filterType===q.GOLSTATS&&a("change-filters-selected",$)}function k($){a("change-filters-selected",$)}function E($){i.filterType===q.PRODUCTIVITY?h.value.forEach(J=>{J.isSelected=$}):(r.value=$,i.playsCategories.offensive.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.defensive.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.possession.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.offenses.categories.forEach(J=>{J.isSelected=$}))}function V(){let $=0;const J={playsCategories:f.value.filter(fe=>fe.isSelected)};r.value=J.playsCategories.length===f.value.length,$=J.playsCategories.length,Object.values(n.value).forEach(fe=>{fe&&$++}),a("change-filters-selected",$),a("update:filters",J)}function N(){let $=0;const J={productivityFilters:h.value.filter(fe=>fe.isSelected),offensesConditions:n.value};$=J.productivityFilters.length,Object.values(n.value).forEach(fe=>{fe&&$++}),a("change-filters-selected",$),a("update:filters",J)}function Y($){a("click-parameters",$)}function de(){a("apply")}function ue(){(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS)&&i.playsGolstatsCategories&&i.playsGolstatsCategories.forEach($=>{$.isSelected=!1}),i.filterType===q.PRODUCTIVITY&&h.value.forEach($=>{$.isSelected=!1}),a("apply")}function C($){a("update:filters",$)}function I($){i.filterType===q.PERSONAL_DATA&&a("update:filters",$)}function U($){i.filterType===q.TOURNAMENTS&&a("update:filters",$)}function M($){(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS)&&a("update:filters",$)}function W($){i.filterType===q.PRODUCTIVITY&&(n.value=$,N())}function ce($){i.filterType===q.DISTANCE&&a("update:filters",$)}function j($){i.filterType===q.RESULTS&&a("update:filters",$)}function H($){i.filterType===q.GAMES&&(a("update:filters",$),a("change-filters-selected",$.filter(J=>J.isSelected).length))}function w($){l.value.statisticType=$}const G=e.computed(()=>i.filterType===q.PLAYS?f.value.length:i.filterType===q.PRODUCTIVITY?h.value.length:i.filterType===q.FIELD?16:i.filterType===q.UNIVERSE?6:i.filterType===q.DETAILS?8:i.filterType===q.RESULTS||i.filterType===q.RESULTS_BY_TIME?3:i.filterType===q.GAMES?i.gamesFilters.length:0);return a("total-filters",G),o({clearFilters:T}),($,J)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(m.value)},[t.filterType===e.unref(q).PRODUCTIVITY||t.filterType===e.unref(q).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(q).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",WL,[t.productivityText?(e.openBlock(),e.createElementBlock("div",HL,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",GL,[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",qL,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",JL,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",ZL,[e.createVNode(e.unref(Me),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":r.value,"label-color":t.textColor,"onUpdate:modelValue":E},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",YL,[t.filterType===e.unref(q).PLAYS?(e.openBlock(),e.createElementBlock("div",KL,[e.createVNode(YI,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",XL,[e.createVNode(WT,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":b.value,"are-min-categories-reached":_.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":W,onClickParameters:Y},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).FIELD?(e.openBlock(),e.createElementBlock("div",QL,[e.createVNode(e.unref(Bh),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Q}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).DETAILS?(e.openBlock(),e.createElementBlock("div",eD,[e.createVNode(CB,{"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:w},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(q).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",tD,[e.createVNode(AI,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":I},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",aD,[e.createVNode(NB,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:D,"onUpdate:filters":U},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",oD,[e.createVNode(uh,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":M},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).GOLSTATS?(e.openBlock(),e.createElementBlock("div",iD,[e.createVNode(uh,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:O,"onUpdate:filters":M},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).UNIVERSE?(e.openBlock(),e.createElementBlock("div",sD,[e.createVNode(wF,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":P},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).DISTANCE?(e.openBlock(),e.createElementBlock("div",rD,[e.createVNode(UF,{distance:t.distanceFilters,"onUpdate:distanceFilters":ce},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).RESULTS?(e.openBlock(),e.createElementBlock("div",lD,[e.createVNode(QI,{ref_key:"templateResults",ref:y,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":j},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",nD,[e.createVNode(UL,{ref_key:"templateResults",ref:y,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).GAMES?(e.openBlock(),e.createElementBlock("div",dD,[e.createVNode(YF,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":H},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",cD,[e.createVNode(lR,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:d,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).VIDEOS?(e.openBlock(),e.createElementBlock("div",pD,[e.createVNode(UO,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",mD,[e.createVNode(kR,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).ZONE?(e.openBlock(),e.createElementBlock("div",uD,[e.createVNode(xL,{ref_key:"templateZone",ref:u,"zone-filters":t.zoneFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",fD,[e.createVNode(IL,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",hD,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Ar),{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:ue})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",yD,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Ar),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ue})):(e.openBlock(),e.createBlock(e.unref(Ar),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:z}))]),e.createElementVNode("div",gD,[e.createVNode(e.unref(Ar),{"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))}},Sy=Oe(bD,[["__scopeId","data-v-814b14a7"]]),_D=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},SD={__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:o}){const a=t;e.useCssVars(m=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const i=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.computed(()=>{const m={top:"0px","--left-menu":a.leftMenu};if(i.value){const h=i.value.getBoundingClientRect();m.top=`${h.height+a.menuMarginTop}px`}return m}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,m=>{m!==s.value&&(s.value=m)},{immediate:!0}),e.watch(s,m=>{m||setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(m){const h=window.innerWidth,f=m.boundingClientRect.x,g=m.boundingClientRect.x+m.boundingClientRect.width,b=f<=0?Math.abs(f)+4:g>=h?h-(g+10):0;l.value["--translate-x"]=`${b}px`}function u(){new IntersectionObserver(m=>{m[0].intersectionRatio>0&&d(m[0])}).observe(r.value)}function p(){s.value=!s.value,o("update:modelValue",s.value)}function y(){s.value=!1,o("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{u()})}),(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.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(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:i,class:"menu-container__trigger",onClick:p},[e.renderSlot(m.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:r,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(m.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},CD=_D(SD,[["__scopeId","data-v-18c0df61"]]),uo=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),wD={key:0,class:"button__icon"},kD={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ED=["stroke"],VD=["stroke"],xD=["stroke"],ND={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TD=["stroke"],BD=["stroke"],FD=["fill"],PD={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$D=["fill"],AD={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ID=["stroke"],MD=["stroke"],zD=["stroke"],OD=["stroke"],RD=["stroke"],LD={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DD=uo(()=>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)),vD=[DD],jD={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UD=uo(()=>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)),WD=[UD],HD={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=uo(()=>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)),qD=[GD],JD={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=uo(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),YD=uo(()=>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)),KD=uo(()=>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)),XD=uo(()=>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)),QD=[ZD,YD,KD,XD],ev={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tv=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),av=[tv],ov={class:"button__text"},iv={key:0,class:"info-container"},sv={key:1,style:{width:"20px"}},rv={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lv=["fill"],nv={__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 o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--text-font-family":o.textFontFamily,"--text-font-size":o.textFontSize,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.isActive?o.borderColorActive:o.borderColor,"--border-width":o.borderWidth,"--padding":o.padding,"--font-color":o.fontColor})),i=e.computed(()=>({"--info-background-color":o.infoValue?o.infoBackgroundColor:"transparent","--info-border-color":o.infoValue?o.infoBorderColor:"transparent","--info-border-radius":o.infoBorderRadius,"--info-font-family":o.infoFontFamily,"--info-font-size":o.infoFontSize,"--info-font-color":o.infoFontColor,"--info-height":o.infoHeight,"--info-width":o.infoWidth})),s=e.computed(()=>[q.PLAYS_TYPES,q.GOLSTATS,q.TOURNAMENTS,q.PLAYS,q.RESULTS,q.RESULTS_BY_TIME].includes(o.iconType)),r=e.computed(()=>[q.FIELD,q.GAMES].includes(o.iconType)),l=e.computed(()=>[q.DETAILS,q.UNIVERSE].includes(o.iconType)),n=e.computed(()=>[q.PERSONAL_DATA].includes(o.iconType)),c=e.computed(()=>[q.PRODUCTIVITY].includes(o.iconType)),d=e.computed(()=>[q.HOW_WAS_CORNER].includes(o.iconType)),u=e.computed(()=>[q.TAKEN_CORNERS].includes(o.iconType)),p=e.computed(()=>[q.ZONE].includes(o.iconType)),y=e.computed(()=>[q.WHAT_HAPPENED].includes(o.iconType));return(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",wD,[n.value?(e.openBlock(),e.createElementBlock("svg",kD,[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,ED),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,VD),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,xD)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",ND,[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,TD),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,BD),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,FD)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",PD,[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,$D)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",AD,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,ID),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,MD),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,zD),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,OD),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,RD)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",LD,vD)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("svg",jD,WD)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",HD,qD)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",JD,QD)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",ev,av)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ov,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",iv,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(i.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(i.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",sv)):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",rv,[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,lv)]))],2)],4))}},dv=Oe(nv,[["__scopeId","data-v-2504d135"]]),cv=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},pv=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),mv={class:"panel__activator__icon"},uv=["src"],fv={class:"panel__activator__text"},hv=["height","width"],yv=["stroke"],gv={class:"panel__content"},bv=pv(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),_v={class:"panel__content__slot"},Sv={__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:o}){const a=t,i=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,l=>{i.value=l},{immediate:!0});function r(){i.value=!i.value,o("update:modelValue",i.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",mv,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,uv)):e.createCommentVNode("",!0)]),e.createElementVNode("div",fv,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":i.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,yv)],8,hv))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",gv,[bv,e.createElementVNode("div",_v,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,i.value]])]),_:3})],4))}},Cv=cv(Sv,[["__scopeId","data-v-0ca35abc"]]),fa={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},wv={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}},kv={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}]}},Ev={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},Vv=[{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}]}],xv=[{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}],Nv=[{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}],Tv={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Cy={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},Bv={class:"filters"},Fv={key:0,class:"filters__expansion"},Pv={class:"content"},$v={key:1,class:"filters__menus"},Av={__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:o,emit:a}){const i=t;e.useCssVars($=>({"24235e69":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.TOURNAMENTS,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PERSONAL_DATA,isFooterVisible:!0},u={width:"310px",modalHeight:i.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:i.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.UNIVERSE,isFooterVisible:!0},m={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.DISTANCE,isFooterVisible:!0},h={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.RESULTS,padding:"0",isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.VIDEOS,isFooterVisible:!1},b={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.GAMES,isFooterVisible:!0},_={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.TAKEN_CORNERS,isFooterVisible:!0},F={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.HOW_WAS_CORNER,isFooterVisible:!0},v={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.ZONE,isFooterVisible:!0},T={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.WHAT_HAPPENED,isFooterVisible:!0},z=e.ref(!1),D=e.ref(!1),P=e.ref(0),Q=e.ref(0),O=e.ref({}),k=e.ref(null),E=e.ref(null),V=e.ref("Universo"),N=e.computed(()=>i.isForTemplateForm?"0":"unset"),Y=e.computed(()=>i.filterType===q.UNIVERSE&&i.showUniverseTime?V.value:i.buttonFilterProps&&i.buttonFilterProps.text?i.buttonFilterProps.text:i.menuButtonText||M()),de=e.computed(()=>i.isFromTemplates?q.RESULTS:i.filterType),ue=e.computed(()=>i.expansionPanelText||M()),C=e.ref(null);e.watch(()=>i.filterType,$=>{if($===q.PRODUCTIVITY)O.value={...s,...i.templateProps,productivityCategories:i.filters||wv};else if($===q.PLAYS)O.value={...r,...i.templateProps,fontFamily:i.buttonFilterProps?i.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:i.filters||kv};else if($===q.FIELD)O.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters||[]};else if($===q.DETAILS)O.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:fa.isPlayingAsHidden,playingAs:i.filters&&i.filters.playingAs||fa.playingAs,gameSections:i.filters&&i.filters.gameSections||fa.gameSections,statisticType:i.filters?i.filters.statisticType:fa.statisticType,isStatisticTypeVisible:i.filters?i.filters.isStatisticTypeVisible:fa.isStatisticTypeVisible};else if($===q.TOURNAMENTS){const J=i.filters||Vv;i.isOneTournamentOnly&&J.forEach(fe=>{fe.isSelected=fe.id===i.defaultTournamentId}),O.value={...c,...i.templateProps,tournaments:J}}else $===q.PERSONAL_DATA?O.value={...d,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:$===q.PLAYS_TYPES?O.value={...u,...i.templateProps,playsGolstatsCategories:i.filters||xv}:$===q.GOLSTATS?O.value={...p,...i.templateProps,playsGolstatsCategories:i.filters||Nv}:$===q.UNIVERSE?O.value={...y,...i.templateProps,universeFilters:i.filters||Ev}:$===q.DISTANCE?O.value={...m,...i.templateProps,distanceFilters:i.filters||Tv}:$===q.RESULTS?O.value={...h,...i.templateProps,resultsFilters:i.filters||Cy}:$===q.RESULTS_BY_TIME?O.value={...f,...i.templateProps,resultsByTimeFilters:i.filters||gc}:$===q.GAMES?O.value={...b,...i.templateProps,gamesFilters:i.filters||[]}:$===q.VIDEOS?O.value={...g,...i.templateProps,token:i.token}:$===q.TAKEN_CORNERS?O.value={..._,...i.templateProps,takenCornersFilters:i.filters||[]}:$===q.HOW_WAS_CORNER?O.value={...F,...i.templateProps,howWasCornerFilters:i.filters||fc}:$===q.ZONE?O.value={...v,...i.templateProps,zoneFilters:i.filters||[...es]}:$===q.WHAT_HAPPENED&&(O.value={...T,...i.templateProps,whatHappenedFilters:i.filters||[...yc]});O.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(O.value.width="100%",O.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>i.filters,()=>{if(i.filterType===q.PRODUCTIVITY)O.value={...s,...i.templateProps,productivityCategories:i.filters};else if(i.filterType===q.PLAYS)O.value={...r,...i.templateProps,playsCategories:i.filters};else if(i.filterType===q.FIELD)O.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters};else if(i.filterType===q.DETAILS)O.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:fa.isPlayingAsHidden,playingAs:i.filters?i.filters.playingAs:fa.playingAs,gameSections:i.filters?i.filters.gameSections:fa.gameSections,statisticType:i.filters?i.filters.statisticType:fa.statisticType,isStatisticVisible:i.filters?i.filters.isStatisticVisible:fa.isStatisticVisible};else if(i.filterType===q.TOURNAMENTS){const $=i.filters;i.isOneTournamentOnly&&$.forEach(J=>{J.isSelected=J.id===i.defaultTournamentId}),O.value={...c,...i.templateProps,tournaments:$}}else i.filterType===q.PERSONAL_DATA?O.value={...d,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:i.filterType===q.PLAYS_TYPES?O.value={...u,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===q.GOLSTATS?O.value={...p,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===q.UNIVERSE?O.value={...y,...i.templateProps,universeFilters:i.filters}:i.filterType===q.DISTANCE?O.value={...m,...i.templateProps,distanceFilters:i.filters}:i.filterType===q.RESULTS?O.value={...h,...i.templateProps,resultsFilters:i.filters||Cy}:i.filterType===q.RESULTS_BY_TIME?O.value={...f,...i.templateProps,resultsByTimeFilters:i.filters||gc}:i.filterType===q.GAMES?O.value={...b,...i.templateProps,gamesFilters:i.filters}:i.filterType===q.VIDEOS?O.value={...g,...i.templateProps,token:i.token}:i.filterType===q.TAKEN_CORNERS?O.value={..._,...i.templateProps,takenCornersFilters:i.filters||[]}:i.filterType===q.HOW_WAS_CORNER?O.value={...F,...i.templateProps,howWasCornerFilters:i.filters||fc}:i.filterType===q.ZONE?O.value={...v,...i.templateProps,zoneFilters:i.filters||[...es]}:i.filterType===q.WHAT_HAPPENED&&(O.value={...T,...i.templateProps,whatHappenedFilters:i.filters||[...yc]});O.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(O.value.width="100%",O.value.maxWidth="100%")}),e.watch(z,$=>{$||a("close",C.value)}),e.watch(D,$=>{$||a("close",C.value)});function I($){P.value=$}function U(){i.isExpansionPanel?D.value=!1:z.value=!1,a("apply",C.value)}function M(){if(i.filterType===q.PRODUCTIVITY)return i.isFromTemplates?"Tipos de jugadas":"Características de juego";if(i.filterType===q.PLAYS)return"Jugada(s)";if(i.filterType===q.FIELD)return"Zona de cancha";if(i.filterType===q.DETAILS)return"Detalles";if(i.filterType===q.TOURNAMENTS)return"Ligas";if(i.filterType===q.PERSONAL_DATA)return"Datos personales";if(i.filterType===q.PLAYS_TYPES)return"Tipos de jugada";if(i.filterType===q.GOLSTATS)return"Filtros Golstats";if(i.filterType===q.UNIVERSE)return"Universo";if(i.filterType===q.DISTANCE)return"Distancia";if([q.RESULTS,q.RESULTS_BY_TIME].includes(i.filterType))return"Resultados";if(i.filterType===q.GAMES)return"Partidos";if(i.filterType===q.VIDEOS)return"Videos";if(i.filterType===q.TAKEN_CORNERS)return"¿Quién cobró?";if(i.filterType===q.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(i.filterType===q.ZONE)return"Zona";if(i.filterType===q.WHAT_HAPPENED)return"¿Qué sucedió?"}function W($){a("click-parameters",$)}function ce($){O.value.fieldAreas=$,P.value=$.length,H($)}function j($){let J=0;$.value&&$.value.statistics&&($.value.minutesPlayed&&J++,$.value.percentMinutesPlayed&&J++,$.value.lastMonths&&J++,$.value.statistics.totals&&J++,$.value.statistics.averagePerGame&&J++,$.value.statistics.averagePerMinute&&J++),i.showUniverseTime&&(V.value=`Durante los últimos ${$.value.lastMonths} meses`),O.value.universe=$.value,P.value=J,H($.value)}function H($){C.value=$,a("update:filters",$)}function w($){Q.value=$}function G($=null){k.value&&k.value.clearFilters($),E.value&&E.value.clearFilters($)}return o({clearFilters:G}),($,J)=>(e.openBlock(),e.createElementBlock("div",Bv,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",Fv,[e.createVNode(e.unref(Cv),e.mergeProps(t.expansionPanelProps,{modelValue:D.value,"onUpdate:modelValue":J[0]||(J[0]=fe=>D.value=fe),text:ue.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+i.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",Pv,[e.createVNode(Sy,e.mergeProps(O.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,ref_key:"filterTemplateExpansionPanel",ref:E,onChangeFieldAreas:ce,onChangeCategoriesSelected:I,onChangeFiltersSelected:I,onChangeUniverseFilters:j,onApply:U,"onUpdate:filters":H,onTotalFilters:w,onClickParameters:W}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",$v,[e.createVNode(e.unref(CD),{modelValue:z.value,"onUpdate:modelValue":J[1]||(J[1]=fe=>z.value=fe),width:t.width,"left-menu":N.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(dv,e.mergeProps(t.buttonFilterProps,{text:Y.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":P.value,"filters-total":Q.value.value,"is-active":z.value,"icon-type":de.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Sy,e.mergeProps(O.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,ref_key:"filterTemplateMenu",ref:k,onChangeFieldAreas:ce,onChangeCategoriesSelected:I,onChangeFiltersSelected:I,onChangeUniverseFilters:j,"onUpdate:filters":H,onTotalFilters:w,onApply:U,onClickParameters:W}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},wy=Oe(Av,[["__scopeId","data-v-7efefefa"]]);ha(2,bc()),ha(2,bc()),ha(1,Ia(1)),ha(1,Ia(1)),ha(1,Ia(2)),ha(1,Ia(2)),ha(1,Ia(3)),ha(1,Ia(3)),ha(1,Ia(4)),ha(1,Ia(4));function bc(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function ky(){return Array.from({length:16},(t,o)=>o+1)}function Ia(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function ha(t=1,o=null){return{origin_zones:t===1?ky():bc(),destiny_zones:o||ky(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const Iv={key:0,class:"graph-spider__title"},Mv={class:"graph-spider__content"},zv={style:{width:"100%","max-width":"300px"}},Ov={class:"graph-spider__graph"},Rv={class:"list-variables"},Lv={class:"list-variables__variable__abbreviation"},Dv={class:"list-variables__variable__name"},vv={__name:"RadarGraph",props:{players:{type:Array,default:()=>[]},allPlayers:{type:Array,default:()=>[]},isMobile:{type:Boolean,default:!1},iconColor:{type:String,default:"white"},title:{type:String,default:""},dynamicCategories:{type:Object,default:()=>null},customCategories:{type:Array,default:()=>null},userId:{type:Number,default:0},token:{type:String,default:""},hasHeader:{type:Boolean,default:!0},applyAdditionalData:{type:Boolean,default:!1},componentWidth:{type:Number,default:800},pppValues:{type:Object,default:()=>({is_ppp:!1})},unselectedTeamsIds:{type:Array,default:()=>[]},template:{type:Object,default:()=>null}},emits:["click-parameters"],setup(t,{emit:o}){const a=t,i=e.ref(null),s=e.ref(null),r=e.ref([]),l=e.ref([]),n=e.computed(()=>({"--height":(a.isMobile,"fit-content"),"--min-height":a.isMobile?"fit-content":"568px","--padding":"32px 0","--box-shadow":a.hasHeader?"0 4px 20px 0 rgba(0, 0, 0, 0.25)":"none","--border-radius":a.isMobile?"0":"9px","--gap":a.isMobile?"20px":"40px"})),c=e.computed(()=>a.template?a.template.variables.map(T=>({...T,isSelected:!0})):a.customCategories),d=e.computed(()=>[...r.value].sort((T,z)=>T.selectedOrder-z.selectedOrder)),u=e.computed(()=>{const T=d.value[0];return d.value&&d.value.length&&T.statsGraph?d.value.map(z=>({name:z.shortName||z.name||z.short_name||z.player_name,data:z.statsGraph?z.statsGraph.reduce((D,P)=>{if(P.isVisible){const Q=typeof P.playerPercentage=="string"&&P.playerPercentage.includes("%")?parseInt(P.playerPercentage.replace("%","")):P.playerPercentage;D.push(Q>100?100:Q)}return D},[]):[]})):[]}),p=e.computed(()=>d.value.length&&d.value[0].statsGraph?d.value[0].statsGraph.reduce((T,z)=>(z.isVisible&&T.push(z.abbreviation),T),[]):[]),y=e.computed(()=>({plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:["#21c01c","#426EF9","#F65A27","#FFD849","#6BEEDB","#EC3A6F","#CBEE6B","#42C2F9","#A017E5","#E8369C"],fill:{colors:["#21c01c","#426EF9","#F65A27","#FFD849","#6BEEDB","#EC3A6F","#CBEE6B","#42C2F9","#A017E5","#E8369C"],opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:p.value,labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!0,max:100,min:0,labels:{show:!1,style:{colors:Array.from({length:11},T=>"rgba(255, 255, 255, 0)"),fontSize:"24px",fontFamily:"Poppins-Regular"}}},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:T,seriesIndex:z,dataPointIndex:D,w:P}){const Q=T[z];return`
|
|
26
|
+
`+r):i.stack=r}catch{}}throw i}}_request(o,a){typeof o=="string"?(a=a||{},a.url=o):a=o||{},a=co(this.defaults,a);const{transitional:i,paramsSerializer:s,headers:r}=a;i!==void 0&&Gr.assertOptions(i,{silentJSONParsing:ua.transitional(ua.boolean),forcedJSONParsing:ua.transitional(ua.boolean),clarifyTimeoutError:ua.transitional(ua.boolean)},!1),s!=null&&(ie.isFunction(s)?a.paramsSerializer={serialize:s}:Gr.assertOptions(s,{encode:ua.function,serialize:ua.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Gr.assertOptions(a,{baseUrl:ua.spelling("baseURL"),withXsrfToken:ua.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let l=r&&ie.merge(r.common,r[a.method]);r&&ie.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),a.headers=Kt.concat(l,r);const n=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(c=c&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let u,p=0,y;if(!c){const h=[dy.bind(this),void 0];for(h.unshift.apply(h,n),h.push.apply(h,d),y=h.length,u=Promise.resolve(a);p<y;)u=u.then(h[p++],h[p++]);return u}y=n.length;let m=a;for(p=0;p<y;){const h=n[p++],f=n[p++];try{m=h(m)}catch(g){f.call(this,g);break}}try{u=dy.call(this,m)}catch(h){return Promise.reject(h)}for(p=0,y=d.length;p<y;)u=u.then(d[p++],d[p++]);return u}getUri(o){o=co(this.defaults,o);const a=ey(o.baseURL,o.url,o.allowAbsoluteUrls);return Hh(a,o.params,o.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){qr.prototype[t]=function(o,a){return this.request(co(a||{},{method:t,url:o,data:(a||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(co(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}qr.prototype[t]=o(),qr.prototype[t+"Form"]=o(!0)});const Jr=qr,zA=class g4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Xo(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new g4(function(a){o=a}),cancel:o}}};function OA(t){return function(o){return t.apply(null,o)}}function RA(t){return ie.isObject(t)&&t.isAxiosError===!0}const nc={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(nc).forEach(([t,o])=>{nc[o]=t});const LA=nc;function my(t){const o=new Jr(t),a=Fh(Jr.prototype.request,o);return ie.extend(a,Jr.prototype,o,{allOwnKeys:!0}),ie.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return my(co(t,i))},a}const Qe=my(ac);Qe.Axios=Jr,Qe.CanceledError=Xo,Qe.CancelToken=zA,Qe.isCancel=Yh,Qe.VERSION=cy,Qe.toFormData=Lr,Qe.AxiosError=we,Qe.Cancel=Qe.CanceledError,Qe.all=function(t){return Promise.all(t)},Qe.spread=OA,Qe.isAxiosError=RA,Qe.mergeConfig=co,Qe.AxiosHeaders=Kt,Qe.formToJSON=t=>Jh(ie.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=ny.getAdapter,Qe.HttpStatusCode=LA,Qe.default=Qe;const Yi=Qe,dc={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-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"}]},DA={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"},vA={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 Zr(t){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Zr(t)}function xa(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Ze(t,o){if(o.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+o.length+" present")}function ve(t){Ze(1,arguments);var o=Object.prototype.toString.call(t);return t instanceof Date||Zr(t)==="object"&&o==="[object Date]"?new Date(t.getTime()):typeof t=="number"||o==="[object Number]"?new Date(t):((typeof t=="string"||o==="[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 jA(t,o){Ze(2,arguments);var a=ve(t),i=xa(o);return isNaN(i)?new Date(NaN):(i&&a.setDate(a.getDate()+i),a)}function UA(t,o){Ze(2,arguments);var a=ve(t),i=xa(o);if(isNaN(i))return new Date(NaN);if(!i)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+i+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function Ki(t,o){if(Ze(2,arguments),!o||Zr(o)!=="object")return new Date(NaN);var a=o.years?xa(o.years):0,i=o.months?xa(o.months):0,s=o.weeks?xa(o.weeks):0,r=o.days?xa(o.days):0,l=o.hours?xa(o.hours):0,n=o.minutes?xa(o.minutes):0,c=o.seconds?xa(o.seconds):0,d=ve(t),u=i||a?UA(d,i+a*12):d,p=r||s?jA(u,r+s*7):u,y=n+l*60,m=c+y*60,h=m*1e3,f=new Date(p.getTime()+h);return f}function uy(t){var o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),t.getTime()-o.getTime()}function fy(t){Ze(1,arguments);var o=ve(t);return o.setHours(0,0,0,0),o}var WA=864e5;function HA(t,o){Ze(2,arguments);var a=fy(t),i=fy(o),s=a.getTime()-uy(a),r=i.getTime()-uy(i);return Math.round((s-r)/WA)}function Qo(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=a.getTime()-i.getTime();return s<0?-1:s>0?1:s}var GA=6e4,qA=36e5;function JA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=a.getFullYear()-i.getFullYear(),r=a.getMonth()-i.getMonth();return s*12+r}function ZA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o);return a.getFullYear()-i.getFullYear()}function hy(t,o){var a=t.getFullYear()-o.getFullYear()||t.getMonth()-o.getMonth()||t.getDate()-o.getDate()||t.getHours()-o.getHours()||t.getMinutes()-o.getMinutes()||t.getSeconds()-o.getSeconds()||t.getMilliseconds()-o.getMilliseconds();return a<0?-1:a>0?1:a}function YA(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=hy(a,i),r=Math.abs(HA(a,i));a.setDate(a.getDate()-s*r);var l=+(hy(a,i)===-s),n=s*(r-l);return n===0?0:n}function cc(t,o){return Ze(2,arguments),ve(t).getTime()-ve(o).getTime()}var KA={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},XA="trunc";function pc(t){return KA[XA]}function QA(t,o,a){Ze(2,arguments);var i=cc(t,o)/qA;return pc()(i)}function eI(t,o,a){Ze(2,arguments);var i=cc(t,o)/GA;return pc()(i)}function tI(t){Ze(1,arguments);var o=ve(t);return o.setHours(23,59,59,999),o}function aI(t){Ze(1,arguments);var o=ve(t),a=o.getMonth();return o.setFullYear(o.getFullYear(),a+1,0),o.setHours(23,59,59,999),o}function oI(t){Ze(1,arguments);var o=ve(t);return tI(o).getTime()===aI(o).getTime()}function iI(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=Qo(a,i),r=Math.abs(JA(a,i)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Qo(a,i)===-s;oI(ve(t))&&r===1&&Qo(t,i)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function sI(t,o,a){Ze(2,arguments);var i=cc(t,o)/1e3;return pc()(i)}function rI(t,o){Ze(2,arguments);var a=ve(t),i=ve(o),s=Qo(a,i),r=Math.abs(ZA(a,i));a.setFullYear(1584),i.setFullYear(1584);var l=Qo(a,i)===-s,n=s*(r-Number(l));return n===0?0:n}function lI(t){return Ze(1,arguments),ve(t).getFullYear()}function nI(t){Ze(1,arguments);var o=ve(t.start),a=ve(t.end);if(isNaN(o.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(rI(a,o));var s=Qo(a,o),r=Ki(o,{years:s*i.years});i.months=Math.abs(iI(a,r));var l=Ki(r,{months:s*i.months});i.days=Math.abs(YA(a,l));var n=Ki(l,{days:s*i.days});i.hours=Math.abs(QA(a,n));var c=Ki(n,{hours:s*i.hours});i.minutes=Math.abs(eI(a,c));var d=Ki(c,{minutes:s*i.minutes});return i.seconds=Math.abs(sI(a,d)),i}const dI=new Set([1]),cI={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,i=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){i.value&&(i.value.checked=a.modelValue)}function r(l){o("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},Xi=Oe(cI,[["__scopeId","data-v-e3a6ae4e"]]),po=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),pI={class:"personal-data"},mI={class:"personal-data__age"},uI={class:"personal-data__age__toggle"},fI={class:"personal-data__age__range"},hI={class:"personal-data__age__dropdown"},yI=po(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),gI={class:"selected-item"},bI=po(()=>e.createElementVNode("div",{class:"separator"},null,-1)),_I={class:"personal-data__nationality-position"},SI={key:0,class:"personal-data__nationality-position__switch"},CI=po(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),wI=po(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),kI={class:"personal-data__nationality-position__nationality"},EI=po(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),VI={class:"selected-item"},xI=po(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),NI={class:"selected-item"},TI={class:"personal-data__nationality-position__position"},BI=po(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),FI={class:"selected-item"},PI="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$I={__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:o,emit:a}){const i=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},r={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({...dc}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:dc.minAge,max:dc.maxAge}),u=e.ref(Gi),p=e.ref(""),y=e.ref(""),m=e.ref(l.value.availableYears[l.value.availableYears.length-1]),h=e.ref(0),f=e.computed(()=>{const k=l.value.nationalities?[...l.value.nationalities]:[];i.isSeleccion&&k.forEach(V=>{V.isSelected=V.id===138});const E=k[0];return(!E||E.id!==0)&&k.unshift(s),k}),g=e.computed(()=>{let k=(i.filter&&i.filter.positions?i.filter.positions:l.value.positions)?[...l.value.positions]:[];const E=k[0];return(!E||E.id!==0)&&k.unshift(r),k.sort((V,N)=>V.id-N.id),k}),b=e.computed(()=>i.season&&i.season.tournamentId&&dI.has(i.season.tournamentId)||i.filters&&i.filters.isEligibilitySwitchVisible);e.watch(f,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===f.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?p.value="Todas las nacionalidades":p.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(g,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===g.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?y.value="Todas las posiciones":y.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(()=>i.filters,k=>{if(k&&k.availableYears){const E=!Number.isNaN(Number(k.selectedYear));l.value=k,c.value=l.value.selectedYear&&E?1:0,m.value=E?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,r.isSelected=k.positions.every(V=>V.isSelected),P()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{P()}),e.watch(()=>i.season,k=>{k&&k.id!==h.value&&!i.awaitForFilters&&(h.value=k.id,_(k))},{immediate:!0,deep:!1});async function _(k){try{if(k&&k.id){const E=new Set,V=await v(k.id),N=new Date,Y=[],de=new Map,ue=new Map;V.forEach(C=>{const I=new Date(C.dob),U=lI(I),M=nI({start:I,end:N});de.has(C.nationality_id)||de.set(C.nationality_id,{id:C.nationality_id,isSelected:!0,name:DA[`${C.nationality_id}`]}),ue.has(C.position_id)||ue.set(C.position_id,{id:C.position_id,isSelected:!0,name:vA[`${C.position_id}`]}),E.add(U),Y.push(M.years)}),l.value.minAge=Math.min(...Y),l.value.maxAge=Math.max(...Y),l.value.availableYears=[...E].sort((C,I)=>I-C),m.value=l.value.availableYears[0],l.value.nationalities=[...de.values()],l.value.positions=[...ue.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(E){throw new Error(E)}}function F(k=null){const E=!k||k===ro.All;(E||k===ro.NATIONALITY)&&f.value.forEach(V=>{V.isSelected=!0}),(E||k===ro.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(E||k===ro.POSITION)&&g.value.forEach(V=>{V.isSelected=!0}),(E||k===ro.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(E||k===ro.YEAR)&&(m.value=i.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),P()}async function v(k){try{const E={Authorization:localStorage.getItem("user_token")||i.token},V={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:PI,N=await Yi.get(V+k,{headers:E});return N.data?N.data.players:[]}catch(E){return Promise.reject(E)}}function T(k){c.value=k.index,i.filters&&i.filters.availableYears&&k.index===0&&(i.filters.selectedYear="Sin límite")}function z(k){d.value.min=k.minValue,d.value.max=k.maxValue,P()}function D(k,E){E.id===0?f.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,f.value[0].isSelected=f.value.every((V,N)=>N===0?!0:V.isSelected))}function P(){const k=c.value===0,E={};k?(E.ageByRange=d.value,E.ageLimits={min:l.value.minAge,max:l.value.maxAge}):E.year=m.value,l.value.isEligibilitySelected?E.eligibility=[...l.value.eligibility]:E.nationalities=f.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),E.positions=g.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),a("update:filters",E)}function Q(k,E){E.id===0?g.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,g.value[0].isSelected=g.value.every((V,N)=>N===0?!0:V.isSelected))}function O(k){m.value=k,i.filters&&(i.filters.selectedYear=k),P()}return o({onClearFilters:F}),(k,E)=>(e.openBlock(),e.createElementBlock("div",pI,[e.createElementVNode("div",mI,[e.createElementVNode("div",uI,[e.createVNode(l$,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:T},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",fI,[e.createVNode(e.unref(wh),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:z},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",hI,[yI,e.createVNode(e.unref($a),e.mergeProps({"model-value":m.value},u.value,{items:l.value.availableYears,onInput:O}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",gI,e.toDisplayString(V),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,e.toDisplayString(V),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),bI,e.createElementVNode("div",_I,[b.value?(e.openBlock(),e.createElementBlock("div",SI,[CI,e.createVNode(Xi,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value.isEligibilitySelected=V)},null,8,["modelValue"]),wI])):e.createCommentVNode("",!0),e.createElementVNode("div",kI,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[xI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",NI,e.toDisplayString(V.name),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:V.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},[EI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:f.value}),{default:e.withCtx(()=>[e.createElementVNode("div",VI,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>D(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",TI,[BI,e.createVNode(e.unref($a),e.mergeProps(u.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",FI,[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:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Me),{"model-value":V.isSelected,label:t.isFemale?V.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>Q(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},AI=Oe($I,[["__scopeId","data-v-23130339"]]),II={class:"plays"},MI={class:"plays__body__offensive"},zI={class:"plays__body__title"},OI={class:"number-of-categories"},RI={class:"plays__body__categories"},LI={class:"plays__body__defensive-possession-offenses"},DI={class:"plays__body__title"},vI={class:"number-of-categories"},jI={class:"plays__body__categories"},UI={class:"plays__body__title"},WI={class:"number-of-categories"},HI={class:"plays__body__categories"},GI={class:"plays__body__title"},qI={class:"number-of-categories"},JI={class:"plays__body__categories"},ZI={__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 o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(!1),r=e.ref(!1),l=e.computed(()=>({"--template-columns":o.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>o.playsCategories.offensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),c=e.computed(()=>o.playsCategories.defensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),d=e.computed(()=>o.playsCategories.possession.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),u=e.computed(()=>o.playsCategories.offenses.categories.reduce((m,h)=>(h.isSelected&&m++,m),0));function p(m,h){h.isSelected=m}function y(m){m==="offensive"?a.value=!a.value:m==="defensive"?i.value=!i.value:m==="possession"?s.value=!s.value:m==="offenses"&&(r.value=!r.value)}return(m,h)=>(e.openBlock(),e.createElementBlock("div",II,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",MI,[e.createElementVNode("div",zI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=f=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",OI,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=f=>y("offensive"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",RI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",LI,[e.createElementVNode("div",DI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=f=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",vI,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=f=>y("defensive"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",jI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]]),e.createElementVNode("div",UI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=f=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",WI,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=f=>y("possession"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",HI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",GI,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=f=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",qI,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=f=>y("offenses"))},[e.withDirectives(e.createVNode(lo,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",JI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Me),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},YI=Oe(ZI,[["__scopeId","data-v-364e6cae"]]),KI={class:"template-results"},XI={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:o}){const a=t,i=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{o("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,r)=>(e.openBlock(),e.createElementBlock("div",KI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":i.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},QI=Oe(XI,[["__scopeId","data-v-453e89c2"]]),eM={__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:o}){const a=t,i=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){o("click")}return(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(i.value),onClick:s},e.toDisplayString(t.text),7))}},Qi=Oe(eM,[["__scopeId","data-v-9688933e"]]),tM={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},yy={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},aM={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},oM={4:"OF",5:"Cf",6:"S",7:"F"};function mc(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const iM={class:"dropdown"},sM={class:"selected-item"},rM={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",iM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",sM,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},Bt=Oe(rM,[["__scopeId","data-v-064d5f86"]]),lM={class:"dropdown"},nM={class:"game-item"},dM={key:0,class:"item-game"},cM={class:"match-day"},pM={class:"team-logo"},mM=["src"],uM={class:"text"},fM={class:"text score"},hM={class:"text"},yM={class:"team-logo"},gM=["src"],bM={class:"item-game"},_M={class:"team-logo"},SM=["src"],CM={class:"text"},wM={class:"text score"},kM={class:"text"},EM={class:"team-logo"},VM=["src"],xM={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",lM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",nM,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",dM,[e.createElementVNode("div",cM,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",pM,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,mM)]),e.createElementVNode("div",uM,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",fM,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",hM,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",yM,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,gM)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",bM,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",_M,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,SM)]),e.createElementVNode("div",CM,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",wM,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",kM,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",EM,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,VM)])])]),_:1},16,["items"])]))}},Yr=Oe(xM,[["__scopeId","data-v-7883a91e"]]),Kr=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),NM={class:"container"},TM={class:"container__row"},BM={class:"container__row__wrapper"},FM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),PM={class:"container__row__wrapper__input"},$M={class:"container__row two-items"},AM={class:"container__row__wrapper"},IM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),MM={key:0,class:"container__row__wrapper__input"},zM={class:"container__row__wrapper"},OM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),RM={key:0,class:"container__row__wrapper__input"},LM={class:"container__row"},DM={class:"container__row__wrapper"},vM=Kr(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),jM={key:0,class:"container__row__wrapper__input"},UM={class:"container__action"},WM={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=e.ref(null),s=e.ref(null),r=e.ref(null),l=e.ref(null);function n(p){i.value=p,o("update:tournament",p)}function c(p){s.value=p,o("update:season",p)}function d(p){r.value=p}function u(p){l.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",NM,[e.createElementVNode("div",TM,[e.createElementVNode("div",BM,[FM,e.createElementVNode("div",PM,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",$M,[e.createElementVNode("div",AM,[IM,i.value&&i.value.seasons?(e.openBlock(),e.createElementBlock("div",MM,[e.createVNode(Bt,{items:i.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",zM,[OM,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",RM,[e.createVNode(Bt,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",LM,[e.createElementVNode("div",DM,[vM,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",jM,[e.createVNode(Yr,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",UM,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},HM=Oe(WM,[["__scopeId","data-v-b63e9c84"]]),GM={class:"dropdown"},qM={class:"item-team"},JM={class:"team-logo"},ZM=["src"],YM={class:"team-acronym"},KM={class:"item-team"},XM={class:"team-logo"},QM=["src"],ez={class:"team-acronym"},tz={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",GM,[e.createVNode(e.unref($a),e.mergeProps(e.unref(Gi),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",qM,[e.createElementVNode("div",JM,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,ZM)]),e.createElementVNode("div",YM,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",KM,[e.createElementVNode("div",XM,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,QM)]),e.createElementVNode("div",ez,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},gy=Oe(tz,[["__scopeId","data-v-afd2bee8"]]),az={class:"advanced-filters"},oz={class:"advanced-filters__buttons"},iz=["onClick"],sz={class:"advanced-filters__filters"},rz={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const o=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>kGe)),i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>vGe)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>UGe)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:i}],l=e.ref(r[0]),n=e.computed(()=>o.selectedCategory?o.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,u)=>(e.openBlock(),e.createElementBlock("div",az,[e.createElementVNode("div",oz,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:y=>c(p)},e.toDisplayString(p.name),11,iz)),64))]),e.createElementVNode("div",sz,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},uc=Oe(rz,[["__scopeId","data-v-c62c5b9c"]]),mo=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),lz={class:"container"},nz={class:"container__row"},dz={class:"container__row__wrapper"},cz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),pz={class:"container__row__wrapper__input"},mz={class:"container__row two-items"},uz={class:"container__row__wrapper"},fz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),hz={key:0,class:"container__row__wrapper__input"},yz={class:"container__row__wrapper"},gz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),bz={key:0,class:"container__row__wrapper__input"},_z={class:"container__row"},Sz={class:"container__row__wrapper"},Cz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),wz={key:0,class:"container__row__wrapper__input"},kz={class:"container__row"},Ez={class:"container__row__wrapper"},Vz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),xz={key:0,class:"container__row__wrapper__input"},Nz={class:"container__row type-and-advanced"},Tz={class:"container__row__wrapper"},Bz=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),Fz={class:"container__row__wrapper__input"},Pz={class:"container__row__wrapper center"},$z=mo(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Az={class:"container__row__wrapper__input"},Iz={class:"container__row"},Mz={class:"container__action"},zz={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(null),u=e.ref(!0),p=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function y(_){s.value=_,o("update:tournament",_)}function m(_){r.value=_,o("update:season",_)}function h(_){n.value=_,o("update:team",_)}function f(_){c.value=_}function g(_){l.value=_}function b(_){d.value=_}return(_,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",lz,[e.createElementVNode("div",nz,[e.createElementVNode("div",dz,[cz,e.createElementVNode("div",pz,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",mz,[e.createElementVNode("div",uz,[fz,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",hz,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",yz,[gz,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",bz,[e.createVNode(gy,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_z,[e.createElementVNode("div",Sz,[Cz,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",wz,[e.createVNode(Bt,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",kz,[e.createElementVNode("div",Ez,[Vz,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",xz,[e.createVNode(Yr,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Nz,[e.createElementVNode("div",Tz,[Bz,e.createElementVNode("div",Fz,[e.createVNode(Bt,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:b},null,8,["items"])])]),e.createElementVNode("div",Pz,[$z,e.createElementVNode("div",Az,[e.createVNode(Xi,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=v=>u.value=v)},null,8,["modelValue"])])])]),e.createElementVNode("div",Iz,[e.createVNode(uc,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",Mz,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},Oz=Oe(zz,[["__scopeId","data-v-575b26b5"]]),ei=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),Rz={class:"container"},Lz={class:"container__row"},Dz={class:"container__row__wrapper"},vz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),jz={class:"container__row__wrapper__input"},Uz={class:"container__row two-items"},Wz={class:"container__row__wrapper"},Hz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Gz={key:0,class:"container__row__wrapper__input"},qz={class:"container__row__wrapper"},Jz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Zz={key:0,class:"container__row__wrapper__input"},Yz={class:"container__row"},Kz={class:"container__row__wrapper"},Xz=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Qz={key:0,class:"container__row__wrapper__input"},eO={class:"container__row type-and-advanced"},tO={class:"container__row__wrapper"},aO=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),oO={class:"container__row__wrapper__input"},iO={class:"container__row__wrapper center"},sO=ei(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),rO={class:"container__row__wrapper__input"},lO={class:"container__row"},nO={class:"container__action"},dO={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){n.value=g,o("update:team",g)}function h(g){l.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Rz,[e.createElementVNode("div",Lz,[e.createElementVNode("div",Dz,[vz,e.createElementVNode("div",jz,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",Uz,[e.createElementVNode("div",Wz,[Hz,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",Gz,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qz,[Jz,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Zz,[e.createVNode(gy,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Yz,[e.createElementVNode("div",Kz,[Xz,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",Qz,[e.createVNode(Yr,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",eO,[e.createElementVNode("div",tO,[aO,e.createElementVNode("div",oO,[e.createVNode(Bt,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",iO,[sO,e.createElementVNode("div",rO,[e.createVNode(Xi,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=_=>d.value=_)},null,8,["modelValue"])])])]),e.createElementVNode("div",lO,[e.createVNode(uc,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",nO,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},cO=Oe(dO,[["__scopeId","data-v-6d73d5e6"]]),ti=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),pO={class:"container"},mO={class:"container__row"},uO={class:"container__row__wrapper"},fO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),hO={class:"container__row__wrapper__input"},yO={class:"container__row two-items"},gO={class:"container__row__wrapper"},bO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),_O={key:0,class:"container__row__wrapper__input"},SO={class:"container__row__wrapper"},CO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),wO={key:0,class:"container__row__wrapper__input"},kO={class:"container__row"},EO={class:"container__row__wrapper"},VO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),xO={key:0,class:"container__row__wrapper__input"},NO={class:"container__row type-and-advanced"},TO={class:"container__row__wrapper"},BO=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),FO={class:"container__row__wrapper__input"},PO={class:"container__row__wrapper center"},$O=ti(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),AO={class:"container__row__wrapper__input",style:{width:"fit-content"}},IO={class:"container__row"},MO={class:"container__action"},zO={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){l.value=g}function h(g){n.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pO,[e.createElementVNode("div",mO,[e.createElementVNode("div",uO,[fO,e.createElementVNode("div",hO,[e.createVNode(Bt,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",yO,[e.createElementVNode("div",gO,[bO,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",_O,[e.createVNode(Bt,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",SO,[CO,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",wO,[e.createVNode(Bt,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",kO,[e.createElementVNode("div",EO,[VO,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",xO,[e.createVNode(Yr,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",NO,[e.createElementVNode("div",TO,[BO,e.createElementVNode("div",FO,[e.createVNode(Bt,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",PO,[$O,e.createElementVNode("div",AO,[e.createVNode(Xi,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=_=>d.value=_)},null,8,["modelValue"])])])]),e.createElementVNode("div",IO,[e.createVNode(uc,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",MO,[e.createVNode(Qi,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},OO=Oe(zO,[["__scopeId","data-v-6e904db8"]]),RO={class:"template-videos"},LO={class:"template-videos__header"},DO={class:"template-videos__body"},vO=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:HM,VideosPlayer:Oz,VideosTeam:cO,VideosGame:OO}}),jO=Object.assign(vO,{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:o}){const a=t,i={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],r=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),u=e.ref(c.value[0]),p=e.ref({}),y=e.ref({}),m=e.ref({}),h=e.ref({}),f=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const b=e.ref(null);e.watch(p,C=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(I=>I.id===C.id),C.arrayMatchDays?(h.value=C.arrayMatchDays[0]||{},m.value=C.arrayTeams[0]||{}):(z(C),D(C))}),e.watch(m,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!m.value.arrayPlayers||!m.value.arrayPlayers.length)&&(m.value.arrayPlayers=p.value.mapPlayersByTeam.get(m.value.team_id))},700)});async function _(){try{d.value=await F()}catch(C){throw new Error(C)}}async function F(){try{const C={Authorization:mc()||a.token},I={}.API_TOURNAMENTS||a.tournamentsUrl,U=await Yi.get(I,{headers:C});return U.data?U.data.map(M=>({...M.tournament,seasons:M.seasons})):[]}catch(C){return Promise.reject(C)}}async function v(C,I,U=""){o("loading-data");let M=U;try{M||(M={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,C.forEach((H,w)=>{M+=`${w===0?"":"&"}seasons=${H}`}));const W={Authorization:mc()||a.token},{data:{data:ce,teams:j}}=await Yi.get(M,{headers:W});return{seasonsAndGames:ce,seasonsAndTeams:j}}catch(W){if(I>0)return v(C,I-1,M);throw new Error(W)}finally{o("loading-data")}}async function T(C){try{const I={Authorization:mc()||a.token},U=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${C.seasonId}`,M=await Yi.get(U,{headers:I});return M.data?M.data.players:[]}catch(I){return Promise.reject(I)}}async function z(C){try{const{seasonsAndGames:I,seasonsAndTeams:U}=await v([C.id,...C.related_seasons.map(j=>j.id)],3),M=U.find(j=>j._id===C.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const W=M.teams.reduce((j,H)=>(p.value.arrayTeams.push(H),p.value.mapTeams.set(H.team_id,{name:H.colloquial_name,acronym:H.acronym,logo:H.logo,id:H.team_id}),j.set(H.team_id,H),j),new Map);m.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const ce=Array.from(I.reduce((j,H)=>(H.games.forEach(w=>{if(w.game_status===1&&w.has_video){(!p.value.maxGameId||w.game_id>p.value.maxGameId)&&(p.value.maxGameId=w.game_id);let G=w.matchday_abbreviation.replace("M","J"),$=w.matchday_abbreviation.replace("M","Jornada ");const J=w.matchday_abbreviation.replace("M","");H.season_type===0?y.value.tournament_type===1&&(w.seasonId===881?(G=oM[J]||G,$=aM[J]||$):(G=yy[w.matchday_abbreviation]?w.matchday_abbreviation:G,$=yy[w.matchday_abbreviation]||$,G==="FINAL"&&(G="F"))):H.season_type===1?(G=tM[w.matchday_abbreviation],$=G):(G=w.matchday_abbreviation.replace("PO","R"),$="Repechaje"),w.roundAbbreviation=G,w.roundName=$,p.value.mapGames.set(w.game_id,{id:w.game_id,date:w.date,dateTimeMillis:new Date(w.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(w.home_team),awayTeam:p.value.mapTeams.get(w.visiting_team),roundAbbreviation:w.roundAbbreviation,roundName:w.roundName,score:w.score,gameResult:w.score[0]>w.score[1]?1:w.score[0]<w.score[1]?2:3,seasonId:H.season_id});const fe=j.get(w.roundAbbreviation);w.numberDateTimeMillis=new Date(w.date_time_utc).getTime(),w.homeTeam=W.get(w.home_team),w.awayTeam=W.get(w.visiting_team);const ye=p.value.mapGamesByTeam.get(w.home_team),ge=p.value.mapGamesByTeam.get(w.visiting_team);ye?ye.push(w):p.value.mapGamesByTeam.set(w.home_team,[w]),ge?ge.push(w):p.value.mapGamesByTeam.set(w.visiting_team,[w]),fe?fe.arrayGames.push(w):j.set(w.roundAbbreviation,{stringMatchDayAbbreviation:w.roundAbbreviation,stringMatchDayName:w.roundName,arrayGames:[w]})}}),j),new Map).values());ce.reverse(),ce.forEach(j=>{j.arrayGames.sort((H,w)=>H.numberDateTimeMillis-w.numberDateTimeMillis)}),p.value.arrayMatchDays=ce,h.value=ce[0]||{}}catch(I){throw new Error(I)}}async function D(C){try{const I=await E(C.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=I.reduce((U,M)=>{p.value.mapPlayers.set(M.player_id,{id:M.player_id,name:M.player_name,shortName:M.shortName,photo:M.player_photo,teamId:M.team_id,positionId:M.position_id});const W=U.get(M.team_id);return W?W.push(M):U.set(M.team_id,[M]),U},new Map)}catch(I){throw new Error(I)}}async function P(){try{let C=[];f.value.isEmpty?(C=await V(),g.value={...C}):C=g.value;const I=[];if(C&&C.length){f.value=C.reduce((H,w)=>{if(w.group_id!=="g-55"){const G={idAux:w.group_id,ids:[...w.ids?w.ids:[],...w.rival_Ids?w.rival_Ids:[]],type:w.type,name:w.name,coordinatePoint:w.coordinate_point,requiresRivalTransform:r.includes(w.group_id)};G.idsAux=[...G.ids],G.subcategoryGroups=w.group_id==="g-12"?[]:Q(w,0,new Map,!1,{},G.idsAux),I.push(G),G.type.includes(n.player)&&H.player.push(G),G.type.includes(n.team)&&(G.idAux!=="g-2"&&H.games.push(G),H.team.push(G)),G.type.includes(n.goalkeeper)&&H.goalkeeper.push(G)}return H},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const U=new Map,M="Resumen",W="Todas sus jugadas",ce=f.value.player.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]),j=f.value.goalkeeper.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]);f.value.games.unshift({name:M,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),f.value.team.unshift({name:M,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),f.value.player.unshift({name:M,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:ce,booleanIsMinutesPlayed:!0}),f.value.goalkeeper.unshift({name:M,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:j,booleanIsMinutesPlayed:!0})}}catch(C){throw new Error(C)}}function Q(C,I=0,U=new Map,M=!1,W={},ce=[]){if(!C.group_id)return;let j=U.get(I);const H=M?`${C.id_category}_r`:C.id_category;C.id_category&&ce.push(C.id_category);let w={ids:[H],groupId:C.group_id,level:I,name:C.name,isSelected:!0,fatherCategories:I>0?[W]:[],idsByFatherCategory:{[C.category_father]:[H]}};if(I>0&&I===1&&(w.id=C.id_category),j&&I!==0){const G=C.group_id.charAt(C.group_id.length-1),$=j.find(J=>J.groupId.endsWith(G));$&&!s.includes(w.groupId)?(w=$,$.ids.push(H),$.fatherCategories.push(W),$.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),$.idsByFatherCategory[C.category_father]?$.idsByFatherCategory[C.category_father].push(H):$.idsByFatherCategory[C.category_father]=[H]):(w.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),j.push(w))}else I!==0&&(W.childCategories?W.childCategories.push(w):W.childCategories=[w],j=[w],U.set(I,j));if(C.categories&&C.categories.length?C.categories.forEach(G=>{Q(G,I+1,U,M,w,ce)}):C.rival_categories&&C.rival_categories.length&&C.rival_categories.forEach(G=>{Q(G,I+1,U,!0,w,ce)}),I===0)return Array.from(U.values())}function O(C){const I=C||C;if(I.booleanIsBestPlays)return I.arrayCategoriesIds;const U={total:[],toRemove:[]};if(I.subcategoryGroups&&I.subcategoryGroups.length?I.subcategoryGroups[0].forEach(M=>{k(M,null,U)}):(I.ids&&U.total.push(...I.ids),I.rival_ids&&I.rival_ids.forEach(M=>{U.total.push(`${M}_r`)})),U.total=U.total.reduce((M,W)=>(U.toRemove.includes(W)||M.push(W),M),[]),!C){const M=I.name.toLowerCase().includes("recibid");b.value.isRivalSubject=M,b.value.avoidCategorySingleName=M,b.value.coordinatePoint=I.coordinatePoint,b.value.requiresRivalTransform=I.requiresRivalTransform}return U.total}function k(C,I=[],U={total:[],toRemove:[]}){C.isSelected?C.childCategories?C.childCategories.forEach(M=>{const W=I?Object.entries(C.idsByFatherCategory).reduce((ce,[j,H])=>(I.includes(Number(j))&&H.forEach(w=>{typeof w=="string"&&w.endsWith("_r")?ce.push(Number(w.split("_")[0])):ce.push(w)}),ce),[]):[C.id];k(M,W,U)}):I?Object.entries(C.idsByFatherCategory).forEach(([M,W])=>{I.includes(Number(M))&&W.forEach(ce=>{U.total.push(ce)})}):C.level===1?Object.entries(C.idsByFatherCategory).forEach(([M,W])=>{W.forEach(ce=>{U.total.push(ce)})}):U.total.push(C.id):C.childCategories||C.ids.forEach(M=>{U.toRemove.push(M)})}async function E(C){try{const I=await T({seasonId:C});return I.forEach(U=>{const[M,W]=U.player_name.split(","),ce=M.split(" ");let j="";for(const H of ce)if(j+=` ${H}`,H.length>3)break;U.shortName=W&&M?`${W.trim().charAt(0)}.${j}`:""}),I}catch(I){return Promise.reject(I)}}async function V(){try{const C={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Yi.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:C})).data||[]}catch(C){return Promise.reject(C)}}function N(C){u.value=C}function Y(C){y.value=C,p.value=C.seasons[0]}function de(C){p.value=C}function ue(C){m.value=C}return _(),P(),(C,I)=>(e.openBlock(),e.createElementBlock("div",RO,[e.createElementVNode("div",LO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,U=>(e.openBlock(),e.createBlock(Qi,e.mergeProps({key:U.name},i,{text:U.name,"is-active":u.value.componentName===U.componentName,tournaments:d.value,onClick:M=>N(U)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",DO,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value.componentName),{tournaments:d.value,"advanced-filter-categories":f.value,"onUpdate:tournament":Y,"onUpdate:season":de,"onUpdate:team":ue},null,40,["tournaments","advanced-filter-categories"]))])]))}}),UO=Oe(jO,[["__scopeId","data-v-d6f7aec8"]]),by=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"]]),WO={class:"template-taken-corners"},HO={class:"template-taken-corners__header"},GO={class:"template-taken-corners__header__all"},qO={class:"template-taken-corners__body"},JO={class:"template-taken-corners__body__players"},ZO={class:"template-taken-corners__body__players__player__jersey"},YO={class:"template-taken-corners__body__players__player__photo"},KO={class:"template-taken-corners__body__players__player__photo__img"},XO=["src"],QO={class:"template-taken-corners__body__players__player__info"},eR={class:"template-taken-corners__body__players__player__info__name"},tR={class:"template-taken-corners__body__players__player__info__position"},aR={class:"template-taken-corners__body__players__player__info__position__nationality"},oR=["src"],iR={class:"template-taken-corners__body__players__player__info__position__name"},sR={class:"template-taken-corners__body__players__player__checkbox"},rR={__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:o,emit:a}){const i=t,s=e.ref(!1),r=e.ref([]),l=e.computed(()=>i.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((f,g)=>g.isSelected?f+1:f,0));e.watch(()=>i.takenCornersFilters,f=>{r.value=f.map(g=>{const b={...g};return(g.isSelected===void 0||g.isSelected===null)&&(b.isSelected=!0),b})},{immediate:!0,deep:!0}),e.watch(n,f=>{s.value=f===r.value.length,a("change-filters-selected",f),a("update:filters",r.value)},{immediate:!0});function c(f){return`https://golstatsimages.blob.core.windows.net/flags/${f}.jpg`}function d(f){return`https://golstatsimages.blob.core.windows.net/players-profile/${f}.png`}function u(f){let g=!1;return f.split(" ").reduce((b,_)=>(g||(_.length>3?(b=_,g=!0):b+=`${_} `),b),"").trim()}function p(f){return`${u(f.last_name)}, ${f.first_name.trim()}`}function y(f){return i.isFemale?by.get(f.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):by.get(f.positions[0])}function m(f){f?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,b)=>{g.isSelected=b===0})}function h(){r.value.forEach(f=>{f.isSelected=!0})}return o({clearFilters:h}),(f,g)=>(e.openBlock(),e.createElementBlock("div",WO,[e.createElementVNode("div",HO,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",GO,[e.createVNode(e.unref(Me),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":m},null,8,["model-value"])])]),e.createElementVNode("div",qO,[e.createElementVNode("div",JO,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",ZO,e.toDisplayString(b.jersey),1),e.createElementVNode("div",YO,[e.createElementVNode("div",KO,[e.createElementVNode("img",{src:d(b.player_id),alt:"player photo",width:"36",height:"36"},null,8,XO)])]),e.createElementVNode("div",QO,[e.createElementVNode("div",eR,e.toDisplayString(p(b)),1),e.createElementVNode("div",tR,[e.createElementVNode("div",aR,[e.createElementVNode("img",{src:c(b.nationality_id),alt:"country flag"},null,8,oR)]),e.createElementVNode("div",iR,e.toDisplayString(y(b)),1)])]),e.createElementVNode("div",sR,[e.createVNode(e.unref(Me),{modelValue:b.isSelected,"onUpdate:modelValue":_=>b.isSelected=_,"avoid-interaction":n.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},lR=Oe(rR,[["__scopeId","data-v-763fcc54"]]),fc={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]}]},hc=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),nR={class:"template-how-was-corner"},dR={class:"template-how-was-corner__header"},cR=hc(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),pR={class:"template-how-was-corner__header__radio-input"},mR={class:"template-how-was-corner__header__radio-input__radio"},uR=hc(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),fR={class:"template-how-was-corner__header__radio-input"},hR={class:"template-how-was-corner__header__radio-input__radio"},yR=hc(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),gR=["onClick"],bR={class:"template-how-was-corner__content__corner-type__img"},_R=["src","alt"],SR={class:"template-how-was-corner__content__corner-type__info"},CR={class:"template-how-was-corner__content__corner-type__info__title"},wR={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>fc},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:o}){const a=t,i=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),r=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>i.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{o("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),i.value=n.cornerType,o("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",nR,[e.createElementVNode("div",dR,[cR,e.createElementVNode("div",pR,[e.createElementVNode("div",mR,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),uR])]),e.createElementVNode("div",fR,[e.createElementVNode("div",hR,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),yR])])]),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(s.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:p=>l(d)},[e.createElementVNode("div",bR,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,_R)]),e.createElementVNode("div",SR,[e.createElementVNode("div",CR,e.toDisplayString(d.title),1)])],10,gR))),128))],2)]))}},kR=Oe(wR,[["__scopeId","data-v-b7e3b8e0"]]),es=[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],Aa=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),ER={class:"template-zone"},VR={class:"controls-zone-container"},xR={class:"controls-zone-container-title-checkcon"},NR={class:"controls-zone-container-title-checkcon-check"},TR={class:"gsc-field-img-container"},BR={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FR=["fill"],PR=["fill"],$R=["fill"],AR=["fill"],IR=["fill"],MR=["fill"],zR=["fill"],OR=["fill"],RR=["fill"],LR=["fill"],DR=["fill"],vR=["fill"],jR=["fill"],UR=["fill"],WR=["fill"],HR=["fill"],GR=["fill"],qR=["fill"],JR=["fill"],ZR=["fill"],YR=["fill"],KR=["fill"],XR=["fill"],QR=["fill"],eL=["fill"],tL=["fill"],aL=["fill"],oL=["fill"],iL=["fill"],sL=["fill"],rL=["fill"],lL=["fill"],nL=["fill"],dL=["fill"],cL=["fill"],pL=Aa(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),mL=Aa(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),uL=["id"],fL=Aa(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),hL=[fL],yL=["mask"],gL=Aa(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),bL=[gL],_L=Aa(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),SL=Aa(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),CL={class:"template-zone__total-corners"},wL=Aa(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),kL=Aa(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),EL=[wL,kL],VL={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...es]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(!0),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,u=>{s.value=u.length===35}),e.watch(()=>i.zoneFilters,u=>{r.value=u},{immediate:!0,deep:!0}),e.watch(()=>r.value,u=>{a("update:filters",u),a("change-filters-selected",u.length)},{deep:!0});function n(u){u?(r.value=es,s.value=!0):(r.value=[],s.value=!1)}function c(u){r.value.includes(u)?r.value=r.value.filter(p=>p!==u):r.value.push(u),s.value=r.value.length===35}function d(){r.value=[...es]}return o({clearFilters:d}),(u,p)=>(e.openBlock(),e.createElementBlock("div",ER,[e.createElementVNode("div",VR,[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",xR,[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",NR,[e.createVNode(e.unref(Me),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",TR,[(e.openBlock(),e.createElementBlock("svg",BR,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,FR),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,PR),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,$R),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,AR),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,IR),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,MR),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,zR),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,OR),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,RR),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,LR),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,DR),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,vR),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,jR),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,UR),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,WR),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,HR),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,GR),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,qR),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,JR),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,ZR),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,YR),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,KR),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,XR),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,QR),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,eL),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,tL),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,aL),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,oL),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,iL),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,sL),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,rL),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,lL),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,nL),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,dL),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,cL),pL,mL,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},hL,8,uL),e.createElementVNode("g",{mask:`url(#${l.value})`},bL,8,yL),_L,SL]))]),e.withDirectives(e.createElementVNode("div",CL,EL,512),[[e.vShow,!1]])]))}},xL=Oe(VL,[["__scopeId","data-v-378bf7e2"]]),yc=[{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]}],NL={class:"what-happened"},TL={class:"what-happened__all"},BL={class:"what-happened__filters"},FL={key:0,class:"what-happened__filters__filter__composed"},PL={class:"what-happened__filters__filter__composed__main"},$L={key:1,class:"what-happened__filters__filter__single"},AL={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...yc]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?h.child.forEach(f=>{f.isSelected&&m++}):h.isSelected&&m++,m),0)),r=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?m+=h.child.length:m++,m),0)),l=e.computed(()=>s.value===r.value),n=e.computed(()=>s.value===1);e.watch(()=>i.whatHappenedFilters,m=>{a("change-filters-selected",s.value),a("update:filters",m)},{deep:!0,immediate:!0});function c(m){i.whatHappenedFilters.forEach(h=>{m?(h.isSelected=m,h.child&&h.child.forEach(f=>{f.isSelected=m})):h.child?(h.isSelected=!0,h.child.forEach(f=>{f.isSelected=!0})):h.isSelected=!1})}function d(m,h){h.isSelected=m,h.child.forEach(f=>{f.isSelected=m})}function u(m,h,f){f.isSelected=m,h.isSelected=h.child.every(g=>g.isSelected)}function p(m,h){h.isSelected=m}function y(){i.whatHappenedFilters.forEach(m=>{m.child?m.child.forEach(h=>{h.isSelected=!0}):m.isSelected=!0})}return o({onResetFilters:y}),(m,h)=>(e.openBlock(),e.createElementBlock("div",NL,[e.createElementVNode("div",TL,[e.createVNode(e.unref(Me),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",BL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(f,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[f.child?(e.openBlock(),e.createElementBlock("div",FL,[e.createElementVNode("div",PL,[e.createVNode(e.unref(Me),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>d(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.child,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:`c${_}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(Me),{"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":n.value&&b.isSelected,"onUpdate:modelValue":F=>u(F,f,b)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",$L,[e.createVNode(e.unref(Me),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>p(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},IL=Oe(AL,[["__scopeId","data-v-8f375a1a"]]),gc={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}]}},_y=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),ML={class:"template-results"},zL={class:"template-results__type-switch"},OL=_y(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),RL=_y(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),LL={class:"template-results__info"},DL={key:0,class:"template-results__group"},vL={key:1,class:"template-results__group"},jL={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...gc})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(d=>d.isSelected).length:s.value.results.final.filter(d=>d.isSelected).length;return a("change-filters-selected",c),c}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>i.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return o({removeFilters:n}),(c,d)=>(e.openBlock(),e.createElementBlock("div",ML,[e.withDirectives(e.createElementVNode("div",zL,[OL,e.createVNode(Xi,{modelValue:s.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=u=>s.value.isMoment=u)},null,8,["modelValue"]),RL],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",LL,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",DL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",vL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Me),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},UL=Oe(jL,[["__scopeId","data-v-ee3b28d3"]]),WL={key:0,class:"productivity__header__text"},HL={key:0},GL={key:1},qL={key:2},JL={key:3},ZL={key:1,class:"productivity__header__checkbox"},YL={class:"templates__body"},KL={key:0,class:"templates-plays"},XL={key:1,class:"templates-productivity"},QL={key:2,class:"template-field"},eD={key:3,class:"template-details"},tD={key:4,class:"template-personal-data"},aD={key:5,class:"template-leagues"},oD={key:6,class:"template-plays"},iD={key:7,class:"template-plays"},sD={key:8,class:"template-universe"},rD={key:9,class:"template-distance"},lD={key:10,class:"template-results"},nD={key:11,class:"template-results-by-type"},dD={key:12,class:"template-games"},cD={key:13,class:"template-taken-corners"},pD={key:14,class:"template-videos"},mD={key:15,class:"template-how-was-corner"},uD={key:16,class:"template-zone"},fD={key:17,class:"template-what-happened"},hD={key:1,class:"templates__footer"},yD={class:"templates__footer__button"},gD={class:"templates__footer__button"},bD={__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0}},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:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(!1),l=e.ref({playingAs:i.playingAs,gameSections:i.gameSections,statisticType:i.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),d=e.ref(null),u=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.computed(()=>({"--width":i.width,"--max-width":i.maxWidth,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.borderColor,"--border-width":i.borderWidth,"--box-shadow":i.boxShadow,"--padding":i.filterType!==q.VIDEOS?i.isExpansionMode?"10px 0":i.padding:"0","--footer-border-color":i.footerBorderColor,"--footer-border-width":i.footerBorderWidth,"--text-color":i.textColor})),h=e.computed(()=>{const $=[];return Array.isArray(i.productivityCategories)?i.productivityCategories.forEach(J=>{$.push(J)}):i.productivityCategories&&Object.values(i.productivityCategories).forEach(J=>{J.categories&&J.categories.forEach(fe=>{$.push(fe)})}),$}),f=e.computed(()=>{const $=[];return i.playsCategories&&Object.values(i.playsCategories).forEach(J=>{J.categories&&J.categories.forEach(fe=>{$.push(fe)})}),$}),g=e.computed(()=>{const $=h.value.filter(J=>J.isSelected);return v($),i.filterType===q.PRODUCTIVITY&&a("change-categories-selected",$.length),$.length}),b=e.computed(()=>!i.isForTemplateForm&&g.value>=i.productivityMaxCategories),_=e.computed(()=>!i.isForTemplateForm&&g.value<=i.productivityMinCategories),F=e.computed(()=>i.isPlayingAsHidden?i.gameSections:i.playingAs.concat(i.gameSections));e.watch(l,$=>{i.filterType===q.DETAILS&&a("update:filters",$)},{immediate:!0,deep:!0}),e.watch(()=>F.value,$=>{if(i.filterType===q.DETAILS){const J=$.filter(fe=>fe.isSelected);a("change-filters-selected",J.length)}},{immediate:!0,deep:!0}),e.watch(()=>i.playsGolstatsCategories,$=>{if(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS){const J=$.filter(fe=>fe.isSelected);a("change-filters-selected",J.length)}},{immediate:!0}),e.watch(()=>i.fieldAreas,$=>{i.filterType===q.FIELD&&a("change-filters-selected",$.length)}),e.watch(f,()=>{i.filterType===q.PLAYS&&V()},{immediate:!0,deep:!0}),e.watch(h,()=>{i.filterType===q.PRODUCTIVITY&&N()},{immediate:!0,deep:!0}),e.watch(()=>i.resultsFilters,$=>{i.filterType===q.RESULTS&&a("change-filters-selected",$.results.filter(J=>J.isSelected).length)},{immediate:!0,deep:!0});function v($){setTimeout(()=>{$.sort((J,fe)=>J.priority-fe.priority),$.forEach((J,fe)=>{J.priority=fe+1})},10)}function T($=null){z($)}function z($=null){i.filterType===q.PRODUCTIVITY?h.value.forEach(J=>{J.isSelected=J.isDefault||!1}):i.filterType===q.PLAYS?(f.value.forEach(J=>{J.isSelected=!0}),r.value=!0):i.filterType===q.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):i.filterType===q.DETAILS?(i.playingAs.forEach(J=>{J.isSelected=!0}),i.gameSections.forEach(J=>{J.isSelected=!0})):i.filterType===q.TOURNAMENTS?(i.tournaments.forEach((J,fe)=>{i.isOneTournamentOnly?J.isSelected=fe===0:J.isSelected=!0}),a("change-filters-selected",0)):i.filterType===q.PLAYS_TYPES?i.playsGolstatsCategories.forEach(J=>{J.isSelected=!0}):i.filterType===q.GOLSTATS?i.playsGolstatsCategories.forEach(J=>{J.isSelected=!1}):i.filterType===q.UNIVERSE?c.value&&c.value.resetFilters():i.filterType===q.PERSONAL_DATA?(s.value&&s.value.onClearFilters($||ro.All),a("change-personal-data-filters",{})):i.filterType===q.DISTANCE?a("update:filters",{minValue:i.distanceFilters.minLimit,maxValue:i.distanceFilters.maxLimit}):i.filterType===q.RESULTS?a("update:filters",{results:i.resultsFilters.results.map(J=>(J.isSelected=!0,J))}):i.filterType===q.RESULTS_BY_TIME?y.value&&y.value.removeFilters():i.filterType===q.GAMES?i.gamesFilters.forEach(J=>{J.isSelected=!0}):i.filterType===q.TAKEN_CORNERS?d.value.clearFilters():i.filterType===q.HOW_WAS_CORNER?(i.howWasCornerFilters.left.forEach(J=>{J.isSelected=!0}),i.howWasCornerFilters.right.forEach(J=>{J.isSelected=!0})):i.filterType===q.ZONE?u.value&&u.value.clearFilters():i.filterType===q.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function D($){i.filterType===q.TOURNAMENTS&&a("change-filters-selected",$)}function P($){i.filterType===q.UNIVERSE&&a("change-universe-filters",$)}function Q($){i.filterType===q.FIELD&&a("change-field-areas",$)}function O($){i.filterType===q.GOLSTATS&&a("change-filters-selected",$)}function k($){a("change-filters-selected",$)}function E($){i.filterType===q.PRODUCTIVITY?h.value.forEach(J=>{J.isSelected=$}):(r.value=$,i.playsCategories.offensive.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.defensive.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.possession.categories.forEach(J=>{J.isSelected=$}),i.playsCategories.offenses.categories.forEach(J=>{J.isSelected=$}))}function V(){let $=0;const J={playsCategories:f.value.filter(fe=>fe.isSelected)};r.value=J.playsCategories.length===f.value.length,$=J.playsCategories.length,Object.values(n.value).forEach(fe=>{fe&&$++}),a("change-filters-selected",$),a("update:filters",J)}function N(){let $=0;const J={productivityFilters:h.value.filter(fe=>fe.isSelected),offensesConditions:n.value};$=J.productivityFilters.length,Object.values(n.value).forEach(fe=>{fe&&$++}),a("change-filters-selected",$),a("update:filters",J)}function Y($){a("click-parameters",$)}function de(){a("apply")}function ue(){(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS)&&i.playsGolstatsCategories&&i.playsGolstatsCategories.forEach($=>{$.isSelected=!1}),i.filterType===q.PRODUCTIVITY&&h.value.forEach($=>{$.isSelected=!1}),a("apply")}function C($){a("update:filters",$)}function I($){i.filterType===q.PERSONAL_DATA&&a("update:filters",$)}function U($){i.filterType===q.TOURNAMENTS&&a("update:filters",$)}function M($){(i.filterType===q.PLAYS_TYPES||i.filterType===q.GOLSTATS)&&a("update:filters",$)}function W($){i.filterType===q.PRODUCTIVITY&&(n.value=$,N())}function ce($){i.filterType===q.DISTANCE&&a("update:filters",$)}function j($){i.filterType===q.RESULTS&&a("update:filters",$)}function H($){i.filterType===q.GAMES&&(a("update:filters",$),a("change-filters-selected",$.filter(J=>J.isSelected).length))}function w($){l.value.statisticType=$}const G=e.computed(()=>i.filterType===q.PLAYS?f.value.length:i.filterType===q.PRODUCTIVITY?h.value.length:i.filterType===q.FIELD?16:i.filterType===q.UNIVERSE?6:i.filterType===q.DETAILS?8:i.filterType===q.RESULTS||i.filterType===q.RESULTS_BY_TIME?3:i.filterType===q.GAMES?i.gamesFilters.length:0);return a("total-filters",G),o({clearFilters:T}),($,J)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(m.value)},[t.filterType===e.unref(q).PRODUCTIVITY||t.filterType===e.unref(q).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(q).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",WL,[t.productivityText?(e.openBlock(),e.createElementBlock("div",HL,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",GL,[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",qL,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",JL,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",ZL,[e.createVNode(e.unref(Me),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":r.value,"label-color":t.textColor,"onUpdate:modelValue":E},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",YL,[t.filterType===e.unref(q).PLAYS?(e.openBlock(),e.createElementBlock("div",KL,[e.createVNode(YI,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",XL,[e.createVNode(WT,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":b.value,"are-min-categories-reached":_.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":W,onClickParameters:Y},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).FIELD?(e.openBlock(),e.createElementBlock("div",QL,[e.createVNode(e.unref(Bh),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Q}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).DETAILS?(e.openBlock(),e.createElementBlock("div",eD,[e.createVNode(CB,{"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:w},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(q).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",tD,[e.createVNode(AI,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":I},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",aD,[e.createVNode(NB,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:D,"onUpdate:filters":U},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",oD,[e.createVNode(uh,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":M},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).GOLSTATS?(e.openBlock(),e.createElementBlock("div",iD,[e.createVNode(uh,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:O,"onUpdate:filters":M},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).UNIVERSE?(e.openBlock(),e.createElementBlock("div",sD,[e.createVNode(wF,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":P},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).DISTANCE?(e.openBlock(),e.createElementBlock("div",rD,[e.createVNode(UF,{distance:t.distanceFilters,"onUpdate:distanceFilters":ce},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).RESULTS?(e.openBlock(),e.createElementBlock("div",lD,[e.createVNode(QI,{ref_key:"templateResults",ref:y,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":j},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",nD,[e.createVNode(UL,{ref_key:"templateResults",ref:y,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).GAMES?(e.openBlock(),e.createElementBlock("div",dD,[e.createVNode(YF,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":H},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",cD,[e.createVNode(lR,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:d,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).VIDEOS?(e.openBlock(),e.createElementBlock("div",pD,[e.createVNode(UO,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",mD,[e.createVNode(kR,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).ZONE?(e.openBlock(),e.createElementBlock("div",uD,[e.createVNode(xL,{ref_key:"templateZone",ref:u,"zone-filters":t.zoneFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(q).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",fD,[e.createVNode(IL,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",hD,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Ar),{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:ue})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",yD,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(Ar),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ue})):(e.openBlock(),e.createBlock(e.unref(Ar),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:z}))]),e.createElementVNode("div",gD,[e.createVNode(e.unref(Ar),{"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))}},Sy=Oe(bD,[["__scopeId","data-v-814b14a7"]]),_D=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},SD={__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:o}){const a=t;e.useCssVars(m=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const i=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.computed(()=>{const m={top:"0px","--left-menu":a.leftMenu};if(i.value){const h=i.value.getBoundingClientRect();m.top=`${h.height+a.menuMarginTop}px`}return m}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,m=>{m!==s.value&&(s.value=m)},{immediate:!0}),e.watch(s,m=>{m||setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(m){const h=window.innerWidth,f=m.boundingClientRect.x,g=m.boundingClientRect.x+m.boundingClientRect.width,b=f<=0?Math.abs(f)+4:g>=h?h-(g+10):0;l.value["--translate-x"]=`${b}px`}function u(){new IntersectionObserver(m=>{m[0].intersectionRatio>0&&d(m[0])}).observe(r.value)}function p(){s.value=!s.value,o("update:modelValue",s.value)}function y(){s.value=!1,o("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{u()})}),(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.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(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:i,class:"menu-container__trigger",onClick:p},[e.renderSlot(m.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:r,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(m.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},CD=_D(SD,[["__scopeId","data-v-18c0df61"]]),uo=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),wD={key:0,class:"button__icon"},kD={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ED=["stroke"],VD=["stroke"],xD=["stroke"],ND={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TD=["stroke"],BD=["stroke"],FD=["fill"],PD={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$D=["fill"],AD={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ID=["stroke"],MD=["stroke"],zD=["stroke"],OD=["stroke"],RD=["stroke"],LD={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DD=uo(()=>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)),vD=[DD],jD={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UD=uo(()=>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)),WD=[UD],HD={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=uo(()=>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)),qD=[GD],JD={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=uo(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),YD=uo(()=>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)),KD=uo(()=>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)),XD=uo(()=>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)),QD=[ZD,YD,KD,XD],ev={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tv=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),av=[tv],ov={class:"button__text"},iv={key:0,class:"info-container"},sv={key:1,style:{width:"20px"}},rv={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lv=["fill"],nv={__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 o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--text-font-family":o.textFontFamily,"--text-font-size":o.textFontSize,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.isActive?o.borderColorActive:o.borderColor,"--border-width":o.borderWidth,"--padding":o.padding,"--font-color":o.fontColor})),i=e.computed(()=>({"--info-background-color":o.infoValue?o.infoBackgroundColor:"transparent","--info-border-color":o.infoValue?o.infoBorderColor:"transparent","--info-border-radius":o.infoBorderRadius,"--info-font-family":o.infoFontFamily,"--info-font-size":o.infoFontSize,"--info-font-color":o.infoFontColor,"--info-height":o.infoHeight,"--info-width":o.infoWidth})),s=e.computed(()=>[q.PLAYS_TYPES,q.GOLSTATS,q.TOURNAMENTS,q.PLAYS,q.RESULTS,q.RESULTS_BY_TIME].includes(o.iconType)),r=e.computed(()=>[q.FIELD,q.GAMES].includes(o.iconType)),l=e.computed(()=>[q.DETAILS,q.UNIVERSE].includes(o.iconType)),n=e.computed(()=>[q.PERSONAL_DATA].includes(o.iconType)),c=e.computed(()=>[q.PRODUCTIVITY].includes(o.iconType)),d=e.computed(()=>[q.HOW_WAS_CORNER].includes(o.iconType)),u=e.computed(()=>[q.TAKEN_CORNERS].includes(o.iconType)),p=e.computed(()=>[q.ZONE].includes(o.iconType)),y=e.computed(()=>[q.WHAT_HAPPENED].includes(o.iconType));return(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",wD,[n.value?(e.openBlock(),e.createElementBlock("svg",kD,[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,ED),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,VD),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,xD)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",ND,[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,TD),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,BD),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,FD)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",PD,[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,$D)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",AD,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,ID),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,MD),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,zD),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,OD),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,RD)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",LD,vD)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("svg",jD,WD)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",HD,qD)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",JD,QD)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",ev,av)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ov,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",iv,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(i.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(i.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",sv)):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",rv,[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,lv)]))],2)],4))}},dv=Oe(nv,[["__scopeId","data-v-2504d135"]]),cv=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},pv=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),mv={class:"panel__activator__icon"},uv=["src"],fv={class:"panel__activator__text"},hv=["height","width"],yv=["stroke"],gv={class:"panel__content"},bv=pv(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),_v={class:"panel__content__slot"},Sv={__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:o}){const a=t,i=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,l=>{i.value=l},{immediate:!0});function r(){i.value=!i.value,o("update:modelValue",i.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",mv,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,uv)):e.createCommentVNode("",!0)]),e.createElementVNode("div",fv,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":i.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,yv)],8,hv))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",gv,[bv,e.createElementVNode("div",_v,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,i.value]])]),_:3})],4))}},Cv=cv(Sv,[["__scopeId","data-v-0ca35abc"]]),fa={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},wv={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}},kv={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}]}},Ev={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},Vv=[{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}]}],xv=[{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}],Nv=[{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}],Tv={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Cy={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},Bv={class:"filters"},Fv={key:0,class:"filters__expansion"},Pv={class:"content"},$v={key:1,class:"filters__menus"},Av={__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:o,emit:a}){const i=t;e.useCssVars($=>({"24235e69":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.TOURNAMENTS,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PERSONAL_DATA,isFooterVisible:!0},u={width:"310px",modalHeight:i.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:i.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.UNIVERSE,isFooterVisible:!0},m={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.DISTANCE,isFooterVisible:!0},h={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.RESULTS,padding:"0",isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.VIDEOS,isFooterVisible:!1},b={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.GAMES,isFooterVisible:!0},_={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.TAKEN_CORNERS,isFooterVisible:!0},F={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.HOW_WAS_CORNER,isFooterVisible:!0},v={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.ZONE,isFooterVisible:!0},T={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:q.WHAT_HAPPENED,isFooterVisible:!0},z=e.ref(!1),D=e.ref(!1),P=e.ref(0),Q=e.ref(0),O=e.ref({}),k=e.ref(null),E=e.ref(null),V=e.ref("Universo"),N=e.computed(()=>i.isForTemplateForm?"0":"unset"),Y=e.computed(()=>i.filterType===q.UNIVERSE&&i.showUniverseTime?V.value:i.buttonFilterProps&&i.buttonFilterProps.text?i.buttonFilterProps.text:i.menuButtonText||M()),de=e.computed(()=>i.isFromTemplates?q.RESULTS:i.filterType),ue=e.computed(()=>i.expansionPanelText||M()),C=e.ref(null);e.watch(()=>i.filterType,$=>{if($===q.PRODUCTIVITY)O.value={...s,...i.templateProps,productivityCategories:i.filters||wv};else if($===q.PLAYS)O.value={...r,...i.templateProps,fontFamily:i.buttonFilterProps?i.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:i.filters||kv};else if($===q.FIELD)O.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters||[]};else if($===q.DETAILS)O.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:fa.isPlayingAsHidden,playingAs:i.filters&&i.filters.playingAs||fa.playingAs,gameSections:i.filters&&i.filters.gameSections||fa.gameSections,statisticType:i.filters?i.filters.statisticType:fa.statisticType,isStatisticTypeVisible:i.filters?i.filters.isStatisticTypeVisible:fa.isStatisticTypeVisible};else if($===q.TOURNAMENTS){const J=i.filters||Vv;i.isOneTournamentOnly&&J.forEach(fe=>{fe.isSelected=fe.id===i.defaultTournamentId}),O.value={...c,...i.templateProps,tournaments:J}}else $===q.PERSONAL_DATA?O.value={...d,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:$===q.PLAYS_TYPES?O.value={...u,...i.templateProps,playsGolstatsCategories:i.filters||xv}:$===q.GOLSTATS?O.value={...p,...i.templateProps,playsGolstatsCategories:i.filters||Nv}:$===q.UNIVERSE?O.value={...y,...i.templateProps,universeFilters:i.filters||Ev}:$===q.DISTANCE?O.value={...m,...i.templateProps,distanceFilters:i.filters||Tv}:$===q.RESULTS?O.value={...h,...i.templateProps,resultsFilters:i.filters||Cy}:$===q.RESULTS_BY_TIME?O.value={...f,...i.templateProps,resultsByTimeFilters:i.filters||gc}:$===q.GAMES?O.value={...b,...i.templateProps,gamesFilters:i.filters||[]}:$===q.VIDEOS?O.value={...g,...i.templateProps,token:i.token}:$===q.TAKEN_CORNERS?O.value={..._,...i.templateProps,takenCornersFilters:i.filters||[]}:$===q.HOW_WAS_CORNER?O.value={...F,...i.templateProps,howWasCornerFilters:i.filters||fc}:$===q.ZONE?O.value={...v,...i.templateProps,zoneFilters:i.filters||[...es]}:$===q.WHAT_HAPPENED&&(O.value={...T,...i.templateProps,whatHappenedFilters:i.filters||[...yc]});O.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(O.value.width="100%",O.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>i.filters,()=>{if(i.filterType===q.PRODUCTIVITY)O.value={...s,...i.templateProps,productivityCategories:i.filters};else if(i.filterType===q.PLAYS)O.value={...r,...i.templateProps,playsCategories:i.filters};else if(i.filterType===q.FIELD)O.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters};else if(i.filterType===q.DETAILS)O.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:fa.isPlayingAsHidden,playingAs:i.filters?i.filters.playingAs:fa.playingAs,gameSections:i.filters?i.filters.gameSections:fa.gameSections,statisticType:i.filters?i.filters.statisticType:fa.statisticType,isStatisticVisible:i.filters?i.filters.isStatisticVisible:fa.isStatisticVisible};else if(i.filterType===q.TOURNAMENTS){const $=i.filters;i.isOneTournamentOnly&&$.forEach(J=>{J.isSelected=J.id===i.defaultTournamentId}),O.value={...c,...i.templateProps,tournaments:$}}else i.filterType===q.PERSONAL_DATA?O.value={...d,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:i.filterType===q.PLAYS_TYPES?O.value={...u,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===q.GOLSTATS?O.value={...p,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===q.UNIVERSE?O.value={...y,...i.templateProps,universeFilters:i.filters}:i.filterType===q.DISTANCE?O.value={...m,...i.templateProps,distanceFilters:i.filters}:i.filterType===q.RESULTS?O.value={...h,...i.templateProps,resultsFilters:i.filters||Cy}:i.filterType===q.RESULTS_BY_TIME?O.value={...f,...i.templateProps,resultsByTimeFilters:i.filters||gc}:i.filterType===q.GAMES?O.value={...b,...i.templateProps,gamesFilters:i.filters}:i.filterType===q.VIDEOS?O.value={...g,...i.templateProps,token:i.token}:i.filterType===q.TAKEN_CORNERS?O.value={..._,...i.templateProps,takenCornersFilters:i.filters||[]}:i.filterType===q.HOW_WAS_CORNER?O.value={...F,...i.templateProps,howWasCornerFilters:i.filters||fc}:i.filterType===q.ZONE?O.value={...v,...i.templateProps,zoneFilters:i.filters||[...es]}:i.filterType===q.WHAT_HAPPENED&&(O.value={...T,...i.templateProps,whatHappenedFilters:i.filters||[...yc]});O.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(O.value.width="100%",O.value.maxWidth="100%")}),e.watch(z,$=>{$||a("close",C.value)}),e.watch(D,$=>{$||a("close",C.value)});function I($){P.value=$}function U(){i.isExpansionPanel?D.value=!1:z.value=!1,a("apply",C.value)}function M(){if(i.filterType===q.PRODUCTIVITY)return i.isFromTemplates?"Tipos de jugadas":"Características de juego";if(i.filterType===q.PLAYS)return"Jugada(s)";if(i.filterType===q.FIELD)return"Zona de cancha";if(i.filterType===q.DETAILS)return"Detalles";if(i.filterType===q.TOURNAMENTS)return"Ligas";if(i.filterType===q.PERSONAL_DATA)return"Datos personales";if(i.filterType===q.PLAYS_TYPES)return"Tipos de jugada";if(i.filterType===q.GOLSTATS)return"Filtros Golstats";if(i.filterType===q.UNIVERSE)return"Universo";if(i.filterType===q.DISTANCE)return"Distancia";if([q.RESULTS,q.RESULTS_BY_TIME].includes(i.filterType))return"Resultados";if(i.filterType===q.GAMES)return"Partidos";if(i.filterType===q.VIDEOS)return"Videos";if(i.filterType===q.TAKEN_CORNERS)return"¿Quién cobró?";if(i.filterType===q.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(i.filterType===q.ZONE)return"Zona";if(i.filterType===q.WHAT_HAPPENED)return"¿Qué sucedió?"}function W($){a("click-parameters",$)}function ce($){O.value.fieldAreas=$,P.value=$.length,H($)}function j($){let J=0;$.value&&$.value.statistics&&($.value.minutesPlayed&&J++,$.value.percentMinutesPlayed&&J++,$.value.lastMonths&&J++,$.value.statistics.totals&&J++,$.value.statistics.averagePerGame&&J++,$.value.statistics.averagePerMinute&&J++),i.showUniverseTime&&(V.value=`Durante los últimos ${$.value.lastMonths} meses`),O.value.universe=$.value,P.value=J,H($.value)}function H($){C.value=$,a("update:filters",$)}function w($){Q.value=$}function G($=null){k.value&&k.value.clearFilters($),E.value&&E.value.clearFilters($)}return o({clearFilters:G}),($,J)=>(e.openBlock(),e.createElementBlock("div",Bv,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",Fv,[e.createVNode(e.unref(Cv),e.mergeProps(t.expansionPanelProps,{modelValue:D.value,"onUpdate:modelValue":J[0]||(J[0]=fe=>D.value=fe),text:ue.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+i.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",Pv,[e.createVNode(Sy,e.mergeProps(O.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,ref_key:"filterTemplateExpansionPanel",ref:E,onChangeFieldAreas:ce,onChangeCategoriesSelected:I,onChangeFiltersSelected:I,onChangeUniverseFilters:j,onApply:U,"onUpdate:filters":H,onTotalFilters:w,onClickParameters:W}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",$v,[e.createVNode(e.unref(CD),{modelValue:z.value,"onUpdate:modelValue":J[1]||(J[1]=fe=>z.value=fe),width:t.width,"left-menu":N.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(dv,e.mergeProps(t.buttonFilterProps,{text:Y.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":P.value,"filters-total":Q.value.value,"is-active":z.value,"icon-type":de.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Sy,e.mergeProps(O.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,ref_key:"filterTemplateMenu",ref:k,onChangeFieldAreas:ce,onChangeCategoriesSelected:I,onChangeFiltersSelected:I,onChangeUniverseFilters:j,"onUpdate:filters":H,onTotalFilters:w,onApply:U,onClickParameters:W}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},wy=Oe(Av,[["__scopeId","data-v-7efefefa"]]);ha(2,bc()),ha(2,bc()),ha(1,Ia(1)),ha(1,Ia(1)),ha(1,Ia(2)),ha(1,Ia(2)),ha(1,Ia(3)),ha(1,Ia(3)),ha(1,Ia(4)),ha(1,Ia(4));function bc(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function ky(){return Array.from({length:16},(t,o)=>o+1)}function Ia(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function ha(t=1,o=null){return{origin_zones:t===1?ky():bc(),destiny_zones:o||ky(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const Iv={key:0,class:"graph-spider__title"},Mv={class:"graph-spider__content"},zv={style:{width:"100%","max-width":"300px"}},Ov={class:"graph-spider__graph"},Rv={class:"list-variables"},Lv={class:"list-variables__variable__abbreviation"},Dv={class:"list-variables__variable__name"},vv={__name:"RadarGraph",props:{players:{type:Array,default:()=>[]},allPlayers:{type:Array,default:()=>[]},isMobile:{type:Boolean,default:!1},iconColor:{type:String,default:"white"},title:{type:String,default:""},dynamicCategories:{type:Object,default:()=>null},customCategories:{type:Array,default:()=>null},userId:{type:Number,default:0},token:{type:String,default:""},hasHeader:{type:Boolean,default:!0},applyAdditionalData:{type:Boolean,default:!1},componentWidth:{type:Number,default:800},pppValues:{type:Object,default:()=>({is_ppp:!1})},unselectedTeamsIds:{type:Array,default:()=>[]},template:{type:Object,default:()=>null}},emits:["click-parameters"],setup(t,{emit:o}){const a=t,i=e.ref(null),s=e.ref(null),r=e.ref([]),l=e.ref([]),n=e.computed(()=>({"--height":(a.isMobile,"fit-content"),"--min-height":a.isMobile?"fit-content":"568px","--padding":"32px 0","--box-shadow":a.hasHeader?"0 4px 20px 0 rgba(0, 0, 0, 0.25)":"none","--border-radius":a.isMobile?"0":"9px","--gap":a.isMobile?"20px":"40px"})),c=e.computed(()=>a.template&&a.template.variables&&a.template.variables.length?a.template.variables.map(T=>({...T,isSelected:!0})):a.customCategories),d=e.computed(()=>[...r.value].sort((T,z)=>T.selectedOrder-z.selectedOrder)),u=e.computed(()=>{const T=d.value[0];return d.value&&d.value.length&&T.statsGraph?d.value.map(z=>({name:z.shortName||z.name||z.short_name||z.player_name,data:z.statsGraph?z.statsGraph.reduce((D,P)=>{if(P.isVisible){const Q=typeof P.playerPercentage=="string"&&P.playerPercentage.includes("%")?parseInt(P.playerPercentage.replace("%","")):P.playerPercentage;D.push(Q>100?100:Q)}return D},[]):[]})):[]}),p=e.computed(()=>d.value.length&&d.value[0].statsGraph?d.value[0].statsGraph.reduce((T,z)=>(z.isVisible&&T.push(z.abbreviation),T),[]):[]),y=e.computed(()=>({plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:["#21c01c","#426EF9","#F65A27","#FFD849","#6BEEDB","#EC3A6F","#CBEE6B","#42C2F9","#A017E5","#E8369C"],fill:{colors:["#21c01c","#426EF9","#F65A27","#FFD849","#6BEEDB","#EC3A6F","#CBEE6B","#42C2F9","#A017E5","#E8369C"],opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:p.value,labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!0,max:100,min:0,labels:{show:!1,style:{colors:Array.from({length:11},T=>"rgba(255, 255, 255, 0)"),fontSize:"24px",fontFamily:"Poppins-Regular"}}},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:T,seriesIndex:z,dataPointIndex:D,w:P}){const Q=T[z];return`
|
|
27
27
|
<div class="custom-tooltip-apexchart">
|
|
28
28
|
<div class="__title">${Number.isNaN(Q[D])?"N/A":`${Math.floor(Q[D])}%`}</div>
|
|
29
29
|
</div>
|
|
30
|
-
`}}}));e.watch(()=>a.players,T=>{if(T&&T.length){const z=r.value.length!==T.length;let D=!1;for(const P of T){const Q=P.player_id;if(!r.value.some(O=>O.player_id===Q)){D=!0;break}}(z||D)&&(r.value=T.map(P=>({...P,statsGraph:[]})),g())}else l.value=[]},{immediate:!0}),e.watch(()=>a.pppValues,()=>{g()},{deep:!0,immediate:!0});let m=[],h="",f="";async function g(){try{const T=r.value.map(O=>O.objeto_player?O.objeto_player.player_id||O.objeto_player.id:O.id||O.player_id),z=`https://xnj3mah9lj.execute-api.us-east-2.amazonaws.com/qa2/users/${a.userId}/in-followed/stats?months=6`,D={...a.pppValues,players:T,tournament_id_for_max_value:0,all_players:a.allPlayers.map(O=>O.objeto_player?O.objeto_player.player_id||O.objeto_player.id:O.id||O.player_id),unselected_teams:a.unselectedTeamsIds};if(m.length===T.length&&m.every(O=>T.includes(O))||(m=[...T]),c.value&&s.value)a.template?D.template={...a.template,variables:a.template.variables.reduce((O,k)=>(s.value.productivityFilters.forEach(E=>{E.custom_id===k.custom_id&&O.push({...k})}),O),[])}:D.variables=s.value.productivityFilters.reduce((O,k)=>{if(k.isSelected){const E={...k};delete E.isSelected,O.push(E)}return O},[]);else if(a.dynamicCategories&&s.value){const O=[];D.categories=s.value.productivityFilters.reduce((k,E)=>{if(E.isSelected){O.push(...E.id);const V={ids:E.id,name:E.name,abbreviation:E.abbreviation};E.parameters&&(V.parameters={...E.parameters}),k.push(V)}return k},[])}if(!D.variables&&!D.categories&&!D.template)return;const P=JSON.stringify(D);if(h===z&&f===P)return;h=z,f=P;const Q=await(await fetch(z,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:P})).json();b(Q,!!s.value)}catch(T){console.error("Error",T)}}function b(T,z=!1){const D={...T};if(!D.max||!D.data)return;if(a.applyAdditionalData&&ph.emit("set-additional-data",D.additional_data),z){const O=new Map,k=Object.entries(D.data).reduce((V,[N,Y],de)=>{const ue={playerId:N,categoriesByName:new Map};return Y.forEach(C=>{const I=ue.categoriesByName.get(C[1]),U=O.get(C[1]);if(I){if(I.categoriesIds.push(C[0]),I.categoriesIds.sort(),I.totals.push(C[2]),de===0&&U){const M=D.max.find(W=>W[0]===C[0]);M&&(U.categoriesIds.push(C[0]),U.categoriesIds.sort(),U.max.push(M[1]))}}else if(ue.categoriesByName.set(C[1],{categoriesIds:[C[0]],totals:[C[2]],abbreviation:C[6]||C[5]||C[1]}),de===0){const M=D.max.find(W=>W[0]===C[0]);M&&O.set(C[1],{categoriesIds:[C[0]],max:[M[1]]})}}),V.push(ue),V},[]);D.data=k.reduce((V,N)=>{const Y=[];return N.categoriesByName.forEach((de,ue)=>{Y.push([Array.from(de.categoriesIds).reduce((C,I)=>`${C}-${I}`,""),ue,de.totals.reduce((C,I)=>C+I,0),de.abbreviation])}),V[N.playerId]=Y,V},{});const E=Array.from(O);D.max=E.map(V=>[V[1].categoriesIds.reduce((N,Y)=>`${N}-${Y}`,""),V[1].max.reduce((N,Y)=>N+Y,0)])}const P=D.max.reduce((O,[k,E])=>(O.set(k,E),O),new Map),Q=Object.entries(D.data).reduce((O,[k,E])=>(O.set(Number(k),E),O),new Map);l.value=[],r.value.forEach(O=>{const k=Q.get(O.objeto_player?O.objeto_player.player_id:O.id||O.player_id);O.statsGraph=[],k&&(O.statsGraph=k.map((E,V)=>{const N=Number(P.get(E[0])),Y=E[2],de=V+1;return l.value.length<k.length&&l.value.push({position:de,abbreviation:E[3],name:E[1]}),{position:de,name:E[1],abbreviation:E[3],playerStat:Y,leagueMax:N,id:E[0],playerPercentage:N?Math.floor(Y/N*100):Y,isVisible:!0}}))})}function _(T){s.value=T,g()}function F(){g()}function v(T){o("click-parameters",T)}return(T,z)=>{const D=e.resolveComponent("apexchart");return e.openBlock(),e.createElementBlock("div",{class:"graph-spider",style:e.normalizeStyle(n.value)},[t.hasHeader?(e.openBlock(),e.createElementBlock("div",Iv,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Mv,[e.createElementVNode("div",zv,[t.dynamicCategories?(e.openBlock(),e.createBlock(e.unref(wy),{key:0,"button-filter-props":{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",showIcon:!0,height:"38px",padding:"5px 2.2%",textFontFamily:"Poppins-Regular",showBadgeOnFilterFull:!1,showBadge:!0,text:"Visualizar más jugadas"},"show-badge-on-filter-full":!1,filters:t.dynamicCategories,"filter-type":e.unref(q).PRODUCTIVITY,"is-for-template-form":!1,"productivity-max-categories":12,"productivity-min-categories":3,"are-offenses-conditions-visible":!1,"is-from-templates":!0,width:"99.7%","template-props":{width:t.componentWidth>650?"650px":"390px",maxWidth:t.componentWidth>650?"940px":"390px"},"productivity-text":"Modificar las jugadas que se ven en la gráfica spider","onUpdate:filters":_,onClickParameters:v,onApply:F,onClose:F},null,8,["button-filter-props","filters","filter-type","template-props"])):c.value?(e.openBlock(),e.createBlock(e.unref(wy),{key:1,"button-filter-props":{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",showIcon:!0,height:"38px",padding:"5px 2.2%",textFontFamily:"Poppins-Regular",showBadgeOnFilterFull:!1,showBadge:!0,text:"Selector"},"show-badge-on-filter-full":!1,filters:c.value,"filter-type":e.unref(q).PRODUCTIVITY,"is-for-template-form":!1,"productivity-max-categories":12,"productivity-min-categories":3,"are-offenses-conditions-visible":!1,"is-from-templates":!0,width:"99.7%","template-props":{width:"fit-content",maxWidth:"940px"},"productivity-text":"Modificar las jugadas que se ven en la gráfica spider","onUpdate:filters":_,onClick:F,onClose:F},null,8,["button-filter-props","filters","filter-type"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ov,[e.createVNode(D,{ref_key:"spiderChart",ref:i,type:"radar",options:y.value,series:u.value},null,8,["options","series"])]),e.createElementVNode("div",Rv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,P=>(e.openBlock(),e.createElementBlock("div",{key:P.position,class:"list-variables__variable"},[e.createElementVNode("div",Lv,e.toDisplayString(P.abbreviation),1),e.createElementVNode("div",Dv,e.toDisplayString(P.name),1)]))),128))])])],4)}}},Ey=so(vv,[["__scopeId","data-v-bc073601"]]),_c={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){const o=Array.from(t).map(Number).sort((a,i)=>a-i);o.length===this.lastSelectedSections.length&&o.every(a=>this.lastSelectedSections.includes(a))||(this.lastSelectedSections=[...o],this.$emit("sections-changed",o))},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),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 o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Vy=()=>{e.useCssVars(t=>({"55dc5bcf":t.fieldWidth+"px","9f08aa04":t.fieldHeight+"px","5d3732c9":t.displayMode?"-28px":"0"}))},xy=_c.setup;_c.setup=xy?(t,o)=>(Vy(),xy(t,o)):Vy;const jv={class:"field-template-element"},Uv={class:"field-container"},Wv=["onMouseenter","onMousedown"],Hv={class:"column-buttons"},Gv=["onClick","disabled"];function qv(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",jv,[e.createElementVNode("div",Uv,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,Wv)),64))])),64))],32),e.createElementVNode("div",Hv,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,Gv)),64))])])])}const Ny=so(_c,[["render",qv],["__scopeId","data-v-6797bc51"]]),Jv={name:"InputTemplateElement",props:{width:{type:Number,default:200},height:{type:Number,default:40},modelValue:{type:[String,Number],default:""},type:{type:String,default:"time",validator:t=>["tx","time","m","km","degrees"].includes(t)},maxValue:{type:Number,default:126},minValue:{type:Number,default:0}},computed:{inputType(){return"text"}},data(){return{inputValue:"0"}},watch:{modelValue:{immediate:!0,handler(t){this.inputValue=this.type==="time"?t||"0:00":this.type==="tx"||this.type==="degrees"||this.type==="km"||this.type==="m"?t||"0":t||""}},type:{immediate:!0,handler(t){t==="time"&&!this.inputValue&&(this.inputValue="0:00")}},inputValue(t,o){this.$emit("value-changed",{newValue:t,oldValue:o,type:this.type})}},methods:{handleInput(){let t=this.inputValue;switch(this.type){case"m":t=this.inputValue.replace(/[^\d.-]/g,"");const o=parseFloat(t);isNaN(o)||(o>this.maxValue?t=String(this.maxValue):o<this.minValue&&(t=String(this.minValue)));break;case"km":t=this.inputValue.replace(/[^\d.]/g,"");const a=parseFloat(t);!isNaN(a)&&a>50&&(t="50");break;case"tx":t=this.inputValue.replace(/[^\d.]/g,"");const i=parseFloat(t);!isNaN(i)&&i>10&&(t="10");const s=t.split(".").length-1;if(s>1)t=t.slice(0,-1);else if(s===1){const l=t.indexOf(".");t.length-1-l>2&&(t=t.slice(0,l+3))}break;case"degrees":t=this.inputValue.replace(/[^\d.]/g,"");const r=parseFloat(t);!isNaN(r)&&r>360&&(t="360");break;case"time":t=this.formatTimeValue(t);break}this.inputValue=t,this.$emit("update:modelValue",t)},formatTimeValue(t){t=t.replace(/[^\d:]/g,"");const o=t.split(":");let a=parseInt(o[0]||0),i=parseInt(o[1]||0);return i>59&&(a+=Math.floor(i/60),i=i%60),(a>8||a===8&&i>20)&&(a=8,i=20),`${a}:${i.toString().padStart(2,"0")}`},incrementValue(){if(this.type==="m"){const t=parseFloat(this.inputValue)||0;t<this.maxValue&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="km"){const t=parseFloat(this.inputValue)||0;t<50&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="tx"){const t=parseFloat(this.inputValue)||0;t<10&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="degrees"){const t=parseFloat(this.inputValue)||0;t<360&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="time"){const[t,o]=this.inputValue.split(":").map(Number);let a=t*60+o+1;a>500&&(a=500);const i=Math.floor(a/60),s=a%60;this.inputValue=`${i}:${s.toString().padStart(2,"0")}`,this.$emit("update:modelValue",this.inputValue)}},decrementValue(){if(this.type==="m"){const t=parseFloat(this.inputValue)||0,o=Math.max(this.minValue,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="km"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="tx"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="degrees"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="time"){const[t,o]=this.inputValue.split(":").map(Number);let a=t*60+o-1;a=Math.max(0,a);const i=Math.floor(a/60),s=a%60;this.inputValue=`${i}:${s.toString().padStart(2,"0")}`,this.$emit("update:modelValue",this.inputValue)}}}},Ty=t=>(e.pushScopeId("data-v-275559d5"),t=t(),e.popScopeId(),t),Zv={class:"input-template-container"},Yv={class:"input-with-arrows"},Kv={class:"input-wrapper"},Xv={key:0,class:"unit-prefix"},Qv=["type"],ej={key:1,class:"unit-suffix"},tj={key:2,class:"unit-suffix km-suffix"},aj={key:3,class:"unit-suffix"},oj={key:4,class:"unit-suffix"},ij={class:"arrows-container"},sj=Ty(()=>e.createElementVNode("span",{class:"arrow-icon up"},null,-1)),rj=[sj],lj=Ty(()=>e.createElementVNode("span",{class:"arrow-icon down"},null,-1)),nj=[lj];function dj(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",Zv,[e.createElementVNode("div",Yv,[e.createElementVNode("div",Kv,[a.type==="km"?(e.openBlock(),e.createElementBlock("span",Xv,">")):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:r.inputType,class:e.normalizeClass(["custom-input",{"m-type":a.type==="m","km-type":a.type==="km","time-type":a.type==="time","tx-type":a.type==="tx"}]),style:e.normalizeStyle({width:`${a.width}px`,height:`${a.height}px`}),"onUpdate:modelValue":o[0]||(o[0]=l=>s.inputValue=l),onInput:o[1]||(o[1]=(...l)=>r.handleInput&&r.handleInput(...l))},null,46,Qv),[[e.vModelDynamic,s.inputValue]]),a.type==="m"?(e.openBlock(),e.createElementBlock("span",ej,"m")):e.createCommentVNode("",!0),a.type==="km"?(e.openBlock(),e.createElementBlock("span",tj,"km/h")):e.createCommentVNode("",!0),a.type==="tx"?(e.openBlock(),e.createElementBlock("span",aj,"xT")):e.createCommentVNode("",!0),a.type==="degrees"?(e.openBlock(),e.createElementBlock("span",oj,"°")):e.createCommentVNode("",!0)]),e.createElementVNode("div",ij,[e.createElementVNode("button",{class:"arrow-button up",onClick:o[2]||(o[2]=(...l)=>r.incrementValue&&r.incrementValue(...l))},rj),e.createElementVNode("button",{class:"arrow-button down",onClick:o[3]||(o[3]=(...l)=>r.decrementValue&&r.decrementValue(...l))},nj)])])])}const ai=so(Jv,[["render",dj],["__scopeId","data-v-275559d5"]]),Sc={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 o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.length-1]]});this.$emit("sections-changed",s)},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[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const u=d===s?i:1,p=d===l?r:17;for(let y=Math.min(u,p);y<=Math.max(u,p);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));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,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},By=()=>{e.useCssVars(t=>({f4642dbe:t.fieldWidth+"px",82700512:(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},Fy=Sc.setup;Sc.setup=Fy?(t,o)=>(By(),Fy(t,o)):By;const cj=t=>(e.pushScopeId("data-v-7ae64b45"),t=t(),e.popScopeId(),t),pj={class:"field-template-element"},mj={class:"field-container"},uj={key:0,class:"select-all-container"},fj={class:"select-all-label"},hj=cj(()=>e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),yj=["onMouseenter","onMousedown"],gj=e.createStaticVNode('<div class="attack-direction" data-v-7ae64b45><div class="arrow-line" data-v-7ae64b45></div><span class="attack-text" data-v-7ae64b45>Ataca</span><div class="arrow-line" data-v-7ae64b45></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-7ae64b45><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-7ae64b45></polygon></svg></div>',1);function bj(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",pj,[e.createElementVNode("div",mj,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uj,[e.createElementVNode("label",fj,[hj,e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,yj)),64))],64))),64))],32),gj])])}const Py=so(Sc,[["render",bj],["__scopeId","data-v-7ae64b45"]]),Ut=t=>(e.pushScopeId("data-v-ad3ea53b"),t=t(),e.popScopeId(),t),_j={class:"modal-header"},Sj=Ut(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".8",stroke:"#fff","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M5 15 15 5M15 15 5 5"})])],-1)),Cj=[Sj],wj={class:"modal-body"},kj={key:0,class:"modal-body__fields"},Ej={key:1,class:"field-complex"},Vj=Ut(()=>e.createElementVNode("div",{class:"title"}," Elige la zona de origen del balón: ",-1)),xj={key:1,class:"field-complex"},Nj=Ut(()=>e.createElementVNode("div",{class:"title"}," Elige la zona de destino del balón: ",-1)),Tj=Ut(()=>e.createElementVNode("div",{class:"separator",style:{width:"100%","max-width":"82%"}},null,-1)),Bj={class:"modal-body__distances"},Fj={class:"modal-body__distances__min"},Pj=Ut(()=>e.createElementVNode("div",{class:"title"}," Distancia mínima del pase: ",-1)),$j={class:"parameters"},Aj={class:"parameters__parameter"},Ij=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje X de la cancha (de portería a portería) ",-1)),Mj={class:"parameters__parameter__value"},zj={class:"parameters__parameter"},Oj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje Y de la cancha (de banda a banda) ",-1)),Rj={class:"parameters__parameter__value"},Lj={class:"parameters__parameter"},Dj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Distancia total (No importa si va diagonal) ",-1)),vj={class:"parameters__parameter__value"},jj={class:"modal-body__distances__max"},Uj=Ut(()=>e.createElementVNode("div",{class:"title"}," Distancia máxima del pase: ",-1)),Wj={class:"parameters"},Hj={class:"parameters__parameter"},Gj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje X de la cancha (de portería a portería) ",-1)),qj={class:"parameters__parameter__value"},Jj={class:"parameters__parameter"},Zj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje Y de la cancha (de banda a banda) ",-1)),Yj={class:"parameters__parameter__value"},Kj={class:"parameters__parameter"},Xj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Distancia total (No importa si va diagonal) ",-1)),Qj={class:"parameters__parameter__value"},eU=Ut(()=>e.createElementVNode("div",{class:"separator"},null,-1)),tU={__name:"ModalPassParameters",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:Number,default:1002},variable:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref([]),r=e.ref([]),l=e.ref([]),n=e.ref([]),c=[{quarter:1,sections:[1,2,3,4]},{quarter:2,sections:[5,6,7,8]},{quarter:3,sections:[9,10,11,12]},{quarter:4,sections:[13,14,15,16]}],d=e.computed(()=>{if(i.variable&&i.variable.parameters&&i.variable.parameters.destiny_zones&&i.variable.parameters.zone_type===1&&i.variable.parameters.destiny_zones.length){const v=c.find(T=>{const z=i.variable.parameters.destiny_zones[0];return T.sections.includes(z)});if(v)return[v.quarter]}return[]}),u=e.computed(()=>({"--z-index-overlay":i.zIndex})),p=()=>{a("update:modelValue",!0)};e.watch(()=>i.modelValue,v=>{v?(y(),document.body.classList.add("modal-open")):document.body.classList.remove("modal-open")});function y(){i.variable&&i.variable.parameters&&(i.variable.parameters.zone_type===2?(s.value=[...i.variable.parameters.origin_zones],r.value=[...i.variable.parameters.destiny_zones]):(l.value=[...i.variable.parameters.origin_zones],n.value=[...i.variable.parameters.destiny_zones]))}function m(){i.variable.isSelected||F(),a("update:model-value",!1)}function h(){i.variable.isSelected=!0,a("update:modelValue",!1)}function f(v){i.variable.parameters.origin_zones=[...v]}function g(v){v.length&&(i.variable.parameters.destiny_zones=[...v])}function b(v){i.variable.parameters.origin_zones=v}function _(v){i.variable.parameters.destiny_zones=v}function F(){i.variable.parameters={...i.variable.parametersDefault,origin_zones:[...i.variable.parametersDefault.origin_zones],destiny_zones:[...i.variable.parametersDefault.destiny_zones]},y()}return o({showModal:p}),(v,T)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>{var z,D;return[t.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",style:e.normalizeStyle(u.value)},[e.createElementVNode("div",{ref:"modalContent",class:"modal-content",onClick:T[6]||(T[6]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",_j,[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString((D=(z=t.variable)==null?void 0:z.parametersConditions)==null?void 0:D.title),1)]),e.createElementVNode("div",{class:"modal-content__close",onClick:m},Cj)]),e.createElementVNode("div",wj,[t.variable&&t.variable.parameters?(e.openBlock(),e.createElementBlock("div",kj,[e.createElementVNode("div",null,[t.variable.parameters.zone_type===1?(e.openBlock(),e.createBlock(Ny,{key:0,title:"Elige la zona de origen del balón:","initial-sections":l.value,onSectionsChanged:f},null,8,["initial-sections"])):(e.openBlock(),e.createElementBlock("div",Ej,[Vj,e.createVNode(Py,{"display-mode":!1,"initial-sections":s.value,onSectionsChanged:b},null,8,["initial-sections"])]))]),e.createElementVNode("div",null,[t.variable.parameters.zone_type===1?(e.openBlock(),e.createBlock(Ny,{key:0,title:"Elige la zona de destino del balón:","initial-sections":t.variable.parameters.destiny_zones,quarters:d.value,onSectionsChanged:g},null,8,["initial-sections","quarters"])):(e.openBlock(),e.createElementBlock("div",xj,[Nj,e.createVNode(Py,{"display-mode":!1,"initial-sections":r.value,onSectionsChanged:_},null,8,["initial-sections"])]))])])):e.createCommentVNode("",!0),Tj,e.createElementVNode("div",Bj,[e.createElementVNode("div",Fj,[Pj,e.createElementVNode("div",$j,[e.createElementVNode("div",Aj,[Ij,e.createElementVNode("div",Mj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_distance_x,"onUpdate:modelValue":T[0]||(T[0]=P=>t.variable.parameters.minimum_distance_x=P)},{maxValue:Number(t.variable.parameters.maximum_distance_x),minValue:t.variable.parametersConditions.x.min}),null,16,["modelValue"])])]),e.createElementVNode("div",zj,[Oj,e.createElementVNode("div",Rj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_distance_y,"onUpdate:modelValue":T[1]||(T[1]=P=>t.variable.parameters.minimum_distance_y=P)},{maxValue:Number(t.variable.parameters.maximum_distance_y),minValue:t.variable.parametersConditions.y.min}),null,16,["modelValue"])])]),e.createElementVNode("div",Lj,[Dj,e.createElementVNode("div",vj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_total_distance,"onUpdate:modelValue":T[2]||(T[2]=P=>t.variable.parameters.minimum_total_distance=P)},{maxValue:Number(t.variable.parameters.maximum_total_distance),minValue:t.variable.parametersConditions.total.min}),null,16,["modelValue"])])])])]),e.createElementVNode("div",jj,[Uj,e.createElementVNode("div",Wj,[e.createElementVNode("div",Hj,[Gj,e.createElementVNode("div",qj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_distance_x,"onUpdate:modelValue":T[3]||(T[3]=P=>t.variable.parameters.maximum_distance_x=P)},{maxValue:t.variable.parametersConditions.x.max,minValue:Number(t.variable.parameters.minimum_distance_x)}),null,16,["modelValue"])])]),e.createElementVNode("div",Jj,[Zj,e.createElementVNode("div",Yj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_distance_y,"onUpdate:modelValue":T[4]||(T[4]=P=>t.variable.parameters.maximum_distance_y=P)},{maxValue:t.variable.parametersConditions.y.max,minValue:Number(t.variable.parameters.minimum_distance_y)}),null,16,["modelValue"])])]),e.createElementVNode("div",Kj,[Xj,e.createElementVNode("div",Qj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_total_distance,"onUpdate:modelValue":T[5]||(T[5]=P=>t.variable.parameters.maximum_total_distance=P)},{maxValue:t.variable.parametersConditions.total.max,minValue:Number(t.variable.parameters.minimum_total_distance)}),null,16,["modelValue"])])])])])])]),eU,e.createElementVNode("div",{class:"modal-footer"},[e.createElementVNode("div",{role:"button",onClick:F,class:"button-cancel button"}," Quitar filtros "),e.createElementVNode("div",{role:"button",class:"button-save button active",onClick:h}," Aplicar ")])],512)],4)):e.createCommentVNode("",!0)]}),_:1})]))}},aU=so(tU,[["__scopeId","data-v-ad3ea53b"]]),oU=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"]]),iU=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"]]),ts=t=>(e.pushScopeId("data-v-2a3de204"),t=t(),e.popScopeId(),t),sU={class:"players-limit"},rU=ts(()=>e.createElementVNode("div",{class:"players-limit__content__body"}," No puedes comparar más de 10 jugadores a la vez. ",-1)),lU=ts(()=>e.createElementVNode("div",{class:"separator"},null,-1)),nU={key:0,class:"header-tools header-tools-graph"},dU=ts(()=>e.createElementVNode("br",null,null,-1)),cU=ts(()=>e.createElementVNode("br",null,null,-1)),pU={key:1,class:"add-player-container"},mU=ts(()=>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":"0.5","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":"0.5","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":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),uU={key:0,class:"radar"},fU={key:1,class:"radar"},hU={__name:"GSC-TableAndRadar",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},userType:{type:String,default:""},userId:{type:Number,default:0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mzg4NjYsIm5hbWUiOiJMaWxsaW5pIiwidXNlcm5hbWUiOiJsaWxsaW5pdGVzdCIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3NDgyMTcxMTQsImV4cCI6MTc3OTc1MzExNH0.08YqLIH66doeBS-NLf1CPJM7WnvHLcB2Ypxm5LtBADg"},dynamicCategories:{type:Object,default:()=>({})},positionIds:{type:Array,default:()=>[]},customVariables:{type:Array,default:()=>[]},customVariablesOnly:{type:Boolean,default:!1},dynamicVariablesOnly:{type:Boolean,default:!1},isRankingVisible:{type:Boolean,default:!0},isDeletePlayerVisible:{type:Boolean,default:!1},lists:{type:Array,default:()=>[]},applyAdditionalData:{type:Boolean,default:!1},isAddPlayerVisible:{type:Boolean,default:!0},isAddToListVisible:{type:Boolean,default:!0},componentWidth:{type:Number,default:800},tableHeaderMobile:{type:Boolean,default:!1},pppValues:{type:Object,default:()=>({is_ppp:!1})},isFemaleMode:{type:Boolean,default:!1},unselectedTeamsIds:{type:Array,default:()=>[]},template:{type:Object,default:null}},emits:["view-profile","add-player","delete-player","list-created"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref([]),r=e.ref([]),l=e.ref([]),n=e.ref([]),c=e.ref(!1),d=e.ref(0),u=e.computed(()=>({"--grid-template-columns":i.dynamicVariablesOnly||i.customVariablesOnly?"1fr":"repeat(2, 1fr)"})),p=e.computed(()=>l.value.map(Y=>{const de={...Y};return delete de.isExpanded,de}));function y(Y){const de=new Date;let ue=de.getFullYear()-Y.getFullYear();const C=de.getMonth()-Y.getMonth();return(C<0||C===0&&de.getDate()<Y.getDate())&&ue--,ue}const m=e.computed(()=>{const Y=i.positionIds&&i.positionIds.length>0?i.positionIds.reduce((de,ue)=>`${de}${de==="?"?"":"&"}p=${ue}`,"?"):"";return`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${Y}`});e.watch(m,(Y,de)=>{Y&&Y!==de&&(i.customVariables&&i.customVariables.length?n.value=i.customVariables.map(ue=>({...ue,isSelected:!0})):h(Y))},{immediate:!0}),e.watch(()=>i.isEditMode,Y=>{Y&&s.value.forEach(de=>{de.isSelected=!1})});async function h(Y){try{const de=await(await fetch(Y,{method:"GET",headers:{"Content-Type":"application/json",Authorization:i.token}})).json();n.value=de.data?de.data.reduce((ue,C)=>(C.checked&&ue.push({...C,isSelected:!0}),ue),[]):[]}catch(de){console.error("Error fetching user variables:",de)}}function f(Y){l.value=Y}function g(Y){const[de,ue]=Y.split(","),C=de.split(" ");let I="";for(const U of C)if(I+=` ${U}`,U.length>3)break;return ue&&de?`${ue.trim()} ${I}`:""}function b(Y){return i.isFemaleMode?iU.get(Y):oU.get(Y)}function _(Y){s.value=Y.map((de,ue)=>{const C=ue+1;return de.position&&(typeof de.position=="string"?de.position_name=de.position:typeof de.position=="number"&&(de.position_id=de.position)),{...de,position:C<10?`0${C}`:`${C}`,isSelected:!1,isExpanded:!1,isOdd:ue%2!==0,countryFlagUrl:`https://golstatsimages.blob.core.windows.net/flags/${de.nationality_id}.jpg`,playerPosition:de.position_name?de.position_name:b(de.position_id)||"",age:y(new Date(de.dob)),shortName:g(de.name),index:ue}}),r.value=s.value.map(de=>({...de})),d.value+=1}function F(Y){s.value.forEach(ue=>{ue.isNew=!1});const de=s.value.find(ue=>ue.id&&Y.id&&ue.id===Y.id||ue.objeto_player&&ue.objeto_player.player_id===Y.player_id||ue.player_id&&Y.player_id&&ue.player_id===Y.player_id||ue.id&&Y.player_id&&ue.id===Y.player_id||ue.player_id&&Y.id&&ue.player_id===Y.id);setTimeout(()=>{de||(Y.name=g(Y.name),Y.isNew=!0,s.value.unshift(Y))},500)}function v(Y){c.value=Y,Y&&(document.body.style.overflow="hidden",document.html.style.overflow="hidden")}function T(){a("click-add-player")}function z(Y){a("view-profile",Y)}function D(Y){a("add-player",Y)}function P(Y){a("delete-player",Y)}function Q(){a("list-created")}const O=e.ref(!1),k=e.ref(null);function E(Y){k.value=Y,O.value=!0}function V(Y){O.value=Y}function N(){c.value=!1,document.body.style.overflow="auto",document.html.style.overflow="auto"}return o({setPlayers:_,addPlayer:F}),(Y,de)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sU,[e.createElementVNode("div",{class:"players-limit__content"},[rU,lU,e.createElementVNode("div",{class:"players-limit__content__footer"},[e.createElementVNode("div",{role:"button",class:"button-success",onClick:N}," Aceptar ")])])],512),[[e.vShow,c.value]])]),_:1})])),e.createVNode(aU,{"model-value":O.value,variable:k.value,"onUpdate:modelValue":V},null,8,["model-value","variable"]),e.createElementVNode("div",{class:"table-radars",style:e.normalizeStyle([u.value,t.tableHeaderMobile?"flex-direction: column-reverse;":""])},[e.createElementVNode("div",{class:"table-radars__table",style:e.normalizeStyle(t.tableHeaderMobile?"max-width: 100%; min-width:300px":"")},[t.tableHeaderMobile?(e.openBlock(),e.createElementBlock("div",nU,[e.createElementVNode("div",{class:"ht-left",style:e.normalizeStyle(t.componentWidth<450?"gap:5px;":"")},[e.createElementVNode("span",{class:"ht-title",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},"Rank",4),t.dynamicVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"ht-action",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},[e.createTextVNode("Agregar"),dU,e.createTextVNode("a lista")],4)),e.createElementVNode("span",{class:"ht-action",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},[e.createTextVNode("Ver"),cU,e.createTextVNode("en spider")],4)],4)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(YN,{key:d.value,players:s.value,"is-ranking-visible":t.isRankingVisible,"is-delete-player-visible":t.isDeletePlayerVisible,lists:t.lists,"component-width":t.componentWidth,"dynamic-variables-only":t.dynamicVariablesOnly,"custom-variables-only":t.customVariablesOnly,token:t.token,"user-id":t.userId,"is-add-to-list-visible":t.isAddToListVisible,onChangeSelectedPlayers:f,onClickCheckbox:v,onViewProfile:z,onAddPlayer:D,onDeletePlayer:P,onListCreated:Q},null,8,["players","is-ranking-visible","is-delete-player-visible","lists","component-width","dynamic-variables-only","custom-variables-only","token","user-id","is-add-to-list-visible"])),t.isAddPlayerVisible?(e.openBlock(),e.createElementBlock("div",pU,[e.createElementVNode("div",{role:"button",class:"button-add-player",onClick:T},[e.createElementVNode("div",null,"Agregar "+e.toDisplayString(t.isFemaleMode?"jugadora":"jugador"),1),mU])])):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"table-radars__radars",style:e.normalizeStyle(t.componentWidth<=500?"--grid-template-columns: repeat(1fr, 1fr)":"")},[t.dynamicVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uU,[e.createVNode(Ey,{title:t.userType=="selecciones menores"?"Tipos de jugadas selecciones menores:":"Tipos de jugadas Profesor Lillini:",players:p.value,"all-players":s.value,"custom-categories":n.value,template:t.template,"user-id":t.userId,token:t.token,"has-header":!t.customVariablesOnly,"apply-additional-data":t.applyAdditionalData,"component-width":t.componentWidth,"ppp-values":t.pppValues,"unselected-teams-ids":t.unselectedTeamsIds,"is-mobile":""},null,8,["title","players","all-players","custom-categories","template","user-id","token","has-header","apply-additional-data","component-width","ppp-values","unselected-teams-ids"])])),t.customVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fU,[e.createVNode(Ey,{title:"Variables Dinámicas:",players:p.value,"all-players":s.value,"dynamic-categories":t.dynamicCategories,"user-id":t.userId,token:t.token,"is-mobile":"","component-width":t.componentWidth,"apply-additional-data":t.applyAdditionalData,"ppp-values":t.pppValues,"unselected-teams-ids":t.unselectedTeamsIds,onClickParameters:E},null,8,["players","all-players","dynamic-categories","user-id","token","component-width","apply-additional-data","ppp-values","unselected-teams-ids"])]))],4)],4)],64))}},yU=so(hU,[["__scopeId","data-v-2a3de204"]]);function gU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xr={exports:{}},$y;function bU(){if($y)return Xr.exports;$y=1;function t(){}return t.prototype={on:function(o,a,i){var s=this.e||(this.e={});return(s[o]||(s[o]=[])).push({fn:a,ctx:i}),this},once:function(o,a,i){var s=this;function r(){s.off(o,r),a.apply(i,arguments)}return r._=a,this.on(o,r,i)},emit:function(o){var a=[].slice.call(arguments,1),i=((this.e||(this.e={}))[o]||[]).slice(),s=0,r=i.length;for(s;s<r;s++)i[s].fn.apply(i[s].ctx,a);return this},off:function(o,a){var i=this.e||(this.e={}),s=i[o],r=[];if(s&&a)for(var l=0,n=s.length;l<n;l++)s[l].fn!==a&&s[l].fn._!==a&&r.push(s[l]);return r.length?i[o]=r:delete i[o],this}},Xr.exports=t,Xr.exports.TinyEmitter=t,Xr.exports}var Cc,Ay;function _U(){if(Ay)return Cc;Ay=1;var t=bU();return Cc=new t,Cc}var SU=_U();const Iy=gU(SU),CU={class:"graph-view"},wU={__name:"GraphView",props:{list:{object:{type:Array,default:()=>[]}},players:{type:Array,default:()=>[]},componentWidth:{type:Number,default:500},isFemaleMode:{type:Boolean,default:!1},template:{type:Object,default:null}},emits:["delete-from-list","showProfile"],setup(t,{emit:o}){const a=t,i=o,s=e.ref(null),r=e.ref(0),l=e.computed(()=>(n(),a.list?a.list.variables:null));e.watch(()=>s.value,u=>{u&&a.players&&u.setPlayers(a.players)},{immediate:!0}),e.watch(()=>a.players.length,(u,p)=>{s.value&&u!==p&&s.value.setPlayers(a.players)},{immediate:!0});function n(){r.value=Date.now()}Iy.on("set-players",u=>{s.value&&s.value.setPlayers(u)}),Iy.on("add-player",u=>{console.count("add-player"),s&&s.value&&s.value.addPlayer(u)});function c(u){i("showProfile",u)}function d(u){i("delete-from-list",u)}return(u,p)=>(e.openBlock(),e.createElementBlock("div",CU,[(e.openBlock(),e.createBlock(e.unref(yU),{key:r.value,ref_key:"tableAndRadar",ref:s,"custom-variables":l.value,"custom-variables-only":!0,"is-ranking-visible":!1,"is-delete-player-visible":!0,"apply-additional-data":!0,"is-add-player-visible":!1,template:t.template,"component-width":t.componentWidth,"table-headerMobile":t.componentWidth<640,"is-female-mode":t.isFemaleMode,onViewProfile:c,onDeletePlayer:d},null,8,["custom-variables","template","component-width","table-headerMobile","is-female-mode"]))]))}},kU=Ht(wU,[["__scopeId","data-v-23305eeb"]]);function My(t,o){return function(){return t.apply(o,arguments)}}const{toString:EU}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:Qr,toStringTag:zy}=Symbol,el=(t=>o=>{const a=EU.call(o);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=t=>(t=t.toLowerCase(),o=>el(o)===t),tl=t=>o=>typeof o===t,{isArray:oi}=Array,ii=tl("undefined");function as(t){return t!==null&&!ii(t)&&t.constructor!==null&&!ii(t.constructor)&&Ft(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Oy=Xt("ArrayBuffer");function VU(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Oy(t.buffer),o}const xU=tl("string"),Ft=tl("function"),Ry=tl("number"),os=t=>t!==null&&typeof t=="object",NU=t=>t===!0||t===!1,al=t=>{if(el(t)!=="object")return!1;const o=wc(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(zy in t)&&!(Qr in t)},TU=t=>{if(!os(t)||as(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},BU=Xt("Date"),FU=Xt("File"),PU=Xt("Blob"),$U=Xt("FileList"),AU=t=>os(t)&&Ft(t.pipe),IU=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||Ft(t.append)&&((o=el(t))==="formdata"||o==="object"&&Ft(t.toString)&&t.toString()==="[object FormData]"))},MU=Xt("URLSearchParams"),[zU,OU,RU,LU]=["ReadableStream","Request","Response","Headers"].map(Xt),DU=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function is(t,o,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),oi(t))for(i=0,s=t.length;i<s;i++)o.call(null,t[i],i,t);else{if(as(t))return;const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(i=0;i<l;i++)n=r[i],o.call(null,t[n],n,t)}}function Ly(t,o){if(as(t))return null;o=o.toLowerCase();const a=Object.keys(t);let i=a.length,s;for(;i-- >0;)if(s=a[i],o===s.toLowerCase())return s;return null}const fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dy=t=>!ii(t)&&t!==fo;function kc(){const{caseless:t,skipUndefined:o}=Dy(this)&&this||{},a={},i=(s,r)=>{const l=t&&Ly(a,r)||r;al(a[l])&&al(s)?a[l]=kc(a[l],s):al(s)?a[l]=kc({},s):oi(s)?a[l]=s.slice():(!o||!ii(s))&&(a[l]=s)};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&is(arguments[s],i);return a}const vU=(t,o,a,{allOwnKeys:i}={})=>(is(o,(s,r)=>{a&&Ft(s)?t[r]=My(s,a):t[r]=s},{allOwnKeys:i}),t),jU=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),UU=(t,o,a,i)=>{t.prototype=Object.create(o.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),a&&Object.assign(t.prototype,a)},WU=(t,o,a,i)=>{let s,r,l;const n={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!i||i(l,t,o))&&!n[l]&&(o[l]=t[l],n[l]=!0);t=a!==!1&&wc(t)}while(t&&(!a||a(t,o))&&t!==Object.prototype);return o},HU=(t,o,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=o.length;const i=t.indexOf(o,a);return i!==-1&&i===a},GU=t=>{if(!t)return null;if(oi(t))return t;let o=t.length;if(!Ry(o))return null;const a=new Array(o);for(;o-- >0;)a[o]=t[o];return a},qU=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&wc(Uint8Array)),JU=(t,o)=>{const a=(t&&t[Qr]).call(t);let i;for(;(i=a.next())&&!i.done;){const s=i.value;o.call(t,s[0],s[1])}},ZU=(t,o)=>{let a;const i=[];for(;(a=t.exec(o))!==null;)i.push(a);return i},YU=Xt("HTMLFormElement"),KU=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),vy=(({hasOwnProperty:t})=>(o,a)=>t.call(o,a))(Object.prototype),XU=Xt("RegExp"),jy=(t,o)=>{const a=Object.getOwnPropertyDescriptors(t),i={};is(a,(s,r)=>{let l;(l=o(s,r,t))!==!1&&(i[r]=l||s)}),Object.defineProperties(t,i)},QU=t=>{jy(t,(o,a)=>{if(Ft(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=t[a];if(Ft(i)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},eW=(t,o)=>{const a={},i=s=>{s.forEach(r=>{a[r]=!0})};return oi(t)?i(t):i(String(t).split(o)),a},tW=()=>{},aW=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o;function oW(t){return!!(t&&Ft(t.append)&&t[zy]==="FormData"&&t[Qr])}const iW=t=>{const o=new Array(10),a=(i,s)=>{if(os(i)){if(o.indexOf(i)>=0)return;if(as(i))return i;if(!("toJSON"in i)){o[s]=i;const r=oi(i)?[]:{};return is(i,(l,n)=>{const c=a(l,s+1);!ii(c)&&(r[n]=c)}),o[s]=void 0,r}}return i};return a(t,0)},sW=Xt("AsyncFunction"),rW=t=>t&&(os(t)||Ft(t))&&Ft(t.then)&&Ft(t.catch),Uy=((t,o)=>t?setImmediate:o?((a,i)=>(fo.addEventListener("message",({source:s,data:r})=>{s===fo&&r===a&&i.length&&i.shift()()},!1),s=>{i.push(s),fo.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Ft(fo.postMessage)),lW=typeof queueMicrotask<"u"?queueMicrotask.bind(fo):typeof process<"u"&&process.nextTick||Uy,nW=t=>t!=null&&Ft(t[Qr]),K={isArray:oi,isArrayBuffer:Oy,isBuffer:as,isFormData:IU,isArrayBufferView:VU,isString:xU,isNumber:Ry,isBoolean:NU,isObject:os,isPlainObject:al,isEmptyObject:TU,isReadableStream:zU,isRequest:OU,isResponse:RU,isHeaders:LU,isUndefined:ii,isDate:BU,isFile:FU,isBlob:PU,isRegExp:XU,isFunction:Ft,isStream:AU,isURLSearchParams:MU,isTypedArray:qU,isFileList:$U,forEach:is,merge:kc,extend:vU,trim:DU,stripBOM:jU,inherits:UU,toFlatObject:WU,kindOf:el,kindOfTest:Xt,endsWith:HU,toArray:GU,forEachEntry:JU,matchAll:ZU,isHTMLForm:YU,hasOwnProperty:vy,hasOwnProp:vy,reduceDescriptors:jy,freezeMethods:QU,toObjectSet:eW,toCamelCase:KU,noop:tW,toFiniteNumber:aW,findKey:Ly,global:fo,isContextDefined:Dy,isSpecCompliantForm:oW,toJSONObject:iW,isAsyncFn:sW,isThenable:rW,setImmediate:Uy,asap:lW,isIterable:nW};function ke(t,o,a,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}K.inherits(ke,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 Wy=ke.prototype,Hy={};["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=>{Hy[t]={value:t}}),Object.defineProperties(ke,Hy),Object.defineProperty(Wy,"isAxiosError",{value:!0}),ke.from=(t,o,a,i,s,r)=>{const l=Object.create(Wy);K.toFlatObject(t,l,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const n=t&&t.message?t.message:"Error",c=o==null&&t?t.code:o;return ke.call(l,n,c,a,i,s),t&&l.cause==null&&Object.defineProperty(l,"cause",{value:t,configurable:!0}),l.name=t&&t.name||"Error",r&&Object.assign(l,r),l};const dW=null;function Ec(t){return K.isPlainObject(t)||K.isArray(t)}function Gy(t){return K.endsWith(t,"[]")?t.slice(0,-2):t}function qy(t,o,a){return t?t.concat(o).map(function(i,s){return i=Gy(i),!a&&s?"["+i+"]":i}).join(a?".":""):o}function cW(t){return K.isArray(t)&&!t.some(Ec)}const pW=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function ol(t,o,a){if(!K.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,a=K.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!K.isUndefined(h[m])});const i=a.metaTokens,s=a.visitor||d,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(o);if(!K.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(K.isDate(m))return m.toISOString();if(K.isBoolean(m))return m.toString();if(!n&&K.isBlob(m))throw new ke("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(m)||K.isTypedArray(m)?n&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,f){let g=m;if(m&&!f&&typeof m=="object"){if(K.endsWith(h,"{}"))h=i?h:h.slice(0,-2),m=JSON.stringify(m);else if(K.isArray(m)&&cW(m)||(K.isFileList(m)||K.endsWith(h,"[]"))&&(g=K.toArray(m)))return h=Gy(h),g.forEach(function(b,_){!(K.isUndefined(b)||b===null)&&o.append(l===!0?qy([h],_,r):l===null?h:h+"[]",c(b))}),!1}return Ec(m)?!0:(o.append(qy(f,h,r),c(m)),!1)}const u=[],p=Object.assign(pW,{defaultVisitor:d,convertValue:c,isVisitable:Ec});function y(m,h){if(!K.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),K.forEach(m,function(f,g){(!(K.isUndefined(f)||f===null)&&s.call(o,f,K.isString(g)?g.trim():g,h,p))===!0&&y(f,h?h.concat(g):[g])}),u.pop()}}if(!K.isObject(t))throw new TypeError("data must be an object");return y(t),o}function Jy(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return o[a]})}function Vc(t,o){this._pairs=[],t&&ol(t,this,o)}const Zy=Vc.prototype;Zy.append=function(t,o){this._pairs.push([t,o])},Zy.toString=function(t){const o=t?function(a){return t.call(this,a,Jy)}:Jy;return this._pairs.map(function(a){return o(a[0])+"="+o(a[1])},"").join("&")};function mW(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yy(t,o,a){if(!o)return t;const i=a&&a.encode||mW;K.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(o,a):r=K.isURLSearchParams(o)?o.toString():new Vc(o,a).toString(i),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}let Ky=class{constructor(){this.handlers=[]}use(o,a,i){return this.handlers.push({fulfilled:o,rejected:a,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){K.forEach(this.handlers,function(a){a!==null&&o(a)})}};const Xy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uW=typeof URLSearchParams<"u"?URLSearchParams:Vc,fW=typeof FormData<"u"?FormData:null,hW=typeof Blob<"u"?Blob:null,yW={isBrowser:!0,classes:{URLSearchParams:uW,FormData:fW,Blob:hW},protocols:["http","https","file","blob","url","data"]},xc=typeof window<"u"&&typeof document<"u",Nc=typeof navigator=="object"&&navigator||void 0,gW=xc&&(!Nc||["ReactNative","NativeScript","NS"].indexOf(Nc.product)<0),bW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_W=xc&&window.location.href||"http://localhost",SW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xc,hasStandardBrowserEnv:gW,hasStandardBrowserWebWorkerEnv:bW,navigator:Nc,origin:_W},Symbol.toStringTag,{value:"Module"})),ut={...SW,...yW};function CW(t,o){return ol(t,new ut.classes.URLSearchParams,{visitor:function(a,i,s,r){return ut.isNode&&K.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...o})}function wW(t){return K.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function kW(t){const o={},a=Object.keys(t);let i;const s=a.length;let r;for(i=0;i<s;i++)r=a[i],o[r]=t[r];return o}function Qy(t){function o(a,i,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),c=r>=a.length;return l=!l&&K.isArray(s)?s.length:l,c?(K.hasOwnProp(s,l)?s[l]=[s[l],i]:s[l]=i,!n):((!s[l]||!K.isObject(s[l]))&&(s[l]=[]),o(a,i,s[l],r)&&K.isArray(s[l])&&(s[l]=kW(s[l])),!n)}if(K.isFormData(t)&&K.isFunction(t.entries)){const a={};return K.forEachEntry(t,(i,s)=>{o(wW(i),s,a,0)}),a}return null}function EW(t,o,a){if(K.isString(t))try{return(o||JSON.parse)(t),K.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(t)}const ss={transitional:Xy,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,s=K.isObject(t);if(s&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return i?JSON.stringify(Qy(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 o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return CW(t,this.formSerializer).toString();if((r=K.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ol(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(o.setContentType("application/json",!1),EW(t)):t}],transformResponse:[function(t){const o=this.transitional||ss.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(r){if(s)throw r.name==="SyntaxError"?ke.from(r,ke.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.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=>{ss.headers[t]={}});const VW=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"]),xW=t=>{const o={};let a,i,s;return t&&t.split(`
|
|
30
|
+
`}}}));e.watch(()=>a.players,T=>{if(T&&T.length){const z=r.value.length!==T.length;let D=!1;for(const P of T){const Q=P.player_id;if(!r.value.some(O=>O.player_id===Q)){D=!0;break}}(z||D)&&(r.value=T.map(P=>({...P,statsGraph:[]})),g())}else l.value=[]},{immediate:!0}),e.watch(()=>a.pppValues,()=>{g()},{deep:!0,immediate:!0});let m=[],h="",f="";async function g(){try{const T=r.value.map(O=>O.objeto_player?O.objeto_player.player_id||O.objeto_player.id:O.id||O.player_id),z=`https://xnj3mah9lj.execute-api.us-east-2.amazonaws.com/qa2/users/${a.userId}/in-followed/stats?months=6`,D={...a.pppValues,players:T,tournament_id_for_max_value:0,all_players:a.allPlayers.map(O=>O.objeto_player?O.objeto_player.player_id||O.objeto_player.id:O.id||O.player_id),unselected_teams:a.unselectedTeamsIds};if(m.length===T.length&&m.every(O=>T.includes(O))||(m=[...T]),c.value&&s.value)a.template&&a.template.variables&&a.template.variables.length?D.template={...a.template,variables:a.template.variables.reduce((O,k)=>(s.value.productivityFilters.forEach(E=>{E.custom_id===k.custom_id&&O.push({...k})}),O),[])}:D.variables=s.value.productivityFilters.reduce((O,k)=>{if(k.isSelected){const E={...k};delete E.isSelected,O.push(E)}return O},[]);else if(a.dynamicCategories&&s.value){const O=[];D.categories=s.value.productivityFilters.reduce((k,E)=>{if(E.isSelected){O.push(...E.id);const V={ids:E.id,name:E.name,abbreviation:E.abbreviation};E.parameters&&(V.parameters={...E.parameters}),k.push(V)}return k},[])}if(!D.variables&&!D.categories&&!D.template)return;const P=JSON.stringify(D);if(h===z&&f===P)return;h=z,f=P;const Q=await(await fetch(z,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:P})).json();b(Q,!!s.value)}catch(T){console.error("Error",T)}}function b(T,z=!1){const D={...T};if(!D.max||!D.data)return;if(a.applyAdditionalData&&ph.emit("set-additional-data",D.additional_data),z){const O=new Map,k=Object.entries(D.data).reduce((V,[N,Y],de)=>{const ue={playerId:N,categoriesByName:new Map};return Y.forEach(C=>{const I=ue.categoriesByName.get(C[1]),U=O.get(C[1]);if(I){if(I.categoriesIds.push(C[0]),I.categoriesIds.sort(),I.totals.push(C[2]),de===0&&U){const M=D.max.find(W=>W[0]===C[0]);M&&(U.categoriesIds.push(C[0]),U.categoriesIds.sort(),U.max.push(M[1]))}}else if(ue.categoriesByName.set(C[1],{categoriesIds:[C[0]],totals:[C[2]],abbreviation:C[6]||C[5]||C[1]}),de===0){const M=D.max.find(W=>W[0]===C[0]);M&&O.set(C[1],{categoriesIds:[C[0]],max:[M[1]]})}}),V.push(ue),V},[]);D.data=k.reduce((V,N)=>{const Y=[];return N.categoriesByName.forEach((de,ue)=>{Y.push([Array.from(de.categoriesIds).reduce((C,I)=>`${C}-${I}`,""),ue,de.totals.reduce((C,I)=>C+I,0),de.abbreviation])}),V[N.playerId]=Y,V},{});const E=Array.from(O);D.max=E.map(V=>[V[1].categoriesIds.reduce((N,Y)=>`${N}-${Y}`,""),V[1].max.reduce((N,Y)=>N+Y,0)])}const P=D.max.reduce((O,[k,E])=>(O.set(k,E),O),new Map),Q=Object.entries(D.data).reduce((O,[k,E])=>(O.set(Number(k),E),O),new Map);l.value=[],r.value.forEach(O=>{const k=Q.get(O.objeto_player?O.objeto_player.player_id:O.id||O.player_id);O.statsGraph=[],k&&(O.statsGraph=k.map((E,V)=>{const N=Number(P.get(E[0])),Y=E[2],de=V+1;return l.value.length<k.length&&l.value.push({position:de,abbreviation:E[3],name:E[1]}),{position:de,name:E[1],abbreviation:E[3],playerStat:Y,leagueMax:N,id:E[0],playerPercentage:N?Math.floor(Y/N*100):Y,isVisible:!0}}))})}function _(T){s.value=T,g()}function F(){g()}function v(T){o("click-parameters",T)}return(T,z)=>{const D=e.resolveComponent("apexchart");return e.openBlock(),e.createElementBlock("div",{class:"graph-spider",style:e.normalizeStyle(n.value)},[t.hasHeader?(e.openBlock(),e.createElementBlock("div",Iv,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Mv,[e.createElementVNode("div",zv,[t.dynamicCategories?(e.openBlock(),e.createBlock(e.unref(wy),{key:0,"button-filter-props":{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",showIcon:!0,height:"38px",padding:"5px 2.2%",textFontFamily:"Poppins-Regular",showBadgeOnFilterFull:!1,showBadge:!0,text:"Visualizar más jugadas"},"show-badge-on-filter-full":!1,filters:t.dynamicCategories,"filter-type":e.unref(q).PRODUCTIVITY,"is-for-template-form":!1,"productivity-max-categories":12,"productivity-min-categories":3,"are-offenses-conditions-visible":!1,"is-from-templates":!0,width:"99.7%","template-props":{width:t.componentWidth>650?"650px":"390px",maxWidth:t.componentWidth>650?"940px":"390px"},"productivity-text":"Modificar las jugadas que se ven en la gráfica spider","onUpdate:filters":_,onClickParameters:v,onApply:F,onClose:F},null,8,["button-filter-props","filters","filter-type","template-props"])):c.value?(e.openBlock(),e.createBlock(e.unref(wy),{key:1,"button-filter-props":{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",showIcon:!0,height:"38px",padding:"5px 2.2%",textFontFamily:"Poppins-Regular",showBadgeOnFilterFull:!1,showBadge:!0,text:"Selector"},"show-badge-on-filter-full":!1,filters:c.value,"filter-type":e.unref(q).PRODUCTIVITY,"is-for-template-form":!1,"productivity-max-categories":12,"productivity-min-categories":3,"are-offenses-conditions-visible":!1,"is-from-templates":!0,width:"99.7%","template-props":{width:"fit-content",maxWidth:"940px"},"productivity-text":"Modificar las jugadas que se ven en la gráfica spider","onUpdate:filters":_,onClick:F,onClose:F},null,8,["button-filter-props","filters","filter-type"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ov,[e.createVNode(D,{ref_key:"spiderChart",ref:i,type:"radar",options:y.value,series:u.value},null,8,["options","series"])]),e.createElementVNode("div",Rv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,P=>(e.openBlock(),e.createElementBlock("div",{key:P.position,class:"list-variables__variable"},[e.createElementVNode("div",Lv,e.toDisplayString(P.abbreviation),1),e.createElementVNode("div",Dv,e.toDisplayString(P.name),1)]))),128))])])],4)}}},Ey=so(vv,[["__scopeId","data-v-b5c73ac5"]]),_c={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){const o=Array.from(t).map(Number).sort((a,i)=>a-i);o.length===this.lastSelectedSections.length&&o.every(a=>this.lastSelectedSections.includes(a))||(this.lastSelectedSections=[...o],this.$emit("sections-changed",o))},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),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 o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Vy=()=>{e.useCssVars(t=>({"55dc5bcf":t.fieldWidth+"px","9f08aa04":t.fieldHeight+"px","5d3732c9":t.displayMode?"-28px":"0"}))},xy=_c.setup;_c.setup=xy?(t,o)=>(Vy(),xy(t,o)):Vy;const jv={class:"field-template-element"},Uv={class:"field-container"},Wv=["onMouseenter","onMousedown"],Hv={class:"column-buttons"},Gv=["onClick","disabled"];function qv(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",jv,[e.createElementVNode("div",Uv,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,Wv)),64))])),64))],32),e.createElementVNode("div",Hv,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,Gv)),64))])])])}const Ny=so(_c,[["render",qv],["__scopeId","data-v-6797bc51"]]),Jv={name:"InputTemplateElement",props:{width:{type:Number,default:200},height:{type:Number,default:40},modelValue:{type:[String,Number],default:""},type:{type:String,default:"time",validator:t=>["tx","time","m","km","degrees"].includes(t)},maxValue:{type:Number,default:126},minValue:{type:Number,default:0}},computed:{inputType(){return"text"}},data(){return{inputValue:"0"}},watch:{modelValue:{immediate:!0,handler(t){this.inputValue=this.type==="time"?t||"0:00":this.type==="tx"||this.type==="degrees"||this.type==="km"||this.type==="m"?t||"0":t||""}},type:{immediate:!0,handler(t){t==="time"&&!this.inputValue&&(this.inputValue="0:00")}},inputValue(t,o){this.$emit("value-changed",{newValue:t,oldValue:o,type:this.type})}},methods:{handleInput(){let t=this.inputValue;switch(this.type){case"m":t=this.inputValue.replace(/[^\d.-]/g,"");const o=parseFloat(t);isNaN(o)||(o>this.maxValue?t=String(this.maxValue):o<this.minValue&&(t=String(this.minValue)));break;case"km":t=this.inputValue.replace(/[^\d.]/g,"");const a=parseFloat(t);!isNaN(a)&&a>50&&(t="50");break;case"tx":t=this.inputValue.replace(/[^\d.]/g,"");const i=parseFloat(t);!isNaN(i)&&i>10&&(t="10");const s=t.split(".").length-1;if(s>1)t=t.slice(0,-1);else if(s===1){const l=t.indexOf(".");t.length-1-l>2&&(t=t.slice(0,l+3))}break;case"degrees":t=this.inputValue.replace(/[^\d.]/g,"");const r=parseFloat(t);!isNaN(r)&&r>360&&(t="360");break;case"time":t=this.formatTimeValue(t);break}this.inputValue=t,this.$emit("update:modelValue",t)},formatTimeValue(t){t=t.replace(/[^\d:]/g,"");const o=t.split(":");let a=parseInt(o[0]||0),i=parseInt(o[1]||0);return i>59&&(a+=Math.floor(i/60),i=i%60),(a>8||a===8&&i>20)&&(a=8,i=20),`${a}:${i.toString().padStart(2,"0")}`},incrementValue(){if(this.type==="m"){const t=parseFloat(this.inputValue)||0;t<this.maxValue&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="km"){const t=parseFloat(this.inputValue)||0;t<50&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="tx"){const t=parseFloat(this.inputValue)||0;t<10&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="degrees"){const t=parseFloat(this.inputValue)||0;t<360&&(this.inputValue=String(t+1),this.$emit("update:modelValue",this.inputValue))}else if(this.type==="time"){const[t,o]=this.inputValue.split(":").map(Number);let a=t*60+o+1;a>500&&(a=500);const i=Math.floor(a/60),s=a%60;this.inputValue=`${i}:${s.toString().padStart(2,"0")}`,this.$emit("update:modelValue",this.inputValue)}},decrementValue(){if(this.type==="m"){const t=parseFloat(this.inputValue)||0,o=Math.max(this.minValue,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="km"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="tx"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="degrees"){const t=parseFloat(this.inputValue)||0,o=Math.max(0,t-1);this.inputValue=String(o),this.$emit("update:modelValue",this.inputValue)}else if(this.type==="time"){const[t,o]=this.inputValue.split(":").map(Number);let a=t*60+o-1;a=Math.max(0,a);const i=Math.floor(a/60),s=a%60;this.inputValue=`${i}:${s.toString().padStart(2,"0")}`,this.$emit("update:modelValue",this.inputValue)}}}},Ty=t=>(e.pushScopeId("data-v-275559d5"),t=t(),e.popScopeId(),t),Zv={class:"input-template-container"},Yv={class:"input-with-arrows"},Kv={class:"input-wrapper"},Xv={key:0,class:"unit-prefix"},Qv=["type"],ej={key:1,class:"unit-suffix"},tj={key:2,class:"unit-suffix km-suffix"},aj={key:3,class:"unit-suffix"},oj={key:4,class:"unit-suffix"},ij={class:"arrows-container"},sj=Ty(()=>e.createElementVNode("span",{class:"arrow-icon up"},null,-1)),rj=[sj],lj=Ty(()=>e.createElementVNode("span",{class:"arrow-icon down"},null,-1)),nj=[lj];function dj(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",Zv,[e.createElementVNode("div",Yv,[e.createElementVNode("div",Kv,[a.type==="km"?(e.openBlock(),e.createElementBlock("span",Xv,">")):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:r.inputType,class:e.normalizeClass(["custom-input",{"m-type":a.type==="m","km-type":a.type==="km","time-type":a.type==="time","tx-type":a.type==="tx"}]),style:e.normalizeStyle({width:`${a.width}px`,height:`${a.height}px`}),"onUpdate:modelValue":o[0]||(o[0]=l=>s.inputValue=l),onInput:o[1]||(o[1]=(...l)=>r.handleInput&&r.handleInput(...l))},null,46,Qv),[[e.vModelDynamic,s.inputValue]]),a.type==="m"?(e.openBlock(),e.createElementBlock("span",ej,"m")):e.createCommentVNode("",!0),a.type==="km"?(e.openBlock(),e.createElementBlock("span",tj,"km/h")):e.createCommentVNode("",!0),a.type==="tx"?(e.openBlock(),e.createElementBlock("span",aj,"xT")):e.createCommentVNode("",!0),a.type==="degrees"?(e.openBlock(),e.createElementBlock("span",oj,"°")):e.createCommentVNode("",!0)]),e.createElementVNode("div",ij,[e.createElementVNode("button",{class:"arrow-button up",onClick:o[2]||(o[2]=(...l)=>r.incrementValue&&r.incrementValue(...l))},rj),e.createElementVNode("button",{class:"arrow-button down",onClick:o[3]||(o[3]=(...l)=>r.decrementValue&&r.decrementValue(...l))},nj)])])])}const ai=so(Jv,[["render",dj],["__scopeId","data-v-275559d5"]]),Sc={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 o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.length-1]]});this.$emit("sections-changed",s)},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[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const u=d===s?i:1,p=d===l?r:17;for(let y=Math.min(u,p);y<=Math.max(u,p);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));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,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},By=()=>{e.useCssVars(t=>({f4642dbe:t.fieldWidth+"px",82700512:(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},Fy=Sc.setup;Sc.setup=Fy?(t,o)=>(By(),Fy(t,o)):By;const cj=t=>(e.pushScopeId("data-v-7ae64b45"),t=t(),e.popScopeId(),t),pj={class:"field-template-element"},mj={class:"field-container"},uj={key:0,class:"select-all-container"},fj={class:"select-all-label"},hj=cj(()=>e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),yj=["onMouseenter","onMousedown"],gj=e.createStaticVNode('<div class="attack-direction" data-v-7ae64b45><div class="arrow-line" data-v-7ae64b45></div><span class="attack-text" data-v-7ae64b45>Ataca</span><div class="arrow-line" data-v-7ae64b45></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-7ae64b45><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-7ae64b45></polygon></svg></div>',1);function bj(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",pj,[e.createElementVNode("div",mj,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uj,[e.createElementVNode("label",fj,[hj,e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,yj)),64))],64))),64))],32),gj])])}const Py=so(Sc,[["render",bj],["__scopeId","data-v-7ae64b45"]]),Ut=t=>(e.pushScopeId("data-v-ad3ea53b"),t=t(),e.popScopeId(),t),_j={class:"modal-header"},Sj=Ut(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".8",stroke:"#fff","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M5 15 15 5M15 15 5 5"})])],-1)),Cj=[Sj],wj={class:"modal-body"},kj={key:0,class:"modal-body__fields"},Ej={key:1,class:"field-complex"},Vj=Ut(()=>e.createElementVNode("div",{class:"title"}," Elige la zona de origen del balón: ",-1)),xj={key:1,class:"field-complex"},Nj=Ut(()=>e.createElementVNode("div",{class:"title"}," Elige la zona de destino del balón: ",-1)),Tj=Ut(()=>e.createElementVNode("div",{class:"separator",style:{width:"100%","max-width":"82%"}},null,-1)),Bj={class:"modal-body__distances"},Fj={class:"modal-body__distances__min"},Pj=Ut(()=>e.createElementVNode("div",{class:"title"}," Distancia mínima del pase: ",-1)),$j={class:"parameters"},Aj={class:"parameters__parameter"},Ij=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje X de la cancha (de portería a portería) ",-1)),Mj={class:"parameters__parameter__value"},zj={class:"parameters__parameter"},Oj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje Y de la cancha (de banda a banda) ",-1)),Rj={class:"parameters__parameter__value"},Lj={class:"parameters__parameter"},Dj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Distancia total (No importa si va diagonal) ",-1)),vj={class:"parameters__parameter__value"},jj={class:"modal-body__distances__max"},Uj=Ut(()=>e.createElementVNode("div",{class:"title"}," Distancia máxima del pase: ",-1)),Wj={class:"parameters"},Hj={class:"parameters__parameter"},Gj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje X de la cancha (de portería a portería) ",-1)),qj={class:"parameters__parameter__value"},Jj={class:"parameters__parameter"},Zj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Eje Y de la cancha (de banda a banda) ",-1)),Yj={class:"parameters__parameter__value"},Kj={class:"parameters__parameter"},Xj=Ut(()=>e.createElementVNode("div",{class:"parameters__parameter__name"}," Distancia total (No importa si va diagonal) ",-1)),Qj={class:"parameters__parameter__value"},eU=Ut(()=>e.createElementVNode("div",{class:"separator"},null,-1)),tU={__name:"ModalPassParameters",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:Number,default:1002},variable:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref([]),r=e.ref([]),l=e.ref([]),n=e.ref([]),c=[{quarter:1,sections:[1,2,3,4]},{quarter:2,sections:[5,6,7,8]},{quarter:3,sections:[9,10,11,12]},{quarter:4,sections:[13,14,15,16]}],d=e.computed(()=>{if(i.variable&&i.variable.parameters&&i.variable.parameters.destiny_zones&&i.variable.parameters.zone_type===1&&i.variable.parameters.destiny_zones.length){const v=c.find(T=>{const z=i.variable.parameters.destiny_zones[0];return T.sections.includes(z)});if(v)return[v.quarter]}return[]}),u=e.computed(()=>({"--z-index-overlay":i.zIndex})),p=()=>{a("update:modelValue",!0)};e.watch(()=>i.modelValue,v=>{v?(y(),document.body.classList.add("modal-open")):document.body.classList.remove("modal-open")});function y(){i.variable&&i.variable.parameters&&(i.variable.parameters.zone_type===2?(s.value=[...i.variable.parameters.origin_zones],r.value=[...i.variable.parameters.destiny_zones]):(l.value=[...i.variable.parameters.origin_zones],n.value=[...i.variable.parameters.destiny_zones]))}function m(){i.variable.isSelected||F(),a("update:model-value",!1)}function h(){i.variable.isSelected=!0,a("update:modelValue",!1)}function f(v){i.variable.parameters.origin_zones=[...v]}function g(v){v.length&&(i.variable.parameters.destiny_zones=[...v])}function b(v){i.variable.parameters.origin_zones=v}function _(v){i.variable.parameters.destiny_zones=v}function F(){i.variable.parameters={...i.variable.parametersDefault,origin_zones:[...i.variable.parametersDefault.origin_zones],destiny_zones:[...i.variable.parametersDefault.destiny_zones]},y()}return o({showModal:p}),(v,T)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>{var z,D;return[t.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",style:e.normalizeStyle(u.value)},[e.createElementVNode("div",{ref:"modalContent",class:"modal-content",onClick:T[6]||(T[6]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",_j,[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString((D=(z=t.variable)==null?void 0:z.parametersConditions)==null?void 0:D.title),1)]),e.createElementVNode("div",{class:"modal-content__close",onClick:m},Cj)]),e.createElementVNode("div",wj,[t.variable&&t.variable.parameters?(e.openBlock(),e.createElementBlock("div",kj,[e.createElementVNode("div",null,[t.variable.parameters.zone_type===1?(e.openBlock(),e.createBlock(Ny,{key:0,title:"Elige la zona de origen del balón:","initial-sections":l.value,onSectionsChanged:f},null,8,["initial-sections"])):(e.openBlock(),e.createElementBlock("div",Ej,[Vj,e.createVNode(Py,{"display-mode":!1,"initial-sections":s.value,onSectionsChanged:b},null,8,["initial-sections"])]))]),e.createElementVNode("div",null,[t.variable.parameters.zone_type===1?(e.openBlock(),e.createBlock(Ny,{key:0,title:"Elige la zona de destino del balón:","initial-sections":t.variable.parameters.destiny_zones,quarters:d.value,onSectionsChanged:g},null,8,["initial-sections","quarters"])):(e.openBlock(),e.createElementBlock("div",xj,[Nj,e.createVNode(Py,{"display-mode":!1,"initial-sections":r.value,onSectionsChanged:_},null,8,["initial-sections"])]))])])):e.createCommentVNode("",!0),Tj,e.createElementVNode("div",Bj,[e.createElementVNode("div",Fj,[Pj,e.createElementVNode("div",$j,[e.createElementVNode("div",Aj,[Ij,e.createElementVNode("div",Mj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_distance_x,"onUpdate:modelValue":T[0]||(T[0]=P=>t.variable.parameters.minimum_distance_x=P)},{maxValue:Number(t.variable.parameters.maximum_distance_x),minValue:t.variable.parametersConditions.x.min}),null,16,["modelValue"])])]),e.createElementVNode("div",zj,[Oj,e.createElementVNode("div",Rj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_distance_y,"onUpdate:modelValue":T[1]||(T[1]=P=>t.variable.parameters.minimum_distance_y=P)},{maxValue:Number(t.variable.parameters.maximum_distance_y),minValue:t.variable.parametersConditions.y.min}),null,16,["modelValue"])])]),e.createElementVNode("div",Lj,[Dj,e.createElementVNode("div",vj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.minimum_total_distance,"onUpdate:modelValue":T[2]||(T[2]=P=>t.variable.parameters.minimum_total_distance=P)},{maxValue:Number(t.variable.parameters.maximum_total_distance),minValue:t.variable.parametersConditions.total.min}),null,16,["modelValue"])])])])]),e.createElementVNode("div",jj,[Uj,e.createElementVNode("div",Wj,[e.createElementVNode("div",Hj,[Gj,e.createElementVNode("div",qj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_distance_x,"onUpdate:modelValue":T[3]||(T[3]=P=>t.variable.parameters.maximum_distance_x=P)},{maxValue:t.variable.parametersConditions.x.max,minValue:Number(t.variable.parameters.minimum_distance_x)}),null,16,["modelValue"])])]),e.createElementVNode("div",Jj,[Zj,e.createElementVNode("div",Yj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_distance_y,"onUpdate:modelValue":T[4]||(T[4]=P=>t.variable.parameters.maximum_distance_y=P)},{maxValue:t.variable.parametersConditions.y.max,minValue:Number(t.variable.parameters.minimum_distance_y)}),null,16,["modelValue"])])]),e.createElementVNode("div",Kj,[Xj,e.createElementVNode("div",Qj,[e.createVNode(ai,e.mergeProps({width:92,height:33,style:{"margin-left":"30px"},type:"m",modelValue:t.variable.parameters.maximum_total_distance,"onUpdate:modelValue":T[5]||(T[5]=P=>t.variable.parameters.maximum_total_distance=P)},{maxValue:t.variable.parametersConditions.total.max,minValue:Number(t.variable.parameters.minimum_total_distance)}),null,16,["modelValue"])])])])])])]),eU,e.createElementVNode("div",{class:"modal-footer"},[e.createElementVNode("div",{role:"button",onClick:F,class:"button-cancel button"}," Quitar filtros "),e.createElementVNode("div",{role:"button",class:"button-save button active",onClick:h}," Aplicar ")])],512)],4)):e.createCommentVNode("",!0)]}),_:1})]))}},aU=so(tU,[["__scopeId","data-v-ad3ea53b"]]),oU=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"]]),iU=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"]]),ts=t=>(e.pushScopeId("data-v-2a3de204"),t=t(),e.popScopeId(),t),sU={class:"players-limit"},rU=ts(()=>e.createElementVNode("div",{class:"players-limit__content__body"}," No puedes comparar más de 10 jugadores a la vez. ",-1)),lU=ts(()=>e.createElementVNode("div",{class:"separator"},null,-1)),nU={key:0,class:"header-tools header-tools-graph"},dU=ts(()=>e.createElementVNode("br",null,null,-1)),cU=ts(()=>e.createElementVNode("br",null,null,-1)),pU={key:1,class:"add-player-container"},mU=ts(()=>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":"0.5","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":"0.5","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":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),uU={key:0,class:"radar"},fU={key:1,class:"radar"},hU={__name:"GSC-TableAndRadar",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},userType:{type:String,default:""},userId:{type:Number,default:0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mzg4NjYsIm5hbWUiOiJMaWxsaW5pIiwidXNlcm5hbWUiOiJsaWxsaW5pdGVzdCIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3NDgyMTcxMTQsImV4cCI6MTc3OTc1MzExNH0.08YqLIH66doeBS-NLf1CPJM7WnvHLcB2Ypxm5LtBADg"},dynamicCategories:{type:Object,default:()=>({})},positionIds:{type:Array,default:()=>[]},customVariables:{type:Array,default:()=>[]},customVariablesOnly:{type:Boolean,default:!1},dynamicVariablesOnly:{type:Boolean,default:!1},isRankingVisible:{type:Boolean,default:!0},isDeletePlayerVisible:{type:Boolean,default:!1},lists:{type:Array,default:()=>[]},applyAdditionalData:{type:Boolean,default:!1},isAddPlayerVisible:{type:Boolean,default:!0},isAddToListVisible:{type:Boolean,default:!0},componentWidth:{type:Number,default:800},tableHeaderMobile:{type:Boolean,default:!1},pppValues:{type:Object,default:()=>({is_ppp:!1})},isFemaleMode:{type:Boolean,default:!1},unselectedTeamsIds:{type:Array,default:()=>[]},template:{type:Object,default:null}},emits:["view-profile","add-player","delete-player","list-created"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref([]),r=e.ref([]),l=e.ref([]),n=e.ref([]),c=e.ref(!1),d=e.ref(0),u=e.computed(()=>({"--grid-template-columns":i.dynamicVariablesOnly||i.customVariablesOnly?"1fr":"repeat(2, 1fr)"})),p=e.computed(()=>l.value.map(Y=>{const de={...Y};return delete de.isExpanded,de}));function y(Y){const de=new Date;let ue=de.getFullYear()-Y.getFullYear();const C=de.getMonth()-Y.getMonth();return(C<0||C===0&&de.getDate()<Y.getDate())&&ue--,ue}const m=e.computed(()=>{const Y=i.positionIds&&i.positionIds.length>0?i.positionIds.reduce((de,ue)=>`${de}${de==="?"?"":"&"}p=${ue}`,"?"):"";return`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${Y}`});e.watch(m,(Y,de)=>{Y&&Y!==de&&(i.customVariables&&i.customVariables.length?n.value=i.customVariables.map(ue=>({...ue,isSelected:!0})):h(Y))},{immediate:!0}),e.watch(()=>i.isEditMode,Y=>{Y&&s.value.forEach(de=>{de.isSelected=!1})});async function h(Y){try{const de=await(await fetch(Y,{method:"GET",headers:{"Content-Type":"application/json",Authorization:i.token}})).json();n.value=de.data?de.data.reduce((ue,C)=>(C.checked&&ue.push({...C,isSelected:!0}),ue),[]):[]}catch(de){console.error("Error fetching user variables:",de)}}function f(Y){l.value=Y}function g(Y){const[de,ue]=Y.split(","),C=de.split(" ");let I="";for(const U of C)if(I+=` ${U}`,U.length>3)break;return ue&&de?`${ue.trim()} ${I}`:""}function b(Y){return i.isFemaleMode?iU.get(Y):oU.get(Y)}function _(Y){s.value=Y.map((de,ue)=>{const C=ue+1;return de.position&&(typeof de.position=="string"?de.position_name=de.position:typeof de.position=="number"&&(de.position_id=de.position)),{...de,position:C<10?`0${C}`:`${C}`,isSelected:!1,isExpanded:!1,isOdd:ue%2!==0,countryFlagUrl:`https://golstatsimages.blob.core.windows.net/flags/${de.nationality_id}.jpg`,playerPosition:de.position_name?de.position_name:b(de.position_id)||"",age:y(new Date(de.dob)),shortName:g(de.name),index:ue}}),r.value=s.value.map(de=>({...de})),d.value+=1}function F(Y){s.value.forEach(ue=>{ue.isNew=!1});const de=s.value.find(ue=>ue.id&&Y.id&&ue.id===Y.id||ue.objeto_player&&ue.objeto_player.player_id===Y.player_id||ue.player_id&&Y.player_id&&ue.player_id===Y.player_id||ue.id&&Y.player_id&&ue.id===Y.player_id||ue.player_id&&Y.id&&ue.player_id===Y.id);setTimeout(()=>{de||(Y.name=g(Y.name),Y.isNew=!0,s.value.unshift(Y))},500)}function v(Y){c.value=Y,Y&&(document.body.style.overflow="hidden",document.html.style.overflow="hidden")}function T(){a("click-add-player")}function z(Y){a("view-profile",Y)}function D(Y){a("add-player",Y)}function P(Y){a("delete-player",Y)}function Q(){a("list-created")}const O=e.ref(!1),k=e.ref(null);function E(Y){k.value=Y,O.value=!0}function V(Y){O.value=Y}function N(){c.value=!1,document.body.style.overflow="auto",document.html.style.overflow="auto"}return o({setPlayers:_,addPlayer:F}),(Y,de)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sU,[e.createElementVNode("div",{class:"players-limit__content"},[rU,lU,e.createElementVNode("div",{class:"players-limit__content__footer"},[e.createElementVNode("div",{role:"button",class:"button-success",onClick:N}," Aceptar ")])])],512),[[e.vShow,c.value]])]),_:1})])),e.createVNode(aU,{"model-value":O.value,variable:k.value,"onUpdate:modelValue":V},null,8,["model-value","variable"]),e.createElementVNode("div",{class:"table-radars",style:e.normalizeStyle([u.value,t.tableHeaderMobile?"flex-direction: column-reverse;":""])},[e.createElementVNode("div",{class:"table-radars__table",style:e.normalizeStyle(t.tableHeaderMobile?"max-width: 100%; min-width:300px":"")},[t.tableHeaderMobile?(e.openBlock(),e.createElementBlock("div",nU,[e.createElementVNode("div",{class:"ht-left",style:e.normalizeStyle(t.componentWidth<450?"gap:5px;":"")},[e.createElementVNode("span",{class:"ht-title",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},"Rank",4),t.dynamicVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"ht-action",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},[e.createTextVNode("Agregar"),dU,e.createTextVNode("a lista")],4)),e.createElementVNode("span",{class:"ht-action",style:e.normalizeStyle(t.componentWidth<450?"font-size:8px;":"")},[e.createTextVNode("Ver"),cU,e.createTextVNode("en spider")],4)],4)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(YN,{key:d.value,players:s.value,"is-ranking-visible":t.isRankingVisible,"is-delete-player-visible":t.isDeletePlayerVisible,lists:t.lists,"component-width":t.componentWidth,"dynamic-variables-only":t.dynamicVariablesOnly,"custom-variables-only":t.customVariablesOnly,token:t.token,"user-id":t.userId,"is-add-to-list-visible":t.isAddToListVisible,onChangeSelectedPlayers:f,onClickCheckbox:v,onViewProfile:z,onAddPlayer:D,onDeletePlayer:P,onListCreated:Q},null,8,["players","is-ranking-visible","is-delete-player-visible","lists","component-width","dynamic-variables-only","custom-variables-only","token","user-id","is-add-to-list-visible"])),t.isAddPlayerVisible?(e.openBlock(),e.createElementBlock("div",pU,[e.createElementVNode("div",{role:"button",class:"button-add-player",onClick:T},[e.createElementVNode("div",null,"Agregar "+e.toDisplayString(t.isFemaleMode?"jugadora":"jugador"),1),mU])])):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"table-radars__radars",style:e.normalizeStyle(t.componentWidth<=500?"--grid-template-columns: repeat(1fr, 1fr)":"")},[t.dynamicVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uU,[e.createVNode(Ey,{title:t.userType=="selecciones menores"?"Tipos de jugadas selecciones menores:":"Tipos de jugadas Profesor Lillini:",players:p.value,"all-players":s.value,"custom-categories":n.value,template:t.template,"user-id":t.userId,token:t.token,"has-header":!t.customVariablesOnly,"apply-additional-data":t.applyAdditionalData,"component-width":t.componentWidth,"ppp-values":t.pppValues,"unselected-teams-ids":t.unselectedTeamsIds,"is-mobile":""},null,8,["title","players","all-players","custom-categories","template","user-id","token","has-header","apply-additional-data","component-width","ppp-values","unselected-teams-ids"])])),t.customVariablesOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fU,[e.createVNode(Ey,{title:"Variables Dinámicas:",players:p.value,"all-players":s.value,"dynamic-categories":t.dynamicCategories,"user-id":t.userId,token:t.token,"is-mobile":"","component-width":t.componentWidth,"apply-additional-data":t.applyAdditionalData,"ppp-values":t.pppValues,"unselected-teams-ids":t.unselectedTeamsIds,onClickParameters:E},null,8,["players","all-players","dynamic-categories","user-id","token","component-width","apply-additional-data","ppp-values","unselected-teams-ids"])]))],4)],4)],64))}},yU=so(hU,[["__scopeId","data-v-2a3de204"]]);function gU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xr={exports:{}},$y;function bU(){if($y)return Xr.exports;$y=1;function t(){}return t.prototype={on:function(o,a,i){var s=this.e||(this.e={});return(s[o]||(s[o]=[])).push({fn:a,ctx:i}),this},once:function(o,a,i){var s=this;function r(){s.off(o,r),a.apply(i,arguments)}return r._=a,this.on(o,r,i)},emit:function(o){var a=[].slice.call(arguments,1),i=((this.e||(this.e={}))[o]||[]).slice(),s=0,r=i.length;for(s;s<r;s++)i[s].fn.apply(i[s].ctx,a);return this},off:function(o,a){var i=this.e||(this.e={}),s=i[o],r=[];if(s&&a)for(var l=0,n=s.length;l<n;l++)s[l].fn!==a&&s[l].fn._!==a&&r.push(s[l]);return r.length?i[o]=r:delete i[o],this}},Xr.exports=t,Xr.exports.TinyEmitter=t,Xr.exports}var Cc,Ay;function _U(){if(Ay)return Cc;Ay=1;var t=bU();return Cc=new t,Cc}var SU=_U();const Iy=gU(SU),CU={class:"graph-view"},wU={__name:"GraphView",props:{list:{object:{type:Array,default:()=>[]}},players:{type:Array,default:()=>[]},componentWidth:{type:Number,default:500},isFemaleMode:{type:Boolean,default:!1},template:{type:Object,default:null}},emits:["delete-from-list","showProfile"],setup(t,{emit:o}){const a=t,i=o,s=e.ref(null),r=e.ref(0),l=e.computed(()=>(n(),a.list?a.list.variables:null));e.watch(()=>s.value,u=>{u&&a.players&&u.setPlayers(a.players)},{immediate:!0}),e.watch(()=>a.players.length,(u,p)=>{s.value&&u!==p&&s.value.setPlayers(a.players)},{immediate:!0});function n(){r.value=Date.now()}Iy.on("set-players",u=>{s.value&&s.value.setPlayers(u)}),Iy.on("add-player",u=>{console.count("add-player"),s&&s.value&&s.value.addPlayer(u)});function c(u){i("showProfile",u)}function d(u){i("delete-from-list",u)}return(u,p)=>(e.openBlock(),e.createElementBlock("div",CU,[(e.openBlock(),e.createBlock(e.unref(yU),{key:r.value,ref_key:"tableAndRadar",ref:s,"custom-variables":l.value,"custom-variables-only":!0,"is-ranking-visible":!1,"is-delete-player-visible":!0,"apply-additional-data":!0,"is-add-player-visible":!1,template:t.template,"component-width":t.componentWidth,"table-headerMobile":t.componentWidth<640,"is-female-mode":t.isFemaleMode,onViewProfile:c,onDeletePlayer:d},null,8,["custom-variables","template","component-width","table-headerMobile","is-female-mode"]))]))}},kU=Ht(wU,[["__scopeId","data-v-23305eeb"]]);function My(t,o){return function(){return t.apply(o,arguments)}}const{toString:EU}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:Qr,toStringTag:zy}=Symbol,el=(t=>o=>{const a=EU.call(o);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=t=>(t=t.toLowerCase(),o=>el(o)===t),tl=t=>o=>typeof o===t,{isArray:oi}=Array,ii=tl("undefined");function as(t){return t!==null&&!ii(t)&&t.constructor!==null&&!ii(t.constructor)&&Ft(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Oy=Xt("ArrayBuffer");function VU(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Oy(t.buffer),o}const xU=tl("string"),Ft=tl("function"),Ry=tl("number"),os=t=>t!==null&&typeof t=="object",NU=t=>t===!0||t===!1,al=t=>{if(el(t)!=="object")return!1;const o=wc(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(zy in t)&&!(Qr in t)},TU=t=>{if(!os(t)||as(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},BU=Xt("Date"),FU=Xt("File"),PU=Xt("Blob"),$U=Xt("FileList"),AU=t=>os(t)&&Ft(t.pipe),IU=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||Ft(t.append)&&((o=el(t))==="formdata"||o==="object"&&Ft(t.toString)&&t.toString()==="[object FormData]"))},MU=Xt("URLSearchParams"),[zU,OU,RU,LU]=["ReadableStream","Request","Response","Headers"].map(Xt),DU=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function is(t,o,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),oi(t))for(i=0,s=t.length;i<s;i++)o.call(null,t[i],i,t);else{if(as(t))return;const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(i=0;i<l;i++)n=r[i],o.call(null,t[n],n,t)}}function Ly(t,o){if(as(t))return null;o=o.toLowerCase();const a=Object.keys(t);let i=a.length,s;for(;i-- >0;)if(s=a[i],o===s.toLowerCase())return s;return null}const fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dy=t=>!ii(t)&&t!==fo;function kc(){const{caseless:t,skipUndefined:o}=Dy(this)&&this||{},a={},i=(s,r)=>{const l=t&&Ly(a,r)||r;al(a[l])&&al(s)?a[l]=kc(a[l],s):al(s)?a[l]=kc({},s):oi(s)?a[l]=s.slice():(!o||!ii(s))&&(a[l]=s)};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&is(arguments[s],i);return a}const vU=(t,o,a,{allOwnKeys:i}={})=>(is(o,(s,r)=>{a&&Ft(s)?t[r]=My(s,a):t[r]=s},{allOwnKeys:i}),t),jU=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),UU=(t,o,a,i)=>{t.prototype=Object.create(o.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),a&&Object.assign(t.prototype,a)},WU=(t,o,a,i)=>{let s,r,l;const n={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!i||i(l,t,o))&&!n[l]&&(o[l]=t[l],n[l]=!0);t=a!==!1&&wc(t)}while(t&&(!a||a(t,o))&&t!==Object.prototype);return o},HU=(t,o,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=o.length;const i=t.indexOf(o,a);return i!==-1&&i===a},GU=t=>{if(!t)return null;if(oi(t))return t;let o=t.length;if(!Ry(o))return null;const a=new Array(o);for(;o-- >0;)a[o]=t[o];return a},qU=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&wc(Uint8Array)),JU=(t,o)=>{const a=(t&&t[Qr]).call(t);let i;for(;(i=a.next())&&!i.done;){const s=i.value;o.call(t,s[0],s[1])}},ZU=(t,o)=>{let a;const i=[];for(;(a=t.exec(o))!==null;)i.push(a);return i},YU=Xt("HTMLFormElement"),KU=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),vy=(({hasOwnProperty:t})=>(o,a)=>t.call(o,a))(Object.prototype),XU=Xt("RegExp"),jy=(t,o)=>{const a=Object.getOwnPropertyDescriptors(t),i={};is(a,(s,r)=>{let l;(l=o(s,r,t))!==!1&&(i[r]=l||s)}),Object.defineProperties(t,i)},QU=t=>{jy(t,(o,a)=>{if(Ft(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=t[a];if(Ft(i)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},eW=(t,o)=>{const a={},i=s=>{s.forEach(r=>{a[r]=!0})};return oi(t)?i(t):i(String(t).split(o)),a},tW=()=>{},aW=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o;function oW(t){return!!(t&&Ft(t.append)&&t[zy]==="FormData"&&t[Qr])}const iW=t=>{const o=new Array(10),a=(i,s)=>{if(os(i)){if(o.indexOf(i)>=0)return;if(as(i))return i;if(!("toJSON"in i)){o[s]=i;const r=oi(i)?[]:{};return is(i,(l,n)=>{const c=a(l,s+1);!ii(c)&&(r[n]=c)}),o[s]=void 0,r}}return i};return a(t,0)},sW=Xt("AsyncFunction"),rW=t=>t&&(os(t)||Ft(t))&&Ft(t.then)&&Ft(t.catch),Uy=((t,o)=>t?setImmediate:o?((a,i)=>(fo.addEventListener("message",({source:s,data:r})=>{s===fo&&r===a&&i.length&&i.shift()()},!1),s=>{i.push(s),fo.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Ft(fo.postMessage)),lW=typeof queueMicrotask<"u"?queueMicrotask.bind(fo):typeof process<"u"&&process.nextTick||Uy,nW=t=>t!=null&&Ft(t[Qr]),K={isArray:oi,isArrayBuffer:Oy,isBuffer:as,isFormData:IU,isArrayBufferView:VU,isString:xU,isNumber:Ry,isBoolean:NU,isObject:os,isPlainObject:al,isEmptyObject:TU,isReadableStream:zU,isRequest:OU,isResponse:RU,isHeaders:LU,isUndefined:ii,isDate:BU,isFile:FU,isBlob:PU,isRegExp:XU,isFunction:Ft,isStream:AU,isURLSearchParams:MU,isTypedArray:qU,isFileList:$U,forEach:is,merge:kc,extend:vU,trim:DU,stripBOM:jU,inherits:UU,toFlatObject:WU,kindOf:el,kindOfTest:Xt,endsWith:HU,toArray:GU,forEachEntry:JU,matchAll:ZU,isHTMLForm:YU,hasOwnProperty:vy,hasOwnProp:vy,reduceDescriptors:jy,freezeMethods:QU,toObjectSet:eW,toCamelCase:KU,noop:tW,toFiniteNumber:aW,findKey:Ly,global:fo,isContextDefined:Dy,isSpecCompliantForm:oW,toJSONObject:iW,isAsyncFn:sW,isThenable:rW,setImmediate:Uy,asap:lW,isIterable:nW};function ke(t,o,a,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}K.inherits(ke,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 Wy=ke.prototype,Hy={};["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=>{Hy[t]={value:t}}),Object.defineProperties(ke,Hy),Object.defineProperty(Wy,"isAxiosError",{value:!0}),ke.from=(t,o,a,i,s,r)=>{const l=Object.create(Wy);K.toFlatObject(t,l,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const n=t&&t.message?t.message:"Error",c=o==null&&t?t.code:o;return ke.call(l,n,c,a,i,s),t&&l.cause==null&&Object.defineProperty(l,"cause",{value:t,configurable:!0}),l.name=t&&t.name||"Error",r&&Object.assign(l,r),l};const dW=null;function Ec(t){return K.isPlainObject(t)||K.isArray(t)}function Gy(t){return K.endsWith(t,"[]")?t.slice(0,-2):t}function qy(t,o,a){return t?t.concat(o).map(function(i,s){return i=Gy(i),!a&&s?"["+i+"]":i}).join(a?".":""):o}function cW(t){return K.isArray(t)&&!t.some(Ec)}const pW=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function ol(t,o,a){if(!K.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,a=K.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!K.isUndefined(h[m])});const i=a.metaTokens,s=a.visitor||d,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(o);if(!K.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(K.isDate(m))return m.toISOString();if(K.isBoolean(m))return m.toString();if(!n&&K.isBlob(m))throw new ke("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(m)||K.isTypedArray(m)?n&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,f){let g=m;if(m&&!f&&typeof m=="object"){if(K.endsWith(h,"{}"))h=i?h:h.slice(0,-2),m=JSON.stringify(m);else if(K.isArray(m)&&cW(m)||(K.isFileList(m)||K.endsWith(h,"[]"))&&(g=K.toArray(m)))return h=Gy(h),g.forEach(function(b,_){!(K.isUndefined(b)||b===null)&&o.append(l===!0?qy([h],_,r):l===null?h:h+"[]",c(b))}),!1}return Ec(m)?!0:(o.append(qy(f,h,r),c(m)),!1)}const u=[],p=Object.assign(pW,{defaultVisitor:d,convertValue:c,isVisitable:Ec});function y(m,h){if(!K.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),K.forEach(m,function(f,g){(!(K.isUndefined(f)||f===null)&&s.call(o,f,K.isString(g)?g.trim():g,h,p))===!0&&y(f,h?h.concat(g):[g])}),u.pop()}}if(!K.isObject(t))throw new TypeError("data must be an object");return y(t),o}function Jy(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return o[a]})}function Vc(t,o){this._pairs=[],t&&ol(t,this,o)}const Zy=Vc.prototype;Zy.append=function(t,o){this._pairs.push([t,o])},Zy.toString=function(t){const o=t?function(a){return t.call(this,a,Jy)}:Jy;return this._pairs.map(function(a){return o(a[0])+"="+o(a[1])},"").join("&")};function mW(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yy(t,o,a){if(!o)return t;const i=a&&a.encode||mW;K.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(o,a):r=K.isURLSearchParams(o)?o.toString():new Vc(o,a).toString(i),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}let Ky=class{constructor(){this.handlers=[]}use(o,a,i){return this.handlers.push({fulfilled:o,rejected:a,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){K.forEach(this.handlers,function(a){a!==null&&o(a)})}};const Xy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uW=typeof URLSearchParams<"u"?URLSearchParams:Vc,fW=typeof FormData<"u"?FormData:null,hW=typeof Blob<"u"?Blob:null,yW={isBrowser:!0,classes:{URLSearchParams:uW,FormData:fW,Blob:hW},protocols:["http","https","file","blob","url","data"]},xc=typeof window<"u"&&typeof document<"u",Nc=typeof navigator=="object"&&navigator||void 0,gW=xc&&(!Nc||["ReactNative","NativeScript","NS"].indexOf(Nc.product)<0),bW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_W=xc&&window.location.href||"http://localhost",SW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xc,hasStandardBrowserEnv:gW,hasStandardBrowserWebWorkerEnv:bW,navigator:Nc,origin:_W},Symbol.toStringTag,{value:"Module"})),ut={...SW,...yW};function CW(t,o){return ol(t,new ut.classes.URLSearchParams,{visitor:function(a,i,s,r){return ut.isNode&&K.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...o})}function wW(t){return K.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function kW(t){const o={},a=Object.keys(t);let i;const s=a.length;let r;for(i=0;i<s;i++)r=a[i],o[r]=t[r];return o}function Qy(t){function o(a,i,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),c=r>=a.length;return l=!l&&K.isArray(s)?s.length:l,c?(K.hasOwnProp(s,l)?s[l]=[s[l],i]:s[l]=i,!n):((!s[l]||!K.isObject(s[l]))&&(s[l]=[]),o(a,i,s[l],r)&&K.isArray(s[l])&&(s[l]=kW(s[l])),!n)}if(K.isFormData(t)&&K.isFunction(t.entries)){const a={};return K.forEachEntry(t,(i,s)=>{o(wW(i),s,a,0)}),a}return null}function EW(t,o,a){if(K.isString(t))try{return(o||JSON.parse)(t),K.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(t)}const ss={transitional:Xy,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,s=K.isObject(t);if(s&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return i?JSON.stringify(Qy(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 o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return CW(t,this.formSerializer).toString();if((r=K.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ol(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(o.setContentType("application/json",!1),EW(t)):t}],transformResponse:[function(t){const o=this.transitional||ss.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(r){if(s)throw r.name==="SyntaxError"?ke.from(r,ke.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.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=>{ss.headers[t]={}});const VW=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"]),xW=t=>{const o={};let a,i,s;return t&&t.split(`
|
|
31
31
|
`).forEach(function(r){s=r.indexOf(":"),a=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!a||o[a]&&VW[a])&&(a==="set-cookie"?o[a]?o[a].push(i):o[a]=[i]:o[a]=o[a]?o[a]+", "+i:i)}),o},e0=Symbol("internals");function rs(t){return t&&String(t).trim().toLowerCase()}function il(t){return t===!1||t==null?t:K.isArray(t)?t.map(il):String(t)}function NW(t){const o=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(t);)o[i[1]]=i[2];return o}const TW=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Tc(t,o,a,i,s){if(K.isFunction(i))return i.call(this,o,a);if(s&&(o=a),!!K.isString(o)){if(K.isString(i))return o.indexOf(i)!==-1;if(K.isRegExp(i))return i.test(o)}}function BW(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,a,i)=>a.toUpperCase()+i)}function FW(t,o){const a=K.toCamelCase(" "+o);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+a,{value:function(s,r,l){return this[i].call(this,o,s,r,l)},configurable:!0})})}let Pt=class{constructor(o){o&&this.set(o)}set(o,a,i){const s=this;function r(n,c,d){const u=rs(c);if(!u)throw new Error("header name must be a non-empty string");const p=K.findKey(s,u);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||c]=il(n))}const l=(n,c)=>K.forEach(n,(d,u)=>r(d,u,c));if(K.isPlainObject(o)||o instanceof this.constructor)l(o,a);else if(K.isString(o)&&(o=o.trim())&&!TW(o))l(xW(o),a);else if(K.isObject(o)&&K.isIterable(o)){let n={},c,d;for(const u of o){if(!K.isArray(u))throw TypeError("Object iterator must return a key-value pair");n[d=u[0]]=(c=n[d])?K.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}l(n,a)}else o!=null&&r(a,o,i);return this}get(o,a){if(o=rs(o),o){const i=K.findKey(this,o);if(i){const s=this[i];if(!a)return s;if(a===!0)return NW(s);if(K.isFunction(a))return a.call(this,s,i);if(K.isRegExp(a))return a.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,a){if(o=rs(o),o){const i=K.findKey(this,o);return!!(i&&this[i]!==void 0&&(!a||Tc(this,this[i],i,a)))}return!1}delete(o,a){const i=this;let s=!1;function r(l){if(l=rs(l),l){const n=K.findKey(i,l);n&&(!a||Tc(i,i[n],n,a))&&(delete i[n],s=!0)}}return K.isArray(o)?o.forEach(r):r(o),s}clear(o){const a=Object.keys(this);let i=a.length,s=!1;for(;i--;){const r=a[i];(!o||Tc(this,this[r],r,o,!0))&&(delete this[r],s=!0)}return s}normalize(o){const a=this,i={};return K.forEach(this,(s,r)=>{const l=K.findKey(i,r);if(l){a[l]=il(s),delete a[r];return}const n=o?BW(r):String(r).trim();n!==r&&delete a[r],a[n]=il(s),i[n]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const a=Object.create(null);return K.forEach(this,(i,s)=>{i!=null&&i!==!1&&(a[s]=o&&K.isArray(i)?i.join(", "):i)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,a])=>o+": "+a).join(`
|
|
32
32
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...a){const i=new this(o);return a.forEach(s=>i.set(s)),i}static accessor(o){const a=(this[e0]=this[e0]={accessors:{}}).accessors,i=this.prototype;function s(r){const l=rs(r);a[l]||(FW(i,r),a[l]=!0)}return K.isArray(o)?o.forEach(s):s(o),this}};Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Pt.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),K.freezeMethods(Pt);function Bc(t,o){const a=this||ss,i=o||a,s=Pt.from(i.headers);let r=i.data;return K.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function t0(t){return!!(t&&t.__CANCEL__)}function si(t,o,a){ke.call(this,t??"canceled",ke.ERR_CANCELED,o,a),this.name="CanceledError"}K.inherits(si,ke,{__CANCEL__:!0});function a0(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new ke("Request failed with status code "+a.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function PW(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function $W(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let u=r,p=0;for(;u!==s;)p+=a[u++],u=u%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function AW(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const sl=(t,o,a=3)=>{let i=0;const s=$W(50,250);return AW(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(p)},a)},o0=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},i0=t=>(...o)=>K.asap(()=>t(...o)),IW=ut.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,ut.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,MW=ut.hasStandardBrowserEnv?{write(t,o,a,i,s,r,l){if(typeof document>"u")return;const n=[`${t}=${encodeURIComponent(o)}`];K.isNumber(a)&&n.push(`expires=${new Date(a).toUTCString()}`),K.isString(i)&&n.push(`path=${i}`),K.isString(s)&&n.push(`domain=${s}`),r===!0&&n.push("secure"),K.isString(l)&&n.push(`SameSite=${l}`),document.cookie=n.join("; ")},read(t){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function zW(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function OW(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function s0(t,o,a){let i=!zW(o);return t&&(i||a==!1)?OW(t,o):o}const r0=t=>t instanceof Pt?{...t}:t;function ho(t,o){o=o||{};const a={};function i(d,u,p,y){return K.isPlainObject(d)&&K.isPlainObject(u)?K.merge.call({caseless:y},d,u):K.isPlainObject(u)?K.merge({},u):K.isArray(u)?u.slice():u}function s(d,u,p,y){if(K.isUndefined(u)){if(!K.isUndefined(d))return i(void 0,d,p,y)}else return i(d,u,p,y)}function r(d,u){if(!K.isUndefined(u))return i(void 0,u)}function l(d,u){if(K.isUndefined(u)){if(!K.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,p){if(p in o)return i(d,u);if(p in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,u,p)=>s(r0(d),r0(u),p,!0)};return K.forEach(Object.keys({...t,...o}),function(d){const u=c[d]||s,p=u(t[d],o[d],d);K.isUndefined(p)&&u!==n||(a[d]=p)}),a}const l0=t=>{const o=ho({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;if(o.headers=l=Pt.from(l),o.url=Yy(s0(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),K.isFormData(a)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(K.isFunction(a.getHeaders)){const c=a.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{d.includes(u.toLowerCase())&&l.set(u,p)})}}if(ut.hasStandardBrowserEnv&&(i&&K.isFunction(i)&&(i=i(o)),i||i!==!1&&IW(o.url))){const c=s&&r&&MW.read(r);c&&l.set(s,c)}return o},RW=typeof XMLHttpRequest<"u",LW=RW&&function(t){return new Promise(function(o,a){const i=l0(t);let s=i.data;const r=Pt.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,p,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const _=Pt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),F={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:_,config:t,request:f};a0(function(v){o(v),h()},function(v){a(v),h()},F),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new ke("Request aborted",ke.ECONNABORTED,t,f)),f=null)},f.onerror=function(_){const F=_&&_.message?_.message:"Network Error",v=new ke(F,ke.ERR_NETWORK,t,f);v.event=_||null,a(v),f=null},f.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||Xy;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),a(new ke(_,F.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&K.forEach(r.toJSON(),function(_,F){f.setRequestHeader(F,_)}),K.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([p,m]=sl(c,!0),f.addEventListener("progress",p)),n&&f.upload&&([u,y]=sl(n),f.upload.addEventListener("progress",u),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=_=>{f&&(a(!_||_.type?new si(null,t,f):_),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=PW(i.url);if(b&&ut.protocols.indexOf(b)===-1){a(new ke("Unsupported protocol "+b+":",ke.ERR_BAD_REQUEST,t));return}f.send(s||null)})},DW=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const u=d instanceof Error?d:this.reason;i.abort(u instanceof ke?u:new si(u instanceof Error?u.message:u))}};let l=o&&setTimeout(()=>{l=null,r(new ke(`timeout ${o} of ms exceeded`,ke.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>K.asap(n),c}},vW=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},jW=async function*(t,o){for await(const a of UW(t))yield*vW(a,o)},UW=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},n0=(t,o,a,i)=>{const s=jW(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){n(),c.close();return}let p=u.byteLength;if(a){let y=r+=p;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},d0=64*1024,{isFunction:rl}=K,WW=(({Request:t,Response:o})=>({Request:t,Response:o}))(K.global),{ReadableStream:c0,TextEncoder:p0}=K.global,m0=(t,...o)=>{try{return!!t(...o)}catch{return!1}},HW=t=>{t=K.merge.call({skipUndefined:!0},WW,t);const{fetch:o,Request:a,Response:i}=t,s=o?rl(o):typeof fetch=="function",r=rl(a),l=rl(i);if(!s)return!1;const n=s&&rl(c0),c=s&&(typeof p0=="function"?(h=>f=>h.encode(f))(new p0):async h=>new Uint8Array(await new a(h).arrayBuffer())),d=r&&n&&m0(()=>{let h=!1;const f=new a(ut.origin,{body:new c0,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!f}),u=l&&n&&m0(()=>K.isReadableStream(new i("").body)),p={stream:u&&(h=>h.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!p[h]&&(p[h]=(f,g)=>{let b=f&&f[h];if(b)return b.call(f);throw new ke(`Response type '${h}' is not supported`,ke.ERR_NOT_SUPPORT,g)})});const y=async h=>{if(h==null)return 0;if(K.isBlob(h))return h.size;if(K.isSpecCompliantForm(h))return(await new a(ut.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(K.isArrayBufferView(h)||K.isArrayBuffer(h))return h.byteLength;if(K.isURLSearchParams(h)&&(h=h+""),K.isString(h))return(await c(h)).byteLength},m=async(h,f)=>K.toFiniteNumber(h.getContentLength())??y(f);return async h=>{let{url:f,method:g,data:b,signal:_,cancelToken:F,timeout:v,onDownloadProgress:T,onUploadProgress:z,responseType:D,headers:P,withCredentials:Q="same-origin",fetchOptions:O}=l0(h),k=o||fetch;D=D?(D+"").toLowerCase():"text";let E=DW([_,F&&F.toAbortSignal()],v),V=null;const N=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let Y;try{if(z&&d&&g!=="get"&&g!=="head"&&(Y=await m(P,b))!==0){let M=new a(f,{method:"POST",body:b,duplex:"half"}),W;if(K.isFormData(b)&&(W=M.headers.get("content-type"))&&P.setContentType(W),M.body){const[ce,j]=o0(Y,sl(i0(z)));b=n0(M.body,d0,ce,j)}}K.isString(Q)||(Q=Q?"include":"omit");const de=r&&"credentials"in a.prototype,ue={...O,signal:E,method:g.toUpperCase(),headers:P.normalize().toJSON(),body:b,duplex:"half",credentials:de?Q:void 0};V=r&&new a(f,ue);let C=await(r?k(V,O):k(f,ue));const I=u&&(D==="stream"||D==="response");if(u&&(T||I&&N)){const M={};["status","statusText","headers"].forEach(H=>{M[H]=C[H]});const W=K.toFiniteNumber(C.headers.get("content-length")),[ce,j]=T&&o0(W,sl(i0(T),!0))||[];C=new i(n0(C.body,d0,ce,()=>{j&&j(),N&&N()}),M)}D=D||"text";let U=await p[K.findKey(p,D)||"text"](C,h);return!I&&N&&N(),await new Promise((M,W)=>{a0(M,W,{data:U,headers:Pt.from(C.headers),status:C.status,statusText:C.statusText,config:h,request:V})})}catch(de){throw N&&N(),de&&de.name==="TypeError"&&/Load failed|fetch/i.test(de.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,h,V),{cause:de.cause||de}):ke.from(de,de&&de.code,h,V)}}},GW=new Map,u0=t=>{let o=t&&t.env||{};const{fetch:a,Request:i,Response:s}=o,r=[i,s,a];let l=r.length,n=l,c,d,u=GW;for(;n--;)c=r[n],d=u.get(c),d===void 0&&u.set(c,d=n?new Map:HW(o)),u=d;return d};u0();const Fc={http:dW,xhr:LW,fetch:{get:u0}};K.forEach(Fc,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const f0=t=>`- ${t}`,qW=t=>K.isFunction(t)||t===null||t===!1;function JW(t,o){t=K.isArray(t)?t:[t];const{length:a}=t;let i,s;const r={};for(let l=0;l<a;l++){i=t[l];let n;if(s=i,!qW(i)&&(s=Fc[(n=String(i)).toLowerCase()],s===void 0))throw new ke(`Unknown adapter '${n}'`);if(s&&(K.isFunction(s)||(s=s.get(o))))break;r[n||"#"+l]=s}if(!s){const l=Object.entries(r).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let n=a?l.length>1?`since :
|
|
33
33
|
`+l.map(f0).join(`
|