1import{a as d}from"./chunk-NIP74ZKI.js";import{a as h,r as l}from"./chunk-RE4JJFV5.js";import"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as p}from"./chunk-KJKRX6VS.js";import"./chunk-YWHNFDXQ.js";import"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import{f as u,h as a}from"./chunk-GW33KQPR.js";import"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import"./chunk-TMOIAHHX.js";import{sa as e,za as c}from"./chunk-DJNWGYMM.js";import{ea as m,f as s}from"./chunk-VOZAGDK7.js";import"./chunk-E5QWB6YB.js";var o=(()=>{class i{api;route;notify;router;membershipService;loading;intID;chkSum;url;_unsubscribeAll;constructor(t,r,n,f,b){this.api=t,this.route=r,this.notify=n,this.router=f,this.membershipService=b,this._unsubscribeAll=new s}ngOnInit(){this.loading=!0,this.intID=this.route.snapshot.params.intID,this.chkSum=this.route.snapshot.params.chkSum,this.url=this.route.snapshot.params.url?decodeURIComponent(this.route.snapshot.params.url):null,this.api.post("External/remoteLogin",{userID:this.intID,chkSum:this.chkSum},!0).pipe(m(this._unsubscribeAll)).subscribe({next:t=>{this.loading=!1,this.membershipService.remoteLogin(t),this.url?this.router.navigateByUrl(this.url):this.router.navigateByUrl("/pages/dashboard")},error:t=>{this.notify.openAlertModal(t.error?t.error:"An error has occured",h.ERROR),this.loading=!1}})}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(r){return new(r||i)(e(p),e(u),e(l),e(a),e(d))};static \u0275cmp=c({type:i,selectors:[["remoteLogin"]],decls:0,vars:0,template:function(r,n){},encapsulation:2})}return i})();var L=[{path:":intID/:chkSum/:url",component:o},{path:":intID/:chkSum",component:o}];export{L as remoteLoginRoutes};
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.