PageSourceSearch

https://www.rangers.co.uk/modules/custom/clubcast_core/js/fixture_ajax.2f0b7a05392bc6c92270.js?tlvk0i

js rangers.co.uk collected 2026-09-24 19:50:16 UTC 8,088 bytes, 2 lines download raw bytes

1(self.webpackChunkclubcast=self.webpackChunkclubcast||[]).push([[206992,250458,445113,477471,535211,555526,664242,670941,774319,899097,920832],{134780(t,e,r){"use strict";var n=r(434880),o=(r(123792),r(327495),r(725440),r(962953),r(261653)),a=r(435047),s=r(930766),i=r(216762),c=r.n(i),u=r(908142),l=r.n(u),f=r(673383),p=r(644922),h=r(1434),_=r(833511),d=r(148100),y=r(988120),v=r(72596),m=r(490179);const g=new class{constructor(){this._ajax=h.R}attach(t,e){if(!e.bundle)return void console.warn("[LiveFixtureUiAjax] Cannot attach to element with missing data-bundle",t);const r=(0,o.S)(e.startTime,{in:(0,s.Ay)()}),n=e.coverage||"",a=(0,f.Ay)("FixtureProvider",t=>t.observe(e.bundle,e,{id:e.id,externalId:e.externalId,legacyId:e.legacyId,matchStatus:e.matchStatus,start_time:r},!0,n)).pipe((0,_.M)(e=>{this.replaceTokens(t,e)}),(0,d.T)(t=>({data:t,query:this._buildQuery(t,e)})),(0,y.F)((t,e)=>l()(t.query,e.query)),(0,v.n)(({data:t,query:e})=>this._ajax.getJSON((0,m.e)("api/v2/fixture/ajax/")+t.id+(0,p.DZ)(e)).pipe((0,d.T)(e=>({response:e,data:t}))))).subscribe(({response:e,data:r})=>{this.update(e.html,t,r)});t.__fixture_ajax_subscription=a}detach(t){const e=t.__fixture_ajax_subscription;e&&e.unsubscribe()}update(t,e,r){const n=document.createRange();n.selectNode(e.parentElement);const o=n.createContextualFragment(t).querySelector(".js--fixture-ajax");this.updateAttributes(e,o),this.migratePicture(e,o),this.migrateImg(e,o),this.migrateElements(e,o,".js--fixture-ajax-save",t=>t.getAttribute("class"));const a=o.querySelector(".m-match-centre-hero__date");a&&a.querySelector(".js--usertime")||this.migrateElements(e,o,".m-match-centre-hero__date",()=>"m-match-centre-hero-date"),this.preserveCountdownClassVariant(e,o),this.replaceTokens(o,r),Drupal.detachBehaviors(e),e.replaceChildren(...o.childNodes),Drupal.attachBehaviors(e)}preserveCountdownClassVariant(t,e){const r=["d","h","m","s"];for(const n of r){const r=`js--live-fixture-countdown-${n}`,o=`js--live-fixture-countdown-${n}0`,a=null!==t.querySelector(`.${o}`),s=null!==t.querySelector(`.${r}`);if(!a&&!s)continue;const i=a?o:r,c=a?r:o;for(const t of e.querySelectorAll(`.${r}, .${o}`))t.classList.remove(c),t.classList.add(i)}}updateAttributes(t,e){for(const r of e.attributes)t.hasAttribute(r.name)&&t.getAttribute(r.name)===r.value||t.setAttribute(r.name,r.value);for(const r of t.attributes)e.hasAttribute(r.name)||t.removeAttribute(r.name)}migratePicture(t,e){this.migrateElements(t,e,"picture",t=>{const e=t.querySelector("img");return[...t.querySelectorAll("source")].map(t=>t.srcset+t.media+t.sizes).join("|")+"|"+(e?e.srcset+e.src+e.sizes:"")})}migrateImg(t,e){this.migrateElements(t,e,"img",t=>!t.closest("picture")&&t.srcset+t.src+t.sizes)}_buildQuery(t,e){const r={ms:t.matchStatus,st:(0,a._)(t.start_time),tbc:t.tbc?1:0,hs:t.home_score,as:t.away_score,display:e.displayMode};if(t.scoreEntries)for(const e of Object.keys(t.scoreEntries))r[`se${e}`]=t.scoreEntries[e].home_score+":"+t.scoreEntries[e].away_score;return r}migrateElements(t,e,r,n){let o={};for(const t of e.querySelectorAll(r)){const e=n(t);!1!==e&&(o[e]||(o[e]=[]),o[e].push(t))}for(const e of t.querySelectorAll(r)){const t=n(e);!1!==t&&(o[t]&&(o[t][0].replaceWith(e),o[t].shift(),0===o[t].length&&delete o[t]))}}replaceTokens(t,e){for(const r of t.querySelectorAll("[data-live-fixture-token]")){const t=c()(e,r.getAttribute("data-live-fixture-token"));if(null!=t){const e=r.getAttribute("data-live-fixture-template");r.textContent=e?e.replace("%s",t):String(t)}else r.textContent=""}}};(0,n.A)("js--fixture-ajax",g)},216762(t,e,r){var n="__lodash_hash_undefined__",o="[object Function]",a="[object GeneratorFunction]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,h="object"==typeof self&&self&&self.Object===Object&&self,_=p||h||Function("return this")();var d,y=Array.prototype,v=Function.prototype,m=Object.prototype,g=_["__c
1ore-js_shared__"],b=(d=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",j=v.toString,x=m.hasOwnProperty,S=m.toString,A=RegExp("^"+j.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=_.Symbol,$=y.splice,q=D(_,"Map"),O=D(Object,"create"),C=w?w.prototype:void 0,E=C?C.toString:void 0;function k(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function T(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function I(t,e){for(var r=t.length;r--;)if(Q(t[r][0],e))return r;return-1}function P(t,e){var r;e=function(t,e){if(B(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||G(t))return!0;return i.test(t)||!s.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:B(r=e)?r:L(r);for(var n=0,o=e.length;null!=t&&n<o;)t=t[M(e[n++])];return n&&n==o?t:void 0}function R(t){if(!V(t)||(e=t,b&&b in e))return!1;var e,r=function(t){var e=V(t)?S.call(t):"";return e==o||e==a}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?A:f;return r.test(function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function z(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function D(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}k.prototype.clear=function(){this.__data__=O?O(null):{}},k.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},k.prototype.get=function(t){var e=this.__data__;if(O){var r=e[t];return r===n?void 0:r}return x.call(e,t)?e[t]:void 0},k.prototype.has=function(t){var e=this.__data__;return O?void 0!==e[t]:x.call(e,t)},k.prototype.set=function(t,e){return this.__data__[t]=O&&void 0===e?n:e,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(t){var e=this.__data__,r=I(e,t);return!(r<0)&&(r==e.length-1?e.pop():$.call(e,r,1),!0)},F.prototype.get=function(t){var e=this.__data__,r=I(e,t);return r<0?void 0:e[r][1]},F.prototype.has=function(t){return I(this.__data__,t)>-1},F.prototype.set=function(t,e){var r=this.__data__,n=I(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},T.prototype.clear=function(){this.__data__={hash:new k,map:new(q||F),string:new k}},T.prototype.delete=function(t){return z(this,t).delete(t)},T.prototype.get=function(t){return z(this,t).get(t)},T.prototype.has=function(t){return z(this,t).has(t)},T.prototype.set=function(t,e){return z(this,t).set(t,e),this};var L=N(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(G(t))return E?E.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return c.test(t)&&r.push(""),t.replace(u,function(t,e,n,o){r.push(n?o.replace(l,"$1"):e||t)}),r});function M(t){if("string"==typeof t||G(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function N(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var s=t.apply(this,n);return r.cache=a.set(o,s),s};return r.cache=new(N.Cache||T),r}function Q(t,e){return t===e||t!=t&&e!=e}N.Cache=T;var B=Array.isArray;function V(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function G(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==S.call(t)}t.exports=function(t,e,r){var n=null==t?void 0:P(t,e);return void 0===n?r:n}},173032(t){"use strict";t.exports=drupalSettings},941669(t){"use strict";t.exports=jQuery}},t=>{t.O(0,[297214,200528,838439,353962],()=>{return e=134780,t(t.s=e);var e});t.O()}]);
2//# sourceMappingURL=fixture_ajax.2f0b7a05392bc6c92270.js.map

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.