{"version":3,"sources":["webpack:///./src/app/publicComponents/code-recovery-password/code-recovery-password.component.html","webpack:///./src/app/publicComponents/code-recovery-password/code-recovery-password.component.css","webpack:///./src/app/publicComponents/code-recovery-password/code-recovery-password.component.ts","webpack:///./src/app/publicComponents/code-recovery-password/code-recovery-password.module.ts","webpack:///./src/app/services/code-recovery-password.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,0yEAA0yE,cAAc,kLAAkL,cAAc,+JAA+J,cAAc,mqEAAmqE,mGAAmG,2CAA2C,2CAA2C,sCAAsC,uBAAuB,suB;;;;;;;;;;;ACA9jK,uCAAuC,6CAA6C,wCAAwC,KAAK,mDAAmD,+jB;;;;;;;;;;;;ACApL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;gFACgF;;;;;;;;;;AAE9B;AACT;AAEgB;AACmC;AAC5C;AACmC;AACnF,gDAAgD;AAQhD,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;IAiBxC,YAAoB,MAAc,EAAU,2BAAwD,EAAU,cAAiC,EAAU,UAAsB,EAAU,uBAAgD;QAArN,WAAM,GAAN,MAAM,CAAQ;QAAU,gCAA2B,GAA3B,2BAA2B,CAA6B;QAAU,mBAAc,GAAd,cAAc,CAAmB;QAAU,eAAU,GAAV,UAAU,CAAY;QAAU,4BAAuB,GAAvB,uBAAuB,CAAyB;QAhBzO,UAAK,GAAQ,EAAE,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;QAGlE,WAAM,GAAG,KAAK,CAAC;QACf,gBAAW,GAAG,KAAK,CAAC;QACpB,eAAU,GAAG,IAAI,CAAC;QAClB,aAAQ,GAAW,GAAG,CAAC;QACvB,cAAS,GAAW,GAAG,CAAC;QAExB,gBAAW,GAAG,KAAK,CAAC;IAOyN,CAAC;IAL9O,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,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;AACpB;AAM3C,IAAa,2BAA2B,GAAxC,MAAa,2BAA2B;IAGpC,YAAoB,IAAgB,EAAU,GAAe;QAAzC,SAAI,GAAJ,IAAI,CAAY;QAAU,QAAG,GAAH,GAAG,CAAY;QACzD,IAAI,CAAC,OAAO,GAAG,IAAI,gEAAW,CAAC,EAAE,cAAc,EAAE,iCAAiC,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,iBAAiB,CAAC,KAAU;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,uBAAuB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CAEJ;;YAR6B,+DAAU;YAAe,uDAAU;;AAHpD,2BAA2B;IAJvC,gEAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;qCAK4B,+DAAU,EAAe,uDAAU;GAHpD,2BAA2B,CAWvC;AAXuC","file":"publicComponents-code-recovery-password-code-recovery-password-module-es2015.js","sourcesContent":["module.exports = \"
\\r\\n\\r\\n\\r\\n \\r\\n

Procesando...

\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n
Regresar
\\r\\n
\\r\\n \\\"Thomas\\r\\n
\\r\\n
\\r\\n

Recuperación de Contraseña

\\r\\n

\\r\\n ✔ Se envió un código único de seguridad a tu correo registrado para confirmar tu identidad.
\\r\\n Estará vigente solo por 15 minutos.\\r\\n

\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n

{{ErrorMessage}}

\\r\\n\\r\\n
\\r\\n
\\r\\n

{{ErrorMessage}}

\\r\\n\\r\\n
\\r\\n
\\r\\n

{{ErrorMessage}}

\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n \\r\\n \\r\\n \\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n

\\r\\n Todos los Derechos Reservados:
\\r\\n ® Manejo Técnico de Información S.A.\\r\\n

\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n\\r\\n \\r\\n\\r\\n \\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n\\r\\n
\\r\\n\"","module.exports = \"\\r\\n.b-thomas.login {\\r\\n background: url('back.jpg') !important;\\r\\n background-size: cover !important;\\r\\n}\\r\\n\\r\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcHVibGljQ29tcG9uZW50cy9jb2RlLXJlY292ZXJ5LXBhc3N3b3JkL2NvZGUtcmVjb3ZlcnktcGFzc3dvcmQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7RUFDRSxzQ0FBd0Q7RUFDeEQsaUNBQWlDO0FBQ25DIiwiZmlsZSI6InNyYy9hcHAvcHVibGljQ29tcG9uZW50cy9jb2RlLXJlY292ZXJ5LXBhc3N3b3JkL2NvZGUtcmVjb3ZlcnktcGFzc3dvcmQuY29tcG9uZW50LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG4uYi10aG9tYXMubG9naW4ge1xyXG4gIGJhY2tncm91bmQ6IHVybCguLi8uLi8uLi9hc3NldHMvaW1nL2JhY2suanBnKSAhaW1wb3J0YW50O1xyXG4gIGJhY2tncm91bmQtc2l6ZTogY292ZXIgIWltcG9ydGFudDtcclxufVxyXG4iXX0= */\"","/*Componente encargado de recibir la respuesta del servicio CodeRecoveryPasswordService.\r\nControla el comportamiento de la vista de acuerdo a la respuesta del servicio.*/\r\n\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ILogs } from '../../models/ILogs';\r\nimport { LogService } from '../../services/logs.service';\r\nimport { CodeRecoveryPasswordService } from '../../services/code-recovery-password.service';\r\nimport { NgxSpinnerService } from \"ngx-spinner\";\r\nimport { RecoveryPasswordService } from '../../services/recovery-password.service';\r\n//import Messages from '../../../Messages.json';\r\n\r\n@Component({\r\n selector: 'app-code-recovery-password',\r\n templateUrl: './code-recovery-password.component.html',\r\n styleUrls: ['./code-recovery-password.component.css']\r\n})\r\n\r\nexport class CodeRecoveryPasswordComponent implements OnInit {\r\n model: any = { emailCli: sessionStorage.getItem(\"emailSession\") };\r\n //Message: any = Messages;\r\n ErrorMessage: string;\r\n IsShow = false;\r\n IsShowEmpty = false;\r\n IsShowForm = true;\r\n State_OK: number = 200;\r\n State_BAD: number = 601;\r\n ErrorLog: string;\r\n IsShowEmail = false;\r\n\r\n ClickClose(): void {\r\n this.IsShow = false;\r\n this.IsShowForm = !this.IsShowForm;\r\n this.IsShowEmail = false;\r\n }\r\n constructor(private router: Router, private codeRecoveryPasswordService: CodeRecoveryPasswordService, private SpinnerService: NgxSpinnerService, private LogService: LogService, private RecoveryPasswordService: RecoveryPasswordService) { }\r\n\r\n ngOnInit() {\r\n \r\n }\r\n\r\n ValidateCodeEmail() {\r\n this.IsShow = false;\r\n this.IsShowEmpty = false;\r\n this.SpinnerService.show();\r\n this.codeRecoveryPasswordService.ValidateCodeEmail(this.model).subscribe((data: any) => {\r\n \r\n this.SpinnerService.show();\r\n if (data.state == this.State_OK) {\r\n \r\n this.SpinnerService.hide();\r\n this.router.navigate(['/new-password']);\r\n }\r\n\r\n if (data.state == this.State_BAD) {\r\n this.SpinnerService.hide();\r\n this.ErrorMessage = data.message\r\n this.IsShowForm = !this.IsShowForm;\r\n this.IsShow = !this.IsShow;\r\n }\r\n if (data.state == 0) {\r\n this.SpinnerService.hide();\r\n this.ErrorMessage = data.message;\r\n this.IsShowEmpty = !this.IsShowEmpty;\r\n }\r\n this.SpinnerService.hide();\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n this.ErrorMessage = error.message;\r\n this.IsShowForm = !this.IsShowForm;\r\n this.IsShow = !this.IsShow;\r\n });\r\n };\r\n\r\n SendEmailAgain() {\r\n this.SpinnerService.show();\r\n this.IsShowEmail = false;\r\n //this.IsShowEmpty = true;\r\n this.RecoveryPasswordService.RecoveryPasswordUser(JSON.parse(sessionStorage.getItem(\"EmailUser\"))).subscribe((data: any) => {\r\n \r\n this.SpinnerService.show();\r\n if (data.state == this.State_OK) {\r\n\r\n this.ErrorMessage = data.message;\r\n this.IsShowEmail = !this.IsShowEmail;\r\n this.IsShowForm = !this.IsShowForm;\r\n }\r\n this.SpinnerService.hide();\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n this.ErrorLog = error.message + \"Error en RecoveryPasswordController al llamar el microSenEmail\";\r\n let Log: ILogs = { Logs: this.ErrorLog };\r\n this.LogService.LogsError(Log).subscribe((data: any) => {\r\n\r\n if (data = true) {\r\n sessionStorage.removeItem(\"emailSession\");\r\n this.ErrorMessage = error.message;\r\n //this.IsShowEmpty = !this.IsShowEmpty;\r\n this.IsShowForm = !this.IsShowForm;\r\n this.IsShow = !this.IsShow;\r\n this.SpinnerService.hide();\r\n }\r\n this.SpinnerService.hide();\r\n });\r\n });\r\n}\r\n}\r\n\r\n\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nimport { SharedCoreModule } from './../../shared/sharedCore.module';\r\n\r\nimport { CodeRecoveryPasswordComponent } from './code-recovery-password.component';\r\nimport { CodeRecoveryPasswordService } from '../../services/code-recovery-password.service';\r\n\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\"; \r\n\r\n\r\nconst routes: Routes = [\r\n { path: '', component: CodeRecoveryPasswordComponent },\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n SharedCoreModule,\r\n RouterModule.forChild(routes),\r\n HttpClientModule,\r\n NgxSpinnerModule\r\n ],\r\n declarations: [\r\n CodeRecoveryPasswordComponent\r\n ],\r\n providers: [CodeRecoveryPasswordService], //servicios de los que depende el componente.\r\n exports: [\r\n RouterModule\r\n ]\r\n})\r\nexport class CodeRecoveryPasswordModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { EnvService } from './env.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class CodeRecoveryPasswordService {\r\n private headers: HttpHeaders;\r\n\r\n constructor(private http: HttpClient, private env: EnvService) {\r\n this.headers = new HttpHeaders({ 'Content-Type': 'application/json; charset=utf-8' });\r\n }\r\n\r\n ValidateCodeEmail(model: any) {\r\n return this.http.post(this.env.apiUrl + 'api/validateCodeEmail', model, { headers: this.headers });\r\n }\r\n\r\n}\r\n"],"sourceRoot":""}