{"version":3,"sources":["webpack:///./src/app/privateComponents/unlockUser/unlockUser.component.html","webpack:///./src/app/privateComponents/unlockUser/unlockUser.component.css","webpack:///./src/app/privateComponents/unlockUser/unlockUser.component.ts","webpack:///./src/app/privateComponents/unlockUser/unlockUser.module.ts","webpack:///./src/app/services/Unlock.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qjIAAqjI,6/RAA6/R,wBAAwB,0DAA0D,sBAAsB,0DAA0D,6BAA6B,GAAG,+BAA+B,GAAG,4BAA4B,y2DAAy2D,kgB;;;;;;;;;;;ACA3pe,0BAA0B,qBAAqB,KAAK,mEAAmE,mY;;;;;;;;;;;;ACAvH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;6CAC6C;;;;;;;;;;AAEgB;AACpB;AACqB;AAIZ;AACY;AACd;AAEV;AAStC,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAoC9B,YAAoB,MAAc,EAAU,aAA4B,EAAU,IAAgB,EAAU,aAA4B,EAAU,cAAiC;QAA/J,WAAM,GAAN,MAAM,CAAQ;QAAU,kBAAa,GAAb,aAAa,CAAe;QAAU,SAAI,GAAJ,IAAI,CAAY;QAAU,kBAAa,GAAb,aAAa,CAAe;QAAU,mBAAc,GAAd,cAAc,CAAmB;QAlCnL,aAAQ,GAAW,GAAG,CAAC;QACvB,cAAS,GAAW,GAAG,CAAC;QACxB,WAAM,GAAG,KAAK,CAAC;QACf,gBAAW,GAAG,KAAK,CAAC;QACpB,YAAO,GAAG,KAAK,CAAC;QAChB,eAAU,GAAG,KAAK,CAAC;QACnB,UAAK,GAAQ,EAAE,CAAC;QAChB,0BAA0B;QAC1B,cAAS,GAAa,CAAC,aAAa,CAAC,CAAC;QAEtC,gBAAW,GAAY,IAAI,CAAC;QAC5B,4BAAuB,GAAG,KAAK,CAAC;QAEhC,gBAAW,GAAW,WAAW,CAAC;QAClC,kBAAa,GAAW,aAAa,CAAC;QAOtC,iBAAY,GAAG,IAAI,C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C;CAGF;;YA1B2B,+DAAU;YAAe,uDAAU;;AAHlD,aAAa;IAJzB,gEAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;qCAK0B,+DAAU,EAAe,uDAAU;GAHlD,aAAa,CA6BzB;AA7ByB","file":"privateComponents-unlockUser-unlockUser-module-es2015.js","sourcesContent":["module.exports = \"\\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
\\r\\n
\\r\\n \\r\\n
\\r\\n
Desbloquear Usuario
Encuentra y desbloquea un usuario bloqueado\\r\\n
\\r\\n
\\r\\n \\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n\\r\\n
\\r\\n
\\r\\n

\\r\\n Ingresa uno de los datos del formulario para buscar el usuario bloqueado\\r\\n a gestionar.\\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 Los datos ingresados están errados o no existen. Reintenta o cancela el\\r\\n requerimiento.\\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
Resultado Búsqueda Usuario Bloqueado
\\r\\n Selecciona un usuario para desbloquear, marca tu casilla de la izquierda. Solo podrás seleccionar un usuario para desbloquear. Filtra los resultados dando clic en cada icono: .\\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 De A a Z\\r\\n De Z a 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 De A a Z\\r\\n De Z a 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 De A a Z\\r\\n De Z a 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 De A a Z\\r\\n De Z a 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 {{DatafromTable.userName}}\\r\\n {{DatafromTable.userId}}\\r\\n {{DatafromTable.userFirstName}} {{DatafromTable.secondFirstName}} {{DatafromTable.userLastName}}\\r\\n \\r\\n \\r\\n Bloqueado\\r\\n \\r\\n \\r\\n Desbloqueado\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n No hay resultados encontrados.\\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

Usuario desbloqueado con éxito.

\\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 = \".selec {\\r\\n color: #00532a;\\r\\n}\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcHJpdmF0ZUNvbXBvbmVudHMvdW5sb2NrVXNlci91bmxvY2tVc2VyLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxjQUFjO0FBQ2hCIiwiZmlsZSI6InNyYy9hcHAvcHJpdmF0ZUNvbXBvbmVudHMvdW5sb2NrVXNlci91bmxvY2tVc2VyLmNvbXBvbmVudC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuc2VsZWMge1xyXG4gIGNvbG9yOiAjMDA1MzJhO1xyXG59XHJcblxyXG5cclxuXHJcblxyXG4iXX0= */\"","/*Componente encargado de recibir la respuesta del servicio UnlockService.\r\nPermite el desbloqueo de usuario por parte */\r\n\r\nimport { Component, OnInit, ViewChild } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { UnlockService } from '../../services/Unlock.service';\r\nimport { IUnlock } from '../../models/IUnlock';\r\nimport { ISession } from '../../models/ISession';\r\nimport { IMail } from '../../models/IMail';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { LogoutService } from '../../services/logout.service';\r\nimport { NgxSpinnerService } from \"ngx-spinner\";\r\nimport { LazyLoadEvent } from 'primeng/api';\r\nimport { Table } from 'primeng/table';\r\n\r\n\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './unlockUser.component.html',\r\n styleUrls: ['./unlockUser.component.css']\r\n})\r\n\r\nexport class UnlockUserComponent implements OnInit {\r\n\r\n State_OK: number = 200;\r\n State_BAD: number = 601;\r\n IsShow = false;\r\n IsShowError = false;\r\n IsShowB = false;\r\n IsShowLock = false;\r\n Model: any = {};\r\n //Message: any = Messages;\r\n itemsUser: string[] = [\"DESBLOQUEAR\"];\r\n Name: string;\r\n disabledBtn: boolean = true;\r\n IsShowSuccessfulMessage = false;\r\n Lock: string;\r\n MessageLock: string = \"BLOQUEADO\";\r\n MessageUnLock: string = \"DESBLOQUEAR\";\r\n LockMessage: string;\r\n selected: boolean;\r\n UserName: string;\r\n Email: string;\r\n ErrorEmpty: string;\r\n ErrorMessage: string;\r\n ButtonSearch = true;\r\n StateLock: string = \"1\";\r\n StateUnlock: string = \"0\";\r\n YesCloseSession: number = 601;\r\n usrUnlocked: boolean = false;\r\n ID: string;\r\n Session: ISession;\r\n IsShowUnLock = false;\r\n DatafromTable = new Array();\r\n private order: string;\r\n\r\n @ViewChild('dt', { static: false }) table: Table;\r\n\r\n constructor(private router: Router, private UnlockService: UnlockService, private http: HttpClient, private LogoutService: LogoutService, private SpinnerService: NgxSpinnerService) {\r\n\r\n }\r\n\r\n ngOnInit() {\r\n \r\n \r\n this.Session = { Token: sessionStorage.getItem('cookieFront'), LoginUser: sessionStorage.getItem('username') };\r\n this.LogoutService.GetCallSession(this.Session).subscribe(data => {\r\n this.SpinnerService.show();\r\n if (data.state == this.YesCloseSession) {\r\n this.SpinnerService.hide();\r\n localStorage.clear();\r\n sessionStorage.clear();\r\n this.router.navigate(['/home']);\r\n }\r\n this.SpinnerService.hide();\r\n })\r\n\r\n if (sessionStorage.getItem('Admin') == \"0\" || sessionStorage.getItem('Admin') == null) {\r\n this.SpinnerService.hide();\r\n alert(\"No posee permisos para ingresar a esta página\");\r\n this.router.navigate(['/user-application']);\r\n }\r\n };\r\n userSelected(e) {\r\n debugger\r\n if (e.value.userUnlocking == \"1\" && e.checked == true) {\r\n this.disabledBtn = false;\r\n } else {\r\n this.disabledBtn = true;\r\n }\r\n }\r\n\r\n ClickClose(){\r\n this.router.navigate(['/user-application']);\r\n }\r\n checkValue() {\r\n if (this.selected == false) {\r\n this.IsShowB = false;\r\n }\r\n\r\n if (this.selected == true) {\r\n this.IsShowB = true;\r\n }\r\n }\r\n\r\n Search() {\r\n this.usrUnlocked = false;\r\n this.IsShowB = false;\r\n this.SpinnerService.show();\r\n this.IsShowError = false;\r\n this.IsShowLock = false;\r\n let Find: IUnlock = { UserLogin: this.Model[\"userName\"], Email: this.Model[\"Email\"], FlagSave: null };\r\n this.UnlockService.GetUserInfo(Find).subscribe((data: any) => {\r\n this.DatafromTable = data.result;\r\n this.IsShowB = true;\r\n this.SpinnerService.hide()\r\n\r\n if (data.result[0].state == this.State_BAD) {\r\n this.ErrorMessage = data.result[0].messagess;\r\n this.IsShowError = true;\r\n this.IsShowB = false;\r\n\r\n this.SpinnerService.hide();\r\n }\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n });\r\n }\r\n\r\n Save(data) {\r\n this.SpinnerService.show();\r\n \r\n this.StateLock = \"1\";\r\n \r\n let unlock: IUnlock = { UserLogin: data.userName, Email: data.email, FlagSave: this.StateLock };\r\n this.UnlockService.SetUnLock(unlock).subscribe((response: any) => {\r\n this.SpinnerService.show();\r\n if (response.userName == null) {\r\n\r\n this.usrUnlocked = true;\r\n this.SpinnerService.hide();\r\n this.IsShowLock = !this.IsShowLock;\r\n this.IsShow = false;\r\n this.Model[\"userName\"] = null;\r\n this.Model[\"Email\"] = null;\r\n\r\n }\r\n let mail: IMail = { Email: data.email, FlagEmail: this.StateLock }\r\n this.UnlockService.PostEmail(mail).subscribe((data: any) => {\r\n this.SpinnerService.hide();\r\n })\r\n this.SpinnerService.hide();\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n\r\n });\r\n }\r\n\r\n onReset() {\r\n (document.getElementById(\"form\")).reset();\r\n this.IsShowB = false;\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\nimport { UnlockUserComponent } from './unlockUser.component';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\";\r\nimport { TableModule } from 'primeng/table';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { RadioButtonModule } from 'primeng/radiobutton';\r\n\r\nconst routes: Routes = [\r\n { path: '', component: UnlockUserComponent },\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 TableModule,\r\n ButtonModule,\r\n RadioButtonModule\r\n ],\r\n declarations: [\r\n UnlockUserComponent\r\n ],\r\n providers: [], // servicios de los que depende el componente.\r\n exports: [\r\n RouterModule,\r\n TableModule,\r\n ButtonModule,\r\n RadioButtonModule\r\n ]\r\n})\r\nexport class UnlockUserModule { }\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { IUnlock } from '../models/IUnlock';\r\nimport { IMail } from '../models/IMail';\r\nimport { EnvService } from './env.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class UnlockService {\r\n private headers: HttpHeaders;\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 GetUserInfo(unlock: IUnlock)\r\n {\r\n \r\n var response = this.http.post(this.env.apiUrl + 'api/UnlockUser', unlock, { headers: this.headers });\r\n return response;\r\n }\r\n\r\n SetUnLock(unlock: IUnlock) {\r\n \r\n var response = this.http.post(this.env.apiUrl + 'api/UnlockUser', unlock, { headers: this.headers });\r\n return response;\r\n }\r\n\r\n PostEmail(mail: IMail) {\r\n \r\n var response = this.http.post(this.env.apiUrl + 'api/EmailBlock', mail, { headers: this.headers });\r\n return response;\r\n }\r\n\r\n\r\n}\r\n"],"sourceRoot":""}