1import{d as h}from"./chunk-WO44ZDLT.js";import{a as s,b as a}from"./chunk-STSQKI3Q.js";import{I as c,L as o,cc as u,ec as f}from"./chunk-XUZCVUCK.js";var R=(()=>{class r{constructor(n,i,t){this.auth=n,this.router=i,this.route=t}canLoad(n,i){if(this.auth.isLoggedIn())return!0;sessionStorage.setItem(a.PARAMETER_REDIRECT,window.location.href),this.auth.obtainAccessToken()}canActivate(n,i){if(this.auth.isLoggedIn())return!0;{let t=window.location.href,e=i.url;e!=null&&e.length>0&&(e.endsWith("/")&&(e=e.substring(0,e.length-1)),e.length>0&&(t.indexOf(s.sso.serviceProviderParamPrefix)>=0&&(t=t.substring(0,t.indexOf(s.sso.serviceProviderParamPrefix)-1)),t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith(e)||(t+=e))),sessionStorage.setItem(a.PARAMETER_REDIRECT,t),this.auth.obtainAccessToken()}}static{this.\u0275fac=function(i){return new(i||r)(o(h),o(f),o(u))}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{R as a};
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.