{"version":3,"sources":["webpack:///./src/app/privateComponents/change-password/change-password.component.html","webpack:///./src/app/privateComponents/change-password/change-password.component.css","webpack:///./src/app/privateComponents/change-password/change-password.component.ts","webpack:///./src/app/privateComponents/change-password/change-password.module.ts","webpack:///./src/app/services/change-password.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kgFAAkgF,UAAU,u7BAAu7B,6DAA6D,qtDAAqtD,qDAAqD,8pDAA8pD,6DAA6D,0vCAA0vC,gBAAgB,wlBAAwlB,sO;;;;;;;;;;;ACAv0R,kCAAkC,kBAAkB,KAAK,oBAAoB,yBAAyB,KAAK,mCAAmC,gBAAgB,sBAAsB,OAAO,kBAAkB,oBAAoB,6BAA6B,OAAO,KAAK,yDAAyD,urB;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAjR;AAE6B;AACX;AACpB;AAOhD,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAalC,YAAoB,UAAuB,EAAU,cAAqC,EAAU,cAAiC;QAAjH,eAAU,GAAV,UAAU,CAAa;QAAU,mBAAc,GAAd,cAAc,CAAuB;QAAU,mBAAc,GAAd,cAAc,CAAmB;QATrI,oBAAe,GAAY,KAAK,CAAC;QACjC,gBAAW,GAAY,KAAK,CAAC;QAC7B,eAAU,GAAY,KAAK,CAAC;QAQ1B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;YACxC,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,yDAAU,CAAC,QAAQ,EAAE,yDAAU,CAAC,OAAO,CAAC,0EAA0E,CAAC,CAAC,CAAC;YAC1I,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,yDAAU,CAAC,QAAQ,EAAE,yDAAU,CAAC,OAAO,CAAC,0EAA0E,CAAC,CAAC,CAAC;YACxI,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,yDAAU,CAAC,QAAQ,EAAE,yDAAU,CAAC,OAAO,CAAC,0EAA0E,CAAC,CAAC,CAAC;YAC9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D,CAAC;IAEM,cAAc,CAAC,KAAU;QAE9B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,oBAAoB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CAGF;;YAZ2B,+DAAU;YAAe,uDAAU;;AAJlD,qBAAqB;IAJjC,gEAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;qCAM0B,+DAAU,EAAe,uDAAU;GAJlD,qBAAqB,CAgBjC;AAhBiC","file":"privateComponents-change-password-change-password-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 \\r\\n
\\r\\n
Cambiar Contraseña
\\r\\n Modifica aquí tu contraseña para acceder a esta plataforma.\\r\\n
\\r\\n
\\r\\n \\r\\n \\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n

Completa este fomulario para asignar una nueva contraseñ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 Campo requerido\\r\\n

\\r\\n

\\r\\n Debe contener un mínimo de ocho caracteres, conformada por letras mayúsculas, minúsculas, símbolos y números.\\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 Campo requerido\\r\\n

\\r\\n

\\r\\n Debe contener un mínimo de ocho caracteres, conformada por letras mayúsculas, minúsculas, símbolos y números.\\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 Campo requerido\\r\\n

\\r\\n

\\r\\n Debe contener un mínimo de ocho caracteres, conformada por letras mayúsculas, minúsculas, símbolos y números.\\r\\n

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

La Contraseña actual es incorrecta. Reintenta

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

El cambio de Contraseña ha sido exitoso.

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

{{msgErrorChange}}, Reintenta.

\\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 = \"/*.btnClean\\r\\n{\\r\\n width: 100%;\\r\\n}\\r\\n\\r\\n.btnChange {\\r\\n \\r\\n width: 12rem;\\r\\n}\\r\\n\\r\\n@media (max-width: 700px) {\\r\\n .sidebar {\\r\\n display: none;\\r\\n }\\r\\n .btnChange {\\r\\n width: 100%;\\r\\n margin-bottom: .7rem;\\r\\n }\\r\\n}\\r\\n*/\\r\\n\\r\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcHJpdmF0ZUNvbXBvbmVudHMvY2hhbmdlLXBhc3N3b3JkL2NoYW5nZS1wYXNzd29yZC5jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBbUJDIiwiZmlsZSI6InNyYy9hcHAvcHJpdmF0ZUNvbXBvbmVudHMvY2hhbmdlLXBhc3N3b3JkL2NoYW5nZS1wYXNzd29yZC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyouYnRuQ2xlYW5cclxue1xyXG4gIHdpZHRoOiAxMDAlO1xyXG59XHJcblxyXG4uYnRuQ2hhbmdlIHtcclxuICBcclxuICB3aWR0aDogMTJyZW07XHJcbn1cclxuXHJcbkBtZWRpYSAobWF4LXdpZHRoOiA3MDBweCkge1xyXG4gIC5zaWRlYmFyIHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbiAgfVxyXG4gIC5idG5DaGFuZ2Uge1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAuN3JlbTtcclxuICB9XHJcbn1cclxuKi9cclxuIl19 */\"","import { Component, OnInit } from '@angular/core';\r\nimport { IChangePassword } from '../../models/IChangePassword';\r\nimport { ChangePasswordService } from '../../services/change-password.service';\r\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\r\nimport { NgxSpinnerService } from \"ngx-spinner\";\r\n\r\n@Component({\r\n selector: 'app-change-password',\r\n templateUrl: './change-password.component.html',\r\n styleUrls: ['./change-password.component.css']\r\n})\r\nexport class ChangePasswordComponent implements OnInit {\r\n userPassword: FormGroup;\r\n UserName: string;\r\n IChangePassword: IChangePassword;\r\n passwordChanged: boolean = false;\r\n errorChange: boolean = false;\r\n isNotMatch: boolean = false;\r\n msgErrorChange: string;\r\n fieldNewPass: boolean;\r\n fieldCurrentPass: boolean;\r\n fieldConfirmPass: boolean;\r\n \r\n\r\n constructor(private chpassword: FormBuilder, private changePassword: ChangePasswordService, private SpinnerService: NgxSpinnerService) {\r\n this.userPassword = this.chpassword.group({\r\n currentPassword: ['', [Validators.required, Validators.pattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?.,+/()=¿{}!@$%^&*-]).{8,}$')]],\r\n newPassword: ['', [Validators.required, Validators.pattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?.,+/()=¿{}!@$%^&*-]).{8,}$')]],\r\n confirmPassword: ['', [Validators.required, Validators.pattern('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?.,+/()=¿{}!@$%^&*-]).{8,}$')]]\r\n // At least 8 characters in length, Lowercase letters, Uppercase letters, Numbers, Special characters\r\n })\r\n }\r\n\r\n ngOnInit() {\r\n this.SpinnerService.show();\r\n this.UserName = sessionStorage.getItem('username');\r\n\r\n this.SpinnerService.hide();\r\n }\r\n\r\n onChangePassword() {\r\n this.SpinnerService.show();\r\n this.errorChange = false;\r\n this.isNotMatch = false;\r\n this.passwordChanged = false;\r\n\r\n this.IChangePassword =\r\n {\r\n UserName: this.UserName,\r\n Password: this.userPassword.get('currentPassword').value,\r\n NewPassword: this.userPassword.get('newPassword').value,\r\n RepeatPassword: this.userPassword.get('confirmPassword').value,\r\n }\r\n\r\n\r\n this.changePassword.ChangePassword(this.IChangePassword).subscribe((response: any) => {\r\n this.SpinnerService.hide();\r\n \r\n if (response.state == '200') {\r\n this.passwordChanged = true;\r\n } else if (response.state = '0'){\r\n this.isNotMatch = true;\r\n this.msgErrorChange = response.message;\r\n } \r\n else {\r\n this.errorChange = true;\r\n }\r\n }, (error) => {\r\n this.SpinnerService.hide();\r\n //this.router.navigate([this.env.errorURL]);\r\n });\r\n }\r\n \r\n onReset() {\r\n this.userPassword.reset();\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\nimport { ChangePasswordComponent } from './change-password.component';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\"; \r\n\r\nconst routes: Routes = [\r\n { path: '', component: ChangePasswordComponent },\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 ChangePasswordComponent\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 ChangePasswordModule { }\r\n\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 ChangePasswordService {\r\n private headers: HttpHeaders;\r\n model: any = {};\r\n\r\n constructor(private http: HttpClient, private env: EnvService) {\r\n const headerSettings: { [name: string]: string | string[]; } = {};\r\n this.headers = new HttpHeaders(headerSettings);\r\n\r\n }\r\n\r\n public ChangePassword(model: any)\r\n {\r\n return this.http.post(this.env.apiUrl + 'api/ChangePassword', model, { headers: this.headers });\r\n }\r\n \r\n\r\n}\r\n"],"sourceRoot":""}