{"version":3,"sources":["webpack:///./src/app/publicComponents/createPassword/createPassword.component.html","webpack:///./src/app/publicComponents/createPassword/createPassword.component.css","webpack:///./src/app/publicComponents/createPassword/createPassword.component.ts","webpack:///./src/app/publicComponents/createPassword/createPassword.module.ts","webpack:///./src/app/services/hash.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kNAAkN,umCAAumC,uBAAuB,miBAAmiB,aAAa,y0BAAy0B,MAAM,iFAAiF,uBAAuB,wsBAAwsB,yCAAyC,mkBAAmkB,+CAA+C,2tBAA2tB,gDAAgD,yhBAAyhB,6DAA6D,mhBAAmhB,8CAA8C,oCAAoC,iCAAiC,mUAAmU,8CAA8C,oCAAoC,kCAAkC,yUAAyU,8CAA8C,oCAAoC,yCAAyC,yTAAyT,8CAA8C,oCAAoC,mCAAmC,8VAA8V,gCAAgC,kQAAkQ,6CAA6C,8CAA8C,2BAA2B,sNAAsN,sCAAsC,2xBAA2xB,2HAA2H,2CAA2C,2CAA2C,sCAAsC,uBAAuB,wwB;;;;;;;;;;;;;;;;;;;;;;ACAr8S,uCAAuC,6CAA6C,wCAAwC,KAAK,mDAAmD,mhB;;;;;;;;;;;;ACApL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;gFACgF;;;;;;;;;;AAE9B;AACT;AACS;AACD;AACV;AACmB;AACe;AAGzB;AAQhD,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAiB9B,YAAoB,MAAc,EAAU,IAAgB,EAAU,KAAqB,EAAU,WAAwB,EAAU,kBAAsC,EAAU,cAAiC;QAApM,WAAM,GAAN,MAAM,CAAQ;QAAU,SAAI,GAAJ,IAAI,CAAY;QAAU,UAAK,GAAL,KAAK,CAAgB;QAAU,gBAAW,GAAX,WAAW,CAAa;QAAU,uBAAkB,GAAlB,kBAAkB,CAAoB;QAAU,mBAAc,GAAd,cAAc,CAAmB;QAdxN,YAAO,GAAQ,2CAAQ,CAAC;QACxB,UAAK,GAAQ,E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AAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,UAAU,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAEvF,CAAC;CAEF;;YAT6B,+DAAU;YAAe,uDAAU;;AAJpD,WAAW;IAJvB,gEAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;qCAM4B,+DAAU,EAAe,uDAAU;GAJpD,WAAW,CAavB;AAbuB","file":"publicComponents-createPassword-createPassword-module-es2015.js","sourcesContent":["module.exports = \"
\\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 \\\"Thomas\\r\\n
\\r\\n
\\r\\n

{{text.CreatePass.Title}}

\\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\\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\"","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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcHVibGljQ29tcG9uZW50cy9jcmVhdGVQYXNzd29yZC9jcmVhdGVQYXNzd29yZC5jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQTtFQUNFLHNDQUF3RDtFQUN4RCxpQ0FBaUM7QUFDbkMiLCJmaWxlIjoic3JjL2FwcC9wdWJsaWNDb21wb25lbnRzL2NyZWF0ZVBhc3N3b3JkL2NyZWF0ZVBhc3N3b3JkLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuLmItdGhvbWFzLmxvZ2luIHtcclxuICBiYWNrZ3JvdW5kOiB1cmwoLi4vLi4vLi4vYXNzZXRzL2ltZy9iYWNrLmpwZykgIWltcG9ydGFudDtcclxuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyICFpbXBvcnRhbnQ7XHJcbn1cclxuIl19 */\"","/*Componente encargado de recibir la respuesta del microservicio HashService y NewPasswordService.\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 { HttpClient } from '@angular/common/http';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport Messages from './Messages.json';\r\nimport { HashService } from '../../services/hash.service';\r\nimport { NewPasswordService } from '../../services/new-password.service';\r\nimport { IHash } from '../../models/IHash';\r\nimport { INewPass } from '../../models/INewPass';\r\nimport { NgxSpinnerService } from \"ngx-spinner\"; \r\n\r\n@Component({\r\n selector: 'app-create',\r\n templateUrl: './createPassword.component.html',\r\n styleUrls: ['./createPassword.component.css']\r\n})\r\n\r\nexport class CreatePassComponent implements OnInit {\r\n\r\n \r\n Message: any = Messages;\r\n Model: any = {};\r\n checkbox = false;\r\n Hash: string;\r\n Email: string;\r\n emailU: string;\r\n hashU: string;\r\n State_OK: number = 200;\r\n State_BAD: number = 601;\r\n IsShowSuccessfulMessage = false;\r\n ErrorMessage: string;\r\n IsShowForm = false;\r\n IsShowPage = true;\r\n\r\n constructor(private router: Router, private http: HttpClient, private route: ActivatedRoute, private HashService: HashService, private NewPasswordService: NewPasswordService, private SpinnerService: NgxSpinnerService)\r\n {\r\n }\r\n\r\n ngOnInit() {\r\n this.SpinnerService.show();\r\n this.Hash = this.route.snapshot.queryParamMap.get('YwBvAGQA');\r\n this.Email = this.route.snapshot.queryParamMap.get('ZQBtAGEAaQBsAFUA');\r\n let Hash: IHash = { Hash: this.Hash, Email: this.Email };\r\n this.HashService.GetEmail(Hash).subscribe((data: any) => {\r\n \r\n if (data.state == this.State_OK) {\r\n this.IsShowPage = false;\r\n this.SpinnerService.hide();\r\n this.emailU = data.email;\r\n this.hashU = data.hash;\r\n }\r\n if (data.state == this.State_BAD) {\r\n this.SpinnerService.hide();\r\n // this.router.navigate(['/home']);\r\n }\r\n\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n // this.router.navigate(['/home']);\r\n });\r\n }\r\n\r\n\r\n Create() {\r\n this.SpinnerService.show();\r\n let NewPass: INewPass = { Email: this.emailU, Newpassword: this.Model[\"newpassword\"], repeatPassword: this.Model[\"repeatPassword\"], Flag: \"1\", CodeHash: this.hashU };\r\n this.NewPasswordService.NewPassword(NewPass).subscribe((data: any) => {\r\n this.SpinnerService.hide();\r\n this.IsShowSuccessfulMessage = true;\r\n if (data.state == this.State_OK) {\r\n this.IsShowSuccessfulMessage = false;\r\n this.ErrorMessage = data.message;\r\n this.IsShowForm = !this.IsShowForm;\r\n }\r\n\r\n if (data.state == this.State_BAD) {\r\n\r\n this.IsShowSuccessfulMessage = false;\r\n this.ErrorMessage = data.message\r\n }\r\n\r\n if (data.state == 0) {\r\n this.IsShowSuccessfulMessage = false;\r\n this.ErrorMessage = data.message\r\n }\r\n this.SpinnerService.hide();\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n // this.router.navigate(['/home']);\r\n });\r\n }\r\n ClickClose(): void {\r\n\r\n this.router.navigate(['/home']);\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 { CreatePassComponent } from './createPassword.component';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\"; \r\n\r\n\r\n\r\nconst routes: Routes = [\r\n { path: '', component: CreatePassComponent },\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 CreatePassComponent\r\n ],\r\n providers: [], // servicios de los que depende el componente.\r\n exports: [\r\n RouterModule\r\n ]\r\n})\r\nexport class CreatePasswordModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { EnvService } from './env.service';\r\nimport { IHash } from '../models/IHash';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class HashService {\r\n private headers: HttpHeaders;\r\n\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 public GetEmail(hash: IHash) {\r\n return this.http.post(this.env.apiUrl + 'api/Hash', hash, { headers: this.headers });\r\n\r\n }\r\n \r\n}\r\n"],"sourceRoot":""}