PageSourceSearch

https://unstop.com/chunk-P4G2UQAB.js

js unstop.com collected 2026-10-02 02:40:40 UTC 1,172 bytes, 1 lines download raw bytes

1import{a as m}from"./chunk-RIY6QUVS.js";import{l as n}from"./chunk-WX25E2HZ.js";import{b as u}from"./chunk-OLSNRRTA.js";import{j as a}from"./chunk-GJNXMHJK.js";import{Fa as o,Ja as s,Me as d}from"./chunk-7DV7UWC6.js";d();var g=(()=>{class t{constructor(e,i,c){this.router=e,this.userPermissions=i,this.store=c,this.loginUrl="/auth/login",this.returnUrl="/",this.subscription=this.store.select(u).subscribe(r=>{console.log("isAuthenticated from UserPermissionGuard",r),this.isAuthenticated=r,this.isAuthenticated!=null&&!this.isAuthenticated&&this.router.navigate([this.loginUrl],{queryParams:{returnUrl:this.returnUrl}})})}canActivate(e,i){if(this.isAuthenticated!=null){if(this.userPermissions.hasAnyOneModuleAccess(e.data.moduleName))return!0}else return!0}canLoad(e,i){if(this.isAuthenticated!=null){if(e.data.loadModuleName&&this.userPermissions.hasAnyOneModuleAccess(e.data.moduleName,e.data.loadModuleName)||e.data.moduleName&&this.userPermissions.hasAnyOneModuleAccess(e.data.moduleName))return!0}else return!0}static{this.\u0275fac=function(i){return new(i||t)(s(n),s(m),s(a))}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac})}}return t})();export{g 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.