(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["configure-monitors-add-custom-monitor-add-custom-monitor-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.html":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.html ***!
  \************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"h-100-vh custom-config-container\">\n\n    <p-toolbar class=\"ui-secondary-toolbar\">\n        <div class=\"p-grid p-justify-between p-align-center p-nogutter p-6\">\n            <div class=\"p-col-fixed ui-toolbar-text\">\n                <a routerLink=\"/monitor/configure-monitors inline-flex\">\n                    <span class=\"icons8 icons8-left toolbar-icon-color\"></span>\n                </a>\n                <span>CUSTOM MONITORS</span>\n            </div>\n             <div class=\"p-col-fixed\">\n                 <app-help [helpFileName]=\"'log-pattern-configuration'\" [helpTitle]=\"'log-pattern-configuration'\" \n                [helpFolder]=\"'monitors'\" [helpClass]=\"'btn-white'\" *ngIf=\"activeTabIndex === 0\"></app-help>\n\n                <app-help [helpFileName]=\"'JMX-deployment'\" [helpTitle]=\"'JMX-deployment'\" \n               [helpFolder]=\"'monitors'\" [helpClass]=\"'btn-white'\" *ngIf=\"activeTabIndex === 4\"></app-help>\n               \n             </div>\n\n\n\n        </div>\n    </p-toolbar>\n\n    <p-tabMenu [model]=\"securityEnableMode ? tabsForSecurity : tabs\" class=\"ui-tabmenu-big\">\n        <ng-template pTemplate=\"item\" let-item let-i=\"index\">\n            <!-- <button pButton icon=\"icons8 icons8 icons8-menu-vertical\" class=\"ui-icon-button options-button\" (click)=\"menu.toggle($event);\"></button>\n            <p-menu #menu popup=\"true\" [model]=\"getTabOptionsFor(item)\" appendTo=\"body\"></p-menu> -->\n            <div class=\"ui-menuitem-text\">\n                <div *ngIf = \"!securityEnableMode\" >\n                {{item.label}}\n               </div>\n               <div *ngIf = \"securityEnableMode && item.label != 'Database' && item.label !='Command' \">\n                {{item.label}}\n               </div>\n            </div>\n        </ng-template>\n    </p-tabMenu>\n    <div class=\"content-body\">\n        <router-outlet></router-outlet>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.scss":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.scss ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("");

/***/ }),

/***/ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.ts ***!
  \********************************************************************************************************************/
/*! exports provided: CMD_TYPE, NF_TYPE, STATSD_TYPE, DB_TYPE, JMX_TYPE, CUSTOM_SNMP_TYPE, REST_TYPE, LOG_PATTERN_MONITOR, LOG_DATA_MON, AddCustomMonitorComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CMD_TYPE", function() { return CMD_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NF_TYPE", function() { return NF_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATSD_TYPE", function() { return STATSD_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DB_TYPE", function() { return DB_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JMX_TYPE", function() { return JMX_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CUSTOM_SNMP_TYPE", function() { return CUSTOM_SNMP_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REST_TYPE", function() { return REST_TYPE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOG_PATTERN_MONITOR", function() { return LOG_PATTERN_MONITOR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOG_DATA_MON", function() { return LOG_DATA_MON; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCustomMonitorComponent", function() { return AddCustomMonitorComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./services/custom-monitor.service */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/services/custom-monitor.service.ts");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");




const CMD_TYPE = "cmd";
const NF_TYPE = "nf";
const STATSD_TYPE = "statsd";
const DB_TYPE = "db";
const JMX_TYPE = "jmx";
const CUSTOM_SNMP_TYPE = "customsnmp";
const REST_TYPE = "rest";
const LOG_PATTERN_MONITOR = "logpattern";
const LOG_DATA_MON = "logdata";
let AddCustomMonitorComponent = class AddCustomMonitorComponent {
    constructor(cmsObj, sessionService) {
        this.cmsObj = cmsObj;
        this.sessionService = sessionService;
        this.securityEnableMode = this.sessionService.preSession.captcha;
        this.activeTabIndex = 0;
    }
    ngOnInit() {
        this.tabs = [
            { label: 'Log Pattern', routerLink: 'availCustMon/logpattern', command: e => this.onTabClick(0, LOG_PATTERN_MONITOR) },
            { label: 'Log Data', routerLink: 'availCustMon/logdata', command: e => this.onTabClick(1, LOG_DATA_MON) },
            { label: 'Log Metric', routerLink: 'availCustMon/nf', command: e => this.onTabClick(2, NF_TYPE) },
            { label: 'Database', routerLink: 'availCustMon/db', command: e => this.onTabClick(3, DB_TYPE) },
            { label: 'JMX', routerLink: 'availCustMon/jmx', command: e => this.onTabClick(4, JMX_TYPE) },
            { label: 'Command', routerLink: 'availCustMon/cmd', command: e => this.onTabClick(5, CMD_TYPE) },
            { label: 'StatsD', routerLink: 'availCustMon/statsd', command: e => this.onTabClick(6, STATSD_TYPE) },
            { label: 'REST', routerLink: 'availCustMon/rest', command: e => this.onTabClick(7, REST_TYPE) },
            { label: 'SNMP', routerLink: 'availCustMon/customsnmp', command: e => this.onTabClick(8, CUSTOM_SNMP_TYPE) },
        ];
        this.tabsForSecurity = [
            { label: 'JMX', routerLink: 'availCustMon/jmx', command: e => this.onTabClick(0, JMX_TYPE) },
            { label: 'Log Metric', routerLink: 'availCustMon/nf', command: e => this.onTabClick(1, NF_TYPE) },
            { label: 'StatsD', routerLink: 'availCustMon/statsd', command: e => this.onTabClick(2, STATSD_TYPE) },
        ];
    }
    onTabClick(index, type) {
        this.activeTabIndex = index;
        this.cmsObj.onCustomMonTabChange(type);
    }
    getTabOptionsFor(tab) {
        const me = this;
        return [
            {
                label: 'Set as Default',
                command: () => {
                    me.tabSetDefault(tab);
                },
                disabled: true
            },
            {
                label: 'Change Order', command: () => {
                    me.tabSetDefault(tab);
                },
                disabled: true
            },
        ];
    }
    tabSetDefault(tab) {
        console.log('Set to defualt', tab); // TODO: Call Service
    }
    tabChangeOrder(tab) {
        console.log('Change the order', tab); // TODO: Call Service
    }
};
AddCustomMonitorComponent.ctorParameters = () => [
    { type: _services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_2__["CustomMonitorService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] }
];
AddCustomMonitorComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-add-custom-monitor',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./add-custom-monitor.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./add-custom-monitor.component.scss */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.scss")).default]
    })
], AddCustomMonitorComponent);



/***/ }),

/***/ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: AddCustomMonitorModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCustomMonitorModule", function() { return AddCustomMonitorModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _add_custom_monitor_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./add-custom-monitor.component */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/add-custom-monitor.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/help/help.module */ "./src/app/shared/help/help.module.ts");







const routes = [
    {
        path: '',
        component: _add_custom_monitor_component__WEBPACK_IMPORTED_MODULE_3__["AddCustomMonitorComponent"],
        children: [
            {
                path: 'availCustMon/:monType',
                loadChildren: () => Promise.all(/*! import() | available-custom-monitors-available-custom-monitors-module */[__webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~f1d5837c"), __webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~b387c6a5"), __webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~6aeaab1d"), __webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~a89783bf"), __webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~9be57775"), __webpack_require__.e("default~available-custom-monitors-available-custom-monitors-module~configure-monitors-add-custom-mon~c95009f5")]).then(__webpack_require__.bind(null, /*! ./available-custom-monitors/available-custom-monitors.module */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/available-custom-monitors/available-custom-monitors.module.ts")).then((m) => m.AvailableCustomMonitorsModule),
            },
        ]
    }
];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["MenuModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["TabMenuModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_6__["HelpModule"]
];
let AddCustomMonitorModule = class AddCustomMonitorModule {
};
AddCustomMonitorModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_add_custom_monitor_component__WEBPACK_IMPORTED_MODULE_3__["AddCustomMonitorComponent"]],
        imports: [
            imports,
            _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"].forChild(routes)
        ],
        exports: [
            _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"]
        ],
    })
], AddCustomMonitorModule);



/***/ })

}]);