@golstats/gsc-landing 1.0.208 → 1.0.210
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/{CardBase-D2PPB-i0-hRi--lTo.js → CardBase-D2PPB-i0-BSL07ywy.js} +1 -1
- package/dist/{CardBaseAllIndividual-BtD15BfP-Bik6kK1e.js → CardBaseAllIndividual-BtD15BfP-CgQeoWdJ.js} +1 -1
- package/dist/{CardGeneral-Db7PtjpY-B70Lb8Od.js → CardGeneral-Db7PtjpY-BrwPTFva.js} +2 -2
- package/dist/{CardGeneralIndividual-B7hJ1cJT-C8Kc1EIy.js → CardGeneralIndividual-B7hJ1cJT-CFPAU2oF.js} +2 -2
- package/dist/{CardGeneralTeams-D8ZC2bRY-jd4LJJiN.js → CardGeneralTeams-D8ZC2bRY-N_UEQmSa.js} +2 -2
- package/dist/{CardIndividual-CFpXabtZ-BrAvNNR0.js → CardIndividual-CFpXabtZ-D0w9R16O.js} +3 -3
- package/dist/{CardIndividual1vs1-dGQ0VDLL-CSvv3m9R.js → CardIndividual1vs1-dGQ0VDLL-f0mqI-dy.js} +3 -3
- package/dist/{CardIndividualAreas-E2RY6NuF-DmsAYPdn.js → CardIndividualAreas-E2RY6NuF-CiOlFduq.js} +3 -3
- package/dist/{CardIndividualCenters-DYNn1gUK-YVw2o6DH.js → CardIndividualCenters-DYNn1gUK-FyVETZXG.js} +3 -3
- package/dist/{CardIndividualDistance-DcENou2v-S0rznHyt.js → CardIndividualDistance-DcENou2v-D6qOTc9p.js} +3 -3
- package/dist/{CardIndividualFouls-b7Ae3kJx-DLVXGqFc.js → CardIndividualFouls-b7Ae3kJx-BvE6QIzJ.js} +3 -3
- package/dist/{CardIndividualGoalParticipation-QhK-SHO0-D4-phMnN.js → CardIndividualGoalParticipation-QhK-SHO0-DZltnxma.js} +4 -4
- package/dist/{CardIndividualGoals-CtdA3WIi-CuFhf_oJ.js → CardIndividualGoals-CtdA3WIi-CCiOnY-Q.js} +4 -4
- package/dist/{CardIndividualGold-BPrJOY01-B_Gj8ZOv.js → CardIndividualGold-BPrJOY01-FtHJCaGT.js} +4 -4
- package/dist/{CardIndividualNoGoalReceived-lIZnPxlW-xOgQ4fOc.js → CardIndividualNoGoalReceived-lIZnPxlW-BRB-ktHy.js} +4 -4
- package/dist/{CardIndividualPerformance-BAa6VBL4-CSV_K3sZ.js → CardIndividualPerformance-BAa6VBL4-CVJUDSDe.js} +4 -4
- package/dist/{CardIndividualSaves-Co35mxDZ-DhPlmQCb.js → CardIndividualSaves-Co35mxDZ-DhVjkPx2.js} +3 -3
- package/dist/{CardIndividualShotsOnGoal-BqrJWNg2-C32OIuPE.js → CardIndividualShotsOnGoal-BqrJWNg2-CY0tOCF1.js} +3 -3
- package/dist/{CardIndividualStatistics-BzQ49WmS-DS4f902s.js → CardIndividualStatistics-BzQ49WmS-D6YUc7s1.js} +3 -3
- package/dist/{CardPromTournament-DF3Lx49G-Bg1RoaaP.js → CardPromTournament-DF3Lx49G-BhtHgR14.js} +3 -3
- package/dist/{CardSuccessfulPasses-BTfsfPZY-Dna2NGm9.js → CardSuccessfulPasses-BTfsfPZY-DqaYnV3I.js} +3 -3
- package/dist/{CardTheMostProductive-gjJTU5gM-DPGtoRcC.js → CardTheMostProductive-gjJTU5gM-DaEN0f5h.js} +4 -4
- package/dist/{CircleWithDotsBig-3oDL9dtc-BHOoE0Ul.js → CircleWithDotsBig-3oDL9dtc-D8yET2DS.js} +1 -1
- package/dist/{Shield-CylUzPz2-DWRCw6P1.js → Shield-CylUzPz2-DKfnKzsu.js} +1 -1
- package/dist/gsc-landing.js +1 -1
- package/dist/gsc-landing.umd.cjs +1 -1
- package/dist/{index-DpiVF_hc.js → index-BiKXrdSy.js} +30 -30
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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-D2PPB-i0-
|
|
2
|
+
import { b as c } from "./CardBase-D2PPB-i0-BSL07ywy.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"
|
package/dist/gsc-landing.js
CHANGED
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -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[Dg]=this[Dg]={accessors:{}}).accessors,o=this.prototype;function s(i){const r=es(i);a[r]||(bM(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 zg(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 jg(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 SM(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function wM(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 kM(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=wM(50,250);return kM(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)},qg=(t,e)=>{const a=t!=null;return[o=>e[0]({lengthComputable:a,total:t,loaded:o}),e[1]]},Gg=t=>(...e)=>K.asap(()=>t(...e)),CM=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,_M=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 EM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function TM(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Kg(t,e){return t&&!EM(e)?TM(t,e):e}const Wg=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(Wg(c),Wg(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 $g=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=Ig(Kg(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&&CM(e.url))){const c=s&&i&&_M.read(i);c&&r.set(s,c)}return e},xM=typeof XMLHttpRequest<"u",LM=xM&&function(t){return new Promise(function(e,a){const o=$g(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};jg(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||Mg;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=SM(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)})},NM=(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}},VM=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},OM=async function*(t,e){for await(const a of RM(t))yield*VM(a,e)},RM=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()}},Hg=(t,e,a,o)=>{const s=OM(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",Jg=ar&&typeof ReadableStream=="function",AM=ar&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Xg=(t,...e)=>{try{return!!t(...e)}catch{return!1}},BM=Jg&&Xg(()=>{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}),Zg=64*1024,Ud=Jg&&Xg(()=>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 FM=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 AM(t)).byteLength},vM=async(t,e)=>K.toFiniteNumber(t.getContentLength())??FM(e),IM=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}=$g(t);c=c?(c+"").toLowerCase():"text";let g=NM([s,i&&i.toAbortSignal()],r),h;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(d&&BM&&a!=="get"&&a!=="head"&&(y=await vM(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]=qg(y,tr(Gg(d)));o=Hg(_.body,Zg,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&&qg(x,tr(Gg(l),!0))||[];S=new Response(Hg(S.body,Zg,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)=>{jg(_,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:ZP,xhr:LM,fetch:IM};K.forEach(Dd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Yg=t=>`- ${t}`,PM=t=>K.isFunction(t)||t===null||t===!1,Qg={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,!PM(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(Yg).join(`
|
|
51
51
|
`):" "+Yg(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 e2(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),Qg.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 zg(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 t2="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 a2={};or.transitional=function(t,e,a){function o(s,i){return"[Axios v"+t2+"] 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&&!a2[i]&&(a2[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 MM(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:MM,validators:or},ja=sr.validators;let In=class{constructor(e){this.defaults=e,this.interceptors={request:new Pg,response:new Pg}}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=[e2.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=e2.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=Kg(e.baseURL,e.url);return Ig(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 UM(t){return function(e){return t.apply(null,e)}}function DM(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 n2(t){const e=new In(t),a=wg(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 n2(vn(t,o))},a}const pt=n2(Qo);pt.Axios=In,pt.CanceledError=mo,pt.CancelToken=jd,pt.isCancel=zg,pt.VERSION=t2,pt.toFormData=Qi,pt.AxiosError=Fe,pt.Cancel=pt.CanceledError,pt.all=function(t){return Promise.all(t)},pt.spread=UM,pt.isAxiosError=DM,pt.mergeConfig=vn,pt.AxiosHeaders=Qt,pt.formToJSON=t=>Ug(K.isHTMLForm(t)?new FormData(t):t),pt.getAdapter=Qg.getAdapter,pt.HttpStatusCode=qd,pt.default=pt;const zM=(t,e)=>{const a=t.__vccOpts||t;for(const[o,s]of e)a[o]=s;return a},jM={name:"WidgetAzteca2",components:{GSCProminentData:eA,GSCGameSelect:AF,GSCGameDisplay:uP},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.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)}}},qM={class:"widget-container",ref:"headerContainer"},GM={class:"analysis-section"},KM={class:"left-box"},WM={class:"right-box"};function $M(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",qM,[n.createElementVNode("section",GM,[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",KM,[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",WM,[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 HM=zM(jM,[["render",$M],["__scopeId","data-v-53ee44ca"]]);function JM(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)}}},o2=()=>{n.useCssVars(t=>({"646f7da4":t.marginToggle,ef5d666e:t.backgroundColor,"7a065a2a":t.widthCircle,"1c800f63":t.heightCircle}))},s2=Gd.setup;Gd.setup=s2?(t,e)=>(o2(),s2(t,e)):o2;const XM={key:0,class:"text-left"},ZM=["width","src"],YM=["checked"],QM=["width","src"],eU={key:3,class:"text-right"};function tU(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",XM,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,ZM)):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,YM),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,QM)):n.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",eU,n.toDisplayString(a.textOptionRight),1)):n.createCommentVNode("",!0)],4)}const Kd={components:{GSCSlider:Yn,GscSwitchComponent:Xs,GSCButton:Xf,GSCRadioToggle:dt(Gd,[["render",tU],["__scopeId","data-v-d2ef7927"]]),GSCDataiagames:HM,GSCDataCard:QV},setup(){const t=n.ref("myDivRef"),{elementSize:e}=JM(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.$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()}))}}},i2=()=>{n.useCssVars(t=>({"7d0e2612":t.backgroundColor,"203a4d9e":t.fontFamily,"74af6d0e":t.fontSize,"205f43f6":t.fontColor,ea649e14:t.marginMosaic}))},r2=Kd.setup;Kd.setup=r2?(t,e)=>(i2(),r2(t,e)):i2;const l2=t=>(n.pushScopeId("data-v-64258a20"),t=t(),n.popScopeId(),t),aU={class:"gsc-best__line-bar-tools"},nU={key:0,class:"gsc-best__line-bar-tools__title"},oU=l2(()=>n.createElementVNode("span",null,"Datos Inteligencia Artificial ",-1)),sU={class:"unit-items"},iU={key:2,class:"gsc-best__line-bar-tools__tools"},rU={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},lU={key:1,class:"gsc-best__line-bar-tools__tools__btn"},cU={key:0,class:"gsc-best__line-bar-tools-movil"},dU={class:"gsc-best__line-bar-tools-movil__tabs"},uU=[l2(()=>n.createElementVNode("div",{class:"loading-overlay"},[n.createElementVNode("div",{class:"loading-animation"})],-1))],mU={style:{"margin-top":"50px"}};function hU(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",aU,[o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",nU,[oU,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",sU,[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",iU,[o.elementSize.width>900&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",rU,[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",lU,[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",cU,[n.createElementVNode("div",dU,[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"}])},uU,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",mU,[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 pU=dt(Kd,[["render",hU],["__scopeId","data-v-64258a20"]]);/**
|
|
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=[e2.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=e2.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=Kg(e.baseURL,e.url);return Ig(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 UM(t){return function(e){return t.apply(null,e)}}function DM(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 n2(t){const e=new In(t),a=wg(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 n2(vn(t,o))},a}const pt=n2(Qo);pt.Axios=In,pt.CanceledError=mo,pt.CancelToken=jd,pt.isCancel=zg,pt.VERSION=t2,pt.toFormData=Qi,pt.AxiosError=Fe,pt.Cancel=pt.CanceledError,pt.all=function(t){return Promise.all(t)},pt.spread=UM,pt.isAxiosError=DM,pt.mergeConfig=vn,pt.AxiosHeaders=Qt,pt.formToJSON=t=>Ug(K.isHTMLForm(t)?new FormData(t):t),pt.getAdapter=Qg.getAdapter,pt.HttpStatusCode=qd,pt.default=pt;const zM=(t,e)=>{const a=t.__vccOpts||t;for(const[o,s]of e)a[o]=s;return a},jM={name:"WidgetAzteca2",components:{GSCProminentData:eA,GSCGameSelect:AF,GSCGameDisplay:uP},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)}}},qM={class:"widget-container",ref:"headerContainer"},GM={class:"analysis-section"},KM={class:"left-box"},WM={class:"right-box"};function $M(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",qM,[n.createElementVNode("section",GM,[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",KM,[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",WM,[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 HM=zM(jM,[["render",$M],["__scopeId","data-v-65c5faf9"]]);function JM(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)}}},o2=()=>{n.useCssVars(t=>({"646f7da4":t.marginToggle,ef5d666e:t.backgroundColor,"7a065a2a":t.widthCircle,"1c800f63":t.heightCircle}))},s2=Gd.setup;Gd.setup=s2?(t,e)=>(o2(),s2(t,e)):o2;const XM={key:0,class:"text-left"},ZM=["width","src"],YM=["checked"],QM=["width","src"],eU={key:3,class:"text-right"};function tU(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",XM,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,ZM)):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,YM),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,QM)):n.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(n.openBlock(),n.createElementBlock("span",eU,n.toDisplayString(a.textOptionRight),1)):n.createCommentVNode("",!0)],4)}const Kd={components:{GSCSlider:Yn,GscSwitchComponent:Xs,GSCButton:Xf,GSCRadioToggle:dt(Gd,[["render",tU],["__scopeId","data-v-d2ef7927"]]),GSCDataiagames:HM,GSCDataCard:QV},setup(){const t=n.ref("myDivRef"),{elementSize:e}=JM(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.$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()}))}}},i2=()=>{n.useCssVars(t=>({"4ff6573d":t.backgroundColor,"50119b2b":t.fontFamily,"6bba6588":t.fontSize,"0ab35abc":t.fontColor,cb584720:t.marginMosaic}))},r2=Kd.setup;Kd.setup=r2?(t,e)=>(i2(),r2(t,e)):i2;const l2=t=>(n.pushScopeId("data-v-bdf4d402"),t=t(),n.popScopeId(),t),aU={class:"gsc-best__line-bar-tools"},nU={key:0,class:"gsc-best__line-bar-tools__title"},oU=l2(()=>n.createElementVNode("span",null,"Datos Inteligencia Artificial ",-1)),sU={class:"unit-items"},iU={key:2,class:"gsc-best__line-bar-tools__tools"},rU={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},lU={key:1,class:"gsc-best__line-bar-tools__tools__btn"},cU={key:0,class:"gsc-best__line-bar-tools-movil"},dU={class:"gsc-best__line-bar-tools-movil__tabs"},uU=[l2(()=>n.createElementVNode("div",{class:"loading-overlay"},[n.createElementVNode("div",{class:"loading-animation"})],-1))],mU={style:{"margin-top":"50px"}};function hU(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",aU,[o.elementSize.width>900?(n.openBlock(),n.createElementBlock("div",nU,[oU,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",sU,[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",iU,[o.elementSize.width>900&&t.showType==="Relevantes"?(n.openBlock(),n.createElementBlock("div",rU,[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",lU,[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",cU,[n.createElementVNode("div",dU,[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"}])},uU,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",mU,[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 pU=dt(Kd,[["render",hU],["__scopeId","data-v-bdf4d402"]]);/**
|
|
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-Db7PtjpY-
|
|
17280
|
-
CardGeneralIndividual: kt(() => import("./CardGeneralIndividual-B7hJ1cJT-
|
|
17281
|
-
CardGeneralTeams: kt(() => import("./CardGeneralTeams-D8ZC2bRY-
|
|
17282
|
-
CardIndividual: kt(() => import("./CardIndividual-CFpXabtZ-
|
|
17283
|
-
CardIndividualDistance: kt(() => import("./CardIndividualDistance-DcENou2v-
|
|
17284
|
-
CardIndividualAreas: kt(() => import("./CardIndividualAreas-E2RY6NuF-
|
|
17285
|
-
CardIndividualGoalParticipation: kt(() => import("./CardIndividualGoalParticipation-QhK-SHO0-
|
|
17286
|
-
CardIndividualGoals: kt(() => import("./CardIndividualGoals-CtdA3WIi-
|
|
17287
|
-
CardIndividualShotsOnGoal: kt(() => import("./CardIndividualShotsOnGoal-BqrJWNg2-
|
|
17288
|
-
CardIndividualFouls: kt(() => import("./CardIndividualFouls-b7Ae3kJx-
|
|
17289
|
-
CardIndividualCenters: kt(() => import("./CardIndividualCenters-DYNn1gUK-
|
|
17290
|
-
CardIndividualSaves: kt(() => import("./CardIndividualSaves-Co35mxDZ-
|
|
17291
|
-
CardIndividual1vs1: kt(() => import("./CardIndividual1vs1-dGQ0VDLL-
|
|
17292
|
-
CardIndividualStatistics: kt(() => import("./CardIndividualStatistics-BzQ49WmS-
|
|
17293
|
-
CardIndividualPerformance: kt(() => import("./CardIndividualPerformance-BAa6VBL4-
|
|
17294
|
-
CardIndividualGold: kt(() => import("./CardIndividualGold-BPrJOY01-
|
|
17295
|
-
CardPromTournament: kt(() => import("./CardPromTournament-DF3Lx49G-
|
|
17296
|
-
CardIndividualNoGoalReceived: kt(() => import("./CardIndividualNoGoalReceived-lIZnPxlW-
|
|
17297
|
-
CardTheMostProductive: kt(() => import("./CardTheMostProductive-gjJTU5gM-
|
|
17298
|
-
CardSuccessfulPasses: kt(() => import("./CardSuccessfulPasses-BTfsfPZY-
|
|
17279
|
+
CardGeneral: kt(() => import("./CardGeneral-Db7PtjpY-BrwPTFva.js")),
|
|
17280
|
+
CardGeneralIndividual: kt(() => import("./CardGeneralIndividual-B7hJ1cJT-CFPAU2oF.js")),
|
|
17281
|
+
CardGeneralTeams: kt(() => import("./CardGeneralTeams-D8ZC2bRY-N_UEQmSa.js")),
|
|
17282
|
+
CardIndividual: kt(() => import("./CardIndividual-CFpXabtZ-D0w9R16O.js")),
|
|
17283
|
+
CardIndividualDistance: kt(() => import("./CardIndividualDistance-DcENou2v-D6qOTc9p.js")),
|
|
17284
|
+
CardIndividualAreas: kt(() => import("./CardIndividualAreas-E2RY6NuF-CiOlFduq.js")),
|
|
17285
|
+
CardIndividualGoalParticipation: kt(() => import("./CardIndividualGoalParticipation-QhK-SHO0-DZltnxma.js")),
|
|
17286
|
+
CardIndividualGoals: kt(() => import("./CardIndividualGoals-CtdA3WIi-CCiOnY-Q.js")),
|
|
17287
|
+
CardIndividualShotsOnGoal: kt(() => import("./CardIndividualShotsOnGoal-BqrJWNg2-CY0tOCF1.js")),
|
|
17288
|
+
CardIndividualFouls: kt(() => import("./CardIndividualFouls-b7Ae3kJx-BvE6QIzJ.js")),
|
|
17289
|
+
CardIndividualCenters: kt(() => import("./CardIndividualCenters-DYNn1gUK-FyVETZXG.js")),
|
|
17290
|
+
CardIndividualSaves: kt(() => import("./CardIndividualSaves-Co35mxDZ-DhVjkPx2.js")),
|
|
17291
|
+
CardIndividual1vs1: kt(() => import("./CardIndividual1vs1-dGQ0VDLL-f0mqI-dy.js")),
|
|
17292
|
+
CardIndividualStatistics: kt(() => import("./CardIndividualStatistics-BzQ49WmS-D6YUc7s1.js")),
|
|
17293
|
+
CardIndividualPerformance: kt(() => import("./CardIndividualPerformance-BAa6VBL4-CVJUDSDe.js")),
|
|
17294
|
+
CardIndividualGold: kt(() => import("./CardIndividualGold-BPrJOY01-FtHJCaGT.js")),
|
|
17295
|
+
CardPromTournament: kt(() => import("./CardPromTournament-DF3Lx49G-BhtHgR14.js")),
|
|
17296
|
+
CardIndividualNoGoalReceived: kt(() => import("./CardIndividualNoGoalReceived-lIZnPxlW-BRB-ktHy.js")),
|
|
17297
|
+
CardTheMostProductive: kt(() => import("./CardTheMostProductive-gjJTU5gM-DaEN0f5h.js")),
|
|
17298
|
+
CardSuccessfulPasses: kt(() => import("./CardSuccessfulPasses-BTfsfPZY-DqaYnV3I.js"))
|
|
17299
17299
|
}, i = [
|
|
17300
17300
|
{
|
|
17301
17301
|
componentName: "CardGeneral",
|
|
@@ -26706,7 +26706,7 @@ const w7 = (e, t) => {
|
|
|
26706
26706
|
});
|
|
26707
26707
|
},
|
|
26708
26708
|
onChangeGame(e) {
|
|
26709
|
-
this.currentGame = e, this.isPublic
|
|
26709
|
+
this.currentGame = e, this.isPublic ? this.currentGame.canPlayVideos = !0 : this.currentGame.canPlayVideos = !1, this.modalInitialData = {
|
|
26710
26710
|
seasonId: e.season_id,
|
|
26711
26711
|
mainSectionType: 1,
|
|
26712
26712
|
playListType: 1,
|
|
@@ -26795,7 +26795,7 @@ function E7(e, t, s, i, n, a) {
|
|
|
26795
26795
|
])
|
|
26796
26796
|
], 512);
|
|
26797
26797
|
}
|
|
26798
|
-
const k7 = /* @__PURE__ */ w7(_7, [["render", E7], ["__scopeId", "data-v-
|
|
26798
|
+
const k7 = /* @__PURE__ */ w7(_7, [["render", E7], ["__scopeId", "data-v-65c5faf9"]]);
|
|
26799
26799
|
function A7(e) {
|
|
26800
26800
|
const t = P({ width: 0, height: 0 });
|
|
26801
26801
|
function s() {
|
|
@@ -27124,15 +27124,15 @@ const M7 = /* @__PURE__ */ Mt(fh, [["render", D7], ["__scopeId", "data-v-d2ef792
|
|
|
27124
27124
|
}
|
|
27125
27125
|
}, Ug = () => {
|
|
27126
27126
|
lt((e) => ({
|
|
27127
|
-
"
|
|
27128
|
-
"
|
|
27129
|
-
"
|
|
27130
|
-
"
|
|
27131
|
-
|
|
27127
|
+
"4ff6573d": e.backgroundColor,
|
|
27128
|
+
"50119b2b": e.fontFamily,
|
|
27129
|
+
"6bba6588": e.fontSize,
|
|
27130
|
+
"0ab35abc": e.fontColor,
|
|
27131
|
+
cb584720: e.marginMosaic
|
|
27132
27132
|
}));
|
|
27133
27133
|
}, Gg = gh.setup;
|
|
27134
27134
|
gh.setup = Gg ? (e, t) => (Ug(), Gg(e, t)) : Ug;
|
|
27135
|
-
const kv = (e) => (at("data-v-
|
|
27135
|
+
const kv = (e) => (at("data-v-bdf4d402"), e = e(), rt(), e), F7 = { class: "gsc-best__line-bar-tools" }, N7 = {
|
|
27136
27136
|
key: 0,
|
|
27137
27137
|
class: "gsc-best__line-bar-tools__title"
|
|
27138
27138
|
}, B7 = /* @__PURE__ */ kv(() => /* @__PURE__ */ b("span", null, "Datos Inteligencia Artificial ", -1)), $7 = { class: "unit-items" }, U7 = {
|
|
@@ -27322,7 +27322,7 @@ function K7(e, t, s, i, n, a) {
|
|
|
27322
27322
|
b("div", q7, [
|
|
27323
27323
|
Te(u, {
|
|
27324
27324
|
onOpenmedia: a.onOpenMedia,
|
|
27325
|
-
"is-public":
|
|
27325
|
+
"is-public": s.showVideos,
|
|
27326
27326
|
"tournament-id": e.tournamentId,
|
|
27327
27327
|
"seasons-ids": [s.season]
|
|
27328
27328
|
}, null, 8, ["onOpenmedia", "is-public", "tournament-id", "seasons-ids"])
|
|
@@ -27330,7 +27330,7 @@ function K7(e, t, s, i, n, a) {
|
|
|
27330
27330
|
]))
|
|
27331
27331
|
], 2);
|
|
27332
27332
|
}
|
|
27333
|
-
const X7 = /* @__PURE__ */ Mt(gh, [["render", K7], ["__scopeId", "data-v-
|
|
27333
|
+
const X7 = /* @__PURE__ */ Mt(gh, [["render", K7], ["__scopeId", "data-v-bdf4d402"]]);
|
|
27334
27334
|
/**
|
|
27335
27335
|
* Vue 3 Carousel 0.3.1
|
|
27336
27336
|
* (c) 2023
|