(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["additional-settings-main-additional-health-check-settings-additional-health-check-settings-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.html":
/*!********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.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=\"my-16 p-16 p-grid p-align-center  border-3 borderTabClass\">\r\n    <div class=\"w-100-p mb-16 font-16 font-weight-600 \">CONTROLLER HEALTH</div>\r\n    <div class=\"w-100-p\">\r\n        <p-tabView (onChange)=\"handleHealthMonitorTabChange($event)\">\r\n            <p-tabPanel header=\"DISK\" >\r\n                \r\n                <p-table [value]=\"tableValDataTemp\" [resizableColumns]=\"true\"\r\n                 class=\"scen-table\" (onRowSelect)=\"diskTableRowSelect($event)\" (onRowUnselect)=\"diskTableRowUnSelect($event)\" (onHeaderCheckboxToggle)=\"diskTableHeaderChkToggle($event)\"\r\n                [(selection)]=\"diskTableSelRow\" selectionMode=\"multiple\">\r\n                    <ng-template pTemplate=\"header\">\r\n                        <tr>\r\n                            <th pResizableColumn rowspan=\"2\" class=\"width-50 text-center\">\r\n                                <p-tableHeaderCheckbox [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\"></p-tableHeaderCheckbox>\r\n                            </th>\r\n                            <th pResizableColumn rowspan=\"2\">File System</th>\r\n                            <th pResizableColumn colspan=\"3\">Current Disk Status (GB)</th>\r\n                            <th pResizableColumn colspan=\"3\">Threshold Free Space (GB)</th>\r\n                            <th pResizableColumn style=\"white-space:normal\" rowspan=\"2\">Do Not Start\r\n                                Test On Critical Health</th>\r\n\r\n                        </tr>\r\n                        <tr>\r\n\r\n                            <th pResizableColumn>Total Space</th>\r\n                            <th pResizableColumn>Used Space</th>\r\n                            <th pResizableColumn>Free Space (%)</th>\r\n                            <th pResizableColumn>Critical</th>\r\n                            <th pResizableColumn>Major</th>\r\n                            <th pResizableColumn>Minor</th>\r\n\r\n                        </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\r\n                        <tr>\r\n                            <td class=\"width-50 text-center\">\r\n                                <p-tableCheckbox [value]=\"rowData\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\"></p-tableCheckbox>\r\n                            </td>\r\n                            <td pTooltip=\"{{rowData.fileSystem}}\"  >{{rowData.fileSystem}}\r\n                            </td>\r\n\r\n                            <td style=\"text-align: right;\">{{rowData.totalSpace}}</td>\r\n                            <td style=\"text-align: right;\">{{rowData.usedSpace}}</td>\r\n                            <td style=\"text-align: right;\">{{rowData.freeSpace}}</td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.critical\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.critical}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.major\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.major}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.minor\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.minor}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                             <td pTooltip=\"{{rowData.startTest}}\" >\r\n                                <p-dropdown dropdownIcon = \"icons8 icons8-expand-arrow\" [options]=\"lstOptStart\" [style]=\"{'min-width':'90%'}\"\r\n                                    [(ngModel)]=\"rowData.startTest\"\r\n                                    (onChange)=\"getDropValRowForDisk(rowData,$event)\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_DISK_FREE\" appendTo=\"body\"></p-dropdown>\r\n                            </td>\r\n                        </tr>\r\n                    </ng-template>\r\n\r\n                </p-table>\r\n                <div class=\"my-16 noteDiv pl-10\">\r\n                    <div class=\"w-100-p my-8 font-weight-600 blueHead \" >NOTES</div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            On the Start of Test Disk Free Space is checked.\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            If the Free Space is less than equal to critical Threshold and \"do not start\" is Yes, then test is not Started.\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            User can update the threshold values based on the requirements.\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </p-tabPanel>\r\n            <p-tabPanel header=\"INODE\">\r\n                <p-table [value]=\"tableValLinkTemp\" [resizableColumns]=\"true\" class=\"scen-table\" (onRowSelect)=\"inodeTableRowSelect($event)\" (onRowUnselect)=\"inodeTableRowUnSelect($event)\" (onHeaderCheckboxToggle)=\"inodeTableHeaderChkToggle($event)\"\r\n                [(selection)]=\"inodeTableSelRow\" selectionMode=\"multiple\">\r\n                    <ng-template pTemplate=\"header\">\r\n                        <tr>\r\n                            <th pResizableColumn rowspan=\"2\" class=\"width-50 text-center\">\r\n                                <p-tableHeaderCheckbox [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\"></p-tableHeaderCheckbox>\r\n                            </th>\r\n                            <th pResizableColumn rowspan=\"2\">File System</th>\r\n                            <th pResizableColumn colspan=\"3\">Current Disk Status (GB)</th>\r\n                            <th pResizableColumn colspan=\"3\">Threshold Free Space (GB)</th>\r\n                            <th pResizableColumn style=\"white-space: normal\" rowspan=\"2\">Do Not Start\r\n                                Test On Critical Health</th>\r\n\r\n                        </tr>\r\n                        <tr>\r\n\r\n                            <th pResizableColumn>Total INodes</th>\r\n                            <th pResizableColumn>Used INodes</th>\r\n                            <th pResizableColumn>Free INodes</th>\r\n                            <th pResizableColumn>Critical</th>\r\n                            <th pResizableColumn>Major</th>\r\n                            <th pResizableColumn>Minor</th>\r\n\r\n                        </tr>\r\n                    </ng-template>\r\n                    <ng-template pTemplate=\"body\" let-rowData>\r\n                        <tr>\r\n                            <td class=\"width-50 text-center\">\r\n                                <p-tableCheckbox [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\" [value]=\"rowData\"></p-tableCheckbox>\r\n                            </td>\r\n                           <td >{{rowData.fileSystem}}\r\n                            </td>\r\n                            <td style=\"text-align: right;\">{{rowData.totaliNode}}</td>\r\n                            <td style=\"text-align: right;\">{{rowData.usediNode}}</td>\r\n                            <td style=\"text-align: right;\">{{rowData.freeiNode}}</td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.critical\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.critical}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.major\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.major}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                            <td style=\"text-align: right;\" pEditableColumn>\r\n                                <p-cellEditor>\r\n                                    <ng-template pTemplate=\"input\">\r\n                                        <input type=\"text\" [(ngModel)]=\"rowData.minor\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\">\r\n                                    </ng-template>\r\n                                    <ng-template pTemplate=\"output\">\r\n                                        {{rowData.minor}}\r\n                                    </ng-template>\r\n                                </p-cellEditor>\r\n                            </td>\r\n                            <td >\r\n                                <p-dropdown dropdownIcon = \"icons8 icons8-expand-arrow\"\r\n                                [options]=\"lstOptStart\" [style]=\"{'min-width':'90%'}\"\r\n                                    [(ngModel)]=\"rowData.startTest\"\r\n                                    (onChange)=\"getDropValRowForINode(rowData,$event)\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR_INODE_FREE\" appendTo=\"body\"></p-dropdown>\r\n                            </td>\r\n                        </tr>\r\n                    </ng-template>\r\n\r\n                </p-table>\r\n\r\n                <div class=\"my-16 noteDiv pl-10\">\r\n                    <div class=\"w-100-p my-8 font-weight-600 blueHead \" >NOTES</div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            On the Start of Test INode is checked.\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            If the INode is less than equal to critical Threshold and \"do not start\" is Yes, then test is not Started.\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"my-8 pl-32 p-grid\"> \r\n                        <div class=\"\">\r\n                            <i class=\"  mr-8 pi pi-play font-10\" ></i> \r\n                        </div>\r\n                        <div class=\"w-95-p\">\r\n                            User can update the threshold values based on the requirements.\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </p-tabPanel>\r\n        </p-tabView>\r\n    </div>\r\n</div>\r\n<div class=\"my-16 p-16 p-grid p-align-center  border-3 borderTabClass\">\r\n    <div class=\"w-100-p mb-16 font-16 font-weight-600 \">\r\n        GENERATOR HEALTH\r\n    </div>\r\n    <div class=\"my-8\">\r\n        <p-checkbox label=\"Enable Generator Health Check before start of test. Test will not start, If any Generator Health Check fails.\" binary=\"true\" [(ngModel)]=\"chckGenHealth\" [disabled]=\"enableDisKeywordList.CHECK_GENERATOR_HEALTH\"></p-checkbox>\r\n    </div>\r\n    <div *ngIf=\"chckGenHealth\" class=\"my-8 pl-30 w-100-p p-grid p-align-center\">\r\n        <div class=\"p-grid mr-13 p-align-center\">\r\n            <p-checkbox label=\" Min Free Disk Space\" binary=\"true\" [(ngModel)]=\"chckDisk\" [disabled]=\"enableDisKeywordList.CHECK_GENERATOR_HEALTH\"></p-checkbox>\r\n        </div>\r\n        <div class=\"width-140 p-col-ngutter\">\r\n            <div class=\"ui-inputgroup w-100-p\">\r\n                <p-spinner inputStyleClass=\"w-100-p\" type=\"number\" min=\"0\" max=\"1024\" [(ngModel)]=\"txtDisk\" (keypress)=\"validateQty($event)\" [disabled]=\"enableDisKeywordList.CHECK_GENERATOR_HEALTH\"></p-spinner>\r\n                <span class=\"ui-inputgroup-addon px-10 \">GB</span>\r\n            </div>\r\n        </div>\r\n        <div class=\"p-grid p-col-2 p-justify-end p-align-center\">\r\n            <p-checkbox label=\" Max CPU Utilization\" binary=\"true\" [(ngModel)]=\"chckCpu\" [disabled]=\"enableDisKeywordList.CHECK_GENERATOR_HEALTH\"></p-checkbox>\r\n        </div>\r\n        <div class=\"width-140 p-col-ngutter\">\r\n            <div class=\"ui-inputgroup w-100-p\">\r\n                <p-spinner inputStyleClass=\"w-100-p\" type=\"number\" min=\"0\" max=\"100\" [(ngModel)]=\"txtCpu\"\r\n                (keypress)=\"validateQty($event)\" [disabled]=\"enableDisKeywordList.CHECK_GENERATOR_HEALTH\"></p-spinner>\r\n                <span class=\"ui-inputgroup-addon px-10 \">%</span>\r\n            </div>\r\n        </div>\r\n     \r\n    </div>\r\n    <div *ngIf=\"chckGenHealth\" class=\"my-8 w-100-p pl-30  p-grid p-align-center\">\r\n        <div class=\"p-grid p-align-center\">\r\n            <p-checkbox  label=\" Min Available Memory\" binary=\"true\" [(ngModel)]=\"chckMem\"></p-checkbox>\r\n        </div>\r\n        <div class=\"width-140 p-col-ngutter\">\r\n            <div class=\"ui-inputgroup w-100-p\">\r\n                <p-spinner inputStyleClass=\"w-100-p\" type=\"number\"  min=\"0\" max=\"1024\" [(ngModel)]=\"txtMem\"\r\n                (keypress)=\"validateQty($event)\"></p-spinner>\r\n                <span class=\"ui-inputgroup-addon px-10 \">GB</span>\r\n            </div>\r\n        </div>\r\n        <div class=\"p-grid p-col-2 p-justify-end p-align-center\">\r\n            <p-checkbox  label=\"Min Interface Speed\" binary=\"true\" [(ngModel)]=\"chckBand\"></p-checkbox>\r\n        </div>\r\n        <div class=\"width-140 p-col-ngutter\">\r\n            <div class=\"ui-inputgroup w-100-p\">\r\n                <p-spinner  inputStyleClass=\"w-100-p\" type=\"number\" min=\"0\" max=\"1000\" [(ngModel)]=\"txtBand\"\r\n                (keypress)=\"validateQty($event)\"></p-spinner>\r\n                <span class=\"ui-inputgroup-addon px-10 \">MBPS</span>\r\n            </div>\r\n        </div>\r\n     \r\n    </div>\r\n</div>\r\n<div class=\"my-8 p-16 p-grid p-align-center  border-3 borderTabClass\">\r\n    <div class=\"w-100-p mb-8 font-16 font-weight-600 \">\r\n        OTHER SETTINGS\r\n    </div>\r\n    <div class=\"my-8 p-grid p-align-center\">\r\n        <p-checkbox label=\"Wait for connections to clear if reached to limit\" binary=\"true\" [(ngModel)]=\"chkHealth\" [disabled]=\"enableDisKeywordList.HEALTH_MONITOR\"></p-checkbox>\r\n    </div>\r\n    <div class=\"p-col-1\">\r\n        <p-spinner inputStyleClass=\"w-100-p\" type=\"number\" [(ngModel)]=\"limitH\"  [disabled]=\"!this.chkHealth\" [min]=\"1\" [max]=\"65000\"  size=\"5\" (keypress)=\"validateQty($event)\"></p-spinner>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.scss":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.scss ***!
  \******************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("app-additional-health-check-settings .borderTabClass {\n  border-style: solid;\n  border-width: 1px;\n  border-radius: 3px;\n}\napp-additional-health-check-settings .whitDivClass {\n  background-color: white;\n  border-style: solid;\n  border-width: 1px;\n  border-radius: 3px;\n}\napp-additional-health-check-settings .blueDiv {\n  background-color: var(--secondary-100);\n  color: var(--secondary-900);\n  border: 1px solid var(--secondary-900);\n  border-radius: 3px;\n}\napp-additional-health-check-settings .noteDiv {\n  background-color: var(--danger-100);\n  border: 1px solid var(--danger-600);\n}");

/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.ts":
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.ts ***!
  \****************************************************************************************************************************************/
/*! exports provided: AdditionalHealthCheckSettingsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdditionalHealthCheckSettingsComponent", function() { return AdditionalHealthCheckSettingsComponent; });
/* 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 _interface_scenario_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../interface/scenario-state */ "./src/app/pages/scenario/interface/scenario-state.ts");
/* harmony import */ var _service_additional_setting_data_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../service/additional-setting-data-service */ "./src/app/pages/scenario/service/additional-setting-data-service.ts");
/* harmony import */ var _service_scen_keyword_definition_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../service/scen-keyword-definition.service */ "./src/app/pages/scenario/service/scen-keyword-definition.service.ts");
/* harmony import */ var _service_scenario_http_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../service/scenario-http.service */ "./src/app/pages/scenario/service/scenario-http.service.ts");
/* harmony import */ var _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../service/scenario-utils.service */ "./src/app/pages/scenario/service/scenario-utils.service.ts");
/* harmony import */ var _service_sch_schedule_data_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../service/sch-schedule-data.service */ "./src/app/pages/scenario/service/sch-schedule-data.service.ts");
/* harmony import */ var _constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../constants/scen-keyword-constants */ "./src/app/pages/scenario/constants/scen-keyword-constants.ts");









let AdditionalHealthCheckSettingsComponent = class AdditionalHealthCheckSettingsComponent {
    constructor(keywordDefinition, dataService, scenUtilsService, schData, scenarioHttpService) {
        this.keywordDefinition = keywordDefinition;
        this.dataService = dataService;
        this.scenUtilsService = scenUtilsService;
        this.schData = schData;
        this.scenarioHttpService = scenarioHttpService;
        this.enableDisKeywordList = {
            "HEALTH_MONITOR_DISK_FREE": false,
            "HEALTH_MONITOR_INODE_FREE": false,
            "CHECK_GENERATOR_HEALTH": false,
            "CHECK_CONTINUOUS_MON_HEALTH": false,
            "HEALTH_MONITOR": false
        };
        this.screenKeywordList = Object.keys(this.enableDisKeywordList);
        this.selectedIndex = "0";
        this.selecteHeaderdIndex = "0";
        //check health generator
        this.chckBand = false;
        this.chckMem = false;
        this.chckCpu = false;
        this.chckDisk = false;
        this.chckGenHealth = true;
        this.chkMonHealthCheck = false;
        this.txtNoInterRtg = " ";
        this.arrKeywordData = {}; //main obj of screen Keyword data.
        this.chkHealth = false;
        this.diskTableSelRow = []; //This is for showing checkboxes only when user opens health check monitors in edit mode
        this.inodeTableSelRow = []; // for showing inode if user opens health check monitors in edit mode
        this.saveSubscription = this.scenUtilsService.$saveGroupbasedSetting.subscribe((res) => {
            if (this.validateAndSetKeywordArray()) {
                this.scenUtilsService.saveComponentData(0, {});
            }
        });
        this.tableValData = []; //Array for Disk Grid
        this.tableValDataTemp = [];
        this.tableValLink = []; //Array For Inode Grid
        this.tableValLinkTemp = [];
        this.lstOptStart = []; //DropDown for Start Test Option
        this.lstOptStart.push({ label: 'No', value: 'No' });
        this.lstOptStart.push({ label: 'Yes', value: 'Yes' });
    }
    canDeactivate() {
        //insert logic to check if there are pending changes here;
        //returning true will navigate without confirmation
        //returning false will show a confirm alert before navigating away
        try {
            if (this.validateAndSetKeywordArray() == false) {
                return false;
            }
        }
        catch (e) {
        }
        return true;
    }
    setDataInConf() {
        return true;
    }
    ngOnInit() {
        this.arrKeywordData = this.keywordDefinition.chkAndGetKeywrdDataWithAdditionalKeys(this.screenKeywordList);
        if (this.keywordDefinition.isArrKeywordDataEmpty(this.arrKeywordData, this.screenKeywordList)) {
            this.keywordDefinition.setRequestKeywordListInBody(this.screenKeywordList, "");
            let obj = this.keywordDefinition.getRequestJsonParm();
            this.getKeywordData(obj);
            //error case
            if (this.arrKeywordData == null)
                this.arrKeywordData = {};
        }
        else
            this.getHealthMonitorData();
    }
    getKeywordData(obj) {
        this.scenarioHttpService.getDefaultKeywordData(obj).subscribe((state) => {
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_2__["GetDefaultKeywordDataLoadingState"]) {
                return;
            }
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_2__["GetDefaultKeywordDataLoadedState"]) {
                this.keywordDefinition.setArrKeywordData(this.arrKeywordData, state.data, this.keywordDefinition.mergeKeywordData);
                this.getHealthMonitorData();
                return;
            }
        }, (state) => {
            console.log(state.error);
            return;
        });
    }
    showDefaultValue() {
        this.limitH = 1000;
    }
    fillDataInComp() {
        let keys = Object.keys(this.arrKeywordData);
        for (let i = 0; i < keys.length; i++) //keyword iteration
         {
            let strKeyword = keys[i];
            let keyObj = this.arrKeywordData[strKeyword];
            let dataObj = keyObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["KEYWORD_DATA_KEY"].DATA];
            this.enableDisKeywordList[strKeyword] = this.dataService.isCompEnable(this.dataService.getScenMode(), keyObj, strKeyword);
            if (dataObj == undefined || Object.keys(dataObj).length == 0)
                continue;
            let arrVal = dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]][0];
            if (arrVal == undefined)
                continue;
            if (strKeyword == "CHECK_GENERATOR_HEALTH") {
                this.chckGenHealth = (arrVal[0] == undefined || arrVal[0] == "1") ? true : false;
                this.txtDisk = (arrVal[1] == undefined) ? 10 : arrVal[1];
                this.chckDisk = (arrVal[1] == undefined || arrVal[1] == "0") ? false : true;
                this.txtCpu = (arrVal[2] == undefined) ? 50 : arrVal[2];
                this.chckCpu = (arrVal[2] == undefined || arrVal[2] == "0") ? false : true;
                this.txtMem = (arrVal[3] == undefined) ? 4 : arrVal[3];
                this.chckMem = (arrVal[3] == undefined || arrVal[3] == "0") ? false : true;
                this.txtBand = (arrVal[4] == undefined) ? 100 : arrVal[4];
                this.chckBand = (arrVal[4] == undefined || arrVal[4] == "0") ? false : true;
            }
            else if (strKeyword == "CHECK_CONTINUOUS_MON_HEALTH") {
                this.chkMonHealthCheck = (arrVal[0] == undefined || arrVal[0] == "1") ? true : false;
                this.txtNoInterTest = (arrVal[1] == undefined) ? 2 : arrVal[1];
                this.txtNoInterNdc = (arrVal[2] == undefined) ? 3 : arrVal[2];
                this.txtNoInterRtg = (arrVal[3] == undefined) ? 3 : arrVal[3];
                this.radLogLevel = (arrVal[4] == undefined) ? "1" : arrVal[4];
            }
            else if (strKeyword == "HEALTH_MONITOR") {
                this.showDefaultValue();
                this.chkHealth = (arrVal[0] == undefined || arrVal[0] == "0") ? false : true;
                if (this.chkHealth) {
                    if (arrVal[1] != undefined || arrVal[1] != null || arrVal[1] != "")
                        this.limitH = arrVal[1];
                }
            }
            else if (strKeyword == this.screenKeywordList[0]) //screenKeywordList[0] means "HEALTH_MONITOR_DISK_FREE"
             {
                //For Disk
                this.enableDisKeywordList.HEALTH_MONITOR_DISK_FREE = this.dataService.isCompEnable(this.dataService.getScenMode(), this.arrKeywordData[strKeyword], strKeyword);
                let dataObj = this.arrKeywordData[strKeyword][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["KEYWORD_DATA_KEY"].DATA][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]];
                let dataObjClone = dataObj;
                var diskDummyArr = [];
                var flag = false;
                if (dataObjClone[0][1] == "ALL") {
                    for (let j = 0; j < this.tableValData.length; j++) {
                        diskDummyArr.push(dataObjClone[0]);
                        flag = true;
                    }
                }
                else {
                    diskDummyArr = dataObjClone;
                    flag = false;
                }
                for (let k = 0; k < this.tableValData.length; k++) {
                    if (flag) {
                        if (diskDummyArr[this.tableValLink.length - (k + 1)][0] == "1") //For Checkbox=
                         {
                            let fileSystem = this.tableValData[this.tableValLink.length - (k + 1)]['fileSystem'];
                            if (fileSystem.indexOf("/dev") != -1 || fileSystem.indexOf("/run") != -1 || fileSystem.indexOf("/snap") != -1 || fileSystem.indexOf("/mnt") != -1)
                                this.tableValData[this.tableValLink.length - (k + 1)]['chk'] = false;
                            else
                                this.tableValData[this.tableValLink.length - (k + 1)]['chk'] = true;
                        }
                    }
                    else {
                        if (diskDummyArr[this.tableValLink.length - (k + 1)][0] == "1")
                            this.tableValData[this.tableValLink.length - (k + 1)]['chk'] = true;
                        else
                            this.tableValData[this.tableValLink.length - (k + 1)]['chk'] = false;
                    }
                    this.tableValData[this.tableValLink.length - (k + 1)]['critical'] = diskDummyArr[this.tableValLink.length - (k + 1)][2];
                    this.tableValData[this.tableValLink.length - (k + 1)]['major'] = diskDummyArr[this.tableValLink.length - (k + 1)][3];
                    this.tableValData[this.tableValLink.length - (k + 1)]['minor'] = diskDummyArr[this.tableValLink.length - (k + 1)][4];
                    if (diskDummyArr[this.tableValLink.length - (k + 1)][5] == "0") //For dropdown of startTest
                        this.tableValData[this.tableValLink.length - (k + 1)]['startTest'] = "No";
                    else
                        this.tableValData[this.tableValLink.length - (k + 1)]['startTest'] = "Yes";
                }
                for (let obj of this.tableValData) {
                    if (obj['chk'])
                        this.diskTableSelRow.push(obj);
                }
                this.tableValDataTemp = this.tableValData;
            }
            else if (strKeyword == this.screenKeywordList[1]) //screenKeywordList[0] means "HEALTH_MONITOR_INODE_FREE"
             {
                //For Innode
                this.enableDisKeywordList.HEALTH_MONITOR_DISK_FREE = this.dataService.isCompEnable(this.dataService.getScenMode(), this.arrKeywordData[strKeyword], strKeyword);
                let dataObj = this.arrKeywordData[strKeyword][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["KEYWORD_DATA_KEY"].DATA][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]];
                let dataObjClone = dataObj;
                var inodeDummArr = [];
                var flagi = false;
                if (dataObjClone[0][1] == "ALL") {
                    for (let j = 0; j < this.tableValLink.length; j++) {
                        inodeDummArr.push(dataObjClone[0]);
                        flagi = true;
                    }
                }
                else {
                    inodeDummArr = dataObjClone;
                    flagi = false;
                }
                //For filling INode Table
                for (let jj = 0; jj < this.tableValLink.length; jj++) {
                    if (flagi) {
                        if (inodeDummArr[this.tableValLink.length - (jj + 1)][0] == "1") //For chkBox
                         {
                            let fileSystem = this.tableValLink[this.tableValLink.length - (jj + 1)]['fileSystem'];
                            if (fileSystem.indexOf("/dev") != -1 || fileSystem.indexOf("/run") != -1 || fileSystem.indexOf("/snap") != -1 || fileSystem.indexOf("/mnt") != -1)
                                this.tableValLink[this.tableValLink.length - (jj + 1)]['chk'] = false;
                            else
                                this.tableValLink[this.tableValLink.length - (jj + 1)]['chk'] = true;
                        }
                    }
                    else {
                        if (inodeDummArr[this.tableValLink.length - (jj + 1)][0] == "1")
                            this.tableValLink[this.tableValLink.length - (jj + 1)]['chk'] = true;
                        else
                            this.tableValLink[this.tableValLink.length - (jj + 1)]['chk'] = false;
                    }
                    this.tableValLink[this.tableValLink.length - (jj + 1)]['critical'] = inodeDummArr[this.tableValLink.length - (jj + 1)][2];
                    this.tableValLink[this.tableValLink.length - (jj + 1)]['major'] = inodeDummArr[this.tableValLink.length - (jj + 1)][3];
                    this.tableValLink[this.tableValLink.length - (jj + 1)]['minor'] = inodeDummArr[this.tableValLink.length - (jj + 1)][4];
                    if (inodeDummArr[jj][5] == "0") //For start test dropdown
                        this.tableValLink[this.tableValLink.length - (jj + 1)]['startTest'] = "No";
                    else
                        this.tableValLink[this.tableValLink.length - (jj + 1)]['startTest'] = "Yes";
                }
                for (let obj of this.tableValLink) {
                    if (obj['chk'])
                        this.inodeTableSelRow.push(obj);
                }
                this.tableValLinkTemp = this.tableValLink;
            }
        }
    }
    validateAndSetKeywordArray() {
        if (!this.validateFeildsWithValues())
            return false;
        if (this.saveMonitorHealthData() == false)
            return false;
        if (this.saveContinousMonHealth() == false)
            return false;
        if (this.validateAndSetHealthCheck() == false)
            return false;
        //All validation this.SUCCESS
        for (let i = 0; i < this.screenKeywordList.length; i++) {
            this.schData.saveKeywordData[this.screenKeywordList[i]] = this.arrKeywordData[this.screenKeywordList[i]].data;
        }
        return true;
    }
    saveMonitorHealthData() {
        var arrDisk = []; //Disk Array to be send to server
        var arrINode = []; //INode Array to be send to server
        var tempArr = [];
        var tempObj = [];
        if (this.selectedIndex == "0") {
            //For Disk
            for (var i = 0; i < this.tableValData.length; i++) {
                if (this.tableValData[i]["critical"] == "" || this.tableValData[i]["major"] == "" || this.tableValData[i]["minor"] == "") {
                    this.scenUtilsService.errorMessage("Please enter all critcal,major and minor threashold values for disk.");
                    return false;
                }
                else if ((parseInt(this.tableValData[i]["critical"])) >= 1000 || (parseInt(this.tableValData[i]["major"])) >= 1000 || (parseInt(this.tableValData[i]["minor"])) >= 1000) {
                    this.scenUtilsService.errorMessage("Please enter all disk critcal,major and minor threshold values less than 1000");
                    return false;
                }
                else if ((parseInt(this.tableValData[i]["critical"])) < 0 || (parseInt(this.tableValData[i]["major"])) < 0 || (parseInt(this.tableValData[i]["minor"])) < 0) {
                    this.scenUtilsService.errorMessage("Please enter all disk critcal,major and minor threshold value greater than or equal to 0");
                    return false;
                }
                else if ((parseInt(this.tableValData[i]["critical"])) > (parseInt(this.tableValData[i]["major"])) || (parseInt(this.tableValData[i]["critical"])) > (parseInt(this.tableValData[i]["minor"]))) {
                    this.scenUtilsService.errorMessage('Please enter critical threshold value less than threshold value for Major and Minor');
                    return false;
                }
                else if ((parseInt(this.tableValData[i]["major"])) < (parseInt(this.tableValData[i]["critical"])) || (parseInt(this.tableValData[i]["major"])) > (parseInt(this.tableValData[i]["minor"]))) {
                    this.scenUtilsService.errorMessage('Please enter threshold value for Major greater than threshold value for Critical but less than threshold value for Minor');
                    return false;
                }
                else if ((parseInt(this.tableValData[i]["minor"])) < (parseInt(this.tableValData[i]["critical"])) || (parseInt(this.tableValData[i]["minor"])) < (parseInt(this.tableValData[i]["major"]))) {
                    this.scenUtilsService.errorMessage('Please enter Threshold value for Minor greater than threshold value for Critical and Major');
                    return false;
                }
                tempArr = [];
                if (this.tableValData[i]["chk"] == true)
                    tempArr.push("1");
                else
                    tempArr.push("0");
                tempArr.push(this.tableValData[i]["fileSystem"]);
                tempArr.push(this.tableValData[i]["critical"]);
                tempArr.push(this.tableValData[i]["major"]);
                tempArr.push(this.tableValData[i]["minor"]);
                if (this.tableValData[i]["startTest"] == "Yes")
                    tempArr.push("1");
                else if (this.tableValData[i]["startTest"] == "No")
                    tempArr.push("0");
                arrDisk.push(tempArr);
            }
            this.setArrayWithKeyWord(this.screenKeywordList[0], arrDisk);
        }
        else if (this.selectedIndex == "1") {
            //For Inode
            tempArr = [];
            for (var i = 0; i < this.tableValLink.length; i++) {
                tempArr = [];
                if (this.tableValLink[i]["chk"] == true)
                    tempArr.push("1");
                else
                    tempArr.push("0");
                if (this.tableValLink[i] == "" || this.tableValLink[i]["major"] == "" || this.tableValLink[i]["minor"] == "") {
                    this.scenUtilsService.errorMessage("Please enter all critcal,major and minor threashold values for inode.");
                    return false;
                }
                else if ((parseInt(this.tableValLink[i]["critical"])) < 0 || (parseInt(this.tableValLink[i]["major"])) < 0 || (parseInt(this.tableValLink[i]["minor"])) < 0) {
                    this.scenUtilsService.errorMessage("Please enter all inode critcal,major and minor threashold values greatr than or equal to 0");
                    return false;
                }
                else if ((parseInt(this.tableValLink[i]["critical"])) > 100 || (parseInt(this.tableValLink[i]["major"])) > 100 || (parseInt(this.tableValLink[i]["minor"])) > 100) {
                    this.scenUtilsService.errorMessage("Please enter all inode critcal,major and minor threashold values less than or or equal to 100");
                    return false;
                }
                else if ((parseInt(this.tableValLink[i]["critical"])) > (parseInt(this.tableValLink[i]["major"])) || (parseInt(this.tableValLink[i]["critical"])) > (parseInt(this.tableValLink[i]["minor"]))) {
                    this.scenUtilsService.errorMessage('Please enter critical threshold value less than threshold value for Major and Minor');
                    return false;
                }
                else if ((parseInt(this.tableValLink[i]["major"])) < (parseInt(this.tableValLink[i]["critical"])) || (parseInt(this.tableValLink[i]["major"])) > (parseInt(this.tableValLink[i]["minor"]))) {
                    this.scenUtilsService.errorMessage('Please enter threshold value for Major greater than threshold value for Critical but less than threshold value for Minor');
                    return false;
                }
                else if ((parseInt(this.tableValLink[i]["minor"])) < (parseInt(this.tableValLink[i]["critical"])) || (parseInt(this.tableValLink[i]["minor"])) < (parseInt(this.tableValLink[i]["major"]))) {
                    this.scenUtilsService.errorMessage('Please enter Threshold value for Minor greater than threshold value for Critical and Major');
                    return false;
                }
                tempArr.push(this.tableValLink[i]["fileSystem"]);
                tempArr.push(this.tableValLink[i]["critical"]);
                tempArr.push(this.tableValLink[i]["major"]);
                tempArr.push(this.tableValLink[i]["minor"]);
                if (this.tableValLink[i]["startTest"] == "Yes")
                    tempArr.push("1");
                else if (this.tableValLink[i]["startTest"] == "No")
                    tempArr.push("0");
                arrINode.push(tempArr);
            }
            this.setArrayWithKeyWord(this.screenKeywordList[1], arrINode);
        }
        if (this.chckGenHealth) {
            tempObj.push(1);
            if (this.chckDisk)
                tempObj[1] = this.txtDisk;
            else
                tempObj.push(0);
            if (this.chckCpu)
                tempObj[2] = this.txtCpu;
            else
                tempObj.push(0);
            if (this.chckMem)
                tempObj[3] = this.txtMem;
            else
                tempObj.push(0);
            if (this.chckBand)
                tempObj[4] = this.txtBand;
            else
                tempObj.push(0);
            this.setArrayWithKeyWordForScaler("CHECK_GENERATOR_HEALTH", tempObj);
        }
        else {
            tempObj.push(0);
            this.setArrayWithKeyWordForScaler("CHECK_GENERATOR_HEALTH", tempObj);
        }
        return true;
    }
    setArrayWithKeyWordForScaler(keyword, temObj) {
        let dataObj = this.arrKeywordData[keyword][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["KEYWORD_DATA_KEY"].DATA];
        if (dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] != undefined) {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] = [];
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]].push(temObj);
        }
        else {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] = [temObj];
        }
    }
    setArrayWithKeyWord(keyword, temObj) {
        let dataObj = this.arrKeywordData[keyword][_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["KEYWORD_DATA_KEY"].DATA];
        if (dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] != undefined) {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] = [];
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] = temObj;
        }
        else {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_8__["GLOBAL_KEY"]] = temObj;
        }
    }
    validateQty(event) {
        if (event.charCode > 31 && (event.charCode < 48 || event.charCode > 57))
            return false;
        return true;
    }
    validateFeildsWithValues() {
        if (this.chckDisk && this.chckGenHealth) {
            if (this.txtDisk == undefined || (this.txtDisk < 1 || this.txtDisk > 1024)) {
                this.scenUtilsService.errorMessage("Disk availability range should lie between 1 to 1024 gb");
                return false;
            }
        }
        if (this.chckCpu && this.chckGenHealth) {
            if (this.txtCpu == undefined || (this.txtCpu < 1 || this.txtCpu > 100)) {
                this.scenUtilsService.errorMessage("CPU availability percentage should lie between 1 to 100 %");
                return false;
            }
        }
        if (this.chckMem && this.chckGenHealth) {
            if (this.txtMem == undefined || (this.txtMem < 1 || this.txtMem > 1024)) {
                this.scenUtilsService.errorMessage("Memory availability range should lie between 1 to 1024 gb");
                return false;
            }
        }
        if (this.chckBand && this.chckGenHealth) {
            if (this.txtBand == undefined || (this.txtBand < 1 || this.txtBand > 1000)) {
                this.scenUtilsService.errorMessage("Bandwidth availability range should lie between 1 to 1000 mbps");
                return false;
            }
        }
        return true;
    }
    saveContinousMonHealth() {
        let temObj = [];
        if (this.chkMonHealthCheck) {
            if (this.txtNoInterTest == null) {
                this.scenUtilsService.errorMessage("Restart session if session is not running for more than cannot be blank");
                return false;
            }
            else if (this.txtNoInterNdc == null) {
                this.scenUtilsService.errorMessage("Restart ND Data collector process if process running check fails cannot be blank");
                return false;
            }
            else if (this.txtNoInterRtg == null) {
                this.scenUtilsService.errorMessage("Restart session if graph data is not updated for cannot be blank");
                return false;
            }
            temObj.push(1);
            temObj.push(this.txtNoInterTest);
            temObj.push(this.txtNoInterNdc);
            temObj.push(this.txtNoInterRtg);
            temObj.push(this.radLogLevel);
        }
        else
            temObj.push(0);
        this.setArrayWithKeyWordForScaler("CHECK_CONTINUOUS_MON_HEALTH", temObj);
        return true;
    }
    validateAndSetHealthCheck() {
        let tempObj = [];
        if (this.limitH == null) {
            this.scenUtilsService.errorMessage("Limit field cannot be empty");
            return false;
        }
        if (this.limitH < 1 && this.limitH != undefined) {
            this.scenUtilsService.errorMessage("Limit cannot be less than 1");
            return false;
        }
        else if (this.limitH > 65000 && this.limitH != undefined) {
            this.scenUtilsService.errorMessage("Limit cannot be greater than 65000");
            return false;
        }
        if (this.chkHealth) {
            tempObj.push(1);
        }
        else {
            tempObj.push(0);
        }
        if (this.limitH && this.chkHealth) {
            if (this.limitH != 1000)
                tempObj.push(this.limitH);
        }
        this.setArrayWithKeyWordForScaler('HEALTH_MONITOR', tempObj);
        return true;
    }
    handleHealthMonitorTabChange(event) {
        this.selectedIndex = event.index;
    }
    getChkRowForDisk(row, event) {
        for (var i = 0; i < this.tableValData.length; i++) {
            if (this.tableValData[i]["fileSystem"] == row["fileSystem"])
                this.tableValData[i]["chk"] = event;
        }
    }
    diskTableRowSelect(event) {
        let rowData = event.data;
        this.getChkRowForDisk(rowData, true);
    }
    diskTableRowUnSelect(event) {
        let rowData = event.data;
        this.getChkRowForDisk(rowData, false);
    }
    diskTableHeaderChkToggle(event) {
        for (var i = 0; i < this.tableValData.length; i++) {
            this.tableValData[i]["chk"] = event.checked;
        }
    }
    //If dropdown value changes, reflect on Disk JSON
    getDropValRowForDisk(row, event) {
        for (var i = 0; i < this.tableValData.length; i++) {
            if (this.tableValData[i]["fileSystem"] == row["fileSystem"])
                this.tableValData[i]["startTest"] = event.value;
        }
    }
    inodeTableRowSelect(event) {
        let rowData = event.data;
        this.getChkRowForINode(rowData, true);
    }
    inodeTableRowUnSelect(event) {
        let rowData = event.data;
        this.getChkRowForINode(rowData, false);
    }
    inodeTableHeaderChkToggle(event) {
        for (var i = 0; i < this.tableValLink.length; i++) {
            this.tableValLink[i]["chk"] = event.checked;
        }
    }
    //If ChkBox selected, alter Disk json
    getChkRowForINode(row, event) {
        for (var i = 0; i < this.tableValLink.length; i++) {
            if (this.tableValLink[i]["fileSystem"] == row["fileSystem"])
                this.tableValLink[i]["chk"] = event;
        }
    }
    //If dropdown value changes, reflect on Disk JSON
    getDropValRowForINode(row, event) {
        for (var i = 0; i < this.tableValLink.length; i++) {
            if (this.tableValLink[i]["fileSystem"] == row["fileSystem"])
                this.tableValLink[i]["startTest"] = event.value;
        }
    }
    getHealthMonitorData() {
        if (this.scenUtilsService.healthMonitorData != undefined && this.scenUtilsService.healthMonitorData.length != 0) {
            this.tableValData = this.scenUtilsService.healthMonitorData["Disk"]; //For Disk
            this.tableValLink = this.scenUtilsService.healthMonitorData["INode"]; //For Inode
            this.fillDataInComp(); //Getting data from arrKeywordData 
            return;
        }
        this.scenarioHttpService.getHealthMonitorData().subscribe((state) => {
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_2__["GetHealthMonitorDataLoadingState"]) {
                this.onLoadingGetHealthMonitorData(state);
                return;
            }
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_2__["GetHealthMonitorDataLoadedState"]) {
                this.onLoadedGetHealthMonitorData(state);
                return;
            }
        }, (state) => {
            this.onLoadingErrorGetHealthMonitorData(state);
        });
    }
    onLoadingGetHealthMonitorData(state) { }
    onLoadingErrorGetHealthMonitorData(state) { }
    onLoadedGetHealthMonitorData(state) {
        this.scenUtilsService.healthMonitorData = state.data;
        this.tableValData = this.scenUtilsService.healthMonitorData["Disk"]; //For Disk
        this.tableValLink = this.scenUtilsService.healthMonitorData["INode"]; //For Inode
        this.fillDataInComp(); //Getting data from arrKeywordData 
    }
    ngOnDestroy() {
        if (this.saveSubscription)
            this.saveSubscription.unsubscribe();
    }
};
AdditionalHealthCheckSettingsComponent.ctorParameters = () => [
    { type: _service_scen_keyword_definition_service__WEBPACK_IMPORTED_MODULE_4__["ScenKeywordDefinitionService"] },
    { type: _service_additional_setting_data_service__WEBPACK_IMPORTED_MODULE_3__["AdditionalSettingsDataService"] },
    { type: _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScenarioUtilsService"] },
    { type: _service_sch_schedule_data_service__WEBPACK_IMPORTED_MODULE_7__["SchScheduleDataService"] },
    { type: _service_scenario_http_service__WEBPACK_IMPORTED_MODULE_5__["ScenarioHttpService"] }
];
AdditionalHealthCheckSettingsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-additional-health-check-settings',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./additional-health-check-settings.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./additional-health-check-settings.component.scss */ "./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.scss")).default]
    })
], AdditionalHealthCheckSettingsComponent);



/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.module.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.module.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: AdditionalHealthCheckSettingsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdditionalHealthCheckSettingsModule", function() { return AdditionalHealthCheckSettingsModule; });
/* 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 _additional_health_check_settings_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./additional-health-check-settings.component */ "./src/app/pages/scenario/additional-settings-main/additional-health-check-settings/additional-health-check-settings.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var _interface_scenario_routing_guard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../interface/scenario-routing-guard */ "./src/app/pages/scenario/interface/scenario-routing-guard.ts");








const route = [
    { path: '', component: _additional_health_check_settings_component__WEBPACK_IMPORTED_MODULE_3__["AdditionalHealthCheckSettingsComponent"], canDeactivate: [_interface_scenario_routing_guard__WEBPACK_IMPORTED_MODULE_7__["ScenRoutingGuard"]] }
];
let AdditionalHealthCheckSettingsModule = class AdditionalHealthCheckSettingsModule {
};
AdditionalHealthCheckSettingsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_additional_health_check_settings_component__WEBPACK_IMPORTED_MODULE_3__["AdditionalHealthCheckSettingsComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["FileUploadModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DialogModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TabViewModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DropdownModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["AccordionModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["BreadcrumbModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SelectButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["InputTextModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MultiSelectModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TableModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CardModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CheckboxModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MessageModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["RadioButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SpinnerModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(route),
        ],
        exports: [_additional_health_check_settings_component__WEBPACK_IMPORTED_MODULE_3__["AdditionalHealthCheckSettingsComponent"]]
    })
], AdditionalHealthCheckSettingsModule);



/***/ })

}]);