PageSourceSearch

https://www.world.rugby/krc-resources/prod/krc_v_rims0.1.1/scripts/main.min.js

js world.rugby collected 2026-09-24 08:46:22 UTC 11,807 bytes, 1 lines download raw bytes

1"use strict";!function(i,e){i.account="worldrugby",i.accountHeader={label:"account",value:"worldrugby"},i.templates={},i.common={},i.defaultLanguage="EN",i.widgets={},i.paths=[{label:"dev",api:"//cmsapidev.pulselive.com",crmApi:"//crmapidev.pulselive.com",domain:["dev-wr.pulselive.com"],cdn:"//dev-wr.pulselive.com/krc-resources/{$KRC_RES_VER$}/",contentRanking:"https://1s73fflkpi.execute-api.us-east-1.amazonaws.com/LATEST/interactions",sso:{auth:"https://sso.wr.dev.pulselive.com/auth",account:"https://sso.wr.dev.pulselive.com/auth/realms/WorldRugby/account",id:"wr-websites-dev",realm:"WorldRugby"}},{label:"prod",api:"//api.wr-rims-prod.pulselive.com",crmApi:"//crmapi.pulselive.com",domain:["www.world.rugby"],cdn:"//www.world.rugby/krc-resources/{$KRC_RES_VER$}/",contentRanking:"https://dksgav0dl6.execute-api.us-east-1.amazonaws.com/LATEST/interactions",sso:{auth:"https://sso.world.rugby/auth",account:"https://sso.world.rugby/auth/realms/WorldRugby/account",id:"wr-websites",realm:"WorldRugby"}},{label:"rimsprod",api:"//api.wr-rims-prod.pulselive.com",crmApi:"//crmapi.pulselive.com",domain:["web.worldrugby-rims.pulselive.com"],cdn:"//web.worldrugby-rims.pulselive.com/krc-resources/{$KRC_RES_VER$}/",contentRanking:"https://dksgav0dl6.execute-api.us-east-1.amazonaws.com/LATEST/interactions",sso:{auth:"https://sso.world.rugby/auth",account:"https://sso.world.rugby/auth/realms/WorldRugby/account",id:"wr-websites",realm:"WorldRugby"}},{label:"staging",api:"//api.wr.staging.pulselive.com",crmApi:"//crmapi.pulselive.com",domain:["wr.staging.pulselive.com"],cdn:"//wr.staging.pulselive.com/krc-resources/{$KRC_RES_VER$}/",contentRanking:"https://dksgav0dl6.execute-api.us-east-1.amazonaws.com/LATEST/interactions",sso:{auth:"https://sso.world.rugby/auth",account:"https://sso.world.rugby/auth/realms/WorldRugby/account",id:"wr-websites",realm:"WorldRugby"}},{label:"test",api:"//cmsapitest.pulselive.com",crmApi:"//crmapitest.pulselive.com",domain:["test-wr.pulselive.com"],cdn:"//test-wr.pulselive.com/krc-resources/{$KRC_RES_VER$}/",contentRanking:"https://3ghi7maz44.execute-api.us-east-1.amazonaws.com/LATEST/interactions",sso:{auth:"https://sso.wr.test.pulselive.com/auth",account:"https://sso.wr.test.pulselive.com/auth/realms/WorldRugby/account",id:"wr-websites-test",realm:"WorldRugby"}}].map(function(e){return e.cdn=e.cdn.replace("{$KRC_RES_VER$}",window.KRC_RES_VER),e}),i.checkEnvironment=function(){for(var e=window.location.hostname,t=void 0,o=0;o<i.paths.length;o++){var n=i.paths[o];if("undefined"!=typeof browsersyncProxy&&("localhost"===e||/^(?=.*[^\.]$)((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.?){4}$/gim.test(e))){browsersyncProxy=browsersyncProxy.replace("https://","");var r=i.paths.findIndex(function(e){return-1<e.domain.indexOf(browsersyncProxy)});(t=i.paths[r]).cdn="/";break}if(Array.isArray(n.domain)){var a=s(n.domain,e);if(a){n.domain=a,(t=n).cdn="/krc-resources/"+window.KRC_RES_VER+"/";break}}else if(e===n.domain||e.match(new RegExp(n.domain))){t=n;break}}return t||console.error("There are no app.paths defined for this domain"),t};var s=function(e,t){for(var o=0;o<e.length;o++){var n=e[o];if(t===n||t.match(new RegExp(n)))return n}return null};i.cookiePrefix="krc_",i.essentialCookies=[{name:"cookie-privacy_policy",expiry:"100"},{name:"store-all-cookies",expiry:"100"}],i.environment=i.checkEnvironment();var t=function(){var e=window.innerHeight/100;document.documentElement.style.setProperty("--vh",e+"px")};document.addEventListener("DOMContentLoaded",function(){i.I18N.setup(),objectFitImages(),t(),e.event.windowResize.add({method:function(){t()}})})}(PULSE.app,PULSE.core),function(e,t,o,n){e.FilterGroups={}}(PULSE.app,PULSE.app.common,PULSE.core,PULSE.I18N),PULSE.app.breakpoints={mobile:400,mobileMin:401,mobileLg:500,mobileLgMin:501,phablet:640,phabletMin:641,tablet:840,tabletMin:841,desktop:1024,desktopMin:1025,wide:1300,wideMin:1301};var SUPPORTED_LANGUAGES=["en","fr","es","ja"],COOKIE_VALID_DAYS=30;!function(n,r){n.I18N={},n.I18N.setup=function(){var e=r.localStorage.getStorage("req_language",!0),t=n.defaultLanguage.toLowerCase();if(e&&-1===SUPPORTED_LANGUAGES.indexOf(e))return PULSE.core.localStorage.setStorage("req_language",t,COOKIE_VALID_DAYS,!0),PULSE.core.localStorage.setStorage("req_languageReload",t,COOKIE_VALID_DAYS,!0),void window.location.reload();n.language=e||t;var o=new n.I18N.Translator(PULSE.I18N);PULSE.I18N||(PULSE.I18N={}),PULSE.I18N.lookup=function(){return o.lookup.apply(o,arguments)},PULSE.I18N.lookupKey=function(){return o.lookupKey.apply(o,arguments)},void 0!==window.moment&&(n.I18N.enOverride(),moment.locale(n.language))},n.I18N.enOverride=function(){moment.locale("en",{longDateFormat:{LT:"HH:mm",LTS:"h:mm:ss A",l:"DD/MM",L:"DD/MM/YYYY",ll:"D MMMM",LL:"D MMMM YYYY",lll:"MMM D YYYY LT",LLL:"MMMM Do YYYY LT",llll:"ddd MMM D YYYY",LLLL:"dddd, MMMM Do YYYY"},yearFirst:!1})},n.I18N.Translator=function(e){var t=this;t.hasTranslations=!1,t.language=n.language,e?(t.hasTranslations=!0,t.language!==e.language&&(void 0===e.language&&console.warn("Language mismatch! Using "+e.language),t.language=e.language),t.translations=e.translations||{},t.hasTranslations=!0):(t.hasTranslations=!1,t.translations={})},n.I18N.Translator.prototype.lookup=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e&&t){var o=this.lookupKey(e);for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=new RegExp("\\${"+n+"}","gi");o=o.replace(r,t[n])}return o}return""},n.I18N.Translator.prototype.lookupKey=function(e){return this.hasTranslations&&this.translations[e]||e}}(PULSE.app,PULSE.core),function(i){i.templating={},i.templating.helper={},i.templating.render=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1],e=arguments[2],n="";for(var r in i.templating)i.templating.hasOwnProperty(r)&&(t[r]=i.templating[r]);if(t.helper.template=i.common.template,o){var a=i.templates[o];if(a){try{n=a(t)}catch(e){e.message&&(e.message+=" in template "+o),console.warn(e),console.info("Model given",t)}if(e)return s(n)}else console.warn("No template was rendered. Template not found: "+o)}return n};var s=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild};i.templating.helper.manageTags=function(e){var t="news";return 0<e.length&&e.forEach(function(e){"news"!==e.label&&(t=e.label)}),t}}(PULSE.app),function(e,t){e.webView=function(){"true"===(t.url.getParameterByName("webView")||t.url.getParameterByName("webview"))&&(document.querySelector(".main-header").style.display="none",document.querySelector(".main-footer").style.display="none")}}(PULSE.app,PULSE.core),function(s){switch(s.widgetDeps=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-script]")),o=[],n=s.environment.cdn+"widgets/",r="production"===s.environment.label?".min.js":".js",a=0;a<t.length;a++)i(t[a].dataset.script);function i(e){if(o.indexOf(e)<0){o.push(e);var t=document.createElement("script");t.type="text/javascript",t.src=n+e+r,document.body.appendChild(t)}}},document.readyState){case"interactive":case"complete":s.webView(),s.widgetDeps();break;default:document.addEventListener("DOMContentLoaded",function(){s.webView(),s.widgetDeps()})}}(PULSE.app),function(s){s.widgetInitialiser={},s.widgetInitialiser.addWidget=function(e,t){var o=t||s[c(e)],n=document.querySelector('[data-widget="'+e+'"]');n&&"true"!==n.getAttribute("data-initialised")&&(s.widgets[e]=new o(n),n.setAttribute("data-initialised",!0))},s.widgetInitialiser.addMultipleWidgetsByName=function(e,t,o){for(var n=o||document,r=t||s[c(e)],a=n.querySelectorAll('[data-widget="'+e+'"]'),i=0;i<a.length;i++)l(e,a[i],r)},s.widgetInitialiser.addWidgets=function(e){for(var t=(e||document).querySelectorAll("[data-widget]"),o=0;o<t.length;o++){var n=t[o].getAttribute("data-constructor"),r=t[o].getAttribute("data-widget");!n&&r&&(n=c(r)),s.hasOwnProperty(n)&&l(r,t[o],s[n])}};var l=function(e,t,o){"true"!==t.getAttribute("data-initialised")&&(s.widgets[e]||(s.widgets[e]=[]),s.widgets[e].push(new o(t)),t.setAttribute("data-initialised",!0))},c=function(e){return e.toLowerCase().replace(/(\b|-)\w/g,function(e){return e.toUpperCase().replace(/-/,"")})+"Widget"}}(PULSE.app);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function deepFreeze(t){if(BROWSER_HELPER.isIE())return t;try{Object.freeze(t)}catch(e){return t}var o="function"==typeof t,n=Object.prototype.hasOwnProperty;return o||Object.getOwnPropertyNames(t).forEach(function(e){!n.call(t,e)||o&&("caller"===e||"callee"===e||"arguments"===e)||null===t[e]||"object"!==_typeof(t[e])||Object.isFrozen(t[e])||deepFreeze(t[e])}),t}var BROWSER_HELPER=function(e){var t=function(){return!!document.documentMode};return{isEdge:function(){return!t()&&!!window.StyleMedia},isIE:t}}(PULSE.core),CLONE_HELPER={cloneArray:function(e){return[].slice.call(e)},cloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneObject:function(e){return _.clone(e)}},onReady=function(e){this.SSO.ready=!0,document.dispatchEvent(new CustomEvent(this.settings.onReadyEventName||"SSO.READY",{detail:{ready:!0}})),this.settings.onReadyCallback&&this.settings.onReadyCallback(e)}
1,onAuthError=function(){console.warn("SSO Authentication Error"),PULSE.core.localStorage.clearStorage("kc_token"),PULSE.core.localStorage.clearStorage("kc_refreshToken")},onTokenExpired=function(){var e=this;e.SSO.updateToken().success(function(){PULSE.core.localStorage.setStorage("kc_token",e.SSO.token),PULSE.core.localStorage.setStorage("kc_refreshToken",e.SSO.refreshToken)}).error(function(){console.warn("failed to update token on expired removing tokens from localStorage"),PULSE.core.localStorage.clearStorage("kc_token"),PULSE.core.localStorage.clearStorage("kc_refreshToken")})},PulseliveSSO=function(e){var t=this;if("undefined"!=typeof Keycloak)if("string"==typeof e.kcUrl)if("string"==typeof e.kcRealm){if("string"==typeof e.kcClientId){t.SSO=new Keycloak({url:e.kcUrl,realm:e.kcRealm,clientId:e.kcClientId}),t.settings=e,t.SSO.onReady=onReady.bind(t),t.SSO.onAuthError=onAuthError.bind(t),t.SSO.onTokenExpired=onTokenExpired.bind(t);var o=localStorage.getItem("kc_token"),n=localStorage.getItem("kc_refreshToken");try{t.SSO.init({onLoad:"check-sso",token:o,refreshToken:n,timeSkew:0}).success(function(e){e?(PULSE.core.localStorage.setStorage("kc_token",t.SSO.token),PULSE.core.localStorage.setStorage("kc_refreshToken",t.SSO.refreshToken)):(PULSE.core.localStorage.clearStorage("kc_token"),PULSE.core.localStorage.clearStorage("kc_refreshToken"))}).error(function(e){console.warn("SSO init error: "+e)})}catch(e){return void console.warn("Error initiating SSO: "+e)}return t.SSO}console.warn("PulseliveSSO config error: config.kcClientId must be provided as a string")}else console.warn("PulseliveSSO config error: config.kcRealm must be provided as a string");else console.warn("PulseliveSSO config error: config.kcUrl must be provided as a string");else console.warn("PulseliveSSO config error: window.Keycloak is not available")};!function(r,e){var t=function(e){var t=document.querySelectorAll(".js-sso-display"),o=e?"common.sso-authenticated":"common.sso-unauthenticated",n={sso:r.SSO,redirectUri:encodeURI(window.location.href),locale:r.language?r.language:"en"};[].forEach.call(t,function(e){e.innerHTML=r.templating.render(n,o)})};document.addEventListener("DOMContentLoaded",function(){r.SSO=new PulseliveSSO({kcUrl:r.environment.sso.auth,kcRealm:r.environment.sso.realm,kcClientId:r.environment.sso.id,onReadyEventName:e.constants.SSO.ready,onReadyCallback:t})})}(PULSE.app,PULSE.app.common);

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.