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,WAAWC,MAAM,QAG/BN,GAFAA,EAAQE,KAAKH,KAAQC,EAAM,GAAK,KAAOA,EAAM,IAAOA,EAAM,GAAKC,GAAQA,MAEzDI,WAAWC,MAAM,MAChB,GAAK,KAAON,EAAM,IAAOA,EAAM,GAAKC,EAAOA,MAG5DM,mBAAmBC,GACjB,YAAqB,IAAVA,GAAkC,MAATA,GAC7BA,EAAMC,QAAQ,MAAO,IAAIC,OAAS,gDA7IhChD,GAAkBH,4BAgDnBC,iCAhDCE,EAAkBiD,+mDDd/BpD,uBAkBAA,uBAcAA,uBAcAA,uBAYAA,uBAaAA,uBAaAA,8BApFMA,oCAkBAA,0CAcAA,wCAcAA,0CAYAA,2CAaAA,+CAaAA,i7ECtEOG,GAAb","names":["AuthGuard","constructor","router","storageService","platformId","this","canActivate","route","state","isPlatformBrowser","isAuthenticated","authorizeSubject","next","authorize","url","data","navigateByUrl","i0","PLATFORM_ID","factory","StuSelectComponent","dataService","stuSelectService","EventEmitter","prices","sendNowControl","FormControl","selectControl","ngAfterViewInit","ngOnInit","loadBootsrtapNative","selectedPriceSubject","subscribe","price","priceSelected","itemsSubject","item","id","stuSelectValues","items","t","stuSelectMonths","stuSelectYears","stuSelectOfferts","selectedItem","selectedMonth","selectedYear","selectedOffert","changePrice","change","emit","changeSelectedItem","changeItem","getPriceBySms","decimalAdjust","rechargePrice","rechargeAmount","type","value","exp","Math","isNaN","NaN","toString","split","isNullOrWhiteSpace","input","replace","length","selectors"],"sources":["webpack:///src/app/guards/auth.guard.ts","webpack:///src/app/shared/components/stu-select/stu-select.component.html","webpack:///src/app/shared/components/stu-select/stu-select.component.ts"],"sourcesContent":["/**\r\n * Created by Elaine Lopez on 4/19/2019.\r\n */\r\n\r\nimport { Injectable, Inject, PLATFORM_ID } from '@angular/core';\r\nimport { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\r\nimport { StorageService } from '@app/services/storage.service';\r\nimport { isPlatformBrowser } from '@angular/common';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthGuard implements CanActivate {\r\n constructor(private router: Router,\r\n private storageService: StorageService,\r\n @Inject(PLATFORM_ID) private platformId) { }\r\n canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\r\n if (isPlatformBrowser(this.platformId)) {\r\n if (this.storageService.isAuthenticated()) {\r\n // logged in so return true\r\n return true;\r\n }\r\n // not logged in so redirect to home page\r\n this.storageService.authorizeSubject.next({ 'authorize': false, 'url': route.data.route });\r\n this.router.navigateByUrl(this.router.url);\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n}\r\n","