1import{a as s}from"./js.cookie.5NsoCi1B.js";import{v as d}from"./Variables.CVo6TFh0.js";function m(){const n=document.getElementById("username"),o=document.getElementById("password"),t=document.querySelector('#login-form input[type="submit"]');if(!n||!o){console.error("Login fields not found. Cannot proceed.");return}const i=n.value,a=o.value;t&&(t.value="Logging in...",t.disabled=!0);let r={username:i,password:a};fetch(d.API_URL+"/User/AuthenticateExternal",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}).then(e=>e.ok?e.json():e.text().then(l=>{throw new Error(l||"Network response was not ok")})).then(e=>{if(console.log(e),!e.Item1||e.Item1.JWTToken===void 0)alert("Login failed, invalid credentials");else{s.set("jwttokenMenafn",e.Item1.JWTToken,{expires:360}),s.set("user_id",e.Item2,{expires:360}),s.set("usernameMenafn",i,{expires:360}),s.set("p_provider",e.Item3,{expires:360}),window.location.href="/pr_press_release";return}}).catch(e=>{alert("Login Failed: "+(e.message||"Check network or API availability."))}).finally(()=>{const e=document.querySelector('#login-form input[type="submit"]');e&&window.location.href.indexOf("/pr_press_release")===-1&&(e.value="Log in",e.disabled=!1)})}window.addEventListener("load",function(){const n=document.getElementById("login-form");n?n.addEventListener("submit",function(o){o.preventDefault(),m()}):console.error("Login form with id='login-form' not found after full page load.")});document.addEventListener("DOMContentLoaded",()=>{const n=document.getElementById("subscribeBtn");n&&n.addEventListener("click",()=>{const t=document.getElementById("Email")?.value.trim()||"";if(t===""){alert("Please enter an email address.");return}let i="";const a=document.getElementsByName("News");for(const r of a)if(r.checked){i=r.value;break}window.location.href=`../MF/Nl_sub?Email=${encodeURIComponent(t)}&News=${i}`})});
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.