1import{Ad as C,Cb as c,O as h,P as v,Pa as R,X as g,Y as w,Yb as E,db as k,dc as b,e as d,fb as I,ib as S,ja as x,jb as l,rc as y,u as f,v as u,w as a}from"./chunk-U6C5R4U4.js";var m=(()=>{let e=class e{constructor(i,t,o){this._router=i,this._api=t,this._dialog=o}canActivate(i,t){let o=t.url;t.url.indexOf("?")&&(o=t.url.substring(0,t.url.indexOf("?")));let p=o.split("/");return p=p.filter(s=>s!==""),o=p[0],new d(s=>{o==="resetPassword"?this._api.signInLink(decodeURIComponent(i.queryParamMap.get("link")),null).subscribe(n=>{switch(console.log("Response recover password",n),n.code){case l.OK:c.login(n.item),c.preventValidateSession(),c.setPasswordRequired(),s.next(this._router.createUrlTree(["/"]));break;case l.ALREADY_EXISTS:default:s.next(this._router.createUrlTree(["/"])),this._api.saveErrors({platform:"BACKEND",codeError:n.code,method:"signInLink",description:n.description,device:S.WEB});break}}):(this.showMessage(),s.next(this._router.createUrlTree(["/"])))})}showMessage(i){i?this._dialog.alert("Informaci\xF3n",i):this._dialog.alert("Informaci\xF3n","Este link ha expirado")}};e.\u0275fac=function(t){return new(t||e)(a(k),a(E),a(y))},e.\u0275prov=f({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var D=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h({type:e,selectors:[["app-reset-password"]],standalone:!1,decls:2,vars:0,template:function(t,o){t&1&&(g(0,"p"),x(1,"reset-password works!"),w())},encapsulation:2});let r=e;return r})();var j=[{path:"",component:D,canActivate:[m]}];var A=[m],Q=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=u({providers:[A],imports:[R,C,b,I.forChild(j)]});let r=e;return r})();export{Q as LinksModule};
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.