(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{Xm2X:function(t,e,n){"use strict";n.r(e),n.d(e,"AddCustomMonitorModule",(function(){return v}));var o=n("ofXK"),a=n("fXoL"),s=n("Berw"),l=n("RskC"),i=n("5EWq"),m=n("c+7h"),r=n("tyNb"),c=n("7zfz");function d(t,e){if(1&t&&(a["\u0275\u0275elementStart"](0,"div"),a["\u0275\u0275text"](1),a["\u0275\u0275elementEnd"]()),2&t){const t=a["\u0275\u0275nextContext"]().$implicit;a["\u0275\u0275advance"](1),a["\u0275\u0275textInterpolate1"](" ",t.label," ")}}function u(t,e){if(1&t&&(a["\u0275\u0275elementStart"](0,"div"),a["\u0275\u0275text"](1),a["\u0275\u0275elementEnd"]()),2&t){const t=a["\u0275\u0275nextContext"]().$implicit;a["\u0275\u0275advance"](1),a["\u0275\u0275textInterpolate1"](" ",t.label," ")}}function b(t,e){if(1&t&&(a["\u0275\u0275elementStart"](0,"div",9),a["\u0275\u0275template"](1,d,2,1,"div",10),a["\u0275\u0275template"](2,u,2,1,"div",10),a["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,n=a["\u0275\u0275nextContext"]();a["\u0275\u0275advance"](1),a["\u0275\u0275property"]("ngIf",!n.securityEnableMode),a["\u0275\u0275advance"](1),a["\u0275\u0275property"]("ngIf",n.securityEnableMode&&"Database"!=t.label&&"Command"!=t.label)}}let C=(()=>{class t{constructor(t,e){this.cmsObj=t,this.sessionService=e,this.securityEnableMode=this.sessionService.preSession.captcha}ngOnInit(){this.tabs=[{label:"Log Pattern",routerLink:"availCustMon/logpattern",command:t=>this.cmsObj.onCustomMonTabChange("logpattern")},{label:"Log Data",routerLink:"availCustMon/logdata",command:t=>this.cmsObj.onCustomMonTabChange("logdata")},{label:"Log Metric",routerLink:"availCustMon/nf",command:t=>this.cmsObj.onCustomMonTabChange("nf")},{label:"Database",routerLink:"availCustMon/db",command:t=>this.cmsObj.onCustomMonTabChange("db")},{label:"JMX",routerLink:"availCustMon/jmx",command:t=>this.cmsObj.onCustomMonTabChange("jmx")},{label:"Command",routerLink:"availCustMon/cmd",command:t=>this.cmsObj.onCustomMonTabChange("cmd")},{label:"StatsD",routerLink:"availCustMon/statsd",command:t=>this.cmsObj.onCustomMonTabChange("statsd")},{label:"REST",routerLink:"availCustMon/rest",command:t=>this.cmsObj.onCustomMonTabChange("rest")},{label:"SNMP",routerLink:"availCustMon/customsnmp",command:t=>this.cmsObj.onCustomMonTabChange("customsnmp")}],this.tabsForSecurity=[{label:"JMX",routerLink:"availCustMon/jmx",command:t=>this.cmsObj.onCustomMonTabChange("jmx")},{label:"Log Metric",routerLink:"availCustMon/nf",command:t=>this.cmsObj.onCustomMonTabChange("nf")},{label:"StatsD",routerLink:"availCustMon/statsd",command:t=>this.cmsObj.onCustomMonTabChange("statsd")}]}getTabOptionsFor(t){const e=this;return[{label:"Set as Default",command:()=>{e.tabSetDefault(t)},disabled:!0},{label:"Change Order",command:()=>{e.tabSetDefault(t)},disabled:!0}]}tabSetDefault(t){console.log("Set to defualt",t)}tabChangeOrder(t){console.log("Change the order",t)}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275directiveInject"](s.a),a["\u0275\u0275directiveInject"](l.b))},t.\u0275cmp=a["\u0275\u0275defineComponent"]({type:t,selectors:[["app-add-custom-monitor"]],decls:11,vars:1,consts:[[1,"h-100-vh","custom-config-container"],[1,"ui-secondary-toolbar"],[1,"p-grid","p-justify-between","p-align-center","pl-5","pr-5"],["routerLink","/monitor/configure-monitors"],[1,"icons8","icons8-left","toolbar-icon-color"],[1,"p-col","ui-toolbar-text"],[1,"ui-tabmenu-big",3,"model"],["pTemplate","item"],[1,"content-body"],[1,"ui-menuitem-text"],[4,"ngIf"]],template:function(t,e){1&t&&(a["\u0275\u0275elementStart"](0,"div",0),a["\u0275\u0275elementStart"](1,"p-toolbar",1),a["\u0275\u0275elementStart"](2,"div",2),a["\u0275\u0275elementStart"](3,"a",3),a["\u0275\u0275element"](4,"span",4),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementStart"](5,"div",5),a["\u0275\u0275text"](6,"CUSTOM MONITORS"),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementStart"](7,"p-tabMenu",6),a["\u0275\u0275template"](8,b,3,2,"ng-template",7),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementStart"](9,"div",8),a["\u0275\u0275element"](10,"router-outlet"),a["\u0275\u0275elementEnd"](),a["\u0275\u0275elementEnd"]()),2&t&&(a["\u0275\u0275advance"](7),a["\u0275\u0275property"]("model",e.securityEnableMode?e.tabsForSecurity:e.tabs))},directives:[i.a,r.l,m.a,c.e,r.n,o.t],styles:[""]}),t})();var p=n("1SLH"),h=n("jIHw");const M=[{path:"",component:C,children:[{path:"availCustMon/:monType",loadChildren:()=>Promise.all([n.e(12),n.e(21)]).then(n.bind(null,"+/yF")).then(t=>t.AvailableCustomMonitorsModule)}]}],g=[o.c,i.b,p.b,m.b,h.c];let v=(()=>{class t{}return t.\u0275mod=a["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=a["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[g,r.m.forChild(M)],r.m]}),t})()}}]);