1(()=>{"use strict";const e=()=>{const e=document.querySelector(".mepr-signup-form");if(!e)return;const t=e.querySelector('input[type="submit"]');t&&(t.addEventListener("click",async n=>{if(n.preventDefault(),!e.checkValidity())return;n.stopImmediatePropagation(),t.disabled=!0;const o=await(async()=>{const e=window.grecaptcha;return e||console.error("reCAPTCHA not initialised"),mrcsk||console.error("reCAPTCHA site key not present."),new Promise(t=>{e.enterprise.ready(async()=>{const n=await e.enterprise.execute(mrcsk,{action:"submit"});t(n)})})})();if(o&&((e,t)=>{const n=e.querySelector('input[name="recaptcha_token"]');if(n)return void(n.value=t);const o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name","recaptcha_token"),o.value=t,e.appendChild(o)})(e,o),e.classList.contains("show-notification-settings"))return(()=>{const e=new CustomEvent("signupSubmit");document.dispatchEvent(e)})(),void e.submit();e.classList.add("show-notification-settings"),t.value="Finish",t.disabled=!1;const i=document.querySelector(".metro-signup-header");i&&(i.textContent="If you would like commenting notifications, please select your preferences below")}),e.querySelectorAll("input").forEach(e=>{e.addEventListener("keydown",async e=>{"Enter"===e.key&&(e.preventDefault(),t.click())})}))},t=e=>{window.parent&&window.parent.postMessage&&window.parent.postMessage({type:"members-modal-data",action:e},"*")};(()=>{document.querySelectorAll(".cspfsl-social-login-btn").forEach(e=>{e.setAttribute("target","_blank")}),document.getElementById("mepr_loginform")&&(document.addEventListener("loginSubmitClicked",()=>{t("showLoginLoading")}),document.addEventListener("emailCheckComplete",()=>{t("showLoginIframe")})),document.addEventListener("signupSubmit",()=>{t("showSignupLoading")}),e();const n=window.location.pathname,o=String(window.metroNewsBaseUrl??"https://metro.co.uk");"/modal-login-success/"===n?(t("loginSuccess"),window.parent&&window.parent!==window||(window.location.href=`${o}/return/`)):"/modal-registration-success/"===n?(t("registrationSuccess"),window.parent&&window.parent!==window||(window.location.href=`${o}/return/`)):"/modal-login/"!==n&&"/modal-register/"!==n||t("showLoginIframe")})()})();
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.