PageSourceSearch

https://s3.elespanol.com/assets_js/web/v2/SoccerOptaScore-YFKGFTIW.js

js elespanol.com collected 2026-10-01 09:20:00 UTC 5,528 bytes, 1 lines download raw bytes

1import{a as j}from"./chunk-SON2KZH4.js";import{l as f}from"./chunk-M6YW4SB6.js";import{b as H,c as x}from"./chunk-L2TV35YR.js";import"./chunk-RYXPESFM.js";import"./chunk-MN6ULYMF.js";import"./chunk-YOI4KDGN.js";import{a as P,b as w,t as v}from"./chunk-O2BB4VPE.js";var L=P((q,C)=>{v();(function(p,e){typeof q=="object"?C.exports=q=e(j()):typeof define=="function"&&define.amd?define(["./core"],e):e(p.CryptoJS)})(q,function(p){return function(){var e=p,t=e.lib,y=t.WordArray,n=t.Hasher,r=e.algo,l=[],_=r.SHA1=n.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,u){for(var a=this._hash.words,i=a[0],c=a[1],d=a[2],h=a[3],M=a[4],s=0;s<80;s++){if(s<16)l[s]=o[u+s]|0;else{var b=l[s-3]^l[s-8]^l[s-14]^l[s-16];l[s]=b<<1|b>>>31}var S=(i<<5|i>>>27)+M+l[s];s<20?S+=(c&d|~c&h)+1518500249:s<40?S+=(c^d^h)+1859775393:s<60?S+=(c&d|c&h|d&h)-1894007588:S+=(c^d^h)-899497514,M=h,h=d,d=c<<30|c>>>2,c=i,i=S}a[0]=a[0]+i|0,a[1]=a[1]+c|0,a[2]=a[2]+d|0,a[3]=a[3]+h|0,a[4]=a[4]+M|0},_doFinalize:function(){var o=this._data,u=o.words,a=this._nDataBytes*8,i=o.sigBytes*8;return u[i>>>5]|=128<<24-i%32,u[(i+64>>>9<<4)+14]=Math.floor(a/4294967296),u[(i+64>>>9<<4)+15]=a,o.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var o=n.clone.call(this);return o._hash=this._hash.clone(),o}});e.SHA1=n._createHelper(_),e.HmacSHA1=n._createHmacHelper(_)}(),p.SHA1})});v();v();var D=w(L(),1),I="CommonOptaScore";H(I);var g=class{constructor(e){this.params=e,this.hashInitialData=null,this.timeInterval=1e4,this.maxIntervalExec=10,this.execInterval=0,this.intervalId=null}processMatch(e,t){var y,n;if(t.getAttribute("data-load")==="manual"){let r=this.checkStatusMatchManual(t),l=t.querySelector(".".concat(r));r==="playing"&&this.showLiveLinkInFixtureMatch(t,e.envivo),r!=="played"&&e.channel.logo&&(t.querySelector("."+e.status+" .score__date-channel").setAttribute("src",e.channel.logo),t.querySelector("."+e.status+" .score__date-channel").setAttribute("title",e.channel.title)),r==="fixture"&&(l.querySelector(".info").innerHTML=e.date+" "+e.time,e.envivo&&this.showLiveLinkInFixtureMatch(t,e.envivo)),r==="played"&&l.setAttribute("href",e.cronica)}if(t.getAttribute("data-load")!=="manual"){t.setAttribute("data-state",e.status);let r=t.querySelector("."+e.status);t.querySelector(".left .score__score").childNodes[0].textContent=e.teams[0].score,t.querySelector(".right .score__score").childNodes[0].textContent=e.teams[1].score,e.status==="playing"&&t.querySelector(".score__date-detail.live.playing").setAttribute("href",e.envivo),e.status!=="played"&&e.channel.logo&&(t.querySelector("."+e.status+" .score__date-channel").setAttribute("src",e.channel.logo),t.querySelector("."+e.status+" .score__date-channel").setAttribute("title",e.channel.title)),r&&e.status==="fixture"&&(r.querySelector(".info").innerHTML=e.date+" "+e.time,e.envivo&&this.showLiveLinkInFixtureMatch(t,e.envivo)),r&&e.status==="played"&&r.setAttribute("href",e.cronica),r&&f(r,!0);let l=t.querySelector(".left .score__players");l&&((y=e==null?void 0:e.goalPlayers)!=null&&y.goalPlayersHouse)&&(f(l,!0),t.querySelector(".left .score__players").textContent=e.goalPlayers.goalPlayersHouse.join(", "));let _=t.querySelector(".right .score__players");if(_&&((n=e==null?void 0:e.goalPlayers)!=null&&n.goalPlayersAway)&&(f(_,!0),t.querySelector(".right .score__players").textContent=e.goalPlayers.goalPlayersAway.join(", ")),e.teams[1].score_pen){let o=t.querySelector(".left .score__score .penalti");o.textContent=e.teams[0].score_pen;let u=t.querySelector(".right .score__score .penalti");u.textContent=e.teams[1].score_pen,f(o,!0),f(u,!0)}}}processMetadata(){x(["jeeiSite.mod.deportes.soccer.CommonOptaScore.processMetadata>","Procesamos los datos del marcador de f\xFAtbol",this.params],I),this.callServiceMatchesData.apply(this),this.intervalId=setInterval(()=>{x(["jeeiSite.mod.deportes.soccer.CommonOptaScore.processMetadata>setInterval","Se hace petici\xF3n a los datos cada ".concat(this.timeInterval," milisegundos"),this.params],I),this.callServiceMatchesData.apply(this)},this.timeInterval)}callServiceMatchesData(){fetch("/services/data/opta/soccer/matches/".concat(this.params.competition,"/").concat(this.params.date,"/")).then(e=>e.json()).then(e=>{let t=(0,D.default)(JSON.stringify(e)).toString();if(!this.hashInitialData||this.hashInitialData!==t){x(["jeeiSite.mod.deportes.soccer.CommonOptaScore.processMetadata>setInterval>callServiceMatchesData","Se actualizan los datos del marcador",this.params],I),this.hashInitialData=t;let y=document.getElementById(this.params.container);e.results.map(n=>{let r=y.querySelector("#match_".concat(n.idMatch));r&&this.processMatch(n,r)})}}),this.execInterval++,this.execInterval===this.maxIntervalExec&&(clearInterval(this.intervalId),this.execInterval=0)}
1checkStatusMatchManual(e){let t="played";return e.querySelector(".score__date-detail.fixture").getAttribute("data-status")==="on"?t="fixture":e.querySelector(".score__date-detail.live.playing").getAttribute("data-status")==="on"?t="playing":e.querySelector(".score__date-detail.cronica.played").getAttribute("data-status")==="on"&&(t="played"),t}showLiveLinkInFixtureMatch(e,t){e.querySelector(".score__date-detail.live.playing").setAttribute("href",t),f(e.querySelector(".score__date-detail.live.playing"),!0),f(e.querySelector(".score__date-detail.fixture"),!1)}};var A=class extends g{constructor(e){super(e)}processMetadata(){super.processMetadata()}};export{A as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.