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AAgC,OAAO,KAAK,uBAAuB;AACntC;AACA;;;;;;;;;;;AClDA;AACA,4CAA4C,mBAAO,CAAC,iFAAsE;AAC1H,kCAAkC,mBAAO,CAAC,0EAA+D;AACzG;AACA;AACA,iDAAiD,kEAAkE;AACnH;AACA","sources":["./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.module.ts","./src/app/auth/login/login.component.ts","./src/app/shared/components/layout/full-layout/full-layout.component.ts","./src/app/shared/guard/SecureInnerPagesGuard.guard.ts","./src/app/shared/guard/admin.guard.ts","./src/app/shared/routes/full.routes.ts","./src/app/shared/services/firebase/auth.service.ts","./src/environments/environment.ts","./src/main.ts","./src/polyfills.ts","./src/app/app.component.scss","./src/app/auth/login/login.component.scss","./src/app/shared/components/layout/full-layout/full-layout.component.scss"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes, PreloadAllModules } from '@angular/router';\r\nimport { LoginComponent } from './auth/login/login.component';\r\nimport { ContentLayoutComponent } from './shared/components/layout/content-layout/content-layout.component';\r\nimport { FullLayoutComponent } from './shared/components/layout/full-layout/full-layout.component';\r\nimport { content } from './shared/routes/content-routes';\r\nimport { full } from './shared/routes/full.routes';\r\nimport { AdminGuard } from './shared/guard/admin.guard';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n redirectTo: 'prefornecedor',\r\n pathMatch: 'full'\r\n },\r\n /*,\r\n {\r\n path: 'auth/login',\r\n component: LoginComponent\r\n },\r\n {\r\n path: '',\r\n component: ContentLayoutComponent,\r\n // canActivate: [AdminGuard],\r\n children: content\r\n },*/\r\n {\r\n path: '',\r\n component: FullLayoutComponent,\r\n // canActivate: [AdminGuard],\r\n children: full\r\n },\r\n {\r\n path: '**',\r\n redirectTo: ''\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, {\r\n preloadingStrategy: PreloadAllModules,\r\n anchorScrolling: 'enabled',\r\n scrollPositionRestoration: 'enabled'\r\n})],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent {\r\n title = 'Pré-Cadastro Fornecedor Cetrel';\r\n}\r\n\r\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { SharedModule } from './shared/shared.module';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\nimport { HttpClient, HttpClientModule } from '@angular/common/http';\r\nimport { AppComponent } from './app.component';\r\nimport { LoginComponent } from './auth/login/login.component';\r\nimport { ToastrModule } from 'ngx-toastr';\r\n\r\nimport { AuthService } from './shared/services/firebase/auth.service';\r\nimport { AdminGuard } from './shared/guard/admin.guard';\r\nimport { SecureInnerPagesGuard } from './shared/guard/SecureInnerPagesGuard.guard';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n// import { AngularFireModule } from \"@angular/fire\";\r\n// import { AngularFireAuthModule } from \"@angular/fire/auth\";\r\n\r\nimport { environment } from '../environments/environment';\r\n// import { AngularFirestoreModule } from '@angular/fire/firestore';\r\n// import { TokeninvalidoComponent } from './precadastro/src/app/pages/precadastro/tokeninvalido/tokeninvalido.component';\r\n\r\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\n\r\nexport function HttpLoaderFactory(http: HttpClient) {\r\n return new TranslateHttpLoader(http, \"./assets/i18n/\", \".json\");\r\n}\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n LoginComponent\r\n ],\r\n imports: [\r\n FontAwesomeModule,\r\n BrowserModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n BrowserAnimationsModule,\r\n // SharedModule,\r\n AppRoutingModule,\r\n HttpClientModule,\r\n ToastrModule.forRoot(),\r\n HttpClientModule,\r\n // TranslateModule.forRoot({\r\n // loader: {\r\n // provide: TranslateLoader,\r\n // useFactory: HttpLoaderFactory,\r\n // deps: [HttpClient]\r\n // },\r\n // }),\r\n // AngularFireModule.initializeApp(environment.firebase),\r\n // AngularFireAuthModule,\r\n //AngularFirestoreModule,\r\n\r\n ],\r\n providers: [AuthService, AdminGuard, SecureInnerPagesGuard, CookieService],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { FormBuilder, Validators, FormGroup } from '@angular/forms';\r\n// import { AngularFireAuth } from '@angular/fire/auth';\r\nimport { AuthService } from '../../shared/services/firebase/auth.service';\r\n\r\ntype UserFields = 'email' | 'password';\r\ntype FormErrors = { [u in UserFields]: string };\r\n\r\n@Component({\r\n selector: 'app-login',\r\n template: './login.component.html',\r\n styleUrls: ['./login.component.scss']\r\n})\r\nexport class LoginComponent implements OnInit {\r\n\r\n public newUser = false;\r\n // public user: firebase.User;\r\n public loginForm: FormGroup;\r\n public formErrors: FormErrors = {\r\n 'email': '',\r\n 'password': '',\r\n };\r\n public errorMessage: any;\r\n\r\n constructor(public authService: AuthService,\r\n // private afauth: AngularFireAuth,\r\n private fb: FormBuilder,\r\n private router: Router) {\r\n this.loginForm = fb.group({\r\n email: ['test@gmail.com', [Validators.required, Validators.email]],\r\n password: ['test123', Validators.required]\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n // Login With Google\r\n loginGoogle() {\r\n this.authService.GoogleAuth();\r\n }\r\n\r\n // Login With Twitter\r\n loginTwitter(): void {\r\n this.authService.signInTwitter();\r\n }\r\n\r\n // Login With Facebook\r\n loginFacebook() {\r\n this.authService.signInFacebok();\r\n }\r\n\r\n // Simple Login\r\n login() {\r\n this.authService.SignIn(this.loginForm.value['email'], this.loginForm.value['password']);\r\n }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-full-layout',\r\n templateUrl: './full-layout.component.html',\r\n styleUrls: ['./full-layout.component.scss']\r\n})\r\nexport class FullLayoutComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit() { }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { AuthService } from '../services/firebase/auth.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class SecureInnerPagesGuard implements CanActivate {\r\n constructor(private authService: AuthService, private router: Router) { }\r\n canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot): Observable | Promise | boolean {\r\n let user = JSON.parse(localStorage.getItem('user')!);\r\n if (this.authService.isLoggedIn) {\r\n window.alert(\"You are not allowed to access this URL!\");\r\n this.router.navigate(['/dashboard/default'])\r\n }\r\n return true;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { AuthService } from '../services/firebase/auth.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AdminGuard implements CanActivate {\r\n constructor(public authService: AuthService,\r\n public router: Router) { }\r\n canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean {\r\n // Guard for user is login or not\r\n let user = JSON.parse(localStorage.getItem('user')!);\r\n if (!user) {\r\n this.router.navigate(['/auth/login']);\r\n return true\r\n }\r\n return true\r\n }\r\n}\r\n","import { Routes, RouterModule } from '@angular/router';\r\n\r\nexport const full: Routes = [\r\n {\r\n path: 'prefornecedor',\r\n loadChildren: () => import('../../pages/precadastro/precadastro.module').then(m => m.PreCadastroModule),\r\n },\r\n {\r\n path: 'error',\r\n loadChildren: () => import('../../pages/error-pages/error-pages.module').then(m => m.ErrorPagesModule),\r\n },\r\n {\r\n path: 'authentication',\r\n loadChildren: () => import('../../pages/authentication/authentication.module').then(m => m.AuthenticationModule),\r\n },\r\n {\r\n path: 'comingsoon',\r\n loadChildren: () => import('../../pages/coming-soon/coming-soon.module').then(m => m.ComingSoonModule),\r\n }\r\n \r\n]","import { Injectable, OnInit, NgZone } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n// import { auth } from 'firebase/app';\r\n// import { AngularFireAuth } from '@angular/fire/auth';\r\n// import { AngularFirestore, AngularFirestoreDocument } from '@angular/fire/firestore';\r\nimport * as firebase from 'firebase/app';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { CookieService } from 'ngx-cookie-service';\r\n\r\nexport interface User {\r\n uid: string;\r\n email: string;\r\n displayName: string;\r\n photoURL: string;\r\n emailVerified: boolean;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthService implements OnInit {\r\n\r\n public userData: any;\r\n // public user: firebase.User;\r\n private _sessionId!: string;\r\n public showLoader: boolean = false;\r\n\r\n constructor(\r\n // public afs: AngularFirestore,\r\n // public afAuth: AngularFireAuth,\r\n public router: Router,\r\n public ngZone: NgZone,\r\n public toster: ToastrService,\r\n private cookieService: CookieService) {\r\n\r\n // this.afAuth.authState.subscribe((user: any) => {\r\n // if (user) {\r\n // this.userData = user;\r\n // this._sessionId = this.userData;\r\n // cookieService.set('user', JSON.stringify(this.userData));\r\n // JSON.parse(cookieService.get('user'));\r\n // localStorage.setItem('user', JSON.stringify(this.userData));\r\n // JSON.parse(localStorage.getItem('user')!);\r\n // } else {\r\n // localStorage.setItem('user', '');\r\n // JSON.parse(localStorage.getItem('user')!);\r\n // }\r\n // });\r\n }\r\n\r\n ngOnInit(): void { }\r\n\r\n //sign in function\r\n SignIn(email: any, password: any) {\r\n // return this.afAuth.auth.signInWithEmailAndPassword(email, password)\r\n // .then((result: { user: { emailVerified: boolean; }; }) => {\r\n // if (result.user.emailVerified !== true) {\r\n // this.SetUserData(result.user);\r\n // this.SendVerificationMail();\r\n // this.showLoader = true;\r\n // } else {\r\n // this.showLoader = false;\r\n // this.ngZone.run(() => {\r\n // this.router.navigate(['/auth/login']);\r\n // });\r\n // }\r\n // }).catch((error: any) => {\r\n // this.toster.error('You have enter Wrong Email or Password.');\r\n // })\r\n }\r\n //main verification function\r\n SendVerificationMail() {\r\n // return this.afAuth.auth.currentUser.sendEmailVerification()\r\n // .then(() => {\r\n // this.router.navigateByUrl('/dashboard/default');\r\n // })\r\n }\r\n\r\n //Sign in with Facebook\r\n signInFacebok() {\r\n // return this.AuthLogin(new auth.FacebookAuthProvider());\r\n }\r\n\r\n //Sign in with Twitter\r\n signInTwitter() {\r\n // return this.AuthLogin(new auth.TwitterAuthProvider());\r\n }\r\n\r\n //Sign in with Google\r\n GoogleAuth() {\r\n // return this.AuthLogin(new auth.GoogleAuthProvider());\r\n }\r\n\r\n ForgotPassword(passwordResetEmail: any) {\r\n // return this.afAuth.auth.sendPasswordResetEmail(passwordResetEmail)\r\n // .then(() => {\r\n // window.alert('Password reset email sent, check your inbox.');\r\n // }).catch((error: any) => {\r\n // window.alert(error);\r\n // });\r\n }\r\n\r\n //Authentication for Login\r\n AuthLogin(provider: any) {\r\n // return this.afAuth.auth.signInWithPopup(provider)\r\n // .then((result: { user: any; }) => {\r\n // this.ngZone.run(() => {\r\n // this.router.navigate(['/dashboard/default']);\r\n // });\r\n // this.SetUserData(result.user);\r\n // }).catch((error: any) => {\r\n // window.alert(error);\r\n // });\r\n }\r\n\r\n //Set user\r\n SetUserData(user: { uid?: any; email?: any; displayName?: any; photoURL?: any; emailVerified?: any; }) {\r\n // const userRef: AngularFirestoreDocument = this.afs.doc(`users/${user.uid}`);\r\n // const userData: User = {\r\n // email: user.email,\r\n // displayName: user.displayName,\r\n // uid: user.uid,\r\n // photoURL: user.photoURL || 'assets/dashboeard/boy-2.png',\r\n // emailVerified: user.emailVerified\r\n // };\r\n // userRef.delete().then(function () {\r\n // }).catch(function () {\r\n // });\r\n // return userRef.set(userData, {\r\n // merge: true\r\n // });\r\n }\r\n\r\n // Sign out\r\n SignOut() {\r\n this.router.routeReuseStrategy.shouldReuseRoute = function () {\r\n return false;\r\n };\r\n // return this.afAuth.auth.signOut().then(() => {\r\n // this.showLoader = false;\r\n // localStorage.clear();\r\n // this.cookieService.deleteAll('user', '/auth/login');\r\n // this.router.navigate(['/auth/login']);\r\n // });\r\n }\r\n\r\n get isLoggedIn(): boolean {\r\n const user = JSON.parse(localStorage.getItem('user')!);\r\n return (user != null && user.emailVerified != false) ? true : false;\r\n }\r\n\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: true,\r\n API_URL: 'https://portalcadastro-api.dentsu.com/api/PreFornecedor',\r\n API_ROOTURL: 'https://portalcadastro-api.dentsu.com/api',\r\n \r\n // ADN 68\r\n // API_URL: 'http://10.99.1.68:8308/api/PreFornecedor',\r\n // API_ROOTURL: 'http://10.99.1.68:8308/api',\r\n\r\n //PRODUÇÃO OMNICOM\r\n // API_URL: 'https://webapp231538.ip-45-79-173-198.cloudezapp.io/api/PreFornecedor',\r\n // API_ROOTURL: 'https://webapp231538.ip-45-79-173-198.cloudezapp.io/api',\r\n \r\n //HOMOLOGAÇÃO OMNICOM\r\n // API_URL: 'https://webapp322798.ip-45-79-22-180.cloudezapp.io/api/PreFornecedor',\r\n // API_ROOTURL: 'https://webapp322798.ip-45-79-22-180.cloudezapp.io/api',\r\n\r\n // HOMOLOGAÇÃO DAN\r\n // API_URL: 'http://br-test-precadastro-adn-api.americas.media.global.loc/api/PreFornecedor',\r\n // API_ROOTURL: 'http://br-test-precadastro-adn-api.americas.media.global.loc/api',\r\n\r\n // PRODUÇÃO DAN\r\n // API_URL: 'https://portalcadastro-api.dentsu.com/api/PreFornecedor',\r\n // API_ROOTURL: 'https://portalcadastro-api.dentsu.com/api',\r\n \r\n firebase: {\r\n apiKey: 'YOUR_APIKEY',\r\n authDomain: 'YOUR_AUTH_DOMAIN',\r\n databaseURL: 'YOUR_DATABASE_URL',\r\n projectId: 'YOUR_PROJECT_ID',\r\n storageBucket: 'universal-angular-85d7e.appspot.com',\r\n messagingSenderId: 'YOUR_MESSAGE_SENDER_ID',\r\n appId: 'YOUR_APPID'\r\n }\r\n};\r\n ","import '../../precadastro/src/polyfills';\r\n\r\nimport { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n","/**\r\n * This file includes polyfills needed by Angular and is loaded before the app.\r\n * You can add your own extra polyfills to this file.\r\n *\r\n * This file is divided into 2 sections:\r\n * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.\r\n * 2. Application imports. Files imported after ZoneJS that should be loaded before your main\r\n * file.\r\n *\r\n * The current setup is for so-called \"evergreen\" browsers; the last versions of browsers that\r\n * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),\r\n * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.\r\n *\r\n * Learn more in https://angular.io/guide/browser-support\r\n */\r\n\r\n/***************************************************************************************************\r\n * BROWSER POLYFILLS\r\n */\r\n\r\n(window as any).global = window;\r\n\r\n/** IE9, IE10 and IE11 requires all of the following polyfills. **/\r\nimport 'core-js/es/symbol';\r\nimport 'core-js/es/object';\r\nimport 'core-js/es/function';\r\nimport 'core-js/es/parse-int';\r\nimport 'core-js/es/parse-float';\r\nimport 'core-js/es/number';\r\nimport 'core-js/es/math';\r\nimport 'core-js/es/string';\r\nimport 'core-js/es/date';\r\nimport 'core-js/es/array';\r\nimport 'core-js/es/regexp';\r\nimport 'core-js/es/map';\r\nimport 'core-js/es/weak-map';\r\nimport 'core-js/es/set';\r\nimport '@angular/localize/init';\r\n/**\r\n * If the application will be indexed by Google Search, the following is required.\r\n * Googlebot uses a renderer based on Chrome 41.\r\n * https://developers.google.com/search/docs/guides/rendering\r\n **/\r\nimport 'core-js/es/array'; // Run `npm install --save classlist.js`.\r\n\r\n/** IE10 and IE11 requires the following for the Reflect API. */\r\nimport 'core-js/es/reflect'; // Run `npm install --save web-animations-js`.\r\n\r\n/**\r\n * By default, zone.js will patch all possible macroTask and DomEvents\r\n * user can disable parts of macroTask/DomEvents patch by setting following flags\r\n */\r\n\r\n // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame\r\n // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick\r\n // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames\r\n\r\n /*\r\n * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js\r\n * with the following flag, it will bypass `zone.js` patch for IE/Edge\r\n */\r\n// (window as any).__Zone_enable_cross_context_check = true;\r\n\r\n/***************************************************************************************************\r\n * Zone JS is required by default for Angular itself.\r\n */\r\nimport 'zone.js'; // Included with Angular CLI.\r\n\r\n\r\n/***************************************************************************************************\r\n * APPLICATION IMPORTS\r\n */\r\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.loader--text {\n position: absolute;\n top: 200%;\n left: 0;\n right: 0;\n margin: auto;\n}\n\n.loader--text:after {\n content: \"Loading\";\n font-weight: bold;\n animation-name: loading-text;\n animation-duration: 3s;\n animation-iteration-count: infinite;\n}\n\n@keyframes loader {\n 15% {\n transform: translateX(0);\n }\n 45% {\n transform: translateX(230px);\n }\n 65% {\n transform: translateX(230px);\n }\n 95% {\n transform: translateX(0);\n }\n}\n@keyframes loading-text {\n 0% {\n content: \"Loading\";\n }\n 25% {\n content: \"Loading.\";\n }\n 50% {\n content: \"Loading..\";\n }\n 75% {\n content: \"Loading...\";\n }\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/auth/login/login.component.scss\"],\"names\":[],\"mappings\":\"AAAA;EACE,kBAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,YAAA;AACF;;AACA;EACE,kBAAA;EACA,iBAAA;EACA,4BAAA;EACA,sBAAA;EACA,mCAAA;AAEF;;AACA;EACE;IACE,wBAAA;EAEF;EAAA;IACE,4BAAA;EAEF;EAAA;IACE,4BAAA;EAEF;EAAA;IACE,wBAAA;EAEF;AACF;AAAA;EACE;IACE,kBAAA;EAEF;EAAA;IACE,mBAAA;EAEF;EAAA;IACE,oBAAA;EAEF;EAAA;IACE,qBAAA;EAEF;AACF\",\"sourcesContent\":[\".loader--text {\\r\\n position: absolute;\\r\\n top: 200%;\\r\\n left: 0;\\r\\n right: 0;\\r\\n margin: auto;\\r\\n}\\r\\n.loader--text:after {\\r\\n content: \\\"Loading\\\";\\r\\n font-weight: bold;\\r\\n animation-name: loading-text;\\r\\n animation-duration: 3s;\\r\\n animation-iteration-count: infinite;\\r\\n}\\r\\n\\r\\n@keyframes loader {\\r\\n 15% {\\r\\n transform: translateX(0);\\r\\n }\\r\\n 45% {\\r\\n transform: translateX(230px);\\r\\n }\\r\\n 65% {\\r\\n transform: translateX(230px);\\r\\n }\\r\\n 95% {\\r\\n transform: translateX(0);\\r\\n }\\r\\n}\\r\\n@keyframes loading-text {\\r\\n 0% {\\r\\n content: \\\"Loading\\\";\\r\\n }\\r\\n 25% {\\r\\n content: \\\"Loading.\\\";\\r\\n }\\r\\n 50% {\\r\\n content: \\\"Loading..\\\";\\r\\n }\\r\\n 75% {\\r\\n content: \\\"Loading...\\\";\\r\\n }\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["NgModule","RouterModule","PreloadAllModules","FullLayoutComponent","full","routes","path","redirectTo","pathMatch","component","children","AppRoutingModule","__decorate","imports","forRoot","preloadingStrategy","anchorScrolling","scrollPositionRestoration","exports","Component","AppComponent","constructor","title","selector","template","__NG_CLI_RESOURCE__0","BrowserModule","FormsModule","ReactiveFormsModule","BrowserAnimationsModule","TranslateHttpLoader","HttpClientModule","LoginComponent","ToastrModule","AuthService","AdminGuard","SecureInnerPagesGuard","CookieService","FontAwesomeModule","HttpLoaderFactory","http","AppModule","declarations","providers","bootstrap","Router","FormBuilder","Validators","authService","fb","router","newUser","formErrors","loginForm","group","email","required","password","ngOnInit","loginGoogle","GoogleAuth","loginTwitter","signInTwitter","loginFacebook","signInFacebok","login","SignIn","value","_","Injectable","canActivate","next","state","user","JSON","parse","localStorage","getItem","isLoggedIn","window","alert","navigate","providedIn","loadChildren","then","m","PreCadastroModule","ErrorPagesModule","AuthenticationModule","ComingSoonModule","NgZone","ToastrService","ngZone","toster","cookieService","showLoader","SendVerificationMail","ForgotPassword","passwordResetEmail","AuthLogin","provider","SetUserData","SignOut","routeReuseStrategy","shouldReuseRoute","emailVerified","environment","production","API_URL","API_ROOTURL","firebase","apiKey","authDomain","databaseURL","projectId","storageBucket","messagingSenderId","appId","enableProdMode","platformBrowserDynamic","bootstrapModule","catch","err","console","error","global"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}