{"version":3,"sources":["webpack:///./node_modules/primeng/fesm2015/primeng-tabview.js","webpack:///./src/app/publicComponents/change-client/change-client.component.html","webpack:///./src/app/publicComponents/change-client/change-client.component.css","webpack:///./src/app/publicComponents/change-client/change-client.component.ts","webpack:///./src/app/publicComponents/change-client/change-client.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8N;AAC/K;AACC;AACF;AACY;AACjB;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,MAAM;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,OAAO,uDAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK,gCAAgC,OAAO,oDAAM,SAAS,gEAAU,mBAAmB,GAAG;AAC3F,KAAK,OAAO,8DAAgB,EAAE;AAC9B,KAAK,OAAO,+DAAiB;AAC7B;AACA;AACA,cAAc,OAAO,mDAAK,EAAE;AAC5B,gBAAgB,OAAO,mDAAK,EAAE;AAC9B,mBAAmB,OAAO,mDAAK,EAAE;AACjC,wBAAwB,OAAO,mDAAK,EAAE;AACtC,gBAAgB,OAAO,mDAAK,EAAE;AAC9B,iBAAiB,OAAO,mDAAK,EAAE;AAC/B,aAAa,OAAO,mDAAK,EAAE;AAC3B,eAAe,OAAO,mDAAK,EAAE;AAC7B,uBAAuB,OAAO,mDAAK,EAAE;AACrC,4BAA4B,OAAO,mDAAK,EAAE;AAC1C,yBAAyB,OAAO,mDAAK,EAAE;AACvC,iBAAiB,OAAO,6DAAe,SAAS,yDAAa,IAAI;AACjE,gBAAgB,OAAO,mDAAK,EAAE;AAC9B,gBAAgB,OAAO,mDAAK,EAAE;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,0DAAY;AACxC,2BAA2B,0DAAY;AACvC,qCAAqC,0DAAY;AACjD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gDAAgD;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sDAAU;AAClC,gDAAgD,sDAAU;AAC1D,+CAA+C,sDAAU,6BAA6B,sDAAU;AAChG;AACA;AACA;AACA,KAAK,OAAO,uDAAS;AACrB;AACA;AACA;AACA;AACA;AACA,wDAAwD,wDAAwD;AAChH;AACA;AACA;AACA;AACA;AACA,gEAAgE,YAAY;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,qEAAuB;AACxD,+BAA+B,+DAAiB;AAChD,yCAAyC,mBAAmB,oBAAoB,aAAa,eAAe,qBAAqB,SAAS,UAAU,oBAAoB,sBAAsB,sBAAsB,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MAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,8EAAqB,EAAE;CAC/C,CAAC;AAoBF,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;CAAI;AAAtB,kBAAkB;IAlB9B,8DAAQ,CAAC;QACR,OAAO,EAAE;YACP,0EAAgB;YACV,4DAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;YACnC,qEAAgB;YAChB,4DAAgB;YAChB,yDAAW;YACX,6DAAa;SACd;QACD,YAAY,EAAE;YACZ,8EAAqB;SACtB;QACC,SAAS,EAAE,EAAE;QACf,OAAO,EAAE;YACP,4DAAY;YACZ,yDAAW;SACZ;KACF,CAAC;GACW,kBAAkB,CAAI;AAAJ","file":"publicComponents-change-client-change-client-module-es2015.js","sourcesContent":["import { Component, Inject, forwardRef, ViewContainerRef, ChangeDetectorRef, Input, ContentChildren, EventEmitter, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, ViewChild, Output, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { RippleModule } from 'primeng/ripple';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\n\nlet idx = 0;\nclass TabPanel {\n constructor(tabView, viewContainer, cd) {\n this.viewContainer = viewContainer;\n this.cd = cd;\n this.cache = true;\n this.tooltipPosition = 'top';\n this.tooltipPositionStyle = 'absolute';\n this.id = `p-tabpanel-${idx++}`;\n this.tabView = tabView;\n }\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'content':\n this.contentTemplate = item.template;\n break;\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n get selected() {\n return this._selected;\n }\n set selected(val) {\n this._selected = val;\n if (!this.loaded) {\n this.cd.detectChanges();\n }\n this.loaded = true;\n }\n get disabled() {\n return this._disabled;\n }\n ;\n set disabled(disabled) {\n this._disabled = disabled;\n this.tabView.cd.markForCheck();\n }\n ngOnDestroy() {\n this.view = null;\n }\n}\nTabPanel.decorators = [\n { type: Component, args: [{\n selector: 'p-tabPanel',\n template: `\n
\n \n \n \n \n
\n `\n },] }\n];\nTabPanel.ctorParameters = () => [\n { type: undefined, decorators: [{ type: Inject, args: [forwardRef(() => TabView),] }] },\n { type: ViewContainerRef },\n { type: ChangeDetectorRef }\n];\nTabPanel.propDecorators = {\n header: [{ type: Input }],\n closable: [{ type: Input }],\n headerStyle: [{ type: Input }],\n headerStyleClass: [{ type: Input }],\n leftIcon: [{ type: Input }],\n rightIcon: [{ type: Input }],\n cache: [{ type: Input }],\n tooltip: [{ type: Input }],\n tooltipPosition: [{ type: Input }],\n tooltipPositionStyle: [{ type: Input }],\n tooltipStyleClass: [{ type: Input }],\n templates: [{ type: ContentChildren, args: [PrimeTemplate,] }],\n selected: [{ type: Input }],\n disabled: [{ type: Input }]\n};\nclass TabView {\n constructor(el, cd) {\n this.el = el;\n this.cd = cd;\n this.orientation = 'top';\n this.onChange = new EventEmitter();\n this.onClose = new EventEmitter();\n this.activeIndexChange = new EventEmitter();\n }\n ngAfterContentInit() {\n this.initTabs();\n this.tabPanels.changes.subscribe(_ => {\n this.initTabs();\n });\n }\n ngAfterViewChecked() {\n if (this.tabChanged) {\n this.updateInkBar();\n this.tabChanged = false;\n }\n }\n initTabs() {\n this.tabs = this.tabPanels.toArray();\n let selectedTab = this.findSelectedTab();\n if (!selectedTab && this.tabs.length) {\n if (this.activeIndex != null && this.tabs.length > this.activeIndex)\n this.tabs[this.activeIndex].selected = true;\n else\n this.tabs[0].selected = true;\n this.tabChanged = true;\n }\n this.cd.markForCheck();\n }\n open(event, tab) {\n if (tab.disabled) {\n if (event) {\n event.preventDefault();\n }\n return;\n }\n if (!tab.selected) {\n let selectedTab = this.findSelectedTab();\n if (selectedTab) {\n selectedTab.selected = false;\n }\n this.tabChanged = true;\n tab.selected = true;\n let selectedTabIndex = this.findTabIndex(tab);\n this.preventActiveIndexPropagation = true;\n this.activeIndexChange.emit(selectedTabIndex);\n this.onChange.emit({ originalEvent: event, index: selectedTabIndex });\n }\n if (event) {\n event.preventDefault();\n }\n }\n close(event, tab) {\n if (this.controlClose) {\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab),\n close: () => {\n this.closeTab(tab);\n }\n });\n }\n else {\n this.closeTab(tab);\n this.onClose.emit({\n originalEvent: event,\n index: this.findTabIndex(tab)\n });\n }\n event.stopPropagation();\n }\n closeTab(tab) {\n if (tab.disabled) {\n return;\n }\n if (tab.selected) {\n this.tabChanged = true;\n tab.selected = false;\n for (let i = 0; i < this.tabs.length; i++) {\n let tabPanel = this.tabs[i];\n if (!tabPanel.closed && !tab.disabled) {\n tabPanel.selected = true;\n break;\n }\n }\n }\n tab.closed = true;\n }\n findSelectedTab() {\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i].selected) {\n return this.tabs[i];\n }\n }\n return null;\n }\n findTabIndex(tab) {\n let index = -1;\n for (let i = 0; i < this.tabs.length; i++) {\n if (this.tabs[i] == tab) {\n index = i;\n break;\n }\n }\n return index;\n }\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n get activeIndex() {\n return this._activeIndex;\n }\n set activeIndex(val) {\n this._activeIndex = val;\n if (this.preventActiveIndexPropagation) {\n this.preventActiveIndexPropagation = false;\n return;\n }\n if (this.tabs && this.tabs.length && this._activeIndex != null && this.tabs.length > this._activeIndex) {\n this.findSelectedTab().selected = false;\n this.tabs[this._activeIndex].selected = true;\n }\n }\n updateInkBar() {\n let tabHeader = DomHandler.findSingle(this.navbar.nativeElement, 'li.p-highlight');\n this.inkbar.nativeElement.style.width = DomHandler.getWidth(tabHeader) + 'px';\n this.inkbar.nativeElement.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.navbar.nativeElement).left + 'px';\n }\n}\nTabView.decorators = [\n { type: Component, args: [{\n selector: 'p-tabView',\n template: `\n
\n \n
\n \n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styles: [\".p-tabview-nav{-ms-flex-wrap:wrap;display:-ms-flexbox;display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.p-tabview-nav-link{-moz-user-select:none;-ms-flex-align:center;-ms-user-select:none;-webkit-user-select:none;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;overflow:hidden;position:relative;text-decoration:none;user-select:none}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1}.p-tabview-close{z-index:1}\"]\n },] }\n];\nTabView.ctorParameters = () => [\n { type: ElementRef },\n { type: ChangeDetectorRef }\n];\nTabView.propDecorators = {\n orientation: [{ type: Input }],\n style: [{ type: Input }],\n styleClass: [{ type: Input }],\n controlClose: [{ type: Input }],\n navbar: [{ type: ViewChild, args: ['navbar',] }],\n inkbar: [{ type: ViewChild, args: ['inkbar',] }],\n tabPanels: [{ type: ContentChildren, args: [TabPanel,] }],\n onChange: [{ type: Output }],\n onClose: [{ type: Output }],\n activeIndexChange: [{ type: Output }],\n activeIndex: [{ type: Input }]\n};\nclass TabViewModule {\n}\nTabViewModule.decorators = [\n { type: NgModule, args: [{\n imports: [CommonModule, SharedModule, TooltipModule, RippleModule],\n exports: [TabView, TabPanel, SharedModule],\n declarations: [TabView, TabPanel]\n },] }\n];\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TabPanel, TabView, TabViewModule };\n//# sourceMappingURL=primeng-tabview.js.map\n","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 \\r\\n

Selecciona el cliente:

\\r\\n
\\r\\n
\\r\\n
\\r\\n
\\r\\n\\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 \\r\\n
\\r\\n \\r\\n \\r\\n \\r\\n
\\r\\n \\r\\n \\r\\n\\r\\n \\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n \\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n

Por favor seleccione un cliente

\\r\\n\\r\\n
\\r\\n\\r\\n
\\r\\n
\\r\\n \\r\\n \\r\\n
\\r\\n\\r\\n \\r\\n
\\r\\n \\r\\n\\r\\n
\\r\\n
\\r\\n
\\r\\n\\r\\n
\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n\\r\\n \\r\\n\\r\\n \\r\\n \\r\\n
\\r\\n
\\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcHVibGljQ29tcG9uZW50cy9jaGFuZ2UtY2xpZW50L2NoYW5nZS1jbGllbnQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7RUFDRSxzQ0FBd0Q7RUFDeEQsaUNBQWlDO0FBQ25DIiwiZmlsZSI6InNyYy9hcHAvcHVibGljQ29tcG9uZW50cy9jaGFuZ2UtY2xpZW50L2NoYW5nZS1jbGllbnQuY29tcG9uZW50LmNzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG4uYi10aG9tYXMubG9naW4ge1xyXG4gIGJhY2tncm91bmQ6IHVybCguLi8uLi8uLi9hc3NldHMvaW1nL2JhY2suanBnKSAhaW1wb3J0YW50O1xyXG4gIGJhY2tncm91bmQtc2l6ZTogY292ZXIgIWltcG9ydGFudDtcclxufVxyXG4iXX0= */\"","/*Componente encargado de recibir la respuesta del servicio RecoveryPasswordService.\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 { RecoveryPasswordService } from '../../services/recovery-password.service';\r\n//import Messages from '../../../Messages.json';\r\nimport { NgxSpinnerService } from \"ngx-spinner\";\r\nimport { ISession } from '../../models/ISession';\r\nimport { LogoutService } from '../../services/logout.service';\r\nimport { IConsultClient } from '../../models/IConsultClient';\r\nimport { IUpdateClient } from '../../models/IUpdateClient';\r\nimport { ClientsService } from '../../services/clients.service';\r\n\r\n\r\n@Component({\r\n selector: 'app-recovery-password',\r\n templateUrl: './change-client.component.html',\r\n styleUrls: ['./change-client.component.css']\r\n})\r\n\r\nexport class ChangeClientComponent implements OnInit {\r\n\r\n clientSelected: string;\r\n Clients: string[] = [];\r\n model: any = {};\r\n ErrorMessage: string;\r\n State_OK: number = 200;\r\n dataclient: any;\r\n userName: string;\r\n State_BAD: number = 601;\r\n ClickLimit: number = 2;\r\n clientRequired: boolean = false;\r\n client: string;\r\n listClients: string;\r\n ErrorLog: string;\r\n ConsultClients: IConsultClient;\r\n UpdateClient: IUpdateClient;\r\n Session: ISession;\r\n NotCloseSession: number = 200;\r\n YesCloseSession: number = 601;\r\n\r\n\r\n ClickSuccessful(): void {\r\n\r\n this.router.navigate(['/code-recovery-password']);\r\n }\r\n constructor(\r\n private router: Router,\r\n private ClientsService: ClientsService,\r\n private LogoutService: LogoutService,\r\n private LogService: LogService,\r\n\r\n private SpinnerService: NgxSpinnerService) {\r\n\r\n }\r\n\r\n\r\n ngOnInit() {\r\n this.SpinnerService.show();\r\n this.client = sessionStorage.getItem('client');\r\n this.Clients = JSON.parse(sessionStorage.getItem('Clients'));\r\n\r\n if (this.client != '0') {\r\n this.CloseSession();\r\n }\r\n this.SpinnerService.hide();\r\n\r\n if(this.client)\r\n this.userName = sessionStorage.getItem('username');\r\n this.ConsultClients =\r\n {\r\n loginUser: this.userName\r\n };\r\n\r\n //this.ClientsService.ConsultClient(this.ConsultClients).subscribe((response: any) => {\r\n\r\n // if (response.adviserClientUsersQuery.state == '200') {\r\n // this.Clients = response.adviserClientUsersQuery.custom3;\r\n // this.SpinnerService.hide();\r\n\r\n // }\r\n\r\n // },\r\n // error => {\r\n // this.SpinnerService.hide();\r\n\r\n // });\r\n }\r\n\r\n CloseSession() {\r\n this.SpinnerService.show();\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.NotCloseSession) {\r\n this.LogoutService.GetCloseSession(this.Session).subscribe(data => {\r\n this.SpinnerService.hide();\r\n localStorage.clear();\r\n sessionStorage.clear();\r\n this.router.navigate(['/home']);\r\n },\r\n error => {\r\n this.SpinnerService.hide();\r\n this.router.navigate(['/home']);\r\n });\r\n\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 },\r\n error => {\r\n this.SpinnerService.hide();\r\n this.router.navigate(['/home']);\r\n });\r\n }\r\n\r\n changeClient(idClient) {\r\n sessionStorage.setItem('client', idClient);\r\n this.clientRequired = false;\r\n let id = parseInt(idClient);\r\n this.SpinnerService.show();\r\n if (idClient != undefined) {\r\n \r\n this.UpdateClient = {\r\n loginUser: this.userName,\r\n idClient: id\r\n }\r\n\r\n this.ClientsService.UpdateClient(this.UpdateClient).subscribe((response: any) => {\r\n\r\n this.SpinnerService.hide();\r\n this.router.navigate(['/user-applications']);\r\n })\r\n } else {\r\n this.clientRequired = true;\r\n this.SpinnerService.hide();\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\nimport { ChangeClientComponent } from './change-client.component';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { NgxSpinnerModule } from \"ngx-spinner\";\r\n\r\nimport { TabViewModule } from 'primeng/tabview';\r\nimport { TableModule } from 'primeng/table';\r\n\r\nconst routes: Routes = [\r\n { path: '', component: ChangeClientComponent },\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 TabViewModule\r\n ],\r\n declarations: [\r\n ChangeClientComponent\r\n ],\r\n providers: [], // servicios de los que depende el componente.\r\n exports: [\r\n RouterModule,\r\n TableModule\r\n ]\r\n})\r\nexport class ChangeClientModule { }\r\n"],"sourceRoot":""}