PageSourceSearch

https://wypo.es/en/chunk-3KJJFXQD.js

js wypo.es collected 2026-10-08 20:05:16 UTC 1,116 bytes, 2 lines download raw bytes

1import{Tb as f}from"./chunk-STQDFAEN.js";import{Bd as n,Pa as h,Yd as c,be as s,ma as u,qa as i}from"./chunk-3B4MO5OE.js";var L=(()=>{let t=class t{constructor(){this.router=i(c),this.auth=i(f);let o=i(h);this.isBrowser=n(o)}canActivate(o,e){if(this.isBrowser){let r=!1;if(this.auth.isAuth&&(this.auth.user.role==="ROLE_BANCO"||this.auth.user.role==="ROLE_ADMIN")?r=!1:r=!0,(s.env==="dev"||s.env==="stg"||s.env==="test")&&console.log("[Guard][AnonGuard] Auth:",this.auth.isAuth," Result:",r," Route:",e.url),!r)if(this.auth.isAuth)switch(this.auth.user.role){case"ROLE_BANCO":this.router.navigate(["/admin"]);break;case"ROLE_ADMIN":this.router.navigate(["/admin"]);break;case"ROLE_CANAL":case"ROLE_DIST":case"ROLE_USER_DIST":this.router.navigate(["/distribuidor"]);break;default:this.router.navigate([""]);break}else this.router.navigate([""],{queryParams:{redirectURL:e.url}});return r}return!0}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u({token:t,factory:t.\u0275fac,providedIn:"root"});let a=t;return a})();export{L as a};
2/**i18n:c9191bb552137045befce55c346e87cd69faeb14b883edf961062e8565dd596d*/

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.