PageSourceSearch

https://cdn-images.the-express.com/js/dist/newsletter20260922.min.js

js the-express.com collected 2026-09-24 15:34:46 UTC 4,822 bytes, 1 lines download raw bytes

1(()=>{"use strict";let e=null;function t(t){return window.grecaptcha&&"function"==typeof window.grecaptcha.ready?Promise.resolve():e||(e=new Promise((e,n)=>{const o=document.querySelector("script[data-newsletter-recaptcha]");if(o)return o.addEventListener("load",()=>e(),{once:!0}),void o.addEventListener("error",()=>n(new Error("Failed to load reCAPTCHA script.")),{once:!0});const c=document.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://www.google.com/recaptcha/api.js?render="+encodeURIComponent(t),c.setAttribute("data-newsletter-recaptcha","true"),c.onload=()=>e(),c.onerror=()=>n(new Error("Failed to load reCAPTCHA script.")),document.head.appendChild(c)}),e)}function n(e){const n=e.context,o=e.rootClass||".newsletter-pure",c=e.pure360Endpoint||"/app/subscribe/",r=e.successMessage||"Thank you for subscribing.",s=e.invalidEmailMessage||"Invalid email.",i=e.genericErrorMessage||"There was an error processing your request. Please try again later.",a=e.recaptchaAction||"subscribe";let d=null,u=null;function l(){return n.querySelector(`${o} .t`)}function p(){return n.querySelector(`${o} .error`)}function y(){return n.querySelector("[data-nfsubmit]")}function f(e){const t=p();t&&(t.style.display="block",t.innerText=e)}function m(){const e=l();e&&e.classList.remove("subscribing")}function g(){const g=n.querySelector(`${o} [name=emailAddress]`);if(y()?d&&u&&d.removeEventListener("click",u):ExpressApp.Log("[SkinnySignup] Submit element not found."),!g)return void S();const h=g.value,b=g.dataset.pure360||"",v={consentAccepted:n.querySelector(`${o} [name=consentAccepted][type=checkbox]`).checked?"true":"false",consentStatementId:n.querySelector(`${o} [name=consentStatementId]`).value,consentStatementText:n.querySelector(`${o} [data-cst]`).textContent};return function(){const e=p();e&&(e.style.display="none",e.innerText="")}(),""!==(w=h)&&/^(([^<>()[\]\\.,:\s@"]+(\.[^<>()[\]\\.,:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(w)?b?(function(){const e=l();e&&e.classList.add("subscribing")}(),void t(e.recaptchaKey).then(()=>{if(!window.grecaptcha)throw new Error("reCAPTCHA not available.");window.grecaptcha.ready(()=>{window.grecaptcha.execute(e.recaptchaKey,{action:a}).then(t=>{var a;!function(t,a,d,u=null,p=null){let y="",g="";u&&(y="&signupSource="+encodeURIComponent(u.signupSource)+"&subSignupSource="+encodeURIComponent(u.subSignupSource)),p&&(g="&consentAccepted="+encodeURIComponent(p.consentAccepted)+"&consentStatementId="+encodeURIComponent(p.consentStatementId)+"&consentStatementText="+encodeURIComponent(p.consentStatementText)),fetch(c+t+"/skinny",{method:"POST",headers:{"Content-type":"application/x-www-form-urlencoded"},body:"emailAddress="+encodeURIComponent(a)+"&recaptcha_token="+encodeURIComponent(d)+y+g}).then(e=>e.json()).then(t=>{var c;m(),"SUCCESS"===t.result?(function(){const e=l(),t=n.querySelector(o);e&&(t.style.height=t.offsetHeight+"px",t.offsetHeight>480?(t.style.padding="0px",t.style.border="0px"):(t.style.paddingTop="0px",t.style.paddingBottom="0px"),e.classList.add("success"),e.innerHTML=r)}(),null===(c=e.onSuccess)||void 0===c||c.call(e)):f(s)}).catch(()=>{m(),f(i)})}(b,h,t,null!==(a=e.trackingData)&&void 0!==a?a:null,v)}).catch(()=>{m(),f(i)})})}).catch(()=>{m(),f(i),S()})):(f(i),void S()):(f(s),void S());var w}function h(){e.recaptchaKey?t(e.recaptchaKey).catch(()=>{ExpressApp.Log("[SkinnySignup] Failed to preload recaptcha.")}):ExpressApp.Log("[SkinnySignup] Missing recaptcha key.")}function S(){const e=y();e?(d&&u&&d.removeEventListener("click",u),u=()=>{g()},function(){const e=n.querySelector(`${o} .t label.container`),t=n.querySelector(`${o}`).style.borderColor;e.style.setProperty("--checked-color",t)}(),d=e,d.addEventListener("click",u)):ExpressApp.Log("[SkinnySignup] Submit element not found.")}return{bind:S,subscribe:g,preloadRecaptcha:h,observe:function(){const e=y();if(!e||!("IntersectionObserver"in window))return void h();const t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(h(),t.unobserve(e.target))})});t.observe(e)},destroy:function(){d&&u&&d.removeEventListener("click",u),d=null,u=null}}}function o(){window.setTimeout(()=>
1{ExpressApp.Log("[timeout] M/R - Subscribe - 500"),function(){const e=(window.innerWidth>=980?document.querySelector(".newsletter-subsection-desktop"):null)||document;if(!e.querySelector("[data-nfsubmit]"))return void ExpressApp.Log("[SkinnySignup] Submit element not found.");const t=n({context:e,recaptchaKey:"6LdfQIgkAAAAADLK7jAbil0vcg0hzZM8GQv5qQyz",pure360Endpoint:"/app/subscribe/"});t.observe(),t.bind()}()},500)}window.addEventListener("DOMContentLoaded",function(){document.addEventListener("tcfLoaded",()=>{o()}),"undefined"!=typeof flagTcfLoaded&&flagTcfLoaded&&o()})})();

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.