1"use strict";(self.webpackChunkneti_next_access_manager=self.webpackChunkneti_next_access_manager||[]).push([[20061],{61(e,t,n){n.r(t),n.d(t,{default:()=>o});let i=window.PluginBaseClass;class o extends i{init(){this.storageKey="neti_access_manager_last_url",this.hiddenName="neti_am_redirect_to";try{this.storeCurrentUrlIfAllowed(),this.injectIntoAllLoginForms()}catch(e){}}storeCurrentUrlIfAllowed(){let e=window.location.pathname||"/",t=e+(window.location.search||""),n=e.replace(/\/+$/,"")||"/";[/\/account\/login$/i,/\/account\/logout$/i,/\/checkout\/info$/i,/\/api\/customer\/update$/i].some(e=>e.test(n))||sessionStorage.setItem(this.storageKey,t)}injectIntoAllLoginForms(){let e=this.safeGetSessionItem(this.storageKey);if(e)for(let t of Array.from(document.querySelectorAll("form"))){let n=t.getAttribute("action")||"";if(!this.isAccountLoginAction(n))continue;let i=t.querySelector(`input[name="${this.hiddenName}"]`);i||((i=document.createElement("input")).type="hidden",i.name=this.hiddenName,t.appendChild(i)),i.value=e}}isAccountLoginAction(e){if(!e)return!1;let t="";try{t=new URL(e,window.location.href).pathname||""}catch(e){return!1}return(t=t.replace(/\/+$/,"")).endsWith("/account/login")}safeGetSessionItem(e){try{return sessionStorage.getItem(e)}catch(e){return null}}}}}]);
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.