1(()=>{"use strict";ExpressApp.LoginRadius={config:!1,atsLoaded:!1,authenticated:!1,atsData:"",showLoginWindow:!1,Init:function(e){ExpressApp.Log("[LR] Init"),this.showLoginWindow=!!decodeURIComponent((window.location.search.substring(1).match(new RegExp("au_route=([^&]*)"))||[])[1]||""),this.config=e;let t="https://cdn.images.express.co.uk/",a="logo-lr-top.jpg",i="#ff000d",n="Daily Express",o="express";window.version_us&&(t="https://cdn-images.the-express.com/",i="#08245D",n="Daily Express US",o="theexpress",a="logo-lr-top.svg");let s={rootContainerId:"auth-ui",initialRoute:"/",publicationName:n,publicationID:o,origin:"auth-ui",authUiEnv:e.authUiEnv,apiKey:e.appKey,lrDomain:e.url,newsletter:!1,oneTapNewsletter:!1,newsletterPublicationId:e.newsletterPublicationId,googleOneTap:!1,googleOneTapClientID:"",googleOneTapRoutes:[""],reCaptchaKey:"6LcEdbMaAAAAAHWi9vyOYDy03KFzfWdNhsw89zD0",consentDate:e.consentDate,enableMagicLink:!1,enableEmailCheckRecaptcha:"1"===e.enableEmailCheckRecaptcha,mailingListApiBaseUrl:e.mailingListApiBaseUrl,newslettersBaseUrl:"https://status.data-services.tm-awx.com",newslettersBaseUrlProtected:"https://status.data-services.tm-awx.com/subscriptions/secure",track:(e,t,a)=>{if(ExpressApp.Log("[LR] track",t,a),a.value&&a.value.details){const e=a.value.details.position||"",t=a.value.details.provider||"",i=a.value.details.label||"";this.GaTrack(a.category,a.name,e,t,i)}},cssVariables:{"primary-color":i,"secondary-color":"lightblue","highlighted-color":"#ff000d","lowlight-color":"#000000","regwall-edging":"linear-gradient(to bottom, #f6f9f8, #f6f9f8 48%, rgba(0, 0, 0, 0) 62%) 1 5%","light-background":"#ffffff","interactive-elems":i,"regwall-logo":'url("'+t+a+'")',logo:'url("'+t+a+'")',"labels-font":"Arial, sans-serif","copy-font":"Arial, sans-serif"}};if("1"===e.googleOneTap&&(s.googleOneTap=!0,s.googleOneTapClientID="782519552305-35elf89fdggvpphh1pn3urmcml3ibt83.apps.googleusercontent.com",s.googleOneTapRoutes=["*"]),"1"===e.oneTapNewsletter&&(s.newsletter=!0,s.oneTapNewsletter=!0,window.TMCONFIG&&window.TMCONFIG.features)){let e="We use your sign-up to provide content in ways you've consented to and to improve our understanding of you. This may include adverts from us and 3rd parties based on our understanding. You can unsubscribe at any time.";window.version_us&&(e="You agree you are 18 or over. We use your sign-up to provide content in ways you've consented to and improve our understanding of you. This may include adverts from us and third parties based on our knowledge of you. Unsubscribe at any time."),window.TMCONFIG.features.consentText=e}if("1"===e.enableMagicLink&&(s.enableMagicLink=!0),ExpressApp.Log("[LR] AuthUI init",s),window.AuthUI.init(s),"1"===e.googleOneTap){const e=new CustomEvent("auth-ui.allowOneTap",{detail:{allow:!0},cancelable:!0});ExpressApp.Log("[LR] allowOneTapEvent"),window.dispatchEvent(e)}window.addEventListener("auth-ui.authentication",t=>{var a,i;if(ExpressApp.Log("[LR] auth-ui.authentication",t.detail.user),t&&t.detail&&t.detail.user)this.UpdateWidget(t.detail.user),this.authenticated=t.detail.isAuthenticated,this.atsData=null===(i=null===(a=t.detail.user.Email)||void 0===a?void 0:a[0])||void 0===i?void 0:i.Value,this.UpdateAts(),"/users/login"===window.location.pathname&&(window.location.href="/");else if(this.authenticated=!1,ExpressApp.Log("[LR] showLoginWindow",this.showLoginWindow),this.showLoginWindow)document.getElementById("lr-login").dispatchEvent(new Event("click"));else if("1"===e.googleOneTap){const e=new CustomEvent("auth-ui.allowOneTap",{detail:{allow:!0},cancelable:!0}),t=window.dispatchEvent(e);ExpressApp.Log("[LR] allowOneTapEvent",t)}this.ChartBeatUserSubscriberStatus()}),window.atsenvelopemodule?this.atsLoaded=!0:window.addEventListener("liveramp.ats.loaded",()=>{ExpressApp.Log("[LR] liveramp.ats.loaded",!0),this.atsLoaded=!0,this.UpdateAts()}),document.getElementById("lr-login")&&document.getElementById("lr-login").addEventListener("click",function(){document.getElementById("page")&&document.getElementById("page").removeAttribute("data-menu-open"),window.dispatchEvent(new CustomEvent("auth-ui.authenticate",{detail:{origin:"header"}}))}),document.getElementById("lr-register")&&document.getElementById("lr-register").addEventListener("click",function(){document.getElementById("page")&&document.getElementById("page").removeAttribute("data-menu-open"),window.dispatchEvent(new CustomEvent("auth-ui.authenticate",{detail:{origin:"header"}}))}),document.getElementById("lr-logout")&&document.getElementById("lr-logout").addEventListener("click",function(){window.dispatchEvent(new CustomEvent("auth-ui.logout",{detail:{origin:"header"}})),ExpressApp.LoginRadius.UpdateWidget(!1)}),this.ChartBeatUserSubscriberStatus()},UpdateAts:function(){window.atsenvelopemodule&&this.authenticated&&this.atsLoaded&&""!==this.atsDataatsData&&(ExpressApp.Log("[LR] UpdateAts"),window.atsenvelopemodule.setAdditionalData({type:"email",id:this.atsData}))},GaTrack:function(e,t,a,i,n){if(void 0!==this.config.standalone)return!0;
1if(ExpressApp.Log("[LR] GaTrack"," | type: "+t," | position: "+a," | provider: "+i," | label: "+n),""!==n){let e={};e[t]={details:{label:n}},t="newsletter_subscription."+t,window.dataLayer.push({event:t,details:{label:n},newsletter_subscription:e})}else{let n={position:a};i&&(n.provider=i),window.dataLayer.push({event:e+"."+t,[e]:{[t]:{details:n}},details:n})}},UpdateWidget:function(e){if(ExpressApp.Log("[LR] UpdateWidget"),void 0!==this.config.standalone)return!0;const t=document.getElementById("lr-name"),a=document.getElementById("login-widget"),i=document.querySelectorAll(".lr-avatar");if(e){t&&(e.UserName?t.textContent=e.UserName:e.FirstName||e.LastName?t.textContent=(e.FirstName+" "+e.LastName).trim():t.textContent=e.Email[0].Value);const n=this.GetInitials(e);i.forEach(e=>{e.textContent=n}),a.classList.add("login")}else a.classList.remove("login"),t&&(t.textContent=""),i.forEach(e=>{e.textContent=""});this.ChartBeatUserSubscriberStatus()},GetInitials:function(e){let t="";e.FirstName||e.LastName?t=((e.FirstName||"")+" "+(e.LastName||"")).trim():e.UserName?t=e.UserName:e.Email&&e.Email[0]&&(t=e.Email[0].Value);const a=String(t).trim().split(/\s+/).filter(Boolean);return a.length?1===a.length?a[0].charAt(0).toUpperCase():(a[0].charAt(0)+a[a.length-1].charAt(0)).toUpperCase():""},ChartBeatUserSubscriberStatus:()=>{let e=window._cbq=window._cbq||[],t="anon";"false"!==localStorage.getItem("lrLogged")&&(t="lgdin","1"!==window.Cookies.get("PremiumSubscriptionActive")&&"1"!==window.Cookies.get("_pc_is-premium")||(t="paid")),ExpressApp.Log("[Chartbeat] _acct ",t),e.push(["_acct",t])}}})();
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.