{"version":3,"sources":["webpack:///./src/app/privateComponents/user-applications/user-applications.component.html","webpack:///./src/app/privateComponents/user-applications/user-applications.component.css","webpack:///./src/app/privateComponents/user-applications/user-applications.component.ts","webpack:///./src/app/privateComponents/user-applications/user-applications.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,ksBAAksB,0KAA0K,iDAAiD,uDAAuD,kBAAkB,sWAAsW,kBAAkB,qMAAqM,uBAAuB,SAAS,wBAAwB,0OAA0O,qBAAqB,8UAA8U,+CAA+C,2hBAA2hB,+JAA+J,iDAAiD,uDAAuD,kBAAkB,4PAA4P,kBAAkB,+MAA+M,uBAAuB,SAAS,wBAAwB,2NAA2N,qBAAqB,yEAAyE,+CAA+C,4KAA4K,gBAAgB,oFAAoF,gBAAgB,gHAAgH,gBAAgB,6BAA6B,eAAe,yXAAyX,+CAA+C,8RAA8R,wBAAwB,4N;;;;;;;;;;;ACAljK,+DAA+D,mM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAE;AACjB;AACc;AAMqB;AAC1C;AAC2B;AAOpE,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAoBpC,YAAoB,IAAiB,EAAU,cAAiC,EAAU,sBAA+C,EAAU,aAA4B,EAAU,MAAc;QAAnL,SAAI,GAAJ,IAAI,CAAa;QAAU,mBAAc,GAAd,cAAc,CAAmB;QAAU,2BAAsB,GAAtB,sBAAsB,CAAyB;QAAU,kBAAa,GAAb,aAAa,CAAe;QAAU,WAAM,GAAN,MAAM,CAAQ;QAlBvM,YAAO,GAA8B,EAAE,CAAC;QACxC,eAAU,GAA+B,EAAE,CAAC;QAC5C,kBAAa,GAA+B,EAAE,CAAC;QAC/C,qBAAgB,GAA+B,EAAE,CAAC;QAClD,cAAS,GAAG,IAAI,KAAK,EAAE,CAAC;QAExB,oBAAe,GAAW,GAAG,CAAC;QAE9B,aAAQ,GAAW,GAAG,CAAC;QAEvB,cAAS,GAAW,GAAG,CAAC;QAIxB,aAAQ,GAAY,KAAK,CAA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I,EAAE,CAAC;iBAC5B;YACH,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAC7B,CAAC,EACC,KAAK,CAAC,EAAE;YACN,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;IACP,CAAC;CAEF;;YAtJ2B,0DAAW;YAA0B,6DAAiB;YAAkC,2FAAuB;YAAyB,sEAAa;YAAkB,sDAAM;;AApB5L,yBAAyB;IALrC,+DAAS,CAAC;QACT,QAAQ,EAAE,uBAAuB;QACjC,uMAAiD;;KAElD,CAAC;qCAqB0B,0DAAW,EAA0B,6DAAiB,EAAkC,2FAAuB,EAAyB,sEAAa,EAAkB,sDAAM;GApB5L,yBAAyB,CA0KrC;AA1KqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjBG;AACc;AAEW;AAEQ;AACS;AAE3B;AACT;AAG/C,MAAM,MAAM,GAAW;IACnB,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,sFAAyB,EAAE;CACrD,CAAC;AAiBF,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;CAAI;AAA1B,sBAAsB;IAflC,8DAAQ,CAAC;QACR,OAAO,EAAE;YACP,0EAAgB;YAChB,4DAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC7B,qEAAgB;YAChB,4DAAgB;SACjB;QACD,YAAY,EAAE;YACV,sFAAyB;SAC5B;QACC,SAAS,EAAE,CAAC,2FAAuB,CAAC;QACtC,OAAO,EAAE;YACP,4DAAY;SACb;KACF,CAAC;GACW,sBAAsB,CAAI;AAAJ","file":"privateComponents-user-applications-user-applications-module-es2015.js","sourcesContent":["module.exports = \"\\r\\n

Procesando...

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

\\r\\n Portal Único de Gestión
\\r\\n Elige uno de los productos a continuación para ingresar\\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
{{application.firstName}}{{application.secondName}}
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n

{{application.message}}

\\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 {{application.firstName}}{{application.secondName}}\\r\\n
\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n

{{application.message}}

\\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 = \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3ByaXZhdGVDb21wb25lbnRzL3VzZXItYXBwbGljYXRpb25zL3VzZXItYXBwbGljYXRpb25zLmNvbXBvbmVudC5jc3MifQ== */\"","import { Component, OnInit, AfterViewInit } from '@angular/core';\r\nimport { NgxSpinnerService } from \"ngx-spinner\";\r\nimport { LogoutService } from '../../services/logout.service';\r\nimport { ISession } from '../../models/ISession';\r\nimport { IUsuario } from '../../models/IUsuario';\r\n\r\nimport { IToken } from '../../models/IToken';\r\n\r\nimport { UserApplicationsService } from '../../services/user-applications.service';\r\nimport { Router } from '@angular/router';\r\nimport { FormGroup, FormBuilder, Validators } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'app-user-applications',\r\n templateUrl: './user-applications.component.html',\r\n styleUrls: ['./user-applications.component.css']\r\n})\r\nexport class UserApplicationsComponent implements OnInit, AfterViewInit {\r\n formOptions: FormGroup;\r\n appsIds: { [key: string]: string } = {};\r\n isShowApps: { [key: string]: boolean } = {};\r\n isShowOffApps: { [key: string]: boolean } = {};\r\n isShowButtonApps: { [key: string]: boolean } = {};\r\n arrayBtns = new Array();\r\n Session: ISession;\r\n YesCloseSession: number = 601;\r\n usuario: IUsuario;\r\n State_OK: number = 200;\r\n token: IToken;\r\n State_BAD: number = 401;\r\n adn: any;\r\n applications: any;\r\n element: HTMLElement;\r\n inactive: boolean = false;\r\n firstName: string;\r\n SecondName: string;\r\n\r\n constructor(private form: FormBuilder, private SpinnerService: NgxSpinnerService, private UserApplicationService: UserApplicationsService, private LogoutService: LogoutService, private router: Router) {\r\n this.Session = { Token: sessionStorage.getItem('cookieFront'), LoginUser: sessionStorage.getItem('username') };\r\n this.getUserApplications();\r\n \r\n this.formOptions = this.form.group({\r\n rol: ['', Validators.required],\r\n })\r\n }\r\n\r\n ngOnInit() {\r\n\r\n }\r\n\r\n ngAfterViewInit() {\r\n setTimeout(() => {\r\n this.SpinnerService.show();\r\n }, 0);\r\n }\r\n\r\n getUserApplications() {\r\n \r\n //this.LogoutService.GetCallSession(this.Session).subscribe(data => {\r\n // if (data.state == this.YesCloseSession) {\r\n // localStorage.clear();\r\n // sessionStorage.clear();\r\n // this.router.navigate(['/home']);\r\n // }\r\n //});\r\n\r\n this.usuario = { UserName: sessionStorage.getItem('username'), typeClient: sessionStorage.getItem('typeClient') };\r\n\r\n this.UserApplicationService.Login(this.usuario).subscribe((data: any) => {\r\n if (data.state == this.State_OK) {\r\n \r\n \r\n for (let app in data.custom) {\r\n if (data.custom[app].codeSystem == \"108\") {\r\n this.adn = data.custom.splice(app, 1);\r\n this.setRolsArray(this.adn);\r\n }\r\n }\r\n this.applications = data.custom;\r\n this.setRolsArray(this.applications);\r\n this.SpinnerService.hide();\r\n \r\n }\r\n else if (data.state == this.State_BAD && data.unlocking == 1) {\r\n this.SpinnerService.hide();\r\n this.router.navigate(['/login-blocked']);\r\n } else {\r\n \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 setRolsArray(applications: any) {\r\n let arr = [];\r\n var emptyRols = true;\r\n for (let key in applications) {\r\n var appName = applications[key].name;\r\n var appCodeSystem = applications[key].codeSystem;\r\n var appRols = applications[key].rols;\r\n\r\n this.appsIds[appName.trim()] = appCodeSystem;\r\n for (let keyRols in appRols) {\r\n if (appRols[keyRols].name) {\r\n emptyRols = false;\r\n }\r\n \r\n emptyRols = true;\r\n }\r\n }\r\n }\r\n\r\n setRadioSession(idApp) {\r\n var value = idApp;\r\n sessionStorage.setItem(\"codeRol\", value);\r\n\r\n }\r\n\r\n redirectToMenu(codeSystem, addressIp, codeRol) {\r\n\r\n this.SpinnerService.show();\r\n this.LogoutService.GetCallSession(this.Session).subscribe(data => {\r\n\r\n if (data.state == this.YesCloseSession) {\r\n localStorage.clear();\r\n sessionStorage.clear();\r\n this.router.navigate(['/home']);\r\n this.SpinnerService.hide();\r\n }\r\n \r\n this.token = { TokenT: sessionStorage.getItem('cookieFront'), CodeRolT: codeRol, CodeSystemT: codeSystem, LoginUserT: sessionStorage.getItem('username') }\r\n \r\n sessionStorage.setItem(\"codeSystem\", codeSystem);\r\n this.UserApplicationService.SessionToken(this.token).subscribe((data: any) => {\r\n this.SpinnerService.hide();\r\n if (this.State_OK == data.state) {\r\n var ipM = addressIp;\r\n\r\n window.open(ipM, \"_blank\");\r\n }\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 redirectToMenuADN(codeSystem, addressIp) {\r\n this.SpinnerService.show();\r\n this.LogoutService.GetCallSession(this.Session).subscribe(data => {\r\n\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\r\n this.token = {\r\n TokenT: sessionStorage.getItem('cookieFront'),\r\n CodeRolT: sessionStorage.getItem('codeRol'),\r\n CodeSystemT: codeSystem, LoginUserT: sessionStorage.getItem('username')\r\n }\r\n\r\n sessionStorage.setItem(\"codeSystem\", codeSystem);\r\n this.UserApplicationService.SessionToken(this.token).subscribe((data: any) => {\r\n if (this.State_OK == data.state) {\r\n var ipM = addressIp;\r\n window.open(ipM, \"_blank\");\r\n this.SpinnerService.hide();\r\n }\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\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 { UserApplicationsComponent } from './user-applications.component';\r\nimport { UserApplicationsService } from '../../services/user-applications.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: UserApplicationsComponent },\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 UserApplicationsComponent\r\n ],\r\n providers: [UserApplicationsService], // servicios de los que depende el componente.\r\n exports: [\r\n RouterModule\r\n ]\r\n})\r\nexport class UserApplicationsModule { }\r\n"],"sourceRoot":""}