@golstats/gsc-landing 1.0.211 → 1.0.212

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.
Files changed (29) hide show
  1. package/dist/{CardBase-BCSIUbwa-D0QHJaVZ.js → CardBase-BCSIUbwa-DOSZB9eo.js} +1 -1
  2. package/dist/{CardBaseAllIndividual-CZ_3lxWf-CiOPAnOV.js → CardBaseAllIndividual-CZ_3lxWf-BtpGPuJl.js} +1 -1
  3. package/dist/{CardGeneral-DcE_7xpj-Da1P5A1Y.js → CardGeneral-DcE_7xpj-BjirwqAW.js} +2 -2
  4. package/dist/{CardGeneralIndividual-DbvxscVI-Bc1kGIr7.js → CardGeneralIndividual-DbvxscVI-DgN71Ll_.js} +2 -2
  5. package/dist/{CardGeneralTeams-D0Y6zdKu-DrJgbPOQ.js → CardGeneralTeams-D0Y6zdKu-bSMLQ0UN.js} +2 -2
  6. package/dist/{CardIndividual-Ki5omZJI-Ciu0hwXk.js → CardIndividual-Ki5omZJI-BJN0Xc4K.js} +3 -3
  7. package/dist/{CardIndividual1vs1-DmlJbJ8B-CqHJErBM.js → CardIndividual1vs1-DmlJbJ8B-DqGZqI9c.js} +3 -3
  8. package/dist/{CardIndividualAreas-CYpbCBwP-BjZB3XbX.js → CardIndividualAreas-CYpbCBwP-CZlr4svT.js} +3 -3
  9. package/dist/{CardIndividualCenters-JhzJNVnv-CJn74p6o.js → CardIndividualCenters-JhzJNVnv-knmAyBfO.js} +3 -3
  10. package/dist/{CardIndividualDistance-CKkJ7mwB-u2DfEB97.js → CardIndividualDistance-CKkJ7mwB-dhRkzmM7.js} +3 -3
  11. package/dist/{CardIndividualFouls-6eSJq50u-wf78GxeZ.js → CardIndividualFouls-6eSJq50u-0Eo_ODlc.js} +3 -3
  12. package/dist/{CardIndividualGoalParticipation-S3oTRiGX-CNKud2Cq.js → CardIndividualGoalParticipation-S3oTRiGX-B9Ubj5c2.js} +4 -4
  13. package/dist/{CardIndividualGoals-CTxER-Rj-BZhtgjMk.js → CardIndividualGoals-CTxER-Rj-DrsBgKOW.js} +4 -4
  14. package/dist/{CardIndividualGold-B4BcqctC-DqyiNjdq.js → CardIndividualGold-B4BcqctC-DsJbgA7N.js} +4 -4
  15. package/dist/{CardIndividualNoGoalReceived-BrVOXQpB-B3V2Zmtw.js → CardIndividualNoGoalReceived-BrVOXQpB-WWzw2ZT1.js} +4 -4
  16. package/dist/{CardIndividualPerformance-Kw8Qsjmn-DfLh8-n-.js → CardIndividualPerformance-Kw8Qsjmn-DB6xWsL-.js} +4 -4
  17. package/dist/{CardIndividualSaves-j_epfoNL-B2sE6QGA.js → CardIndividualSaves-j_epfoNL-BLIYXJi2.js} +3 -3
  18. package/dist/{CardIndividualShotsOnGoal-BTVmtE9u-_HJTv__w.js → CardIndividualShotsOnGoal-BTVmtE9u-BWNF8wkq.js} +3 -3
  19. package/dist/{CardIndividualStatistics-DbAhxMKF-Z3K8YQ8t.js → CardIndividualStatistics-DbAhxMKF-JN2q71S7.js} +3 -3
  20. package/dist/{CardPromTournament-BtYUa7FA-LXLTJ5tI.js → CardPromTournament-BtYUa7FA-B1jTn5AY.js} +3 -3
  21. package/dist/{CardSuccessfulPasses-Bwg7cP83-gQTXyq4i.js → CardSuccessfulPasses-Bwg7cP83-BVI2LDec.js} +3 -3
  22. package/dist/{CardTheMostProductive-CMoq34SC-Bd-ALBIQ.js → CardTheMostProductive-CMoq34SC-CLWwaVwC.js} +4 -4
  23. package/dist/{CircleWithDotsBig-I8rIqrbw-cAY-ws0w.js → CircleWithDotsBig-I8rIqrbw-GuORLRXc.js} +1 -1
  24. package/dist/{Shield-wY38e4UU-53G6vCsw.js → Shield-wY38e4UU-DdT1mqXC.js} +1 -1
  25. package/dist/gsc-landing.js +1 -1
  26. package/dist/gsc-landing.umd.cjs +1 -1
  27. package/dist/{index-DN5VzqV1.js → index-DyuOTImd.js} +28 -28
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { computed as r, openBlock as a, createElementBlock as l, normalizeStyle as g, createElementVNode as t, createCommentVNode as d, createStaticVNode as h, pushScopeId as p, popScopeId as m } from "vue";
2
- import { b as c } from "./CardBase-BCSIUbwa-D0QHJaVZ.js";
2
+ import { b as c } from "./CardBase-BCSIUbwa-DOSZB9eo.js";
3
3
  const s = (e) => (p("data-v-99150449"), e = e(), m(), e), C = { class: "shield__team-logo" }, u = ["src"], f = { class: "shield-mask-1" }, L = ["id"], _ = /* @__PURE__ */ s(() => /* @__PURE__ */ t("path", {
4
4
  d: "M1 0.476395V0.387079V0H5.96046e-08V0.387079V0.476395C5.96046e-08 0.587341 0.0452889 0.694837 0.130937 0.787218C0.216586 0.879598 0.337247 0.951098 0.479865 0.993954L0.489932 0.996977L0.5 1L0.510068 0.996977L0.520135 0.993954C0.662753 0.951098 0.783414 0.879598 0.869063 0.787218C0.954741 0.694837 1 0.587363 1 0.476395Z",
5
5
  fill: "#D9D9D9"
@@ -1,4 +1,4 @@
1
- import { g as n } from "./index-DN5VzqV1.js";
1
+ import { g as n } from "./index-DyuOTImd.js";
2
2
  export {
3
3
  n as GSCLanding
4
4
  };
@@ -49,7 +49,7 @@
49
49
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const o=new this(e);return a.forEach(s=>o.set(s)),o}static accessor(e){const a=(this[zg]=this[zg]={accessors:{}}).accessors,o=this.prototype;function s(i){const r=es(i);a[r]||(SM(o,i),a[r]=!0)}return K.isArray(e)?e.forEach(s):s(e),this}};Qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Qt.prototype,({value:t},e)=>{let a=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[a]=o}}}),K.freezeMethods(Qt);function Md(t,e){const a=this||Qo,o=e||a,s=Qt.from(o.headers);let i=o.data;return K.forEach(t,function(r){i=r.call(a,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function jg(t){return!!(t&&t.__CANCEL__)}function mo(t,e,a){Fe.call(this,t??"canceled",Fe.ERR_CANCELED,e,a),this.name="CanceledError"}K.inherits(mo,Fe,{__CANCEL__:!0});function qg(t,e,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):e(new Fe("Request failed with status code "+a.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function wM(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function kM(t,e){t=t||10;const a=new Array(t),o=new Array(t);let s=0,i=0,r;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),c=o[i];r||(r=d),a[s]=l,o[s]=d;let u=i,m=0;for(;u!==s;)m+=a[u++],u=u%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),d-r<e)return;const f=c&&d-c;return f?Math.round(m*1e3/f):void 0}}function CM(t,e){let a=0,o=1e3/e,s,i;const r=(l,d=Date.now())=>{a=d,s=null,i&&(clearTimeout(i),i=null),t.apply(null,l)};return[(...l)=>{const d=Date.now(),c=d-a;c>=o?r(l,d):(s=l,i||(i=setTimeout(()=>{i=null,r(s)},o-c)))},()=>s&&r(s)]}const tr=(t,e,a=3)=>{let o=0;const s=kM(50,250);return CM(i=>{const r=i.loaded,l=i.lengthComputable?i.total:void 0,d=r-o,c=s(d),u=r<=l;o=r;const m={loaded:r,total:l,progress:l?r/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-r)/c:void 0,event:i,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(m)},a)},Gg=(t,e)=>{const a=t!=null;return[o=>e[0]({lengthComputable:a,total:t,loaded:o}),e[1]]},Kg=t=>(...e)=>K.asap(()=>t(...e)),_M=jt.hasStandardBrowserEnv?((t,e)=>a=>(a=new URL(a,jt.origin),t.protocol===a.protocol&&t.host===a.host&&(e||t.port===a.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,EM=jt.hasStandardBrowserEnv?{write(t,e,a,o,s,i){const r=[t+"="+encodeURIComponent(e)];K.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),K.isString(o)&&r.push("path="+o),K.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function TM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function xM(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wg(t,e){return t&&!TM(e)?xM(t,e):e}const $g=t=>t instanceof Qt?{...t}:t;function vn(t,e){e=e||{};const a={};function o(c,u,m,f){return K.isPlainObject(c)&&K.isPlainObject(u)?K.merge.call({caseless:f},c,u):K.isPlainObject(u)?K.merge({},u):K.isArray(u)?u.slice():u}function s(c,u,m,f){if(K.isUndefined(u)){if(!K.isUndefined(c))return o(void 0,c,m,f)}else return o(c,u,m,f)}function i(c,u){if(!K.isUndefined(u))return o(void 0,u)}function r(c,u){if(K.isUndefined(u)){if(!K.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function l(c,u,m){if(m in e)return o(c,u);if(m in t)return o(void 0,c)}const d={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,u,m)=>s($g(c),$g(u),m,!0)};return K.forEach(Object.keys(Object.assign({},t,e)),function(c){const u=d[c]||s,m=u(t[c],e[c],c);K.isUndefined(m)&&u!==l||(a[c]=m)}),a}const Hg=t=>{const e=vn({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:r,auth:l}=e;e.headers=r=Qt.from(r),e.url=Pg(Wg(e.baseURL,e.url),t.params,t.paramsSerializer),l&&r.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(K.isFormData(a)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((d=r.getContentType())!==!1){const[c,...u]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];r.setContentType([c||"multipart/form-data",...u].join("; "))}}if(jt.hasStandardBrowserEnv&&(o&&K.isFunction(o)&&(o=o(e)),o||o!==!1&&_M(e.url))){const c=s&&i&&EM.read(i);c&&r.set(s,c)}return e},LM=typeof XMLHttpRequest<"u",NM=LM&&function(t){return new Promise(function(e,a){const o=Hg(t);let s=o.data;const i=Qt.from(o.headers).normalize();let{responseType:r,onUploadProgress:l,onDownloadProgress:d}=o,c,u,m,f,g;function h(){f&&f(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function y(){if(!p)return;const S=Qt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:t,request:p};qg(function(C){e(C),h()},function(C){a(C),h()},w),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(a(new Fe("Request aborted",Fe.ECONNABORTED,t,p)),p=null)},p.onerror=function(){a(new Fe("Network Error",Fe.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ug;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),a(new Fe(S,w.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,t,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&K.forEach(i.toJSON(),function(S,w){p.setRequestHeader(w,S)}),K.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),r&&r!=="json"&&(p.responseType=o.responseType),d&&([m,g]=tr(d,!0),p.addEventListener("progress",m)),l&&p.upload&&([u,f]=tr(l),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(c=S=>{p&&(a(!S||S.type?new mo(null,t,p):S),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const b=wM(o.url);if(b&&jt.protocols.indexOf(b)===-1){a(new Fe("Unsupported protocol "+b+":",Fe.ERR_BAD_REQUEST,t));return}p.send(s||null)})},VM=(t,e)=>{const{length:a}=t=t?t.filter(Boolean):[];if(e||a){let o=new AbortController,s;const i=function(c){if(!s){s=!0,l();const u=c instanceof Error?c:this.reason;o.abort(u instanceof Fe?u:new mo(u instanceof Error?u.message:u))}};let r=e&&setTimeout(()=>{r=null,i(new Fe(`timeout ${e} of ms exceeded`,Fe.ETIMEDOUT))},e);const l=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>K.asap(l),d}},OM=function*(t,e){let a=t.byteLength;if(a<e){yield t;return}let o=0,s;for(;o<a;)s=o+e,yield t.slice(o,s),o=s},RM=async function*(t,e){for await(const a of AM(t))yield*OM(a,e)},AM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:a,value:o}=await e.read();if(a)break;yield o}}finally{await e.cancel()}},Jg=(t,e,a,o)=>{const s=RM(t,e);let i=0,r,l=d=>{r||(r=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await s.next();if(c){l(),d.close();return}let m=u.byteLength;if(a){let f=i+=m;a(f)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),s.return()}},{highWaterMark:2})},ar=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xg=ar&&typeof ReadableStream=="function",BM=ar&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Zg=(t,...e)=>{try{return!!t(...e)}catch{return!1}},FM=Xg&&Zg(()=>{let t=!1;const e=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Yg=64*1024,Ud=Xg&&Zg(()=>K.isReadableStream(new Response("").body)),nr={stream:Ud&&(t=>t.body)};ar&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!nr[e]&&(nr[e]=K.isFunction(t[e])?a=>a[e]():(a,o)=>{throw new Fe(`Response type '${e}' is not supported`,Fe.ERR_NOT_SUPPORT,o)})})})(new Response);const vM=async t=>{if(t==null)return 0;if(K.isBlob(t))return t.size;if(K.isSpecCompliantForm(t))return(await new Request(jt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(K.isArrayBufferView(t)||K.isArrayBuffer(t))return t.byteLength;if(K.isURLSearchParams(t)&&(t=t+""),K.isString(t))return(await BM(t)).byteLength},IM=async(t,e)=>K.toFiniteNumber(t.getContentLength())??vM(e),PM=ar&&(async t=>{let{url:e,method:a,data:o,signal:s,cancelToken:i,timeout:r,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:m="same-origin",fetchOptions:f}=Hg(t);c=c?(c+"").toLowerCase():"text";let g=VM([s,i&&i.toAbortSignal()],r),h;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(d&&FM&&a!=="get"&&a!=="head"&&(y=await IM(u,o))!==0){let _=new Request(e,{method:"POST",body:o,duplex:"half"}),x;if(K.isFormData(o)&&(x=_.headers.get("content-type"))&&u.setContentType(x),_.body){const[E,V]=Gg(y,tr(Kg(d)));o=Jg(_.body,Yg,E,V)}}K.isString(m)||(m=m?"include":"omit");const b="credentials"in Request.prototype;h=new Request(e,{...f,signal:g,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:b?m:void 0});let S=await fetch(h);const w=Ud&&(c==="stream"||c==="response");if(Ud&&(l||w&&p)){const _={};["status","statusText","headers"].forEach(O=>{_[O]=S[O]});const x=K.toFiniteNumber(S.headers.get("content-length")),[E,V]=l&&Gg(x,tr(Kg(l),!0))||[];S=new Response(Jg(S.body,Yg,E,()=>{V&&V(),p&&p()}),_)}c=c||"text";let C=await nr[K.findKey(nr,c)||"text"](S,t);return!w&&p&&p(),await new Promise((_,x)=>{qg(_,x,{data:C,headers:Qt.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:h})})}catch(b){throw p&&p(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,t,h),{cause:b.cause||b}):Fe.from(b,b&&b.code,t,h)}}),Dd={http:YP,xhr:NM,fetch:PM};K.forEach(Dd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Qg=t=>`- ${t}`,MM=t=>K.isFunction(t)||t===null||t===!1,e2={getAdapter:t=>{t=K.isArray(t)?t:[t];const{length:e}=t;let a,o;const s={};for(let i=0;i<e;i++){a=t[i];let r;if(o=a,!MM(a)&&(o=Dd[(r=String(a)).toLowerCase()],o===void 0))throw new Fe(`Unknown adapter '${r}'`);if(o)break;s[r||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=e?i.length>1?`since :
50
50
  `+i.map(Qg).join(`
51
51
  `):" "+Qg(i[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o},adapters:Dd};function zd(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new mo(null,t)}function t2(t){return zd(t),t.headers=Qt.from(t.headers),t.data=Md.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),e2.getAdapter(t.adapter||Qo.adapter)(t).then(function(e){return zd(t),e.data=Md.call(t,t.transformResponse,e),e.headers=Qt.from(e.headers),e},function(e){return jg(e)||(zd(t),e&&e.response&&(e.response.data=Md.call(t,t.transformResponse,e.response),e.response.headers=Qt.from(e.response.headers))),Promise.reject(e)})}const a2="1.7.9",or={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{or[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});const n2={};or.transitional=function(t,e,a){function o(s,i){return"[Axios v"+a2+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,r)=>{if(t===!1)throw new Fe(o(i," has been removed"+(e?" in "+e:"")),Fe.ERR_DEPRECATED);return e&&!n2[i]&&(n2[i]=!0,console.warn(o(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,i,r):!0}},or.spelling=function(t){return(e,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function UM(t,e,a){if(typeof t!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const i=o[s],r=e[i];if(r){const l=t[i],d=l===void 0||r(l,i,t);if(d!==!0)throw new Fe("option "+i+" must be "+d,Fe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Fe("Unknown option "+i,Fe.ERR_BAD_OPTION)}}const sr={assertOptions:UM,validators:or},ja=sr.validators;let In=class{constructor(e){this.defaults=e,this.interceptors={request:new Mg,response:new Mg}}async request(e,a){try{return await this._request(e,a)}catch(o){if(o instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
52
- `+i):o.stack=i}catch{}}throw o}}_request(e,a){typeof e=="string"?(a=a||{},a.url=e):a=e||{},a=vn(this.defaults,a);const{transitional:o,paramsSerializer:s,headers:i}=a;o!==void 0&&sr.assertOptions(o,{silentJSONParsing:ja.transitional(ja.boolean),forcedJSONParsing:ja.transitional(ja.boolean),clarifyTimeoutError:ja.transitional(ja.boolean)},!1),s!=null&&(K.isFunction(s)?a.paramsSerializer={serialize:s}:sr.assertOptions(s,{encode:ja.function,serialize:ja.function},!0)),sr.assertOptions(a,{baseUrl:ja.spelling("baseURL"),withXsrfToken:ja.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let r=i&&K.merge(i.common,i[a.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),a.headers=Qt.concat(r,i);const l=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(d=d&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,m=0,f;if(!d){const h=[t2.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,u=Promise.resolve(a);m<f;)u=u.then(h[m++],h[m++]);return u}f=l.length;let g=a;for(m=0;m<f;){const h=l[m++],p=l[m++];try{g=h(g)}catch(y){p.call(this,y);break}}try{u=t2.call(this,g)}catch(h){return Promise.reject(h)}for(m=0,f=c.length;m<f;)u=u.then(c[m++],c[m++]);return u}getUri(e){e=vn(this.defaults,e);const a=Wg(e.baseURL,e.url);return Pg(a,e.params,e.paramsSerializer)}};K.forEach(["delete","get","head","options"],function(t){In.prototype[t]=function(e,a){return this.request(vn(a||{},{method:t,url:e,data:(a||{}).data}))}}),K.forEach(["post","put","patch"],function(t){function e(a){return function(o,s,i){return this.request(vn(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}In.prototype[t]=e(),In.prototype[t+"Form"]=e(!0)});class jd{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},e(function(s,i,r){o.reason||(o.reason=new mo(s,i,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const a=this._listeners.indexOf(e);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const e=new AbortController,a=o=>{e.abort(o)};return this.subscribe(a),e.signal.unsubscribe=()=>this.unsubscribe(a),e.signal}static source(){let e;return{token:new jd(function(a){e=a}),cancel:e}}}function DM(t){return function(e){return t.apply(null,e)}}function zM(t){return K.isObject(t)&&t.isAxiosError===!0}const qd={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(qd).forEach(([t,e])=>{qd[e]=t});function o2(t){const e=new In(t),a=kg(In.prototype.request,e);return K.extend(a,In.prototype,e,{allOwnKeys:!0}),K.extend(a,e,null,{allOwnKeys:!0}),a.create=function(o){return o2(vn(t,o))},a}const pt=o2(Qo);pt.Axios=In,pt.CanceledError=mo,pt.CancelToken=jd,pt.isCancel=jg,pt.VERSION=a2,pt.toFormData=Qi,pt.AxiosError=Fe,pt.Cancel=pt.CanceledError,pt.all=function(t){return Promise.all(t)},pt.spread=DM,pt.isAxiosError=zM,pt.mergeConfig=vn,pt.AxiosHeaders=Qt,pt.formToJSON=t=>Dg(K.isHTMLForm(t)?new FormData(t):t),pt.getAdapter=e2.getAdapter,pt.HttpStatusCode=qd,pt.default=pt;const jM=(t,e)=>{const a=t.__vccOpts||t;for(const[o,s]of e)a[o]=s;return a},qM={name:"WidgetAzteca2",components:{GSCProminentData:tA,GSCGameSelect:BF,GSCGameDisplay:mP},props:{tokenFree:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},tournamentId:{type:Number,default:1},isPublic:{type:Boolean,default:!1},seasonsIds:{type:Array,default:()=>[1933]}},data(){return{containerWidth:0,baseLogoWidth:330,baseTitleSize:56,mobileTitleSize:43,smallMobileTitleSize:38,mobileLogoSize:240,smallMobileLogoSize:200,seasonsIdsSet:new Set(this.seasonsIds),currentGame:null,currentTournament:null,tournamentsFromMediaPlayer:new Map,modalInitialData:null,mediaPlayerKey:0,gamesIdsCanPlayVR:new Set,windowWidth:window.innerWidth}},computed:{carouselItemsToShow(){return this.containerWidth<=680?1.2:1.8},formattedGame(){let t={};return this.currentGame&&this.currentGame.game_id&&(t={gameId:this.currentGame.game_id,id:this.currentGame.game_id,seasonId:this.currentGame.season_id,regularSeasonId:this.currentGame.regularSeasonId,matchday_name:this.currentGame.matchday_name,status:this.currentGame.game_status,score:this.currentGame.score,game_status:this.currentGame.game_status,dateTimeUTC:this.currentGame.date_time_utc,homeTeam:this.currentGame.home_team,awayTeam:this.currentGame.visiting_team,is_live:this.currentGame.is_live,minutes:this.currentGame.minutes}),t},scale(){return Math.min(this.containerWidth/1400,1)},headerLeftStyles(){return{gap:`${this.scale*2}rem`}},logoStyles(){return this.containerWidth<=414?{width:`${this.smallMobileLogoSize}px`}:this.containerWidth<=680?{width:`${this.mobileLogoSize}px`}:{width:`${this.baseLogoWidth*this.scale}px`}},titleStyles(){return this.containerWidth<=414?{fontSize:`${this.smallMobileTitleSize}px`}:this.containerWidth<=680?{fontSize:`${this.mobileTitleSize}px`}:{fontSize:`${this.baseTitleSize*this.scale}px`}},lineStyles(){return{marginLeft:`${this.scale*2}rem`}}},mounted(){this.initializeResizeObserver(),this.updateContainerWidth(),window.addEventListener("resize",this.onWindowResize)},methods:{async fetchUserPrivileges(t){try{return(await pt.get(`https://0zw3zj8g4a.execute-api.us-east-2.amazonaws.com/prod/privileges/clients/11?season=${t}`)).data||{}}catch(e){console.error("Error al obtener los privilegios del usuario",e)}},async fillUserPrivileges(t){try{const e=t.seasons.find(o=>this.seasonsIdsSet.has(o.id)),a=await this.fetchUserPrivileges(e.id);this.gamesIdsCanPlayVR.clear(),a&&a.games_with_rights&&a.games_with_rights.forEach(o=>{this.gamesIdsCanPlayVR.add(o.game_id)})}catch(e){console.error("Error al obtener los privilegios del usuario",e)}},onChangeTournament(t){this.tournamentsFromMediaPlayer.clear(),this.currentTournament=t,t.seasons.forEach(e=>{this.tournamentsFromMediaPlayer.set(e.id,t)})},onChangeGame(t){this.currentGame=t,this.isPublic?this.currentGame.canPlayVideos=!0:this.currentGame.canPlayVideos=!1,this.modalInitialData={seasonId:t.season_id,mainSectionType:1,playListType:1,categoryIds:[607,608,12,55,54,35,14,52,15,53,466,477],gameIdsToFilter:[t.game_id],playerIds:[],goalkeeperIds:[],teamId:0,matchResult:[1,2,3],advancedFilter:{playListTitle:""},gameSeasonId:t.season_id,gameRegularSeasonId:t.season_id,isCarouselMaxIconVisible:!0},(this.currentGame.is_live||this.currentGame.game_status===0)&&(this.modalInitialData.liveGameConfig={gameId:this.currentGame.game_id}),this.mediaPlayerKey+=1},initializeResizeObserver(){new ResizeObserver(t=>{for(const e of t)this.containerWidth=e.contentRect.width}).observe(this.$refs.headerContainer)},updateContainerWidth(){this.$refs.headerContainer&&(this.containerWidth=this.$refs.headerContainer.offsetWidth)},onWindowResize(){this.windowWidth=window.innerWidth},onOpenMedia(t){const e={...t,gameSeasonId:this.currentGame.season_id,gameRegularSeasonId:this.currentGame.regularSeasonId};(this.currentGame.is_live||this.currentGame.game_status===0)&&(e.liveGameConfig={gameId:this.currentGame.game_id}),this.$emit("openmedia",e)}}},GM={class:"widget-container",ref:"headerContainer"},KM={class:"analysis-section"},WM={class:"left-box"},$M={class:"right-box"};function HM(t,e,a,o,s,i){const r=n.resolveComponent("GSCGameSelect"),l=n.resolveComponent("GSCGameDisplay"),d=n.resolveComponent("GSCProminentData");return n.openBlock(),n.createElementBlock("div",GM,[n.createElementVNode("section",KM,[n.createElementVNode("div",{class:n.normalizeClass(["game-select",{"small-mobile":s.containerWidth<=414}])},[n.createVNode(r,{"tournament-id":a.tournamentId,"season-ids":a.seasonsIds,tvazteca:!1,shieldcolor:"#172531","show-tournament":!1,"privileges-user-id":11,onChangeGame:i.onChangeGame,onChangeTournament:i.onChangeTournament},null,8,["tournament-id","season-ids","onChangeGame","onChangeTournament"])],2),n.createElementVNode("div",{class:n.normalizeClass(["full-width-container",{mobile:s.containerWidth<=680}])},[n.createElementVNode("div",WM,[s.currentGame&&s.currentTournament?(n.openBlock(),n.createBlock(l,{key:0,width:"100%",game:s.currentGame,"is-tournament-captured":s.currentTournament.is_captured},null,8,["game","is-tournament-captured"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",$M,[s.currentGame?(n.openBlock(),n.createBlock(d,{style:{"margin-top":"-9px"},"is-widget":!1,"team-widget":0,"arrows-container-bgL":"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)","arrows-container-bgR":"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",key:s.currentGame.game_id,"time-live-prominent-data":t.timeLiveProminentData,game:i.formattedGame,"can-play-videos":s.currentGame.canPlayVideos,onOpenmedia:i.onOpenMedia,onLoading:t.onDataProminentGameLoading},null,8,["time-live-prominent-data","game","can-play-videos","onOpenmedia","onLoading"])):n.createCommentVNode("",!0)])],2)])],512)}const JM=jM(qM,[["render",HM],["__scopeId","data-v-65c5faf9"]]);function XM(t){const e=n.ref({width:0,height:0});function a(){const o=t.value.getBoundingClientRect();e.value.width=o.width,e.value.height=o.height}return n.onMounted(()=>{a(),window.addEventListener("resize",a)}),n.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:e}}const Gd={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},marginToggle:{type:String,default:"10px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(e){throw new Error(e)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},s2=()=>{n.useCssVars(t=>({"646f7da4":t.marginToggle,ef5d666e:t.backgroundColor,"7a065a2a":t.widthCircle,"1c800f63":t.heightCircle}))},i2=Gd.setup;Gd.setup=i2?(t,e)=>(s2(),i2(t,e)):s2;const ZM={key:0,class:"text-left"},YM=["width","src"],QM=["checked"],eU=["width","src"],tU={key:3,class:"text-right"};function aU(t,e,a,o,s,i){return n.openBlock(),n.createElementBlock("div",{class:"gsc-switch-radio",style:n.normalizeStyle(i.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",ZM,n.toDisplayString(a.textOptionLeft),1)):n.createCommentVNode("",!0),a.iconA!=""?(n.openBlock(),n.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,YM)):n.createCommentVNode("",!0),n.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:e[0]||(e[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,QM),n.createElementVNode("label",{for:"toggle-btn",style:n.normalizeStyle([i.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(n.openBlock(),n.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,eU)):n.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",tU,n.toDisplayString(a.textOptionRight),1)):n.createCommentVNode("",!0)],4)}const Kd={components:{GSCSlider:Yn,GscSwitchComponent:Xs,GSCButton:Zf,GSCRadioToggle:dt(Gd,[["render",aU],["__scopeId","data-v-d2ef7927"]]),GSCDataiagames:JM,GSCDataCard:eO},setup(){const t=n.ref("myDivRef"),{elementSize:e}=XM(t);return{myDivRef:t,elementSize:e}},props:{backgroundColor:{type:String,default:"#0D1D29"},tournamentSelected:{type:Object,default:()=>({id:0})},user:{type:Object,default:()=>({})},showSwitch:{type:Boolean,default:!0},showVideos:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},showSelect:{type:Boolean,default:!0},league:{type:Number,default:0},isgeneric:{type:Boolean,default:!0},showMore:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},isplayer:{type:Boolean,default:!0},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0},playerId:{type:Number,default:0}},watch:{tournamentSelected:{handler(t){console.log("Torneo seleccionado cambió:",t)},deep:!0},season:{async handler(t){console.log("Temporada cambió:",t),this.optionSelected==="Generales"?await this.fetchGeneralsData():this.optionSelected==="Mi Equipo"&&await this.fetchTeamData()}},optionSelected:{async handler(t){console.log(t),t==="Generales"?await this.fetchGeneralsData():t==="Mi Equipo"?await this.fetchTeamData():t==="Mis Datos"&&await this.fetchPlayerData()},immediate:!0}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",showTops:!0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoryData:[],categorySelected:null,filterSelected:1,keyUpdateSwitch:0,isTeam:!1,categoryName:"Goles",optionSelected:"Generales",generalsData:[],teamData:[],playerData:[],showType:"Relevantes",loading:!1}),async created(){this.optionSelected==="Generales"&&await this.fetchGeneralsData()},computed:{},methods:{onOpenMedia(t){this.data.seasonId=this.season,this.$emit("openmedia",t)},clickMore(){this.$emit("more")},changeType(t){this.optionSelected=t},async fetchGeneralsData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/seasons/${this.season}/generals`,{headers:{Authorization:this.token}});this.generalsData=t.data.generals.sort(()=>Math.random()-.5)}catch(t){console.error("Error al obtener datos generales:",t)}finally{this.loading=!1}},async fetchTeamData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.season}/teams/${this.teamId}`,{headers:{Authorization:this.token}});console.log("Datos del equipo:",t.data.teams),this.generalsData=t.data.teams}catch(t){console.error("Error al obtener datos del equipo:",t)}finally{this.loading=!1}},async fetchPlayerData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.season}/teams/${this.teamId}/players/${this.playerId}`,{headers:{Authorization:this.token}});console.log("Datos del jugador:",t.data),this.generalsData=t.data.players[this.playerId]}catch(t){console.error("Error al obtener datos del jugador:",t)}finally{this.loading=!1}},ChangeRadio(t){typeof t=="string"&&(this.showType=t,t==="Relevantes"&&(this.optionSelected="Generales"),this.$nextTick(()=>{this.showType==="Relevantes"&&this.fetchGeneralsData()}))}}},r2=()=>{n.useCssVars(t=>({"5ce1de02":t.backgroundColor,b00f5fae:t.fontFamily,"21b37bf4":t.fontSize,"1679e404":t.fontColor,d93d6c24:t.marginMosaic}))},l2=Kd.setup;Kd.setup=l2?(t,e)=>(r2(),l2(t,e)):r2;const c2=t=>(n.pushScopeId("data-v-b3733d57"),t=t(),n.popScopeId(),t),nU={class:"gsc-best__line-bar-tools"},oU={key:0,class:"gsc-best__line-bar-tools__title"},sU=c2(()=>n.createElementVNode("span",null,"Datos Inteligencia Artificial ",-1)),iU={class:"unit-items"},rU={key:2,class:"gsc-best__line-bar-tools__tools"},lU={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},cU={key:1,class:"gsc-best__line-bar-tools__tools__btn"},dU={key:0,class:"gsc-best__line-bar-tools-movil"},uU={class:"gsc-best__line-bar-tools-movil__tabs"},mU=[c2(()=>n.createElementVNode("div",{class:"loading-overlay"},[n.createElementVNode("div",{class:"loading-animation"})],-1))],hU={style:{"margin-top":"50px"}};function pU(t,e,a,o,s,i){const r=n.resolveComponent("GSCRadioToggle"),l=n.resolveComponent("GSCButton"),d=n.resolveComponent("GscSwitchComponent"),c=n.resolveComponent("GSCDataCard"),u=n.resolveComponent("GSCSlider"),m=n.resolveComponent("GSCDataiagames");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["gsc-best",{"gsc-best--games":t.showType==="Partidos"}]),ref:"myDivRef"},[n.createElementVNode("div",nU,[o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",oU,[sU,n.createVNode(r,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Relevantes",textOptionLeft:"Relevantes",textOptionRight:"Partidos",onChange:i.ChangeRadio},null,8,["onChange"])])):n.createCommentVNode("",!0),o.elementSize.width<=900?(n.openBlock(),n.createElementBlock("div",{key:1,class:"gsc-best__line-bar-tools__titlefull",style:n.normalizeStyle(o.elementSize.width<=480?"gap: 10px !important;":"gap: 50px !important;")},[n.createElementVNode("span",{style:n.normalizeStyle(o.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Datos IA ",4),n.createElementVNode("span",iU,[n.createVNode(r,{height:"20px",width:o.elementSize.width<=390?"39px":"41px","background-color":"none","width-circle":"15px","height-circle":"15px","margin-toggle":o.elementSize.width<=390?"0px":"10px","font-size":o.elementSize.width<=480?o.elementSize.width<=390?"10px":"12px":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Relevantes",textOptionLeft:"Relevantes",textOptionRight:"Partidos",onChange:i.ChangeRadio},null,8,["width","margin-toggle","font-size","onChange"]),o.elementSize.width<=900?(n.openBlock(),n.createBlock(l,{key:0,style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":o.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":o.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0),o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",rU,[o.elementSize.width>900&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",lU,[a.showSelect?(n.openBlock(),n.createBlock(d,{key:0,arrow:!1,type:1,buttons:a.isplayer?["Generales","Mis Datos","Mi Equipo"]:["Generales","Mi Equipo"],"selected-option":t.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["buttons","selected-option","onInput"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),a.showMore?(n.openBlock(),n.createElementBlock("div",cU,[n.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),n.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),o.elementSize.width<=900&&a.showSelect&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",dU,[n.createElementVNode("div",uU,[a.showSelect?(n.openBlock(),n.createBlock(d,{key:0,arrow:!1,type:1,buttons:a.isplayer?["Generales","Mis Datos","Mi Equipo"]:["Generales","Mi Equipo"],"selected-option":t.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType},null,8,["buttons","selected-option","onInput"])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",{class:"gsc-best__players",key:"slider-"+t.showType},[(n.openBlock(),n.createBlock(u,{key:t.optionSelected,height:510,"px-scroll":339,scrollColor:"none","background-color":a.backgroundColor,arrowsPosition:"absolute",arrowsScrollHide:!0,disabled:t.loading,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",arrows:!t.loading},{default:n.withCtx(()=>[t.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},n.renderList(4,f=>n.createElementVNode("div",{key:"skeleton-"+f,class:n.normalizeClass(["skeleton-card data-card",{"first-card":f===1,"skeleton-card--generals":t.optionSelected==="Generales","skeleton-card--other":t.optionSelected!=="Generales"}])},mU,2)),64)):t.generalsData?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(t.generalsData,(f,g)=>(n.openBlock(),n.createBlock(c,{key:g,data:f,"user-id":a.user,"player-id":a.playerId,"show-videos":a.showVideos,class:n.normalizeClass([{"first-card":g===0,"generals-view":t.optionSelected==="Generales"},"data-card"]),onOpenMedia:i.onOpenMedia},null,8,["data","user-id","player-id","show-videos","class","onOpenMedia"]))),128)):n.createCommentVNode("",!0)]),_:1},8,["background-color","disabled","arrows"]))])):(n.openBlock(),n.createElementBlock("div",{key:"games-"+t.showType},[n.createElementVNode("div",hU,[n.createVNode(m,{onOpenmedia:i.onOpenMedia,"is-public":a.showVideos,"tournament-id":t.tournamentId,"seasons-ids":[a.season]},null,8,["onOpenmedia","is-public","tournament-id","seasons-ids"])])]))],2)}const fU=dt(Kd,[["render",pU],["__scopeId","data-v-b3733d57"]]);/**
52
+ `+i):o.stack=i}catch{}}throw o}}_request(e,a){typeof e=="string"?(a=a||{},a.url=e):a=e||{},a=vn(this.defaults,a);const{transitional:o,paramsSerializer:s,headers:i}=a;o!==void 0&&sr.assertOptions(o,{silentJSONParsing:ja.transitional(ja.boolean),forcedJSONParsing:ja.transitional(ja.boolean),clarifyTimeoutError:ja.transitional(ja.boolean)},!1),s!=null&&(K.isFunction(s)?a.paramsSerializer={serialize:s}:sr.assertOptions(s,{encode:ja.function,serialize:ja.function},!0)),sr.assertOptions(a,{baseUrl:ja.spelling("baseURL"),withXsrfToken:ja.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let r=i&&K.merge(i.common,i[a.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),a.headers=Qt.concat(r,i);const l=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(d=d&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,m=0,f;if(!d){const h=[t2.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,u=Promise.resolve(a);m<f;)u=u.then(h[m++],h[m++]);return u}f=l.length;let g=a;for(m=0;m<f;){const h=l[m++],p=l[m++];try{g=h(g)}catch(y){p.call(this,y);break}}try{u=t2.call(this,g)}catch(h){return Promise.reject(h)}for(m=0,f=c.length;m<f;)u=u.then(c[m++],c[m++]);return u}getUri(e){e=vn(this.defaults,e);const a=Wg(e.baseURL,e.url);return Pg(a,e.params,e.paramsSerializer)}};K.forEach(["delete","get","head","options"],function(t){In.prototype[t]=function(e,a){return this.request(vn(a||{},{method:t,url:e,data:(a||{}).data}))}}),K.forEach(["post","put","patch"],function(t){function e(a){return function(o,s,i){return this.request(vn(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}In.prototype[t]=e(),In.prototype[t+"Form"]=e(!0)});class jd{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},e(function(s,i,r){o.reason||(o.reason=new mo(s,i,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const a=this._listeners.indexOf(e);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const e=new AbortController,a=o=>{e.abort(o)};return this.subscribe(a),e.signal.unsubscribe=()=>this.unsubscribe(a),e.signal}static source(){let e;return{token:new jd(function(a){e=a}),cancel:e}}}function DM(t){return function(e){return t.apply(null,e)}}function zM(t){return K.isObject(t)&&t.isAxiosError===!0}const qd={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(qd).forEach(([t,e])=>{qd[e]=t});function o2(t){const e=new In(t),a=kg(In.prototype.request,e);return K.extend(a,In.prototype,e,{allOwnKeys:!0}),K.extend(a,e,null,{allOwnKeys:!0}),a.create=function(o){return o2(vn(t,o))},a}const pt=o2(Qo);pt.Axios=In,pt.CanceledError=mo,pt.CancelToken=jd,pt.isCancel=jg,pt.VERSION=a2,pt.toFormData=Qi,pt.AxiosError=Fe,pt.Cancel=pt.CanceledError,pt.all=function(t){return Promise.all(t)},pt.spread=DM,pt.isAxiosError=zM,pt.mergeConfig=vn,pt.AxiosHeaders=Qt,pt.formToJSON=t=>Dg(K.isHTMLForm(t)?new FormData(t):t),pt.getAdapter=e2.getAdapter,pt.HttpStatusCode=qd,pt.default=pt;const jM=(t,e)=>{const a=t.__vccOpts||t;for(const[o,s]of e)a[o]=s;return a},qM={name:"WidgetAzteca2",components:{GSCProminentData:tA,GSCGameSelect:BF,GSCGameDisplay:mP},props:{tokenFree:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},tournamentId:{type:Number,default:1},isPublic:{type:Boolean,default:!1},seasonsIds:{type:Array,default:()=>[1933]}},data(){return{containerWidth:0,baseLogoWidth:330,baseTitleSize:56,mobileTitleSize:43,smallMobileTitleSize:38,mobileLogoSize:240,smallMobileLogoSize:200,seasonsIdsSet:new Set(this.seasonsIds),currentGame:null,currentTournament:null,tournamentsFromMediaPlayer:new Map,modalInitialData:null,mediaPlayerKey:0,gamesIdsCanPlayVR:new Set,windowWidth:window.innerWidth}},computed:{carouselItemsToShow(){return this.containerWidth<=680?1.2:1.8},formattedGame(){let t={};return this.currentGame&&this.currentGame.game_id&&(t={gameId:this.currentGame.game_id,id:this.currentGame.game_id,seasonId:this.currentGame.season_id,regularSeasonId:this.currentGame.regularSeasonId,matchday_name:this.currentGame.matchday_name,status:this.currentGame.game_status,score:this.currentGame.score,game_status:this.currentGame.game_status,dateTimeUTC:this.currentGame.date_time_utc,homeTeam:this.currentGame.home_team,awayTeam:this.currentGame.visiting_team,is_live:this.currentGame.is_live,minutes:this.currentGame.minutes}),t},scale(){return Math.min(this.containerWidth/1400,1)},headerLeftStyles(){return{gap:`${this.scale*2}rem`}},logoStyles(){return this.containerWidth<=414?{width:`${this.smallMobileLogoSize}px`}:this.containerWidth<=680?{width:`${this.mobileLogoSize}px`}:{width:`${this.baseLogoWidth*this.scale}px`}},titleStyles(){return this.containerWidth<=414?{fontSize:`${this.smallMobileTitleSize}px`}:this.containerWidth<=680?{fontSize:`${this.mobileTitleSize}px`}:{fontSize:`${this.baseTitleSize*this.scale}px`}},lineStyles(){return{marginLeft:`${this.scale*2}rem`}}},mounted(){this.initializeResizeObserver(),this.updateContainerWidth(),window.addEventListener("resize",this.onWindowResize)},methods:{async fetchUserPrivileges(t){try{return(await pt.get(`https://0zw3zj8g4a.execute-api.us-east-2.amazonaws.com/prod/privileges/clients/11?season=${t}`)).data||{}}catch(e){console.error("Error al obtener los privilegios del usuario",e)}},async fillUserPrivileges(t){try{const e=t.seasons.find(o=>this.seasonsIdsSet.has(o.id)),a=await this.fetchUserPrivileges(e.id);this.gamesIdsCanPlayVR.clear(),a&&a.games_with_rights&&a.games_with_rights.forEach(o=>{this.gamesIdsCanPlayVR.add(o.game_id)})}catch(e){console.error("Error al obtener los privilegios del usuario",e)}},onChangeTournament(t){this.tournamentsFromMediaPlayer.clear(),this.currentTournament=t,t.seasons.forEach(e=>{this.tournamentsFromMediaPlayer.set(e.id,t)})},onChangeGame(t){this.currentGame=t,this.isPublic?this.currentGame.canPlayVideos=!0:this.currentGame.canPlayVideos=!1,this.modalInitialData={seasonId:t.season_id,mainSectionType:1,playListType:1,categoryIds:[607,608,12,55,54,35,14,52,15,53,466,477],gameIdsToFilter:[t.game_id],playerIds:[],goalkeeperIds:[],teamId:0,matchResult:[1,2,3],advancedFilter:{playListTitle:""},gameSeasonId:t.season_id,gameRegularSeasonId:t.season_id,isCarouselMaxIconVisible:!0},(this.currentGame.is_live||this.currentGame.game_status===0)&&(this.modalInitialData.liveGameConfig={gameId:this.currentGame.game_id}),this.mediaPlayerKey+=1},initializeResizeObserver(){new ResizeObserver(t=>{for(const e of t)this.containerWidth=e.contentRect.width}).observe(this.$refs.headerContainer)},updateContainerWidth(){this.$refs.headerContainer&&(this.containerWidth=this.$refs.headerContainer.offsetWidth)},onWindowResize(){this.windowWidth=window.innerWidth},onOpenMedia(t){const e={...t,gameSeasonId:this.currentGame.season_id,gameRegularSeasonId:this.currentGame.regularSeasonId};(this.currentGame.is_live||this.currentGame.game_status===0)&&(e.liveGameConfig={gameId:this.currentGame.game_id}),this.$emit("openmedia",e)}}},GM={class:"widget-container",ref:"headerContainer"},KM={class:"analysis-section"},WM={class:"left-box"},$M={class:"right-box"};function HM(t,e,a,o,s,i){const r=n.resolveComponent("GSCGameSelect"),l=n.resolveComponent("GSCGameDisplay"),d=n.resolveComponent("GSCProminentData");return n.openBlock(),n.createElementBlock("div",GM,[n.createElementVNode("section",KM,[n.createElementVNode("div",{class:n.normalizeClass(["game-select",{"small-mobile":s.containerWidth<=414}])},[n.createVNode(r,{"tournament-id":a.tournamentId,"season-ids":a.seasonsIds,tvazteca:!1,shieldcolor:"#172531","show-tournament":!1,"privileges-user-id":11,onChangeGame:i.onChangeGame,onChangeTournament:i.onChangeTournament},null,8,["tournament-id","season-ids","onChangeGame","onChangeTournament"])],2),n.createElementVNode("div",{class:n.normalizeClass(["full-width-container",{mobile:s.containerWidth<=680}])},[n.createElementVNode("div",WM,[s.currentGame&&s.currentTournament?(n.openBlock(),n.createBlock(l,{key:0,width:"100%",game:s.currentGame,"is-tournament-captured":s.currentTournament.is_captured},null,8,["game","is-tournament-captured"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",$M,[s.currentGame?(n.openBlock(),n.createBlock(d,{style:{"margin-top":"-9px"},"is-widget":!1,"team-widget":0,"arrows-container-bgL":"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)","arrows-container-bgR":"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",key:s.currentGame.game_id,"time-live-prominent-data":t.timeLiveProminentData,game:i.formattedGame,"can-play-videos":s.currentGame.canPlayVideos,onOpenmedia:i.onOpenMedia,onLoading:t.onDataProminentGameLoading},null,8,["time-live-prominent-data","game","can-play-videos","onOpenmedia","onLoading"])):n.createCommentVNode("",!0)])],2)])],512)}const JM=jM(qM,[["render",HM],["__scopeId","data-v-65c5faf9"]]);function XM(t){const e=n.ref({width:0,height:0});function a(){const o=t.value.getBoundingClientRect();e.value.width=o.width,e.value.height=o.height}return n.onMounted(()=>{a(),window.addEventListener("resize",a)}),n.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:e}}const Gd={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},marginToggle:{type:String,default:"10px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(e){throw new Error(e)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},s2=()=>{n.useCssVars(t=>({"646f7da4":t.marginToggle,ef5d666e:t.backgroundColor,"7a065a2a":t.widthCircle,"1c800f63":t.heightCircle}))},i2=Gd.setup;Gd.setup=i2?(t,e)=>(s2(),i2(t,e)):s2;const ZM={key:0,class:"text-left"},YM=["width","src"],QM=["checked"],eU=["width","src"],tU={key:3,class:"text-right"};function aU(t,e,a,o,s,i){return n.openBlock(),n.createElementBlock("div",{class:"gsc-switch-radio",style:n.normalizeStyle(i.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",ZM,n.toDisplayString(a.textOptionLeft),1)):n.createCommentVNode("",!0),a.iconA!=""?(n.openBlock(),n.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,YM)):n.createCommentVNode("",!0),n.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:e[0]||(e[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,QM),n.createElementVNode("label",{for:"toggle-btn",style:n.normalizeStyle([i.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(n.openBlock(),n.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,eU)):n.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",tU,n.toDisplayString(a.textOptionRight),1)):n.createCommentVNode("",!0)],4)}const Kd={components:{GSCSlider:Yn,GscSwitchComponent:Xs,GSCButton:Zf,GSCRadioToggle:dt(Gd,[["render",aU],["__scopeId","data-v-d2ef7927"]]),GSCDataiagames:JM,GSCDataCard:eO},setup(){const t=n.ref("myDivRef"),{elementSize:e}=XM(t);return{myDivRef:t,elementSize:e}},props:{backgroundColor:{type:String,default:"#0D1D29"},tournamentSelected:{type:Object,default:()=>({id:0})},user:{type:Object,default:()=>({})},showSwitch:{type:Boolean,default:!0},showVideos:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},showSelect:{type:Boolean,default:!0},league:{type:Number,default:0},isgeneric:{type:Boolean,default:!0},showMore:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},isplayer:{type:Boolean,default:!0},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0},playerId:{type:Number,default:0}},watch:{tournamentSelected:{handler(t){console.log("Torneo seleccionado cambió:",t)},deep:!0},season:{async handler(t){console.log("Temporada cambió:",t),this.optionSelected==="Generales"?await this.fetchGeneralsData():this.optionSelected==="Mi Equipo"&&await this.fetchTeamData()}},optionSelected:{async handler(t){console.log(t),t==="Generales"?await this.fetchGeneralsData():t==="Mi Equipo"?await this.fetchTeamData():t==="Mis Datos"&&await this.fetchPlayerData()},immediate:!0}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",showTops:!0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoryData:[],categorySelected:null,filterSelected:1,keyUpdateSwitch:0,isTeam:!1,categoryName:"Goles",optionSelected:"Generales",generalsData:[],teamData:[],playerData:[],showType:"Relevantes",loading:!1}),async created(){this.optionSelected==="Generales"&&await this.fetchGeneralsData()},computed:{},methods:{onOpenMedia(t){t.seasonId=this.season,this.$emit("openmedia",t)},clickMore(){this.$emit("more")},changeType(t){this.optionSelected=t},async fetchGeneralsData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/seasons/${this.season}/generals`,{headers:{Authorization:this.token}});this.generalsData=t.data.generals.sort(()=>Math.random()-.5)}catch(t){console.error("Error al obtener datos generales:",t)}finally{this.loading=!1}},async fetchTeamData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.season}/teams/${this.teamId}`,{headers:{Authorization:this.token}});console.log("Datos del equipo:",t.data.teams),this.generalsData=t.data.teams}catch(t){console.error("Error al obtener datos del equipo:",t)}finally{this.loading=!1}},async fetchPlayerData(){this.loading=!0;try{const t=await Ue.get(`https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.season}/teams/${this.teamId}/players/${this.playerId}`,{headers:{Authorization:this.token}});console.log("Datos del jugador:",t.data),this.generalsData=t.data.players[this.playerId]}catch(t){console.error("Error al obtener datos del jugador:",t)}finally{this.loading=!1}},ChangeRadio(t){typeof t=="string"&&(this.showType=t,t==="Relevantes"&&(this.optionSelected="Generales"),this.$nextTick(()=>{this.showType==="Relevantes"&&this.fetchGeneralsData()}))}}},r2=()=>{n.useCssVars(t=>({"32d22ee1":t.backgroundColor,"020e8d07":t.fontFamily,"40c21e64":t.fontSize,"52ba8540":t.fontColor,"7e487168":t.marginMosaic}))},l2=Kd.setup;Kd.setup=l2?(t,e)=>(r2(),l2(t,e)):r2;const c2=t=>(n.pushScopeId("data-v-5cb6a519"),t=t(),n.popScopeId(),t),nU={class:"gsc-best__line-bar-tools"},oU={key:0,class:"gsc-best__line-bar-tools__title"},sU=c2(()=>n.createElementVNode("span",null,"Datos Inteligencia Artificial ",-1)),iU={class:"unit-items"},rU={key:2,class:"gsc-best__line-bar-tools__tools"},lU={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},cU={key:1,class:"gsc-best__line-bar-tools__tools__btn"},dU={key:0,class:"gsc-best__line-bar-tools-movil"},uU={class:"gsc-best__line-bar-tools-movil__tabs"},mU=[c2(()=>n.createElementVNode("div",{class:"loading-overlay"},[n.createElementVNode("div",{class:"loading-animation"})],-1))],hU={style:{"margin-top":"50px"}};function pU(t,e,a,o,s,i){const r=n.resolveComponent("GSCRadioToggle"),l=n.resolveComponent("GSCButton"),d=n.resolveComponent("GscSwitchComponent"),c=n.resolveComponent("GSCDataCard"),u=n.resolveComponent("GSCSlider"),m=n.resolveComponent("GSCDataiagames");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["gsc-best",{"gsc-best--games":t.showType==="Partidos"}]),ref:"myDivRef"},[n.createElementVNode("div",nU,[o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",oU,[sU,n.createVNode(r,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Relevantes",textOptionLeft:"Relevantes",textOptionRight:"Partidos",onChange:i.ChangeRadio},null,8,["onChange"])])):n.createCommentVNode("",!0),o.elementSize.width<=900?(n.openBlock(),n.createElementBlock("div",{key:1,class:"gsc-best__line-bar-tools__titlefull",style:n.normalizeStyle(o.elementSize.width<=480?"gap: 10px !important;":"gap: 50px !important;")},[n.createElementVNode("span",{style:n.normalizeStyle(o.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Datos IA ",4),n.createElementVNode("span",iU,[n.createVNode(r,{height:"20px",width:o.elementSize.width<=390?"39px":"41px","background-color":"none","width-circle":"15px","height-circle":"15px","margin-toggle":o.elementSize.width<=390?"0px":"10px","font-size":o.elementSize.width<=480?o.elementSize.width<=390?"10px":"12px":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Relevantes",textOptionLeft:"Relevantes",textOptionRight:"Partidos",onChange:i.ChangeRadio},null,8,["width","margin-toggle","font-size","onChange"]),o.elementSize.width<=900?(n.openBlock(),n.createBlock(l,{key:0,style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":o.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":o.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0),o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",rU,[o.elementSize.width>900&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",lU,[a.showSelect?(n.openBlock(),n.createBlock(d,{key:0,arrow:!1,type:1,buttons:a.isplayer?["Generales","Mis Datos","Mi Equipo"]:["Generales","Mi Equipo"],"selected-option":t.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["buttons","selected-option","onInput"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),a.showMore?(n.openBlock(),n.createElementBlock("div",cU,[n.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),n.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),o.elementSize.width<=900&&a.showSelect&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",dU,[n.createElementVNode("div",uU,[a.showSelect?(n.openBlock(),n.createBlock(d,{key:0,arrow:!1,type:1,buttons:a.isplayer?["Generales","Mis Datos","Mi Equipo"]:["Generales","Mi Equipo"],"selected-option":t.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType},null,8,["buttons","selected-option","onInput"])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",{class:"gsc-best__players",key:"slider-"+t.showType},[(n.openBlock(),n.createBlock(u,{key:t.optionSelected,height:510,"px-scroll":339,scrollColor:"none","background-color":a.backgroundColor,arrowsPosition:"absolute",arrowsScrollHide:!0,disabled:t.loading,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",arrows:!t.loading},{default:n.withCtx(()=>[t.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},n.renderList(4,f=>n.createElementVNode("div",{key:"skeleton-"+f,class:n.normalizeClass(["skeleton-card data-card",{"first-card":f===1,"skeleton-card--generals":t.optionSelected==="Generales","skeleton-card--other":t.optionSelected!=="Generales"}])},mU,2)),64)):t.generalsData?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(t.generalsData,(f,g)=>(n.openBlock(),n.createBlock(c,{key:g,data:f,"user-id":a.user,"player-id":a.playerId,"show-videos":a.showVideos,class:n.normalizeClass([{"first-card":g===0,"generals-view":t.optionSelected==="Generales"},"data-card"]),onOpenMedia:i.onOpenMedia},null,8,["data","user-id","player-id","show-videos","class","onOpenMedia"]))),128)):n.createCommentVNode("",!0)]),_:1},8,["background-color","disabled","arrows"]))])):(n.openBlock(),n.createElementBlock("div",{key:"games-"+t.showType},[n.createElementVNode("div",hU,[n.createVNode(m,{onOpenmedia:i.onOpenMedia,"is-public":a.showVideos,"tournament-id":t.tournamentId,"seasons-ids":[a.season]},null,8,["onOpenmedia","is-public","tournament-id","seasons-ids"])])]))],2)}const fU=dt(Kd,[["render",pU],["__scopeId","data-v-5cb6a519"]]);/**
53
53
  * Vue 3 Carousel 0.3.1
54
54
  * (c) 2023
55
55
  * @license MIT
@@ -17276,26 +17276,26 @@ const LP = /* @__PURE__ */ EP(RP), IP = {
17276
17276
  emits: ["open-media"],
17277
17277
  setup(e, { emit: t }) {
17278
17278
  const s = {
17279
- CardGeneral: kt(() => import("./CardGeneral-DcE_7xpj-Da1P5A1Y.js")),
17280
- CardGeneralIndividual: kt(() => import("./CardGeneralIndividual-DbvxscVI-Bc1kGIr7.js")),
17281
- CardGeneralTeams: kt(() => import("./CardGeneralTeams-D0Y6zdKu-DrJgbPOQ.js")),
17282
- CardIndividual: kt(() => import("./CardIndividual-Ki5omZJI-Ciu0hwXk.js")),
17283
- CardIndividualDistance: kt(() => import("./CardIndividualDistance-CKkJ7mwB-u2DfEB97.js")),
17284
- CardIndividualAreas: kt(() => import("./CardIndividualAreas-CYpbCBwP-BjZB3XbX.js")),
17285
- CardIndividualGoalParticipation: kt(() => import("./CardIndividualGoalParticipation-S3oTRiGX-CNKud2Cq.js")),
17286
- CardIndividualGoals: kt(() => import("./CardIndividualGoals-CTxER-Rj-BZhtgjMk.js")),
17287
- CardIndividualShotsOnGoal: kt(() => import("./CardIndividualShotsOnGoal-BTVmtE9u-_HJTv__w.js")),
17288
- CardIndividualFouls: kt(() => import("./CardIndividualFouls-6eSJq50u-wf78GxeZ.js")),
17289
- CardIndividualCenters: kt(() => import("./CardIndividualCenters-JhzJNVnv-CJn74p6o.js")),
17290
- CardIndividualSaves: kt(() => import("./CardIndividualSaves-j_epfoNL-B2sE6QGA.js")),
17291
- CardIndividual1vs1: kt(() => import("./CardIndividual1vs1-DmlJbJ8B-CqHJErBM.js")),
17292
- CardIndividualStatistics: kt(() => import("./CardIndividualStatistics-DbAhxMKF-Z3K8YQ8t.js")),
17293
- CardIndividualPerformance: kt(() => import("./CardIndividualPerformance-Kw8Qsjmn-DfLh8-n-.js")),
17294
- CardIndividualGold: kt(() => import("./CardIndividualGold-B4BcqctC-DqyiNjdq.js")),
17295
- CardPromTournament: kt(() => import("./CardPromTournament-BtYUa7FA-LXLTJ5tI.js")),
17296
- CardIndividualNoGoalReceived: kt(() => import("./CardIndividualNoGoalReceived-BrVOXQpB-B3V2Zmtw.js")),
17297
- CardTheMostProductive: kt(() => import("./CardTheMostProductive-CMoq34SC-Bd-ALBIQ.js")),
17298
- CardSuccessfulPasses: kt(() => import("./CardSuccessfulPasses-Bwg7cP83-gQTXyq4i.js"))
17279
+ CardGeneral: kt(() => import("./CardGeneral-DcE_7xpj-BjirwqAW.js")),
17280
+ CardGeneralIndividual: kt(() => import("./CardGeneralIndividual-DbvxscVI-DgN71Ll_.js")),
17281
+ CardGeneralTeams: kt(() => import("./CardGeneralTeams-D0Y6zdKu-bSMLQ0UN.js")),
17282
+ CardIndividual: kt(() => import("./CardIndividual-Ki5omZJI-BJN0Xc4K.js")),
17283
+ CardIndividualDistance: kt(() => import("./CardIndividualDistance-CKkJ7mwB-dhRkzmM7.js")),
17284
+ CardIndividualAreas: kt(() => import("./CardIndividualAreas-CYpbCBwP-CZlr4svT.js")),
17285
+ CardIndividualGoalParticipation: kt(() => import("./CardIndividualGoalParticipation-S3oTRiGX-B9Ubj5c2.js")),
17286
+ CardIndividualGoals: kt(() => import("./CardIndividualGoals-CTxER-Rj-DrsBgKOW.js")),
17287
+ CardIndividualShotsOnGoal: kt(() => import("./CardIndividualShotsOnGoal-BTVmtE9u-BWNF8wkq.js")),
17288
+ CardIndividualFouls: kt(() => import("./CardIndividualFouls-6eSJq50u-0Eo_ODlc.js")),
17289
+ CardIndividualCenters: kt(() => import("./CardIndividualCenters-JhzJNVnv-knmAyBfO.js")),
17290
+ CardIndividualSaves: kt(() => import("./CardIndividualSaves-j_epfoNL-BLIYXJi2.js")),
17291
+ CardIndividual1vs1: kt(() => import("./CardIndividual1vs1-DmlJbJ8B-DqGZqI9c.js")),
17292
+ CardIndividualStatistics: kt(() => import("./CardIndividualStatistics-DbAhxMKF-JN2q71S7.js")),
17293
+ CardIndividualPerformance: kt(() => import("./CardIndividualPerformance-Kw8Qsjmn-DB6xWsL-.js")),
17294
+ CardIndividualGold: kt(() => import("./CardIndividualGold-B4BcqctC-DsJbgA7N.js")),
17295
+ CardPromTournament: kt(() => import("./CardPromTournament-BtYUa7FA-B1jTn5AY.js")),
17296
+ CardIndividualNoGoalReceived: kt(() => import("./CardIndividualNoGoalReceived-BrVOXQpB-WWzw2ZT1.js")),
17297
+ CardTheMostProductive: kt(() => import("./CardTheMostProductive-CMoq34SC-CLWwaVwC.js")),
17298
+ CardSuccessfulPasses: kt(() => import("./CardSuccessfulPasses-Bwg7cP83-BVI2LDec.js"))
17299
17299
  }, i = [
17300
17300
  {
17301
17301
  componentName: "CardGeneral",
@@ -27050,7 +27050,7 @@ const M7 = /* @__PURE__ */ Mt(fh, [["render", D7], ["__scopeId", "data-v-d2ef792
27050
27050
  computed: {},
27051
27051
  methods: {
27052
27052
  onOpenMedia(e) {
27053
- this.data.seasonId = this.season, this.$emit("openmedia", e);
27053
+ e.seasonId = this.season, this.$emit("openmedia", e);
27054
27054
  },
27055
27055
  clickMore() {
27056
27056
  this.$emit("more");
@@ -27120,15 +27120,15 @@ const M7 = /* @__PURE__ */ Mt(fh, [["render", D7], ["__scopeId", "data-v-d2ef792
27120
27120
  }
27121
27121
  }, Ug = () => {
27122
27122
  lt((e) => ({
27123
- "5ce1de02": e.backgroundColor,
27124
- b00f5fae: e.fontFamily,
27125
- "21b37bf4": e.fontSize,
27126
- "1679e404": e.fontColor,
27127
- d93d6c24: e.marginMosaic
27123
+ "32d22ee1": e.backgroundColor,
27124
+ "020e8d07": e.fontFamily,
27125
+ "40c21e64": e.fontSize,
27126
+ "52ba8540": e.fontColor,
27127
+ "7e487168": e.marginMosaic
27128
27128
  }));
27129
27129
  }, Gg = gh.setup;
27130
27130
  gh.setup = Gg ? (e, t) => (Ug(), Gg(e, t)) : Ug;
27131
- const kv = (e) => (at("data-v-b3733d57"), e = e(), rt(), e), F7 = { class: "gsc-best__line-bar-tools" }, N7 = {
27131
+ const kv = (e) => (at("data-v-5cb6a519"), e = e(), rt(), e), F7 = { class: "gsc-best__line-bar-tools" }, N7 = {
27132
27132
  key: 0,
27133
27133
  class: "gsc-best__line-bar-tools__title"
27134
27134
  }, B7 = /* @__PURE__ */ kv(() => /* @__PURE__ */ b("span", null, "Datos Inteligencia Artificial ", -1)), $7 = { class: "unit-items" }, U7 = {
@@ -27326,7 +27326,7 @@ function K7(e, t, s, i, n, a) {
27326
27326
  ]))
27327
27327
  ], 2);
27328
27328
  }
27329
- const X7 = /* @__PURE__ */ Mt(gh, [["render", K7], ["__scopeId", "data-v-b3733d57"]]);
27329
+ const X7 = /* @__PURE__ */ Mt(gh, [["render", K7], ["__scopeId", "data-v-5cb6a519"]]);
27330
27330
  /**
27331
27331
  * Vue 3 Carousel 0.3.1
27332
27332
  * (c) 2023