@esfaenza/admin-module 11.2.4 → 11.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function x(e,t,r,i){var o,n=arguments.length,a=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(t,r,a):o(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a}function V(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function A(e,t){var r,i,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}}Object.create;function D(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,o,n=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(D(arguments[t]));return e}Object.create;var L=function(e){function t(){var t=e.call(this)||this;return t.filteraction="",t.filterhttp="",t}return M(t,e),t}(m.AppSearch),E="/api/Adm/ChangeProcessConsumerGroup",O="/api/Adm/GetConsumerGroups#cache",j="/api/Adm/GetInfos",U="/api/Adm/GetMetrics",G="/api/Adm/GetMetrics",F="/api/Adm/GetProfilerDataNodes",H="/api/Adm/GetServerAudits",q="/api/Adm/GetServerLocks",R="/api/Adm/GetServerLogs",N="/api/Adm/GetServerWorkers",_="/api/Adm/GetTopActivities",K="/api/Adm/KillProcess",B="/api/Adm/SetProcessTracing",$=new i.InjectionToken("ADM_LOCALE"),W=new i.InjectionToken("ADM_BACKEND_URL"),Y=new i.InjectionToken("ADM_MODULE_PATH"),J=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Search Application Audits",["Ricerca Audit Applicativi"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","REST Call",["Chiamata REST"]),e.prototype.set.call(r,"en->it","Update",["Aggiornamento"]),e.prototype.set.call(r,"en->it","Route",["Route"]),e.prototype.set.call(r,"en->it","Action",["Azione"]),e.prototype.set.call(r,"en->it","HTTP Method",["Metodo HTTP"]),e.prototype.set.call(r,"en->it","Arguments",["Argomenti"]),e.prototype.set.call(r,"en->it","Object ID",["ID Oggetto"]),e.prototype.set.call(r,"en->it","Object Type",["Tipo Oggetto"]),e.prototype.set.call(r,"en->it","Object Data",["Dati Oggetto"]),e.prototype.set.call(r,"en->it","Loading Application Audits",["Carico gli Audit dell'Applicazione"]),e.prototype.set.call(r,"en->it","Date",["Data"]),e.prototype.set.call(r,"en->it","HTTP Response",["Risposta HTTP"]),e.prototype.set.call(r,"en->it","Application Error Code",["Codice Errore Applicativo"]),r}return M(t,e),t}(y.LocalizationService);J.decorators=[{type:i.Injectable}],J.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var X=function(){function e(e,t,r,i,o,n,a,s){this.lc=e,this.intercom=t,this.localStorage=r,this.http=i,this.route=o,this.location=n,this.backend=a,this.mod=s,this.searchView=new L,this.Actions=[],this.HttpMethods=[],this.searchInProgress=!1,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)}),this.HttpMethods=[{id:"GET",description:"GET"},{id:"POST",description:"POST"},{id:"PUT",description:"PUT"},{id:"PATCH",description:"PATCH"},{id:"DELETE",description:"DELETE"}],this.Actions=[{id:"C",description:this.lc.loc("REST Call")},{id:"U",description:this.lc.loc("Update")},{id:"D",description:this.lc.loc("Delete")}]}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotAudittato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serveraudits"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotAudittato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetProcesses(this.backend+H,this.searchView)):(this.searchView=new L,this.searchView.filterda=dayjs().add(-1,"month").format(this.lc.token("getSmallDateFormat")),this.searchView.filtera=dayjs().format(this.lc.token("getSmallDateFormat")),this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchInProgress=!0,e&&(this.searchView.page=1),this.POSTGetProcesses(this.backend+H,this.searchView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchInProgress=!1,r.localStorage.setItem("HotAudittato",r.searchView).subscribe()}))},e}();X.decorators=[{type:i.Component,args:[{selector:"adm_audits",viewProviders:[{provide:y.LocalizationService,useClass:J}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Audits\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 bottom-15">\r\n <form role="form">\r\n <div class="row">\r\n <div class="col-md-11">\r\n <div class="col-md-12 row app-no-padding app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterda" name="filterda" [Placeholder]="\'From\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtera" name="filtera" [Placeholder]="\'To\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filteruser" name="filteruser" [Placeholder]="\'User\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterroute" name="filterroute" [Placeholder]="\'Route\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-select [FormLayout]="false" [Validation]="false" [SelectLabel]="\'Action\' | localize : lc" [(ngModel)]="searchView.filteraction" name="filteraction" [Source]="Actions"></form-select>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-select [FormLayout]="false" [Validation]="false" [SelectLabel]="\'HTTP Method\' | localize : lc" [(ngModel)]="searchView.filterhttp" name="filterhttp" [Source]="HttpMethods"></form-select>\r\n </div>\r\n </div>\r\n <div class="col-md-12 row app-no-padding">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterargs" name="filterargs" [Placeholder]="\'Arguments\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterobjid" name="filterobjid" [Placeholder]="\'Object ID\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterobjtype" name="filterobjtype" [Placeholder]="\'Object Type\' | localize : lc"></form-input>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-md-1 app-no-padding">\r\n <button [disabled]="searchInProgress" class="input-group-addon btn app-btn-search" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Application Audits\' | localize : lc}}...</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [MultipleOrderingDirectives]="true" (onSearchRequest)="sendSearch($event);">\r\n \r\n <span *th="\'Timestamp\'">{{\'Date\' | localize : lc}}</span>\r\n <span *th="\'User\'">{{\'User\' | localize : lc}}</span>\r\n <span *th="\'Action\'">{{\'Action\' | localize : lc}}</span>\r\n <span *th="\'HttpMethod\'">{{\'HTTP Method\' | localize : lc}}</span>\r\n <span *th="\'Route\'">{{\'Route\' | localize : lc}}</span>\r\n <span *th="\'Args\'">{{\'Arguments\' | localize : lc}}</span>\r\n <span *th="\'HttpResponse\'">{{\'HTTP Response\' | localize : lc}}</span>\r\n <span *th="\'NonStdErrorMessage\'">{{\'Application Error Code\' | localize : lc}}</span>\r\n <span *th="\'ObjectType\'">{{\'Object Type\' | localize : lc}}</span>\r\n <span *th="\'ObjectId\'">{{\'Object ID\' | localize : lc}}</span>\r\n <span *th="\'ObjectData\'">{{\'Object Data\' | localize : lc}}</span>\r\n \r\n <strong *td="\'Timestamp\'; let pro">{{pro.timestamp | loc_date:\'DD/MM/YYYY HH:mm:ss\'}}</strong>\r\n <span *td="\'User\'; let pro">{{pro.user}}</span>\r\n <span *td="\'Action\'; let pro">{{pro.action}}</span>\r\n <span *td="\'HttpMethod\'; let pro">{{pro.httpmethod}}</span>\r\n <span *td="\'Route\'; let pro">{{pro.route}}</span>\r\n <span *td="\'Args\'; let pro">{{pro.args}}</span>\r\n <span *td="\'HttpResponse\'; let pro">{{pro.httpresponse}}</span>\r\n <span *td="\'NonStdErrorMessage\'; let pro">{{pro.mdmerrorcode}}</span>\r\n <span *td="\'ObjectType\'; let pro">{{pro.objecttype}}</span>\r\n <span *td="\'ObjectId\'; let pro">{{pro.objectid}}</span>\r\n <span *td="\'ObjectData\'; let pro">{{pro.objectdata}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],X.ctorParameters=function(){return[{type:y.LocalizationService},{type:P.InterComService},{type:S.PreferencesService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var Q=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),Z=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Consumer Group succesfully changed",["Gruppo di Consumo modificato con successo"]),e.prototype.set.call(r,"en->it","Errors changing Consumer Group",["Errori nella modifica del Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","Change Consumer Group",["Modifica Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","New Consumer Group",["Nuovo Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","State",["Stato"]),e.prototype.set.call(r,"en->it","Global",["Globale"]),e.prototype.set.call(r,"en->it","Search Application Processes",["Ricerca Processi Applicativi"]),e.prototype.set.call(r,"en->it","Tenant",["Operatore"]),e.prototype.set.call(r,"en->it","Errors toggling Process Tracing",["Errori nella modifica del Tracing del Processo"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","Loading Application Processes",["Carico i Processi Applicativi"]),e.prototype.set.call(r,"en->it","Activate Process Tracing",["Attiva Tracing Processo"]),e.prototype.set.call(r,"en->it","Deactivate Process Tracing",["Disattiva Tracing Progetto"]),e.prototype.set.call(r,"en->it","Kill Process",["Ammazza Processo"]),e.prototype.set.call(r,"en->it","Errors killing the Process",["Errori durante la Kill del Processo"]),e.prototype.set.call(r,"en->it","Process succesfully killed",["Processo ucciso con successo"]),e.prototype.set.call(r,"en->it","Confirm Process Kill",["Conferma Terminazione del Processo"]),e.prototype.set.call(r,"en->it","Are you sure you wish to kill the selected process? The associated user will be disconnected",["Sei sicuro di voler Terminare il processo selezionato? L'utente relativo sara' disconnesso"]),r}return M(t,e),t}(y.LocalizationService);Z.decorators=[{type:i.Injectable}],Z.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ee=function(){function e(e,t,r,i,o,n,a,s,c,l){this.utiExts=e,this.msgExts=t,this.lc=r,this.localStorage=i,this.intercom=o,this.http=n,this.route=a,this.location=s,this.backend=c,this.mod=l,this.searchView=new Q,this.DynamicOps=[],this.valueToShow="",this.newCg="",this.CGs=[],this.CgDictionariesLoaded=!1,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)}),this.DynamicOps=[new m.EsTableOperationDefinition("trace_on",this.lc.loc("Activate Process Tracing"),"fa fa-circle text-danger","","trace_enabled","N"),new m.EsTableOperationDefinition("trace_off",this.lc.loc("Deactivate Process Tracing"),"fa fa-circle text-success","","trace_enabled","Y"),new m.EsTableOperationDefinition("kill",this.lc.loc("Kill Process"),"fa fa-ban text-danger"),new m.EsTableOperationDefinition("change_cg",this.lc.loc("Change Consumer Group"),"fa fa-edit text-info")]}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotProcessato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serverworkers"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotProcessato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetProcesses(this.backend+N,this.searchView)):(this.searchView=new Q,this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetProcesses(this.backend+N,this.searchView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchView.searchinprogress=!1,r.localStorage.setItem("HotProcessato",r.searchView).subscribe()}))},e.prototype.back=function(){this.location.back()},e.prototype.onOperation=function(e){switch(e.id){case"trace_on":this.toggleTracing(e.item,!0);break;case"trace_off":this.toggleTracing(e.item,!1);break;case"kill":this.killProcess(e.item);break;case"change_cg":this.changeProcessCg(e.item)}},e.prototype.toggleTracing=function(e,t){var r=this,i=(new T.HttpParams).set("instanceid",e.properties.inst_id).set("sid",e.properties.sid).set("serial",e.properties.serial).set("enable",t.toString());this.http.get(this.backend+B,i).subscribe((function(e){r.msgExts.manageStringResponse(e,"",r.lc.loc("Errors toggling Process Tracing"),(function(){return r.sendSearch()}))}))},e.prototype.killProcess=function(e){var t=this;this.msgExts.simpleWarningWithChoice(this.lc.loc("Confirm Process Kill"),this.lc.loc("Are you sure you wish to kill the selected process? The associated user will be disconnected"),(function(){var r=(new T.HttpParams).set("instanceid",e.properties.inst_id).set("sid",e.properties.sid).set("serial",e.properties.serial);t.http.get(t.backend+K,r).subscribe((function(e){t.msgExts.manageStringResponse(e,t.lc.loc("Process succesfully killed"),t.lc.loc("Errors killing the Process"),(function(){return t.sendSearch()}))}))}))},e.prototype.changeProcessCg=function(e){this.ProcessOnEdit=e,this.CgDictionariesLoaded||(this.loadCgDictionaries(),this.CgDictionariesLoaded=!0),this.setupChangeCg(),this.dlgChangeCg.show()},e.prototype.loadCgDictionaries=function(){var e=this;this.http.get(this.backend+O).subscribe((function(t){return e.CGs=t}))},e.prototype.setupChangeCg=function(){var e=this;this.utiExts.cleanForm(this.cgFrom),setTimeout((function(){e.newCg=""}))},e.prototype.doChangeCg=function(){var e=this,t=(new T.HttpParams).set("instanceid",this.ProcessOnEdit.properties.inst_id).set("sid",this.ProcessOnEdit.properties.sid).set("serial",this.ProcessOnEdit.properties.serial).set("consumer_group",this.newCg);return this.http.get(this.backend+E,t).subscribe((function(t){e.msgExts.manageStringResponse(t,e.lc.loc("Consumer Group succesfully changed"),e.lc.loc("Errors changing Consumer Group"),(function(){return e.sendSearch()}))})),!0},e}();ee.decorators=[{type:i.Component,args:[{selector:"adm_wrk",viewProviders:[{provide:y.LocalizationService,useClass:Z}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Processes\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtertenant" name="filterTenant" [Placeholder]="\'Tenant\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filteruser" name="filterUser" [Placeholder]="\'User\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterstate" name="filterState" [Placeholder]="\'State\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10">\r\n <form-checkbox [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterglobal" name="filterglobal"></form-checkbox>&nbsp;\r\n <span class="app-pointer" (click)="searchView.filterglobal = !searchView.filterglobal">{{\'Global\' | localize : lc}}</span>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Application Processes\' | localize : lc}}...</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [DynamicOperations]="DynamicOps" [AutoUpdate]="true" [OrderByColumn]="true" (onSearchRequest)="sendSearch($event);" (onDynamicOperation)="onOperation($event)">\r\n <span class="app-nowrap" *td="\'full_wait_stack\'; let value">\r\n <span class="fa fa-list app-pointer" (click)="valueToShow = value; dlgValue.show();"></span>&nbsp;\r\n {{value.length > 70 ? value.substr(0, 67) + \'...\' : value}}\r\n </span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="app-margin-top-15">\r\n <button class="btn btn-secondary pull-left" type="button" (click)="back()">{{\'Back\' | localize : lc}}</button>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div bsModal #dlgChangeCg="bs-modal" class="modal fade" role="dialog" aria-hidden="true">\r\n <div class="modal-dialog modal-lg" cdkDrag>\r\n <div class="modal-content">\r\n <div class="modal-header" cdkDragHandle>\r\n <h4 class="modal-title pull-left">{{\'Change Consumer Group\' | localize : lc}}</h4>\r\n <button type="button" class="close pull-right" (click)="dlgChangeCg.hide()" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <form novalidate #cgFrom="ngForm" (ngSubmit)="cgFrom.valid && doChangeCg() && dlgChangeCg.hide()">\r\n <div class="modal-body">\r\n <form-select [Label]="\'New Consumer Group\' | localize : lc" [(ngModel)]="newCg" name="newcg" [Source]="CGs" required [Last]="true"></form-select>\r\n </div>\r\n <div class="modal-footer">\r\n <button type="button" class="btn btn-secondary app-margin-right-5" (click)="dlgChangeCg.hide()">{{\'Close\' | localize : lc}}</button>\r\n <button type="submit" class="btn btn-primary">{{\'Confirm\' | localize : lc}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div bsModal #dlgValue="bs-modal" class="modal fade" role="dialog" aria-hidden="true">\r\n <div class="modal-dialog modal-xl" app-draggable=".modal-header">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title pull-left">\r\n Full Wait Stack\r\n </h5>\r\n <button type="button" class="close pull-right" (click)="dlgValue.hide()" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <div class="modal-body app-padidng-bottom-20 app-padding-top-20">\r\n <span class="app-wrap">\r\n {{valueToShow}}\r\n </span>\r\n </div>\r\n <div class="modal-footer">\r\n <button type="button" class="btn btn-primary" (click)="dlgValue.hide()">Chiudi</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],ee.ctorParameters=function(){return[{type:P.UtilityService},{type:P.MessageService},{type:y.LocalizationService},{type:S.PreferencesService},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]},ee.propDecorators={cgFrom:[{type:i.ViewChild,args:["cgFrom"]}],dlgChangeCg:[{type:i.ViewChild,args:["dlgChangeCg"]}]};var te=localStorage.getItem("LOCALE")||myconfig.LOCALE,re={"Parent ID":{"en-US":"Parent ID","it-IT":"ID Padre"},ID:{"en-US":"ID","it-IT":"ID"},Description:{"en-US":"Description","it-IT":"Descrizione"},Calls:{"en-US":"Calls","it-IT":"Chiamate"},Time:{"en-US":"Time","it-IT":"Tempo"},"Peak Time":{"en-US":"Peak Time","it-IT":"Tempo Max"},"Min. Time":{"en-US":"Min. Time","it-IT":"Tempo Min"},"Avg. Time":{"en-US":"Avg. Time","it-IT":"Tempo Medio"},"Specific Time":{"en-US":"Specific Time","it-IT":"Tempo Specifico"},Percentage:{"en-US":"Percentage","it-IT":"Percentuale"},"Calls for Period":{"en-US":"Calls for Period","it-IT":"Chiamate Periodo"},"Time for Period":{"en-US":"Time for Period","it-IT":"Tempo Periodo"},"Peak Time for Period":{"en-US":"Peak Time for Period","it-IT":"Tempo Max Periodo"},"Min. Time for Period":{"en-US":"Min. Time for Period","it-IT":"Tempo Min Periodo"},"Avg. Time for Period":{"en-US":"Avg. Time for Period","it-IT":"Tempo Medio Periodo"},"Specific Time for Period":{"en-US":"Specific Time for Period","it-IT":"Tempo Specifico Periodo"},"Percentage for Period":{"en-US":"Percentage for Period","it-IT":"Percentuale Periodo"}},ie=function(){};x([P.Export(10,re["Parent ID"][te]),I.autoserialize],ie.prototype,"parentid",void 0),x([P.Export(20,re.ID[te]),I.autoserialize],ie.prototype,"id",void 0),x([P.Export(30,re.Description[te]),I.autoserialize],ie.prototype,"description",void 0),x([P.Export(40,re.Calls[te]),I.autoserialize],ie.prototype,"calls",void 0),x([P.Export(50,re.Time[te]),I.autoserialize],ie.prototype,"time",void 0),x([P.Export(60,re["Peak Time"][te]),I.autoserialize],ie.prototype,"peaktime",void 0),x([P.Export(70,re["Min. Time"][te]),I.autoserialize],ie.prototype,"mintime",void 0),x([P.Export(80,re["Avg. Time"][te]),I.autoserialize],ie.prototype,"avgtime",void 0),x([P.Export(90,re["Specific Time"][te]),I.autoserialize],ie.prototype,"timewithoutchildren",void 0),x([P.Export(100,re.Percentage[te]),I.autoserialize],ie.prototype,"percentage",void 0),x([P.Export(110,re["Calls for Period"][te]),I.autoserialize],ie.prototype,"snapdeltacalls",void 0),x([P.Export(120,re["Time for Period"][te]),I.autoserialize],ie.prototype,"snapdeltatime",void 0),x([P.Export(130,re["Peak Time for Period"][te]),I.autoserialize],ie.prototype,"snappeaktime",void 0),x([P.Export(140,re["Min. Time for Period"][te]),I.autoserialize],ie.prototype,"snapmintime",void 0),x([P.Export(150,re["Avg. Time for Period"][te]),I.autoserialize],ie.prototype,"snapavgtime",void 0),x([P.Export(160,re["Specific Time for Period"][te]),I.autoserialize],ie.prototype,"snaptimewithoutchildren",void 0),x([P.Export(170,re["Percentage for Period"][te]),I.autoserialize],ie.prototype,"snappercentage",void 0);var oe=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),ne=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Server Profiler",["Profiler del Server"]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","ID",["ID"]),e.prototype.set.call(r,"en->it","Description",["Descrizione"]),e.prototype.set.call(r,"en->it","Calls",["Chiamate"]),e.prototype.set.call(r,"en->it","Time",["Tempo"]),e.prototype.set.call(r,"en->it","Peak Time",["Tempo Max"]),e.prototype.set.call(r,"en->it","Min. Time",["Tempo Min"]),e.prototype.set.call(r,"en->it","Avg. Time",["Tempo Medio"]),e.prototype.set.call(r,"en->it","Specific Time",["Tempo Specifico"]),e.prototype.set.call(r,"en->it","Percentage",["Percentuale"]),e.prototype.set.call(r,"en->it","Calls for Period",["Chiamate Periodo"]),e.prototype.set.call(r,"en->it","Time for Period",["Tempo Periodo"]),e.prototype.set.call(r,"en->it","Peak Time for Period",["Tempo Max Periodo"]),e.prototype.set.call(r,"en->it","Min. Time for Period",["Tempo Min Periodo"]),e.prototype.set.call(r,"en->it","Avg. Time for Period",["Tempo Medio Periodo"]),e.prototype.set.call(r,"en->it","Specific Time for Period",["Tempo Specifico Periodo"]),e.prototype.set.call(r,"en->it","Percentage for Period",["Percentuale Periodo"]),r}return M(t,e),t}(y.LocalizationService);ne.decorators=[{type:i.Injectable}],ne.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ae=function(){function e(e,t,r,i,o,n,a,s,c){this.expExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.searchView=new oe,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchProfilato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/profiler"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchProfilato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+F,this.searchView)):(this.searchView=new oe,this.sendSearch())},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+F,this.searchView)},e.prototype.POSTGetItems=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchView.searchinprogress=!1,r.localStorage.setItem("HotSearchProfilato",r.searchView).subscribe()}))},e.prototype.prepareExport=function(e){var t=this,r=JSON.parse(JSON.stringify(this.searchView));r.page=1,r.itemsperpageoverride=9999999,this.http.post(this.backend+F,r).subscribe((function(r){var i=t.expExts.deserializeForExport(r.items,ie);e(i)}))},e}();ae.decorators=[{type:i.Component,args:[{selector:"adm_profiler",providers:[{provide:y.LocalizationService,useClass:ne}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Server Profiler\' | localize : lc}}</span>&nbsp;\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 bottom-15">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc"></form-date>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [Hierarchy]="true" [OrderByColumn]="false" [ParentKey]="\'parentid\'"\r\n [OwnKey]="\'id\'" [StartsExpanded]="false" [ExportFunction]="prepareExport.bind(this)" [Export]="true"\r\n [ExportFileName]="\'Profiler Export.csv\'" [HidePaging]="true" (onSearchRequest)="sendSearch($event);">\r\n \r\n <span *th="\'1\'">{{\'ID\' | localize : lc}}</span>\r\n <span *th="\'2\'">{{\'Description\' | localize : lc}}</span>\r\n <span *th="\'3\'">{{\'Calls\' | localize : lc}}</span>\r\n <span *th="\'4\'">{{\'Time\' | localize : lc}}</span>\r\n <span *th="\'5\'">{{\'Peak Time\' | localize : lc}}</span>\r\n <span *th="\'6\'">{{\'Min. Time\' | localize : lc}}</span>\r\n <span *th="\'7\'">{{\'Avg. Time\' | localize : lc}}</span>\r\n <span *th="\'8\'">{{\'Specific Time\' | localize : lc}}</span>\r\n <span *th="\'9\'">{{\'Percentage\' | localize : lc}}</span>\r\n <span *th="\'10\'">{{\'Calls for Period\' | localize : lc}}</span>\r\n <span *th="\'11\'">{{\'Time for Period\' | localize : lc}}</span>\r\n <span *th="\'12\'">{{\'Peak Time for Period\' | localize : lc}}</span>\r\n <span *th="\'13\'">{{\'Min. Time for Period\' | localize : lc}}</span>\r\n <span *th="\'14\'">{{\'Avg. Time for Period\' | localize : lc}}</span>\r\n <span *th="\'15\'">{{\'Specific Time for Period\' | localize : lc}}</span>\r\n <span *th="\'16\'">{{\'Percentage for Period\' | localize : lc}}</span>\r\n\r\n <span *td="\'1\'; let item">{{item.id}}</span>\r\n <span *td="\'2\'; let item" title="{{item.description}}">{{item.description.length <= 50 ? item.description : item.description.substr(0,50) + "[...]" }}</span>\r\n <span *td="\'3\'; let item">{{item.calls}}</span>\r\n <span *td="\'4\'; let item">{{item.time}}</span>\r\n <span *td="\'5\'; let item">{{item.peaktime}}</span>\r\n <span *td="\'6\'; let item">{{item.mintime}}</span>\r\n <span *td="\'7\'; let item">{{item.avgtime}}</span>\r\n <span *td="\'8\'; let item">{{item.timewithoutchildren}}</span>\r\n <span *td="\'9\'; let item">{{item.percentage}}</span>\r\n <span *td="\'10\' let item">{{item.snapdeltacalls}}</span>\r\n <span *td="\'11\' let item">{{item.snapdeltatime}}</span>\r\n <span *td="\'12\' let item">{{item.snappeaktime}}</span>\r\n <span *td="\'13\' let item">{{item.snapmintime}}</span>\r\n <span *td="\'14\' let item">{{item.snapavgtime}}</span>\r\n <span *td="\'15\' let item">{{item.snaptimewithoutchildren}}</span>\r\n <span *td="\'16\' let item">{{item.snappercentage}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],ae.ctorParameters=function(){return[{type:P.ExportService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var se=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),ce=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Active Sessions",["Sessioni Attive"]),e.prototype.set.call(r,"en->it","Top Nodes",["Prime Istruzioni"]),e.prototype.set.call(r,"en->it","Top Sessions",["Prime Sessioni"]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","Top Activities",["Attivita' Principali"]),e.prototype.set.call(r,"en->it","Node Description",["Descrizione Nodo"]),e.prototype.set.call(r,"en->it","Node",["Nodo"]),e.prototype.set.call(r,"en->it","Activity",["Attivita'"]),e.prototype.set.call(r,"en->it","Limit",["Limite"]),e.prototype.set.call(r,"en->it","Node Type",["Tipo Nodo"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","Tenant",["Tenant"]),e.prototype.set.call(r,"en->it","Process",["Processo"]),e.prototype.set.call(r,"en->it","Update every",["Aggiorna ogni"]),e.prototype.set.call(r,"en->it","second/s",["secondo/i"]),e.prototype.set.call(r,"en->it","Maximum Threads",["Thread Massimi"]),e.prototype.set.call(r,"en->it","CPUs",["CPU"]),r}return M(t,e),t}(y.LocalizationService);ce.decorators=[{type:i.Injectable}],ce.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var le=function(){function e(e,t,r,i,o,n,a,s,c){var l;this.dateExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.searchView=new se,this.autoUpdate=!1,this.seconds="5",this.seriesPropertiesMapping={},this.propertiesSeriesMapping=((l={}).cputime="CPU",l.waittime="Wait",l.scripttime="Scripting",l.dbtime="DB",l.nettime="Network",l.throttletime="Throttling",l.sleeptime="Sleep",l.iotime="IO",l),this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchTopAct").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/topact"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchTopAct").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+_,this.searchView,!1)):(this.searchView=new se,this.sendSearch())},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+_,null!=r?r:this.searchView,t)},e.prototype.POSTGetItems=function(e,t,r){var i=this;this.http.post(e,t).subscribe((function(e){return V(i,void 0,void 0,(function(){var t;return A(this,(function(i){switch(i.label){case 0:return r||(this.searchView=e,this.localStorage.setItem("HotSearchTopAct",this.searchView).subscribe()),[4,this.getDirectorInfos()];case 1:return t=i.sent(),this.searchView.searchinprogress=!1,this.reviewBindings(r,e,t),[2]}}))}))}))},e.prototype.getDirectorInfos=function(){return this.http.get(this.backend+j).pipe(C.map((function(e){return e}))).toPromise()},e.prototype.reviewBindings=function(e,t,r){var i=this,o=(null!=t?t:this.searchView).items[0];if(this.TopNodes=o.topnodes,this.TopSessions=o.topsessions,this.DirInfos=r,o.actsessions&&0!=o.actsessions.length){for(var n=[],a=Object.keys(o.actsessions[0]),s=0;s<a.length;s++)if("sampletime"!=a[s]){var c=new g.LineSerie(this.propertiesSeriesMapping[a[s]],[],null,null,"sessions");n.push(c),this.seriesPropertiesMapping[a[s]]=c}for(s=0;s<o.actsessions.length;s++)for(var l=o.actsessions[s],p=new Date(l.sampletime),d=0;d<a.length;d++)"sampletime"==a[d]||e&&!this.dateExts.getDateConvertion(p).isAfter(this.LastDataPoint)||this.seriesPropertiesMapping[a[d]].values.push(new g.DateValue(p,l[a[d]]));if(e&&this.ChartInstance){var h=new g.LineChartData(n,new g.Limit(null==r?void 0:r.threads,this.lc.loc("Maximum Threads")));n.some((function(e){return e.values.length>0}))&&(this.ChartInstance.addData(h),this.LastDataPoint=n.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0])}else this.TopActiveSessions=new g.LineChartData(n,new g.Limit(null==r?void 0:r.threads,this.lc.loc("Maximum Threads"))),this.LastDataPoint=n.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0]}else this.TopActiveSessions=null},e.prototype.autoUpdateChanged=function(){var e=this;/^[1-9]\d*$/.test(this.seconds)||(this.seconds="10");var t=1e3*parseInt(this.seconds,null);this.autoUpdate?(this.sendSearch(!1,!0),this.updateTimer=setInterval((function(){e.sendSearch(!1,!0)}),t)):clearInterval(this.updateTimer)},e.prototype.dataSelectionChanged=function(e){this.from=e.initial?this.searchView.filterfrom?this.dateExts.getDateConvertion(this.searchView.filterfrom).toDate():"":e.from,this.to=e.initial?this.searchView.filterto?this.dateExts.getDateConvertion(this.searchView.filterto).toDate():"":e.to;var t=JSON.parse(JSON.stringify(this.searchView));t.filterfrom=this.from?dayjs(this.from).format(this.lc.token("getFullDateDisplayFormat")):"",t.filterto=this.to?dayjs(this.to).format(this.lc.token("getFullDateDisplayFormat")):"",this.sendSearch(!0,!0,t)},e.prototype.onChartLoaded=function(e){this.ChartInstance=e,e.Chart.events.on("ready",(function(){e.Chart.xAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),e.Chart.yAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),setTimeout((function(){e.Chart.xAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),e.Chart.yAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)}))}),500)}))},e}();le.decorators=[{type:i.Component,args:[{selector:"topact_search",providers:[{provide:y.LocalizationService,useClass:ce}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">\r\n {{\'Top Activities\' | localize : lc}}\r\n <span *ngIf="DirInfos">&nbsp;-&nbsp;{{\'\' + DirInfos.cpus + \' \' + (\'CPUs\' | localize : lc) + (DirInfos.rssplan ? \' - \' + DirInfos.rssplan : \'\')}}</span>&nbsp;\r\n </span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 app-relative">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc"></form-datetime>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress || autoUpdate" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n\r\n <div class="app-absolute app-right-25 app-top-40">\r\n <div class="pull-right">\r\n {{\'Update every\' | localize : lc}}&nbsp;<input [readonly]="autoUpdate" maxlength="3" class="form-control app-updevery-input" type="text" [(ngModel)]="seconds" name="secs" />&nbsp;{{\'second/s\' | localize : lc}}\r\n </div>\r\n <div class="pull-right m-t-2 app-margin-right-5">\r\n <label class="switch">\r\n <input type="checkbox" [(ngModel)]="autoUpdate" (ngModelChange)="autoUpdateChanged();" />\r\n <div class="slider round"></div>\r\n </label>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12 app-margin-top-5">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView" class="row">\r\n <div class="col-md-12 app-no-padding">\r\n \x3c!--<h5 class="app-margin-top-5">{{\'Active Sessions\' | localize : lc}}</h5>--\x3e\r\n <div style="width: 100%; height: 290px">\r\n <es-line-chart *ngIf="TopActiveSessions"\r\n [MinGridDistance]="65"\r\n [Timeline]="false"\r\n [FinalInstants]="false"\r\n [LegendPadding]="{top: 0, bottom: 7, right: 0, left: 10}"\r\n [Fill]="true"\r\n [MergeDatasets]="true"\r\n [Data]="TopActiveSessions"\r\n [Legend]="true" \r\n name="topactsession"\r\n [DataGroupingThreshold]="99999999"\r\n (onSelectionChanged)="dataSelectionChanged($event)" (chartLoaded)="onChartLoaded($event)"></es-line-chart>\r\n </div>\r\n </div>\r\n <div class="col-md-5">\r\n <h5>{{\'Top Nodes\' | localize : lc}}</h5>\r\n <es-table [(ngModel)]="TopNodes" [HidePaging]="true">\r\n <ng-template #header>\r\n <th class="app-col-min">{{\'Node\' | localize : lc}}</th>\r\n <th>{{\'Node Description\' | localize : lc}}</th>\r\n <th class="app-col-min">{{\'Activity\' | localize : lc}}</th>\r\n <th class="app-col-min app-nowrap">{{\'Node Type\' | localize : lc}}</th>\r\n </ng-template>\r\n <ng-template #body let-node>\r\n <td class="app-col-min"><strong>{{node.profnodeid}}</strong></td>\r\n <td><span title="{{node.profnodedesc}}">{{node.profnodedesc.length > 40 ? node.profnodedesc.substr(0,40) + "..." : node.profnodedesc}}</span></td>\r\n <td class="app-nowrap">{{node.activity | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{node.nodetypename}}</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class="col-md-7">\r\n <h5>{{\'Top Sessions\' | localize : lc}}</h5>\r\n <es-table [(ngModel)]="TopSessions" [HidePaging]="true">\r\n <ng-template #header>\r\n <th class="app-col-min">ID</th>\r\n <th>{{\'User\' | localize : lc}}</th>\r\n <th>{{\'Tenant\' | localize : lc}}</th>\r\n <th>{{\'Process\' | localize : lc}}</th>\r\n <th>{{\'Activity\' | localize : lc}}</th>\r\n <th>Cpu</th>\r\n <th>Wait</th>\r\n <th>DB</th>\r\n <th>Script</th>\r\n <th>Throttle</th>\r\n <th>Sleep</th>\r\n <th>Networking</th>\r\n <th>IO</th>\r\n </ng-template>\r\n\r\n <ng-template #body let-session>\r\n <td><strong>{{session.sid}}</strong></td>\r\n <td>{{session.user}}</td>\r\n <td>{{session.tenant}}</td>\r\n <td>{{session.bgprocess}}</td>\r\n <td>{{session.activity | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.cpu | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.wait | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.db | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.script | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.throttle | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.sleep | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.net | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.io | number : \'1.1-2\' : \'it\'}} %</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],le.ctorParameters=function(){return[{type:P.DateService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var pe=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),de=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Search Application Locks",["Ricerca Lock Applicativi"]),e.prototype.set.call(r,"en->it","Name",["Nome"]),e.prototype.set.call(r,"en->it","Loading Application Locks",["Carico i Lock Applicativi"]),e.prototype.set.call(r,"en->it","Global",["Globale"]),r}return M(t,e),t}(y.LocalizationService);de.decorators=[{type:i.Injectable}],de.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var he=function(){function e(e,t,r,i,o,n,a,s,c){this.lc=e,this.localStorage=t,this.expExts=r,this.intercom=i,this.http=o,this.route=n,this.location=a,this.backend=s,this.mod=c,this.locksView=new pe,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotEnqueue").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serverenqueues"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotEnqueue").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.locksView=e,this.POSTGetProcesses(this.backend+q,this.locksView)):(this.locksView=new pe,this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),e&&(this.locksView.page=1),this.POSTGetProcesses(this.backend+q,this.locksView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.locksView=e,r.localStorage.setItem("HotEnqueue",r.locksView).subscribe()}))},e}();he.decorators=[{type:i.Component,args:[{selector:"adm_enq",viewProviders:[{provide:y.LocalizationService,useClass:de}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Locks\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <form role="form">\r\n <div class="col-md-12 row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filtersid" name="filtersid" [Placeholder]="\'SID\'"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filterlock" name="filterlock" [Placeholder]="\'Name\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10">\r\n <form-checkbox [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filterglobal" name="filterglobal"></form-checkbox>&nbsp;\r\n <span class="app-pointer" (click)="locksView.filterglobal = !locksView.filterglobal">{{\'Global\' | localize : lc}}</span>\r\n </div>\r\n <button class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!locksView"><em>{{\'Loading Application Locks\' | localize : lc}}...</em></p>\r\n <div *ngIf="locksView">\r\n <es-table [(ngModel)]="locksView" [AutoUpdate]="true" [OrderByColumn]="true" (onSearchRequest)="sendSearch($event);"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],he.ctorParameters=function(){return[{type:y.LocalizationService},{type:S.PreferencesService},{type:P.ExportService},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var ue=function(e,t){this.id=e,this.description=t},me=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),fe=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","System Metrics",["Metriche di Sistema"]),e.prototype.set.call(r,"en->it","Session ID",["Cod. Sessione"]),e.prototype.set.call(r,"en->it","Session Serial",["Seriale Sessione"]),e.prototype.set.call(r,"en->it","Filter Metrics...",["Filtra Metriche..."]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","Update every",["Aggiorna ogni"]),e.prototype.set.call(r,"en->it","second/s",["secondo/i"]),e.prototype.set.call(r,"en->it","Metrics Instance",["Istanza Metriche"]),r}return M(t,e),t}(y.LocalizationService);fe.decorators=[{type:i.Injectable}],fe.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ge=function(){function e(e,t,r,i,o,n,a,s,c){this.dateExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.MetricsChartCache={},this.searchView=new me,this.autoUpdate=!1,this.seconds="5",this.Instances=[],this.selectedInstance="",this.instanceRequired=!1,this.metricsToShow=[],this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.dateChanged=function(){var e=this;this.metricsToShow=[],this.Metrics=[],this.instanceRequired=!1,this.Instances=[],this.selectedInstance="",this.searchView.filtermetrics=[];var t=(new T.HttpParams).set("from",this.searchView.filterfrom||"").set("to",this.searchView.filterto||"");this.http.get(this.backend+U,t).subscribe((function(t){return e.Metrics=t}))},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchMetrics").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/metrics"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchMetrics").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+G,this.searchView,!1)):(this.searchView=new me,this.sendSearch()),this.dateChanged()},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),t||(this.MetricsChartCache={}),this.searchView.searchinprogress=!0,this.searchView.itemsperpageoverride=999999,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+G,null!=r?r:this.searchView,t)},e.prototype.POSTGetItems=function(e,t,r){var i=this;t.filterrealtime=r?t.filterrealtime:!(t.filterfrom||t.filterto),this.http.post(e,t).subscribe((function(e){return V(i,void 0,void 0,(function(){var t=this;return A(this,(function(i){return r?e.items.forEach((function(e){e.values.forEach((function(r){var i=t.MetricsChartCache[t.metricKey(e,r)];i&&(r.series.forEach((function(e){e.values=e.values.filter((function(e){return t.dateExts.getDateConvertion(e.d).isAfter(i.lastTs)}))})),r.series.some((function(e){return e.values.length>0}))&&(i.lastTs=r.series.map((function(e){return dayjs.max(e.values.map((function(e){return t.dateExts.getDateConvertion(e.d)})))}))[0],i.chart.addData(r)))}))})):(this.selectedInstance="",this.metricsToShow=[],this.searchView=e,this.searchView.items.forEach((function(e){t.Instances.find((function(t){return t.id==e.instance}))||t.Instances.push(new ue(e.instance,e.instance))})),this.instanceRequired=this.Instances.length>1,1==this.Instances.length&&(this.selectedInstance=this.Instances[0].id,this.instanceSelected()),this.localStorage.setItem("HotSearchMetrics",this.searchView).subscribe()),this.searchView.searchinprogress=!1,[2]}))}))}))},e.prototype.instanceSelected=function(){var e=this;this.selectedInstance&&(this.metricsToShow=this.searchView.items.filter((function(t){return t.instance==e.selectedInstance})))},e.prototype.linkChartToMetric=function(e,t,r){var i=this;this.MetricsChartCache[this.metricKey(e,t)]={chart:r,lastTs:t.series.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0]}},e.prototype.metricKey=function(e,t){return e.name+" - "+t.xtitle+" - "+e.instance},e.prototype.autoUpdateChanged=function(){var e=this;/^[1-9]\d*$/.test(this.seconds)||(this.seconds="10");var t=1e3*parseInt(this.seconds,null);this.autoUpdate?(this.sendSearch(!1,!0),this.updateTimer=setInterval((function(){e.sendSearch(!1,!0)}),t)):clearInterval(this.updateTimer)},e}();ge.decorators=[{type:i.Component,args:[{selector:"metrics_search",providers:[{provide:y.LocalizationService,useClass:fe}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">\r\n {{\'System Metrics\' | localize : lc}}\r\n </span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12">\r\n <form role="form">\r\n <div class="row">\r\n <div class="col-md-11">\r\n <div class="col-md-12 row app-no-padding app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc" (inputChange)="dateChanged();"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc" (inputChange)="dateChanged();"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtersid" name="filtersid" [Placeholder]="\'Session ID\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterserial" name="filterserial" [Placeholder]="\'Session Serial\' | localize : lc"></form-input>\r\n </div>\r\n </div>\r\n <div class="col-md-12 row app-no-padding">\r\n <div class="col-12 app-filter-wrapper">\r\n <form-multiselect [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtermetrics" [IdField]="\'name\'" [Display]="\'{name}\'" name="filtermetrics" [SelectLabel]="\'Filter Metrics...\' | localize : lc" [Source]="Metrics"></form-multiselect>\r\n </div>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n <div class="col-md-1 app-no-padding">\r\n <button [disabled]="searchView.searchinprogress || autoUpdate" class="input-group-addon btn app-btn-search" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </form>\r\n <div class="app-col-12 app-margin-top-15">\r\n <div class="pull-right">\r\n {{\'Update every\' | localize : lc}}&nbsp;<input [readonly]="autoUpdate" maxlength="3" class="form-control app-updevery-input" type="text" [(ngModel)]="seconds" />&nbsp;{{\'second/s\' | localize : lc}}\r\n </div>\r\n <div class="pull-right m-t-2 app-margin-right-5">\r\n <label class="switch">\r\n <input type="checkbox" [(ngModel)]="autoUpdate" (ngModelChange)="autoUpdateChanged();" />\r\n <div class="slider round"></div>\r\n </label>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView && instanceRequired">\r\n <form-select [Validation]="false" [Label]="\'Metrics Instance\' | localize : lc" [(ngModel)]="selectedInstance" name="instance" [Source]="Instances" (inputChange)="instanceSelected()" required></form-select>\r\n </div>\r\n <div *ngIf="searchView && metricsToShow && metricsToShow.length > 0">\r\n <div class="col-md-12 app-padding-right-0 row app-margin-top-15">\r\n <ng-container *ngFor="let metric of metricsToShow; let i = index">\r\n <div class="col-md-4 app-no-padding app-simple-border" *ngFor="let chart of metric.values; let z = index">\r\n <div style="width: 100%; height: 260px">\r\n <es-line-chart [XTitle]="chart.xtitle"\r\n [YTitle]="chart.ytitle"\r\n [MinGridDistance]="65"\r\n [Timeline]="false"\r\n [LegendPadding]="{top: 0, bottom: 7, right: 0, left: 10}"\r\n [MergeDatasets]="true"\r\n [Data]="chart"\r\n [Animations]="true"\r\n [Legend]="chart.legend"\r\n name="metric_{{i}}_chart_{{z}}"\r\n (chartLoaded)="linkChartToMetric(metric, chart, $event);"\r\n [DataGroupingThreshold]="99999999">\r\n </es-line-chart>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],ge.ctorParameters=function(){return[{type:P.DateService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var ve=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Server Logs",["Log del Server"]),r}return M(t,e),t}(y.LocalizationService);ve.decorators=[{type:i.Injectable}],ve.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ye=function(){function e(e,t,r,i,o){this.intercom=e,this.http=t,this.lc=r,this.route=i,this.backend=o,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.http.get(this.backend+R).subscribe((function(t){e.Log=t}))},e}();ye.decorators=[{type:i.Component,args:[{selector:"adm_logs",viewProviders:[{provide:y.LocalizationService,useClass:ve}],template:'<div class="row">\r\n <div class="col-12 bottom-15">\r\n <p *ngIf="Log" class="app-whitespace-prewrap" [innerHTML]="Log"></p>\r\n </div>\r\n</div>'}]}],ye.ctorParameters=function(){return[{type:P.InterComService},{type:w.HTTPService},{type:y.LocalizationService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]}]};var be,Se="EsAdminModule";(be=e.AdmMessageTypes||(e.AdmMessageTypes={}))[be.Message=0]="Message";var we=function(){function t(e){this.intercom=e}return t.prototype.register=function(){var e=this;this.intercom.register(Se),this.intercom.outbounds[Se].subscribe((function(t){e.handleOutbound(t.type,t.message)}))},t.prototype.handleOutbound=function(t,r){switch(t){case e.AdmMessageTypes.Message:myconfig.DEBUG_MODE&&console.log("@admin-module outbound message: "+r)}},t}();we.decorators=[{type:i.Injectable}],we.ctorParameters=function(){return[{type:P.InterComService}]};var Pe={title:"Search Application Processes",internalNavigation:!1},Te={title:"Server Profiler",internalNavigation:!1},Ie={title:"Top Activities",internalNavigation:!1},Ce={title:"System Metrics",internalNavigation:!1},ze={title:"Server Logs",internalNavigation:!1},Me={title:"Search Application Audits",internalNavigation:!1},xe={title:"Search Application Locks",internalNavigation:!1},Ve=[{path:"",children:[{path:"serverworkers",component:ee,data:Pe},{path:"profiler",component:ae,data:Te},{path:"topact",component:le,data:Ie},{path:"metrics",component:ge,data:Ce},{path:"serverlogs",component:ye,data:ze},{path:"serveraudits",component:X,data:Me},{path:"serverenqueues",component:he,data:xe}]}],Ae=[t.CommonModule,r.FormsModule,a.MatDatepickerModule,s.MatDayjsDateModule,n.MatIconModule,c.MatInputModule,p.ModalModule,u.TooltipModule,h.BsDropdownModule,d.CsvModule,b.ContextMenuModule,y.LocalizationModule,m.EsTableModule,f.FormsAndValidationsModule,v.EsGertrudeModule,g.EsChartsModule,l.NgxMatDatetimePickerModule,o.RouterModule.forChild(Ve)],De=[ee,ae,le,ye,X,he,ge],ke=myconfig.LOCALE,Le=myconfig.BACKEND_URL,Ee=function(e){this.commService=e,console.log("@esfaenza/admin-module: BOOTSTRAP"),this.commService.register()};Ee.decorators=[{type:i.NgModule,args:[{imports:k(Ae),declarations:k(De),providers:[we,{provide:$,useValue:ke},{provide:W,useValue:Le}]}]}],Ee.ctorParameters=function(){return[{type:we}]},e.ADM_BACKEND_URL=W,e.ADM_LOCALE=$,e.ADM_MODULE_PATH=Y,e.AdmModule=Ee,e.MK_ADM=Se,e.routeConfig=Ve,e.ɵ0=Pe,e.ɵ1=Te,e.ɵ2=Ie,e.ɵ3=Ce,e.ɵ4=ze,e.ɵ5=Me,e.ɵ6=xe,e.ɵ7=ke,e.ɵ8=Le,e.ɵa=ee,e.ɵb=Z,e.ɵc=ae,e.ɵd=ne,e.ɵe=le,e.ɵf=ce,e.ɵg=ge,e.ɵh=fe,e.ɵi=ye,e.ɵj=ve,e.ɵk=X,e.ɵl=J,e.ɵm=he,e.ɵn=de,e.ɵo=we,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function x(e,t,r,i){var o,n=arguments.length,a=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(t,r,a):o(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a}function V(e,t,r,i){return new(r||(r=Promise))((function(o,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function A(e,t){var r,i,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}}Object.create;function D(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,o,n=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(D(arguments[t]));return e}Object.create;var L=function(e){function t(){var t=e.call(this)||this;return t.filteraction="",t.filterhttp="",t}return M(t,e),t}(m.AppSearch),E="/api/Adm/ChangeProcessConsumerGroup",O="/api/Adm/GetConsumerGroups#cache",j="/api/Adm/GetInfos",U="/api/Adm/GetMetrics",G="/api/Adm/GetMetrics",F="/api/Adm/GetProfilerDataNodes",H="/api/Adm/GetServerAudits",N="/api/Adm/GetServerLocks",q="/api/Adm/GetServerLogs",R="/api/Adm/GetServerWorkers",_="/api/Adm/GetTopActivities",B="/api/Adm/KillProcess",K="/api/Adm/SetProcessTracing",$=new i.InjectionToken("ADM_LOCALE"),W=new i.InjectionToken("ADM_BACKEND_URL"),Y=new i.InjectionToken("ADM_MODULE_PATH"),J=new i.InjectionToken("ADM_CONVERSATIONS"),X=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Search Application Audits",["Ricerca Audit Applicativi"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","REST Call",["Chiamata REST"]),e.prototype.set.call(r,"en->it","Update",["Aggiornamento"]),e.prototype.set.call(r,"en->it","Route",["Route"]),e.prototype.set.call(r,"en->it","Action",["Azione"]),e.prototype.set.call(r,"en->it","HTTP Method",["Metodo HTTP"]),e.prototype.set.call(r,"en->it","Arguments",["Argomenti"]),e.prototype.set.call(r,"en->it","Object ID",["ID Oggetto"]),e.prototype.set.call(r,"en->it","Object Type",["Tipo Oggetto"]),e.prototype.set.call(r,"en->it","Object Data",["Dati Oggetto"]),e.prototype.set.call(r,"en->it","Loading Application Audits",["Carico gli Audit dell'Applicazione"]),e.prototype.set.call(r,"en->it","Date",["Data"]),e.prototype.set.call(r,"en->it","HTTP Response",["Risposta HTTP"]),e.prototype.set.call(r,"en->it","Application Error Code",["Codice Errore Applicativo"]),e.prototype.set.call(r,"en->it","Conversation ID",["Cod. Conversation"]),r}return M(t,e),t}(y.LocalizationService);X.decorators=[{type:i.Injectable}],X.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var Q=function(){function e(e,t,r,i,o,n,a,s,c){this.lc=e,this.intercom=t,this.localStorage=r,this.http=i,this.route=o,this.location=n,this.backend=a,this.mod=s,this.usesConversations=c,this.searchView=new L,this.Actions=[],this.HttpMethods=[],this.searchInProgress=!1,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)}),this.HttpMethods=[{id:"GET",description:"GET"},{id:"POST",description:"POST"},{id:"PUT",description:"PUT"},{id:"PATCH",description:"PATCH"},{id:"DELETE",description:"DELETE"}],this.Actions=[{id:"C",description:this.lc.loc("REST Call")},{id:"U",description:this.lc.loc("Update")},{id:"D",description:this.lc.loc("Delete")}]}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotAudittato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serveraudits"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotAudittato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetProcesses(this.backend+H,this.searchView)):(this.searchView=new L,this.searchView.filterda=dayjs().add(-1,"month").format(this.lc.token("getSmallDateFormat")),this.searchView.filtera=dayjs().format(this.lc.token("getSmallDateFormat")),this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchInProgress=!0,e&&(this.searchView.page=1),this.POSTGetProcesses(this.backend+H,this.searchView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchInProgress=!1,r.localStorage.setItem("HotAudittato",r.searchView).subscribe()}))},e}();Q.decorators=[{type:i.Component,args:[{selector:"adm_audits",viewProviders:[{provide:y.LocalizationService,useClass:X}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Audits\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 bottom-15">\r\n <form role="form">\r\n <div class="row">\r\n <div class="col-md-11">\r\n <div class="col-md-12 row app-no-padding app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterda" name="filterda" [Placeholder]="\'From\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtera" name="filtera" [Placeholder]="\'To\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filteruser" name="filteruser" [Placeholder]="\'User\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterroute" name="filterroute" [Placeholder]="\'Route\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-select [FormLayout]="false" [Validation]="false" [SelectLabel]="\'Action\' | localize : lc" [(ngModel)]="searchView.filteraction" name="filteraction" [Source]="Actions"></form-select>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-select [FormLayout]="false" [Validation]="false" [SelectLabel]="\'HTTP Method\' | localize : lc" [(ngModel)]="searchView.filterhttp" name="filterhttp" [Source]="HttpMethods"></form-select>\r\n </div>\r\n </div>\r\n <div class="col-md-12 row app-no-padding">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterargs" name="filterargs" [Placeholder]="\'Arguments\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterobjid" name="filterobjid" [Placeholder]="\'Object ID\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterobjtype" name="filterobjtype" [Placeholder]="\'Object Type\' | localize : lc"></form-input>\r\n </div>\r\n \x3c!-- Per ora commentato --\x3e\r\n \x3c!-- <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper" *ngIf="usesConversations">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterconversationid" name="filterconversationid" [Placeholder]="\'Conversation ID\' | localize : lc"></form-input>\r\n </div> --\x3e\r\n </div>\r\n </div>\r\n <div class="col-md-1 app-no-padding">\r\n <button [disabled]="searchInProgress" class="input-group-addon btn app-btn-search" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Application Audits\' | localize : lc}}...</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [MultipleOrderingDirectives]="true" (onSearchRequest)="sendSearch($event);">\r\n\r\n <span *th="\'Timestamp\'">{{\'Date\' | localize : lc}}</span>\r\n <span *th="\'User\'">{{\'User\' | localize : lc}}</span>\r\n <span *th="\'Action\'">{{\'Action\' | localize : lc}}</span>\r\n <span *th="\'HttpMethod\'">{{\'HTTP Method\' | localize : lc}}</span>\r\n <span *th="\'Route\'">{{\'Route\' | localize : lc}}</span>\r\n <span *th="\'Args\'">{{\'Arguments\' | localize : lc}}</span>\r\n <span *th="\'HttpResponse\'">{{\'HTTP Response\' | localize : lc}}</span>\r\n <span *th="\'NonStdErrorMessage\'">{{\'Application Error Code\' | localize : lc}}</span>\r\n <span *th="\'ConvId\'; If: usesConversations">{{\'Conversation ID\' | localize : lc}}</span>\r\n <span *th="\'ObjectType\'">{{\'Object Type\' | localize : lc}}</span>\r\n <span *th="\'ObjectId\'">{{\'Object ID\' | localize : lc}}</span>\r\n <span *th="\'ObjectData\'">{{\'Object Data\' | localize : lc}}</span>\r\n\r\n <strong *td="\'Timestamp\'; let item">{{item.timestamp | loc_date:\'DD/MM/YYYY HH:mm:ss\'}}</strong>\r\n <span *td="\'User\'; let item">{{item.user}}</span>\r\n <span *td="\'Action\'; let item">{{item.action}}</span>\r\n <span *td="\'HttpMethod\'; let item">{{item.httpmethod}}</span>\r\n <span *td="\'Route\'; let item">{{item.route}}</span>\r\n <span *td="\'Args\'; let item">{{item.args}}</span>\r\n <span *td="\'HttpResponse\'; let item">{{item.httpresponse}}</span>\r\n <span *td="\'NonStdErrorMessage\'; let item">{{item.mdmerrorcode}}</span>\r\n <span *td="\'ConvId\'; If: usesConversations; let item">{{item.conversationid}}</span>\r\n <span *td="\'ObjectType\'; let item">{{item.objecttype}}</span>\r\n <span *td="\'ObjectId\'; let item">{{item.objectid}}</span>\r\n <span *td="\'ObjectData\'; let item">{{item.objectdata}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],Q.ctorParameters=function(){return[{type:y.LocalizationService},{type:P.InterComService},{type:S.PreferencesService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]},{type:Boolean,decorators:[{type:i.Inject,args:[J]}]}]};var Z=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),ee=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Consumer Group succesfully changed",["Gruppo di Consumo modificato con successo"]),e.prototype.set.call(r,"en->it","Errors changing Consumer Group",["Errori nella modifica del Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","Change Consumer Group",["Modifica Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","New Consumer Group",["Nuovo Gruppo di Consumo"]),e.prototype.set.call(r,"en->it","State",["Stato"]),e.prototype.set.call(r,"en->it","Global",["Globale"]),e.prototype.set.call(r,"en->it","Search Application Processes",["Ricerca Processi Applicativi"]),e.prototype.set.call(r,"en->it","Tenant",["Operatore"]),e.prototype.set.call(r,"en->it","Errors toggling Process Tracing",["Errori nella modifica del Tracing del Processo"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","Loading Application Processes",["Carico i Processi Applicativi"]),e.prototype.set.call(r,"en->it","Activate Process Tracing",["Attiva Tracing Processo"]),e.prototype.set.call(r,"en->it","Deactivate Process Tracing",["Disattiva Tracing Progetto"]),e.prototype.set.call(r,"en->it","Kill Process",["Ammazza Processo"]),e.prototype.set.call(r,"en->it","Errors killing the Process",["Errori durante la Kill del Processo"]),e.prototype.set.call(r,"en->it","Process succesfully killed",["Processo ucciso con successo"]),e.prototype.set.call(r,"en->it","Confirm Process Kill",["Conferma Terminazione del Processo"]),e.prototype.set.call(r,"en->it","Are you sure you wish to kill the selected process? The associated user will be disconnected",["Sei sicuro di voler Terminare il processo selezionato? L'utente relativo sara' disconnesso"]),r}return M(t,e),t}(y.LocalizationService);ee.decorators=[{type:i.Injectable}],ee.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var te=function(){function e(e,t,r,i,o,n,a,s,c,l){this.utiExts=e,this.msgExts=t,this.lc=r,this.localStorage=i,this.intercom=o,this.http=n,this.route=a,this.location=s,this.backend=c,this.mod=l,this.searchView=new Z,this.DynamicOps=[],this.valueToShow="",this.newCg="",this.CGs=[],this.CgDictionariesLoaded=!1,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)}),this.DynamicOps=[new m.EsTableOperationDefinition("trace_on",this.lc.loc("Activate Process Tracing"),"fa fa-circle text-danger","","trace_enabled","N"),new m.EsTableOperationDefinition("trace_off",this.lc.loc("Deactivate Process Tracing"),"fa fa-circle text-success","","trace_enabled","Y"),new m.EsTableOperationDefinition("kill",this.lc.loc("Kill Process"),"fa fa-ban text-danger"),new m.EsTableOperationDefinition("change_cg",this.lc.loc("Change Consumer Group"),"fa fa-edit text-info")]}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotProcessato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serverworkers"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotProcessato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetProcesses(this.backend+R,this.searchView)):(this.searchView=new Z,this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetProcesses(this.backend+R,this.searchView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchView.searchinprogress=!1,r.localStorage.setItem("HotProcessato",r.searchView).subscribe()}))},e.prototype.back=function(){this.location.back()},e.prototype.onOperation=function(e){switch(e.id){case"trace_on":this.toggleTracing(e.item,!0);break;case"trace_off":this.toggleTracing(e.item,!1);break;case"kill":this.killProcess(e.item);break;case"change_cg":this.changeProcessCg(e.item)}},e.prototype.toggleTracing=function(e,t){var r=this,i=(new T.HttpParams).set("instanceid",e.properties.inst_id).set("sid",e.properties.sid).set("serial",e.properties.serial).set("enable",t.toString());this.http.get(this.backend+K,i).subscribe((function(e){r.msgExts.manageStringResponse(e,"",r.lc.loc("Errors toggling Process Tracing"),(function(){return r.sendSearch()}))}))},e.prototype.killProcess=function(e){var t=this;this.msgExts.simpleWarningWithChoice(this.lc.loc("Confirm Process Kill"),this.lc.loc("Are you sure you wish to kill the selected process? The associated user will be disconnected"),(function(){var r=(new T.HttpParams).set("instanceid",e.properties.inst_id).set("sid",e.properties.sid).set("serial",e.properties.serial);t.http.get(t.backend+B,r).subscribe((function(e){t.msgExts.manageStringResponse(e,t.lc.loc("Process succesfully killed"),t.lc.loc("Errors killing the Process"),(function(){return t.sendSearch()}))}))}))},e.prototype.changeProcessCg=function(e){this.ProcessOnEdit=e,this.CgDictionariesLoaded||(this.loadCgDictionaries(),this.CgDictionariesLoaded=!0),this.setupChangeCg(),this.dlgChangeCg.show()},e.prototype.loadCgDictionaries=function(){var e=this;this.http.get(this.backend+O).subscribe((function(t){return e.CGs=t}))},e.prototype.setupChangeCg=function(){var e=this;this.utiExts.cleanForm(this.cgFrom),setTimeout((function(){e.newCg=""}))},e.prototype.doChangeCg=function(){var e=this,t=(new T.HttpParams).set("instanceid",this.ProcessOnEdit.properties.inst_id).set("sid",this.ProcessOnEdit.properties.sid).set("serial",this.ProcessOnEdit.properties.serial).set("consumer_group",this.newCg);return this.http.get(this.backend+E,t).subscribe((function(t){e.msgExts.manageStringResponse(t,e.lc.loc("Consumer Group succesfully changed"),e.lc.loc("Errors changing Consumer Group"),(function(){return e.sendSearch()}))})),!0},e}();te.decorators=[{type:i.Component,args:[{selector:"adm_wrk",viewProviders:[{provide:y.LocalizationService,useClass:ee}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Processes\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtertenant" name="filterTenant" [Placeholder]="\'Tenant\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filteruser" name="filterUser" [Placeholder]="\'User\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterstate" name="filterState" [Placeholder]="\'State\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10">\r\n <form-checkbox [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterglobal" name="filterglobal"></form-checkbox>&nbsp;\r\n <span class="app-pointer" (click)="searchView.filterglobal = !searchView.filterglobal">{{\'Global\' | localize : lc}}</span>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Application Processes\' | localize : lc}}...</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [DynamicOperations]="DynamicOps" [AutoUpdate]="true" [OrderByColumn]="true" (onSearchRequest)="sendSearch($event);" (onDynamicOperation)="onOperation($event)">\r\n <span class="app-nowrap" *td="\'full_wait_stack\'; let value">\r\n <span class="fa fa-list app-pointer" (click)="valueToShow = value; dlgValue.show();"></span>&nbsp;\r\n {{value.length > 70 ? value.substr(0, 67) + \'...\' : value}}\r\n </span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="app-margin-top-15">\r\n <button class="btn btn-secondary pull-left" type="button" (click)="back()">{{\'Back\' | localize : lc}}</button>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div bsModal #dlgChangeCg="bs-modal" class="modal fade" role="dialog" aria-hidden="true">\r\n <div class="modal-dialog modal-lg" cdkDrag>\r\n <div class="modal-content">\r\n <div class="modal-header" cdkDragHandle>\r\n <h4 class="modal-title pull-left">{{\'Change Consumer Group\' | localize : lc}}</h4>\r\n <button type="button" class="close pull-right" (click)="dlgChangeCg.hide()" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <form novalidate #cgFrom="ngForm" (ngSubmit)="cgFrom.valid && doChangeCg() && dlgChangeCg.hide()">\r\n <div class="modal-body">\r\n <form-select [Label]="\'New Consumer Group\' | localize : lc" [(ngModel)]="newCg" name="newcg" [Source]="CGs" required [Last]="true"></form-select>\r\n </div>\r\n <div class="modal-footer">\r\n <button type="button" class="btn btn-secondary app-margin-right-5" (click)="dlgChangeCg.hide()">{{\'Close\' | localize : lc}}</button>\r\n <button type="submit" class="btn btn-primary">{{\'Confirm\' | localize : lc}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div bsModal #dlgValue="bs-modal" class="modal fade" role="dialog" aria-hidden="true">\r\n <div class="modal-dialog modal-xl" app-draggable=".modal-header">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title pull-left">\r\n Full Wait Stack\r\n </h5>\r\n <button type="button" class="close pull-right" (click)="dlgValue.hide()" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <div class="modal-body app-padidng-bottom-20 app-padding-top-20">\r\n <span class="app-wrap">\r\n {{valueToShow}}\r\n </span>\r\n </div>\r\n <div class="modal-footer">\r\n <button type="button" class="btn btn-primary" (click)="dlgValue.hide()">Chiudi</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],te.ctorParameters=function(){return[{type:P.UtilityService},{type:P.MessageService},{type:y.LocalizationService},{type:S.PreferencesService},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]},te.propDecorators={cgFrom:[{type:i.ViewChild,args:["cgFrom"]}],dlgChangeCg:[{type:i.ViewChild,args:["dlgChangeCg"]}]};var re=localStorage.getItem("LOCALE")||myconfig.LOCALE,ie={"Parent ID":{"en-US":"Parent ID","it-IT":"ID Padre"},ID:{"en-US":"ID","it-IT":"ID"},Description:{"en-US":"Description","it-IT":"Descrizione"},Calls:{"en-US":"Calls","it-IT":"Chiamate"},Time:{"en-US":"Time","it-IT":"Tempo"},"Peak Time":{"en-US":"Peak Time","it-IT":"Tempo Max"},"Min. Time":{"en-US":"Min. Time","it-IT":"Tempo Min"},"Avg. Time":{"en-US":"Avg. Time","it-IT":"Tempo Medio"},"Specific Time":{"en-US":"Specific Time","it-IT":"Tempo Specifico"},Percentage:{"en-US":"Percentage","it-IT":"Percentuale"},"Calls for Period":{"en-US":"Calls for Period","it-IT":"Chiamate Periodo"},"Time for Period":{"en-US":"Time for Period","it-IT":"Tempo Periodo"},"Peak Time for Period":{"en-US":"Peak Time for Period","it-IT":"Tempo Max Periodo"},"Min. Time for Period":{"en-US":"Min. Time for Period","it-IT":"Tempo Min Periodo"},"Avg. Time for Period":{"en-US":"Avg. Time for Period","it-IT":"Tempo Medio Periodo"},"Specific Time for Period":{"en-US":"Specific Time for Period","it-IT":"Tempo Specifico Periodo"},"Percentage for Period":{"en-US":"Percentage for Period","it-IT":"Percentuale Periodo"}},oe=function(){};x([P.Export(10,ie["Parent ID"][re]),I.autoserialize],oe.prototype,"parentid",void 0),x([P.Export(20,ie.ID[re]),I.autoserialize],oe.prototype,"id",void 0),x([P.Export(30,ie.Description[re]),I.autoserialize],oe.prototype,"description",void 0),x([P.Export(40,ie.Calls[re]),I.autoserialize],oe.prototype,"calls",void 0),x([P.Export(50,ie.Time[re]),I.autoserialize],oe.prototype,"time",void 0),x([P.Export(60,ie["Peak Time"][re]),I.autoserialize],oe.prototype,"peaktime",void 0),x([P.Export(70,ie["Min. Time"][re]),I.autoserialize],oe.prototype,"mintime",void 0),x([P.Export(80,ie["Avg. Time"][re]),I.autoserialize],oe.prototype,"avgtime",void 0),x([P.Export(90,ie["Specific Time"][re]),I.autoserialize],oe.prototype,"timewithoutchildren",void 0),x([P.Export(100,ie.Percentage[re]),I.autoserialize],oe.prototype,"percentage",void 0),x([P.Export(110,ie["Calls for Period"][re]),I.autoserialize],oe.prototype,"snapdeltacalls",void 0),x([P.Export(120,ie["Time for Period"][re]),I.autoserialize],oe.prototype,"snapdeltatime",void 0),x([P.Export(130,ie["Peak Time for Period"][re]),I.autoserialize],oe.prototype,"snappeaktime",void 0),x([P.Export(140,ie["Min. Time for Period"][re]),I.autoserialize],oe.prototype,"snapmintime",void 0),x([P.Export(150,ie["Avg. Time for Period"][re]),I.autoserialize],oe.prototype,"snapavgtime",void 0),x([P.Export(160,ie["Specific Time for Period"][re]),I.autoserialize],oe.prototype,"snaptimewithoutchildren",void 0),x([P.Export(170,ie["Percentage for Period"][re]),I.autoserialize],oe.prototype,"snappercentage",void 0);var ne=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),ae=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Server Profiler",["Profiler del Server"]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","ID",["ID"]),e.prototype.set.call(r,"en->it","Description",["Descrizione"]),e.prototype.set.call(r,"en->it","Calls",["Chiamate"]),e.prototype.set.call(r,"en->it","Time",["Tempo"]),e.prototype.set.call(r,"en->it","Peak Time",["Tempo Max"]),e.prototype.set.call(r,"en->it","Min. Time",["Tempo Min"]),e.prototype.set.call(r,"en->it","Avg. Time",["Tempo Medio"]),e.prototype.set.call(r,"en->it","Specific Time",["Tempo Specifico"]),e.prototype.set.call(r,"en->it","Percentage",["Percentuale"]),e.prototype.set.call(r,"en->it","Calls for Period",["Chiamate Periodo"]),e.prototype.set.call(r,"en->it","Time for Period",["Tempo Periodo"]),e.prototype.set.call(r,"en->it","Peak Time for Period",["Tempo Max Periodo"]),e.prototype.set.call(r,"en->it","Min. Time for Period",["Tempo Min Periodo"]),e.prototype.set.call(r,"en->it","Avg. Time for Period",["Tempo Medio Periodo"]),e.prototype.set.call(r,"en->it","Specific Time for Period",["Tempo Specifico Periodo"]),e.prototype.set.call(r,"en->it","Percentage for Period",["Percentuale Periodo"]),r}return M(t,e),t}(y.LocalizationService);ae.decorators=[{type:i.Injectable}],ae.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var se=function(){function e(e,t,r,i,o,n,a,s,c){this.expExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.searchView=new ne,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchProfilato").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/profiler"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchProfilato").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+F,this.searchView)):(this.searchView=new ne,this.sendSearch())},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+F,this.searchView)},e.prototype.POSTGetItems=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.searchView=e,r.searchView.searchinprogress=!1,r.localStorage.setItem("HotSearchProfilato",r.searchView).subscribe()}))},e.prototype.prepareExport=function(e){var t=this,r=JSON.parse(JSON.stringify(this.searchView));r.page=1,r.itemsperpageoverride=9999999,this.http.post(this.backend+F,r).subscribe((function(r){var i=t.expExts.deserializeForExport(r.items,oe);e(i)}))},e}();se.decorators=[{type:i.Component,args:[{selector:"adm_profiler",providers:[{provide:y.LocalizationService,useClass:ae}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Server Profiler\' | localize : lc}}</span>&nbsp;\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 bottom-15">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc"></form-date>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-date [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc"></form-date>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView">\r\n <es-table [(ngModel)]="searchView" [Hierarchy]="true" [OrderByColumn]="false" [ParentKey]="\'parentid\'"\r\n [OwnKey]="\'id\'" [StartsExpanded]="false" [ExportFunction]="prepareExport.bind(this)" [Export]="true"\r\n [ExportFileName]="\'Profiler Export.csv\'" [HidePaging]="true" (onSearchRequest)="sendSearch($event);">\r\n \r\n <span *th="\'1\'">{{\'ID\' | localize : lc}}</span>\r\n <span *th="\'2\'">{{\'Description\' | localize : lc}}</span>\r\n <span *th="\'3\'">{{\'Calls\' | localize : lc}}</span>\r\n <span *th="\'4\'">{{\'Time\' | localize : lc}}</span>\r\n <span *th="\'5\'">{{\'Peak Time\' | localize : lc}}</span>\r\n <span *th="\'6\'">{{\'Min. Time\' | localize : lc}}</span>\r\n <span *th="\'7\'">{{\'Avg. Time\' | localize : lc}}</span>\r\n <span *th="\'8\'">{{\'Specific Time\' | localize : lc}}</span>\r\n <span *th="\'9\'">{{\'Percentage\' | localize : lc}}</span>\r\n <span *th="\'10\'">{{\'Calls for Period\' | localize : lc}}</span>\r\n <span *th="\'11\'">{{\'Time for Period\' | localize : lc}}</span>\r\n <span *th="\'12\'">{{\'Peak Time for Period\' | localize : lc}}</span>\r\n <span *th="\'13\'">{{\'Min. Time for Period\' | localize : lc}}</span>\r\n <span *th="\'14\'">{{\'Avg. Time for Period\' | localize : lc}}</span>\r\n <span *th="\'15\'">{{\'Specific Time for Period\' | localize : lc}}</span>\r\n <span *th="\'16\'">{{\'Percentage for Period\' | localize : lc}}</span>\r\n\r\n <span *td="\'1\'; let item">{{item.id}}</span>\r\n <span *td="\'2\'; let item" title="{{item.description}}">{{item.description.length <= 50 ? item.description : item.description.substr(0,50) + "[...]" }}</span>\r\n <span *td="\'3\'; let item">{{item.calls}}</span>\r\n <span *td="\'4\'; let item">{{item.time}}</span>\r\n <span *td="\'5\'; let item">{{item.peaktime}}</span>\r\n <span *td="\'6\'; let item">{{item.mintime}}</span>\r\n <span *td="\'7\'; let item">{{item.avgtime}}</span>\r\n <span *td="\'8\'; let item">{{item.timewithoutchildren}}</span>\r\n <span *td="\'9\'; let item">{{item.percentage}}</span>\r\n <span *td="\'10\' let item">{{item.snapdeltacalls}}</span>\r\n <span *td="\'11\' let item">{{item.snapdeltatime}}</span>\r\n <span *td="\'12\' let item">{{item.snappeaktime}}</span>\r\n <span *td="\'13\' let item">{{item.snapmintime}}</span>\r\n <span *td="\'14\' let item">{{item.snapavgtime}}</span>\r\n <span *td="\'15\' let item">{{item.snaptimewithoutchildren}}</span>\r\n <span *td="\'16\' let item">{{item.snappercentage}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],se.ctorParameters=function(){return[{type:P.ExportService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var ce=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),le=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Active Sessions",["Sessioni Attive"]),e.prototype.set.call(r,"en->it","Top Nodes",["Prime Istruzioni"]),e.prototype.set.call(r,"en->it","Top Sessions",["Prime Sessioni"]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","Top Activities",["Attivita' Principali"]),e.prototype.set.call(r,"en->it","Node Description",["Descrizione Nodo"]),e.prototype.set.call(r,"en->it","Node",["Nodo"]),e.prototype.set.call(r,"en->it","Activity",["Attivita'"]),e.prototype.set.call(r,"en->it","Limit",["Limite"]),e.prototype.set.call(r,"en->it","Node Type",["Tipo Nodo"]),e.prototype.set.call(r,"en->it","User",["Utente"]),e.prototype.set.call(r,"en->it","Tenant",["Tenant"]),e.prototype.set.call(r,"en->it","Process",["Processo"]),e.prototype.set.call(r,"en->it","Update every",["Aggiorna ogni"]),e.prototype.set.call(r,"en->it","second/s",["secondo/i"]),e.prototype.set.call(r,"en->it","Maximum Threads",["Thread Massimi"]),e.prototype.set.call(r,"en->it","CPUs",["CPU"]),r}return M(t,e),t}(y.LocalizationService);le.decorators=[{type:i.Injectable}],le.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var pe=function(){function e(e,t,r,i,o,n,a,s,c){var l;this.dateExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.searchView=new ce,this.autoUpdate=!1,this.seconds="5",this.seriesPropertiesMapping={},this.propertiesSeriesMapping=((l={}).cputime="CPU",l.waittime="Wait",l.scripttime="Scripting",l.dbtime="DB",l.nettime="Network",l.throttletime="Throttling",l.sleeptime="Sleep",l.iotime="IO",l),this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchTopAct").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/topact"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchTopAct").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+_,this.searchView,!1)):(this.searchView=new ce,this.sendSearch())},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),this.searchView.searchinprogress=!0,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+_,null!=r?r:this.searchView,t)},e.prototype.POSTGetItems=function(e,t,r){var i=this;this.http.post(e,t).subscribe((function(e){return V(i,void 0,void 0,(function(){var t;return A(this,(function(i){switch(i.label){case 0:return r||(this.searchView=e,this.localStorage.setItem("HotSearchTopAct",this.searchView).subscribe()),[4,this.getDirectorInfos()];case 1:return t=i.sent(),this.searchView.searchinprogress=!1,this.reviewBindings(r,e,t),[2]}}))}))}))},e.prototype.getDirectorInfos=function(){return this.http.get(this.backend+j).pipe(C.map((function(e){return e}))).toPromise()},e.prototype.reviewBindings=function(e,t,r){var i=this,o=(null!=t?t:this.searchView).items[0];if(this.TopNodes=o.topnodes,this.TopSessions=o.topsessions,this.DirInfos=r,o.actsessions&&0!=o.actsessions.length){for(var n=[],a=Object.keys(o.actsessions[0]),s=0;s<a.length;s++)if("sampletime"!=a[s]){var c=new g.LineSerie(this.propertiesSeriesMapping[a[s]],[],null,null,"sessions");n.push(c),this.seriesPropertiesMapping[a[s]]=c}for(s=0;s<o.actsessions.length;s++)for(var l=o.actsessions[s],p=new Date(l.sampletime),d=0;d<a.length;d++)"sampletime"==a[d]||e&&!this.dateExts.getDateConvertion(p).isAfter(this.LastDataPoint)||this.seriesPropertiesMapping[a[d]].values.push(new g.DateValue(p,l[a[d]]));if(e&&this.ChartInstance){var h=new g.LineChartData(n,new g.Limit(null==r?void 0:r.threads,this.lc.loc("Maximum Threads")));n.some((function(e){return e.values.length>0}))&&(this.ChartInstance.addData(h),this.LastDataPoint=n.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0])}else this.TopActiveSessions=new g.LineChartData(n,new g.Limit(null==r?void 0:r.threads,this.lc.loc("Maximum Threads"))),this.LastDataPoint=n.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0]}else this.TopActiveSessions=null},e.prototype.autoUpdateChanged=function(){var e=this;/^[1-9]\d*$/.test(this.seconds)||(this.seconds="10");var t=1e3*parseInt(this.seconds,null);this.autoUpdate?(this.sendSearch(!1,!0),this.updateTimer=setInterval((function(){e.sendSearch(!1,!0)}),t)):clearInterval(this.updateTimer)},e.prototype.dataSelectionChanged=function(e){this.from=e.initial?this.searchView.filterfrom?this.dateExts.getDateConvertion(this.searchView.filterfrom).toDate():"":e.from,this.to=e.initial?this.searchView.filterto?this.dateExts.getDateConvertion(this.searchView.filterto).toDate():"":e.to;var t=JSON.parse(JSON.stringify(this.searchView));t.filterfrom=this.from?dayjs(this.from).format(this.lc.token("getFullDateDisplayFormat")):"",t.filterto=this.to?dayjs(this.to).format(this.lc.token("getFullDateDisplayFormat")):"",this.sendSearch(!0,!0,t)},e.prototype.onChartLoaded=function(e){this.ChartInstance=e,e.Chart.events.on("ready",(function(){e.Chart.xAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),e.Chart.yAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),setTimeout((function(){e.Chart.xAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)})),e.Chart.yAxes.each((function(e){return e.zoom({start:0,end:1},!0,!0)}))}),500)}))},e}();pe.decorators=[{type:i.Component,args:[{selector:"topact_search",providers:[{provide:y.LocalizationService,useClass:le}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">\r\n {{\'Top Activities\' | localize : lc}}\r\n <span *ngIf="DirInfos">&nbsp;-&nbsp;{{\'\' + DirInfos.cpus + \' \' + (\'CPUs\' | localize : lc) + (DirInfos.rssplan ? \' - \' + DirInfos.rssplan : \'\')}}</span>&nbsp;\r\n </span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12 app-relative">\r\n <form role="form">\r\n <div class="row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc"></form-datetime>\r\n </div>\r\n <button [disabled]="searchView.searchinprogress || autoUpdate" class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n\r\n <div class="app-absolute app-right-25 app-top-40">\r\n <div class="pull-right">\r\n {{\'Update every\' | localize : lc}}&nbsp;<input [readonly]="autoUpdate" maxlength="3" class="form-control app-updevery-input" type="text" [(ngModel)]="seconds" name="secs" />&nbsp;{{\'second/s\' | localize : lc}}\r\n </div>\r\n <div class="pull-right m-t-2 app-margin-right-5">\r\n <label class="switch">\r\n <input type="checkbox" [(ngModel)]="autoUpdate" (ngModelChange)="autoUpdateChanged();" />\r\n <div class="slider round"></div>\r\n </label>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12 app-margin-top-5">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView" class="row">\r\n <div class="col-md-12 app-no-padding">\r\n \x3c!--<h5 class="app-margin-top-5">{{\'Active Sessions\' | localize : lc}}</h5>--\x3e\r\n <div style="width: 100%; height: 290px">\r\n <es-line-chart *ngIf="TopActiveSessions"\r\n [MinGridDistance]="65"\r\n [Timeline]="false"\r\n [FinalInstants]="false"\r\n [LegendPadding]="{top: 0, bottom: 7, right: 0, left: 10}"\r\n [Fill]="true"\r\n [MergeDatasets]="true"\r\n [Data]="TopActiveSessions"\r\n [Legend]="true" \r\n name="topactsession"\r\n [DataGroupingThreshold]="99999999"\r\n (onSelectionChanged)="dataSelectionChanged($event)" (chartLoaded)="onChartLoaded($event)"></es-line-chart>\r\n </div>\r\n </div>\r\n <div class="col-md-5">\r\n <h5>{{\'Top Nodes\' | localize : lc}}</h5>\r\n <es-table [(ngModel)]="TopNodes" [HidePaging]="true">\r\n <ng-template #header>\r\n <th class="app-col-min">{{\'Node\' | localize : lc}}</th>\r\n <th>{{\'Node Description\' | localize : lc}}</th>\r\n <th class="app-col-min">{{\'Activity\' | localize : lc}}</th>\r\n <th class="app-col-min app-nowrap">{{\'Node Type\' | localize : lc}}</th>\r\n </ng-template>\r\n <ng-template #body let-node>\r\n <td class="app-col-min"><strong>{{node.profnodeid}}</strong></td>\r\n <td><span title="{{node.profnodedesc}}">{{node.profnodedesc.length > 40 ? node.profnodedesc.substr(0,40) + "..." : node.profnodedesc}}</span></td>\r\n <td class="app-nowrap">{{node.activity | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{node.nodetypename}}</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class="col-md-7">\r\n <h5>{{\'Top Sessions\' | localize : lc}}</h5>\r\n <es-table [(ngModel)]="TopSessions" [HidePaging]="true">\r\n <ng-template #header>\r\n <th class="app-col-min">ID</th>\r\n <th>{{\'User\' | localize : lc}}</th>\r\n <th>{{\'Tenant\' | localize : lc}}</th>\r\n <th>{{\'Process\' | localize : lc}}</th>\r\n <th>{{\'Activity\' | localize : lc}}</th>\r\n <th>Cpu</th>\r\n <th>Wait</th>\r\n <th>DB</th>\r\n <th>Script</th>\r\n <th>Throttle</th>\r\n <th>Sleep</th>\r\n <th>Networking</th>\r\n <th>IO</th>\r\n </ng-template>\r\n\r\n <ng-template #body let-session>\r\n <td><strong>{{session.sid}}</strong></td>\r\n <td>{{session.user}}</td>\r\n <td>{{session.tenant}}</td>\r\n <td>{{session.bgprocess}}</td>\r\n <td>{{session.activity | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.cpu | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.wait | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.db | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.script | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.throttle | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.sleep | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.net | number : \'1.1-2\' : \'it\'}} %</td>\r\n <td>{{session.io | number : \'1.1-2\' : \'it\'}} %</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],pe.ctorParameters=function(){return[{type:P.DateService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var de=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),he=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Search Application Locks",["Ricerca Lock Applicativi"]),e.prototype.set.call(r,"en->it","Name",["Nome"]),e.prototype.set.call(r,"en->it","Loading Application Locks",["Carico i Lock Applicativi"]),e.prototype.set.call(r,"en->it","Global",["Globale"]),r}return M(t,e),t}(y.LocalizationService);he.decorators=[{type:i.Injectable}],he.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ue=function(){function e(e,t,r,i,o,n,a,s,c){this.lc=e,this.localStorage=t,this.expExts=r,this.intercom=i,this.http=o,this.route=n,this.location=a,this.backend=s,this.mod=c,this.locksView=new de,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.Init=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotEnqueue").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/serverenqueues"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotEnqueue").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.locksView=e,this.POSTGetProcesses(this.backend+N,this.locksView)):(this.locksView=new de,this.sendSearch())},e.prototype.sendSearch=function(e){void 0===e&&(e=!0),e&&(this.locksView.page=1),this.POSTGetProcesses(this.backend+N,this.locksView)},e.prototype.POSTGetProcesses=function(e,t){var r=this;this.http.post(e,t).subscribe((function(e){r.locksView=e,r.localStorage.setItem("HotEnqueue",r.locksView).subscribe()}))},e}();ue.decorators=[{type:i.Component,args:[{selector:"adm_enq",viewProviders:[{provide:y.LocalizationService,useClass:he}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">{{\'Search Application Locks\' | localize : lc}}</span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <form role="form">\r\n <div class="col-md-12 row app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filtersid" name="filtersid" [Placeholder]="\'SID\'"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filterlock" name="filterlock" [Placeholder]="\'Name\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10">\r\n <form-checkbox [FormLayout]="false" [Validation]="false" [(ngModel)]="locksView.filterglobal" name="filterglobal"></form-checkbox>&nbsp;\r\n <span class="app-pointer" (click)="locksView.filterglobal = !locksView.filterglobal">{{\'Global\' | localize : lc}}</span>\r\n </div>\r\n <button class="input-group-addon btn app-btn-search app-margin-top-20" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n </form>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!locksView"><em>{{\'Loading Application Locks\' | localize : lc}}...</em></p>\r\n <div *ngIf="locksView">\r\n <es-table [(ngModel)]="locksView" [AutoUpdate]="true" [OrderByColumn]="true" (onSearchRequest)="sendSearch($event);"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],ue.ctorParameters=function(){return[{type:y.LocalizationService},{type:S.PreferencesService},{type:P.ExportService},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:t.Location},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var me=function(e,t){this.id=e,this.description=t},fe=function(e){function t(){return e.call(this)||this}return M(t,e),t}(m.AppSearch),ge=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","System Metrics",["Metriche di Sistema"]),e.prototype.set.call(r,"en->it","Session ID",["Cod. Sessione"]),e.prototype.set.call(r,"en->it","Session Serial",["Seriale Sessione"]),e.prototype.set.call(r,"en->it","Filter Metrics...",["Filtra Metriche..."]),e.prototype.set.call(r,"en->it","Loading Data",["Carico i Dati"]),e.prototype.set.call(r,"en->it","Update every",["Aggiorna ogni"]),e.prototype.set.call(r,"en->it","second/s",["secondo/i"]),e.prototype.set.call(r,"en->it","Metrics Instance",["Istanza Metriche"]),r}return M(t,e),t}(y.LocalizationService);ge.decorators=[{type:i.Injectable}],ge.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var ve=function(){function e(e,t,r,i,o,n,a,s,c){this.dateExts=e,this.lc=t,this.localStorage=r,this.location=i,this.intercom=o,this.http=n,this.route=a,this.backend=s,this.mod=c,this.MetricsChartCache={},this.searchView=new fe,this.autoUpdate=!1,this.seconds="5",this.Instances=[],this.selectedInstance="",this.instanceRequired=!1,this.metricsToShow=[],this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.storageSub=this.route.queryParams.subscribe((function(t){e.Init(t.ignoreStorage)}))},e.prototype.Init=function(e){this.doInit(e)},e.prototype.dateChanged=function(){var e=this;this.metricsToShow=[],this.Metrics=[],this.instanceRequired=!1,this.Instances=[],this.selectedInstance="",this.searchView.filtermetrics=[];var t=(new T.HttpParams).set("from",this.searchView.filterfrom||"").set("to",this.searchView.filterto||"");this.http.get(this.backend+U,t).subscribe((function(t){return e.Metrics=t}))},e.prototype.doInit=function(e){return V(this,void 0,void 0,(function(){var t;return A(this,(function(r){switch(r.label){case 0:return[4,this.localStorage.getItem("HotSearchMetrics").toPromise()];case 1:return t=r.sent(),e||!t?[3,2]:(this.init(t),[3,4]);case 2:return this.init(null),this.location.replaceState("/pages/"+this.mod+"/metrics"),this.route.snapshot.queryParams=[],[4,this.localStorage.removeItem("HotSearchMetrics").toPromise()];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(e){e?(this.searchView=e,this.POSTGetItems(this.backend+G,this.searchView,!1)):(this.searchView=new fe,this.sendSearch()),this.dateChanged()},e.prototype.ngOnDestroy=function(){this.storageSub&&this.storageSub.unsubscribe()},e.prototype.sendSearch=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),t||(this.MetricsChartCache={}),this.searchView.searchinprogress=!0,this.searchView.itemsperpageoverride=999999,e&&(this.searchView.page=1),this.POSTGetItems(this.backend+G,null!=r?r:this.searchView,t)},e.prototype.POSTGetItems=function(e,t,r){var i=this;t.filterrealtime=r?t.filterrealtime:!(t.filterfrom||t.filterto),this.http.post(e,t).subscribe((function(e){return V(i,void 0,void 0,(function(){var t=this;return A(this,(function(i){return r?e.items.forEach((function(e){e.values.forEach((function(r){var i=t.MetricsChartCache[t.metricKey(e,r)];i&&(r.series.forEach((function(e){e.values=e.values.filter((function(e){return t.dateExts.getDateConvertion(e.d).isAfter(i.lastTs)}))})),r.series.some((function(e){return e.values.length>0}))&&(i.lastTs=r.series.map((function(e){return dayjs.max(e.values.map((function(e){return t.dateExts.getDateConvertion(e.d)})))}))[0],i.chart.addData(r)))}))})):(this.selectedInstance="",this.metricsToShow=[],this.searchView=e,this.searchView.items.forEach((function(e){t.Instances.find((function(t){return t.id==e.instance}))||t.Instances.push(new me(e.instance,e.instance))})),this.instanceRequired=this.Instances.length>1,1==this.Instances.length&&(this.selectedInstance=this.Instances[0].id,this.instanceSelected()),this.localStorage.setItem("HotSearchMetrics",this.searchView).subscribe()),this.searchView.searchinprogress=!1,[2]}))}))}))},e.prototype.instanceSelected=function(){var e=this;this.selectedInstance&&(this.metricsToShow=this.searchView.items.filter((function(t){return t.instance==e.selectedInstance})))},e.prototype.linkChartToMetric=function(e,t,r){var i=this;this.MetricsChartCache[this.metricKey(e,t)]={chart:r,lastTs:t.series.map((function(e){return dayjs.max(e.values.map((function(e){return i.dateExts.getDateConvertion(e.d)})))}))[0]}},e.prototype.metricKey=function(e,t){return e.name+" - "+t.xtitle+" - "+e.instance},e.prototype.autoUpdateChanged=function(){var e=this;/^[1-9]\d*$/.test(this.seconds)||(this.seconds="10");var t=1e3*parseInt(this.seconds,null);this.autoUpdate?(this.sendSearch(!1,!0),this.updateTimer=setInterval((function(){e.sendSearch(!1,!0)}),t)):clearInterval(this.updateTimer)},e}();ve.decorators=[{type:i.Component,args:[{selector:"metrics_search",providers:[{provide:y.LocalizationService,useClass:ge}],template:'<div class="row">\r\n <div class="col-12">\r\n <div class="card app-overflow-visible" widget>\r\n <div class="card-header">\r\n <span class="text-uppercase">\r\n {{\'System Metrics\' | localize : lc}}\r\n </span>\r\n </div>\r\n <div class="card-body widget-body">\r\n <div class="col-md-12">\r\n <form role="form">\r\n <div class="row">\r\n <div class="col-md-11">\r\n <div class="col-md-12 row app-no-padding app-first-filter-line">\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterfrom" name="filterfrom" [Placeholder]="\'From\' | localize : lc" (inputChange)="dateChanged();"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-datetime [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterto" name="filterto" [Placeholder]="\'To\' | localize : lc" (inputChange)="dateChanged();"></form-datetime>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtersid" name="filtersid" [Placeholder]="\'Session ID\' | localize : lc"></form-input>\r\n </div>\r\n <div class="col-xl-2 col-lg-2 col-md-12 app-filter-wrapper">\r\n <form-input [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filterserial" name="filterserial" [Placeholder]="\'Session Serial\' | localize : lc"></form-input>\r\n </div>\r\n </div>\r\n <div class="col-md-12 row app-no-padding">\r\n <div class="col-12 app-filter-wrapper">\r\n <form-multiselect [Readonly]="autoUpdate" [FormLayout]="false" [Validation]="false" [(ngModel)]="searchView.filtermetrics" [IdField]="\'name\'" [Display]="\'{name}\'" name="filtermetrics" [SelectLabel]="\'Filter Metrics...\' | localize : lc" [Source]="Metrics"></form-multiselect>\r\n </div>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n <div class="col-md-1 app-no-padding">\r\n <button [disabled]="searchView.searchinprogress || autoUpdate" class="input-group-addon btn app-btn-search" (click)="sendSearch()" type="submit"><i class="fa fa-search"></i></button>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </form>\r\n <div class="app-col-12 app-margin-top-15">\r\n <div class="pull-right">\r\n {{\'Update every\' | localize : lc}}&nbsp;<input [readonly]="autoUpdate" maxlength="3" class="form-control app-updevery-input" type="text" [(ngModel)]="seconds" />&nbsp;{{\'second/s\' | localize : lc}}\r\n </div>\r\n <div class="pull-right m-t-2 app-margin-right-5">\r\n <label class="switch">\r\n <input type="checkbox" [(ngModel)]="autoUpdate" (ngModelChange)="autoUpdateChanged();" />\r\n <div class="slider round"></div>\r\n </label>\r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n <div class="row">\r\n <div class="col-md-12">\r\n <p *ngIf="!searchView"><em>{{\'Loading Data\' | localize : lc}}</em></p>\r\n <div *ngIf="searchView && instanceRequired">\r\n <form-select [Validation]="false" [Label]="\'Metrics Instance\' | localize : lc" [(ngModel)]="selectedInstance" name="instance" [Source]="Instances" (inputChange)="instanceSelected()" required></form-select>\r\n </div>\r\n <div *ngIf="searchView && metricsToShow && metricsToShow.length > 0">\r\n <div class="col-md-12 app-padding-right-0 row app-margin-top-15">\r\n <ng-container *ngFor="let metric of metricsToShow; let i = index">\r\n <div class="col-md-4 app-no-padding app-simple-border" *ngFor="let chart of metric.values; let z = index">\r\n <div style="width: 100%; height: 260px">\r\n <es-line-chart [XTitle]="chart.xtitle"\r\n [YTitle]="chart.ytitle"\r\n [MinGridDistance]="65"\r\n [Timeline]="false"\r\n [LegendPadding]="{top: 0, bottom: 7, right: 0, left: 10}"\r\n [MergeDatasets]="true"\r\n [Data]="chart"\r\n [Animations]="true"\r\n [Legend]="chart.legend"\r\n name="metric_{{i}}_chart_{{z}}"\r\n (chartLoaded)="linkChartToMetric(metric, chart, $event);"\r\n [DataGroupingThreshold]="99999999">\r\n </es-line-chart>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n <div class="clearfix"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],ve.ctorParameters=function(){return[{type:P.DateService},{type:y.LocalizationService},{type:S.PreferencesService},{type:t.Location},{type:P.InterComService},{type:w.HTTPService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]},{type:String,decorators:[{type:i.Inject,args:[Y]}]}]};var ye=function(e){function t(t){var r=e.call(this,t)||this;return e.prototype.set.call(r,"en->it","Server Logs",["Log del Server"]),r}return M(t,e),t}(y.LocalizationService);ye.decorators=[{type:i.Injectable}],ye.ctorParameters=function(){return[{type:String,decorators:[{type:i.Inject,args:[$]}]}]};var be=function(){function e(e,t,r,i,o){this.intercom=e,this.http=t,this.lc=r,this.route=i,this.backend=o,this.intercom.send(P.InboundMessageTypes.Navigation,{sub:!1,routeTitle:this.lc.loc(this.route.snapshot.data.title)})}return e.prototype.ngOnInit=function(){var e=this;this.http.get(this.backend+q).subscribe((function(t){e.Log=t}))},e}();be.decorators=[{type:i.Component,args:[{selector:"adm_logs",viewProviders:[{provide:y.LocalizationService,useClass:ye}],template:'<div class="row">\r\n <div class="col-12 bottom-15">\r\n <p *ngIf="Log" class="app-whitespace-prewrap" [innerHTML]="Log"></p>\r\n </div>\r\n</div>'}]}],be.ctorParameters=function(){return[{type:P.InterComService},{type:w.HTTPService},{type:y.LocalizationService},{type:o.ActivatedRoute},{type:String,decorators:[{type:i.Inject,args:[W]}]}]};var Se,we="EsAdminModule";(Se=e.AdmMessageTypes||(e.AdmMessageTypes={}))[Se.Message=0]="Message";var Pe=function(){function t(e){this.intercom=e}return t.prototype.register=function(){var e=this;this.intercom.register(we),this.intercom.outbounds[we].subscribe((function(t){e.handleOutbound(t.type,t.message)}))},t.prototype.handleOutbound=function(t,r){switch(t){case e.AdmMessageTypes.Message:myconfig.DEBUG_MODE&&console.log("@admin-module outbound message: "+r)}},t}();Pe.decorators=[{type:i.Injectable}],Pe.ctorParameters=function(){return[{type:P.InterComService}]};var Te={title:"Search Application Processes",internalNavigation:!1},Ie={title:"Server Profiler",internalNavigation:!1},Ce={title:"Top Activities",internalNavigation:!1},ze={title:"System Metrics",internalNavigation:!1},Me={title:"Server Logs",internalNavigation:!1},xe={title:"Search Application Audits",internalNavigation:!1},Ve={title:"Search Application Locks",internalNavigation:!1},Ae=[{path:"",children:[{path:"serverworkers",component:te,data:Te},{path:"profiler",component:se,data:Ie},{path:"topact",component:pe,data:Ce},{path:"metrics",component:ve,data:ze},{path:"serverlogs",component:be,data:Me},{path:"serveraudits",component:Q,data:xe},{path:"serverenqueues",component:ue,data:Ve}]}],De=[t.CommonModule,r.FormsModule,a.MatDatepickerModule,s.MatDayjsDateModule,n.MatIconModule,c.MatInputModule,p.ModalModule,u.TooltipModule,h.BsDropdownModule,d.CsvModule,b.ContextMenuModule,y.LocalizationModule,m.EsTableModule,f.FormsAndValidationsModule,v.EsGertrudeModule,g.EsChartsModule,l.NgxMatDatetimePickerModule,o.RouterModule.forChild(Ae)],ke=[te,se,pe,be,Q,ue,ve],Le=myconfig.LOCALE,Ee=myconfig.BACKEND_URL,Oe=!!myconfig.TRANSACTIONS_TIMEOUT_S,je=function(e){this.commService=e,console.log("@esfaenza/admin-module: BOOTSTRAP"),this.commService.register()};je.decorators=[{type:i.NgModule,args:[{imports:k(De),declarations:k(ke),providers:[Pe,{provide:$,useValue:Le},{provide:W,useValue:Ee},{provide:J,useValue:Oe}]}]}],je.ctorParameters=function(){return[{type:Pe}]},e.ADM_BACKEND_URL=W,e.ADM_CONVERSATIONS=J,e.ADM_LOCALE=$,e.ADM_MODULE_PATH=Y,e.AdmModule=je,e.MK_ADM=we,e.routeConfig=Ae,e.ɵ0=Te,e.ɵ1=Ie,e.ɵ2=Ce,e.ɵ3=ze,e.ɵ4=Me,e.ɵ5=xe,e.ɵ6=Ve,e.ɵ7=Le,e.ɵ8=Ee,e.ɵ9=Oe,e.ɵa=te,e.ɵb=ee,e.ɵc=se,e.ɵd=ae,e.ɵe=pe,e.ɵf=le,e.ɵg=ve,e.ɵh=ge,e.ɵi=be,e.ɵj=ye,e.ɵk=Q,e.ɵl=X,e.ɵm=ue,e.ɵn=he,e.ɵo=Pe,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=esfaenza-admin-module.umd.min.js.map