function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }

function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }

function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }

function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }

function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }

function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }

function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }

function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }

function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }

function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }

function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }

function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }

function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["default~configure-monitors-add-monitor-custom-monitors-custom-mon-deployment-custom-mon-deployment-m~ffca3a05"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.html":
  /*!**********************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.html ***!
    \**********************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_addMonitorComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<div class=\"h-100-vh add-monitor-container\">\n\n\n    <p-toolbar class=\"ui-secondary-toolbar\" *ngIf=\"!monitorupdownService.isFromSnmpSaveAndDeploy\">\n        <div class=\"p-grid p-justify-between p-align-center pl-5 pr-5\" *ngIf=\"techName != 'kubecluster'\">\n            <a class=\"clickable\" (click)=\"backClicked()\">\n                <span class=\"icons8 icons8-left toolbar-icon-color\"></span>\n            </a>\n            <div class=\"p-col ui-toolbar-text\">{{techDisplayName | uppercase }} : ADD MONITOR</div>\n\n            <span class=\"p-grid p-align-center\">\n                <button *ngIf=\"techName == 'kubernetesex'\" type=\"button\"\n                    class=\"ui-button ui-button-rounded ui-button-right\" pButton label=\"Kubernetes Configuration\"\n                    matTooltip=\"Kubernetes Configuration\" (click)=\"openYmlConf()\"></button>\n                <button pButton class=\"btn-icon btn-white\" *ngIf= \"(monitorupdownService.iconAllMonGdf)\" \n                icon=\"icons8 icons8-info\" matTooltip=\"Click to open Monitors Information\" (click)=\"getMonInfo(techDisplayName,allMonGdf)\"></button>\n\n                    <app-help *ngIf=\"showHideHelp\" [helpFileName]=\"techName\" [helpTitle]=\"'Help'\" [helpFolder]=\"'monitors'\" [helpClass]=\"'btn-white'\"></app-help>\n\n                    <button type=\"button\" pButton class=\"btn-icon btn-white\" \n                        [disabled] = \"!isAdminPermisson\" pButton matTooltip=\"Download Configuration Settings\"\n                        (click)=\"downloadProfile()\" icon=\"icons8 icons8-download\">\n                    </button>\n            </span>\n        </div>\n    </p-toolbar>\n\n    <div class=\"content-body p-grid\">\n        <form (ngSubmit)=\"addData()\" #form=\"ngForm\" ngNativeValidate>\n\n            <p-panel>\n                <p-header *ngIf=\"!monitorupdownService.isFromSnmpSaveAndDeploy\">\n                    <!-- Supported tab -->\n                    <ng-container *ngIf=\"supportedTabArray && supportedTabArray.length > 0\">\n                        <p-tabView (onChange)=\"handleChangeOfTab($event)\">\n                            <ng-container  *ngFor=\"let item of supportedTabArray; let i = index\">\n                                <p-tabPanel [header]=\"item.header\" *ngIf=\"item.display\"\n                                [selected]=\"item.selected\">\n                                <ng-container *ngIf=\"item.display && item.selected\">\n\n                                    <span class=\"p-grid relative p-col-12 p-align-center\">\n                                        <ng-container *ngFor=\"let field of formData\">\n                                            <ng-container *ngIf=\"field.monName === 'component'\">\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n                                    </span>\n\n                                    <ng-template #tree let-node=\"node\">\n                                        <ng-container *ngIf=\"node.type === 'TextField'\">\n                                            <div [ngClass]=\"node.cls\" class=\"\">\n                                                <div *ngIf=\"node.label != ''\" class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <span *ngIf=\"node.label === ''\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'pb-15 required-mark' : ''\"></span>\n                                                <div class=\"flexAuto\">\n                                                    <div class=\"type-search\" *ngIf=\"node.validationObj.inputType === 'password'\">\n                                                        <i class=\"right-icon pi clickable font-22 op70\" [ngClass]=\"node.toggle ? 'pi-eye' : 'pi-eye-slash'\"\n                                                        [title]=\"node.toggle ? 'Hide' : 'Show'\" (click)=\"node.toggle=!node.toggle\"></i>\n                                                    </div>\n                                                    \n                                                    <ng-container *ngIf=\"node.validationObj.inputType === 'number'; else otherType\">\n                                                        <input name=\"{{node.id}}\" type=\"number\" pInputText [(ngModel)]=\"node.value\" [disabled]=\"node.validationObj.disabled\"\n                                                            [title]=\"(node.value == '' || node.value == null) ? node.toolTip : node.value\" [pattern]=\"node['validationObj']['pattern']\"\n                                                            [placeholder]=\"node['placeholder']\" [ngStyle]=\"node.style\" class=\"w-100-p\" [min]=\"node['validationObj']['min']\"\n                                                            [max]=\"node['validationObj']['max']\" autocomplete=\"new-password\" [required]=\"node['validationObj']['required']\"\n                                                            ngDefaultControl />\n                                                    </ng-container>\n                                                    <ng-template #otherType>\n                                                        <input name=\"{{node.id}}\" [type]=\"!node.toggle && node.validationObj.inputType === 'password' ?'password' : 'text'\"\n                                                            pInputText [(ngModel)]=\"node.value\" [disabled]=\"node.validationObj.disabled\"\n                                                            [title]=\"(node.value == '') ? node.toolTip : (node.validationObj.inputType === 'password') ? '' : node.value\"\n                                                            [pattern]=\"node['validationObj']['pattern']\" [placeholder]=\"node['placeholder']\" [ngStyle]=\"node.style\"\n                                                            class=\"w-100-p pl-5\" [min]=\"node['validationObj']['min']\" [max]=\"node['validationObj']['max']\"\n                                                            autocomplete=\"new-password\" [required]=\"node['validationObj']['required']\" ngDefaultControl />\n                                                    </ng-template>\n                                                    \n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'TextArea'\">\n                                            <div [ngClass]=\"node.cls\" class=\"\">\n                                                <div *ngIf=\"node.label != ''\" class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <span *ngIf=\"node.label === ''\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'pb-15 required-mark' : ''\"></span>\n                                                <div class=\"flexAuto\">\n                                                    <textarea name=\"{{node.id}}\" \n                                                    [rows]=\"8\" [cols]=\"100\"\n                                                    pInputTextarea [(ngModel)]=\"node.value\"\n                                                        [disabled]=\"node.validationObj.disabled\"\n                                                        [title]=\"node.toolTip != null ? node.toolTip: ''\"\n                                                        [ngStyle]=\"node.style\"class=\"w-100-p\" \n                                                        [required]=\"node['validationObj']['required']\"\n                                                        ngDefaultControl ></textarea>\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n\n                                        <ng-container *ngIf=\"node.type === 'Checkbox'\">\n                                            <div [ngClass]=\"node.cls\"\n                                                class=\"p-grid p-justify-start p-align-center form-checkbox\">\n                                                <p-checkbox name=\"{{node.id}}\" [ngModel]=\"node.value == 'true'\"\n                                                    (onChange)=\"node.value = $event.checked; addDisableValidationForCheckbox(node)\"\n                                                    [binary]=\"true\" ngDefaultControl\n                                                    [disabled]=\"node.validationObj.disabled\">\n                                                </p-checkbox>\n                                                <div class=\"checkbox-label\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'NewLine'\">\n                                            <div class=\"w-100-p\"></div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'FieldSet'\">\n                                            <div class=\"p-col-12\">\n                                                <p-fieldset legend={{node.label}} [toggleable]=\"true\" collapsed=\"true\">\n                                                    <div class=\"p-grid p-col-12 p-align-center\">\n                                                        <ng-container *ngFor=\"let data of node.dependentComp\">\n                                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:data}\">\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </div>\n                                                </p-fieldset>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'subTitle'\">\n                                            <div [ngClass]=\"node.cls\" class=\"field-label\">{{node.label}}</div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Button'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <a pButton class=\"ui-button ui-button-rounded ui-button-right\"\n                                                    [style]=\"node.style\" [label]=\"node.label\"></a>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'instanceName'\">\n                                            <div class=\"p-grid p-col-4 p-align-center\" [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\" [style]=\"node.style\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input type=\"text\" name=\"{{node.id}}\" pInputText\n                                                        [(ngModel)]=\"node.value\"\n                                                        [pattern]=\"node['validationObj']['pattern']\" class=\"w-100-p\"\n                                                        [disabled]=\"node.validationObj.disabled\" title =\"{{ node.value ? node.value : node.toolTip}}\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        ngDefaultControl />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.isSpecific\">\n                                            <div class=\"p-col-12\">\n                                                <p-panel #pnl2 expandIcon=\"\" collapseIcon=\"\" [toggleable]=\"true\"\n                                                    [collapsed]=\"true\"\n                                                    [ngClass]=\"pnl2.collapsed ? 'collapsed' : 'uncollapsed'\">\n                                                    <p-header class=\"cav-panel-header\">\n                                                        <div class=\"p-grid p-align-center p-justify-between\">\n                                                            <div class=\"panel-title p-grid p-align-center mr-10\">\n                                                                <div (click)=\"pnl2.toggle($event)\">\n                                                                    <a>\n                                                                        <span\n                                                                            [class]=\"pnl2.collapsed ? 'icons8 icons8-expand-arrow' : 'icons8 icons8-collapse-arrow'\"></span>\n                                                                    </a>\n                                                                </div>\n\n                                                                <p-checkbox [binary]=\"true\" [(ngModel)]=\"node.enabled\"\n                                                                    name=\"{{node.inMonName}}_{{item.tabName}}\"\n                                                                    ngDefaultControl\n                                                                    (onChange)=\"expandPnl(node, node.enabled); displayContent ? pnl2.collapsed = false : displayContent = false\">\n                                                                </p-checkbox>\n\n                                                                <div (click)=\"pnl2.toggle($event)\">\n                                                                    <span class=\"checkbox-label\">{{node.monType}}</span>\n                                                                </div><i class=\"pi pi-info-circle\"\n                                                                    matTooltip=\"Click to open Monitor Information\"\n                                                                    (click)=\"getMonInfo(node.monType,node.inMonName)\"></i>\n                                                            </div>\n                                                            <i matTooltip=\"Add other arguments\"\n                                                                class=\"icons8 icons8-settings toolbar-icon-css\"\n                                                                (click)=\"toggle(node)\"></i>\n                                                        </div>\n                                                    </p-header>\n\n                                                    <div *ngIf=\"isDB\" class=\"p-grid p-align-center w-100-p\">\n                                                        <div class=\"width-150\">Query</div>\n                                                        <div class=\"p-col-8\">\n                                                            <textarea pInputTextarea class=\"w-100-p\" id=\"foo\"\n                                                                name=\"{{node.newId}}\" readonly [rows]=\"4\"\n                                                                [(ngModel)]=\"node.dbQuery\"></textarea>\n                                                        </div>\n                                                    </div>\n\n                                                    <p-table *ngIf=\"isDB\" class=\"all-tables\" [columns]=\"column\"\n                                                        [value]=\"node.opData\" [rows]=\"5\"\n                                                        [paginator]=\"node.opData?.length >5\" [pageLinks]=\"3\">\n                                                        <ng-template pTemplate=\"caption\">Other Parameters\n                                                        </ng-template>\n\n                                                        <ng-template pTemplate=\"header\" let-columns>\n                                                            <tr>\n                                                                <th *ngFor=\"let col of columns\">\n                                                                    {{col.header}}\n                                                                </th>\n                                                            </tr>\n                                                        </ng-template>\n\n                                                        <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\"\n                                                            let-index=\"rowIndex\" let-editing=\"editing\">\n                                                            <tr>\n                                                                <td>{{rowData.pattern}}</td>\n\n                                                                <td>\n                                                                    <input pInputText type=\"text\"\n                                                                        [(ngModel)]=\"rowData.upVal\"\n                                                                        [ngModelOptions]=\"{standalone: true}\"\n                                                                        class=\"w-100-p\">\n                                                                </td>\n                                                            </tr>\n                                                        </ng-template>\n\n                                                        <ng-template pTemplate=\"emptymessage\" let-columns>\n                                                            <tr>\n                                                                <td [attr.colspan]=\"columns.length\"\n                                                                    class=\"noRecords text-center\">No records found.</td>\n                                                            </tr>\n                                                        </ng-template>\n                                                    </p-table>\n\n                                                    <div class=\"content filepath1 p-grid p-col-12 p-align-center\">\n                                                        <ng-container\n                                                            *ngFor=\"let data of node.dependentComp; let i = index\">\n                                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:data}\">\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </div>\n\n                                                </p-panel>\n                                            </div>\n                                        </ng-container>\n\n\n\n                                        <ng-container *ngIf=\"node.type === 'Spinner'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input name=\"{{node.id}}\" type=\"number\" pInputText\n                                                        [title]=\"node.toolTip\"\n                                                        [disabled]=\"node['validationObj']['disabled']\"\n                                                        [min]=\"node['validationObj']['min']\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        [max]=\"node['validationObj']['max']\" class=\"w-100-p\"\n                                                        [(ngModel)]=\"node.value\" ngDefaultControl />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Note'\">\n                                            <div class=\"p-col-12 note-label\">\n                                                <!-- <span> -->\n                                                <b>Note:</b> {{node.label}}\n                                                <!-- </span> -->\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Tree'\">\n                                            <p-panel [ngClass]=\"node.cls\" [toggleable]=\"false\">\n                                                <p-header>\n                                                    {{node.label}}\n                                                </p-header>\n                                                <p-tree [value]=\"node.value\"></p-tree>\n                                            </p-panel>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Dropdown'\">\n                                            <div [ngClass]=\"node.cls\" class=\"p-justify-start p-align-center p-grid\"\n                                                [style]=\"node.style\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <p-dropdown class=\"\" name=\"{{node.id}}\" [(ngModel)]=\"node.value\"\n                                                        [options]=\"node.dropDownList\" ngDefaultControl\n                                                        placeholder=\"--Select--\" [title]=\"node.toolTip\"\n                                                        [disabled]=\"node.validationObj.disabled\"\n                                                        [style]=\"{'min-width':'171px'}\"\n                                                        dropdownIcon=\"icons8 icons8-expand-arrow\" [baseZIndex]=\"99999\">\n                                                    </p-dropdown>\n                                                </div>\n                                            </div>\n                                            <ng-container *ngFor=\"let item of node.dropDownList\">\n                                                <ng-container *ngIf=\"node.value  === item.value\">\n                                                    <ng-container *ngIf=\"item.dependentComp != null\">\n                                                        <ng-container *ngFor=\"let dependentData of item.dependentComp\">\n                                                            <ng-container\n                                                                *ngTemplateOutlet=\"tree;context:{node:dependentData}\">\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </ng-container>\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'MultiSelect'\">\n                                            <div [ngClass]=\"node.cls\"\n                                                class=\"p-justify-start p-align-center p-grid my-5\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <p-multiSelect ngDefaultControl class=\"\" [(ngModel)]=\"node.value\"\n                                                        [options]=\"node.list\" name=\"{{node.id}}\"\n                                                        [style]=\"{'min-width':'170px'}\"\n                                                        dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                                    </p-multiSelect>\n                                                </div>\n                                            </div>\n                                            <ng-container *ngFor=\"let item of node.value\">\n                                                <ng-container *ngIf=\"item.dependentComp\">\n                                                    <ng-container *ngFor=\"let comp of item.dependentComp\">\n                                                        <ng-container *ngTemplateOutlet=\"tree;context:{node:comp}\">\n                                                        </ng-container>\n                                                    </ng-container>\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'RadioButtonGroup'\">\n                                            <div [ngClass]=\"node.cls\"\n                                                class=\"p-grid p-justify-start p-align-start w-100-p\"\n                                                [ngStyle]=\"node.style\">\n                                                <div class=\"p-col-12 input-label boldLabel\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <span class=\" p-col-12 p-grid p-align-center\"\n                                                    *ngFor=\"let data of node.items\">\n                                                    <p-radioButton [value]=\"data.value\" [label]=\"data.label\"\n                                                        [(ngModel)]=\"node.value\" [styleClass]=\"node.cls\"\n                                                        ngDefaultControl name=\"{{data.id}}\" [title]=\"node.toolTip\"\n                                                        (onClick)=\"selectedRadioOption = data;addDisableValidation(node)\">\n                                                    </p-radioButton>\n                                                    <ng-container *ngFor=\"let dependentData of data.dependentComp\">\n                                                        <ng-container\n                                                            *ngTemplateOutlet=\"tree;context:{node:dependentData}\">\n                                                        </ng-container>\n                                                    </ng-container>\n                                                </span>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Textbox'\">\n                                            <textarea pInputTextarea [(ngModel)]=\"node.value\" name=\"{{node.label}}\"\n                                                ngDefaultControl></textarea>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'Table' || node.type === 'TableSingleArg'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <app-dynamic-table [tableCompData]=\"node\" [tableTemplate]=\"tree\"\n                                                    [disabled]=\"node.validationObj.disabled\">\n                                                </app-dynamic-table>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'other'\">\n                                            <div [ngClass]=\"node.cls\" class=\"\">\n                                                <div class=\"input-label width-150\"\n                                                    [hidden]=\"node['validationObj']['hidden']\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\" [hidden]=\"node['validationObj']['hidden']\">\n                                                    <input name=\"{{node.label}}{{node.value}}\"\n                                                        [type]=\"node.validationObj.input\" pInputText\n                                                        [(ngModel)]=\"node.value\"\n                                                        [disabled]=\"node.validationObj.disabled\"\n                                                        [title]=\"node.value ? node.value :'Enter Other Arguments as:&#10; 1. --opt1 val1 --opt2 val2 &#10; 2. -opt1 val1 -opt2 val2 &#10; 3. /opt1:val1 /opt2:val2'\"\n                                                        [ngStyle]=\"node.style\" ngDefaultControl class=\"w-100-p\" />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'agentType'\">\n                                            <div [ngClass]=\"node.cls\" class=\"\">\n                                                <div class=\"input-label\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div>\n                                                    <p-dropdown [style]=\"node['style']\" name=\"agntlist\" required\n                                                        placeholder=\"-- Select --\" [options]=\"agentList\"\n                                                        [(ngModel)]=\"node.value\" [title]=\"node.toolTip\">\n                                                    </p-dropdown>\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'tierName'\">\n                                            <div [ngClass]=\"node.cls\" class=\"\">\n                                                <div class=\"input-label width-150\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <p-multiSelect [style]=\"node['style']\" appendTo=\"body\"\n                                                        defaultLabel=\"Choose Tier\" name=\"list\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        [options]=\"tierList\" [(ngModel)]=\"node.valObj\"\n                                                        [style]=\"{'min-width':'170px'}\"\n                                                        dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                                    </p-multiSelect>\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'javaHome'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input name=\"{{node.id}}\" type=\"text\" pInputText\n                                                        [(ngModel)]=\"node.value\"\n                                                        [pattern]=\"node['validationObj']['pattern']\"\n                                                        [title]=\"node.toolTip\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        [disabled]=\"node.validationObj.disabled\" class=\"w-100-p\"\n                                                        [ngStyle]=\"node.style\" ngDefaultControl />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'classPath'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input name=\"{{node.id}}\" class=\"w-100-p\" type=\"text\" pInputText\n                                                        [(ngModel)]=\"node.value\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        [ngStyle]=\"node.style\" ngDefaultControl\n                                                        [title]=\"node.toolTip\" />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'appName'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input name=\"{{node.id}}\" type=\"text\" pInputText\n                                                        [(ngModel)]=\"node.value\"\n                                                        [required]=\"node['validationObj']['required']\"\n                                                        [ngStyle]=\"node.style\" [title]=\"node.toolTip\" class=\"w-100-p\"\n                                                        pattern=\"^[a-zA-Z][a-zA-Z0-9@.-]{0,64}$\" ngDefaultControl />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'excludeAppName'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label width-150\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexAuto\">\n                                                    <input name=\"{{node.id}}\" pattern=\"^[a-zA-Z][a-zA-Z0-9@.-]{0,64}$\"\n                                                        type=\"text\" [title]=\"node.toolTip\" pInputText\n                                                        [(ngModel)]=\"node.value\" class=\"w-100-p\" [ngStyle]=\"node.style\"\n                                                        ngDefaultControl />\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"node.type === 'frequency'\">\n                                            <div [ngClass]=\"node.cls\">\n                                                <div class=\"input-label\" [hidden]=\"node['validationObj']['hidden']\">\n                                                    {{node.label}}\n                                                </div>\n                                                <div class=\"flexauto\" [hidden]=\"node['validationObj']['hidden']\">\n                                                    <p-dropdown name=\"{{node.id}}_frequency\"\n                                                        [options]=\"node.dropDownList\" [(ngModel)]=\"node.value\">\n                                                    </p-dropdown>\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n\n                                        <ng-container *ngIf=\"node.type === 'isProcess'\">\n                                            <div [ngClass]=\"node.cls\"\n                                                class=\"p-grid p-justify-start p-align-center form-checkbox\">\n                                                <p-checkbox name=\"{{node.id}}\" [ngModel]=\"node.value == 'true'\"\n                                                    [title]=\"node.toolTip\" (onChange)=\"node.value = $event.checked\"\n                                                    [binary]=\"true\" ngDefaultControl>\n                                                </p-checkbox>\n                                                <div class=\"checkbox-label\"\n                                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                                    {{node.label}}\n                                                </div>\n                                            </div>\n                                        </ng-container>\n\n                                        <div *ngIf=\"showChild(node) && node.type !=='Accordion' && node.type !=='FieldSet' && node.type !=='dependentComp'\"\n                                            class=\"p-grid\" [ngClass]=\"node.cls\" [ngStyle]=\"node.style\">\n\n                                            <ng-container *ngFor=\"let child of node.dependentComp\">\n\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:child}\">\n                                                </ng-container>\n\n                                            </ng-container>\n                                        </div>\n                                    </ng-template>\n\n                                    <ng-container *ngFor=\"let label of monCategory\">\n                                        <p-accordion>\n                                            <p-accordionTab [header]=\"label\" [selected]=\"false\">\n                                                <div>\n                                                    <span class=\"p-grid p-col-12 p-align-center\">\n                                                        <ng-container *ngFor=\"let field of formData\">\n                                                            <ng-container *ngIf=\"field.monName == label\">\n                                                                <ng-container\n                                                                    *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                                </ng-container>\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </span>\n                                                </div>\n                                            </p-accordionTab>\n                                        </p-accordion>\n                                    </ng-container>\n\n                                    <div *ngIf=\"isCMD\">\n                                        <p-accordion>\n                                            <p-accordionTab [header]=\"'Command Based Monitors'\"\n                                                [selected]=\"monitorupdownService.expCol\">\n                                                <div>\n\n                                                    <app-cmd-deployment [item]=\"cmdData\" [showRmTier]=\"rTFlag\"\n                                                        [showRmServer]=\"rSFlag\">\n                                                    </app-cmd-deployment>\n                                                    <ng-container *ngFor=\"let field of formData\">\n                                                        <ng-container *ngIf=\"field.monName == 'cmd'\">\n                                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                                {{field.monName}}\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </ng-container>\n                                                    <ng-container *ngFor=\"let node of customCmdMon\">\n                                                        <p-accordion ngClass=\"p-col-12\">\n                                                            <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                                                <p-header>\n                                                                    <p-checkbox [binary]=\"true\" name=\"isChk\"\n                                                                        [(ngModel)]=\"node.enable\" ngDefaultControl>\n                                                                    </p-checkbox>\n                                                                    <span class=\"checkbox-label\">{{node.key}}</span>\n                                                                </p-header>\n                                                                <span class=\"p-grid p-col-12\" *ngIf=\"node.op\">\n                                                                    <p-card>\n                                                                        <p-table class=\"scen-ptable\"\n                                                                            [columns]=\"customMonCols\"\n                                                                            [value]=\"node.opData\" [rows]=\"5\"\n                                                                            [paginator]=\"node.rows >5\" [pageLinks]=\"3\">\n                                                                            <ng-template pTemplate=\"caption\">Other\n                                                                                Parameters\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"header\" let-columns>\n                                                                                <tr>\n                                                                                    <th *ngFor=\"let col of columns\">\n                                                                                        {{col.header}}\n                                                                                    </th>\n                                                                                </tr>\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"body\" let-rowData\n                                                                                let-columns=\"columns\"\n                                                                                let-index=\"rowIndex\"\n                                                                                let-editing=\"editing\">\n                                                                                <tr>\n                                                                                    <td>{{rowData.pattern}}</td>\n\n                                                                                    <td>\n                                                                                        <input pInputText type=\"text\"\n                                                                                            name=\"{{rowData.pattern}}\"\n                                                                                            [(ngModel)]=\"rowData.upVal\"\n                                                                                            style=\"width:100%\" required>\n                                                                                    </td>\n                                                                                </tr>\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"emptymessage\"\n                                                                                let-columns>\n                                                                                <tr>\n                                                                                    <td [attr.colspan]=\"columns.length\"\n                                                                                        class=\"noRecords\"\n                                                                                        style=\"text-align: center\">No\n                                                                                        records found.</td>\n                                                                                </tr>\n                                                                            </ng-template>\n                                                                        </p-table>\n                                                                    </p-card>\n                                                                </span>\n                                                            </p-accordionTab>\n\n                                                        </p-accordion>\n                                                    </ng-container>\n                                                </div>\n                                            </p-accordionTab>\n                                        </p-accordion>\n                                    </div>\n\n                                    <div *ngIf=\"isDB\">\n                                        <div>\n                                            <app-db-deployment [item]=\"dbData\" [showRmTier]=\"rTFlag\"\n                                                [showRmServer]=\"rSFlag\">\n                                            </app-db-deployment>\n                                            <ng-container *ngFor=\"let field of formData\">\n                                                <ng-container *ngIf=\"field.monName == 'db'\">\n                                                    <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                        {{field.monName}}\n                                                    </ng-container>\n                                                </ng-container>\n                                            </ng-container>\n                                            <ng-container *ngFor=\"let node of customDbMon\">\n                                                <p-accordion ngClass=\"p-col-12\">\n                                                    <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                                        <p-header>\n                                                            <p-checkbox [binary]=\"true\" [(ngModel)]=\"node.enable\"\n                                                                name=\"isChk1\" ngDefaultControl></p-checkbox>\n                                                            <span class=\"checkbox-label\">{{node.key}}</span>\n                                                        </p-header>\n\n\n                                                        <div class=\"mb-10\" *ngIf=\"node.op\">\n                                                            <p-table class=\"all-tables\" [columns]=\"customMonCols\"\n                                                                [value]=\"node.opData\" [rows]=\"5\"\n                                                                [paginator]=\"node.rows >5\" [pageLinks]=\"3\">\n                                                                <ng-template pTemplate=\"caption\">Other Parameters\n                                                                </ng-template>\n\n                                                                <ng-template pTemplate=\"header\" let-columns>\n                                                                    <tr>\n                                                                        <th *ngFor=\"let col of columns\">\n                                                                            {{col.header}}\n                                                                        </th>\n                                                                    </tr>\n                                                                </ng-template>\n\n                                                                <ng-template pTemplate=\"body\" let-rowData\n                                                                    let-columns=\"columns\" let-index=\"rowIndex\"\n                                                                    let-editing=\"editing\">\n                                                                    <tr>\n                                                                        <td>{{rowData.pattern}}</td>\n\n                                                                        <td>\n                                                                            <input pInputText type=\"text\"\n                                                                                name=\"{{rowData.pattern}}\"\n                                                                                [(ngModel)]=\"rowData.upVal\"\n                                                                                style=\"width:100%\">\n                                                                        </td>\n                                                                    </tr>\n                                                                </ng-template>\n\n                                                                <ng-template pTemplate=\"emptymessage\" let-columns>\n                                                                    <tr>\n                                                                        <td [attr.colspan]=\"columns.length\"\n                                                                            class=\"noRecords\"\n                                                                            style=\"text-align: center\">No records found.\n                                                                        </td>\n                                                                    </tr>\n                                                                </ng-template>\n                                                            </p-table>\n                                                        </div>\n\n                                                    </p-accordionTab>\n\n                                                </p-accordion>\n                                            </ng-container>\n                                        </div>\n                                    </div>\n\n                                    <div *ngIf=\"isJMX\">\n                                        <p-accordion>\n                                            <p-accordionTab [header]=\"'JMX Based Monitors'\"\n                                                [selected]=\"monitorupdownService.expCol\">\n                                                <div>\n                                                    <app-jmx-deployment [item]=\"jmxData\"></app-jmx-deployment>\n                                                    <ng-container *ngFor=\"let field of formData\">\n                                                        <ng-container *ngIf=\"field.monName === 'jmx'\">\n                                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                                {{field.monName}}\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </ng-container>\n                                                    <ng-container *ngFor=\"let node of customJmxMon\">\n                                                        <p-accordion ngClass=\"p-col-12\">\n                                                            <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                                                <p-header>\n                                                                    <p-checkbox [binary]=\"true\" name=\"isJmxChk\"\n                                                                        [(ngModel)]=\"node.enable\" ngDefaultControl>\n                                                                    </p-checkbox>\n                                                                    <span class=\"checkbox-label\">{{node.key}}</span>\n                                                                </p-header>\n                                                                <span class=\"p-grid p-col-12\" *ngIf=\"node.op\">\n                                                                    <p-card>\n                                                                        <p-table [columns]=\"customMonCols\"\n                                                                            [value]=\"node.opData\" [rows]=\"5\"\n                                                                            [paginator]=\"node.rows >5\" [pageLinks]=\"3\">\n                                                                            <ng-template pTemplate=\"caption\">Other\n                                                                                Parameters\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"header\" let-columns>\n                                                                                <tr>\n                                                                                    <th *ngFor=\"let col of columns\">\n                                                                                        {{col.header}}\n                                                                                    </th>\n                                                                                </tr>\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"body\" let-rowData\n                                                                                let-columns=\"columns\"\n                                                                                let-index=\"rowIndex\"\n                                                                                let-editing=\"editing\">\n                                                                                <tr>\n                                                                                    <td>{{rowData.pattern}}</td>\n\n                                                                                    <td>\n                                                                                        <input pInputText type=\"text\"\n                                                                                            [(ngModel)]=\"rowData.upVal\"\n                                                                                            style=\"width:100%\"\n                                                                                            name=\"{{rowData.pattern}}\"\n                                                                                            required>\n                                                                                    </td>\n                                                                                </tr>\n                                                                            </ng-template>\n\n                                                                            <ng-template pTemplate=\"emptymessage\"\n                                                                                let-columns>\n                                                                                <tr>\n                                                                                    <td [attr.colspan]=\"columns.length\"\n                                                                                        class=\"noRecords\"\n                                                                                        style=\"text-align: center\">No\n                                                                                        records found.</td>\n                                                                                </tr>\n                                                                            </ng-template>\n                                                                        </p-table>\n                                                                    </p-card>\n                                                                </span>\n                                                            </p-accordionTab>\n\n                                                        </p-accordion>\n                                                    </ng-container>\n                                                </div>\n                                            </p-accordionTab>\n                                        </p-accordion>\n                                    </div>\n\n                                    <div *ngIf=\"isOtherMon\">\n                                        <p-accordion>\n                                            <p-accordionTab [header]=\"'Other'\" [selected]=\"false\">\n                                                <div>\n                                                    <span class=\"p-grid p-col-12 p-align-center\">\n                                                        <ng-container *ngFor=\"let field of formData\">\n                                                            <ng-container *ngIf=\"field.monName === 'other'\">\n                                                                <ng-container\n                                                                    *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                                </ng-container>\n                                                            </ng-container>\n                                                        </ng-container>\n                                                    </span>\n                                                </div>\n                                            </p-accordionTab>\n                                        </p-accordion>\n                                    </div>\n                                </ng-container>\n                            </p-tabPanel>\n                            </ng-container>\n                      \n                        </p-tabView>\n                    </ng-container>\n\n                    <!-- For those without supported tab -->\n                    <ng-container *ngIf=\"!supportedTabArray\">\n                        {{techDisplayName}} Deployment\n                    </ng-container>\n                </p-header>\n\n                <ng-container *ngIf=\"!supportedTabArray\">\n\n                    <span class=\"p-grid relative p-col-12 p-align-center\">\n                        <ng-container *ngFor=\"let field of formData\">\n                            <ng-container *ngIf=\"field.monName === 'component'\">\n                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\"></ng-container>\n                            </ng-container>\n                        </ng-container>\n                    </span>\n\n                    <ng-template #tree let-node=\"node\">\n                        <ng-container *ngIf=\"node.type === 'TextField'\">\n                            <div [ngClass]=\"node.cls\" class=\"\">\n                                <div *ngIf=\"node.label != ''\" class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <span *ngIf=\"node.label === ''\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'pb-15 required-mark' : ''\"></span>\n                                <div class=\"flexAuto\">\n                                    <div>\n                                        <div class=\"type-search\">\n                                            <i class=\"right-icon pi clickable font-22 op70\" [ngClass]=\"node.toggle ? 'pi-eye' : 'pi-eye-slash'\"\n                                                [title]=\"node.toggle ? 'Hide' : 'Show'\"\n                                                (click)=\"node.toggle=!node.toggle\"\n                                                *ngIf=\"node.validationObj.inputType === 'password'\"></i>\n                                    \n                                                <ng-container *ngIf=\"node.validationObj.inputType === 'number'; else otherType\">\n                                                    <input name=\"{{node.id}}\" type=\"number\" pInputText [(ngModel)]=\"node.value\" [disabled]=\"node.validationObj.disabled\"\n                                                        [title]=\"(node.value == '' || node.value == null) ? node.toolTip : node.value\" [pattern]=\"node['validationObj']['pattern']\"\n                                                        [placeholder]=\"node['placeholder']\" [ngStyle]=\"node.style\" class=\"w-100-p pl-5\"\n                                                        [min]=\"node['validationObj']['min']\" [max]=\"node['validationObj']['max']\" autocomplete=\"new-password\"\n                                                        [required]=\"node['validationObj']['required']\" ngDefaultControl />\n                                                </ng-container>\n                                                <ng-template #otherType>\n                                                    <input name=\"{{node.id}}\" [type]=\"!node.toggle && node.validationObj.inputType === 'password' ?'password' : 'text'\"\n                                                        pInputText [(ngModel)]=\"node.value\" [disabled]=\"node.validationObj.disabled\"\n                                                        [title]=\"(node.value == '') ? node.toolTip : (node.validationObj.inputType === 'password') ? '' : node.value\"\n                                                        [pattern]=\"node['validationObj']['pattern']\" [placeholder]=\"node['placeholder']\" [ngStyle]=\"node.style\"\n                                                        class=\"w-100-p pl-5\" [min]=\"node['validationObj']['min']\" [max]=\"node['validationObj']['max']\"\n                                                        autocomplete=\"new-password\" [required]=\"node['validationObj']['required']\" ngDefaultControl />\n                                                </ng-template>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'TextArea'\">\n                            <div [ngClass]=\"node.cls\" class=\"\">\n                                <div *ngIf=\"node.label != ''\" class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <span *ngIf=\"node.label === ''\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'pb-15 required-mark' : ''\"></span>\n                                <div class=\"flexAuto\">\n                                    <textarea name=\"{{node.id}}\" \n                                    [rows]=\"8\" [cols]=\"100\"\n                                    pInputTextarea [(ngModel)]=\"node.value\"\n                                        [disabled]=\"node.validationObj.disabled\"\n                                        [title]=\"node.toolTip != null ? node.toolTip:''\" \n                                        [ngStyle]=\"node.style\" class=\"w-100-p\" \n                                        [required]=\"node['validationObj']['required']\"\n                                        ngDefaultControl ></textarea>\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Checkbox'\">\n                            <div [ngClass]=\"node.cls\" class=\"p-grid p-justify-start p-align-center form-checkbox\">\n                                <p-checkbox name=\"{{node.id}}\" [ngModel]=\"node.value == 'true'\"\n                                    (onChange)=\"node.value = $event.checked; addDisableValidationForCheckbox(node)\"\n                                    [binary]=\"true\" ngDefaultControl [disabled]=\"node.validationObj.disabled\">\n                                </p-checkbox>\n                                <div class=\"checkbox-label\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'NewLine'\">\n                            <div class=\"w-100-p\"></div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'FieldSet'\">\n                            <div class=\"p-col-12\">\n                                <p-fieldset legend={{node.label}} [toggleable]=\"true\" collapsed=\"true\">\n                                    <div class=\"p-grid p-col-12 p-align-center\">\n                                        <ng-container *ngFor=\"let data of node.dependentComp\">\n                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:data}\"></ng-container>\n                                        </ng-container>\n                                    </div>\n                                </p-fieldset>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'subTitle'\">\n                            <div [ngClass]=\"node.cls\" class=\"field-label\">{{node.label}}</div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Button'\">\n                            <div [ngClass]=\"node.cls\">\n                                <a pButton class=\"ui-button ui-button-rounded ui-button-right\" [style]=\"node.style\"\n                                    [label]=\"node.label\"></a>\n                            </div>\n                        </ng-container>\n\n\n                        <ng-container *ngIf=\"node.type === 'instanceName'\">\n                            <div class=\"p-grid p-col-4 p-align-center\" [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\" [style]=\"node.style\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input type=\"text\" name=\"{{node.id}}\" pInputText [(ngModel)]=\"node.value\"\n                                        [pattern]=\"node['validationObj']['pattern']\" class=\"w-100-p\"\n                                        [disabled]=\"node.validationObj.disabled\" matTooltip=\"{{ node.value ? node.value : node.toolTip}}\"\n                                        [required]=\"node['validationObj']['required']\" ngDefaultControl />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.isSpecific\">\n                            <div class=\"p-col-12\">\n                                <p-panel #pnl2 expandIcon=\"\" collapseIcon=\"\" [toggleable]=\"true\" [collapsed]=\"true\"\n                                    [ngClass]=\"pnl2.collapsed ? 'collapsed' : 'uncollapsed'\">\n                                    <p-header class=\"cav-panel-header\">\n                                        <div class=\"p-grid p-align-center p-justify-between\">\n                                            <div class=\"panel-title p-grid p-align-center mr-10\">\n                                                <div (click)=\"pnl2.toggle($event)\">\n                                                    <a>\n                                                        <span\n                                                            [class]=\"pnl2.collapsed ? 'icons8 icons8-expand-arrow' : 'icons8 icons8-collapse-arrow'\"></span>\n                                                    </a>\n                                                </div>\n\n                                                <p-checkbox  [binary]=\"true\" [(ngModel)]=\"node.enabled\"\n                                                    name=\"{{node.inMonName}}\"\n                                                    (onChange)=\"expandPnl(node, node.enabled); displayContent ? pnl2.collapsed = false : displayContent = false\">\n                                                </p-checkbox>\n\n                                                <div (click)=\"pnl2.toggle($event)\">\n                                                    <span class=\"checkbox-label\">{{node.monType}}</span>\n                                                </div><i class=\"pi pi-info-circle\"\n                                                    matTooltip=\"Click to open Monitor Information\"\n                                                    (click)=\"getMonInfo(node.monType,node.inMonName)\"></i>\n                                            </div>\n                                            <div>\n                         \n                                            </div>\n                                            <i matTooltip=\"Add other arguments\"\n                                                class=\"icons8 icons8-settings toolbar-icon-css\"\n                                                (click)=\"toggle(node)\"></i>\n                                        </div>\n                                    </p-header>\n\n                                    <div *ngIf=\"isDB\" class=\"p-grid p-align-center w-100-p\">\n                                        <div class=\"width-150\">Query</div>\n                                        <div class=\"p-col-8\">\n                                            <textarea pInputTextarea class=\"w-100-p\" id=\"foo\" name=\"{{node.newId}}\"\n                                                readonly [rows]=\"4\" [(ngModel)]=\"node.dbQuery\"></textarea>\n                                        </div>\n                                    </div>\n                                    <ng-container *ngIf=\"isLogMon\">\n                                        <ng-container *ngFor=\"let item of customLogPatternDataArr\">\n                                            <ng-container *ngIf=\"node.monType === item.gdfName\">\n                                                    <app-log-mon-deployment [monName]=\"node.monType\" [customLogPatternDataArr] = \"customLogPatternDataArr\"></app-log-mon-deployment>\n                                            </ng-container>\n                                        </ng-container>\n                                    </ng-container>\n\n                                    <ng-container *ngIf=\"isLogDataMon\">\n                                        <ng-container *ngFor=\"let item of customLogDataArr\">\n                                            <ng-container *ngIf=\"node.monType === item.gdfName\">\n                                                    <app-log-data-mon-deployment [monName]=\"node.monType\" [customLogDataArr] = \"customLogDataArr\"></app-log-data-mon-deployment>\n                                            </ng-container>\n                                        </ng-container>\n                                    </ng-container>\n\n                                    <div *ngIf=\"isREST\" class=\"p-grid p-align-center w-100-p\">\n                                        <ng-container *ngFor=\"let item of customRestDataArr\">\n                                            <ng-container *ngIf=\"node.monType == item.monName\">\n                                                    <app-rest-deployment style=\"width:100%\" [monName]=\"node.monType\" [customRestDataArr] = \"customRestDataArr\"></app-rest-deployment>\n                                            </ng-container>\n                                        </ng-container>\n                                    </div>\n\n\n                                    <p-table *ngIf=\"isDB\" class=\"all-tables\" [columns]=\"column\" [value]=\"node.opData\"\n                                        [rows]=\"5\" [paginator]=\"node.opData?.length >5\" [pageLinks]=\"3\">\n                                        <ng-template pTemplate=\"caption\">Other Parameters\n                                        </ng-template>\n\n                                        <ng-template pTemplate=\"header\" let-columns>\n                                            <tr>\n                                                <th *ngFor=\"let col of columns\">\n                                                    {{col.header}}\n                                                </th>\n                                            </tr>\n                                        </ng-template>\n\n                                        <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\"\n                                            let-index=\"rowIndex\" let-editing=\"editing\">\n                                            <tr>\n                                                <td>{{rowData.pattern}}</td>\n\n                                                <td>\n                                                    <input pInputText type=\"text\" [(ngModel)]=\"rowData.upVal\"\n                                                        [ngModelOptions]=\"{standalone: true}\" class=\"w-100-p\">\n                                                </td>\n                                            </tr>\n                                        </ng-template>\n\n                                        <ng-template pTemplate=\"emptymessage\" let-columns>\n                                            <tr>\n                                                <td [attr.colspan]=\"columns.length\" class=\"noRecords text-center\">No\n                                                    records found.</td>\n                                            </tr>\n                                        </ng-template>\n                                    </p-table>\n\n\t\t\t\t                                        <p-table *ngIf=\"isSnmp\" class=\"all-tables\" [columns]=\"column\" [value]=\"node.opData\" [rows]=\"5\"\n                                        [paginator]=\"node.opData?.length >5\" [pageLinks]=\"3\">\n                                        <ng-template pTemplate=\"caption\">Other Parameters\n                                        </ng-template>\n\n                                        <ng-template pTemplate=\"header\" let-columns>\n                                            <tr>\n                                                <th *ngFor=\"let col of columns\">\n                                                    {{col.header}}\n                                                </th>\n                                            </tr>\n                                        </ng-template>\n\n                                        <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\" let-index=\"rowIndex\" let-editing=\"editing\">\n                                            <tr>\n                                                <td>{{rowData.pattern}}</td>\n\n                                                <td>\n                                                    <input pInputText type=\"text\" [(ngModel)]=\"rowData.upVal\" [ngModelOptions]=\"{standalone: true}\"\n                                                        class=\"w-100-p\">\n                                                </td>\n                                            </tr>\n                                        </ng-template>\n                                        <ng-template pTemplate=\"emptymessage\" let-columns>\n                                            <tr>\n                                                <td [attr.colspan]=\"columns.length\" class=\"noRecords text-center\">No records found.</td>\n                                            </tr>\n                                        </ng-template>\n                                    </p-table>\n\n                                    <div class=\"content filepath1 p-grid p-col-12 p-align-center\">\n                                        <ng-container *ngFor=\"let data of node.dependentComp; let i = index\">\n                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:data}\">\n                                            </ng-container>\n                                        </ng-container>\n                                    </div>\n\n                                </p-panel>\n                            </div>\n                        </ng-container>\n\n\n\n                        <ng-container *ngIf=\"node.type === 'Spinner'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input name=\"{{node.id}}\" type=\"number\" pInputText [title]=\"node.toolTip\"\n                                        [disabled]=\"node['validationObj']['disabled']\"\n                                        [min]=\"node['validationObj']['min']\"\n                                        [required]=\"node['validationObj']['required']\"\n                                        [max]=\"node['validationObj']['max']\" class=\"w-100-p\" [(ngModel)]=\"node.value\"\n                                        ngDefaultControl />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Note'\">\n                            <div class=\"p-col-12 note-label\">\n                                <b>Note:</b> {{node.label}}\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Tree'\">\n                            <p-panel [ngClass]=\"node.cls\" [toggleable]=\"false\">\n                                <p-header>\n                                    {{node.label}}\n                                </p-header>\n                                <p-tree [value]=\"node.value\"></p-tree>\n                            </p-panel>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Dropdown'\">\n                            <div [ngClass]=\"node.cls\" class=\"p-justify-start p-align-center p-grid\"\n                                [style]=\"node.style\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <p-dropdown class=\"\" name=\"{{node.id}}\" [(ngModel)]=\"node.value\"\n                                        [options]=\"node.dropDownList\" ngDefaultControl placeholder=\"--Select--\"\n                                        [title]=\"node.toolTip\" [disabled]=\"node.validationObj.disabled\"\n                                        [style]=\"{'min-width':'171px'}\" dropdownIcon=\"icons8 icons8-expand-arrow\"\n                                        [baseZIndex]=\"99999\">\n                                    </p-dropdown>\n                                </div>\n                            </div>\n                            <ng-container *ngFor=\"let item of node.dropDownList\">\n                                <ng-container *ngIf=\"node.value  === item.value\">\n                                    <ng-container *ngIf=\"item.dependentComp != null\">\n                                        <ng-container *ngFor=\"let dependentData of item.dependentComp\">\n                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:dependentData}\">\n                                            </ng-container>\n                                        </ng-container>\n                                    </ng-container>\n                                </ng-container>\n                            </ng-container>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'MultiSelect'\">\n                            <div [ngClass]=\"node.cls\" class=\"p-justify-start p-align-center p-grid my-5\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <p-multiSelect ngDefaultControl class=\"\" [(ngModel)]=\"node.value\"\n                                        [options]=\"node.list\" name=\"{{node.id}}\" [style]=\"{'min-width':'170px'}\"\n                                        dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                    </p-multiSelect>\n                                </div>\n                            </div>\n                            <ng-container *ngFor=\"let item of node.value\">\n                                <ng-container *ngIf=\"item.dependentComp\">\n                                    <ng-container *ngFor=\"let comp of item.dependentComp\">\n                                        <ng-container *ngTemplateOutlet=\"tree;context:{node:comp}\">\n                                        </ng-container>\n                                    </ng-container>\n                                </ng-container>\n                            </ng-container>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'RadioButtonGroup'\">\n                            <div [ngClass]=\"node.cls\" class=\"p-grid p-justify-start p-align-start w-100-p\"\n                                [ngStyle]=\"node.style\">\n                                <div class=\"p-col-12 input-label boldLabel\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <span class=\" p-col-12 p-grid p-align-center\" *ngFor=\"let data of node.items\">\n                                    <p-radioButton [value]=\"data.value\" [label]=\"data.label\" [(ngModel)]=\"node.value\"\n                                        [styleClass]=\"node.cls\" ngDefaultControl name=\"{{data.id}}\"\n                                        [title]=\"node.toolTip\"\n                                        (onClick)=\"selectedRadioOption = data;addDisableValidation(node)\">\n                                    </p-radioButton>\n                                    <!-- <div [ngClass]=\"node.cls\"> -->\n                                    <ng-container *ngFor=\"let dependentData of data.dependentComp\">\n                                        <ng-container *ngTemplateOutlet=\"tree;context:{node:dependentData}\">\n                                        </ng-container>\n                                    </ng-container>\n                                    <!-- </div> -->\n                                </span>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Textbox'\">\n                            <textarea pInputTextarea [(ngModel)]=\"node.value\" name=\"{{node.label}}\"\n                                ngDefaultControl></textarea>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'Table' || node.type === 'TableSingleArg'\">\n                            <div [ngClass]=\"node.cls\">\n                                <app-dynamic-table [tableCompData]=\"node\" [tableTemplate]=\"tree\"\n                                    [disabled]=\"node.validationObj.disabled\">\n                                </app-dynamic-table>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'other'\">\n                            <div [ngClass]=\"node.cls\" class=\"\">\n                                <div class=\"input-label width-150\" [hidden]=\"node['validationObj']['hidden']\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\" [hidden]=\"node['validationObj']['hidden']\">\n                                    <input name=\"{{node.label}}{{node.value}}\" [type]=\"node.validationObj.input\"\n                                        pInputText [(ngModel)]=\"node.value\" [disabled]=\"node.validationObj.disabled\"\n                                        [title]=\"node.value ? node.value :'Enter Other Arguments as:&#10; 1. --opt1 val1 --opt2 val2 &#10; 2. -opt1 val1 -opt2 val2 &#10; 3. /opt1:val1 /opt2:val2'\"\n                                        [ngStyle]=\"node.style\" ngDefaultControl class=\"w-100-p\" />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'agentType'\">\n                            <div [ngClass]=\"node.cls\" class=\"\">\n                                <div class=\"input-label\">\n                                    {{node.label}}\n                                </div>\n                                <div>\n                                    <p-dropdown [style]=\"node['style']\" name=\"agntlist\" required\n                                        placeholder=\"-- Select --\" [options]=\"agentList\" [(ngModel)]=\"node.value\"\n                                        [title]=\"node.toolTip\">\n                                    </p-dropdown>\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'tierName'\">\n                            <div [ngClass]=\"node.cls\" class=\"\">\n                                <div class=\"input-label width-150 required-mark\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <p-multiSelect [style]=\"node['style']\" appendTo=\"body\" defaultLabel=\"Choose Tier\" [showToggleAll]=\"false\"\n                                        name=\"list\" [required]=\"node['validationObj']['required']\" [options]=\"tierList\"\n                                        [(ngModel)]=\"node.valObj\" [style]=\"{'min-width':'170px'}\"\n                                        dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                    </p-multiSelect>\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'javaHome'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input name=\"{{node.id}}\" type=\"text\" pInputText [(ngModel)]=\"node.value\"\n                                        [pattern]=\"node['validationObj']['pattern']\" [title]=\"node.toolTip\"\n                                        [required]=\"node['validationObj']['required']\"\n                                        [disabled]=\"node.validationObj.disabled\" class=\"w-100-p\" [ngStyle]=\"node.style\"\n                                        ngDefaultControl />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'classPath'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input name=\"{{node.id}}\" class=\"w-100-p\" type=\"text\" pInputText\n                                        [(ngModel)]=\"node.value\" [required]=\"node['validationObj']['required']\"\n                                        [ngStyle]=\"node.style\" ngDefaultControl [title]=\"node.toolTip\" />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'appName'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input name=\"{{node.id}}\" type=\"text\" pInputText [(ngModel)]=\"node.value\"\n                                        [required]=\"node['validationObj']['required']\" [ngStyle]=\"node.style\"\n                                        [title]=\"node.toolTip\" class=\"w-100-p\" pattern=\"^[a-zA-Z][a-zA-Z0-9@.-]{0,64}$\"\n                                        ngDefaultControl />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'excludeAppName'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label width-150\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexAuto\">\n                                    <input name=\"{{node.id}}\" pattern=\"^[a-zA-Z][a-zA-Z0-9@.-]{0,64}$\" type=\"text\"\n                                        [title]=\"node.toolTip\" pInputText [(ngModel)]=\"node.value\" class=\"w-100-p\"\n                                        [ngStyle]=\"node.style\" ngDefaultControl />\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <ng-container *ngIf=\"node.type === 'frequency'\">\n                            <div [ngClass]=\"node.cls\">\n                                <div class=\"input-label\" [hidden]=\"node['validationObj']['hidden']\">\n                                    {{node.label}}\n                                </div>\n                                <div class=\"flexauto\" [hidden]=\"node['validationObj']['hidden']\">\n                                    <p-dropdown name=\"{{node.id}}_frequency\" [options]=\"node.dropDownList\"\n                                        [(ngModel)]=\"node.value\"></p-dropdown>\n                                </div>\n                            </div>\n                        </ng-container>\n\n\n                        <ng-container *ngIf=\"node.type === 'isProcess'\">\n                            <div [ngClass]=\"node.cls\" class=\"p-grid p-justify-start p-align-center form-checkbox\">\n                                <p-checkbox name=\"{{node.id}}\" [ngModel]=\"node.value == 'true'\" [title]=\"node.toolTip\"\n                                    (onChange)=\"node.value = $event.checked\" [binary]=\"true\" ngDefaultControl>\n                                </p-checkbox>\n                                <div class=\"checkbox-label\"\n                                    [ngClass]=\"node['validationObj']['defRequired'] ? 'required-mark' : ''\">\n                                    {{node.label}}\n                                </div>\n                            </div>\n                        </ng-container>\n\n                        <div *ngIf=\"showChild(node) && node.type !=='Accordion' && node.type !=='FieldSet' && node.type !=='dependentComp'\"\n                            class=\"p-grid\" [ngClass]=\"node.cls\" [ngStyle]=\"node.style\">\n\n                            <ng-container *ngFor=\"let child of node.dependentComp\">\n\n                                <ng-container *ngTemplateOutlet=\"tree;context:{node:child}\">\n                                </ng-container>\n\n                            </ng-container>\n                        </div>\n                    </ng-template>\n\n                    <ng-container *ngFor=\"let label of monCategory\">\n                        <p-accordion>\n                            <p-accordionTab [header]=\"label\" [selected]=\"false\">\n                                <div>\n                                    <span class=\"p-grid p-col-12 p-align-center\">\n                                        <ng-container *ngFor=\"let field of formData\">\n                                            <ng-container *ngIf=\"field.monName == label\">\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n                                    </span>\n                                </div>\n                            </p-accordionTab>\n                        </p-accordion>\n                    </ng-container>\n\n                    <div *ngIf=\"isCMD\">\n                        <p-accordion>\n                            <p-accordionTab [header]=\"'Command Based Monitors'\"\n                                [selected]=\"monitorupdownService.expCol\">\n                                <div>\n\n                                    <app-cmd-deployment [item]=\"cmdData\" [showRmTier]=\"rTFlag\" [showRmServer]=\"rSFlag\">\n                                    </app-cmd-deployment>\n                                    <ng-container *ngFor=\"let field of formData\">\n                                        <ng-container *ngIf=\"field.monName == 'cmd'\">\n                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                {{field.monName}}\n                                            </ng-container>\n                                        </ng-container>\n                                    </ng-container>\n                                    <ng-container *ngFor=\"let node of customCmdMon\">\n                                        <p-accordion ngClass=\"p-col-12\">\n                                            <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                                <p-header>\n                                                    <p-checkbox [binary]=\"true\" name=\"isChk\" [(ngModel)]=\"node.enable\"\n                                                        ngDefaultControl></p-checkbox>\n                                                    <span class=\"checkbox-label\">{{node.key}}</span>\n                                                </p-header>\n                                                <span class=\"p-grid p-col-12\" *ngIf=\"node.op\">\n                                                    <p-card>\n                                                        <p-table class=\"scen-ptable\" [columns]=\"customMonCols\"\n                                                            [value]=\"node.opData\" [rows]=\"5\" [paginator]=\"node.rows >5\"\n                                                            [pageLinks]=\"3\">\n                                                            <ng-template pTemplate=\"caption\">Other Parameters\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"header\" let-columns>\n                                                                <tr>\n                                                                    <th *ngFor=\"let col of columns\">\n                                                                        {{col.header}}\n                                                                    </th>\n                                                                </tr>\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"body\" let-rowData\n                                                                let-columns=\"columns\" let-index=\"rowIndex\"\n                                                                let-editing=\"editing\">\n                                                                <tr>\n                                                                    <td>{{rowData.pattern}}</td>\n\n                                                                    <td>\n                                                                        <input pInputText type=\"text\"\n                                                                            name=\"{{rowData.pattern}}\"\n                                                                            [(ngModel)]=\"rowData.upVal\"\n                                                                            style=\"width:100%\" required>\n                                                                    </td>\n                                                                </tr>\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"emptymessage\" let-columns>\n                                                                <tr>\n                                                                    <td [attr.colspan]=\"columns.length\"\n                                                                        class=\"noRecords\" style=\"text-align: center\">No\n                                                                        records found.</td>\n                                                                </tr>\n                                                            </ng-template>\n                                                        </p-table>\n                                                    </p-card>\n                                                </span>\n                                            </p-accordionTab>\n\n                                        </p-accordion>\n                                    </ng-container>\n                                </div>\n                            </p-accordionTab>\n                        </p-accordion>\n                    </div>\n\n                    <div *ngIf=\"isSnmp\">\n                        <p-accordion>\n                            <p-accordionTab [header]=\"'SNMP Monitors'\"\n                                [selected]=\"monitorupdownService.expCol\">\n                                <div>\n                                    <ng-container *ngFor=\"let field of formData\">\n                                        <ng-container *ngIf=\"!monitorName  && field.monName == 'customsnmp'\">\n                                            <ng-container *ngIf=\"field.monName == 'customsnmp'\">\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                    {{field.monName}}\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n\n                                        <ng-container *ngIf=\"monitorName  && field.monType == monitorName\">\n                                            <ng-container *ngIf=\"field.monName == 'customsnmp'\">\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                    {{field.monName}}\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n                                        \n                                    </ng-container>\n                                </div>\n                            </p-accordionTab>\n                        </p-accordion>\n                    </div>\n\n                    <div *ngIf=\"isDB\">\n                        <div>\n                            <app-db-deployment [item]=\"dbData\" [showRmTier]=\"rTFlag\" [showRmServer]=\"rSFlag\">\n                            </app-db-deployment>\n                            <ng-container *ngFor=\"let field of formData\">\n                                <ng-container *ngIf=\"field.monName == 'db'\">\n                                    <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">{{field.monName}}\n                                    </ng-container>\n                                </ng-container>\n                            </ng-container>\n                            <ng-container *ngFor=\"let node of customDbMon\">\n                                <p-accordion ngClass=\"p-col-12\">\n                                    <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                        <p-header>\n                                            <p-checkbox [binary]=\"true\" [(ngModel)]=\"node.enable\" name=\"isChk1\"\n                                                ngDefaultControl></p-checkbox>\n                                            <span class=\"checkbox-label\">{{node.key}}</span>\n                                        </p-header>\n\n\n                                        <div class=\"mb-10\" *ngIf=\"node.op\">\n                                            <p-table class=\"all-tables\" [columns]=\"customMonCols\" [value]=\"node.opData\"\n                                                [rows]=\"5\" [paginator]=\"node.rows >5\" [pageLinks]=\"3\">\n                                                <ng-template pTemplate=\"caption\">Other Parameters\n                                                </ng-template>\n\n                                                <ng-template pTemplate=\"header\" let-columns>\n                                                    <tr>\n                                                        <th *ngFor=\"let col of columns\">\n                                                            {{col.header}}\n                                                        </th>\n                                                    </tr>\n                                                </ng-template>\n\n                                                <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\"\n                                                    let-index=\"rowIndex\" let-editing=\"editing\">\n                                                    <tr>\n                                                        <td>{{rowData.pattern}}</td>\n\n                                                        <td>\n                                                            <input pInputText type=\"text\" name=\"{{rowData.pattern}}\"\n                                                                [(ngModel)]=\"rowData.upVal\" style=\"width:100%\">\n                                                        </td>\n                                                    </tr>\n                                                </ng-template>\n\n                                                <ng-template pTemplate=\"emptymessage\" let-columns>\n                                                    <tr>\n                                                        <td [attr.colspan]=\"columns.length\" class=\"noRecords\"\n                                                            style=\"text-align: center\">No records found.</td>\n                                                    </tr>\n                                                </ng-template>\n                                            </p-table>\n                                        </div>\n\n                                    </p-accordionTab>\n\n                                </p-accordion>\n                            </ng-container>\n                        </div>\n                    </div>\n\n                    <div *ngIf=\"isJMX\">\n                        <p-accordion>\n                            <p-accordionTab [header]=\"'JMX Based Monitors'\" [selected]=\"monitorupdownService.expCol\">\n                                <div>\n                                    <app-jmx-deployment [item]=\"jmxData\"></app-jmx-deployment>\n                                    <ng-container *ngFor=\"let field of formData\">\n                                        <ng-container *ngIf=\"field.monName === 'jmx'\">\n                                            <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                {{field.monName}}\n                                            </ng-container>\n                                        </ng-container>\n                                    </ng-container>\n                                    <ng-container *ngFor=\"let node of customJmxMon\">\n                                        <p-accordion ngClass=\"p-col-12\">\n                                            <p-accordionTab [header]=\"node.key\" [selected]=\"false\">\n                                                <p-header>\n                                                    <p-checkbox [binary]=\"true\" name=\"isJmxChk\"\n                                                        [(ngModel)]=\"node.enable\" ngDefaultControl></p-checkbox>\n                                                    <span class=\"checkbox-label\">{{node.key}}</span>\n                                                </p-header>\n                                                <span class=\"p-grid p-col-12\" *ngIf=\"node.op\">\n                                                    <p-card>\n                                                        <p-table [columns]=\"customMonCols\" [value]=\"node.opData\"\n                                                            [rows]=\"5\" [paginator]=\"node.rows >5\" [pageLinks]=\"3\">\n                                                            <ng-template pTemplate=\"caption\">Other Parameters\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"header\" let-columns>\n                                                                <tr>\n                                                                    <th *ngFor=\"let col of columns\">\n                                                                        {{col.header}}\n                                                                    </th>\n                                                                </tr>\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"body\" let-rowData\n                                                                let-columns=\"columns\" let-index=\"rowIndex\"\n                                                                let-editing=\"editing\">\n                                                                <tr>\n                                                                    <td>{{rowData.pattern}}</td>\n\n                                                                    <td>\n                                                                        <input pInputText type=\"text\"\n                                                                            [(ngModel)]=\"rowData.upVal\"\n                                                                            style=\"width:100%\"\n                                                                            name=\"{{rowData.pattern}}\" required>\n                                                                    </td>\n                                                                </tr>\n                                                            </ng-template>\n\n                                                            <ng-template pTemplate=\"emptymessage\" let-columns>\n                                                                <tr>\n                                                                    <td [attr.colspan]=\"columns.length\"\n                                                                        class=\"noRecords\" style=\"text-align: center\">No\n                                                                        records found.</td>\n                                                                </tr>\n                                                            </ng-template>\n                                                        </p-table>\n                                                    </p-card>\n                                                </span>\n                                            </p-accordionTab>\n\n                                        </p-accordion>\n                                    </ng-container>\n                                </div>\n                            </p-accordionTab>\n                        </p-accordion>\n                    </div>\n\n                        <div *ngIf=\"isLogMon\">\n                                <ng-container *ngFor=\"let field of formData\">\n                                    <ng-container *ngIf=\"field.monName == 'logPatternMon'\">\n                                        <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">{{field.monName}}\n                                        </ng-container>\n                                    </ng-container>\n                                </ng-container>\n                         </div>\n\n                         <div *ngIf=\"isLogDataMon\">\n                            <ng-container *ngFor=\"let field of formData\">\n                                <ng-container *ngIf=\"field.monName == 'logDataMon'\">\n                                    <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">{{field.monName}}\n                                    </ng-container>\n                                </ng-container>\n                            </ng-container>\n                     </div>\n\n                     <div *ngIf=\"isREST\">\n                        <div>\n                            <ng-container *ngFor=\"let field of formData\">\n                                <ng-container *ngIf=\"field.monName == 'rest'\">\n                                    <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">{{field.monName}}\n                                    </ng-container>\n                                </ng-container>\n                            </ng-container>\n                        </div>\n                    </div>\n\n                    <div *ngIf=\"isOtherMon\">\n                        <p-accordion>\n                            <p-accordionTab [header]=\"'Other'\" [selected]=\"false\">\n                                <div>\n                                    <span class=\"p-grid p-col-12 p-align-center\">\n                                        <ng-container *ngFor=\"let field of formData\">\n                                            <ng-container *ngIf=\"field.monName === 'other'\">\n                                                <ng-container *ngTemplateOutlet=\"tree;context:{node:field}\">\n                                                </ng-container>\n                                            </ng-container>\n                                        </ng-container>\n                                    </span>\n                                </div>\n                            </p-accordionTab>\n                        </p-accordion>\n                    </div>\n                </ng-container>\n            </p-panel>\n\n            <div>\n                <ng-container *ngIf=\"techName != 'kubecluster' && techName != 'CustomLogMetric'\">\n                    <div *ngIf=\"selectedSupportedTabIndex === 0 || selectedSupportedTabIndex === -1\"\n                        class=\"p-grid p-justify-start p-align-center server-filter-container mt-10\">\n                        <div> <label style=\"padding-top: 5px; margin-left: 10px; font-size: small; line-height: 1.6;\">\n                                <span>Deploy Monitors using Cavisson agent on:\n                                </span>\n                            </label></div>\n                        <div class=\"p-grid p-justify-start p-align-center p-col-11 mt-10 server-filters\"\n                            *ngFor=\"let data of serverFilter;let i = index\">\n                            <div class=\" p-grid p-justify-start p-align-center\">\n                                <div class=\"input-label width-40 ml-10 required-mark\">Tier</div>\n                                <div class=\"flexAuto\">\n                                    <p-dropdown class=\"\" [options]=\"tierList\" placeholder=\"-- Select Tier --\"\n                                        [disabled]=\"reConfId != '-1'\" dropdownIcon=\"icons8 icons8-expand-arrow\"\n                                        name=\"tier_{{i}}\" [(ngModel)]=\"data.tier\" (onChange)=\"onTierChange(data)\"\n                                        [style]=\"{'min-width':'170px'}\" [filter]=\"true\" resetFilterOnHide=\"true\">\n                                    </p-dropdown>\n                                </div>\n                            </div>\n\n                            <div class=\" p-grid p-justify-start p-align-center\">\n                                <div class=\" p-grid p-justify-start p-align-center px-5\" *ngIf=\"data.tier != 'ALLtier'\">\n                                    <div class=\"input-label width-55 ml-20 required-mark\">Server</div>\n                                    <div class=\"p-grid\">\n                                        <p-dropdown name=\"actualServer_{{i}}\" [options]=\"serverOptionList\"\n                                            placeholder=\"-- Select Server --\" dropdownIcon=\"icons8 icons8-expand-arrow\"\n                                            [(ngModel)]=\"data.actualServer\" (onChange)=\"onServerChange(data)\"\n                                            [style]=\"{'min-width':'170px'}\" [disabled]=\"!data.tier || reConfId != '-1'\">\n                                        </p-dropdown>\n                                    </div>\n                                </div>\n                                <div *ngIf=\"data.actualServer === 'specified' && data.tier !== 'ALLtier'\" class=\"p-grid\">\n                                    <p-multiSelect class=\"ml-10 elipseSelect\" defaultLabel=\"--Select Server--\" [options]=\"data.serverList\" name=\"server_{{i}}\"\n                                        [disabled]=\"!data.tier || reConfId != '-1'\" display=\"chip\" ngDefaultControl\n                                        [(ngModel)]=\"data.server\" (onChange)=\"onSpecifiedServerChange(data)\" [filter]=\"true\" appendTo=\"body\"\n                                        resetFilterOnHide=\"true\" dropdownIcon=\"icons8 icons8-expand-arrow\" matTooltip=\"{{data.server}}\">\n                                        <ng-template let-serverList pTemplate=\"item\">\n                                            <span class=\"titleMultiselect\">\n                                               <div  class=\"elipseText\" matTooltip=\"{{serverList.label}}\">{{serverList.label}}</div>\n                                            </span>\n                                   </ng-template>\n\n                                    </p-multiSelect>\n                                    <div *ngIf=\"data.server.includes('Custom Server')\" class=\"flexAuto ml-20\" >\n                                        <input   pInputText type=\"text\" name=\"customServer_{{i}}\"  [(ngModel)]=\"data.customServer\"  pattern=\"^\\S+( +\\S+)*$\"\n                                         title = \"{{data.customServer ? data.customServer :'Enter the Custom Servers in shown format - Display_name1(Server_1_IP), Display_name2(Server_2_IP), Server_3_IP'}}\"  style=\"width:100%\">\n                                    </div>\n                                </div>\n\n                                <div class=\" p-grid p-justify-start p-align-center\"\n                                    *ngIf=\"data.actualServer === -1 && data.tier !== 'ALLtier'\">\n                                    <div class=\"input-label width-92  ml-20 text-right\">Exclude Server</div>\n                                    <div class=\"flexAuto\">\n                                        <p-multiSelect [options]=\"data.exServerList\" name=\"exServer_{{i}}\"\n                                            [disabled]=\"reConfId != '-1'\" ngDefaultControl [(ngModel)]=\"data.exServer\"\n                                            [filter]=\"true\" appendTo=\"body\" resetFilterOnHide=\"true\"\n                                            defaultLabel=\"Choose Exclude Server list\" [style]=\"{'width':'170px'}\"\n                                            dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                        </p-multiSelect>\n                                    </div>\n                                </div>\n\n\n                                <div class=\" p-grid p-justify-start p-align-center px-5\" *ngIf=\"data.tier == 'ALLtier'\">\n                                    <div class=\"input-label ml-10 width-80\" >Exclude Tier</div>\n                                    <div class=\"flexAuto\">\n                                        <p-multiSelect [options]=\"exTierList\" name=\"exTier_{{i}}\" ngDefaultControl\n                                            [disabled]=\"reConfId != '-1'\" [(ngModel)]=\"data.exTier\"\n                                            defaultLabel=\"Choose Tier list\" [filter]=\"true\" appendTo=\"body\"\n                                            resetFilterOnHide=\"true\" [style]=\"{'width':'170px'}\"\n                                            dropdownIcon=\"icons8 icons8-expand-arrow\">\n                                        </p-multiSelect>\n                                    </div>\n                                </div>\n\n                                <span>\n                                    <button type=\"button\" class=\"btn-icon mx-3\" *ngIf=\"i !== 0\"\n                                        (click)=\"deleteAgentTierServer(i)\" [disabled] = \"!isAdminPermisson\">\n                                        <i class=\"icons8 icons8-trash delete-icon\" matTooltip=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle :'Remove Tier-Server'}}\"></i>\n                                    </button>\n                                </span>\n\n                            </div>\n                        </div>\n                        <div class=\"p-col-1 p-justify-end p-align-end\">\n                            <span *ngIf=\"isAdminPermisson\">\n                            <i class=\"icon8 icons8-add add-icon\"\n                                *ngIf=\"reConfId == '-1' && techName != 'Log Metric Monitor'\"\n                                matTooltip=\"Add Agent Tier-Server\" (click)=\"addServerFilter()\" ></i>\n                            </span>\n                            <span *ngIf=\"!isAdminPermisson\">\n                                <i class=\"icon8 icons8-add add-icon disableIcon\"\n                                    *ngIf=\"reConfId == '-1' && techName != 'Log Metric Monitor'\"\n                                    matTooltip=\"{{sessionService.noPermissionTitle}}\" ></i>\n                                </span>\n                        </div>\n\n                    </div>\n                </ng-container>\n                <!-- FOR APPNAME In case of Kubernetes -->\n                <div *ngIf=\"selectedSupportedTabIndex === 1\"\n                    class=\"p-grid p-justify-start p-align-center server-filter-container mt-10\">\n                    <label>\n                        <span class=\"required-mark\"> Apply these monitors on pods whose app-name contains </span>\n                    </label>\n                    <ng-container *ngFor=\"let item of supportedTabArray\">\n                        <ng-container *ngIf=\"item.appName != null\">\n                            <input type=\"text\" pInputText name=\"appName_{{item.index}}\" class=\"ml-10\" required\n                                [(ngModel)]=\"item.appName\" />\n                        </ng-container>\n                    </ng-container>\n                </div>\n                <!-- CLUSTER NAME FOR CLOUD FOUNDARY -->\n                <div *ngIf=\"selectedSupportedTabIndex === 2\"\n                    class=\"p-grid p-justify-start p-align-center server-filter-container mt-10\">\n                    <label>\n                        <span class=\"required-mark\">Tier</span>\n                    </label>\n                    <ng-container *ngFor=\"let item of supportedTabArray\">\n               \t        <ng-container *ngIf=\"item.tabName === 'cloudFoundary'\">\n                            <!-- <input type=\"text\" pInputText name=\"clusterName\" class=\"ml-10\" required [(ngModel)]=\"item.clusterName\" /> -->\n                            <p-dropdown class=\"ml-10\" [options]=\"tierList\" placeholder=\"-- Select Tier --\"\n                            [disabled]=\"reConfId != '-1'\" dropdownIcon=\"icons8 icons8-expand-arrow\"\n                            name=\"clusterName\" [(ngModel)]=\"item.clusterName\"\n                            [style]=\"{'min-width':'170px'}\" [filter]=\"true\" resetFilterOnHide=\"true\">\n                            </p-dropdown>\n\t\t\t</ng-container>\n                    </ng-container>\n                  \n                </div>\n\n                <!-- CLUSTER LIST SUPPORT FOR -->\n                <div *ngIf=\"techName == 'kubecluster'\"\n                    class=\"p-grid p-justify-start p-align-center server-filter-container\">\n                    <div> <label style=\"padding-top: 5px; font-size: small; line-height: 1.6;\">\n                        </label></div>\n                    <div class=\" p-grid p-justify-start p-align-center\">\n                        <div class=\"input-label width-100 ml-10 required-mark\">Cluster</div>\n                        <div class=\"flexAuto\">\n                            <p-dropdown class=\"\" [options]=\"clusterList\" placeholder=\"-- Select Cluster --\" name=\"clssa\"\n                                dropdownIcon=\"icons8 icons8-expand-arrow\" [(ngModel)]=\"selectedClusterOpt\"\n                                (onChange)=\"onClusterListChange()\" [style]=\"{'min-width':'170px'}\">\n                            </p-dropdown>\n                        </div>\n                    </div>\n\n                    <div class=\" p-grid p-justify-start p-align-center p-col-8\">\n                        <div class=\"flexAuto\">\n\n                            <p-multiSelect class=\"ml-10\" [options]=\"specifiedClusterList\" name=\"cl\"\n                                [disabled]=\"!selectedClusterOpt || selectedClusterOpt == '0' || selectedClusterOpt == '4'\"\n                                ngDefaultControl [(ngModel)]=\"selectedClusterName\" defaultLabel=\"--Select Cluster--\"\n                                [style]=\"{'max-width':'450px'}\" dropdownIcon=\"icons8 icons8-expand-arrow\"\n                                appendTo=\"body\" resetFilterOnHide=\"true\">\n                                <ng-template let-specifiedClusterList pTemplate=\"selectedItems\">\n                                    <div *ngFor=\"let val of specifiedClusterList\"\n                                        class=\"ui-multiselected-item-token ui-corner-all\">\n                                        <span>{{val}}</span>\n                                    </div>\n                                    <span *ngIf=\"!specifiedClusterList || specifiedClusterList.length === 0\"\n                                        class=\"ui-multiselected-empty-token ui-corner-all\">--Select Specified\n                                        Cluster--</span>\n                                </ng-template>\n                            </p-multiSelect>\n                        </div>\n\n                    </div>\n                </div>\n\n                <!-- CLUSTER LIST SUPPORT FOR-->\n\n                <div class=\"action-container\">\n                    <div class=\"p-col-12 p-grid p-justify-end p-align-end\">\n                        <button pButton type=\"submit\" label=\"{{AddEditLabel}}\" matTooltip=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle : AddEditLabel + ' Configuration'}}\" [disabled] = \"!isAdminPermisson\"\n                            (click)=\"validateRequired()\" class=\"ui-button ui-button-right mx-3\">\n                        </button>\n                        <button pButton type=\"button\" *ngIf=\"AddEditLabel === 'Update'\" matTooltip=\"Cancel Update\" label=\"Cancel\"\n                            (click)=\"clearFormFields()\" class=\"ui-button ui-button-secondary mx-3\">\n                        </button>\n                        <button pButton type=\"button\" *ngIf=\"reConfId != '-1'\" matTooltip=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle :'Add New Configuration'}}\"\n                            label=\"Add New Configuration\" (click)=\"clearFormFields()\" [disabled] = \"!isAdminPermisson\"\n                            class=\"ui-button ui-button-right mx-3\">\n                        </button>\n                        <button pButton type=\"button\" *ngIf=\"isCustomMonDeploymentUI() && !monitorupdownService.isFromSnmpSaveAndDeploy\" matTooltip=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle :'Open Configuration UI' }}\"\n                            label=\"Open Configuration UI\" (click)=\"openCustomConfigUI()\" [disabled] = \"!isAdminPermisson\"\n                            class=\"ui-button ui-button-right mx-3\">\n                        </button>\n\n\n                    </div>\n                    <div class=\"clean-up\">\n                        <ng-container>\n                            <div #widgetHeight class=\"\" [ngStyle]=\"{\n            height: !isEnabledColumnFilter\n              ? 'calc(100vh - 350px)'\n              : 'calc(100vh - 244px)'\n          }\">\n                                <div class=\"clean-up-table\">\n\n                                    <cav-table [value]=\"confTableData\" [rows]=\"10\" [headerRelativePath]=\"relativePath\"\n                                        (clickButtonEvent)=\"clickButtonEvent($event)\">\n                                    </cav-table>\n\n                                </div>\n                            </div>\n                        </ng-container>\n                    </div>\n                </div>\n\n     \n            </div>\n\n            <div class=\"confirm-dialog\">\n                <p-confirmDialog #cd [style]=\"{width: '50vw'}\" [baseZIndex]=\"100000000011\">\n                    <p-footer>\n                        <button type=\"button\" class=\"ui-button ui-button-rounded ui-button-right\" pButton\n                            icon=\"pi pi-check\" label={{acceptLable}} (click)=\"cd.accept()\"></button>\n                        <button type=\"button\" class=\"ui-button ui-button-rounded ui-button-secondary\" pButton\n                            icon=\"pi pi-times\" label=\"No\" (click)=\"cd.reject()\" *ngIf=\"rejectVisible\"></button>\n                    </p-footer>\n                </p-confirmDialog>\n            </div>\n        </form>\n\n        <div class=\"loading-indicator\" *ngIf=\"loading\">\n            <p-progressSpinner [style]=\"{width: '50px', height: '50px'}\" strokeWidth=\"4\" animationDuration=\".5s\">\n            </p-progressSpinner>\n        </div>\n    </div>\n    <div>\n       <router-outlet></router-outlet>\n    </div>\n</div>\n\n<div *ngIf=\"display\">\n    <app-mon-stats [display]=\"display\" [item]=\"gdfDetail\" (displayChange)=\"onDialogClose($event)\"></app-mon-stats>\n</div>\n<div *ngIf=\"openYmlConfDialog\">\n    <app-kubernets-monitoring (displayChange)=\"onYmlDialogClose($event)\"></app-kubernets-monitoring>\n</div>\n<div *ngIf=\"displayTestMon\">\n    <app-test-mon [displayTestMon]=\"displayTestMon\" (showMonLog)=\"enableMonLog($event)\" [testMonData]=\"testMonData\"  [executeTestMode]=\"executeTestMode\" (displayChange)=\"onTestDialogClose($event)\"></app-test-mon>\n</div>\n";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.html":
  /*!****************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.html ***!
    \****************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_monitorUpDownStatus_configureMonitors_testMon_testMonComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<p-dialog header=\"Test Monitor\" class=\"foterDialog\" [(visible)]=\"displayTestMon\" modal=\"modal\"\n  [style]=\"{width: '900px'}\" (onHide)=\"dialogCloseEvent()\">\n  <div class=\"p-grid p-align-center\">\n    <div class=\"p-col-12\">\n      <app-tier-server [dataFromTestMon]=\"dataToTS\" [techName]=\"testMonData.techName\"></app-tier-server>\n    </div>\n  </div>\n  <div class=\"p-grid p-align-center px-6\">\n    <div class=\"p-col-1\">Frequency</div>\n    <div class=\"p-col-2\">\n      <p-dropdown [options]=\"frequencyList\" appendTo=\"body\" name=\"test_freq\" [style]=\"{'min-width':'100%'}\"\n        [(ngModel)]=\"monData.frequency\">\n      </p-dropdown>\n    </div>\n    <div class=\"p-col-1 p-offset-2 text-right\">Duration</div>\n    <div class=\"p-col-1\">\n      <p-dropdown [options]=\"durationList\" appendTo=\"body\" placeholder=\"--Select--\" name=\"test_dur\"\n        [style]=\"{'min-width':'100%'}\" [(ngModel)]=\"monData.duration\">\n      </p-dropdown>\n    </div>\n    <div>\n      Minutes\n    </div>\n  </div>\n  <!-- <div class=\"p-grid p-align-center\">\n    <div class=\"p-col-2\">Duration</div>\n    <div class=\"p-col-4\">\n      <p-dropdown [options]=\"durationList\" appendTo=\"body\" placeholder=\"--Select--\" name=\"test_dur\"\n        [style]=\"{'min-width':'100%'}\" [(ngModel)]=\"monData.duration\">\n      </p-dropdown>\n    </div>\n  </div> -->\n  <div class=\"p-grid p-align-center p-justify-end\">\n    <button type=\"button\" pButton class=\"mx-5\" (click)=\"executeTest()\" label=\"Test\" [disabled] = \"!openDash\"></button>\n    <button type=\"button\" pButton (click)=\"showData()\" label=\"Open Dashboard\" title=\"Open Dashboard of the current test triggered by the Test Button\" [disabled] = \"openDash\"></button>\n    <!-- <a class=\"btn-icon mx-10 font-20 font-weight-600\" href=\"{{STR}}\" title=\"Click to open dashboard\" target=\"_blank\"><b>{{TR}}</b></a> -->\n  </div>\n\n  <div *ngIf=\"!openDash\" class=\"p-10\">\n    NOTE: All configurations, test run directory and monitor profile informations will be removed from the server automatically after test run is stopped manually or after mentioned duration.\n  </div>\n  <div *ngIf=\"!openDash\">\n    <!-- <app-log-viewer-v2></app-log-viewer-v2> -->\n    <router-outlet></router-outlet>\n\n  </div>\n\n  <div class=\"loading-indicator\" *ngIf=\"testLoading\">\n    <p-progressSpinner [style]=\"{width: '50px', height: '50px'}\" strokeWidth=\"4\" animationDuration=\".5s\">\n    </p-progressSpinner>\n  </div>\n</p-dialog>\n<p-toast key=\"testMon\" position=\"top-right\" [style]=\"{width: '250px',position: 'absolute', 'white-space': 'pre-line', 'word-break':'break-word'}\"></p-toast>";
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/constants/mon-component-constants.ts":
  /*!*************************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/constants/mon-component-constants.ts ***!
    \*************************************************************************************************************************/

  /*! exports provided: TYPE, LABEL, VALUE, OLD_VALUE, DEFAULT_VALUE, ARGUMENT, OLD_ARGUMENT, LIST_COMP, RADIO_ITEM, TABLE_COLUMN_DATA, DEPENDENT_COMP, VAL_FORMAT, VIEW_SEPARATOR, SPACE_SEPARATOR, OPTION_KEY, OLD_OPTION_KEY, ARGDATA_KEY, FIELDSET_TYPE, CHECKBOX_TYPE, DROPDOWN_TYPE, DROPDOWN_LIST, ACCORDION_TYPE, URL_ENCODE, VALIDATION_OBJ, INPUT_TYPE, CHECK_MONITOR, REQUIRED, CHECK_MON, STD_MON_TYPE, CHECK_MON_TYPE, SERVER_SIGNATURE_TYPE, LOG_PATTERN_MONITOR, LOG_PATTERN_TYPE, GET_LOG_FILE, GET_LOG_FILE_TYPE, LOG_DATA_MON, LOG_DATA_MON_TYPE, NAME, FROM_EVENT, PHASE_NAME, FREQUENCY, PERIODICITY, END_EVENT, COUNT, END_PHASE_NAME, FROM_EVENT_UI, FREQUENCY_UI, END_EVENT_UI, SIGN_TYPE, CMDFILE_NAME, SERVER_SIGNATURE, CHECK_MON_PROG_NAME, MONITOR_STATE, MONITOR_NAME, PASSWORD_SEPERATOR, DELETE_MON_GROUP_MSG, START_TEST_MSG, DELETE_ALL_CONFIGURATIONS, DELETE_SPECIFIC_CONFIGURATION, DELETE_MON_MSG, PERMANENT_DELETE_MON_MSG, APP_NAME, EXCLUDE_APP_NAME, JAVA_HOME, CLASS_PATH, INSTANCE_NAME, GDF_NAME, RUN_OPTIONS, RUN_OPTIONS_UI, METRIC, LOG_FILE_NAME, SEARCH_PATTERN, INSTANCE, JOURNALD_FILE_NAME, HC_FILEPATH, HC_MONNAME, HEALTH_CHECK_FILE_EXT, EXCLUDE_TIER, ALL_TIER, EX_TIER_PREFIX, PWD_ENCRYPT_VAL, ADVANCE_TABLE, IS_QUOTE_REQUIRED, ARG_UI, TRAILING_CHARACTERS, ACTUAL_SERVER_NAME, FIELDSET_SEPERATOR, ALL_SERVERS, AGENT_TYPE, AGENT, ANY, META_DATA, SNMP_MON, CUSTOM_MON_TYPE, CUSTOM_INPUT_FILE, CUSTOM_INPUT_FILE_EXT, SNMP_FILE_PATH, DRIVEN_JSON_NAME, MON_INFO, DESCRIPTION, LOG_LINE_PATTERN, LOG_METRIC_MON, LOG_METRIC_MON_ID, NF_MON, NF_MON_TYPE, NF_TYPE, REST_TYPE, DVM_NAME, CONFIG_FILE_NAME, PROG_NAME, USE_AGENT_NAME, EXCLUDE_SERVER, IS_HIDE, COMMA_SEPARATOR, CMD_TYPE, CMD_MON_TYPE, TIER_NAME_TYPE, TIER_GROUP_TYPE, CAV_TIER_ANY_SERVER, CAV_TIER_GROUP_ANY_SERVER, TIER_FOR_ANY_SERVER, TIER_GROUP_FOR_ANY_SERVER, BATCH_JOBS, BATCH_JOBS_TYPE, BATCH_SEARCH_PATTERN, BATCH_LOG_FILE_NAME, COMMAND_NAME, SUCCESS_CRITERIA, F1, F2, F3, F4, F5, F6, SYSTEM_REST_TYPE, USE_SINGLE_VAL_TYPE, HEALTH_CHECK_TYPE, SERVER_HEALTH_EXTENDED_V2, SERVER_HEALTH_EXTENDED_V2_GDF, PROGRAM_NAME_FOR_SERVER_HEALTH_EXTENDEDV2, FIXED_SERVER_HEALTH_EXTENDEDV2_ARG, JAVA, CUSTOM_DEPLOYMENT_DIR, DVM_VALUE_1, AGENT_TYPE_CMON, PROGRAM_TYPE, SYSTEM_DEFINED_TYPE, STATSD_TYPE, STATSD_MON_TYPE, MESSAGE_TYPE, MESSAGE, IS_PROCESS, RUN_AS_PROCESS, DB_TYPE, DB_MON_TYPE, DB_OUTPUT_SEPERATOR, LOG_NAME, USE_AS_OPTION, USE_AS_OLD_OPTION, REMOTE_HIERARCHY_TIER, REMOTE_HIERARCHY_SERVER, SERVERNAME_SELF, SERVERNAME_ND, SERVERNAME_NS, PRODUCTMODE_ND, JMX_TYPE, JMX_MON_TYPE, CUSTOM_MON_GDF_PREFIX, SNMP_TYPE, OTHERS_KEY, ALL_SERVERS_KEY, DEFAULT_TOPO, LOGPATTERN_MON_TYPE, LOGDATA_MON_TYPE, CUSTOM_SNMP_TYPE, EVENT_EDIT, EVENT_DELETEROW, EVENT_COPY, EVENT_DOWNLOAD, EVENT_DELETEALL, EVENT_ADD, EVENT_TEST */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addCustomMonitor_constants_monComponentConstantsTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TYPE", function () {
      return TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LABEL", function () {
      return LABEL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "VALUE", function () {
      return VALUE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OLD_VALUE", function () {
      return OLD_VALUE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DEFAULT_VALUE", function () {
      return DEFAULT_VALUE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ARGUMENT", function () {
      return ARGUMENT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OLD_ARGUMENT", function () {
      return OLD_ARGUMENT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LIST_COMP", function () {
      return LIST_COMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RADIO_ITEM", function () {
      return RADIO_ITEM;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TABLE_COLUMN_DATA", function () {
      return TABLE_COLUMN_DATA;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DEPENDENT_COMP", function () {
      return DEPENDENT_COMP;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "VAL_FORMAT", function () {
      return VAL_FORMAT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "VIEW_SEPARATOR", function () {
      return VIEW_SEPARATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SPACE_SEPARATOR", function () {
      return SPACE_SEPARATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OPTION_KEY", function () {
      return OPTION_KEY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OLD_OPTION_KEY", function () {
      return OLD_OPTION_KEY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ARGDATA_KEY", function () {
      return ARGDATA_KEY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FIELDSET_TYPE", function () {
      return FIELDSET_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CHECKBOX_TYPE", function () {
      return CHECKBOX_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DROPDOWN_TYPE", function () {
      return DROPDOWN_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DROPDOWN_LIST", function () {
      return DROPDOWN_LIST;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ACCORDION_TYPE", function () {
      return ACCORDION_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "URL_ENCODE", function () {
      return URL_ENCODE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "VALIDATION_OBJ", function () {
      return VALIDATION_OBJ;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "INPUT_TYPE", function () {
      return INPUT_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CHECK_MONITOR", function () {
      return CHECK_MONITOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "REQUIRED", function () {
      return REQUIRED;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CHECK_MON", function () {
      return CHECK_MON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STD_MON_TYPE", function () {
      return STD_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CHECK_MON_TYPE", function () {
      return CHECK_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVER_SIGNATURE_TYPE", function () {
      return SERVER_SIGNATURE_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_PATTERN_TYPE", function () {
      return LOG_PATTERN_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "GET_LOG_FILE", function () {
      return GET_LOG_FILE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "GET_LOG_FILE_TYPE", function () {
      return GET_LOG_FILE_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_DATA_MON", function () {
      return LOG_DATA_MON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_DATA_MON_TYPE", function () {
      return LOG_DATA_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NAME", function () {
      return NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FROM_EVENT", function () {
      return FROM_EVENT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PHASE_NAME", function () {
      return PHASE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FREQUENCY", function () {
      return FREQUENCY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PERIODICITY", function () {
      return PERIODICITY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "END_EVENT", function () {
      return END_EVENT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "COUNT", function () {
      return COUNT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "END_PHASE_NAME", function () {
      return END_PHASE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FROM_EVENT_UI", function () {
      return FROM_EVENT_UI;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FREQUENCY_UI", function () {
      return FREQUENCY_UI;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "END_EVENT_UI", function () {
      return END_EVENT_UI;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SIGN_TYPE", function () {
      return SIGN_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMDFILE_NAME", function () {
      return CMDFILE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVER_SIGNATURE", function () {
      return SERVER_SIGNATURE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CHECK_MON_PROG_NAME", function () {
      return CHECK_MON_PROG_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "MONITOR_STATE", function () {
      return MONITOR_STATE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "MONITOR_NAME", function () {
      return MONITOR_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PASSWORD_SEPERATOR", function () {
      return PASSWORD_SEPERATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DELETE_MON_GROUP_MSG", function () {
      return DELETE_MON_GROUP_MSG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "START_TEST_MSG", function () {
      return START_TEST_MSG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DELETE_ALL_CONFIGURATIONS", function () {
      return DELETE_ALL_CONFIGURATIONS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DELETE_SPECIFIC_CONFIGURATION", function () {
      return DELETE_SPECIFIC_CONFIGURATION;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DELETE_MON_MSG", function () {
      return DELETE_MON_MSG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PERMANENT_DELETE_MON_MSG", function () {
      return PERMANENT_DELETE_MON_MSG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "APP_NAME", function () {
      return APP_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EXCLUDE_APP_NAME", function () {
      return EXCLUDE_APP_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JAVA_HOME", function () {
      return JAVA_HOME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CLASS_PATH", function () {
      return CLASS_PATH;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "INSTANCE_NAME", function () {
      return INSTANCE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "GDF_NAME", function () {
      return GDF_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RUN_OPTIONS", function () {
      return RUN_OPTIONS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RUN_OPTIONS_UI", function () {
      return RUN_OPTIONS_UI;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "METRIC", function () {
      return METRIC;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_FILE_NAME", function () {
      return LOG_FILE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SEARCH_PATTERN", function () {
      return SEARCH_PATTERN;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "INSTANCE", function () {
      return INSTANCE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JOURNALD_FILE_NAME", function () {
      return JOURNALD_FILE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "HC_FILEPATH", function () {
      return HC_FILEPATH;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "HC_MONNAME", function () {
      return HC_MONNAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "HEALTH_CHECK_FILE_EXT", function () {
      return HEALTH_CHECK_FILE_EXT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EXCLUDE_TIER", function () {
      return EXCLUDE_TIER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ALL_TIER", function () {
      return ALL_TIER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EX_TIER_PREFIX", function () {
      return EX_TIER_PREFIX;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PWD_ENCRYPT_VAL", function () {
      return PWD_ENCRYPT_VAL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ADVANCE_TABLE", function () {
      return ADVANCE_TABLE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "IS_QUOTE_REQUIRED", function () {
      return IS_QUOTE_REQUIRED;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ARG_UI", function () {
      return ARG_UI;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TRAILING_CHARACTERS", function () {
      return TRAILING_CHARACTERS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ACTUAL_SERVER_NAME", function () {
      return ACTUAL_SERVER_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FIELDSET_SEPERATOR", function () {
      return FIELDSET_SEPERATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ALL_SERVERS", function () {
      return ALL_SERVERS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AGENT_TYPE", function () {
      return AGENT_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AGENT", function () {
      return AGENT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ANY", function () {
      return ANY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "META_DATA", function () {
      return META_DATA;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SNMP_MON", function () {
      return SNMP_MON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CUSTOM_MON_TYPE", function () {
      return CUSTOM_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CUSTOM_INPUT_FILE", function () {
      return CUSTOM_INPUT_FILE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CUSTOM_INPUT_FILE_EXT", function () {
      return CUSTOM_INPUT_FILE_EXT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SNMP_FILE_PATH", function () {
      return SNMP_FILE_PATH;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DRIVEN_JSON_NAME", function () {
      return DRIVEN_JSON_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "MON_INFO", function () {
      return MON_INFO;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DESCRIPTION", function () {
      return DESCRIPTION;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_LINE_PATTERN", function () {
      return LOG_LINE_PATTERN;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_METRIC_MON", function () {
      return LOG_METRIC_MON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_METRIC_MON_ID", function () {
      return LOG_METRIC_MON_ID;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NF_MON", function () {
      return NF_MON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NF_MON_TYPE", function () {
      return NF_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NF_TYPE", function () {
      return NF_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "REST_TYPE", function () {
      return REST_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DVM_NAME", function () {
      return DVM_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CONFIG_FILE_NAME", function () {
      return CONFIG_FILE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PROG_NAME", function () {
      return PROG_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "USE_AGENT_NAME", function () {
      return USE_AGENT_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EXCLUDE_SERVER", function () {
      return EXCLUDE_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "IS_HIDE", function () {
      return IS_HIDE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "COMMA_SEPARATOR", function () {
      return COMMA_SEPARATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_TYPE", function () {
      return CMD_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_MON_TYPE", function () {
      return CMD_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TIER_NAME_TYPE", function () {
      return TIER_NAME_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TIER_GROUP_TYPE", function () {
      return TIER_GROUP_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CAV_TIER_ANY_SERVER", function () {
      return CAV_TIER_ANY_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CAV_TIER_GROUP_ANY_SERVER", function () {
      return CAV_TIER_GROUP_ANY_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TIER_FOR_ANY_SERVER", function () {
      return TIER_FOR_ANY_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TIER_GROUP_FOR_ANY_SERVER", function () {
      return TIER_GROUP_FOR_ANY_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BATCH_JOBS", function () {
      return BATCH_JOBS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BATCH_JOBS_TYPE", function () {
      return BATCH_JOBS_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BATCH_SEARCH_PATTERN", function () {
      return BATCH_SEARCH_PATTERN;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "BATCH_LOG_FILE_NAME", function () {
      return BATCH_LOG_FILE_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "COMMAND_NAME", function () {
      return COMMAND_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SUCCESS_CRITERIA", function () {
      return SUCCESS_CRITERIA;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F1", function () {
      return F1;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F2", function () {
      return F2;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F3", function () {
      return F3;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F4", function () {
      return F4;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F5", function () {
      return F5;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "F6", function () {
      return F6;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SYSTEM_REST_TYPE", function () {
      return SYSTEM_REST_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "USE_SINGLE_VAL_TYPE", function () {
      return USE_SINGLE_VAL_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "HEALTH_CHECK_TYPE", function () {
      return HEALTH_CHECK_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVER_HEALTH_EXTENDED_V2", function () {
      return SERVER_HEALTH_EXTENDED_V2;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVER_HEALTH_EXTENDED_V2_GDF", function () {
      return SERVER_HEALTH_EXTENDED_V2_GDF;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PROGRAM_NAME_FOR_SERVER_HEALTH_EXTENDEDV2", function () {
      return PROGRAM_NAME_FOR_SERVER_HEALTH_EXTENDEDV2;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "FIXED_SERVER_HEALTH_EXTENDEDV2_ARG", function () {
      return FIXED_SERVER_HEALTH_EXTENDEDV2_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JAVA", function () {
      return JAVA;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CUSTOM_DEPLOYMENT_DIR", function () {
      return CUSTOM_DEPLOYMENT_DIR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DVM_VALUE_1", function () {
      return DVM_VALUE_1;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AGENT_TYPE_CMON", function () {
      return AGENT_TYPE_CMON;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PROGRAM_TYPE", function () {
      return PROGRAM_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SYSTEM_DEFINED_TYPE", function () {
      return SYSTEM_DEFINED_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STATSD_TYPE", function () {
      return STATSD_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "STATSD_MON_TYPE", function () {
      return STATSD_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "MESSAGE_TYPE", function () {
      return MESSAGE_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "MESSAGE", function () {
      return MESSAGE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "IS_PROCESS", function () {
      return IS_PROCESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RUN_AS_PROCESS", function () {
      return RUN_AS_PROCESS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_TYPE", function () {
      return DB_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_MON_TYPE", function () {
      return DB_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_OUTPUT_SEPERATOR", function () {
      return DB_OUTPUT_SEPERATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOG_NAME", function () {
      return LOG_NAME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "USE_AS_OPTION", function () {
      return USE_AS_OPTION;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "USE_AS_OLD_OPTION", function () {
      return USE_AS_OLD_OPTION;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "REMOTE_HIERARCHY_TIER", function () {
      return REMOTE_HIERARCHY_TIER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "REMOTE_HIERARCHY_SERVER", function () {
      return REMOTE_HIERARCHY_SERVER;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVERNAME_SELF", function () {
      return SERVERNAME_SELF;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVERNAME_ND", function () {
      return SERVERNAME_ND;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SERVERNAME_NS", function () {
      return SERVERNAME_NS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PRODUCTMODE_ND", function () {
      return PRODUCTMODE_ND;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_TYPE", function () {
      return JMX_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_MON_TYPE", function () {
      return JMX_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CUSTOM_MON_GDF_PREFIX", function () {
      return CUSTOM_MON_GDF_PREFIX;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SNMP_TYPE", function () {
      return SNMP_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OTHERS_KEY", function () {
      return OTHERS_KEY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ALL_SERVERS_KEY", function () {
      return ALL_SERVERS_KEY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DEFAULT_TOPO", function () {
      return DEFAULT_TOPO;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOGPATTERN_MON_TYPE", function () {
      return LOGPATTERN_MON_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LOGDATA_MON_TYPE", function () {
      return LOGDATA_MON_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__, "EVENT_EDIT", function () {
      return EVENT_EDIT;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_DELETEROW", function () {
      return EVENT_DELETEROW;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_COPY", function () {
      return EVENT_COPY;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_DOWNLOAD", function () {
      return EVENT_DOWNLOAD;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_DELETEALL", function () {
      return EVENT_DELETEALL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_ADD", function () {
      return EVENT_ADD;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "EVENT_TEST", function () {
      return EVENT_TEST;
    });

    var TYPE = "type";
    var LABEL = "label";
    var VALUE = "value";
    var OLD_VALUE = "oldValue";
    var DEFAULT_VALUE = "defVal";
    var ARGUMENT = "arg";
    var OLD_ARGUMENT = "oldArg";
    var LIST_COMP = "list";
    var RADIO_ITEM = "items";
    var TABLE_COLUMN_DATA = "columnData";
    var DEPENDENT_COMP = "dependentComp";
    var VAL_FORMAT = "valFormat";
    var VIEW_SEPARATOR = "=";
    var SPACE_SEPARATOR = " ";
    var OPTION_KEY = "options";
    var OLD_OPTION_KEY = "oldOptions";
    var ARGDATA_KEY = "argumentData";
    var FIELDSET_TYPE = "FieldSet";
    var CHECKBOX_TYPE = "Checkbox";
    var DROPDOWN_TYPE = "Dropdown";
    var DROPDOWN_LIST = "dropDownList";
    var ACCORDION_TYPE = "Accordion";
    var URL_ENCODE = "uRLEncode";
    var VALIDATION_OBJ = "validationObj";
    var INPUT_TYPE = "inputType";
    var CHECK_MONITOR = "check-monitor";
    var REQUIRED = "required";
    var CHECK_MON = "Check Monitor";
    var STD_MON_TYPE = 0;
    var CHECK_MON_TYPE = 1;
    var SERVER_SIGNATURE_TYPE = 2;
    var LOG_PATTERN_MONITOR = "Log Pattern Monitor";
    var LOG_PATTERN_TYPE = 3;
    var GET_LOG_FILE = "Get Log File";
    var GET_LOG_FILE_TYPE = 4;
    var LOG_DATA_MON = "Log Data Monitor";
    var LOG_DATA_MON_TYPE = 5;
    /***CHECK MON fields ****/

    var NAME = "name";
    var FROM_EVENT = "fromEvent";
    var PHASE_NAME = "phaseName";
    var FREQUENCY = "frequency";
    var PERIODICITY = "periodicity";
    var END_EVENT = "endEvent";
    var COUNT = "count";
    var END_PHASE_NAME = "endPhaseName";
    var FROM_EVENT_UI = "fromEvent_ui";
    var FREQUENCY_UI = "frequency_ui";
    var END_EVENT_UI = "endEvent_ui";
    var SIGN_TYPE = "signType";
    var CMDFILE_NAME = "commandFileName";
    var SERVER_SIGNATURE = "Server Signature";
    var CHECK_MON_PROG_NAME = "checkMonProgName";
    var MONITOR_STATE = "_ms";
    var MONITOR_NAME = "_mon"; //export const PASSWORD_SEPERATOR = "#";

    var PASSWORD_SEPERATOR = "cav_e";
    /***Constants for confirmation messages**/

    var DELETE_MON_GROUP_MSG = "Are you sure to delete the selected monitor group(s)?";
    var START_TEST_MSG = "Are you sure to run test for ";
    var DELETE_ALL_CONFIGURATIONS = "Are you sure to delete all configurations?";
    var DELETE_SPECIFIC_CONFIGURATION = "Are you sure to delete the selected configuration(s)?";
    var DELETE_MON_MSG = "Are you sure to delete the selected monitor(s)?";
    var PERMANENT_DELETE_MON_MSG = "This monitor is already is in use,do you stil want to delete the selected monitor(s)?";
    var APP_NAME = "appName";
    var EXCLUDE_APP_NAME = "excludeAppName";
    var JAVA_HOME = "javaHome";
    var CLASS_PATH = "classPath";
    var INSTANCE_NAME = "instanceName";
    var GDF_NAME = "gdfName";
    var RUN_OPTIONS = "runOptions";
    var RUN_OPTIONS_UI = "runOptions_ui";
    var METRIC = "metric";
    var LOG_FILE_NAME = "fileName";
    var SEARCH_PATTERN = "searchPattern";
    var INSTANCE = "instance";
    var JOURNALD_FILE_NAME = "specificJournalType";
    var HC_FILEPATH = "";
    var HC_MONNAME = "ServerHealthExtendedStats";
    var HEALTH_CHECK_FILE_EXT = ".healthcheck";
    var EXCLUDE_TIER = "excludeTier";
    var ALL_TIER = "All Tiers";
    var EX_TIER_PREFIX = '$P:';
    var PWD_ENCRYPT_VAL = "pwdEncrypt";
    var ADVANCE_TABLE = "TableSingleArg";
    var IS_QUOTE_REQUIRED = "isQuoteRequired";
    var ARG_UI = "arg-";
    var TRAILING_CHARACTERS = "trailingChar";
    var ACTUAL_SERVER_NAME = "actualServerName";
    var FIELDSET_SEPERATOR = ":";
    var ALL_SERVERS = "All Servers";
    var AGENT_TYPE = "agentType";
    var AGENT = "agent";
    var ANY = "Any"; //for bug 73517

    var META_DATA = "metaData";
    var SNMP_MON = "SNMP Monitor";
    var CUSTOM_MON_TYPE = 6;
    var CUSTOM_INPUT_FILE = "cm_cav_snmp_";
    var CUSTOM_INPUT_FILE_EXT = ".inp";
    var SNMP_FILE_PATH = "/snmp/inp/";
    var DRIVEN_JSON_NAME = "_djn";
    var MON_INFO = "_monInfo";
    var DESCRIPTION = "_desc";
    var LOG_LINE_PATTERN = "logLinePattern"; //Added NF Constants

    var LOG_METRIC_MON = "Log Metric Monitor";
    var LOG_METRIC_MON_ID = 1;
    var NF_MON = "nfMonitor";
    var NF_MON_TYPE = 8;
    var NF_TYPE = "nf";
    var REST_TYPE = "rest";
    var DVM_NAME = "dvm";
    var CONFIG_FILE_NAME = "configPath";
    var PROG_NAME = "progName";
    var USE_AGENT_NAME = "useAgent";
    var EXCLUDE_SERVER = "excludeServer"; // for bug 59104 - support of exclude server option

    var IS_HIDE = "isHide"; //added for bug-80674
    //added for bug 

    var COMMA_SEPARATOR = ","; //Added constants for command UI

    var CMD_TYPE = "cmd";
    var CMD_MON_TYPE = 9; //for any tier/tiergroup	

    var TIER_NAME_TYPE = "tierName";
    var TIER_GROUP_TYPE = "tierGroup";
    var CAV_TIER_ANY_SERVER = "%cav_tier_any_server%";
    var CAV_TIER_GROUP_ANY_SERVER = "%cav_tiergroup_any_server%";
    var TIER_FOR_ANY_SERVER = "tierForAnyServer";
    var TIER_GROUP_FOR_ANY_SERVER = "tierGroupForAnyServer"; //  added for Batch Jobs

    var BATCH_JOBS = "Batch Jobs";
    var BATCH_JOBS_TYPE = 10;
    var BATCH_SEARCH_PATTERN = "batchSearchPattern";
    var BATCH_LOG_FILE_NAME = "logFile";
    var COMMAND_NAME = "cmdName";
    var SUCCESS_CRITERIA = "successCriteria"; //these fields are added for future purpose.

    var F1 = "future1";
    var F2 = "future2";
    var F3 = "future3";
    var F4 = "future4";
    var F5 = "future5";
    var F6 = "future6";
    var SYSTEM_REST_TYPE = 12;
    var USE_SINGLE_VAL_TYPE = "useMultipleAsSingleValue";
    var HEALTH_CHECK_TYPE = 30;
    var SERVER_HEALTH_EXTENDED_V2 = "ServerHealth";
    var SERVER_HEALTH_EXTENDED_V2_GDF = "cm_server_health_status_v2.gdf";
    var PROGRAM_NAME_FOR_SERVER_HEALTH_EXTENDEDV2 = "cm_server_health_stats_v2";
    var FIXED_SERVER_HEALTH_EXTENDEDV2_ARG = "-s server -v";
    var JAVA = "java";
    var CUSTOM_DEPLOYMENT_DIR = ".deployment/";
    var DVM_VALUE_1 = "1";
    var AGENT_TYPE_CMON = "CMON";
    var PROGRAM_TYPE = "pgm";
    var SYSTEM_DEFINED_TYPE = "sysDef"; //for bug 58611
    //Added constants for statsd UI

    var STATSD_TYPE = "statsd";
    var STATSD_MON_TYPE = 13;
    var MESSAGE_TYPE = "_msgT";
    var MESSAGE = "_msg";
    var IS_PROCESS = "isProcess"; // for bug - 94588

    var RUN_AS_PROCESS = "runProc"; // for bug -94588 
    //Constants for generic DB UI

    var DB_TYPE = "db";
    var DB_MON_TYPE = 14;
    var DB_OUTPUT_SEPERATOR = "%SEP%";
    var LOG_NAME = "logName";
    var USE_AS_OPTION = "useAsOption";
    var USE_AS_OLD_OPTION = "useAsOldOption";
    var REMOTE_HIERARCHY_TIER = "${Tier}";
    var REMOTE_HIERARCHY_SERVER = "${Server}"; //constant for Product Type

    var SERVERNAME_SELF = "Any";
    var SERVERNAME_ND = "NDAppliance";
    var SERVERNAME_NS = "NSAppliance";
    var PRODUCTMODE_ND = "netdiagnostics"; //Constants for JMX UI

    var JMX_TYPE = "jmx";
    var JMX_MON_TYPE = 15;
    var CUSTOM_MON_GDF_PREFIX = "cm_cav_";
    var SNMP_TYPE = "snmp";
    var OTHERS_KEY = "Others";
    var ALL_SERVERS_KEY = "All Servers";
    var DEFAULT_TOPO = "default";
    var LOGPATTERN_MON_TYPE = "logpattern";
    var LOGDATA_MON_TYPE = "logdata"; //constants used in Custom SNMP Monitor UI - bug id 139924

    var CUSTOM_SNMP_TYPE = "customsnmp"; //constants for common events to be used for cavTable

    var EVENT_EDIT = "edit";
    var EVENT_DELETEROW = "delete";
    var EVENT_COPY = "copy";
    var EVENT_DOWNLOAD = "download";
    var EVENT_DELETEALL = "masterDelete";
    var EVENT_ADD = "add";
    var EVENT_TEST = "test";
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/testMon.data.ts":
  /*!***************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/testMon.data.ts ***!
    \***************************************************************************************************************/

  /*! exports provided: TestMonDto */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addCustomMonitor_containers_testMonDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TestMonDto", function () {
      return TestMonDto;
    });

    var TestMonDto = /*#__PURE__*/_createClass(function TestMonDto() {
      _classCallCheck(this, TestMonDto);

      this.frequency = "10000";
      this.duration = "300000";
      this.tierServerInfo = [];
      this.isFromTable = false;
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.scss":
  /*!********************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.scss ***!
    \********************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_addMonitorComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "app-add-monitor .add-monitor-container .content-body {\n  height: calc(100vh - 85px);\n  overflow: scroll;\n  background-color: #fff;\n  padding: 10px;\n}\napp-add-monitor .add-monitor-container .content-body .ui-dropdown {\n  padding: 0px;\n}\napp-add-monitor .add-monitor-container .content-body .ui-accordion .ui-accordion-content {\n  border: 1px solid #53b771;\n  margin-bottom: 5px;\n}\napp-add-monitor .add-monitor-container .content-body .ui-multiselect .ui-multiselect-panel {\n  width: 200px;\n}\napp-add-monitor .add-monitor-container .content-body .add-icon {\n  font-size: 2.4em;\n  float: right;\n  cursor: pointer;\n  color: #1d5290;\n}\napp-add-monitor .add-monitor-container .content-body .delete-icon {\n  font-size: 1.5em;\n  cursor: pointer;\n  color: #1d5290;\n}\napp-add-monitor .add-monitor-container .content-body .ui-panel .ui-panel-titlebar {\n  background-color: #f7f7ff;\n  border-radius: 1px;\n  padding: 8px;\n  border-bottom: 1px solid #cecece;\n}\napp-add-monitor .add-monitor-container .content-body .field-label {\n  font-weight: 700;\n  font-size: 14px;\n  padding: 10px 5px;\n}\napp-add-monitor .add-monitor-container .content-body .input-label {\n  padding-right: 10px;\n}\napp-add-monitor .add-monitor-container .content-body .boldLabel {\n  font-size: 12px;\n  font-weight: 700;\n}\napp-add-monitor .add-monitor-container .content-body .note-label {\n  cursor: default;\n  white-space: pre-wrap;\n  background: snow;\n}\napp-add-monitor .add-monitor-container .content-body .radio-button {\n  padding-right: 16px;\n}\napp-add-monitor .add-monitor-container .content-body .action-icon {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n}\napp-add-monitor .add-monitor-container .content-body .action-icon .red-fg {\n  padding: 5px;\n}\napp-add-monitor .add-monitor-container .content-body .edit-action i {\n  font-size: 16px;\n  padding: 3px;\n}\napp-add-monitor .add-monitor-container .content-body .columnwidth {\n  width: 40px;\n}\napp-add-monitor .add-monitor-container .content-body .action-container {\n  padding: 20px 0px;\n}\napp-add-monitor .add-monitor-container .confirm-dialog .ui-dialog .ui-corner-top {\n  border-top-left-radius: 10px;\n  border-top-right-radius: 10px;\n}\napp-add-monitor .add-monitor-container .confirm-dialog .ui-dialog .ui-dialog-content {\n  font-size: 14px;\n}\napp-add-monitor .add-monitor-container .confirm-dialog .ui-dialog .ui-dialog-footer {\n  border-bottom-left-radius: 10px;\n  border-bottom-right-radius: 10px;\n}\napp-add-monitor .add-monitor-container .loading-indicator {\n  position: fixed;\n  z-index: 999;\n  height: 2em;\n  width: 2em;\n  overflow: show;\n  margin: auto;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n}\napp-add-monitor .add-monitor-container .loading-indicator:before {\n  content: \"\";\n  display: block;\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.53);\n}\napp-add-monitor .flexAuto {\n  max-width: 170px;\n}\napp-add-monitor .required-mark::after {\n  content: \"*\";\n  color: red;\n}\napp-add-monitor .elipseSelect .ui-multiselect-label-container .ui-multiselect-label {\n  white-space: nowrap;\n  max-width: 390px;\n}\n.server-filter-container {\n  background-color: #f7fbfd;\n  margin-top: 15px;\n}\n.server-filter-container .server-filters {\n  padding: 0px;\n}\n.server-filter-container .ui-multiselected-item-token,\n.server-filter-container .ui-multiselected-empty-token {\n  padding: 2px 4px;\n  margin: 0 0.286em 0 0;\n  display: inline-block;\n  vertical-align: middle;\n  height: 1.857em;\n}\n.server-filter-container .ui-multiselected-item-token {\n  background: #e0e0f9;\n  display: inline-flex;\n  align-items: center;\n  border-radius: 10px !important;\n  padding-left: 10px;\n  padding-right: 10px;\n}\n.server-filter-container .ui-multiselect-item {\n  display: flex !important;\n  align-items: center;\n}\n.server-filter-container .ui-multiselected-empty-token {\n  display: inline-flex;\n  align-items: center;\n}\n@media (max-width: 1280px) {\n  app-add-monitor .flexAuto {\n    max-width: 125px;\n  }\n}\n.disableIcon {\n  opacity: 0.5;\n}";
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.ts":
  /*!******************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.ts ***!
    \******************************************************************************************************/

  /*! exports provided: AddMonitorComponent */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_addMonitorComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AddMonitorComponent", function () {
      return AddMonitorComponent;
    });
    /* 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 primeng__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! lodash */
    "./node_modules/lodash/lodash.js");
    /* harmony import */


    var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
    /* harmony import */


    var _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ./constants/longArguments-constants */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/longArguments-constants.ts");
    /* harmony import */


    var _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ./constants/custom-monitor-constants */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/custom-monitor-constants.ts");
    /* harmony import */


    var _containers_cmd_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ./containers/cmd-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/cmd-data.ts");
    /* harmony import */


    var _containers_db_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ./containers/db-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/db-data.ts");
    /* harmony import */


    var _containers_jmx_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ./containers/jmx-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/jmx-data.ts");
    /* harmony import */


    var _containers_rest_data__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ./containers/rest-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/rest-data.ts");
    /* harmony import */


    var _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../../service/monitorupdownstatus.service */
    "./src/app/pages/monitor-up-down-status/service/monitorupdownstatus.service.ts");
    /* harmony import */


    var _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ../add-monitor/constants/monitor-configuration-constants */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/monitor-configuration-constants.ts");
    /* harmony import */


    var _add_custom_monitor_constants_mon_component_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! ../add-custom-monitor/constants/mon-component-constants */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/constants/mon-component-constants.ts");
    /* harmony import */


    var _service_utility_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ../../service/utility.service */
    "./src/app/pages/monitor-up-down-status/service/utility.service.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var _service_add_mon_validation_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! ./service/add-mon-validation.service */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/service/add-mon-validation.service.ts");
    /* harmony import */


    var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! @angular/common */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
    /* harmony import */


    var _containers_adv_settings_data__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! ./containers/adv-settings-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var _cloud_monitoring_services_cloud_monitors_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! ../cloud-monitoring/services/cloud-monitors-service */
    "./src/app/pages/monitor-up-down-status/configure-monitors/cloud-monitoring/services/cloud-monitors-service.ts");
    /* harmony import */


    var _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! ../log-monitors/log-pattern-monitor/log-pattern-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/log-monitors/log-pattern-monitor/log-pattern-data.ts");
    /* harmony import */


    var _add_custom_monitor_services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! ../add-custom-monitor/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_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");
    /* harmony import */


    var src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! src/app/pages/tools/admin/access-control-management/constants/cav-acl-features.constants */
    "./src/app/pages/tools/admin/access-control-management/constants/cav-acl-features.constants.ts");

    var AddMonitorComponent = /*#__PURE__*/function () {
      function AddMonitorComponent(cd, confirmationService, monitorupdownService, router, route, _location, messageService, validationServiceObj, sessionService, cloudMonitors, cmsObj) {
        _classCallCheck(this, AddMonitorComponent);

        this.cd = cd;
        this.confirmationService = confirmationService;
        this.monitorupdownService = monitorupdownService;
        this.router = router;
        this.route = route;
        this._location = _location;
        this.messageService = messageService;
        this.validationServiceObj = validationServiceObj;
        this.sessionService = sessionService;
        this.cloudMonitors = cloudMonitors;
        this.cmsObj = cmsObj;
        this.confTableData = [];
        this.clusterListData = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.confTableSize = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.formData = [];
        this.isCMD = false;
        this.isJMX = false;
        this.isREST = false;
        this.isDB = false;
        this.isLogMon = false;
        this.isLogDataMon = false;
        this.isSnmp = false;
        this.customCmdMon = [];
        this.customDbMon = [];
        this.customRestMon = [];
        this.customJmxMon = [];
        this.count = 0;
        this.cols = [];
        this._selectedColumns = [];
        this.globalFilterFields = [];
        this.isEnabledColumnFilter = false;
        this.filterTitle = 'Enable Filters';
        this.tooltipzindex = 100000;
        this.tierList = [];
        this.serverList = [];
        this.selectedServers = [];
        this.serverFilter = [{}];
        this.rejectVisible = true;
        this.acceptLable = "Yes";
        this.deploymentOption = {};
        this.options = {};
        this.monParams = {};
        this.specificMonMap = new Map(); // used to keep map for monName vs options and enable ???? can be send from server side for optimization.

        this.isUseGlobal = false;
        this.remoteServerName = " ";
        this.rTFlag = false; // flag used at cmd deployment for showing remote tier dropdown

        this.rSFlag = false; //flag used at cmd deployment for showing remote server dropdown

        this.oTypeForCmd = ""; // output type used in cmd deployment UI.

        this.dialogHeader = ''; //for search pattern dialog

        this.showSrchDialog = false;
        this.gMonId = "-1";
        this.operation = "add"; //check if it add/update mode

        this.allMonGdf = "all"; // used to show all monitors gdf

        this.AddEditLabel = "Add"; //label for Add/Update Button

        this.customDepOption = {};
        this.exServerList = []; //exclude serverList

        this.techName = ""; //technology Name

        this.techDisplayName = ""; // Technology Display Name

        this.otherFormData = [];
        this.otherSTDMon = new Map();
        this.isOtherMon = false;
        this.custFormData = [];
        this.custSTDMon = new Map();
        this.monCategory = []; // categorisation for monitor name

        this.validateJmxProp = false; // for sending info for enabling required property in jmx mon data.

        this.objectId = "-1"; // Object ID

        this.validationObj = {};
        this.monGrpMap = [];
        this.gdfDetail = {};
        this.monGrpStateArr = []; // used to store an array for configured monitor groups for bug 110733

        this.index = 0;
        this.column = [];
        this.dbQuery = [];
        this.jmxFlag = false; //Added to prevent prefill while UI render

        this.opVal = []; //Added to store  Other parameter in db deployment in edit mode

        this.finalOpData = []; //Added to set data of Other parameter table in  db deployment in edit mode

        this.openYmlConfDialog = false;
        this.replacementOption = {}; // for bug 116976

        this.supportedTabArray = []; // to hold array of supported tag elements.

        this.selectedSupportedTabIndex = -1; // to hold selected supported tab index.

        this.clusterList = []; // holds cluster list with All and specified option for kubernetes UI

        this.specifiedClusterList = [];
        this.selectedClusterName = []; //ngModel for Specific cluster multiselect dropdown.

        this.customRestDataArr = []; //to store genereic rest mon data

        this.kubeConfigDTO = [];
        /** below arrays holds list of all those clusters which are
           having checkbox checked of Cavisson is running on this cluster - agent case for kubernetes monitoring
           and unchecked in case of unchecked checkbox - agentless monitoring.
          */

        this.agentTrueArray = [];
        this.agentFalseArray = [];
        this.isDefFactory = false;
        this.customLogPatternDataArr = []; // to store all log pattern data

        this.customLogDataArr = [];
        this.displayTestMon = false; //to open test monitor dialog

        this.openTestMonDialog = false; //to open test monitor dialog

        this.executeTestMode = '1'; //check to whether test is executed from table or accordian ,0:accordian,1:Final Table

        this.relativePath = 'monitors/custom-monitors/deploymentUI.json'; //Method called to show/hide other arguments on basis of toggle

        this.displayContent = false;
      }

      return _createClass(AddMonitorComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this = this;

          // this code for when page scroll close dropdown, menu, calender etc
          $(document).ready(function () {
            $('div').scroll(function () {
              if ($(this).scrollTop() > 50) {
                $('.ui-multiselect-panel').fadeOut();
                $('body').click();
              } else {}
            });
          });
          var me = this;
          this.isAdminPermisson = this.sessionService.isFeatureWrite(src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_23__["CAV_FEATURES"].MONITORS.NAME, src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_23__["CAV_FEATURES"].MONITORS.SUB_FEATURES.MONITORS);
          me.reConfId = me.monitorupdownService.gMonId;

          if (this.monitorupdownService.kubeFlag) {
            this.techName = this.techKubernetes;
            this.techDisplayName = this.techDisNameKubernetes;
          } else if (this.monitorupdownService.isFromSnmpSaveAndDeploy) {
            this.techName = "customsnmp";
            this.techDisplayName = "SNMP";
            this.monitorName = this.snmpMonitorName;
          } else {
            this.route.params.subscribe(function (params) {
              _this.techName = params['techName'];

              if (params['techName'] === 'SNMP') {
                _this.techName = 'customsnmp';
              }

              _this.techDisplayName = decodeURIComponent(params['techDisplayName']);
            });
          }

          me.monitorupdownService.getTierList().subscribe(function (res) {
            if (res.status) {
              // let id = [];
              var tName = [];
              var tierNameList = [];
              var anytierNameList = [];
              res['data'] = _this.monitorupdownService.sort_by_key(res['data'], "tName");
              res['data'].map(function (each) {
                // id.push(each['id']);
                tName.push(each['tName']);
              });
              me.tierHeadersList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(tName, tName);
              me.tierList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(tName, tName);
              me.tierHeadersList.map(function (each) {
                tierNameList.push(each.label);
                anytierNameList.push(each.label);
              });
              me.tierList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(tierNameList);
              var data = {};
              data["label"] = "All Tiers";
              data["value"] = "ALLtier"; //Below Check for cloudfoundry is added for bug 148188

              if (_this.techName != 'Log Metric Monitor' && _this.techName != 'cloudfoundry') _this.tierList.unshift(data);
              me.anyTierList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(anytierNameList);

              if (me.monitorupdownService.gMonId !== "-1") {
                var rowData = {
                  gMonId: me.monitorupdownService.gMonId,
                  _id: "-1"
                };
                me.onRowEditInit(rowData);
              }
            } else {
              _this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: res.error
              });
            }
          });
          this.loading = true;
          me.jmxData = new _containers_jmx_data__WEBPACK_IMPORTED_MODULE_8__["JmxData"](); //Changes for bug 110942 and 110943

          if (me.monitorupdownService.gMonId == "-1") {
            me.monitorupdownService.getMonitorConfiguration(this.techName).subscribe(function (res) {
              // me.getDrivenJsonDataNew(res['cmpInfo']);  // CHANGED FOR OPTIMIZATION
              me.renderUI(res['cmpInfo']);
              me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel'

              if (me.supportedTabArray) {
                _this.jmxData.host = "";
                if (_this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLOUD_FOUNDARY_TECH_NAME"]) _this.selectedSupportedTabIndex = 2;
              }

              if (res.helpURL == null) {
                _this.showHideHelp = false;
              } else {
                _this.showHideHelp = true;
                _this.helpURL = res['helpURL'];
              }

              me.cd.detectChanges(); // changes for Bug no. 137572
            });
          }

          me.monitorupdownService.getConfigInfo(this.techName, this.monitorName).subscribe(function (response) {
            if (response.status) {
              response = response.list;

              _this.monitorupdownService.setKubeTableData(response);

              response.map(function (item) {
                if (item.defFactory) {
                  me.isDefFactory = item.defFactory;
                }
              });
              if (response.length > 0) me.monitorupdownService.kubeTableflag = true;else me.monitorupdownService.kubeTableflag = false;
              me.confTableData = response;
              me.cd.detectChanges();
            } else _this.messageService.add({
              severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
              summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
              detail: response.msg
            });
          });
          this.agentList = [{
            label: 'All',
            value: 'ALL'
          }, {
            label: 'BCI',
            value: 'BCI'
          }, {
            label: 'CMON',
            value: 'CMON'
          }];
          this.column = [{
            field: "pattern",
            header: 'Key'
          }, {
            field: "upVal",
            header: 'Value'
          }];
          me.cmdData = new _containers_cmd_data__WEBPACK_IMPORTED_MODULE_6__["CmdData"]();
          me.dbData = new _containers_db_data__WEBPACK_IMPORTED_MODULE_7__["DbData"]();
          me.logPatternData = new _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__["LogPatternData"]();
          me.customMonCols = [{
            field: "pattern",
            header: 'Key'
          }, {
            field: "upVal",
            header: 'Value'
          }];
          me.tableCols = [{
            field: "gMonId",
            header: 'gMonId'
          }, {
            field: "monInfo",
            header: 'Monitor Options'
          }, {
            field: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_INFO"],
            header: 'Tier Information'
          }, {
            field: "_id",
            header: '_id'
          }]; // me.serverOptionList = UtilityService.createListWithKeyValue(COMPONENT.SERVER_OPTION_LIST_LABEL, COMPONENT.SERVER_OPTION_LIST_VALUE)

          me.serverOptionList = [{
            value: -1,
            label: 'All'
          }, {
            value: -2,
            label: 'Any'
          }, {
            value: 'specified',
            label: 'Specified Server'
          }];
          this.frequencyList = [{
            label: 'None',
            value: 'none'
          }, {
            label: '1 sec',
            value: '1000'
          }, {
            label: '10 sec',
            value: '10000'
          }, {
            label: '1 min',
            value: '60000'
          }]; //Changes for bug 110942 and 110943

          if (me.monitorupdownService.gMonId == "-1") {
            me.serverFilter = [{
              id: 0,
              tier: "",
              actualServer: "",
              server: [],
              exServer: [],
              exTier: [],
              serverList: [],
              customServer: "" //added to support Custom Specific Server BugId:124053

            }];
          }

          if (this.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) this.getClusterList();
          var that = this;
          this.updateListSubscription = this.monitorupdownService.$changeInAgentStatus.subscribe(function (res) {
            if (res) {
              that.getClusterList();
            }
          });
        }
      }, {
        key: "help1",
        value: function help1() {
          this.productName = this.sessionService.session.cctx.prodType;
          if (this.productName == 'NetDiagnostics') this.productName = 'netdiagnostics';
          var url = window.location.protocol + '//' + window.location.host + "/" + this.helpURL;
          window.open(url);
        }
      }, {
        key: "addDisableValidation",
        value: function addDisableValidation(node) {
          var me = this;
          node.items.forEach(function (value, key) {
            if (value[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
              if (node.value === value.value) {
                value[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].forEach(function (v, k) {
                  if (v.validationObj) {
                    v.validationObj.disabled = false;

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                    }

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) {
                      for (var i = 0; i < v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].length; i++) {
                        if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]][i][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]][i][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                      }
                    }
                  }
                });
              } else {
                value[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].forEach(function (v, k) {
                  if (v.validationObj) {
                    v.validationObj.disabled = true;

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                    }

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) {
                      for (var i = 0; i < v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].length; i++) {
                        if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]][i][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]][i][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                      }
                    }
                  }
                });
              }
            }
          });
        } //adding disble validation for dependent components

      }, {
        key: "addDepCompValidation",
        value: function addDepCompValidation(compData, isDisabled) {
          var me = this;
          compData.forEach(function (v, k) {
            if (v.validationObj) {
              v.validationObj.disabled = isDisabled;

              if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
              }
            }
          });
        }
      }, {
        key: "selectedColumns",
        get: function get() {
          var me = this;
          return me._selectedColumns;
        },
        set: function set(val) {
          var me = this;
          me._selectedColumns = me.cols.filter(function (col) {
            return val.includes(col);
          });
        }
      }, {
        key: "showChild",
        value: function showChild(node) {
          if (node[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] && node[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].length > 0) {
            return true;
          }

          return false;
        }
      }, {
        key: "onRowEditInit",
        value: function onRowEditInit(rowData) {
          var _this2 = this;

          var me = this;
          me.reConfId = "-1";
          me.jmxFlag = true;
          me.AddEditLabel = "Update";
          me.gMonId = rowData.gMonId;
          me.objectId = rowData._id;
          me.operation = "update";
          me.formData = [];
          me.customCmdMon = [];
          me.customDbMon = [];
          me.customRestMon = [];
          me.customJmxMon = [];
          me.serverFilter = [];
          me.monCategory = [];
          me.customRestDataArr = [];
          me.customLogPatternDataArr = [];
          me.customLogDataArr = [];
          me.specificMonMap = new Map();
          me.monitorupdownService.tabType = null; // forcefully setting to null in case of edit mode
          //it has been commented for the bug 109514
          // if (me.tierHeadersList) {
          //   me.exTierList = me.tierHeadersList.filter(val => {
          //     return val.value != -1
          //   })
          // }

          me.loading = true;
          me.monitorupdownService.getMonitorConfigurationAtEdit(me.techName, rowData.gMonId, rowData._id).subscribe(function (res) {
            me.loading = false;
            me.renderUI(res['cmpInfo']);
            me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel

            if (_this2.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) // handling for edit mode case in Kubernetes UI
              _this2.onRowEditForKubeMon(res);

            if (res.helpURL == null) {
              _this2.showHideHelp = false;
            } else {
              _this2.showHideHelp = true;
              _this2.helpURL = res['helpURL'];
            }

            me.isUseGlobal = res.useGlobal;
            var count = 0;

            if (res.tierInfo.length > 0) {
              res.tierInfo.map(function (each) {
                var tierServerObj = {};
                var servers = [];
                var exTier = [];
                var exServer = [];
                tierServerObj['appName'] = each['appName']; // setting app name in tierServerObj for edit mode

                tierServerObj['clusterName'] = each['clusterName']; // setting cluster name in tierServerObj for edit mode for cloudFoundary supported tab

                if (me.supportedTabArray) {
                  me.supportedTabArray.map(function (item) {
                    // if(item.tabName === "kube" && each['appName']) // commented hard coded check
                    if (item.appName != null && each['appName']) // assigning app name to that tab which is not app name key as null; Added item.appName != null because in case of springboot tech appName was blank in json so in case of edit value was not showing in appName textfield
                      item.appName = each['appName'];
                    if (item.tabName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLOUD_FOUNDARY_TAB_NAME"] && each['clusterName']) // for cloudFoundary supported tab 
                      item.clusterName = each['clusterName'];
                    if (item.selected) me.selectedSupportedTabIndex = item.index;
                  });
                }

                tierServerObj['tier'] = each['tier'];
                tierServerObj['id'] = count;

                if (each['exTier']) {
                  if (each['exTier'].includes(",")) exTier = each['exTier'].split(",");else exTier.push(each['exTier']);
                }

                if (each['server'] == "All") {
                  tierServerObj['actualServer'] = -1;

                  if (each['exServer']) {
                    //changes has been done for the bug id:-109471
                    if (each['exServer'].includes(",")) {
                      exServer = each['exServer'].split(",");
                    } else {
                      exServer.push(each['exServer']);
                    }
                  }
                } else if (each['server'] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_ANY"]) {
                  tierServerObj['actualServer'] = -2;
                } else {
                  tierServerObj['actualServer'] = "specified";

                  if (each['server']) // handling case in edit mode when server data is not present at supported tab feature
                    {
                      if (each['server'].includes(",")) servers = each['server'].split(",");else servers.push(each['server']);
                    }
                }

                tierServerObj['exServer'] = exServer; //for bug 109471

                tierServerObj['server'] = servers;
                tierServerObj['exTier'] = exTier;
                if (me.tierHeadersList) // for bug 140312 
                  _this2.getServerListAtEdit(tierServerObj);

                _this2.onServerChange(tierServerObj);

                me.serverFilter.push(tierServerObj);
                count = count + 1;
              });
            } else {
              // for bug 137459 to show tier - server information when mongo is stopped.
              me.serverFilter = [{
                id: 0,
                tier: "",
                actualServer: "",
                server: [],
                exServer: [],
                exTier: [],
                serverList: [],
                customServer: "" //added to support Custom Specific Server BugId:124053

              }];
            }

            me.cd.detectChanges();
            me.exTierList = me.tierList.filter(function (val) {
              return val.value != "ALLtier";
            });
          });
        }
      }, {
        key: "removeRowDataConfirmation",
        value: function removeRowDataConfirmation(rowData) {
          var _this3 = this;

          var me = this;
          me.rejectVisible = true;
          me.acceptLable = "Yes";
          me.confirmationService.confirm({
            message: 'Do you want to delete this monitor configuration?',
            header: 'Delete Confirmation',
            icon: 'pi pi-info-circle',
            accept: function accept() {
              me.loading = true;
              if (_this3.techKubernetes == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) _this3.emitConfTableSize();
              me.monitorupdownService.removeConfigurationInfo(rowData.gMonId, rowData._id, me.techName).subscribe(function (res) {
                if (res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_STATUS"]]) {
                  me.confTableData = me.confTableData.filter(function (each) {
                    return each.gMonId != rowData.gMonId;
                  });

                  if (res.severity && res.severity == "info") {
                    var messages = res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]].replace(/(\.\s)/g, '$1|').split('|');

                    me.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_WARNING"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_WARNING"],
                      detail: messages[0]
                    });
                    me.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                      detail: messages[1]
                    });
                  } else me.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                    detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]]
                  });

                  me.loading = false;
                  _this3.selectedMonConf = [];
                  me.clearFormFields();
                  me.cd.detectChanges();
                } else {
                  me.loading = false;

                  _this3.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                    detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]]
                  });

                  me.cd.detectChanges();
                }
              });
            },
            reject: function reject() {
              _this3.selectedMonConf = [];
            }
          });
        } // Method called at Add click

      }, {
        key: "addData",
        value: function addData() {
          var _this4 = this;

          if (!this.isMonConfigurationValid(this.formData)) {
            return false;
          }

          if (!this.validateBlankTextField(this.formData)) {
            return false;
          }

          if (!this.validateTableDropdownComp(this.formData)) {
            return false;
          } // for bug 108850


          if (!this.validateJmxSearchPattern(this.jmxData)) {
            return false;
          } // for bug 112656


          if (!this.allMonEnable()) {
            if (this.operation === "update") {
              this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: 'Enable atleast one monitor or if you want to remove the configuration then use delete option.'
              });
            } else {
              this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: 'Enable atleast one monitor.'
              });
            }

            return false;
          }

          if (!this.checkDuplicateAppExcludeAppName()) {
            return false;
          } // bug - 109517
          // used for adding custom monitors data options


          if (this.customCmdMon.length > 0) this.addCustomMonitorData(this.customCmdMon);
          if (this.customDbMon.length > 0) this.addCustomMonitorData(this.customDbMon);
          if (this.customJmxMon.length > 0) this.addCustomMonitorData(this.customJmxMon);
          if (this.customRestMon.length > 0) this.addCustomMonitorData(this.customRestMon);

          if (this.isUseGlobal) {
            this.rejectVisible = true;
            this.acceptLable = "Yes";
            this.confirmationService.confirm({
              message: 'As Use Global Configuration checbox is selected, these changes will be applied to all the monitors using Global configuration. Do you wantto continue?',
              header: 'Use Global Configuration Confirmation',
              icon: 'pi pi-info-circle',
              accept: function accept() {
                _this4.sendRequestToServer();
              },
              reject: function reject() {}
            });
          } else {
            this.sendRequestToServer();
          }
        } //Method to create specific monitor options and deployment options

      }, {
        key: "createComponentData",
        value: function createComponentData(CompData) {
          var me = this;
          var dep = [];
          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTFIELD_TYPE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPINNER_TYPE"]) return me.createTextFieldOptions(CompData);
          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) return me.createRadioButtonOptions(CompData);

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ACCORDIAN_TYPE"]) {
            dep = me.createAccordianOptions(CompData);
            me.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
            dep = me.createCheckBoxOptions(CompData);
            me.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
            dep = me.createDropdownOptions(CompData);
            if (dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) me.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_TYPE"]) {
            dep = me.createTableOptions(CompData);
            me.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLESINGLEARG_TYPE"]) {
            dep = me.createTableSingleArgOptions(CompData);
            me.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FIELDSETLABEL_TYPE"]) {
            dep = me.createFieldSetOptions(CompData);
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"]) {
            var key = me.setAppCPJHInstance(CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]], CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]]);
            me.createMonParameters(key, CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]);
            me.createDeployementOptions(key, CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]]);
          } // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.AGENT_TYPE) {
          //   me.monParams[COMPONENT.AGENT_TYPE] = CompData[COMPONENT.VALUE];
          //   me.deploymentOption[COMPONENT.AGENT_TYPE] = "${" + [COMPONENT.AGENT_TYPE] + "}";
          // }


          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]) {
            var str = '';

            CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE_OBJ"]].map(function (each) {
              str = str + each + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];
            });

            str = str.substring(1, str.length - 1);
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]] = str;
          } // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.INSTANCE) {
          //   me.monParams[COMPONENT.INSTANCE] = CompData[COMPONENT.VALUE];
          //   if (CompData[COMPONENT.USE_AS_OPTION] != "")
          //   {
          //     me.deploymentOption[COMPONENT.INSTANCE] = CompData[COMPONENT.USE_AS_OPTION] + " ${" + COMPONENT.INSTANCE + "}";
          //   }
          //   else
          //   {
          //     me.deploymentOption[COMPONENT.INSTANCE] = "${" + COMPONENT.INSTANCE + "}";
          //   }
          // }
          // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.APPNAME) {
          //   me.monParams[COMPONENT.APPNAME] = CompData[COMPONENT.VALUE];
          //   me.deploymentOption[COMPONENT.APPNAME] = "${" + COMPONENT.APPNAME + "}";
          // }
          // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.EXCLUDE_APP) {
          //   me.monParams[COMPONENT.EXCLUDE_APP] = CompData[COMPONENT.VALUE];
          //   me.deploymentOption[COMPONENT.EXCLUDE_APP] = "${" + COMPONENT.EXCLUDE_APP + "}";
          // }
          // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.JAVAHOME) {
          //   me.monParams[COMPONENT.JAVAHOME] = CompData[COMPONENT.VALUE];
          //   me.deploymentOption[COMPONENT.JAVAHOME] = "${" + COMPONENT.JAVAHOME + "}";
          // }
          // CAN BE CHANGED.......
          // if (CompData[COMPONENT.TYPE] === COMPONENT.CLASSPATH) {
          //   me.monParams[COMPONENT.CLASSPATH] = CompData[COMPONENT.VALUE];
          //   me.deploymentOption[COMPONENT.CLASSPATH] = "${" + COMPONENT.CLASSPATH + "}";
          // }


          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RUN_AS_PROCESS"]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]];
            me.deploymentOption[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]] = "${" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RUN_AS_PROCESS"] + "}";
          } // for handeling blank type tags


          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == "") {
            if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]]) me.deploymentOption[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]];else me.deploymentOption[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_ENCRYPTED"]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]];
          }
        } // Method called when iterating per component

      }, {
        key: "getMonData",
        value: function getMonData(arr, key, monType, monGrp, grpDisplayName) {
          var me = this;

          if (arr.length != 0) {
            arr.map(function (item) {
              if ((item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ACCORDIAN_TYPE"] || item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FIELDSETLABEL_TYPE"] || item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]) && item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (depComp) {
                  if (depComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
                    me.addDisableValidation(depComp);
                  }

                  if (depComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
                    me.addDisableProperty(depComp);
                  }
                });
              }

              if (item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
                me.addDisableValidation(item);
              } // for enable/disable checkbox at global component level.


              if (item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
                me.addDisableProperty(item);
              }

              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_NAME"]] = key; // not required so commented.

              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] = key;
              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]] = monType;
              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"]] = grpDisplayName; // for bug 108262
              //added to be used in validations;

              if (monGrp) item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]] = monGrp;
              me.formData.push(item);
            });
          }
        } // Method to get specific monitor data.

      }, {
        key: "getSpecificData",
        value: function getSpecificData(arr, key, enable, specificMonOption, monName, monType, monInternalName, monGrp, grpDisplayName, uiOptionKey) {
          // added for custom SNMP Monitor UI where we need to show the selected monitor enabled by default when using Save&Deploy button.
          if (monType === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"] && this.monitorName && this.monitorName === monName) {
            enable = true;
          }

          var me = this;
          me.getMonData(arr, key, monName, monGrp, grpDisplayName);
          var restData = {};
          var logpatternData = {};
          var snmpData = {};
          arr.map(function (item) {
            if ((item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ACCORDIAN_TYPE"] || item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FIELDSETLABEL_TYPE"] || item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]) && item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (checkboxDepComp) {
                if (checkboxDepComp.dependentComp != null) {
                  checkboxDepComp.dependentComp.map(function (eachItems) {
                    if (eachItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
                      me.addDisableValidation(eachItems);
                    } else {
                      if (eachItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
                        me.addDisableProperty(eachItems);
                      }
                    }
                  });
                }
              });
            }

            if (item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]) {
              item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (radioItems) {
                if (radioItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
                  me.addDisableValidation(radioItems);
                }
              });
            }

            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_NAME"]] = key;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] = key;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_SPECIFIC_KEY"]] = true;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]] = enable;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]] = monName;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]] = monInternalName;
            item['isShow'] = true;
            if (monGrp) item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]] = monGrp;
            item[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"]] = grpDisplayName; // for bug 108262

            var obj = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], specificMonOption), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"], enable), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"], monType), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"], true), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_NAME"], monInternalName), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"], key), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_DISPLAY_NAME"], monName), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"], grpDisplayName);

            if (monGrp) obj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]] = monGrp;

            if (key === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"]) {
              restData = me.setCustomRestMonUIOptions(uiOptionKey);
              obj['restData'] = restData;
            }

            if (key === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"]) {
              if (me.gMonId == "-1") {
                logpatternData = me.fillLogPatternMonData(specificMonOption, monName);
              } else {
                logpatternData = me.setCustomLogMonUIOptions(uiOptionKey, monName);
              }

              obj['logPatternData'] = logpatternData;
            }

            if (key === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"]) {
              var logData = {};

              if (me.gMonId == "-1") {
                logData = me.fillLogDataMon(specificMonOption, monName);
              } else {
                logData = me.setCustomLogDataMonUIOptions(uiOptionKey, monName);
              }

              obj['logData'] = logData;
            }

            if (key === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"]) {
              snmpData = me.setCustomSNMPMonUIOptions(uiOptionKey);

              if (!lodash__WEBPACK_IMPORTED_MODULE_3__["isEmpty"](snmpData)) {
                obj['snmpData'] = snmpData;
              }

              var _arr = [];

              for (var i = 0; i < me.formData.length; i++) {
                if (me.formData[i].type === "dependentComp" && me.formData[i].inMonName === monName) {
                  _arr = me.createOptionForSNMP(uiOptionKey);

                  var clonedArr = _arr.map(function (item) {
                    return Object.assign({}, item);
                  });

                  me.formData[i]['opData'] = clonedArr;
                }
              }
            }

            me.specificMonMap.set(monInternalName, obj); // changed mon display name to internal monitor name
          });
        }
      }, {
        key: "setCustomRestMonUIOptions",
        value: function setCustomRestMonUIOptions(data) {
          var monData = new _containers_rest_data__WEBPACK_IMPORTED_MODULE_9__["RestData"]();

          for (var i in data) {
            if (i === "--host") {
              monData.host = data[i];
            }

            if (i === "--port") {
              monData.port = data[i];
            }

            if (i === "--user") {
              monData.user = data[i];
            }

            if (i === "--pwd") {
              monData.pwd = data[i];
            }

            if (i === "--proxyUrl") {
              monData.pURL = data[i];
            }

            if (i === "--proxyUser") {
              monData.pUser = data[i];
            }

            if (i === "--proxyPwd") {
              monData.pPwd = data[i];
            }

            if (i === "--protocol") {
              monData.protocol = data[i];
            }

            if (i === "--monServer" && data[i] == "yes") {
              monData.isServer = true;
            }

            if (i === "--monTier" && data[i] == "yes") {
              monData.isTier = true;
            }

            if (i === "--urlHeader") {
              var urlheaderArray = [];
              urlheaderArray = data[i].split(',');
              monData.header = urlheaderArray;
            }

            if (i === "--url") {
              monData.restUrl = data[i];
            }

            if (i === "--authMode") {
              monData.authMode = data[i];
            }

            if (i === "--tokenSource") {
              if (data['--authMode'] == 1) {
                monData.apiToken = data[i];
              } else if (data['--authMode'] == 2) {
                monData.bearerToken = data[i];
              }
            }
          }

          return monData;
        } // Method to get custom monitor data at Add/edit time.

      }, {
        key: "getCustomMonData",
        value: function getCustomMonData(compData, key, type, custType) {
          var me = this;

          if (type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CMD_TYPE"]) {
            if (custType === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_MONITOR_KEY"]) {
              var cmdObj = me.createOtherParams(compData, key, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CMD_TYPE"]);
              if (cmdObj && cmdObj.length > 0) // for bug 108777
                me.customCmdMon.push(cmdObj);
            }

            if (compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]] && Object.keys(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]).length > 0) {
              me.setCustomMonUIOptions(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]], me.cmdData);
              me.monitorupdownService.fillCustomMonData(me.cmdData);
            }
          } else if (type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"]) {
            if (custType === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_MONITOR_KEY"]) {
              var _cmdObj = me.createOtherParams(compData, key, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"]);

              if (_cmdObj && _cmdObj.length > 0) me.customCmdMon.push(_cmdObj);
            }

            if (compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]] && Object.keys(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]).length > 0) {
              me.setCustomMonUIOptions(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]], me.dbData);
              me.monitorupdownService.fillCustomMonData(me.dbData);
            }
          } //For JMX deployment
          else if (type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JMX_TYPE"]) {
            if (custType === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_MONITOR_KEY"]) {
              var _cmdObj2 = me.createOtherParams(compData, key, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JMX_TYPE"]);

              if (_cmdObj2 && _cmdObj2.length > 0) me.customCmdMon.push(_cmdObj2);
            }

            if (compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]] && Object.keys(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]).length > 0) {
              if (this.jmxFlag) {
                me.setCustomMonUIOptions(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]], me.jmxData);
                me.monitorupdownService.fillCustomMonData(me.jmxData);
              }
            }
          } //For REST deployment


          if (type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"]) {
            if (custType === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_MONITOR_KEY"]) {
              var _cmdObj3 = me.createOtherParams(compData, key, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"]);

              if (_cmdObj3 && _cmdObj3.length > 0) me.customRestMon.push(_cmdObj3);
            }

            if (compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]] && Object.keys(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]).length > 0) {
              me.setCustomMonUIOptions(compData[key][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]], me.restData);
              me.monitorupdownService.fillCustomMonData(me.restData);
            }
          }
        } // Used for setting UI options for custom monitors eg. remote tier/server checkbox, db query

      }, {
        key: "setCustomMonUIOptions",
        value: function setCustomMonUIOptions(data, monData) {
          var me = this;

          for (var i in data) {
            if (i === "--rTier") me.rTFlag = data[i];
            if (i === "--rServer") me.rSFlag = data[i];
            if (i === "--oTypeForCmd") me.oTypeForCmd = data[i];

            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_AUTH_TYPE_ARG"]) {
              monData.auth = data[i]; // if (data[i] === '0')
              //   monData.sid = true;
              // else
              //   monData.sid = true;

              if (data[i] === '0') this.monitorupdownService.showSid = true;else this.monitorupdownService.showSid = false;
            }

            if (i == _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SID_ARG"]) monData.sid = data[i];

            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_DB_QUERY_ARG"]) {
              this.dbQuery.push(decodeURIComponent(data[i]).replace(/\+/g, ' ')); // for decoding encoded query

              for (var _i = 0; _i < this.formData.length; _i++) {
                this.formData[_i][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DBQUERY"]] = this.dbQuery[_i];
                this.formData[_i]['newId'] = _i; //to auto fill other parameter data  in case of parameterized query in DB deployment in case off add

                if (!this.jmxFlag) {
                  this.setOpData(this.formData[_i]);
                }
              }
            }

            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_VECTOR_PREFIX"]) monData.instance = data[i];
            if (i === "--executeRemote") monData.executeRemote = data[i];
            if (i === "--rT") monData.rT = data[i];
            if (i === "--rS") monData.rS = data[i];
            if (i === "--cT") monData.cT = data[i];
            if (i === "--rSDpName") monData.rSDpName = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"]) monData.host = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PORT_ARG"]) monData.port = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_USER_ARG"]) monData.user = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PWD_ARG"]) monData.pwd = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PUBLIC_KEY_ARG"]) monData.pubKey = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PRIVATE_KEY_ARG"]) monData.prvKey = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_HOST_ARG"]) monData.pHost = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_PORT_ARG"]) monData.pPort = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_USER_ARG"]) monData.pUser = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_PWD_ARG"]) monData.proxyPwd = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_ARG"]) monData.tsf = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_PASSWORD_ARG"]) monData.tsp = data[i];
            if (i == _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG"]) monData.sslType = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_FILE_ARG"]) monData.ksf = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_PASSWORD_ARG"]) monData.ksp = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PID_ARG"]) monData.pid = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PID_FILE_ARG"]) monData.pidFile = data[i];
            if (i === "--jmxConn") monData.jmxConn = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_JMX_CONNECTION_URL_ARG"]) monData.connURL = data[i];
            if (i === "--otherConn") monData.otherConn = data[i];
            if (i === "--index") monData.occCount = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_DB_NAME_ARG"]) monData.dbName = data[i];
            if (i === "--sslType") monData.sslType = data[i];
            if (i === "--custSSL") monData.custSSL = data[i];
            if (i === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"]) monData.agent = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG"]) monData.adv.delVecCount = +data[i].split('.')[0];
            ;
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_RETRY_ARG"]) monData.adv.rCount = +data[i].split('.')[0];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_INTERVAL_ARG"]) monData.adv.interval = +data[i].split('.')[0];
            ;
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_IS_REFRESH_ARG"]) monData.adv.dbCon = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG"]) monData.adv.jFile = data[i];
            if (i === _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG"]) monData.adv.tFile = data[i];
            if (i == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"]) monData.classPath = data[i];
            if (i == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"]) monData.javaHome = data[i];

            if (i == _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG"]) {
              this.getJmxPatternData(data[i], monData);
            }

            if (i == _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_CONN_PARAMS_ARG"]) {
              this.opVal.push(data[i]);

              for (var _i2 = 0; _i2 < this.formData.length; _i2++) {
                if (this.finalOpData.length == 0) //added to handle the case of parameterized query
                  this.setOpData(this.formData[_i2], this.opVal[_i2]);else //added to handle the case of not parameterized query
                  this.setOpData(this.formData[_i2], this.opVal[_i2 - 1]);
              }
            }
          }
        } // Method for creating deployment options for textfield component.

      }, {
        key: "createTextFieldOptions",
        value: function createTextFieldOptions(compItem) {
          var option = {};
          var finalObj = [];
          var value = compItem.value; // holds the current textfield value

          if (!isNaN(value)) {
            //converting decimal number to string value
            value = String(value);
          }

          if (value) // add when value is not empty
            {
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INPUT_TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE_PASSWORD"]) // case when we get input type as "password" we skip that field and do not show in the argument data(i.e in gui) but send it to the server.
                {
                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) value = encodeURIComponent(value);
                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") //this is used for adding at start end doubleQuotesVal
                    value = "\"" + value + "\"";
                } else // case when inputType is password and we add that field value to the "options"
                {
                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PWD_ENCRYPT_VAL"]]) {
                    value = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"];
                  }
                }

              option[compItem.key] = compItem.args + "  ${" + compItem.key + "}"; // instance: "--vecPrefix  ${instance}

              this.monParams[compItem.key] = value;
              this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
            }

          finalObj.push(_defineProperty({
            "dep": this.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        } // Method for creating deployment options for RadioButton component.

      }, {
        key: "createRadioButtonOptions",
        value: function createRadioButtonOptions(compItem) {
          var dep = []; // let option: any = {};

          var me = this;
          var value = compItem.value; // holds the current textfield value

          var selectedObj = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](compItem['items'], function (each) {
            return each.value == compItem.value;
          });
          var dependentCompOption = ""; //If dependent component is present

          if (selectedObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            selectedObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              // Handling of case - when dependent comp args is blank (apacheflume.json) and type is blank
              if (eachDepenComp.type && !eachDepenComp.args) {
                eachDepenComp.args = selectedObj.args;
              }

              if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                dep = me.createComponentData(eachDepenComp);

                if (eachDepenComp.type && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) //handeling when type is blank
                  {
                    dependentCompOption = dependentCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
                  }
              }
            });
          } else // if there is only radiobutton
            {
              // used for creating object in params at body.
              this.monParams[selectedObj.key] = value; //  instance : value;

              dependentCompOption = selectedObj.args + "  ${" + selectedObj.key + "}";
            }

          this.deploymentOption[compItem.key] = dependentCompOption;
        } // Method for creating deployment options for Checkbox component added on 1st april

      }, {
        key: "createCheckBoxOptions",
        value: function createCheckBoxOptions(compItem) {
          var dep = [];
          var option = {};
          var finalObj = [];
          var me = this;
          var depCompOption = "";
          var value = compItem.value; // holds the current checkbox value

          option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                if (!eachDepenComp['args']) {
                  eachDepenComp['args'] = compItem.args;
                }

                dep = me.createComponentData(eachDepenComp);
                if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) depCompOption = depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
              }
            });
          } else {
            this.monParams[compItem.key] = value; //  instance : value;

            depCompOption = compItem.args + "  ${" + compItem.key + "}";
          }

          this.deploymentOption[compItem.key] = depCompOption; //added on 18th May

          finalObj.push(_defineProperty({
            "dep": this.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        }
      }, {
        key: "sendRequestToServer",
        value: function sendRequestToServer() {
          var me = this;
          var reqBody = {};
          reqBody = {
            "useGlobal": me.isUseGlobal,
            "params": me.monParams,
            "mon": {}
          }; //using Entries

          var _iterator = _createForOfIteratorHelper(this.specificMonMap.entries()),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var entry = _step.value;
              reqBody['mon'][entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_NAME"]]] = me.createSaveData(entry, me.deploymentOption, me.options);
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          if (me.isSnmp) {
            me.formData.forEach(function (item) {
              if (item.type === "dependentComp") {
                var opData = item.opData || [];
                var optionsString = opData.map(function (data) {
                  return "".concat(data.pattern, "=").concat(encodeURIComponent(data.upVal));
                }).join(',');

                if (!reqBody['mon'][item.monType]) {
                  reqBody['mon'][item.monType] = {};
                }

                reqBody['mon'][item.monType].options = "-o ".concat(optionsString, ",");
              }
            });
          }

          var arr = me.removeDisableMonGrpParams(); // added below part for bug 110733

          var msg = "";

          for (var i = 0; i < this.monGrpStateArr.length; i++) {
            if (!this.monGrpMap.includes(this.monGrpStateArr[i]['gn'])) {
              if (this.monGrpStateArr[i]['gdn']) msg = msg + this.monGrpStateArr[i]['gdn'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];
            }
          }

          if (msg) this.showConfirmDialogForUpdate(msg, reqBody);else this.createFinalSaveObj(reqBody);

          for (var _i3 = 0; _i3 < arr.length; _i3++) {
            delete me.monParams[arr[_i3]];
          }

          this.monGrpStateArr = []; // clear the array to get update info for each group.
        } //creating save data on Add

      }, {
        key: "createSaveData",
        value: function createSaveData(compData, deploymentOption, options) {
          var _Object$assign;

          var str = "";

          if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) {
            str = compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString();
          }

          var arr = str.split(" ");
          var me = this;
          var replacedOption = "";
          var replacedCustomOption = "";
          var monInOptions = "";
          var monObj = {};
          var javaHome = null;
          var appName = null;
          var instanceName = null;
          var classPath = null;
          var exApp = null;
          var isProcess = null;
          var agentType = null;
          var tierName = null;
          var enable = false;
          var monGrp = compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]];
          var matchKey = Object.keys(deploymentOption);
          var customKey = Object.keys(options);
          var isDestAllServer = null; //added for networkDelayEx monitor where we need to support "All Server" option in dropdown bug id - 120961

          var replacementOption = "";
          var frequency = null;

          if (monGrp === "_log") {
            monInOptions = monInOptions + compData[1]['option'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            instanceName = compData[1]['logPatternData']['instance'];
          }

          if (monGrp === "_logData") {
            monInOptions = monInOptions + compData[1]['option'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            instanceName = compData[1]['logData']['instance'];
          }

          if (monGrp === "_rest") {
            monInOptions = monInOptions + compData[1]['option'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (monGrp === "_customsnmp") {
            if (compData[1]['snmpOpt']) monInOptions = monInOptions + compData[1]['snmpOpt'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]]) {
            if (this.monGrpMap.indexOf(monGrp) === -1) {
              this.monGrpMap.push(monGrp);
            }

            enable = compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]];
          }

          var monGrpKey = monGrp + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]; //for bug 116976

          var matchReplacementKey = Object.keys(me.replacementOption);
          matchReplacementKey.map(function (item) {
            var grpKey = item.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);
            if (grpKey[0] + "#" === monGrpKey) replacementOption = replacementOption + me.replacementOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          });
          matchKey.map(function (item) {
            for (var i = 0; i < arr.length; i++) {
              var startIndex = arr[i].indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]);
              var newStr = monGrpKey + arr[i].substring(startIndex + 2, arr[i].length - 1); //Add monGrp to every item if is not for custom monitors.

              if (item !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JMX_TYPE"] && item !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CMD_TYPE"] && item !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"] && !item.includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"])) {
                item = monGrpKey + item;
              }

              if (item === newStr || item === newStr + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + compData[0]) {
                if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"]) javaHome = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"]) classPath = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"]) appName = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"]) exApp = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) isProcess = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"]) agentType = deploymentOption[item];else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"] || item == monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + compData[0]) frequency = deploymentOption[item].trim();else if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] || item == monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + compData[0]) {
                  if (deploymentOption[item].includes("--") || deploymentOption[item].includes("-")) {
                    //single "-" is used to handle args having old arguments like "-"
                    var val = deploymentOption[item].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]); //Handled case in windowsytem tech in case of TaskSchedular monitor instance name was getting twice in dep-Options.

                    if (!replacedOption.includes(val[1])) replacedOption = replacedOption + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    instanceName = val[1].trim();
                  } else {
                    instanceName = deploymentOption[item];
                  }
                } else if (deploymentOption[item] && deploymentOption[item].includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"])) {
                  replacedOption = replacedOption + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                } else {
                  if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                    if (deploymentOption[item] && deploymentOption[item].startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]) && deploymentOption[item].includes("||")) {
                      var tierVal = deploymentOption[item].split("||"); //when deploymentOption[item] contains "dest_server" then we need to enable isDestAllServer flag as true as new key is to added for this flag bug - 120961

                      if (deploymentOption[item].includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEST_SERVER_KEY"])) {
                        isDestAllServer = true;
                        monInOptions = monInOptions + tierVal[1] + " ${dest_server} ";
                        tierName = tierVal[2];
                      } else {
                        //monInOptions = monInOptions + tierVal[1] + " %cav_tier_any_server% ";
                        //Changes done for bug 122522
                        monInOptions = monInOptions + tierVal[1] + " ${dest_any_server} ";
                        tierName = tierVal[2];
                      }
                    } else if (deploymentOption[item] && deploymentOption[item].startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"]) && deploymentOption[item].includes("||")) {
                      var instanceVal = deploymentOption[item].split("||");

                      if (instanceVal.length == 3) {
                        monInOptions = monInOptions + instanceVal[1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + instanceVal[2] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                        instanceName = instanceVal[2];
                      } else {
                        instanceName = instanceVal[1];
                      }
                    } else {
                      monInOptions = monInOptions + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    }
                  }
                }
              } else if (item.startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"])) {
                var compArgument = item.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);
                var newStrArgument = newStr.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);
                if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"]) javaHome = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"]) classPath = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"]) appName = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"]) exApp = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) isProcess = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"]) agentType = deploymentOption[item];else if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"]) frequency = deploymentOption[item];else if (compArgument[1] === newStrArgument[1]) {
                  // instance name check is added to handle case where instanceName tag is comming without use as options. So in that case it must not get
                  // added in depOptions tag (handled for case in apigee monitors)
                  if (compArgument[1] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"]) {
                    // UseAsOption is present for instance name so it need to be replaced in depOptions.
                    if (deploymentOption[item].includes("--") || deploymentOption[item].includes("-")) {
                      replacedOption = replacedOption + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    }
                  } else {
                    if (deploymentOption[item] && deploymentOption[item].includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"])) {
                      replacedOption = replacedOption + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    }
                  }
                } else {
                  if (item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] || item === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + compData[0]) {
                    // for instance name case in prometheus monitor.
                    if (deploymentOption[item].includes("--") || deploymentOption[item].includes("-")) {
                      //single "-" is used to handle args having old arguments like "-"
                      var _val = deploymentOption[item].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]);

                      instanceName = _val[1].trim();
                    } else {
                      instanceName = deploymentOption[item];
                    }
                  }
                }
              } //Below check is needs to be tested in postgresql.json and windows network json.
              else {
                if (item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] || item === monGrpKey + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + compData[0]) {
                  if (deploymentOption[item].includes("--") || deploymentOption[item].includes("-") || deploymentOption[item].startsWith("/")) //single "-" is used to handle args having old arguments like "-"
                    {
                      var _val2 = deploymentOption[item].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]);

                      instanceName = _val2[1].trim(); //For bug 109516 and 108314 - it needs to be checked in monInOptions and replacedOptions both to avoid duplicate args to be written - postgresql json and windows network json
                      //if val[1] contains ${} that means it is depOptions so it need not to be added in monOptions.
                      //Changes done for bug 122227
                      //Issue : Host Name Option was getting passed in options as well as dep options, as follows:
                      // "options": "--host 10.10.30.113 --count 10 --size 64 ",
                      // "dep-options": "--host 10.10.30.113 ",
                      // Solution: ' !replacedOption.includes(val[1]) ' is added to the below check which indicates that an argument will only
                      // be added in "options" if it's not there in "dep-options"

                      if (!monInOptions.includes(_val2[1]) && !_val2[1].trim().startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]) && !replacedOption.includes(_val2[1])) // need to add for handling case where useAsoption is used for instance name key and it is getting added twice for bug 109142
                        monInOptions = monInOptions + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    } else {
                    instanceName = deploymentOption[item];
                  }
                }
              }
            }

            if (item === monGrpKey + "frequency_" + compData[0]) {
              frequency = deploymentOption[item].trim();
            } // For other argument key must start as group#other_<mon Name>


            if (item === monGrpKey + "other_" + compData[0]) {
              monInOptions = monInOptions + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            } else if (item === compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]) {
              replacedOption = replacedOption + deploymentOption[item] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

              if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JMX_TYPE"] && deploymentOption[item].includes(_constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_VECTOR_PREFIX"])) {
                instanceName = me.monParams["_jmx#instance"];
                agentType = me.monParams["_jmx#agent"]; // agent type in jmx deployment Options
              } else if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"]) {
                if (me.monParams["_db#classPath"]) classPath = me.monParams["_db#classPath"]; // class path in db deployement

                if (me.monParams["_db#javaHome"]) javaHome = me.monParams["_db#javaHome"]; //java home in db deployement
              }
            }

            if (item.startsWith("--")) //handeling for adding tags in options with blank type
              {
                monInOptions = monInOptions + deploymentOption[item] + " ";
              }

            if (compData[0] === item && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RUN_AS_PROCESS"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) {
              replacedCustomOption = replacedCustomOption + options[item] + " ";
              if (deploymentOption[item].includes("${")) replacedOption = replacedOption + deploymentOption[item] + " ";else {
                if (compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) monInOptions = monInOptions + deploymentOption[item] + " ";
              }
            }

            if (compData[0] === customKey[0] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RUN_AS_PROCESS"] && item != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) {
              monInOptions = monInOptions + options[customKey[0]];
            }
          });

          if (compData[1]['type'] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"]) {
            for (var i = 0; i < this.formData.length; i++) {
              if (compData[0] == this.formData[i]['inMonName'] && this.formData[i]['opData']) {
                replacedOption = deploymentOption.db;
                replacedOption = replacedOption + this.createOtherParameterOption(compData);
              }
            }

            var _str = compData[1]['option'].split(" "); //Bug ID- 115181


            for (var _i4 = 0; _i4 < _str.length; _i4++) {
              if (_str[_i4] == '--tier') {
                monInOptions = _str[_i4] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + _str[_i4 + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
              }

              if (_str[_i4] == '--server') {
                monInOptions = monInOptions + _str[_i4] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + _str[_i4 + 1];
              }
            }
          }

          var finalDepOptions = this.removeSpaceBtwArgsAndValue(replacedOption.toString().trim());
          var finalMonInOptions = this.removeSpaceBtwArgsAndValue(monInOptions.toString().trim());
          Object.assign(monObj, (_Object$assign = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Object$assign, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS"], finalMonInOptions.toString().trim()), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEP_OPTIONS_KEY"], this.monGrpMap.includes(monGrp) ? finalDepOptions.toString().trim() : ""), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"], enable), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"], compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]]), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"], javaHome), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"], classPath), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"], instanceName ? this.removeSpaceBtwArgsAndValue(instanceName.toString().trim()) : instanceName), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"], appName), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"], exApp), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"], isProcess), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_Object$assign, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"], agentType), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"], frequency), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ANY_TIER_SERVER"], tierName), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEST_SERVER"], isDestAllServer), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"], monGrp), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"], compData[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"]]), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPTION_KEY"], replacementOption), _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AGENT"], this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ALL_AGENTLESS"] || this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENTLESS"] ? _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOCAL"] : null)));
          return monObj;
        } // Method for creating deployment options for Accordian component added on 31th march

      }, {
        key: "createAccordianOptions",
        value: function createAccordianOptions(compItem) {
          var me = this;
          var dep = [];
          var finalObj = [];
          var option = {};
          var dependentCompOption = ""; //If dependent component is present

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                dep = me.createComponentData(eachDepenComp);
                dependentCompOption = dependentCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
              }
            });

            option[compItem.key] = dependentCompOption.trim();
          }

          finalObj.push(_defineProperty({
            "dep": this.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        } // Method for creating deployment options for dropdown component

      }, {
        key: "createDropdownOptions",
        value: function createDropdownOptions(compItem) {
          var dep = [];
          var finalObj = [];
          var option = {};
          var me = this;
          var value = compItem['value'];
          var depCompOption = "";

          compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].map(function (eachComp) {
            if (value == "") {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (each) {
                  option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                  me.monParams[compItem.key] = each.value;
                });
              }
            } else if (value === eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]) {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (each) {
                  dep = me.createComponentData(each);
                });

                if (dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) depCompOption = depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
              } else {
                me.monParams[compItem.key] = value;
                option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
              }
            }
          });

          finalObj.push(_defineProperty({
            "dep": me.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        } //added on 12th april

      }, {
        key: "createTableOptions",
        value: function createTableOptions(compItem) {
          var me = this;
          var option = {};
          var finalObj = [];

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            var tableVal = "";
            var str = "";

            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                str = str + val[each.label] + ",";
              });
            });

            str = str.substring(0, str.length - 1);
            tableVal = "[" + str + "]";
            me.monParams[compItem.key] = tableVal;
            option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
          }

          finalObj.push(_defineProperty({
            "dep": me.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        }
      }, {
        key: "createTableSingleArgOptions",
        value: function createTableSingleArgOptions(compItem) {
          var me = this;
          var value = "";
          var option = {};
          var finalObj = [];

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            var rowVal = "";

            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              var colVal = "";

              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_VALUE_SEPARATOR"]]) {
                  colVal = colVal + each.args + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_VALUE_SEPARATOR"]] + val['ui'] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];
                } else {
                  colVal = colVal + val[each.label] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];
                }
              });

              rowVal = colVal.substring(0, colVal.length - 1);
              value = value + rowVal + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ROW_SEPERATOR"]];
            });

            value = value.substring(0, value.length - 1);
            me.monParams[compItem.key] = value;
            option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
            this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
          }

          finalObj.push(_defineProperty({
            "dep": this.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        }
      }, {
        key: "createFieldSetOptions",
        value: function createFieldSetOptions(compItem) {
          var me = this;
          var dep = [];
          var finalObj = [];
          var option = {};
          var dependentCompOption = ""; //If dependent component is present

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              me.updateConfMonitorArr(eachDepenComp);
              dep = me.getComponentData(eachDepenComp);

              if (!me.isSpecificTag) {
                // added for handling case for those tags whose value is nt returned in createComponentData() method.
                if (dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) dependentCompOption = dependentCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
              }
            });

            option[compItem.key] = dependentCompOption.trim();
          }

          finalObj.push(_defineProperty({
            "dep": this.deploymentOption
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
          return finalObj;
        }
      }, {
        key: "createOptionsForCmdDeployment",
        value: function createOptionsForCmdDeployment(formData, monData) {
          var me = this; // let val = '-t 1 '; // mandatory argument

          var newVal = ''; //added for new monitor args

          this.remoteServerName = formData.rS;

          if (formData.executeRemote) //if remote checkbox is enable then only below arguments should be added in options.
            {
              if (formData.host) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"]] = formData.host;
                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_HOST_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"], monData.type);
              }

              if (formData.port) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PORT_ARG"]] = formData.port.toString(); // for bug 110548

                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_PORT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PORT_ARG"], monData.type);
              }

              if (formData.user) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_USER_ARG"]] = formData.user;
                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_USER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_USER_ARG"], monData.type);
              }

              if (formData.auth == '0') // 0 for password and 1 for passphrase
                {
                  if (formData.pwd) {
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PWD_ARG"]] = formData.pwd;
                    newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_PORT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PWD_ARG"], monData.type);
                  }
                } else {
                if (formData.pubKey) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PUBLIC_KEY_ARG"]] = formData.pubKey;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PUBLIC_KEY_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PUBLIC_KEY_ARG"], monData.type);
                }

                if (formData.prvKey) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PRIVATE_KEY_ARG"]] = formData.prvKey;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PRIVATE_KEY_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PRIVATE_KEY_ARG"], monData.type);
                }

                if (formData.passphrase) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PASSPHRASE_ARG"]] = formData.passphrase;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PASSPHRASE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PASSPHRASE_ARG"], monData.type);
                }
              } //if proxy host is provided then, only other proxy arguments are added in options'


              if (formData.pHost) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_HOST_ARG"]] = formData.pHost;
                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_HOST_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_HOST_ARG"], monData.type);

                if (formData.pPort) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_PORT_ARG"]] = formData.pPort.toString(); // for bug 110548

                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_PORT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_PORT_ARG"], monData.type);
                }

                if (formData.pUser) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_USER_ARG"]] = formData.pUser;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_USER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_USER_ARG"], monData.type);
                }

                if (formData.proxyPwd) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_PWD_ARG"]] = formData.proxyPwd;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_PWD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PROXY_PWD_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }
              }
            }

          var tierName = formData.rT; //if Tier checkbox is checked at configuration time then add -T in options
          // if (this.rTFlag) // if 'Tier' checkbox is checked.

          if (this.rTFlag) // if 'Tier' checkbox is checked.
            {
              /**
              * if tier is to be shown in Hierarchy i.e. -T must be added.
              * case 1: If Agent tier then add ${Tier}
              * case 2: If remote tier is selected from the tierlist then add that tier value
              * case 3: If custom tier is added then custom tier value should be shown in UI.
              **/
              var remoteTierValue = "";

              if (formData.executeRemote && formData.rT) // remote tier case
                {
                  if (formData.rT == '_at') // if agent tier is selected from tierList
                    {
                      remoteTierValue = "${Tier}";
                      tierName = '_at';
                    } else if (formData.rT == 'ct') // for custom tier type
                    {
                      remoteTierValue = formData.cT;
                      tierName = 'ct';
                    } else {
                    remoteTierValue = formData.rT;
                  }

                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_TIER_ARG"]] = remoteTierValue;
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_TIER_ARG"], monData.type);

                  if (tierName == 'ct') {
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"]] = formData.cT;
                    newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"], monData.type);
                  } else {
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"]] = tierName;
                    newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"], monData.type);
                  }
                } else // in case of agent with no remote settings.
                {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"]] = "${Tier}";
                  newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TIER_ARG"] + " ${Tier}" + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
                }
            } //if Server checkbox is checked at configuration time then add -S in options
          // if (this.rSFlag) {


          if (this.rSFlag) {
            if (formData.executeRemote && this.remoteServerName && this.remoteServerName != '') {
              newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVER_ARG"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + this.remoteServerName + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
            }
          }

          if (formData.executeRemote) {
            if (formData.rS != 'ct') {
              // if (this.rSFlag && this.remoteServerName.trim() != formData.rS.trim()) {
              if (true && this.remoteServerName.trim() != formData.rS.trim()) {
                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + formData.rS + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
              } else {
                newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + this.remoteServerName + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
              }
            } else {
              newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + formData.rS + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
            }
          } else {
            // if (this.rSFlag)
            if (true) newVal = newVal + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVER_ARG"] + " ${Server}" + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
          }

          return newVal;
        }
      }, {
        key: "createOptionsForJMXDeployment",
        value: function createOptionsForJMXDeployment(formData, monData) {
          var me = this;
          var depOptions = ''; //dep-Options

          me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["IS_ENCRYPTED_PWD_ARG"]] = ""; // for bug 108519

          depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_IS_ENCRYPTED_PWD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["IS_ENCRYPTED_PWD_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);

          if (formData.instance) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_INSTANCE_ARG"]] = formData.instance;
            depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_VECTOR_PREFIX"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_INSTANCE_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
          }

          if (formData.agent) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["AGENT_TYPE"]] = formData.agent;
          }

          if (formData.agent === "CMON") {
            //to allow deb options only in case of CMON(Machine Agent)
            if (formData.jmxConn === "setting") {
              if (formData.host) {
                var isReplaceOption = formData.host.startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPT_SEPARATOR"]);

                if (!isReplaceOption) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_HOST_ARG"]] = formData.host;
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_HOST_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                } else me.replacementOption[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_HOST_ARG"]] = _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + formData.host;
              }

              if (formData.port) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PORT_ARG"]] = formData.port.toString(); // for bug 110548

                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PORT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PORT_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              }

              if (formData.user) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_USER_ARG"]] = formData.user;
                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_USER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_USER_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              }

              if (formData.pwd) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PWD_ARG"]] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"] + formData.pwd + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"];
                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PWD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_PWD_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              }

              if (formData.connURL) {
                var connURL = "";
                if (formData.connURL == "Other") connURL = formData.otherConn;else connURL = formData.connURL;
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_URL_ARG"]] = connURL;
                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_JMX_CONNECTION_URL_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_URL_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              }

              if (formData.tsf) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_ARG"]] = formData.tsf;
                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);

                if (formData.tsp) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_PASSWORD_ARG"]] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"] + formData.tsp + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"];
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_PASSWORD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_PASSWORD_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }

                if (formData.tst) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"]] = formData.tst;
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }

                if (formData.ksf) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_FILE_ARG"]] = formData.ksf;
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_FILE_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }

                if (formData.ksp) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_PASSWORD_ARG"]] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"] + formData.ksp + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"];
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_PASSWORD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_PASSWORD_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }

                if (formData.sslEnable) {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_IS_TWO_WAY_SSL"]] = formData.sslEnable;
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TWO_SSL_ENABLE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_IS_TWO_WAY_SSL"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }
              }
            } else {
              if (formData.jmxConnPID === "procId" && formData.pid) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_PID_ARG"]] = formData.pid.toString(); // for bug 110548;

                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PID_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_PID_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              } else if (formData.jmxConnPID === "pidFile" && formData.pidFile) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_PID_FILE_ARG"]] = formData.pidFile;
                depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PID_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_PID_FILE_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
              } else {
                if (formData.adv.oP.length != 0) {
                  var searchPatternArr = [];
                  var count = 0;
                  formData.adv.oP.map(function (each) {
                    var depOptionObj = {};
                    var str = "";
                    str = str + each.pattern;
                    count++;
                    depOptionObj[count] = str;
                    searchPatternArr.push(depOptionObj);
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_CONNECTOR_SEARCH_PATTERN_ARG"]] = searchPatternArr;
                  });
                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_CONNECTOR_SEARCH_PATTERN_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_OCCURENCE_COUNT_ARG"]] = formData.occCount.toString(); // forbug 110548;

                  depOptions = depOptions + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_OCCURENCE_COUNT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_OCCURENCE_COUNT_ARG"], monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]);
                }
              }
            }
          }

          return depOptions;
        }
      }, {
        key: "generateOption",
        value: function generateOption(args, type) {
          var option = _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + type + args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];
          return option;
        } //adding custom monitors option deployment options .added on 9th april

      }, {
        key: "addCustomMonitorData",
        value: function addCustomMonitorData(customData) {
          var me = this;
          customData.map(function (each) {
            if (each['opData']) {
              var otherParam = "";
              each['opData'].map(function (value) {
                otherParam = otherParam + "$" + value['pattern'] + "=" + value['upVal'] + ";";
              });
              otherParam = otherParam.substring(0, otherParam.length - 1);
              me.options[each.key] = "--connParams " + otherParam;
            }
          });
        } //creating other paramters for custom monitors added on 9th april

      }, {
        key: "createOtherParams",
        value: function createOtherParams(compData, key, paramType) {
          var cmdObj = [];

          if (compData['op']) {
            cmdObj['key'] = key;
            cmdObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] = paramType;
            cmdObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]] = compData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]];
            cmdObj['op'] = Object.entries(compData['op']);
            cmdObj['rows'] = cmdObj['op'].length;
            var arr = [];
            var index = 0;
            cmdObj['op'].map(function (each) {
              var obj = {};
              obj["pattern"] = each[0];
              obj["upVal"] = each[1];
              obj["id"] = index;
              index++;
              arr.push(obj);
            });
            cmdObj['opData'] = arr;
          }

          return cmdObj;
        } //for db monitor options

      }, {
        key: "createDBConnectionOptions",
        value: function createDBConnectionOptions(formData, monData, opData) {
          var me = this;
          var newOpt = "";

          if (formData.host) {
            var isReplaceOption = formData.host.startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPT_SEPARATOR"]);

            if (!isReplaceOption) {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"]] = formData.host;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"], monData.type);
            } else me.replacementOption[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_HOST_ARG"]] = _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + formData.host;
          }

          if (formData.port) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PORT_ARG"]] = formData.port.toString(); // for 110548

            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PORT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PORT_ARG"], monData.type);
          }

          if (formData.user) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_USER_ARG"]] = formData.user;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_USER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_USER_ARG"], monData.type);
          }

          if (formData.pwd) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PWD_ARG"]] = formData.pwd;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PWD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_PWD_ARG"], monData.type);
          }

          if (formData.dbName) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_NAME_ARG"]] = formData.dbName;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_DB_NAME_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_NAME_ARG"], monData.type);
          }

          me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_AUTH_TYPE_ARG"]] = formData.auth;
          newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_AUTH_TYPE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_AUTH_TYPE_ARG"], monData.type);

          if (formData.sid) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SID_ARG"]] = formData.sid;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SID_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SID_ARG"], monData.type);
          }

          if (formData.tsf) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_ARG"]] = formData.tsf;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_ARG"], monData.type);

            if (formData.tsp) {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_PASSWORD_ARG"]] = formData.tsp;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_PASSWORD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_PASSWORD_ARG"], monData.type);
            }

            if (formData.ksf) {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_FILE_ARG"]] = formData.ksf;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_FILE_ARG"], monData.type);
            }

            if (formData.ksp) {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_PASSWORD_ARG"]] = formData.ksp;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_KEY_STORE_PASSWORD_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_KEY_STORE_PASSWORD_ARG"], monData.type);
            }
          }

          if (formData.sslType != "" && formData.sslType != "Others") {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"]] = formData.sslType;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"], monData.type);
          } else if (formData.sslType == "Others") {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"]] = formData.sslType;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JMX_TRUST_STORE_FILE_TYPE_ARG"], monData.type);
          }

          if (formData.adv.delVecCount) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_VECTOR_PERSIST_COUNT_ARG"]] = formData.adv.delVecCount;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_VECTOR_PERSIST_COUNT_ARG"], monData.type);
          }

          if (formData.adv.rCount) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_RETRY_ARG"]] = formData.adv.rCount;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_RETRY_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_RETRY_ARG"], monData.type);
          }

          if (formData.adv.interval) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_INTERVAL_ARG"]] = formData.adv.interval;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_INTERVAL_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_INTERVAL_ARG"], monData.type);
          }

          if (formData.adv.dbCon) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_IS_REFRESH_ARG"]] = formData.adv.dbCon;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_IS_REFRESH_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_IS_REFRESH_ARG"], monData.type);
          }

          if (formData.adv.jFile) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SERVICE_ACCOUNT_FILE_ARG"]] = formData.adv.jFile;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SERVICE_ACCOUNT_FILE_ARG"], monData.type);
          }

          if (formData.adv.tFile) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG"]] = formData.adv.tFile;
            newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG"], monData.type);
          }

          if (formData.classPath) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CLASS_PATH"]] = formData.classPath;
          }

          if (formData.javaHome) {
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["JAVA_HOME"]] = formData.javaHome;
          }

          if (opData && opData.length != 0) {
            var dbParam = this.createDBParams(opData);
            me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.monName + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CONN_PARAMS"]] = dbParam;
          }

          return newOpt;
        }
      }, {
        key: "createUseAsHierarchyOptions",
        value: function createUseAsHierarchyOptions(formData, monData) {
          var me = this;
          var tierName = formData.rT;
          var newOpt = ''; // for new option
          //if Tier checkbox is checked at configuration time then add -T in options

          if (this.rTFlag) // if 'Tier' checkbox is checked.
            {
              /**
              * if tier is to be shown in Hierarchy i.e. -T must be added.
              * case 1: If Agent tier then add ${Tier}
              * case 2: If remote tier is selected from the tierlist then add that tier value
              * case 3: If custom tier is added then custom tier value should be shown in UI.
              **/
              var remoteTierValue = "";

              if (formData.executeRemote && formData.rT && formData.rT != '') // remote tier case
                {
                  if (formData.rT == '_at') {
                    // if agent tier is selected from tierList
                    remoteTierValue = "${Tier}";
                    tierName = '_at';
                  } else if (formData.rT == 'ct') // for custom tier type
                    {
                      remoteTierValue = formData.cT;
                      tierName = 'ct';
                    } else {
                    remoteTierValue = formData.rT;
                  }

                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_TIER_ARG"]] = remoteTierValue;
                  newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_TIER_ARG"], monData.type);

                  if (tierName == 'ct') {
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"]] = formData.cT;
                    newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"], monData.type);
                  } else {
                    me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"]] = tierName;
                    newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_TIER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_TIER_ARG"], monData.type);
                  }
                } else // in case of agent with no remote settings.
                {
                  me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_TIER_ARG"]] = "${Tier}";
                  newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_TIER_ARG"] + "${Tier} ";
                }
            } //if Server checkbox is checked at configuration time then add -S in options


          if (this.rSFlag) {
            if (formData.executeRemote && this.remoteServerName && this.remoteServerName != '') {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_SERVER_ARG"]] = this.remoteServerName;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_SERVER_ARG"], monData.type);
            }
          }

          if (formData.executeRemote) {
            if (formData.rS != 'ct') {
              if (this.rSFlag && this.remoteServerName.trim() != formData.rS.trim()) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_SERVER_ARG"]] = formData.rS;
                newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_SERVER_ARG"], monData.type);
              } else {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_SERVER_ARG"]] = this.remoteServerName;
                newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_SERVER_ARG"], monData.type);
              }
            } else {
              me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"]] = formData.rS;
              newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_REMOTE_SERVER_ARG"] + me.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"], monData.type);
            }
          } else // in case of agent with no remote settings.
            {
              var dbHostIP = "";
              dbHostIP = _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOCAL_HOST"] + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["SPACE_SEPARATOR"];

              if (this.rSFlag) {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"]] = "${Server}";
                newOpt = newOpt + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_SERVER_ARG"] + " ${Server} " + dbHostIP;
              } else {
                me.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData.type + _constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CMD_REMOTE_HOST_ARG"]] = formData.host;
                newOpt = newOpt + dbHostIP;
              }
            }

          return newOpt;
        }
      }, {
        key: "createDBParams",
        value: function createDBParams(options) {
          var dbParam = "";

          for (var i = 0; i < options.length; i++) {
            dbParam = dbParam + "$" + options[i].pattern + "=" + options[i].upVal + ";";
          }

          return dbParam.substring(0, dbParam.length - 1);
        } // Method called for creating options and deployment option in case of dependentComp Monitors

      }, {
        key: "createSpecificMonOptions",
        value: function createSpecificMonOptions(compItem, monName, monGrp) {
          var _this5 = this;

          var specificObj = [];
          compItem.map(function (eachComp) {
            var key = _this5.setAppCPJHInstance(eachComp.type, monGrp);

            var value = eachComp.value; // holds the current textfield value

            eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]] = monName;

            if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OTHER_TYPE"] && value) {
              _this5.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = value;
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"] && value) {
              _this5.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = value;
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] && value) {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]] != "") _this5.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value;else _this5.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = value;
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FIELDSETLABEL_TYPE"]) {
              if (eachComp.args != "" && eachComp.value != "") {
                _this5.getFieldSetInlineOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]); // to handle case where fieldset has own value such as accesslog

              } else {
                _this5.createSpecificMonOptions(eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
              }
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]) {
              _this5.createSpecificMonOptions(eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
              specificObj = _this5.getDropdownOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
              _this5.getRadioButtonOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_TYPE"]) {
              specificObj = _this5.getTableInlineOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
              specificObj = _this5.getCheckBoxOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTFIELD_TYPE"]) {
              specificObj = _this5.getTextFieldOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTAREA_TYPE"]) {
              specificObj = _this5.getTextAreaOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (eachComp.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLESINGLEARG_TYPE"]) {
              specificObj = _this5.getTableSingleArgOptions(eachComp, eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]]);
            } else if (value) // add when is not empty
              {
                _this5.deploymentOption[eachComp.key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = eachComp.args + " " + value;
              }
          });
          return specificObj;
        }
      }, {
        key: "toggleFilters",
        value: function toggleFilters() {
          var me = this;
          me.isEnabledColumnFilter = !me.isEnabledColumnFilter;

          if (me.isEnabledColumnFilter === true) {
            me.filterTitle = 'Disable Filters';
          } else {
            me.filterTitle = 'Enable Filters';
          }
        }
      }, {
        key: "onTierChange",
        value: function onTierChange(data) {
          var _this6 = this;

          var me = this;
          var tier = data.tier;
          if (data.tier === "ALLtier") tier = "All Tiers";
          data.actualServer = "";
          data.exServer = [];
          data.server = [];
          data.exTier = [];
          var data1 = {};
          data1["label"] = "All Tiers";
          data1["value"] = "ALLtier";
          me.tierHeadersList.unshift(data1);
          var tierInfo = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](me.tierHeadersList, function (each) {
            return each['label'] == tier;
          });
          me.loading = true;
          me.monitorupdownService.getServerList(tierInfo.value, tierInfo.label).subscribe(function (res) {
            if (res.status) {
              me.loading = false;
              me.cd.detectChanges();
              var uiDName = [];
              var sName = [];
              res['data'] = _this6.monitorupdownService.sort_by_key(res['data'], "sName");
              res['data'].map(function (each) {
                if (each['autoScale'] != 8) {
                  // for bug 140800
                  sName.push(each['sName']);
                  uiDName.push(each['uiDName']);
                }
              }); //making separate list for Exclude server as Custom Server is not required in that list

              _this6.oldServerList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(uiDName, sName);
              if (_this6.oldServerList && _this6.oldServerList.length > 0) data['exServerList'] = _toConsumableArray(_this6.oldServerList); //added to support custom specific server BugId :124053

              sName.push(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]);
              uiDName.push(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]); // for bug 110920 we have added serverList per row so that unique serverlist is maintained.

              data.serverList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(uiDName, sName);
            } else {
              _this6.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: res.error
              });

              _this6.loading = false;
            }
          });

          if (data.tier === "ALLtier") {
            me.exTierList = me.tierList.filter(function (val) {
              return val.value != "ALLtier";
            });
          }
        }
      }, {
        key: "addServerFilter",
        value: function addServerFilter() {
          if (!this.validateTierServer(this.serverFilter)) {
            return false;
          }

          this.serverFilter.push({
            id: this.serverFilter.length,
            tier: "",
            actualServer: "",
            server: [],
            exServer: [],
            exTier: [],
            customServer: ""
          });
        }
      }, {
        key: "onServerChange",
        value: function onServerChange(tierServerInfo) {
          // for bug 110920
          if (tierServerInfo.actualServer === -1) // tierServerInfo['exServerList'] = this.oldServerList; //for bug 144149
            tierServerInfo['customServer'] = "";
        }
      }, {
        key: "onSpecifiedServerChange",
        value: function onSpecifiedServerChange(data) {
          if (data['server'].indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]) == -1) {
            data.customServer = "";
          }
        }
      }, {
        key: "validateRequired",
        value: function validateRequired() {
          var me = this;
          var optData = "";
          me.formData.map(function (each) {
            if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]]) {
              var obj = me.specificMonMap.get(each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]]);
              obj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]] = each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]];
              me.specificMonMap.set(each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], obj);

              if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                me.createSpecificMonOptions(each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]]);
              }
            }

            if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"] && each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
              me.getComponentData(each);
            }
          });
          var specificMonValArr = [];

          var _iterator2 = _createForOfIteratorHelper(this.specificMonMap.entries()),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var entry = _step2.value;
              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CMD_TYPE"]) optData = me.createOptionsForCmdDeployment(me.cmdData, entry[1]);

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DB_TYPE"]) {
                for (var i = 0; i < this.formData.length; i++) {
                  //in case of other parameter(opData) table data is present
                  if (this.formData[i]['opData'] && entry[1]['monName'] == this.formData[i]['inMonName']) {
                    var dbConnObj = me.createDBConnectionOptions(me.dbData, entry[1], this.formData[i]['opData']); //let useHierObj = me.createUseAsHierarchyOptions(me.dbData, entry[1]);

                    optData = dbConnObj;
                  } //in case of other parameter(opData) table data is not present
                  else {
                    var _dbConnObj = me.createDBConnectionOptions(me.dbData, entry[1]); //let useHierObj = me.createUseAsHierarchyOptions(me.dbData, entry[1]);


                    optData = _dbConnObj;
                  }
                }
              }

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JMX_TYPE"]) {
                specificMonValArr.push(entry[1]);
                optData = me.createOptionsForJMXDeployment(me.jmxData, entry[1]);
              }

              me.deploymentOption[entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]]] = optData;

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"]) {
                specificMonValArr.push(entry[1]);
                optData = me.createOptionsForRestMonitor(entry[1]['restData']);
                entry[1]['option'] = optData;
              }

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"]) {
                specificMonValArr.push(entry[1]);
                optData = me.createOptionsForLogMonitor(entry[1]['logPatternData']);
                entry[1]['option'] = optData;
              }

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"]) {
                specificMonValArr.push(entry[1]);
                optData = me.createOptionsForLogDataMonitor(entry[1]['logData']);
                entry[1]['option'] = optData;
              }

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_CATEGORY"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"]) {
                specificMonValArr.push(entry[1]);

                if (!lodash__WEBPACK_IMPORTED_MODULE_3__["isEmpty"](entry[1]['snmpData'])) {
                  optData = me.createOptionsForCustomSnmpMonitor(entry[1]['snmpData']);
                  entry[1]['snmpOpt'] = optData;
                }
              }
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }

          if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"] || this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"] || this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_GENERIC_REST_TECH_NAME"]) {
            this.logMonDeploymentSubscription = this.monitorupdownService.$saveMonConf.subscribe(function (res) {
              if (res) {
                me.validateRequired();
              }
            });
          }

          me.setRequiredPropertyForCustMon(specificMonValArr); // added for handling required in case of jmx monitor

          me.setRequiredPropForEnabledMon();
        }
      }, {
        key: "setRequiredPropertyForCustMon",
        value: function setRequiredPropertyForCustMon(specificMonVal) {
          if (this.logMonDeploymentSubscription != null) this.logMonDeploymentSubscription.unsubscribe();
          var arr = [];

          for (var i = 0; i < specificMonVal.length; i++) {
            if (specificMonVal[i].enabled) {
              arr.push(specificMonVal[i].enabled);
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_GENERIC_REST_TECH_NAME"]) specificMonVal[i]['restData']['setRequired'] = true;
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"]) specificMonVal[i]['logPatternData']['setRequired'] = true;
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"]) specificMonVal[i]['logData']['setRequired'] = true;
            } else {
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_GENERIC_REST_TECH_NAME"]) specificMonVal[i]['restData']['setRequired'] = false;
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"]) specificMonVal[i]['logPatternData']['setRequired'] = false;
              if (this.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"]) specificMonVal[i]['logData']['setRequired'] = false;
            }

            if (arr.length > 0) {
              this.monitorupdownService.validateAtSaveForRequiredProp(true);
            } else {
              this.monitorupdownService.validateAtSaveForRequiredProp(false);
            }
          }
        } //Method called to show/hide other arguments on basis of toggle

      }, {
        key: "toggle",
        value: function toggle(node) {
          node.isShow = !node.isShow; // for bug 111238

          node['dependentComp'].map(function (eachItem) {
            if (eachItem['type'] === "other" || eachItem['type'] === "frequency") {
              eachItem['validationObj']['hidden'] = node.isShow;
            }
          });
        }
      }, {
        key: "handleData",
        value: function handleData(useGlobal) {
          var _this7 = this;

          var me = this;

          if (useGlobal.checked) {
            this.loading = true;
            this.monitorupdownService.useGloablConfig("-1", "-1", this.techName).subscribe(function (res) {
              me.formData = [];
              me.monCategory = [];
              me.specificMonMap = new Map(); // me.getDrivenJsonDataNew(res['cmpInfo']);

              me.renderUI(res['cmpInfo']);
              me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel

              _this7.loading = false;
              me.cd.detectChanges();

              if (res.helpURL == null) {
                _this7.showHideHelp = false;
              } else {
                _this7.showHideHelp = true;
                _this7.helpURL = res['helpURL'];
              }
            });
          } else if (me.operation === "update") {
            this.loading = true;
            this.monitorupdownService.useGloablConfig(me.gMonId, "-1", this.techName).subscribe(function (res) {
              me.formData = [];
              me.monCategory = [];
              me.specificMonMap = new Map();
              me.renderUI(res['cmpInfo']);
              me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel

              _this7.loading = false;
              me.cd.detectChanges();

              if (res.helpURL == null) {
                _this7.showHideHelp = false;
              } else {
                _this7.showHideHelp = true;
                _this7.helpURL = res['helpURL'];
              }
            });
          }
        } //Method to check it is special tag

      }, {
        key: "isSpecificTag",
        value: function isSpecificTag(eachDepenComp) {
          if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"] && eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"]) {
            return true;
          } else return false;
        }
      }, {
        key: "getTierServerInfo",
        value: function getTierServerInfo() {
          var _this8 = this;

          var me = this;
          var tierServerInfo = []; //used for filling tier/server and table data

          var tSObj = {};
          me.serverFilter.map(function (each) {
            var servers = "";
            var tierStr = "";

            if (each['tier'] == "") {
              _this8.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: "Please select tier."
              });

              return;
            }

            tSObj['tier'] = each['tier'];

            if (each['tier'] == "All") {
              tSObj['server'] = "All";
              each['exTier'].map(function (tier) {
                tierStr = tierStr + tier + ",";
              });
              tierStr = tierStr.substring(0, tierStr.length - 1);
              tSObj['exTier'] = tierStr;
              tSObj['server'] = "All Servers";
            } else {
              if (each['actualServer'] == -1) {
                tSObj['server'] = "All";
                each['exServer'].map(function (server) {
                  servers = servers + server + ",";
                });
                servers = servers.substring(0, servers.length - 1);
                tSObj['exServer'] = servers;
              } else if (each['actualServer'] == -2) {
                tSObj['server'] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_ANY"];
              } else {
                servers = servers.substring(0, servers.length - 1);
                tSObj['server'] = servers;
              }
            }

            tierServerInfo.push(tSObj);
          });
          me.specifiedClusterList.map(function (each) {
            tSObj['cluster'] = each['cluster'];
            tierServerInfo.push(tSObj);
          });
        }
      }, {
        key: "validateTierServerInfo",
        value: function validateTierServerInfo(tierServerInfo) {
          var _this9 = this;

          tierServerInfo.map(function (each) {
            if (!each.tier) {
              _this9.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: "Please select tier."
              });

              return false;
            }

            if (each.server.length != 0) {
              _this9.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: "Please select server."
              });

              return false;
            }
          });
          return true;
        } // Method called on checkbox change to handle enable/disable of dependent fields.

      }, {
        key: "addDisableValidationForCheckbox",
        value: function addDisableValidationForCheckbox(node) {
          var me = this;

          if (node[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
            node.dependentComp.forEach(function (value) {
              if (node.value) {
                if (value.validationObj) {
                  value.validationObj.disabled = false;
                  me.disableCheckboxData(value, value.validationObj.disabled);
                }
              } else {
                if (value.validationObj) {
                  value.validationObj.disabled = true;
                  me.disableCheckboxData(value, value.validationObj.disabled);
                }
              }
            });
          }
        } //adding disble validation for dependent components of checkbox on click of checkbox

      }, {
        key: "disableCheckboxData",
        value: function disableCheckboxData(compData, isDisabled) {
          if (compData.validationObj) {
            compData.validationObj.disabled = isDisabled;
          }
        } //Method added for handling enable/disable for checkbox dependent component.

      }, {
        key: "addDisableProperty",
        value: function addDisableProperty(node) {
          var me = this;

          if (node.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
            // commented for disabling all dependent comp data instead of only checkbox used in accesslog monitor - 20th may
            if (node.dependentComp != null) {
              node.dependentComp.forEach(function (v) {
                var nodeBoolValue = node.value == 'true';

                if (nodeBoolValue) {
                  if (v.validationObj) {
                    v.validationObj.disabled = false;

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                    }
                  }
                } else {
                  if (v.validationObj) {
                    v.validationObj.disabled = true;

                    if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      me.addDepCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], v.validationObj.disabled);
                    }
                  }
                }
              });
            }
          }
        } //Method called on cancel click in edit mode

      }, {
        key: "resetToAdd",
        value: function resetToAdd() {
          this.clearFormFields();
          this.AddEditLabel = "Add";
        } // Method called to clear input component fields.

      }, {
        key: "clearFormFields",
        value: function clearFormFields() {
          var _this0 = this;

          var me = this;
          me.supportedTabArray = []; //clearing this array for fresh data

          this.AddEditLabel = "Add";
          this.loading = true;
          this.formData = [];
          this.specificMonMap = new Map();
          this.monCategory = [];
          this.gMonId = "-1";
          this.objectId = "-1";
          this.operation = "add";
          this.reConfId = "-1";
          this.index = 0;
          this.selectedClusterName = [];
          this.selectedClusterOpt = "";
          this.agentTrueArray = [];
          this.agentFalseArray = [];
          this.customRestDataArr = [];
          this.customLogPatternDataArr = [];
          this.customLogDataArr = [];
          this.monitorupdownService.getMonitorConfigurationAtEdit(this.techName).subscribe(function (res) {
            _this0.renderUI(res['cmpInfo']);

            me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel
            //resetting tab to first tab selected after add is completed if index is 0 that means it has to be the first tab

            _this0.jmxData = new _containers_jmx_data__WEBPACK_IMPORTED_MODULE_8__["JmxData"]();

            if (me.supportedTabArray) {
              _this0.jmxData.host = "";
              me.supportedTabArray.map(function (each) {
                if (each.index == 0) each.selected = true;else {
                  if (me.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLOUD_FOUNDARY_TECH_NAME"]) each.selected = true;else each.selected = false;
                }
              });
            }

            if (res.helpURL == null) {
              _this0.showHideHelp = false;
            } else {
              _this0.showHideHelp = true;
              _this0.helpURL = res['helpURL'];
            }

            _this0.cd.detectChanges();
          });
          this.cmdData = new _containers_cmd_data__WEBPACK_IMPORTED_MODULE_6__["CmdData"]();
          this.dbData = new _containers_db_data__WEBPACK_IMPORTED_MODULE_7__["DbData"]();

          for (var i = 0; i < this.serverFilter.length; i++) {
            this.serverFilter[i]['tier'] = "";
            this.serverFilter[i]['server'] = [];
            this.serverFilter[i]['id'] = 0;
            this.serverFilter[i]['actualServer'] = "";
            this.serverFilter[i]['exTier'] = [];
            this.serverFilter[i]['exServer'] = [];
            this.serverFilter[i]['serverList'] = [];
            this.serverFilter[i]['exServerList'] = [];
            this.serverFilter[i]['customServer'] = "";
          }

          if (this.serverFilter.length > 1) {
            this.serverFilter = this.serverFilter.slice(0, 1);
          }

          this.monitorupdownService.validateAtSaveForRequiredProp(true);
          this.monParams = {};
          this.deploymentOption = {};
          this.replacementOption = {}; //clear replacement option obj after save.

          this.monGrpMap = [];
          this.isUseGlobal = false; // reset isUseGlobal flag to default false.

          this.monGrpStateArr = [];
          this.opVal = [];
          this.jmxFlag = false;
          if (me.techName === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLOUD_FOUNDARY_TECH_NAME"]) this.selectedSupportedTabIndex = 2;else this.selectedSupportedTabIndex = 0; // to reset tier/server part from app name

          if (this.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) this.getClusterList();
        } //adding disble validation for dependent components

      }, {
        key: "validateRequiredCompValidation",
        value: function validateRequiredCompValidation(compData, isRequired) {
          var me = this;
          compData.map(function (v, k) {
            if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OTHER_TYPE"] && v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
              if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] !== _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) {
                if (v.validationObj) {
                  if (v['validationObj']['defRequired']) {
                    v['validationObj']['required'] = isRequired;
                  }

                  if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                    me.validateRequiredCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], isRequired);
                  }

                  if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) // for bug 108891
                    {
                      v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].map(function (eachDropDownItem) {
                        if (eachDropDownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                          me.validateRequiredCompValidation(eachDropDownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], isRequired);
                        }
                      });
                    }
                }
              } else {
                if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]]) {
                  me.validateRequiredCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]], isRequired);
                }

                if (v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) {
                  me.validateRequiredCompValidation(v[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]], isRequired);
                }
              }
            }
          });
        }
      }, {
        key: "createCheckBoxDepOptions",
        value: function createCheckBoxDepOptions(compItem, monName) {
          var dep = [];
          var me = this;
          var depCompOption = "";
          var value = compItem.value; // holds the current checkbox value

          if (value) {
            if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
                if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                  if (!eachDepenComp['args']) {
                    eachDepenComp['args'] = compItem.args;
                  }

                  me.createSpecificMonOptions(compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], monName); // depCompOption = depCompOption + eachDepenComp['args'] + " " +  eachDepenComp['value'] + " ";
                }
              });
            } else {
              depCompOption = compItem.args; // --isOverall
            }
          }

          me.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = depCompOption;
        } // ------------------------- NEW METHOD IMPLEMENTATION --------------------------
        // Method for creating deployment options for textfield component.

      }, {
        key: "getTextFieldOptions",
        value: function getTextFieldOptions(compItem, monName) {
          var option = {};
          var finalObj = [];
          var value = compItem.value; // holds the current textfield value

          var isReplaceOption;

          if (!isNaN(value)) {
            //converting decimal number to string value
            value = String(value);
          }

          if (value) isReplaceOption = value.startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPT_SEPARATOR"]);
          this.updateConfMonitorArr(compItem);

          if (value && value != "null") // add when value is not empty
            {
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INPUT_TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE_PASSWORD"]) // case when we get input type as "password" we skip that field and do not show in the argument data(i.e in gui) but send it to the server.
                {
                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) {
                    if (value.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]) == -1) value = encodeURIComponent(value);else value = this.encodeParameterizedValue(value); // encode value if parameterized field is present. for bug 121700
                  }

                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") //this is used for adding at start end doubleQuotesVal
                    {
                      //Bug Id 154017
                      value = value.trim();
                      value = "\"" + value + "\"";
                    }
                } else // case when inputType is password and we add that field value to the "options"
                {
                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PWD_ENCRYPT_VAL"]]) {
                    value = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["PASSWORD_SEPERATOR"];
                  }
                }

              if (monName) {
                var key = compItem.key;
                this.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = compItem.args + " " + value;
                finalObj.push({
                  "val": compItem.args + " " + value
                });
                return finalObj;
              } else {
                if (!isReplaceOption) {
                  option[compItem.key] = compItem.args + "  ${" + compItem.key + "}"; // instance: "--vecPrefix  ${instance}

                  this.monParams[compItem.key] = value;
                  this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                  finalObj.push(_defineProperty({
                    "dep": this.deploymentOption
                  }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
                  return finalObj;
                } else {
                  this.replacementOption[compItem.key] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                }
              }
            }
        }
        /**
         Added for TextArea Support for Bug Id 123386
         This feature is implemented in KubePrometheus.json
        */

      }, {
        key: "getTextAreaOptions",
        value: function getTextAreaOptions(compItem, monName) {
          var option = {};
          var finalObj = [];
          var value = compItem.value; // holds the current textArea value

          var isReplaceOption;

          if (!isNaN(value)) {
            //converting decimal number to string value
            value = String(value);
          }

          if (value) isReplaceOption = value.startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPT_SEPARATOR"]);
          this.updateConfMonitorArr(compItem);

          if (value && value != "null") // add when value is not empty
            {
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) {
                if (value.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]) == -1) value = encodeURIComponent(value);else value = this.encodeParameterizedValue(value); // encode value if parameterized field is present. for bug 121700
              }

              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") //this is used for adding at start end doubleQuotesVal
                value = "\"" + value + "\"";

              if (monName) {
                var key = compItem.key;
                this.deploymentOption[key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = compItem.args + " " + value;
                finalObj.push({
                  "val": compItem.args + " " + value
                });
                return finalObj;
              } else {
                if (!isReplaceOption) {
                  option[compItem.key] = compItem.args + "  ${" + compItem.key + "}"; // instance: "--vecPrefix  ${instance}

                  this.monParams[compItem.key] = value;
                  this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                  finalObj.push(_defineProperty({
                    "dep": this.deploymentOption
                  }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
                  return finalObj;
                } else {
                  this.replacementOption[compItem.key] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                }
              }
            }
        } // Method for creating deployment options for RadioButton component.

      }, {
        key: "getRadioButtonOptions",
        value: function getRadioButtonOptions(compItem, monName) {
          var dep = [];
          var value = compItem.value; // holds the current textfield value

          var selectedObj = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](compItem['items'], function (each) {
            return each.value == compItem.value;
          });
          var dependentCompOption = "";
          var specificMonOption = "";
          var that = this;
          this.updateConfMonitorArr(compItem); //If dependent component is present

          if (selectedObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            selectedObj[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              var arr = [];
              arr.push(eachDepenComp);

              if (eachDepenComp.type && !eachDepenComp.args) {
                eachDepenComp.args = selectedObj.args;
              }

              if (monName) {
                var obj = [];
                obj = that.createSpecificMonOptions(arr, monName);

                if (obj && obj.length > 0) {
                  specificMonOption = specificMonOption + obj[0]['val'] + " ";
                }
              } else {
                if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                  dep = that.getComponentData(eachDepenComp);

                  if (eachDepenComp.type && dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) //handling when type is blank
                    {
                      dependentCompOption = dependentCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    }
                }
              }
            });
          } else // if there is only radiobutton
            {
              if (monName) {
                if (selectedObj.args === selectedObj.value) {
                  specificMonOption = selectedObj.args;
                } else specificMonOption = selectedObj.args + " " + selectedObj.value;

                this.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = specificMonOption.trim();
              } else {
                this.monParams[selectedObj.key] = value; //  instance : value;
                //Below check is added for endeca.json radio where none is present in first item so that it does add ${} in depOptions

                if (selectedObj.type && selectedObj.key && selectedObj.args) dependentCompOption = selectedObj.args + "  ${" + selectedObj.key + "}";
              }
            }

          if (monName) {
            this.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = specificMonOption.trim();
          } else {
            if (dependentCompOption) //Below check is added for endeca.json radio where none is present in first item so that it does add ${} in depOptions
              this.deploymentOption[compItem.key] = dependentCompOption;
          }
        } // Method for creating deployment options for Checkbox component

      }, {
        key: "getCheckBoxOptions",
        value: function getCheckBoxOptions(compItem, monName) {
          var dep = [];
          var option = {};
          var finalObj = [];
          var that = this;
          var depCompOption = "";
          var value = compItem.value; // holds the current checkbox value

          if (value === "false") // for bug 108633
            value = false;
          this.updateConfMonitorArr(compItem);

          if (value) {
            if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
                if (eachDepenComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NEWLINE"]) {
                  if (!eachDepenComp['args']) {
                    eachDepenComp['args'] = compItem.args;
                  }

                  if (monName) {
                    var arr = [];
                    arr.push(eachDepenComp);
                    var obj = [];
                    obj = that.createSpecificMonOptions(arr, monName);

                    if (obj && obj.length > 0) {
                      depCompOption = depCompOption + obj[0]['val'] + " ";
                    }
                  } else {
                    option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                    dep = that.getComponentData(eachDepenComp);

                    if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) {
                      depCompOption = depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
                    }
                  }
                }
              });
            } else {
              if (monName) {
                depCompOption = compItem.args; // --isOverall
              } else {
                /**
                 * If checkbox is only present with no dep comp that means only argument has to send
                 * to db for save so replacing value with blnk.
                 */
                this.monParams[compItem.key] = "";
                depCompOption = compItem.args + "  ${" + compItem.key + "}";
              }
            }

            if (monName) {
              that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = depCompOption;
              finalObj.push({
                "val": depCompOption
              });
              return finalObj;
            } else {
              this.deploymentOption[compItem.key] = depCompOption;
              option[compItem.key] = compItem.args + "  ${" + compItem.key + "}"; // added for handling case in akmai rest based monitor.

              finalObj.push(_defineProperty({
                "dep": this.deploymentOption
              }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
              return finalObj;
            }
          }
        } // Method for creating deployment options for dropdown component

      }, {
        key: "getDropdownOptions",
        value: function getDropdownOptions(compItem, monName) {
          var dep = [];
          var finalObj = [];
          var option = {};
          var that = this;
          var value = compItem['value'];
          var parentDropDownArg = "";
          if (compItem['args']) // for bug 115678 issue 2 case
            parentDropDownArg = compItem['args'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value;
          var depCompOption = "";
          this.updateConfMonitorArr(compItem);

          compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].map(function (eachComp) {
            if (value == "") {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (each) {
                  if (compItem.args) // for 111348 - where dropdown is selected as none so it has no arg.To handled from being written in depOptions without args which break code in edit mode.
                    {
                      option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                      that.monParams[compItem.key] = each.value;
                    }
                });
              }
            } else if (value === eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]) {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (each) {
                  if (!each.args) {
                    each.args = compItem.args; //assigning dropdown argument to depcomp arg if it is blank
                  } //if parent dropdown arg is same as dependent item arg then we need not add parent arg in option.


                  if (each.args && compItem.args && compItem.args == each.args) parentDropDownArg = "";

                  if (monName) {
                    if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]) {
                      that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"] + "||" + each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + "||" + each.valObj + "||" + value.substring(2, value.length - 1); // added for bug 120961
                    } else if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"]) {
                      if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]] != "") that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] + "||" + each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + "||" + each.value;else that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] + "||" + each.value;
                    } else {
                      that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = parentDropDownArg + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + each.value;
                    }

                    finalObj.push({
                      "val": each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + each.value
                    });
                    return finalObj;
                  } else {
                    // for global case we need in dep-options
                    if (compItem.args) parentDropDownArg = compItem.args + "  ${" + compItem.key + "}";

                    if (each.args && compItem.args && compItem.args == each.args) {
                      parentDropDownArg = "";
                    }

                    dep = that.getComponentData(each);

                    if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) {
                      // Handling for dropdown dependent component when parent arg has multiple dependent component. - needed in SNMP Java monitor and websphere monitor
                      if (depCompOption.indexOf(parentDropDownArg) == -1) depCompOption = parentDropDownArg + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];else depCompOption = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
                    }

                    option[compItem.key] = depCompOption.trim();
                    if (parentDropDownArg) that.monParams[compItem.key] = value; // for handling case in cache tech
                  }
                });
              } else {
                if (monName) {
                  that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value;
                  finalObj.push({
                    "val": compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value
                  });
                  return finalObj;
                } else {
                  that.monParams[compItem.key] = value;
                  option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
                }
              }
            }
          });

          if (!monName) {
            finalObj.push(_defineProperty({
              "dep": that.deploymentOption
            }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
            return finalObj;
          }
        }
      }, {
        key: "getTableOptions",
        value: function getTableOptions(compItem, monName) {
          var that = this;
          var option = {};
          var finalObj = [];

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            var tableVal = "";
            var str = "";
            if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";

            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                if (each.type != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
                  var uiKeyVal = each.label;

                  if (each.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
                    uiKeyVal = "ui-" + each.label;
                  }

                  var value = val[uiKeyVal];
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) value = encodeURIComponent(value);
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") value = "'" + value + "'";
                  if (each.args) str = str + each.args + ":" + value + ",";else str = str + value + ",";
                }
              });
            });

            str = str.substring(0, str.length - 1);
            if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";
            tableVal = "[" + str.trim() + "]";

            if (monName) {
              that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + tableVal;
              finalObj.push({
                "val": compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + tableVal
              });
              return finalObj;
            } else {
              that.monParams[compItem.key] = tableVal;
              option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
              finalObj.push(_defineProperty({
                "dep": that.deploymentOption
              }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
              return finalObj;
            }
          }
        }
      }, {
        key: "getTableSingleArgOptions",
        value: function getTableSingleArgOptions(compItem, monName) {
          var _this1 = this;

          var that = this;
          var value = "";
          var option = {};
          var finalObj = [];

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            var rowVal = "";

            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              var colVal = "";

              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                if (each._grp) {
                  if (each._grp && _this1.monGrpStateArr.map(function (e) {
                    return e.gn;
                  }).indexOf(each._grp) === -1) {
                    if (each._grp != 'global') _this1.monGrpStateArr.push({
                      'gn': each._grp,
                      'gdn': each._grpDisp
                    });
                  }
                } else // case comes here when inner specific components are checked.
                  {
                    var grp;
                    grp = _this1.getMonGrpFromKey(each.key);

                    if (grp && grp != 'global' && _this1.monGrpStateArr.map(function (e) {
                      return e.gn;
                    }).indexOf(grp) === -1) {
                      _this1.monGrpStateArr.push({
                        'gn': grp,
                        'gdn': _this1.getMonitorGroupDisplayName(grp)
                      });
                    }
                  }

                if (each.type != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
                  var uiKeyVal = each.label;

                  if (each.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
                    uiKeyVal = "ui-" + each.label;
                  } // for bug 122124, 122121, 122120, 122118 - added encoding.


                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) {
                    /**
                     * Added for bug 126528 -
                     * When user clicks on final ADD button it was encoding multiple times.
                     * So we will first decode and then encode so that encoding happens once.
                     */
                    val[uiKeyVal] = decodeURIComponent(val[uiKeyVal]);
                    val[uiKeyVal] = encodeURIComponent(val[uiKeyVal]);
                  }

                  if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_VALUE_SEPARATOR"]]) {
                    if (each.args) {
                      if (val[uiKeyVal]) colVal = colVal + each.args + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_VALUE_SEPARATOR"]] + val[uiKeyVal] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];else // added for 113443 - Haproxy monitor
                        colVal = colVal + each.args + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_VALUE_SEPARATOR"]] + val[each.args] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];
                    } else colVal = colVal + val[uiKeyVal] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];
                  } else {
                    colVal = colVal + val[uiKeyVal] + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMN_SEPERATOR"]];
                  }
                }
              });

              rowVal = colVal.substring(0, colVal.length - 1);
              value = value + rowVal + compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ROW_SEPERATOR"]];
            });

            value = value.substring(0, value.length - 1);
            if (_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]) // added for bug - 123978
              value = "\"" + value + "\"";

            if (monName) {
              that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value;
              finalObj.push({
                "val": compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + value
              });
              return finalObj;
            } else {
              that.monParams[compItem.key] = value;
              option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
              this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
              finalObj.push(_defineProperty({
                "dep": this.deploymentOption
              }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
              return finalObj;
            }
          }
        } // Need to remove this as this tag will not be supported.

      }, {
        key: "getUseMultipleAsSingleValueTagOptions",
        value: function getUseMultipleAsSingleValueTagOptions(compItem, monName) {
          var that = this;
          var option = {};
          var finalObj = [];
          var dep = [];
          var value = "";
          var depCompOption = "";

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachComp) {
              if (eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") //this is used for adding at start end doubleQuotesVal
                eachComp.value = "\"" + eachComp.value + "\"";
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") value = "\"" + eachComp.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + eachComp.value + "\"";
              value = encodeURIComponent(value);
              eachComp[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] = false;
              dep = that.getComponentData(eachComp);
              if (dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) depCompOption = depCompOption + dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            });

            this.monParams[compItem.key] = value;
            this.deploymentOption[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
          }
        } //Method to add validation for instance name, host, port and username.

      }, {
        key: "isMonConfigurationValid",
        value: function isMonConfigurationValid(compData) {
          try {
            if (!compData) compData = [];

            for (var index = 0; index < compData.length; index++) {
              var compArgs = compData[index]; // dependentComp

              if (compArgs['dependentComp'] != null) {
                var flag = this.isMonConfigurationValid(compArgs['dependentComp']);
                if (!flag) return flag;
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == 'TextField' || compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == 'instanceName') {
                var methodName = compArgs['validationObj']['method'] || null;

                var _index = -1;

                if (methodName) {
                  _index = methodName.indexOf("(");
                  if (_index != -1) methodName = methodName.substring(0, _index);
                }

                if (methodName && compArgs['value']) {
                  var returnMsg = this.validationServiceObj[methodName](compArgs['value']);

                  if (returnMsg) {
                    this.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                      detail: returnMsg
                    });
                    return false;
                  }
                }
              }
            }

            return true;
          } catch (err) {
            return true;
          }
        }
      }, {
        key: "renderUI",
        value: function renderUI(res) {
          try {
            var me = this;
            Object.keys(res).map(function (each) {
              if (each != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_INFO"]) {
                if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"]) // for global components
                  {
                    if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]] && res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]].length != 0 && res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DRIVEN_KEY"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) {
                      me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DRIVEN_KEY"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"], "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_GLOBAL"]);
                    }

                    var grpKeys = Object.keys(res[each]);
                    grpKeys.map(function (noGrpComp) {
                      if (noGrpComp != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"] && noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], noGrpComp, otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_GLOBAL"]);
                        });
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_OTHERS"]) // for other monitor components
                  {
                    me.isOtherMon = true;

                    var _grpKeys = Object.keys(res[each]);

                    if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]] != null && res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]].length != 0 && res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DRIVEN_KEY"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) {
                      me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DRIVEN_KEY"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]], "other", "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_OTHERS"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_OTHERS"]);
                    }

                    _grpKeys.map(function (noGrpComp) {
                      if (noGrpComp != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"] && noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "other", eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], noGrpComp, otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_OTHERS"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_OTHERS"]);
                        });
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CMD"]) // for custom monitor components
                  {
                    me.isCMD = true;

                    var _grpKeys2 = Object.keys(res[each]);

                    _grpKeys2.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "cmd", "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CMD"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_CMD"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "cmd", eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CMD"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_CMD"]);
                          me.getCustomMonData(eachComp, otherKey[0], "cmd", noGrpComp);
                        });
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DB"]) // for custom monitor components
                  {
                    me.isDB = true;

                    var _grpKeys3 = Object.keys(res[each]);

                    _grpKeys3.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "db", "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DB"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_DB"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "db", eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DB"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_DB"]);
                          me.getCustomMonData(eachComp, otherKey[0], "db", noGrpComp);
                        });
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_JMX"]) // for custom monitor components
                  {
                    me.isJMX = true;

                    var _grpKeys4 = Object.keys(res[each]);

                    _grpKeys4.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "jmx", "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_JMX"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_JMX"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], "jmx", eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_JMX"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_JMX"]);
                          me.getCustomMonData(eachComp, otherKey[0], "jmx", noGrpComp);
                        });
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_REST"]) // for custom monitor components - rest monitor
                  {
                    me.isREST = true;

                    var _grpKeys5 = Object.keys(res[each]);

                    _grpKeys5.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"], "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_REST"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_REST"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REST_TYPE"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_REST"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_REST"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]); // me.getCustomMonData(eachComp, otherKey[0], COMPONENT.REST_TYPE, noGrpComp);
                        });
                      }
                    });

                    me.addCustomRestData();
                  } else if (each === "_log") // for custom monitor components
                  {
                    me.isLogMon = true;

                    var _grpKeys6 = Object.keys(res[each]);

                    _grpKeys6.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"], "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_LOG"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_LOG"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_PATTERN_TECH_NAME"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_LOG"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_LOG"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]);
                        });
                        me.addCustomLogPatternData();
                      }
                    });
                  } else if (each === "_logData") // for custom monitor components
                  {
                    me.isLogDataMon = true;

                    var _grpKeys7 = Object.keys(res[each]);

                    _grpKeys7.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"], "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_LOG_DATA"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_LOG_DATA"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["LOG_DATA_MON_TECH_NAME"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_LOG_DATA"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_LOG_DATA"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]);
                        });
                        me.addCustomLogData();
                      }
                    });
                  } else if (each === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CUSTOM_SNMP"]) // for custom monitor components
                  {
                    me.isSnmp = true;

                    var _grpKeys8 = Object.keys(res[each]);

                    _grpKeys8.map(function (noGrpComp) {
                      if (noGrpComp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]) {
                        if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]]) me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"], "", _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CUSTOM_SNMP"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_SNMP"]);
                      } else if (noGrpComp != "label" && res[each][noGrpComp]) {
                        res[each][noGrpComp].map(function (eachComp, key) {
                          var otherKey = Object.keys(eachComp);
                          me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_CUSTOM_SNMP"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["GRP_DISP_NAME_SNMP"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UI_OPTIONS_KEY"]]);
                          me.getCustomMonData(eachComp, otherKey[0], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SNMP"], noGrpComp);
                        });
                      }
                    });
                  } else {
                  me.monCategory.push(res[each]["label"]);

                  var _grpKeys9 = Object.keys(res[each]);

                  if (res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]] != null && res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]].length != 0) {
                    me.getMonData(res[each][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"]][0]["driven"][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], res[each]["label"], "", each, res[each]["label"]);
                  }

                  _grpKeys9.map(function (noGrpComp) {
                    if (noGrpComp != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENTS_KEY"] && noGrpComp != "label" && res[each][noGrpComp]) {
                      res[each][noGrpComp].map(function (eachComp) {
                        var otherKey = Object.keys(eachComp); // monitor name
                        // me.getSpecificData(eachComp[otherKey[0]][COMPONENT.COMPONENT_KEY],
                        //   res[each]["label"],
                        //   eachComp[otherKey[0]][COMPONENT.ENABLED],
                        //   eachComp[otherKey[0]][COMPONENT.OPTIONS_KEY],
                        //   eachComp[otherKey[0]][COMPONENT.INTERNAL_MON_NAME],
                        //   eachComp[otherKey[0]][COMPONENT.MON_TYPE],
                        //   eachComp[otherKey[0]][COMPONENT.INTERNAL_MON_NAME],
                        //   each,
                        //   res[each]["label"]);

                        me.getSpecificData(eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMPONENT_KEY"]], res[each]["label"], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ENABLED"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INTERNAL_MON_NAME"]], eachComp[otherKey[0]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]], otherKey[0], each, res[each]["label"]);
                      });
                    }
                  });
                }
              }
            });
            this.loading = false;
            console.log("Form Data =  ", this.formData);
          } catch (e) {
            this.loading = false;
            console.log("Method renderUI called.Error=", e);
          }
        }
      }, {
        key: "allMonEnable",
        value: function allMonEnable() {
          var that = this;
          var disableAddFlag = false;

          var _iterator3 = _createForOfIteratorHelper(that.specificMonMap.entries()),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var entry = _step3.value;

              if (this.monitorupdownService.isFromSnmpSaveAndDeploy) {
                if (entry[0] === this.monitorupdownService.monName) {
                  entry[1]['enabled'] = true;
                }
              }

              if (entry[1]['enabled']) {
                return disableAddFlag = true;
              }
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }

          return disableAddFlag;
        }
      }, {
        key: "setRequiredPropForEnabledMon",
        value: function setRequiredPropForEnabledMon() {
          var that = this;
          this.resetRequiredProperty();

          var _iterator4 = _createForOfIteratorHelper(that.specificMonMap.entries()),
              _step4;

          try {
            var _loop = function _loop() {
              var entry = _step4.value;

              if (entry[1]['enabled']) {
                var data = [];
                var monGrp = entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]]; // let monitorName = entry[0] // changed for resolving windows system monitor issues having same display name but diff internal name

                var monitorName = entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_DISPLAY_NAME"]];
                data = that.formData.filter(function (item) {
                  return item._grp === monGrp;
                }); // for bug 108950

                data.map(function (matchedItems) {
                  if (matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]] === "" || matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_TYPE"]] === monitorName) {
                    if (matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      that.validateRequiredCompValidation(matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], true);
                    } else if (matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) {
                      that.validateRequiredCompValidation(matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]], true);
                    } else if (matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]]) {
                      that.validateRequiredCompValidation(matchedItems[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]], true);
                    } else {
                      if (matchedItems['validationObj']['defRequired']) {
                        matchedItems['validationObj']['required'] = true;
                      }
                    }
                  }
                });
              }
            };

            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              _loop();
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
        } // Method called for when table is present inside specific monitor

      }, {
        key: "getTableInlineOptions",
        value: function getTableInlineOptions(compItem, monName) {
          var _this10 = this;

          var that = this;
          var finalObj = [];

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            var tableVal = "";

            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              var str = "";
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";

              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                if (each._grp) {
                  if (each._grp && _this10.monGrpStateArr.map(function (e) {
                    return e.gn;
                  }).indexOf(each._grp) === -1) {
                    if (each._grp != 'global') _this10.monGrpStateArr.push({
                      'gn': each._grp,
                      'gdn': each._grpDisp
                    });
                  }
                } else // case comes here when inner specific components are checked.
                  {
                    var grp;
                    grp = _this10.getMonGrpFromKey(each.key);

                    if (grp && grp != 'global' && _this10.monGrpStateArr.map(function (e) {
                      return e.gn;
                    }).indexOf(grp) === -1) {
                      _this10.monGrpStateArr.push({
                        'gn': grp,
                        'gdn': _this10.getMonitorGroupDisplayName(grp)
                      });
                    }
                  }

                if (each.type != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
                  var uiKeyVal = each.label;

                  if (each.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
                    uiKeyVal = "ui-" + each.label;
                  }

                  var value = val[uiKeyVal];
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) value = encodeURIComponent(value);
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") value = "'" + value + "'";
                  if (each.args) str = str + each.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLON_SEPARATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];else str = str + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];
                }
              });

              str = str.substring(0, str.length - 1);
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";
              tableVal = tableVal + compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + str + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            });

            that.deploymentOption[compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName] = tableVal.trim();
            finalObj.push({
              "val": tableVal
            });
            return finalObj;
          }
        }
        /**Copy Method of getTableOptions() for creating table deployment options as -V [
          "m:2, P:url",
          "m:3, P:url1"
           ]  */

      }, {
        key: "getTableDepOptions",
        value: function getTableDepOptions(compItem) {
          var that = this;
          var option = {};
          var finalObj = [];
          var depOptionArr = [];
          var count = 0;

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]]) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].map(function (val) {
              var str = "";
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";
              var depOptionObj = {};

              compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLUMNDATA"]].map(function (each) {
                if (each.type != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["NOTE_TAG"]) {
                  var uiKeyVal = each.label;

                  if (each.type === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
                    uiKeyVal = "ui-" + each.label;
                  }

                  var value = val[uiKeyVal];
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["URL_ENCODE"]]) value = encodeURIComponent(value);
                  if (each[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") value = "'" + value + "'";
                  if (each.args) str = str + each.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLON_SEPARATOR"] + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];else str = str + value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];
                }
              });

              str = str.substring(0, str.length - 1);
              if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["IS_QUOTE_REQUIRED"]] == "true") str = str + "\"";
              count++;
              depOptionObj[count] = str;
              depOptionArr.push(depOptionObj);
            });

            that.monParams[compItem.key] = depOptionArr;
            option[compItem.key] = compItem.args + "  ${" + compItem.key + "}";
            finalObj.push(_defineProperty({
              "dep": that.deploymentOption
            }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[compItem.key]));
            return finalObj;
          }
        } //Method called to create Fieldset inline options where fieldset has its own set of values such as in accesslog.

      }, {
        key: "getFieldSetInlineOptions",
        value: function getFieldSetInlineOptions(compItem, monName) {
          var that = this;
          var specificMonOption = "";

          if (compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
            compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachDepenComp) {
              var newKeyWithoutGrp = eachDepenComp['key'].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]); // done for removing monitor group from key to be written in options(accesslog)

              if (eachDepenComp.value) specificMonOption = specificMonOption + newKeyWithoutGrp[1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COLON_SEPARATOR"] + eachDepenComp.value + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["COMMA_SEPARATOR"];
            });
          }

          specificMonOption = specificMonOption.substring(0, specificMonOption.length - 1);
          var key = ""; // handling for endeca json fieldset for global components

          if (!monName) {
            key = compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]];
            that.monParams[key] = specificMonOption.trim();
            that.deploymentOption[key] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"];
          } else {
            key = compItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monName;
            that.deploymentOption[key] = compItem.args + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + specificMonOption.trim();
          }
        } // //Added for adding monitor group name along with Key.

      }, {
        key: "setAppCPJHInstance",
        value: function setAppCPJHInstance(keyName, monGrp) {
          var monGrpKeyName;
          return monGrpKeyName = monGrp + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"] + keyName;
        } //Method to generate Deployment Options

      }, {
        key: "createDeployementOptions",
        value: function createDeployementOptions(key, useAsOption, monGrp) {
          var that = this;
          if (useAsOption) that.deploymentOption[key] = useAsOption + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"];else that.deploymentOption[key] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"];
        } //Method to generate Deployment Options

      }, {
        key: "createMonParameters",
        value: function createMonParameters(key, value, monGrp) {
          var that = this;
          that.monParams[key] = value;
        }
      }, {
        key: "getComponentData",
        value: function getComponentData(CompData) {
          var that = this;
          var dep = [];
          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTFIELD_TYPE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPINNER_TYPE"]) return that.getTextFieldOptions(CompData);
          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTAREA_TYPE"]) return that.getTextAreaOptions(CompData);
          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RADIOBUTTONGROUP_TYPE"]) return that.getRadioButtonOptions(CompData);

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ACCORDIAN_TYPE"]) {
            dep = that.createAccordianOptions(CompData);
            that.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CHECKBOX_TYPE"]) {
            return that.getCheckBoxOptions(CompData);
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"]) {
            dep = that.getDropdownOptions(CompData);
            if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) that.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_TYPE"]) {
            dep = that.getTableDepOptions(CompData);
            if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) that.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLESINGLEARG_TYPE"]) {
            dep = that.getTableSingleArgOptions(CompData);
            if (dep && dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]]) that.deploymentOption[CompData.key] = dep[0][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"]].toString() + " ";
            return dep;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FIELDSETLABEL_TYPE"]) {
            if (CompData.args != "" && CompData.value != "") {
              this.getFieldSetInlineOptions(CompData); // to handle case where fieldset has own value such as accesslog
            } else {
              dep = that.createFieldSetOptions(CompData);
              return dep;
            }
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["AGENT_TYPE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["JAVAHOME"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLASSPATH"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"] || CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FREQUENCY_TYPE"]) {
            that.updateConfMonitorArr(CompData);
            that.createMonParameters(CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]], CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]); // changed for handling case of instance name key in postgresSql

            that.createDeployementOptions(CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]], CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]]); // changed for handling case of instance name key in postgresSql

            /**
             * Handled case where instance name comes as dependent component for checkbox. (in windows system)
             */

            var option = {};
            var finalObj = [];

            if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]]) {
              option[CompData.key] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["USE_AS_OPTION"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + CompData.key + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"];
            } else option[CompData.key] = "${" + CompData.key + "}";

            finalObj.push(_defineProperty({
              "dep": this.deploymentOption
            }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["OPTIONS_KEY"], option[CompData.key]));
            return finalObj;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]) {
            var str = '';

            CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE_OBJ"]].map(function (each) {
              str = str + each + ",";
            });

            str = str.substring(1, str.length - 1);
            that.monParams[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"]] = str;
          }

          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ISPROCESS"]) {
            that.monParams[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]];
            that.deploymentOption[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]]] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"] + CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"];
          } // for handling blank type tags where without showing in UI options are to be added in dep-options.


          if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == "") {
            var isReplaceOption = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]].startsWith(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["REPLACE_OPT_SEPARATOR"]);

            if (CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]]) {
              if (!isReplaceOption) that.deploymentOption[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]; // for bug 109253 changed to key
              else this.replacementOption[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ARGS"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            } else {
              that.deploymentOption[CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY"]]] = CompData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]; // for bug 109253 changed to key
            }
          }
        }
      }, {
        key: "removeDisableMonGrpParams",
        value: function removeDisableMonGrpParams() {
          var that = this;
          var monitorGroupArr = [];

          for (var items in that.monParams) {
            // if (!items.startsWith(COMPONENT.MON_GRP_GLOBAL)) // skip global parameters commented for bug 110733
            monitorGroupArr.push(items);
          }

          return monitorGroupArr = monitorGroupArr.filter(function (ar) {
            return !that.monGrpMap.find(function (rm) {
              return ar.startsWith(rm);
            });
          });
        } //Method called at save to make final deployment options. Added for handling case of windows deployment options

      }, {
        key: "removeSpaceBtwArgsAndValue",
        value: function removeSpaceBtwArgsAndValue(deploymentOption) {
          if (deploymentOption.startsWith('/')) {
            var arsArr = deploymentOption.replace(/\s+/g, ' ').split(' ');
            var optionStr = '';

            for (var index = 0; index < arsArr.length; index++) {
              if (index == 0) {
                // if(arsArr[index].startsWith('/'))
                optionStr = arsArr[index] + arsArr[index + 1]; // else
                //   optionStr = arsArr[index] + COMPONENT.SPACE_SEPARATOR + arsArr[index + 1];
              } else {
                // if(arsArr[index].startsWith('/'))
                optionStr += _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + arsArr[index] + arsArr[index + 1]; // else
                //  optionStr += COMPONENT.SPACE_SEPARATOR + arsArr[index] + COMPONENT.SPACE_SEPARATOR  + arsArr[index + 1];
              }

              index += 1;
            }

            deploymentOption = optionStr;
          }

          return deploymentOption;
        }
      }, {
        key: "resetRequiredProperty",
        value: function resetRequiredProperty() {
          var that = this;
          that.formData.map(function (eachFormItem) {
            if (eachFormItem._grp === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_GLOBAL"] && eachFormItem.monType === "") // for bug 108347
              {} else {
              if (eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                that.validateRequiredCompValidation(eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], false);
              } else if (eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]]) {
                that.validateRequiredCompValidation(eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]], false);
              } else if (eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]]) {
                that.validateRequiredCompValidation(eachFormItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]], false);
              } else {
                if (eachFormItem['validationObj']['defRequired']) {
                  eachFormItem['validationObj']['required'] = false;
                }
              }
            }
          });
        }
      }, {
        key: "addCustomRestData",
        value: function addCustomRestData() {
          var me = this;

          var _iterator5 = _createForOfIteratorHelper(me.specificMonMap.entries()),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var entry = _step5.value;
              me.customRestDataArr.push(entry[1]);
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }
        } //Method to create REST based monitor options

      }, {
        key: "createOptionsForRestMonitor",
        value: function createOptionsForRestMonitor(restData) {
          var val = ''; // removed for Bug 132806
          // val = val + LONG_ARG.LONG_FORMAT_PROTOCOL_ARG + COMPONENT.SPACE_SEPARATOR + restData.protocol + COMPONENT.SPACE_SEPARATOR

          if (restData.host) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_HOST_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.host + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.port) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PORT_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.port + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.user) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_USER_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.user + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.pwd) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PWD_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.pwd + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.pURL) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_URL_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.pURL + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.pUser) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_USER_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.pUser + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.pPwd) {
            val = val + _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_PROXY_PWD_ARG"] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.pPwd + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.isTier) {
            val = val + "-T" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "${TIER}" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.isServer) {
            val = val + "-w" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "${SERVER}" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.header.length > 0) {
            val = val + "--urlHeader" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.header + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.restUrl) {
            val = val + "--url" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.restUrl + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.authMode) {
            val = val + "--authMode" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.authMode + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          }

          if (restData.apiToken && restData.authMode == 1) {
            val = val + "--tokenSource" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.apiToken + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            val = val + "--tokenMode" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + 1 + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } else if (restData.bearerToken && restData.authMode == 2) {
            val = val + "--tokenSource" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + restData.bearerToken + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            val = val + "--tokenMode" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + 1 + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } // let urlStr =  restData.protocol + restData.host + ":" + restData.port;
          // val = val + LONG_ARG.LONG_FORMAT_JMX_CONNECTION_URL_ARG + COMPONENT.SPACE_SEPARATOR + urlStr;


          return val.trim();
        } //Method to add validate whether mandatory table is filled or not - for bug 108850

      }, {
        key: "validateTableDropdownComp",
        value: function validateTableDropdownComp(compData) {
          var _this11 = this;

          try {
            if (!compData) compData = [];

            var _loop2 = function _loop2() {
              var compArgs = compData[index];

              if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]] != null) {
                var flag = _this11.validateTableDropdownComp(compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]);

                if (!flag) return {
                  v: flag
                };
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ITEMS_KEY"]] != null) {
                var arr = [];
                var selectedObj = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](compArgs['items'], function (each) {
                  return each.value == compArgs.value;
                });
                arr.push(selectedObj);

                var _flag = _this11.validateTableDropdownComp(arr);

                if (!_flag) return {
                  v: _flag
                };
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]] != null) {
                // for bug 108891 - tierName tag case
                var that = _this11;
                var _flag2 = true;

                compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].map(function (eachDropdownItem) {
                  if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]] === eachDropdownItem.value) {
                    if (eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachItem) {
                        if (eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_TYPE"] && eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]]['required']) {
                          if (eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE_OBJ"]] === null || eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE_OBJ"]] === "") {
                            that.messageService.add({
                              severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                              summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                              detail: 'Please select ' + eachItem.label
                            });
                            _flag2 = false;
                          }
                        } else {
                          _flag2 = that.validateTableDropdownComp(eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]);
                        }
                      });
                    }
                  }
                });

                if (!_flag2) return {
                  v: _flag2
                };
              } else if ((compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_TYPE"] || compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLESINGLEARG_TYPE"]) && compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]]['required']) {
                if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TABLE_DATA"]].length === 0) {
                  _this11.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                    detail: 'Please add ' + compArgs.label
                  });

                  return {
                    v: false
                  };
                }
              }

              if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROPDOWN_TYPE"] && compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]]['required']) {
                if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]] === "") {
                  _this11.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                    detail: 'Please select ' + compArgs.label
                  });

                  return {
                    v: false
                  };
                }
              }
            },
                _ret;

            for (var index = 0; index < compData.length; index++) {
              _ret = _loop2();
              if (_ret) return _ret.v;
            }

            return true;
          } catch (err) {
            return true;
          }
        }
      }, {
        key: "expandPnl",
        value: function expandPnl(node, state) {
          if (node[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].length > 1) // for components apart from 'other' tag
            this.displayContent = state;
          if (node[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].length == 1) // for components having only 'other' tag
            this.displayContent = false;
        } //to open monitor GDF dialog

      }, {
        key: "getMonInfo",
        value: function getMonInfo(dispMonName, inMonName) {
          this.gdfDetail = {
            "dispMonName": dispMonName,
            "inMonName": inMonName,
            "techName": this.techName
          };
          this.display = true;
        }
      }, {
        key: "onDialogClose",
        value: function onDialogClose(event) {
          this.display = event;
        }
        /**
        * This method is used to download the json file
        */

      }, {
        key: "downloadProfile",
        value: function downloadProfile() {
          var _this12 = this;

          this.loading = true;
          /***download file directly in server  */

          var url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;
          this.monitorupdownService.downloadProfile(this.techName).subscribe(function (data) {
            if (data['status']) {
              _this12.loading = false;

              _this12.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                detail: data['msg']
              });

              var path = url + "/netstorm/temp/";
              path = path + _this12.techName + ".json";

              _this12.downloadURI(path, _this12.techName + ".json");

              _this12.cd.detectChanges();
            } else // for bug - 110352
              {
                _this12.loading = false;

                _this12.messageService.add({
                  severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                  summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                  detail: data['msg']
                });

                setTimeout(function () {
                  _this12.cd.detectChanges();
                }, 0);
                return false;
              }
          });
        }
        /** This method is used to make the download link to download the selected json file */

      }, {
        key: "downloadURI",
        value: function downloadURI(uri, name) {
          var link = document.createElement("a");
          link.download = name;
          link.href = uri; // Hence, We need to create mouse event initialization.

          var clickEvent = document.createEvent("MouseEvent");
          clickEvent.initEvent("click", true, true);
          link.dispatchEvent(clickEvent);
        } // Method added to check app name and exclude app name are not same bug - 109517

      }, {
        key: "checkDuplicateAppExcludeAppName",
        value: function checkDuplicateAppExcludeAppName() {
          var appNameValue;
          var excludeAppNameValue;

          for (var _i5 = 0, _Object$entries = Object.entries(this.monParams); _i5 < _Object$entries.length; _i5++) {
            var _Object$entries$_i = _slicedToArray(_Object$entries[_i5], 2),
                key = _Object$entries$_i[0],
                value = _Object$entries$_i[1];

            if (key.includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"])) {
              var monGrpKey = key.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);
              if (monGrpKey[1] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["APPNAME"]) appNameValue = value;
            }

            if (key.includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"])) {
              var _monGrpKey = key.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);

              if (_monGrpKey[1] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["EXCLUDE_APP"]) excludeAppNameValue = value;
            }
          }

          if (appNameValue && excludeAppNameValue) {
            if (appNameValue.trim() === excludeAppNameValue.trim()) {
              this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: "App Name and Exclude App Name cannot be same."
              });
              return false;
            }
          }

          return true;
        }
      }, {
        key: "validateBlankTextField",
        value: function validateBlankTextField(compData, monName, label) {
          var _this13 = this;

          try {
            if (!compData) compData = [];

            var _loop3 = function _loop3() {
              var compArgs = compData[index]; // dependentComp

              if (compArgs['dependentComp'] != null) {
                label = compArgs.label; //for bug 113788

                var flag = _this13.validateBlankTextField(compArgs['dependentComp'], compArgs['monType'], label);

                if (!flag) return {
                  v: flag
                };
              } else if (compArgs['items'] != null) {
                var arr = [];
                var selectedObj = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](compArgs['items'], function (each) {
                  return each.value == compArgs.value;
                });
                arr.push(selectedObj);

                var _flag3 = _this13.validateBlankTextField(arr, "", selectedObj.label);

                if (!_flag3) return {
                  v: _flag3
                };
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]] != null) {
                // for bug 111351
                var that = _this13;
                var _flag4 = true;

                compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DROP_DOWN_LIST_ITEMS"]].map(function (eachDropdownItem) {
                  if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]] === eachDropdownItem.value) {
                    if (eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]]) {
                      eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]].map(function (eachItem) {
                        if (eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TEXTFIELD_TYPE"] || eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["INSTANCE"]) {
                          if (eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALIDATION_OBJ"]]['required'] && eachItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["VALUE"]]) {
                            var isWhitespace = (eachItem['value'] || '').trim().length === 0;

                            if (isWhitespace) {
                              that.messageService.add({
                                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                                detail: 'Please enter valid ' + eachDropdownItem.label
                              });
                              _flag4 = false;
                            }
                          }
                        } else {
                          _flag4 = that.validateBlankTextField(eachDropdownItem[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DEPENDENT_COMP"]], "", eachDropdownItem.label);
                        }
                      });
                    }
                  }
                });

                if (!_flag4) return {
                  v: _flag4
                };
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == 'TextField' || compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == 'instanceName') {
                if (compArgs['validationObj']['required'] && compArgs['value']) {
                  var isWhitespace = (compArgs['value'] || '').trim().length === 0;

                  if (isWhitespace) {
                    if (compArgs['label'] != '') {
                      _this13.messageService.add({
                        severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                        summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                        detail: "Please enter valid " + compArgs['label']
                      });

                      return {
                        v: void 0
                      };
                    } else {
                      _this13.messageService.add({
                        severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                        summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                        detail: "Please enter valid " + label
                      });

                      return {
                        v: void 0
                      };
                    }
                  }
                }
              } else if (compArgs[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TYPE"]] == "other") {
                if (compArgs['value']) {
                  var otherArgsVal = compArgs['value'].split(/(\s+)/);

                  if (otherArgsVal[0] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DOUBLE_HYPHEN"] || otherArgsVal[0] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["HYPHEN"] || otherArgsVal[0] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FORWARD_SLASH"]) {
                    _this13.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                      detail: "Please enter valid " + compArgs['label'] + " in " + monName
                    });

                    return {
                      v: void 0
                    };
                  }

                  if (otherArgsVal[2] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DOUBLE_HYPHEN"] || otherArgsVal[2] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["HYPHEN"] || otherArgsVal[2] === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["FORWARD_SLASH"]) {
                    _this13.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                      detail: "Please enter valid " + compArgs['label'] + " in " + monName
                    });

                    return {
                      v: void 0
                    };
                  }
                }
              }
            },
                _ret2;

            for (var index = 0; index < compData.length; index++) {
              _ret2 = _loop3();
              if (_ret2) return _ret2.v;
            }

            return true;
          } catch (err) {
            return true;
          }
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.monitorupdownService.gMonId = "-1";
          this.monitorupdownService.expCol = false;
          this.monitorupdownService.iconAllMonGdf = false;
          if (this.updateListSubscription) this.updateListSubscription.unsubscribe();
        }
      }, {
        key: "deleteConf",
        value: function deleteConf() {
          var _this14 = this;

          var me = this;
          var gMonID = "";

          if (!me.selectedMonConf || me.selectedMonConf.length == 0) {
            this.messageService.add({
              severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
              summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
              detail: 'Please select row to delete'
            });
            return;
          }

          me.rejectVisible = true;
          me.acceptLable = "Yes";
          me.confirmationService.confirm({
            message: 'Do you want to delete selected monitor configuration?',
            header: 'Delete Confirmation',
            icon: 'pi pi-info-circle',
            accept: function accept() {
              me.loading = true;

              var _loop4 = function _loop4(i) {
                me.confTableData = me.confTableData.filter(function (each) {
                  return each.gMonId != _this14.selectedMonConf[i].gMonId;
                });
                gMonID += _this14.selectedMonConf[i].gMonId + ",";
                if (_this14.techKubernetes == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) _this14.emitConfTableSize();
              };

              for (var i = 0; i < _this14.selectedMonConf.length; i++) {
                _loop4(i);
              }

              gMonID = gMonID.slice(0, gMonID.length - 1);
              me.monitorupdownService.removeConfigurationInfo(gMonID, _this14.selectedMonConf[0]._id, me.techName).subscribe(function (res) {
                if (res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_STATUS"]]) {
                  if (res.severity && res.severity == "info") {
                    var messages = res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]].replace(/(\.\s)/g, '$1|').split('|');

                    me.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_WARNING"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_WARNING"],
                      detail: messages[0]
                    });
                    me.messageService.add({
                      severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                      summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                      detail: messages[1]
                    });
                  } else me.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                    detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]]
                  });

                  me.loading = false;
                  _this14.selectedMonConf = [];
                  me.clearFormFields();
                  me.cd.detectChanges();
                }
              });
            },
            reject: function reject() {
              _this14.selectedMonConf = [];
            }
          });
        } //Method called at on row edit click to generate per row agent-server list.

      }, {
        key: "getServerListAtEdit",
        value: function getServerListAtEdit(tierServerObj) {
          var _this15 = this;

          if (this.techKubernetes != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) {
            var me = this;
            if (tierServerObj.appName) // handle case for not showing error messages in case of kubernetes when tier/server is not provided in host.
              return;
            if (tierServerObj.clusterName) // handle case for not showing error messages in case of cloudFoundary when tier/server is not provided in host.
              return;
            this.loading = true;
            var tier = tierServerObj.tier;
            if (tierServerObj.tier === "ALLtier") tier = "All Tiers";
            var data = {};
            data["label"] = "All Tiers";
            data["value"] = "ALLtier";
            if (me.tierHeadersList) // for bug 140312
              me.tierHeadersList.unshift(data);
            var tierInfo = lodash__WEBPACK_IMPORTED_MODULE_3__["find"](me.tierHeadersList, function (each) {
              return each['label'] == tier;
            });

            if (!tierInfo) // for bug 112482
              {
                this.loading = false;
                tierServerObj.tier = "";
                tierServerObj.actualServer = "";
                this.messageService.add({
                  severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                  summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                  detail: tier + " is not present in topology."
                });
                return;
              } else {
              me.monitorupdownService.getServerList(tierInfo.value, tierInfo.label).subscribe(function (res) {
                var serverNotMatched = "";

                if (res.status) {
                  _this15.loading = false;
                  var uiDName = [];
                  var sName = [];
                  res['data'] = _this15.monitorupdownService.sort_by_key(res['data'], "sName");
                  res['data'].map(function (each) {
                    if (each['autoScale'] != 8) {
                      // for bug 140800
                      sName.push(each['sName']);
                      uiDName.push(each['uiDName']);
                    }
                  });

                  if (tierServerObj.tier === "ALLtier") {
                    me.exTierList = me.tierList.filter(function (val) {
                      return val.value != "ALLtier";
                    });
                  } //making separate list for Exclude server as Custom Server is not required in that list


                  _this15.oldServerList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(uiDName, sName);
                  if (_this15.oldServerList && _this15.oldServerList.length > 0) tierServerObj['exServerList'] = _toConsumableArray(_this15.oldServerList); //added to support custom specific server(Bug If 124053)

                  sName.push(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]);
                  uiDName.push(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]);
                  tierServerObj.serverList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(uiDName, sName);
                  var customSpecificServer = "";
                  tierServerObj['server'] = tierServerObj['server'].filter(function (obj) {
                    if (sName.indexOf(obj) === -1) {
                      if (obj.indexOf("(") != -1) // means it is custom specific server.
                        customSpecificServer = customSpecificServer + obj + ",";else serverNotMatched = serverNotMatched + obj + ","; // bug - 127660
                    }

                    return sName.indexOf(obj) != -1;
                  });
                  me.cd.detectChanges();

                  if (customSpecificServer) {
                    var len = tierServerObj['server'].length;
                    tierServerObj['server'][len] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"];
                    customSpecificServer = customSpecificServer.substring(0, customSpecificServer.length - 1);
                    tierServerObj['customServer'] = customSpecificServer; // return;
                  }
                } else {
                  serverNotMatched = serverNotMatched.substring(0, serverNotMatched.length - 1);

                  _this15.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                    detail: serverNotMatched + " is not present for tier " + tierServerObj.tier + " in topology"
                  });

                  return;
                }
              });
            }
          }
        }
      }, {
        key: "backClicked",
        value: function backClicked() {
          if (this.monitorupdownService.routeFlag) {
            this.monitorupdownService.flag = true;
          }

          this._location.back();
        } // For bug 110537 - Method to validate tier-server per row is selected or not.

      }, {
        key: "validateTierServer",
        value: function validateTierServer(tierServerInfos) {
          var flag = true;
          tierServerInfos.map(function (tierServerInfo) {
            if (tierServerInfo.tier != "ALLtier") {
              if (tierServerInfo.tier && tierServerInfo.actualServer) {
                if (tierServerInfo.tier != '' && tierServerInfo.actualServer === 'specified') {
                  if (tierServerInfo.server.length == 0) flag = false;else if (tierServerInfo.server.includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"]) && tierServerInfo.customServer == "") flag = false;
                }
              } else {
                flag = false;
              }
            }
          });
          if (!flag) this.showErrorMsg(flag);
          return flag;
        }
      }, {
        key: "showErrorMsg",
        value: function showErrorMsg(flag) {
          if (!flag) {
            this.messageService.add({
              severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
              summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
              detail: "Please fill agent tier-server to add next."
            });
            return flag;
          }
        } // Method added to show confirmation dialog if any monitor is configured but monitor is not enabled - bug 110733

      }, {
        key: "showConfirmDialogForUpdate",
        value: function showConfirmDialogForUpdate(msg, reqBody) {
          var _this16 = this;

          var me = this;
          me.rejectVisible = true;
          me.acceptLable = "Yes";
          msg = msg.substring(0, msg.length - 1);
          var monMsg = "Monitor configuration(s) for group(s): " + msg.trim() + " has been updated, but monitor(s) are not enabled. If you continue, monitor configuration(s) will be lost.Do you want to continue?";
          me.confirmationService.confirm({
            message: monMsg,
            header: 'Confirmation',
            icon: 'pi pi-info-circle',
            accept: function accept() {
              _this16.createFinalSaveObj(reqBody);
            },
            reject: function reject() {}
          });
        } // Method added to check if displayname provided in Custom server is unique or not

      }, {
        key: "isDisplayNameMatched",
        value: function isDisplayNameMatched(customServerArray, serverList) {
          var disMatch = false;
          serverList.map(function (obj) {
            var nameInList = obj['value'];
            customServerArray.map(function (value) {
              var index = value.indexOf("(");
              var dispName = "";

              if (index != -1) {
                dispName = value.substring(0, index).trim();
              } else {
                value = value + "(" + value + ")";
                dispName = value.trim();
              }

              if (dispName == nameInList) {
                disMatch = true;
                return;
              }
            });
          });
          if (disMatch) return true;else return false;
        } // Method used for creating save object.

      }, {
        key: "createFinalSaveObj",
        value: function createFinalSaveObj(reqBody) {
          var _this17 = this;

          var me = this;
          var tierFlag = false;
          var serverFlag = false;
          var tierServerInfo = [];
          var tabType;
          var dispNameMatch = false;
          var tSObj = {};
          var allTierExFlag = false;
          me.serverFilter.map(function (each) {
            tSObj = {}; // for bug 119423

            var servers = "";
            var tierStr = "";
            var cluster = "";
            if (me.techName == "CustomLogMetric") // added for bug 150698
              tSObj['tier'] = "Cavisson";else tSObj['tier'] = each['tier'];

            if (each['tier'] == "ALLtier") {
              tSObj['server'] = "All";

              if (each.exTier && each.exTier.length > 0) {
                each['exTier'].map(function (tier) {
                  tierStr = tierStr + tier + ",";
                });
              }

              tierStr = tierStr.substring(0, tierStr.length - 1);
              if (tierStr === "") tSObj['exTier'] = null;else tSObj['exTier'] = tierStr;
            } else {
              if (each['actualServer'] == -1) {
                tSObj['server'] = "All";

                if (each.exServer && each.exServer.length > 0) {
                  each['exServer'].map(function (server) {
                    servers = servers + server + ",";
                  });
                }

                servers = servers.substring(0, servers.length - 1);
                if (servers === "") tSObj['exServer'] = null;else tSObj['exServer'] = servers;
              } else if (each['actualServer'] == -2) {
                tSObj['server'] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_ANY"];
              } else {
                if (me.techName == "CustomLogMetric") // added for bug 150698
                  tSObj['server'] = "Any";else {
                  each['server'].map(function (eachServer) {
                    servers = servers + eachServer + ",";
                  });

                  if (each['customServer'] && each['customServer'] != '') {
                    servers = servers.replace("Custom Server,", ""); // To remove Others from server list

                    var customServerArray = each['customServer'].split(",");

                    var customServers = _this17.createFormatForCustomSpecificServer(customServerArray); // for bug 127660


                    dispNameMatch = _this17.isDisplayNameMatched(customServerArray, each.serverList);
                    servers = servers + customServers + ',';
                  }

                  servers = servers.substring(0, servers.length - 1);
                  tSObj['server'] = servers;
                }
              }
            }

            tierServerInfo.push(tSObj); // for bug 119423

            if (each.exTier.length == _this17.tierList.length - 1) allTierExFlag = true;
          });

          if (this.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) {
            var arr = [];
            tierServerInfo = [];
            arr = this.getKubeTSObject();
            tierServerInfo = arr;
          } //case of at edit mode when serverFilter is clearing at tab switch


          if (me.supportedTabArray) {
            me.supportedTabArray.map(function (each) {
              if (each.selected && each.appName) {
                tierServerInfo = []; //clear this array as it having other tab at switch for bug 119423

                tSObj = {}; // to remove tier/server if already added to this object when case is tab switch from host to kubernetes at edit mode of host tab

                tabType = each.tabName; //the selected tab name value should be current tab value

                tSObj['appName'] = each.appName;
                tierServerInfo.push(tSObj); // for bug 119423
              } else if (each.selected && each.clusterName) {
                tierServerInfo = []; //clear this array as it having other tab at switch for bug 119423

                tSObj = {}; // to remove tier/server if already added to this object when case is tab switch from host to cloudFoundary at edit mode of host tab

                tabType = each.tabName; //the selected tab name value should be current tab value

                tSObj['clusterName'] = each.clusterName.trim();
                tSObj['tier'] = each.clusterName.trim();
                tSObj['server'] = "All";
                tierServerInfo.push(tSObj); // for bug 119423
              }
            });
          }

          var appNameFlag = false;
          var clusterNameFlag = false;
          var customServerFlag = false;
          var allTierFlag = false;
          tierServerInfo.map(function (each) {
            if (each.appName) appNameFlag = true;
            if (each.clusterName) clusterNameFlag = true;
            if (!each.tier) tierFlag = true;
            if (each.server != undefined && each.server != null && (each.server == "" || each.server.length == 0)) // added to handle add case when sever is not present in tierServerInfo
              serverFlag = true;else if (each.server != undefined && each.server != null && each.server.includes(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CUSTOM_SERVER"])) {
              customServerFlag = true;
            }
            if (each.tier && each.tier == "ALLtier" && tierServerInfo.length > 1) allTierFlag = true;
          });

          if (!this.techKubernetes) {
            // Removing this validation for kubernetes UI
            if (tierFlag && !appNameFlag && !clusterNameFlag) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Select Tier to Add Monitor"
              });
              return;
            } //for bug 142096


            if (allTierFlag) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "No other tier can be specified with 'All Tiers'."
              });
              return;
            } //for bug 144223


            if (allTierExFlag) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "If monitor is configured for 'All Tiers',all available tiers cannot be excluded."
              });
              return;
            }
          }

          if (!this.techKubernetes) {
            // Removing this validation for kubernetes UI
            if (serverFlag && !appNameFlag && !clusterNameFlag) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Select Server to Add Monitor"
              });
              return;
            }
          }

          if (!this.techKubernetes) {
            // Removing this validation for kubernetes UI
            if (!serverFlag && customServerFlag && !clusterNameFlag) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Fill Custom Server to Add Monitor"
              });
              return;
            }
          }

          if (!this.techKubernetes) {
            // Removing this validation for kubernetes UI
            if (dispNameMatch) {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Display name must be unique"
              });
              return;
            }
          }

          if (this.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) {
            if (this.selectedClusterOpt == undefined || this.selectedClusterOpt == "") {
              this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Select Cluster to Add Monitor"
              });
              return;
            }

            if (this.selectedClusterName.length == 0) {
              this.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: '',
                detail: "Select Specified Cluster to Add Monitor"
              });
              return;
            }
          }

          if (!this.techKubernetes) {
            // not needed to check duplicate tier entry
            if (!this.monitorupdownService.validateDuplicateTier(tierServerInfo)) {
              return false;
            }
          }

          var finalReqBody = _defineProperty(_defineProperty(_defineProperty({
            "techName": me.techName,
            "opr": me.operation,
            "gMonId": me.gMonId,
            "clusterMode": this.selectedClusterOpt
          }, _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_INFO"], tierServerInfo), "body", reqBody), "tabType", tabType);

          me.loading = true;
          me.monitorupdownService.saveMonitorConfiguration(finalReqBody, me.techName, -1).subscribe(function (res) {
            if (res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_STATUS"]]) {
              me.clearFormFields();

              if (res.severity && res.severity == "info") {
                var messages = res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]].replace(/(\.\s)/g, '$1|').split('|');

                me.messageService.add({
                  severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_WARNING"],
                  summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_WARNING"],
                  detail: messages[0]
                });
                me.messageService.add({
                  severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                  summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                  detail: messages[1]
                });
              } else me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_SUCCESS"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_SUCCESS"],
                detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]]
              });

              me.monitorupdownService.getConfigInfo(_this17.techName, _this17.monitorName).subscribe(function (response) {
                var me = _this17;

                if (response.status) {
                  response = response.list;
                  response.map(function (item) {
                    if (item.defFactory) {
                      me.isDefFactory = item.defFactory;
                    }
                  });
                  me.confTableData = response;
                  me.loading = false;
                  me.cd.detectChanges();
                  if (_this17.techKubernetes == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) _this17.emitConfTableSize();
                } else {
                  _this17.messageService.add({
                    severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                    summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                    detail: response.msg
                  });

                  _this17.loading = false;
                }
              });
            } else {
              me.messageService.add({
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
                detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["RESPONSE_MSG"]],
                life: 5000
              });
              me.loading = false;

              _this17.cd.detectChanges();

              return;
            }
          });
        } // Method called to get Monitor group from key tag in form data.

      }, {
        key: "getMonGrpFromKey",
        value: function getMonGrpFromKey(key) {
          var monGrp = key.split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_KEY_SEPARATOR"]);
          return monGrp[0];
        } // Method added to maintain an array of object having monitor group and monitor group display name for configured monitor - bug 110733

      }, {
        key: "updateConfMonitorArr",
        value: function updateConfMonitorArr(compItem) {
          if (compItem.value != compItem.defVal) {
            if (compItem._grp) {
              if (compItem._grp && this.monGrpStateArr.map(function (e) {
                return e.gn;
              }).indexOf(compItem._grp) === -1) {
                if (compItem._grp != 'global') this.monGrpStateArr.push({
                  'gn': compItem._grp,
                  'gdn': compItem._grpDisp
                });
              }
            } else // case comes here when inner specific components are checked.
              {
                var grp;
                grp = this.getMonGrpFromKey(compItem.key);

                if (grp && grp != 'global' && this.monGrpStateArr.map(function (e) {
                  return e.gn;
                }).indexOf(grp) === -1) {
                  this.monGrpStateArr.push({
                    'gn': grp,
                    'gdn': this.getMonitorGroupDisplayName(grp)
                  });
                }
              }
          }
        } // Method added for bug 110733 to get monitor group display name incase of those where monitor group is found from key

      }, {
        key: "getMonitorGroupDisplayName",
        value: function getMonitorGroupDisplayName(grpName) {
          var _iterator6 = _createForOfIteratorHelper(this.specificMonMap.entries()),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var entry = _step6.value;

              if (entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GROUP"]] == grpName) {
                return entry[1][_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["MON_GRP_DISPLAY_NAME"]];
              }
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }
        }
      }, {
        key: "validateJmxSearchPattern",
        value: function validateJmxSearchPattern(jmxData) {
          if (jmxData.jmxConn === "pid" && jmxData.jmxConnPID === "searchPattern" && jmxData.adv.oP.length == 0) {
            this.messageService.add({
              severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SEVERITY_ERROR"],
              summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SUMMARY_ERROR"],
              detail: "Please Provide atleast one pattern"
            });
            return;
          }

          return true;
        }
      }, {
        key: "getJmxPatternData",
        value: function getJmxPatternData(data, monData) {
          if (this.index === 0) {
            var arr = data.split('[').join("").split(']');
            var str = arr[0].split('}');
            var newStr = [];
            var count = 0;

            for (var i = 0; i < str.length; i++) {
              if (str[i].startsWith('{') || str[i].startsWith(',')) {
                newStr.push(str[i].substring(str[i].indexOf("=") + 1));
              }
            }

            for (var j = 0; j < newStr.length; j++) {
              this.jmxSp = new _containers_adv_settings_data__WEBPACK_IMPORTED_MODULE_17__["PatternVal"]();
              this.jmxSp['id'] = count;
              this.jmxSp.pattern = newStr[j];
              monData['adv']['oP'].push(this.jmxSp);
              count = count + 1;
            }

            this.index = this.index + 1;
          }
        } //to set other parameter table data in db deployment UI

      }, {
        key: "setOpData",
        value: function setOpData(formData, data) {
          if (data) {
            var str = data.split(';');

            for (var i = 0; i < str.length; i++) {
              this.finalOpData.push(str[i].split('='));
            }
          }

          if (formData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DBQUERY"]] != "") {
            var splitByDollar = formData[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["DBQUERY"]].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]);

            if (splitByDollar.length > 1) {
              var patternKey = [];
              var arr = [];

              for (var _i6 = 1; _i6 < splitByDollar.length; _i6++) {
                var splitStr = splitByDollar[_i6].split(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"]);

                patternKey[_i6 - 1] = splitStr[0];
              }

              for (var k = 0; k < patternKey.length; k++) {
                var obj = {};
                obj["pattern"] = patternKey[k];

                if (this.finalOpData.length != 0) {
                  obj["upVal"] = this.finalOpData[k][1];
                } else {
                  obj["upVal"] = "";
                }

                obj["id"] = k;
                arr.push(obj);
              }

              formData['opData'] = arr;
              this.finalOpData = [];
            }
          }
        } //added to create db deployment OP table data option

      }, {
        key: "createOtherParameterOption",
        value: function createOtherParameterOption(monData) {
          var newOpt = _constants_longArguments_constants__WEBPACK_IMPORTED_MODULE_4__["LONG_FORMAT_CONN_PARAMS_ARG"] + this.generateOption(_constants_custom_monitor_constants__WEBPACK_IMPORTED_MODULE_5__["CONN_PARAMS"], monData[1].type + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["UNDERSCORE"] + monData[1].monName);
          return newOpt;
        } //for opening kubernates YML dialog

      }, {
        key: "openYmlConf",
        value: function openYmlConf() {
          this.openYmlConfDialog = true;
        } //for kubernates yml dialog open and close event

      }, {
        key: "onYmlDialogClose",
        value: function onYmlDialogClose(event) {
          this.openYmlConfDialog = event;
        }
      }, {
        key: "handleChangeOfTab",
        value: function handleChangeOfTab(e) {
          var _this18 = this;

          var me = this;
          me.loading = true; //Changes done for bug 121970

          this.selectedSupportedTabIndex = e.index;

          if (this.selectedSupportedTabIndex == 0) {
            this.jmxData.host = "";
          } else if (this.selectedSupportedTabIndex == 1) {
            this.jmxData.host = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["POD_IP"];
          }

          this.monitorupdownService.tabType = me.supportedTabArray[this.selectedSupportedTabIndex].tabName;
          me.supportedTabArray.map(function (each) {
            if (me.monitorupdownService.tabType == each.tabName) {
              each.selected = true;
            }
          });
          me.formData = [];
          me.customCmdMon = [];
          me.customDbMon = [];
          me.customJmxMon = [];
          me.customRestMon = [];
          me.serverFilter = [];
          me.monCategory = [];
          me.specificMonMap = new Map();
          me.supportedTabArray = [];
          me.monitorupdownService.getMonitorConfigurationAtEdit(me.techName, me.gMonId, me.objectId).subscribe(function (res) {
            me.loading = false;
            me.renderUI(res['cmpInfo']);
            me.supportedTabArray = res['supportedTab']; // added for host/kubernetes supported tab panel

            if (res.helpURL == null) {
              _this18.showHideHelp = false;
            } else {
              _this18.showHideHelp = true;
              _this18.helpURL = res['helpURL'];
            }

            me.isUseGlobal = res.useGlobal;
            var count = 0;

            if (res['tierInfo'].length == 0) {
              me.loading = false;
              me.serverFilter = [{
                id: 0,
                tier: "",
                actualServer: "",
                server: [],
                exServer: [],
                exTier: [],
                serverList: []
              }];
            }

            res.tierInfo.map(function (each) {
              var tierServerObj = {};
              var servers = [];
              var exTier = [];
              var exServer = [];
              tierServerObj['appName'] = each['appName']; // setting app name in tierServerObj for edit mode

              tierServerObj['clusterName'] = each['clusterName']; // setting app name in tierServerObj for edit mode

              tierServerObj['tier'] = each['tier'];
              tierServerObj['id'] = count;

              if (each['exTier']) {
                if (each['exTier'].includes(",")) exTier = each['exTier'].split(",");else exTier.push(each['exTier']);
              }

              if (each['server'] == "All") {
                tierServerObj['actualServer'] = -1;

                if (each['exServer']) {
                  //changes has been done for the bug id:-109471
                  if (each['exServer'].includes(",")) {
                    exServer = each['exServer'].split(",");
                  } else {
                    exServer.push(each['exServer']);
                  }
                }
              } else if (each['server'] == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_ANY"]) {
                tierServerObj['actualServer'] = -2;
              } else {
                tierServerObj['actualServer'] = "specified";

                if (each['server']) // handling case in edit mode when server data is not present at supported tab feature
                  {
                    if (each['server'].includes(",")) servers = each['server'].split(",");else servers.push(each['server']);
                  }
              }

              tierServerObj['exServer'] = exServer; //for bug 109471

              tierServerObj['server'] = servers;
              tierServerObj['exTier'] = exTier;

              _this18.getServerListAtEdit(tierServerObj);

              _this18.onServerChange(tierServerObj);

              me.serverFilter.push(tierServerObj);
              count = count + 1; //handling case when switching tabs at edit mode app name needs to be set as it is present tierInfo not as initial data

              if (me.supportedTabArray) {
                me.supportedTabArray.map(function (item) {
                  if (item.appName && tierServerObj['appName']) // assigning app name to that tab which is not app name key as null
                    item.appName = tierServerObj['appName'];
                  if (item.clusterName && tierServerObj['clusterName']) // assigning app name to that tab which is not app name key as null
                    item.clusterName = tierServerObj['clusterName'];
                });
              }
            });
            me.cd.detectChanges();
            me.exTierList = me.tierList.filter(function (val) {
              return val.value != "ALLtier";
            });
          });
        }
      }, {
        key: "getKubeTSObject",
        value: function getKubeTSObject() {
          var arr = [];
          if (this.selectedClusterName || this.selectedClusterName.length == 0) this.getAllClusterList();

          for (var i = 0; i < this.selectedClusterName.length; i++) {
            // if (this.selectedClusterOpt == '0' || this.selectedClusterOpt == '1') // in case of complete true/false agent and agentless
            // {
            //   if (this.agentFalseArray.length > 0) // in case of Agentless
            //   {
            //     let tsObj = {}
            //     tsObj['tier'] = COMPONENT.TIER_CAVISSON;
            //     tsObj['server'] = COMPONENT.SERVER_SELF;
            //     tsObj['cluster'] = this.selectedClusterName[i];
            //     arr.push(tsObj);
            //   }
            //   else if (this.agentTrueArray.length > 0) { // in case of agent
            //     let tsObj = {}
            //     tsObj['tier'] = this.selectedClusterName[i];
            //     tsObj['server'] = COMPONENT.SERVER_ANY;
            //     arr.push(tsObj);
            //   }
            // }
            if (this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENT"] || this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ALL_AGENT"]) {
              // agent
              var tsObj = {};
              tsObj['tier'] = this.selectedClusterName[i];
              tsObj['server'] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_ALL"];
              arr.push(tsObj);
            } else {
              var _tsObj = {};
              _tsObj['tier'] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_CAVISSON"]; //agentless

              _tsObj['server'] = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SERVER_SELF"];
              _tsObj['cluster'] = this.selectedClusterName[i];
              arr.push(_tsObj);
            }
          }

          return arr;
        } //Method to get cluster list dropdown values depending on checkbox values for agent and agentless.

      }, {
        key: "getClusterList",
        value: function getClusterList() {
          var _this19 = this;

          var that = this;
          that.agentTrueArray = [];
          that.agentFalseArray = [];
          this.cloudMonitors.getKubernetesProfile().subscribe(function (data) {
            _this19.monitorupdownService.setKubeConfigData(data);

            _this19.emitClusterListData();

            if (data) {
              data.map(function (each) {
                if (each.agent) that.agentTrueArray.push(each.clusterName);else that.agentFalseArray.push(each.clusterName);
              });
              if (that.agentTrueArray.length > 0 && that.agentTrueArray.length == data.length || that.agentFalseArray.length > 0 && that.agentFalseArray.length == data.length) _this19.monitorupdownService.setAgentFlag(true);else _this19.monitorupdownService.setAgentFlag(false);

              if (_this19.monitorupdownService.getAgentFlag()) {
                if (that.agentTrueArray.length > 0) _this19.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_AGENT"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_AGENT"]);else _this19.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_AGENTLESS"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_AGENTLESS"]);
              } else _this19.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_MIXED"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_MIXED"]);

              _this19.cd.detectChanges(); // if (this.operation != "update")


              _this19.specifiedClusterList = _this19.getSpecifiedClusterList();
            }
          });
        }
        /**Method called to get specific cluster list based on agent and agentLess case
          Following case needs to be handled.:
          All(0)
          Specified(1)
          [true] c1, c2, c3  --- agent
          [false] c1, c2, c3 --- agentless
             Mixed:
          All(Agent) 2
          Specified(agent) 3
          All(Agentless) 4
          Specified(agentless) 5
        **/

      }, {
        key: "getSpecifiedClusterList",
        value: function getSpecifiedClusterList() {
          // if (this.selectedClusterOpt == '1') {
          //   if (this.agentTrueArray.length > 0) {
          //     return this.specifiedClusterList = UtilityService.createDropdown(this.agentTrueArray);
          //   }
          //   else {
          //     return this.specifiedClusterList = UtilityService.createDropdown(this.agentFalseArray);
          //   }
          // }
          if (this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENT"]) {
            return this.specifiedClusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(this.agentTrueArray);
          } else if (this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENTLESS"]) {
            return this.specifiedClusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(this.agentFalseArray);
          }

          this.cd.detectChanges();
        } //Method called on cluster list dropdown chang

      }, {
        key: "onClusterListChange",
        value: function onClusterListChange() {
          this.selectedClusterName = [];
          this.getSpecifiedClusterList();
        }
      }, {
        key: "getAllClusterList",
        value: function getAllClusterList() {
          // if (this.selectedClusterOpt == '0') {
          //   if (this.agentTrueArray.length > 0) {
          //     this.selectedClusterName = this.agentTrueArray;
          //     this.specifiedClusterList = UtilityService.createDropdown(this.agentTrueArray);
          //   }
          //   else {
          //     this.selectedClusterName = this.agentFalseArray;
          //     this.specifiedClusterList = UtilityService.createDropdown(this.agentFalseArray);
          //   }
          // }
          if (this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ALL_AGENT"]) {
            //agent ALL case
            this.selectedClusterName = this.agentTrueArray;
            this.specifiedClusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(this.agentTrueArray);
          } else if (this.selectedClusterOpt == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["ALL_AGENTLESS"]) {
            //agentless ALL case
            this.selectedClusterName = this.agentFalseArray;
            this.specifiedClusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createDropdown(this.agentFalseArray);
          }
        } //Method called to set data in cluster list and specific cluster list at edit.

      }, {
        key: "onRowEditForKubeMon",
        value: function onRowEditForKubeMon(data) {
          this.selectedClusterOpt = data.clusterMode; //setting cluster mode value in cluster dropdown

          this.getClusterList();
          this.onClusterListChange();
          this.getSpecificClusterNameListAtEdit(data); // to iterate over tierInfo response and get selected specific cluster name in multiselect.
          // this.getClusterDropdownListAtEdit();
        } // Method added to get specific cluster name list at edit

      }, {
        key: "getSpecificClusterNameListAtEdit",
        value: function getSpecificClusterNameListAtEdit(data) {
          var that = this;
          data.tierInfo.map(function (each) {
            if (data.clusterMode == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENT"] || data.clusterMode == _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPECIFIED_AGENTLESS"]) {
              if (each.tier != _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TIER_CAVISSON"]) that.selectedClusterName.push(each.tier);else that.selectedClusterName.push(each.cluster);
            }
          });
        } //Method called to get cluster dropdown list at edit mode

      }, {
        key: "getClusterDropdownListAtEdit",
        value: function getClusterDropdownListAtEdit() {
          var _this20 = this;

          // if (this.selectedClusterOpt == '0' || this.selectedClusterOpt == '1')
          //   // this.clusterList = UtilityService.createListWithKeyValue(COMPONENT.CLUSTER_LIST_LABEL, COMPONENT.CLUSTER_LIST_VALUE)
          // else
          // this.clusterList = UtilityService.createListWithKeyValue(COMPONENT.CLUSTER_LIST_LABEL_MIXED, COMPONENT.CLUSTER_LIST_VALUE_MIXED)
          var that = this;
          this.cloudMonitors.getKubernetesProfile().subscribe(function (data) {
            _this20.monitorupdownService.setKubeConfigData(data);

            if (data) {
              data.map(function (each) {
                if (each.agent) that.agentTrueArray.push(each.clusterName);else that.agentFalseArray.push(each.clusterName);
              });
              if (that.agentTrueArray.length > 0 && that.agentTrueArray.length == data.length || that.agentFalseArray.length > 0 && that.agentFalseArray.length == data.length) _this20.monitorupdownService.setAgentFlag(true);else _this20.monitorupdownService.setAgentFlag(false);

              if (_this20.monitorupdownService.getAgentFlag()) {
                if (that.agentTrueArray.length > 0) _this20.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_AGENT"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_AGENT"]);else _this20.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_AGENTLESS"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_AGENTLESS"]);
              } else _this20.clusterList = _service_utility_service__WEBPACK_IMPORTED_MODULE_13__["UtilityService"].createListWithKeyValue(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_LABEL_MIXED"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["CLUSTER_LIST_VALUE_MIXED"]);

              _this20.cd.detectChanges();

              _this20.specifiedClusterList = _this20.getSpecifiedClusterList();
            }
          });
        }
      }, {
        key: "emitClusterListData",
        value: function emitClusterListData() {
          this.clusterListData.emit(this.monitorupdownService.getKubeConfigData());
        }
      }, {
        key: "emitConfTableSize",
        value: function emitConfTableSize() {
          this.confTableSize.emit(this.confTableData.length);
        } //Method called to delete agent tier/server row - bug 121430

      }, {
        key: "deleteAgentTierServer",
        value: function deleteAgentTierServer(index) {
          var tmpArr = JSON.parse(JSON.stringify(this.serverFilter));
          tmpArr.splice(index, 1);
          this.serverFilter = _toConsumableArray(tmpArr);
        }
      }, {
        key: "encodeParameterizedValue",
        value:
        /**
         * Method called to encode parameterized textField value - eg : accesslog.json
         * eg: /var/log/containers/*${POD_NAME}*.log
         * for bug 121700
         */
        function encodeParameterizedValue(value, newUpdatedValue) {
          var encodedValue = ""; // holds all the values which will get appended by encoding excluding paramterized part of the string

          var newValue = ""; //

          var parameterizedKey = ""; // holds value which has start key ('${') and end key ('}') and every character between these.

          var valueSubStr = ""; // holds value which will be left out after end key for recursive iteration

          if (newUpdatedValue) // to retain encoded value when recursively called.
            encodedValue = newUpdatedValue; // this will assign previously appended string to encodedValue.

          var indexOfStartKey = value.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]);
          var indexOfEndKey = value.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_END"]);

          if (indexOfStartKey < indexOfEndKey) // case when startKey and end key are sequential for eg : /var/log/containers/*${POD_NAME}*.log
            {
              // if indexOfStartKey and indexOfEndKey are -1 that means ${ and } are not present in string - non parameterized string.
              if (indexOfStartKey != -1 && indexOfEndKey != -1) {
                parameterizedKey = value.substring(indexOfStartKey, indexOfEndKey + 1); // gives value between Start key and end key value eg: ${POD_NAME}

                newValue = newValue + value.substring(0, indexOfStartKey); // it will take out all characters upto start key which has to be encoded.
                //Need to find out if string has more Start and end keys so evaluating from indexOfEndKey value till the length of the string

                valueSubStr = valueSubStr + value.substring(indexOfEndKey + 1, value.length);
              } else newValue = value; //assigning original value as no start key and end key are present.


              encodedValue = encodedValue + encodeURIComponent(newValue) + parameterizedKey; // appending encoded string and value with start and end key.

              if (valueSubStr && valueSubStr.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]) != -1) return this.encodeParameterizedValue(valueSubStr, encodedValue); // recursive call to encode left out string
              else encodedValue = encodedValue + encodeURIComponent(valueSubStr);
            } else // if end key and start key are not sequential for eg: }log${POD
            {
              if (indexOfEndKey != -1) // if endKey is present eg: }log${POD}
                {
                  newValue = newValue + value.substring(0, indexOfStartKey);
                  encodedValue = encodedValue + encodeURIComponent(newValue);
                  valueSubStr = valueSubStr + value.substring(indexOfStartKey, value.length);
                  if (valueSubStr && valueSubStr.indexOf(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["KEY_START"]) != -1) return this.encodeParameterizedValue(valueSubStr, encodedValue);
                } else {
                //if end key is not present for eg: }log${POD
                newValue = newValue + value.substring(indexOfStartKey, value.length);
                encodedValue = encodedValue + encodeURIComponent(newValue);
              }
            }

          return encodedValue;
        }
        /**Method called to check whether custom server is in proper format of DisplayName(Host/IP) or not - bug 127660
         * For eg : customServerArray - ['D1(IP1), IP2]
         */

      }, {
        key: "createFormatForCustomSpecificServer",
        value: function createFormatForCustomSpecificServer(customServerArray) {
          var customSpecificServers = "";
          customServerArray.map(function (item) {
            if (item.indexOf("(") == -1) item = item + "(" + item + ")";
            customSpecificServers = customSpecificServers + item.trim() + ",";
          });
          customSpecificServers = customSpecificServers.substring(0, customSpecificServers.length - 1); // removing last comma

          return customSpecificServers;
        }
      }, {
        key: "fillLogPatternMonData",
        value: function fillLogPatternMonData(data, monName) {
          var monData = new _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__["LogPatternData"]();
          monData['otherOpt'] = "";
          var options = data.replace(/ +/g, ' ').trim();
          var gdfData = options.split(" ");

          for (var i = 0; i < gdfData.length; i++) {
            if (gdfData[i] === "-f") {
              if (gdfData[i] === "__journald") {
                monData.fileNameSelection = "-f __journald";

                if (gdfData[i].includes("-u")) {
                  //eg:  -u%20hsj
                  var specifiedJournaldFileName = void 0;
                  specifiedJournaldFileName = decodeURIComponent(gdfData[i]);
                  var specificJournalValArr = specifiedJournaldFileName.split("-u");
                  monData.fileName = specificJournalValArr[1];
                  monData.journalType = "-u";
                } else // safety check for edit mode of journald all radiovalue.
                  {
                    monData.journalType = "all";
                  }
              } else {
                monData.fileNameSelection = "-f";
                monData.fileName = decodeURIComponent(gdfData[i + 1]);
              }
            }

            if (gdfData[i] === "-N") {
              monData.instCount = gdfData[i + 1];
            }

            if (gdfData[i] === "-c") {
              monData.fileNameSelection = "-c";
              monData.fileName = decodeURIComponent(gdfData[i + 1]);
            }

            if (gdfData[i] === "-y") {
              monData.readMulFile = true;
            }

            if (gdfData[i] === "-W") {
              monData.dumpServer = true;
            } // Below part is added to keep values from configuration part as they are not asked in deployment UI


            if (gdfData[i] === "-C") monData['otherOpt'] = gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

            if (gdfData[i] === "-p") {
              monData['otherOpt'] = monData['otherOpt'] + gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            monData.gdfName = monName;
          }

          return monData;
        } //Method to auto populate data for log pattern monitor in edit mode.

      }, {
        key: "setCustomLogMonUIOptions",
        value: function setCustomLogMonUIOptions(data, monName) {
          var monData = new _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__["LogPatternData"]();
          monData['otherOpt'] = "";

          for (var i in data) {
            if (i === "-f") {
              if (data[i] === "__journald") {
                monData.fileNameSelection = "-f __journald";

                if (data[i].includes("-u")) {
                  //eg:  -u%20hsj
                  var specifiedJournaldFileName = void 0;
                  specifiedJournaldFileName = decodeURIComponent(data[i + 2]);
                  var specificJournalValArr = specifiedJournaldFileName.split("-u");
                  monData.fileName = specificJournalValArr[1];
                  monData.journalType = "-u";
                } else // safety check for edit mode of journald all radiovalue.
                  {
                    monData.journalType = "all";
                  }
              } else {
                monData.fileNameSelection = "-f";
                monData.fileName = decodeURIComponent(data[i]);
              }
            }

            if (i === "-N") {
              monData.instCount = data[i];
            }

            if (i === "-c") {
              monData.fileNameSelection = "-c";
              monData.fileName = decodeURIComponent(data[i]);
            }

            if (i === "-y") {
              monData.readMulFile = true;
            }

            if (i === "-W") {
              monData.dumpServer = true;
            }

            if (i === "instanceName") monData.instance = data[i];
            if (i === "frequency") monData.frequency = data[i]; // Below part is added to keep values from configuration part as they are not asked in deployment UI

            if (i === "-C") monData['otherOpt'] = i + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + data[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

            if (i === "-p") {
              var pattern = data[i].split("$$");
              var patternStr = "";

              for (var _i7 = 0; _i7 < pattern.length; _i7++) patternStr = patternStr + " -p " + pattern[_i7] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

              monData['otherOpt'] = monData['otherOpt'] + patternStr;
            }

            monData.gdfName = monName;
          }

          return monData;
        }
      }, {
        key: "addCustomLogPatternData",
        value: function addCustomLogPatternData() {
          var me = this;

          var _iterator7 = _createForOfIteratorHelper(me.specificMonMap.entries()),
              _step7;

          try {
            for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
              var entry = _step7.value;
              me.customLogPatternDataArr.push(entry[1]['logPatternData']);
            }
          } catch (err) {
            _iterator7.e(err);
          } finally {
            _iterator7.f();
          }
        }
      }, {
        key: "addCustomLogData",
        value: function addCustomLogData() {
          var me = this;

          var _iterator8 = _createForOfIteratorHelper(me.specificMonMap.entries()),
              _step8;

          try {
            for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
              var entry = _step8.value;
              me.customLogDataArr.push(entry[1]['logData']);
            }
          } catch (err) {
            _iterator8.e(err);
          } finally {
            _iterator8.f();
          }
        } //Method to create Log Pattern Monitor options

      }, {
        key: "createOptionsForLogMonitor",
        value: function createOptionsForLogMonitor(logPatternData) {
          var val = '';
          val = val + logPatternData.fileNameSelection + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          var textForFileName = '';

          if (logPatternData.fileNameSelection == "-f __journald") {
            // For JournalD - specified file case
            if (logPatternData.journalType == "-u") {
              textForFileName = logPatternData.journalType + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + logPatternData.fileName;
            } else // For JournalD - all case
              textForFileName = '';
          } else {
            textForFileName = logPatternData.fileName;
          }

          if (textForFileName != null && textForFileName != '') {
            val = val + encodeURIComponent(textForFileName) + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } else // handling case for onchange in file selection type of journalD from specified to all
            val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

          if (logPatternData['otherOpt']) val = val + logPatternData['otherOpt'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; //for bug 80307- for multiple file support

          if (logPatternData.readMulFile) val = val + "-y" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "V2" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; // for support of (-N) option in log pattern in case use file name option

          if (logPatternData.fileNameSelection == "-f" && logPatternData.instCount) {
            val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "-N" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + logPatternData.instCount + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } else {
            logPatternData.instCount = null;
          } // for support of (-W) option in log pattern and log data monitor


          if (logPatternData.dumpServer) val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "-W" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          return val.trim();
        }
      }, {
        key: "fillLogDataMon",
        value: function fillLogDataMon(data, monName) {
          var monData = new _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__["LogPatternData"]();
          var options = data.replace(/ +/g, ' ').trim();
          var gdfData = options.split(" ");
          var minOtherArgIndex = 0;
          monData['otherOpt'] = "";
          var pattern = [];
          var type = [];
          var formVal = [];
          var fNum = [];
          var fType = [];
          var fieldType = [];
          monData.gdfName = monName;

          for (var i = 0; i < gdfData.length; i++) {
            if (gdfData[i] === "-f") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;

              if (gdfData[i + 1] === "__journald") {
                monData.fileNameSelection = "-f __journald";

                if (gdfData[i + 2].includes("-u")) {
                  if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2; //eg:  -u%20hsj

                  var specifiedJournaldFileName = void 0;
                  specifiedJournaldFileName = decodeURIComponent(gdfData[i + 2]);
                  var specificJournalValArr = specifiedJournaldFileName.split("-u");
                  monData.fileName = specificJournalValArr[1].trim();
                  monData.journalType = "-u";
                } else // safety check for edit mode of journald all radiovalue.
                  {
                    monData.journalType = "all";
                  }
              } else {
                monData.fileNameSelection = "-f";
                monData.fileName = decodeURIComponent(gdfData[i + 1]);
              }
            }

            if (gdfData[i] === "-N") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              monData.instCount = gdfData[i + 1];
            }

            if (gdfData[i] === "-c") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              monData.fileNameSelection = "-c";
              monData.fileName = decodeURIComponent(gdfData[i + 1]);
            }

            if (gdfData[i] === "-y") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              monData.readMulFile = true;
            }

            if (gdfData[i] === "-W") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              monData.dumpServer = true;
            }

            if (gdfData[i] === "-T") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              monData.trailingChar = gdfData[i + 1];
            }

            if (gdfData[i] === "-p") {
              if (minOtherArgIndex < i + 1) minOtherArgIndex = i + 2;
              pattern.push(gdfData[i + 1]);
            } //\"NP:100:\"ppppp111\",NP:900000:\"patt900000\"\"
            // if (gdfData[i] === "-F") {
            //   let val = gdfData[i + 1].substring(1, gdfData[i + 1].length - 1);
            //   let splitVal = val.split(",");
            //   splitVal.map(each => {
            //     let patt = each.split(":");
            //     fieldType.push(patt[0]);
            //     if (patt[0] === "NP") {
            //       fNum.push(patt[1]);
            //      // pattern.push(patt[2]);
            //      pattern.push(decodeURIComponent(patt[2]))
            //     }
            //     else if (patt[0] === "N") {
            //       fNum.push(patt[1]);
            //       pattern.push("");
            //     }
            //     else if (patt[0] === "P") {
            //       //pattern.push(patt[1]);
            //       pattern.push(decodeURIComponent(patt[1]))
            //       fNum.push("");
            //     }
            //   })
            // }
            // if (gdfData[i] === "-t") {
            //   type = gdfData[i + 1].split(",");
            // }
            // if (gdfData[i] === "-C") {
            //   let val = gdfData[i + 1].split(",");
            //   val.map(each => {
            //     let fVal = each.split("_");
            //     fType.push(fVal[0]);
            //     formVal.push(fVal[1]);
            //   })
            // }
            // if (gdfData[i] === "-T")
            //   {
            //    monData['otherOpt'] =  monData['otherOpt']  + gdfData[i] + COMPONENT.SPACE_SEPARATOR + data[i] + COMPONENT.SPACE_SEPARATOR;
            //   }
            //\"NP:100:\"ppppp111\",NP:900000:\"patt900000\"\"


            if (gdfData[i] === "-F") {
              monData['otherOpt'] = monData['otherOpt'] + gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            if (gdfData[i] === "-t") {
              monData['otherOpt'] = monData['otherOpt'] + gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            if (gdfData[i] === "-C") {
              monData['otherOpt'] = monData['otherOpt'] + gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            if (gdfData[i] === "-j") {
              monData.logLinePattern = decodeURIComponent(gdfData[i + 1]);
            }

            if (gdfData[i] === "-h") {
              monData.headerLines = gdfData[i + 1];
            }

            if (gdfData[i] === "-d") {
              monData['otherOpt'] = monData['otherOpt'] + gdfData[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + gdfData[i + 1] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }
          }

          return monData;
        }
      }, {
        key: "setCustomLogDataMonUIOptions",
        value: function setCustomLogDataMonUIOptions(data, monName) {
          var pattern = [];
          var monData = new _log_monitors_log_pattern_monitor_log_pattern_data__WEBPACK_IMPORTED_MODULE_20__["LogPatternData"]();
          monData['otherOpt'] = "";

          for (var i in data) {
            if (i === "instanceName") monData.instance = data[i];
            if (i === "frequency") monData.frequency = data[i];

            if (i === "-f") {
              if (data[i] === "__journald") {
                monData.fileNameSelection = "-f __journald";
              } else {
                monData.fileNameSelection = "-f";
                monData.fileName = decodeURIComponent(data[i]);
              }
            }

            if (i === "-u") {
              var specifiedJournaldFileName = void 0;
              specifiedJournaldFileName = decodeURIComponent(data[i]);
              var specificJournalValArr = specifiedJournaldFileName.split("-u");
              monData.fileName = specificJournalValArr[0];
              monData.journalType = "-u";
            }

            if (i === "-N") {
              monData.instCount = data[i];
            }

            if (i === "-c") {
              monData.fileNameSelection = "-c";
              monData.fileName = decodeURIComponent(data[i]);
            }

            if (i === "-y") {
              monData.readMulFile = true;
            }

            if (i === "-W") {
              monData.dumpServer = true;
            }

            if (i === "-T") {
              monData.trailingChar = data[i];
            }

            if (i === "-p") {
              pattern.push(data[i]);
            }

            if (i === "-F") {
              monData['otherOpt'] = monData['otherOpt'] + i + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "\"" + data[i] + "\"" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; //added for bug -130126
            }

            if (i === "-t") {
              monData['otherOpt'] = monData['otherOpt'] + i + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + data[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            if (i === "-C") {
              monData['otherOpt'] = monData['otherOpt'] + i + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + data[i] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
            }

            if (i === "-j") {
              monData.logLinePattern = decodeURIComponent(data[i]);
            }

            if (i === "-h") {
              monData.headerLines = data[i];
            }

            if (i === "-d") {
              monData['otherOpt'] = monData['otherOpt'] + i + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "\"" + data[i] + "\"" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; //added for bug -130126
            }
          }

          monData.gdfName = monName;
          return monData;
        }
      }, {
        key: "createOptionsForLogDataMonitor",
        value: function createOptionsForLogDataMonitor(logDataMonDTO) {
          var val = '';
          val = val + logDataMonDTO.fileNameSelection + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          var textForFileName = '';
          /** -f "__journald%3A-u+specifiueJournanlD+" */

          if (logDataMonDTO.fileNameSelection == "-f __journald") {
            // For JournalD - specified file case
            if (logDataMonDTO.journalType == "-u") textForFileName = logDataMonDTO.journalType + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + encodeURIComponent(logDataMonDTO.fileName);else // For JournalD - all case
              textForFileName = '';
          } else {
            textForFileName = logDataMonDTO.fileName;
          }

          if (textForFileName != null && textForFileName != '') {
            val = val + encodeURIComponent(textForFileName) + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } else // handling case for onchange in file selection type of journalD from specified to all
            val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];

          var logPatternMonVal = '';
          if (logDataMonDTO.headerLines != null) val = val + "-h" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + logDataMonDTO.headerLines + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          if (logDataMonDTO.trailingChar != null) val = val + "-T " + logDataMonDTO.trailingChar + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; // for bug 77321- support of -j option with encoding in Log Data Monitor.

          if (logDataMonDTO.logLinePattern != null && logDataMonDTO.logLinePattern != "") val = val + "-j " + encodeURIComponent(logDataMonDTO.logLinePattern) + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; //for bug 80307- for multiple file support

          if (logDataMonDTO.readMulFile) val = val + "-y" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "V2" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          if (logDataMonDTO['otherOpt']) val = val + logDataMonDTO['otherOpt'] + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; // for support of (-N) option in log pattern in case use file name option

          if (logDataMonDTO.fileNameSelection == "-f" && logDataMonDTO.instCount) {
            val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "-N" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + logDataMonDTO.instCount + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"];
          } else {
            logDataMonDTO.instCount = null;
          } // for support of (-W) option in log pattern and log data monitor


          if (logDataMonDTO.dumpServer) val = val + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"] + "-W" + _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["SPACE_SEPARATOR"]; // if(this.otherArgs)
          // val = val + this.otherArgs + COMPONENT.SPACE_SEPARATOR;

          return val.trim();
        } //Below Line of code is added for Bug 132493 - Monitors|ENHN|Monitor Test Button

      }, {
        key: "showTestMonitorDialog",
        value: function showTestMonitorDialog(data) {
          var monData = {
            "techName": this.techName,
            "topo": this.monitorupdownService.getTopologyName(),
            "objectId": data._id,
            "gConfId": data.gMonId,
            "tierInfo": data.tierInfo
          };
          this.testMonData = monData;
          this.displayTestMon = true;
        }
      }, {
        key: "enableMonLog",
        value: function enableMonLog(event) {
          this.monitorupdownService.enableLogInTestMon = event;
          var path = "";
          if (this.techKubernetes === _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_11__["TECH_KUBE_CLUSTER"]) path = "/monitor/kubecluster/dialog";else path = "/monitor/add-monitor-lazy/" + this.techName + "/" + this.techDisplayName + "/dialog";
          this.router.navigate([path]);
        }
      }, {
        key: "onTestDialogClose",
        value: function onTestDialogClose(event) {
          this.displayTestMon = event;
        } //Method to open custom Monitor configuration UI from Deployment UI.

      }, {
        key: "openCustomConfigUI",
        value: function openCustomConfigUI() {
          this.router.navigate(["/monitor/custom-monitors/availCustMon/", this.monitorupdownService.getMonTypeFromTechName(this.techName)]);
        } //Method to check if deployment is UI is opened for custom monitor or not.

      }, {
        key: "isCustomMonDeploymentUI",
        value: function isCustomMonDeploymentUI() {
          if (this.techName === "logDataMon" || this.techName === "logPatternMon" || this.techName === "CustomLogMetric" || this.techName === "CustomDB" || this.techName === "CustomJMX" || this.techName === "CustomCMD" || this.techName === "CustomStatsD" || this.techName === "CustomGenRest" || this.techName === "customsnmp") {
            return true;
          }

          return false;
        } //Method called to set configuration options in deployment UI for custom SNMP Monitor.

      }, {
        key: "setCustomSNMPMonUIOptions",
        value: function setCustomSNMPMonUIOptions(data) {
          var monData = {};

          for (var i in data) {
            if (i === "--enterprise") {
              if (data[i]) monData['enterprise'] = data[i];
            }
          }

          return monData;
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d, _e, _f, _g, _h;

          var rowData = event.cavEventExt.row;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == _add_custom_monitor_constants_mon_component_constants__WEBPACK_IMPORTED_MODULE_12__["EVENT_EDIT"]) {
            this.onRowEditInit(rowData);
          }

          if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == _add_custom_monitor_constants_mon_component_constants__WEBPACK_IMPORTED_MODULE_12__["EVENT_DELETEROW"]) {
            this.removeRowDataConfirmation(rowData);
          }

          if (((_f = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.actionConfig) === null || _f === void 0 ? void 0 : _f.action) == _add_custom_monitor_constants_mon_component_constants__WEBPACK_IMPORTED_MODULE_12__["EVENT_TEST"]) {
            this.executeTestMode = '1';
            this.showTestMonitorDialog(rowData);
          }

          if (((_h = (_g = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _g === void 0 ? void 0 : _g.actionConfig) === null || _h === void 0 ? void 0 : _h.action) == _add_custom_monitor_constants_mon_component_constants__WEBPACK_IMPORTED_MODULE_12__["EVENT_DELETEALL"]) {
            this.selectedMonConf = event.cavEventExt.rowData;
            this.deleteConf();
          }
        }
      }, {
        key: "createOptionsForCustomSnmpMonitor",
        value: function createOptionsForCustomSnmpMonitor(snmpData) {
          var val = "";
          if (snmpData.enterprise) val = '--enterprise ' + snmpData.enterprise;
          return val.trim();
        }
      }, {
        key: "createOptionForSNMP",
        value: function createOptionForSNMP(data) {
          var result = [];
          var value = data["-o"];
          var patterns = value.split(',');
          patterns.forEach(function (pattern, index) {
            var trimmedPattern = pattern.trim();

            if (trimmedPattern) {
              // Split the pattern by '=' to separate the key and value
              var _trimmedPattern$split = trimmedPattern.split('='),
                  _trimmedPattern$split2 = _slicedToArray(_trimmedPattern$split, 2),
                  key = _trimmedPattern$split2[0],
                  val = _trimmedPattern$split2[1];

              var patternName = key.trim();
              var upVal = val ? decodeURIComponent(val.trim()) : ""; // If val is empty, set upVal to an empty string

              result.push({
                pattern: patternName,
                upVal: upVal,
                id: index
              });
            }
          });
          return result;
        }
      }]);
    }();

    AddMonitorComponent.ctorParameters = function () {
      return [{
        type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]
      }, {
        type: _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_10__["MonitorupdownstatusService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_14__["Router"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_14__["ActivatedRoute"]
      }, {
        type: _angular_common__WEBPACK_IMPORTED_MODULE_16__["Location"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_22__["CavMessageService"]
      }, {
        type: _service_add_mon_validation_service__WEBPACK_IMPORTED_MODULE_15__["AddMonValidationService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_18__["SessionService"]
      }, {
        type: _cloud_monitoring_services_cloud_monitors_service__WEBPACK_IMPORTED_MODULE_19__["cloudMonitorService"]
      }, {
        type: _add_custom_monitor_services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_21__["CustomMonitorService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], AddMonitorComponent.prototype, "techKubernetes", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], AddMonitorComponent.prototype, "techDisNameKubernetes", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], AddMonitorComponent.prototype, "confTableData", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()], AddMonitorComponent.prototype, "clusterListData", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()], AddMonitorComponent.prototype, "confTableSize", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], AddMonitorComponent.prototype, "snmpMonitorName", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], AddMonitorComponent.prototype, "selectedColumns", null);
    AddMonitorComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-add-monitor',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./add-monitor.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      providers: [primeng__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./add-monitor.component.scss */
      "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.scss"))["default"]]
    })], AddMonitorComponent);
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/custom-monitor-constants.ts":
  /*!*******************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/custom-monitor-constants.ts ***!
    \*******************************************************************************************************************/

  /*! exports provided: CMD_MON_TYPE_ARG, CMD_OUTPUT_TYPE_ARG, CMD_RETRY_ARG, CMD_DELETE_VECTOR_ARG, CMD_INTERVAL_ARG, CMD_TIER_ARG, CMD_SERVER_ARG, CMD_HOST_ARG, CMD_PORT_ARG, CMD_USER_ARG, CMD_PWD_ARG, CMD_REMOTE_TIER_ARG, CMD_REMOTE_SERVER_ARG, CMD_REMOTE_HOST_ARG, CMD_REMOTE_PORT_ARG, CMD_REMOTE_USER_ARG, CMD_REMOTE_PWD_ARG, CMD_PRIVATE_KEY_ARG, CMD_PASSPHRASE_ARG, CMD_PUBLIC_KEY_ARG, CMD_PROXY_HOST_ARG, CMD_PROXY_PORT_ARG, CMD_PROXY_USER_ARG, CMD_PROXY_PWD_ARG, CMD_INSTANCE_ARG, JMX_IS_TWO_WAY_SSL, JMX_URL_ARG, JMX_PID_ARG, JMX_PID_FILE_ARG, JMX_OCCURENCE_COUNT_ARG, JMX_TRUST_STORE_FILE_ARG, JMX_TRUST_STORE_PASSWORD_ARG, JMX_KEY_STORE_FILE_ARG, JMX_KEY_STORE_PASSWORD_ARG, JMX_TRUST_STORE_FILE_TYPE_ARG, JMX_CONNECTOR_SEARCH_PATTERN_ARG, DB_NAME_ARG, DB_AUTH_TYPE_ARG, DB_SID_ARG, DB_VECTOR_PERSIST_COUNT_ARG, DB_IS_REFRESH_ARG, DB_SERVICE_ACCOUNT_FILE_ARG, DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG, SPACE_SEPARATOR, PASSWORD_SEPERATOR, AGENT_TYPE, IS_ENCRYPTED_PWD_ARG, CLASS_PATH, JAVA_HOME, CONN_PARAMS, AUTH_PARAMS */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_constants_customMonitorConstantsTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_MON_TYPE_ARG", function () {
      return CMD_MON_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_OUTPUT_TYPE_ARG", function () {
      return CMD_OUTPUT_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_RETRY_ARG", function () {
      return CMD_RETRY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_DELETE_VECTOR_ARG", function () {
      return CMD_DELETE_VECTOR_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_INTERVAL_ARG", function () {
      return CMD_INTERVAL_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_TIER_ARG", function () {
      return CMD_TIER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_SERVER_ARG", function () {
      return CMD_SERVER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_HOST_ARG", function () {
      return CMD_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PORT_ARG", function () {
      return CMD_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_USER_ARG", function () {
      return CMD_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PWD_ARG", function () {
      return CMD_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_TIER_ARG", function () {
      return CMD_REMOTE_TIER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_SERVER_ARG", function () {
      return CMD_REMOTE_SERVER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_HOST_ARG", function () {
      return CMD_REMOTE_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_PORT_ARG", function () {
      return CMD_REMOTE_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_USER_ARG", function () {
      return CMD_REMOTE_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_REMOTE_PWD_ARG", function () {
      return CMD_REMOTE_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PRIVATE_KEY_ARG", function () {
      return CMD_PRIVATE_KEY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PASSPHRASE_ARG", function () {
      return CMD_PASSPHRASE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PUBLIC_KEY_ARG", function () {
      return CMD_PUBLIC_KEY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PROXY_HOST_ARG", function () {
      return CMD_PROXY_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PROXY_PORT_ARG", function () {
      return CMD_PROXY_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PROXY_USER_ARG", function () {
      return CMD_PROXY_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_PROXY_PWD_ARG", function () {
      return CMD_PROXY_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CMD_INSTANCE_ARG", function () {
      return CMD_INSTANCE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_IS_TWO_WAY_SSL", function () {
      return JMX_IS_TWO_WAY_SSL;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_URL_ARG", function () {
      return JMX_URL_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_PID_ARG", function () {
      return JMX_PID_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_PID_FILE_ARG", function () {
      return JMX_PID_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_OCCURENCE_COUNT_ARG", function () {
      return JMX_OCCURENCE_COUNT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_TRUST_STORE_FILE_ARG", function () {
      return JMX_TRUST_STORE_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_TRUST_STORE_PASSWORD_ARG", function () {
      return JMX_TRUST_STORE_PASSWORD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_KEY_STORE_FILE_ARG", function () {
      return JMX_KEY_STORE_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_KEY_STORE_PASSWORD_ARG", function () {
      return JMX_KEY_STORE_PASSWORD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_TRUST_STORE_FILE_TYPE_ARG", function () {
      return JMX_TRUST_STORE_FILE_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JMX_CONNECTOR_SEARCH_PATTERN_ARG", function () {
      return JMX_CONNECTOR_SEARCH_PATTERN_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_NAME_ARG", function () {
      return DB_NAME_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_AUTH_TYPE_ARG", function () {
      return DB_AUTH_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_SID_ARG", function () {
      return DB_SID_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_VECTOR_PERSIST_COUNT_ARG", function () {
      return DB_VECTOR_PERSIST_COUNT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_IS_REFRESH_ARG", function () {
      return DB_IS_REFRESH_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_SERVICE_ACCOUNT_FILE_ARG", function () {
      return DB_SERVICE_ACCOUNT_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG", function () {
      return DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SPACE_SEPARATOR", function () {
      return SPACE_SEPARATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PASSWORD_SEPERATOR", function () {
      return PASSWORD_SEPERATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AGENT_TYPE", function () {
      return AGENT_TYPE;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "IS_ENCRYPTED_PWD_ARG", function () {
      return IS_ENCRYPTED_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CLASS_PATH", function () {
      return CLASS_PATH;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JAVA_HOME", function () {
      return JAVA_HOME;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CONN_PARAMS", function () {
      return CONN_PARAMS;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AUTH_PARAMS", function () {
      return AUTH_PARAMS;
    });

    var CMD_MON_TYPE_ARG = "#monType"; // Monitor type for new Options (CMD-1/REST-2/MBEAN-3/DB-4)

    var CMD_OUTPUT_TYPE_ARG = "#respType"; // Output type for new Options (string-1/keyValue-2/JSON-3/JMX-4) of configured monitor

    var CMD_RETRY_ARG = "#maxRetryCount"; // Count of maximum retry to make connection

    var CMD_DELETE_VECTOR_ARG = "#vecPersistTime"; // delVecTime for new Options

    var CMD_INTERVAL_ARG = "#interval"; // intervaL for new Options

    var CMD_TIER_ARG = "#tier"; // Tier for new Options

    var CMD_SERVER_ARG = "#server"; // server for new Options

    var CMD_HOST_ARG = "#host"; //  host

    var CMD_PORT_ARG = "#port"; //  port

    var CMD_USER_ARG = "#user"; //  user

    var CMD_PWD_ARG = "#pwd"; //  password

    var CMD_REMOTE_TIER_ARG = "#remoteTierUI"; // remote Tier 

    var CMD_REMOTE_SERVER_ARG = "#remoteServerUI"; // remote server 

    var CMD_REMOTE_HOST_ARG = "#remoteHost"; // Remote host

    var CMD_REMOTE_PORT_ARG = "#remotePort"; // Remote port

    var CMD_REMOTE_USER_ARG = "#remoteUser"; // Remote user

    var CMD_REMOTE_PWD_ARG = "#remotePwd"; // Remote password

    var CMD_PRIVATE_KEY_ARG = "#privateKey"; // private key

    var CMD_PASSPHRASE_ARG = "#passphrase"; // passphrase

    var CMD_PUBLIC_KEY_ARG = "#publicKey"; // public key

    var CMD_PROXY_HOST_ARG = "#proxyHost"; // Proxy host

    var CMD_PROXY_PORT_ARG = "#proxyPort"; // Proxy port

    var CMD_PROXY_USER_ARG = "#proxyUser"; // Proxy username

    var CMD_PROXY_PWD_ARG = "#proxyPwd"; // Proxy password

    var CMD_INSTANCE_ARG = "#instance"; // Proxy password

    var JMX_IS_TWO_WAY_SSL = "#isTwoWaySSL"; // is Two Way SSL enable

    var JMX_URL_ARG = "#url"; //Jmx connection url

    var JMX_PID_ARG = "#pid"; //Process id for JMX monitor

    var JMX_PID_FILE_ARG = "#pidFile"; //Process Id file 

    var JMX_OCCURENCE_COUNT_ARG = "#index";
    var JMX_TRUST_STORE_FILE_ARG = "#truststoreFile"; //Trust store file path

    var JMX_TRUST_STORE_PASSWORD_ARG = "#truststorePwd"; // Trust store password

    var JMX_KEY_STORE_FILE_ARG = "#keystoreFile"; // Key store file path

    var JMX_KEY_STORE_PASSWORD_ARG = "#keystorePwd"; //key store password

    var JMX_TRUST_STORE_FILE_TYPE_ARG = "#truststoreFileType"; // Trust store file path

    var JMX_CONNECTOR_SEARCH_PATTERN_ARG = "#searchPattern"; //JMX connector search pattern

    var DB_NAME_ARG = "#dbName"; //JMX connector search pattern

    var DB_AUTH_TYPE_ARG = "#authMode"; // Auth type

    var DB_SID_ARG = "#sid"; //SID

    var DB_VECTOR_PERSIST_COUNT_ARG = "#vecPersistCount"; // Vector persist count

    var DB_IS_REFRESH_ARG = "#isRefresh"; // IS REFRESH 

    var DB_SERVICE_ACCOUNT_FILE_ARG = "--serviceAccFile"; // Service account file 

    var DB_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG = "--SATokenFilePath"; //Service account token file path

    var SPACE_SEPARATOR = " ";
    var PASSWORD_SEPERATOR = "cav_e";
    var AGENT_TYPE = "#agent"; // Proxy password

    var IS_ENCRYPTED_PWD_ARG = "#isEncryptPwd";
    var CLASS_PATH = "#classPath";
    var JAVA_HOME = "#javaHome";
    var CONN_PARAMS = '#connParams';
    var AUTH_PARAMS = '#authMode'; //Autentication Mode

    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/longArguments-constants.ts":
  /*!******************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/longArguments-constants.ts ***!
    \******************************************************************************************************************/

  /*! exports provided: LONG_FORMAT_MON_TYPE_ARG, LONG_FORMAT_OUTPUT_TYPE_ARG, LONG_FORMAT_RETRY_ARG, LONG_FORMAT_DELETE_VECTOR_ARG, LONG_FORMAT_INTERVAL_ARG, LONG_FORMAT_TIER_ARG, LONG_FORMAT_SERVER_ARG, LONG_FORMAT_HOST_ARG, LONG_FORMAT_PORT_ARG, LONG_FORMAT_USER_ARG, LONG_FORMAT_PWD_ARG, LONG_FORMAT_PROTOCOL_ARG, LONG_FORMAT_REMOTE_TIER_ARG, LONG_FORMAT_REMOTE_SERVER_ARG, LONG_FORMAT_REMOTE_HOST_ARG, LONG_FORMAT_REMOTE_PORT_ARG, LONG_FORMAT_REMOTE_USER_ARG, LONG_FORMAT_REMOTE_PWD_ARG, LONG_FORMAT_PRIVATE_KEY_ARG, LONG_FORMAT_PASSPHRASE_ARG, LONG_FORMAT_PUBLIC_KEY_ARG, LONG_FORMAT_PROXY_HOST_ARG, LONG_FORMAT_PROXY_PORT_ARG, LONG_FORMAT_PROXY_USER_ARG, LONG_FORMAT_PROXY_PWD_ARG, LONG_FORMAT_DB_NAME_ARG, LONG_FORMAT_AUTH_TYPE_ARG, LONG_FORMAT_SID_ARG, LONG_FORMAT_TRUST_STORE_FILE_ARG, LONG_FORMAT_TRUST_STORE_PASSWORD_ARG, LONG_FORMAT_KEY_STORE_FILE_ARG, LONG_FORMAT_KEY_STORE_PASSWORD_ARG, LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG, LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG, LONG_FORMAT_IS_REFRESH_ARG, LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG, LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG, LONG_FORMAT_CONN_PARAMS_ARG, LONG_FORMAT_IS_ENCRYPTED_DATA_ARG, LONG_FORMAT_DB_QUERY_ARG, LONG_FORMAT_INSTANCE_ARG, LONG_FORMAT_VECTOR_PREFIX, LONG_FORMAT_TWO_SSL_ENABLE_ARG, LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG, LONG_FORMAT_JMX_CONNECTION_URL_ARG, LONG_FORMAT_PID_ARG, LONG_FORMAT_PID_FILE_ARG, LONG_FORMAT_OCCURENCE_COUNT_ARG, SPACE_SEPARATOR, PASSWORD_SEPERATOR, DOLLAR_SIGN, OPENING_BRACKET, CLOSING_BRACKET, LONG_FORMAT_IS_ENCRYPTED_PWD_ARG, LONG_FORMAT_PROXY_URL_ARG */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_constants_longArgumentsConstantsTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_MON_TYPE_ARG", function () {
      return LONG_FORMAT_MON_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_OUTPUT_TYPE_ARG", function () {
      return LONG_FORMAT_OUTPUT_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_RETRY_ARG", function () {
      return LONG_FORMAT_RETRY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_DELETE_VECTOR_ARG", function () {
      return LONG_FORMAT_DELETE_VECTOR_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_INTERVAL_ARG", function () {
      return LONG_FORMAT_INTERVAL_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_TIER_ARG", function () {
      return LONG_FORMAT_TIER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_SERVER_ARG", function () {
      return LONG_FORMAT_SERVER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_HOST_ARG", function () {
      return LONG_FORMAT_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PORT_ARG", function () {
      return LONG_FORMAT_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_USER_ARG", function () {
      return LONG_FORMAT_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PWD_ARG", function () {
      return LONG_FORMAT_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROTOCOL_ARG", function () {
      return LONG_FORMAT_PROTOCOL_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_TIER_ARG", function () {
      return LONG_FORMAT_REMOTE_TIER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_SERVER_ARG", function () {
      return LONG_FORMAT_REMOTE_SERVER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_HOST_ARG", function () {
      return LONG_FORMAT_REMOTE_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_PORT_ARG", function () {
      return LONG_FORMAT_REMOTE_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_USER_ARG", function () {
      return LONG_FORMAT_REMOTE_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_REMOTE_PWD_ARG", function () {
      return LONG_FORMAT_REMOTE_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PRIVATE_KEY_ARG", function () {
      return LONG_FORMAT_PRIVATE_KEY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PASSPHRASE_ARG", function () {
      return LONG_FORMAT_PASSPHRASE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PUBLIC_KEY_ARG", function () {
      return LONG_FORMAT_PUBLIC_KEY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROXY_HOST_ARG", function () {
      return LONG_FORMAT_PROXY_HOST_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROXY_PORT_ARG", function () {
      return LONG_FORMAT_PROXY_PORT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROXY_USER_ARG", function () {
      return LONG_FORMAT_PROXY_USER_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROXY_PWD_ARG", function () {
      return LONG_FORMAT_PROXY_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_DB_NAME_ARG", function () {
      return LONG_FORMAT_DB_NAME_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_AUTH_TYPE_ARG", function () {
      return LONG_FORMAT_AUTH_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_SID_ARG", function () {
      return LONG_FORMAT_SID_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_TRUST_STORE_FILE_ARG", function () {
      return LONG_FORMAT_TRUST_STORE_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_TRUST_STORE_PASSWORD_ARG", function () {
      return LONG_FORMAT_TRUST_STORE_PASSWORD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_KEY_STORE_FILE_ARG", function () {
      return LONG_FORMAT_KEY_STORE_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_KEY_STORE_PASSWORD_ARG", function () {
      return LONG_FORMAT_KEY_STORE_PASSWORD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG", function () {
      return LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG", function () {
      return LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_IS_REFRESH_ARG", function () {
      return LONG_FORMAT_IS_REFRESH_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG", function () {
      return LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG", function () {
      return LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_CONN_PARAMS_ARG", function () {
      return LONG_FORMAT_CONN_PARAMS_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_IS_ENCRYPTED_DATA_ARG", function () {
      return LONG_FORMAT_IS_ENCRYPTED_DATA_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_DB_QUERY_ARG", function () {
      return LONG_FORMAT_DB_QUERY_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_INSTANCE_ARG", function () {
      return LONG_FORMAT_INSTANCE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_VECTOR_PREFIX", function () {
      return LONG_FORMAT_VECTOR_PREFIX;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_TWO_SSL_ENABLE_ARG", function () {
      return LONG_FORMAT_TWO_SSL_ENABLE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG", function () {
      return LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_JMX_CONNECTION_URL_ARG", function () {
      return LONG_FORMAT_JMX_CONNECTION_URL_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PID_ARG", function () {
      return LONG_FORMAT_PID_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PID_FILE_ARG", function () {
      return LONG_FORMAT_PID_FILE_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_OCCURENCE_COUNT_ARG", function () {
      return LONG_FORMAT_OCCURENCE_COUNT_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "SPACE_SEPARATOR", function () {
      return SPACE_SEPARATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PASSWORD_SEPERATOR", function () {
      return PASSWORD_SEPERATOR;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DOLLAR_SIGN", function () {
      return DOLLAR_SIGN;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "OPENING_BRACKET", function () {
      return OPENING_BRACKET;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CLOSING_BRACKET", function () {
      return CLOSING_BRACKET;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_IS_ENCRYPTED_PWD_ARG", function () {
      return LONG_FORMAT_IS_ENCRYPTED_PWD_ARG;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LONG_FORMAT_PROXY_URL_ARG", function () {
      return LONG_FORMAT_PROXY_URL_ARG;
    });

    var LONG_FORMAT_MON_TYPE_ARG = "--monType"; // Monitor type for new Options (CMD-1/REST-2/MBEAN-3/DB-4)

    var LONG_FORMAT_OUTPUT_TYPE_ARG = "--respType"; // Output type for new Options (string-1/keyValue-2/JSON-3/JMX-4) of configured monitor

    var LONG_FORMAT_RETRY_ARG = "--maxRetryCount"; // Count of maximum retry to make connection

    var LONG_FORMAT_DELETE_VECTOR_ARG = "--vecPersistTime"; // delVecTime for new Options

    var LONG_FORMAT_INTERVAL_ARG = "--interval"; // intervaL for new Options

    var LONG_FORMAT_TIER_ARG = "--tier"; // Tier for new Options

    var LONG_FORMAT_SERVER_ARG = "--server"; // server for new Options

    var LONG_FORMAT_HOST_ARG = "--host"; //  host

    var LONG_FORMAT_PORT_ARG = "--port"; //  port

    var LONG_FORMAT_USER_ARG = "--user"; //  user

    var LONG_FORMAT_PWD_ARG = "--pwd"; //  password

    var LONG_FORMAT_PROTOCOL_ARG = "--protocol"; //  password

    var LONG_FORMAT_REMOTE_TIER_ARG = "--remoteTierUI"; // remote Tier 

    var LONG_FORMAT_REMOTE_SERVER_ARG = "--remoteServerUI"; // remote server 

    var LONG_FORMAT_REMOTE_HOST_ARG = "--remoteHost"; // Remote host

    var LONG_FORMAT_REMOTE_PORT_ARG = "--remotePort"; // Remote port

    var LONG_FORMAT_REMOTE_USER_ARG = "--remoteUser"; // Remote user

    var LONG_FORMAT_REMOTE_PWD_ARG = "--remotePwd"; // Remote password

    var LONG_FORMAT_PRIVATE_KEY_ARG = "--privateKey"; // private key

    var LONG_FORMAT_PASSPHRASE_ARG = "--passphrase"; // passphrase

    var LONG_FORMAT_PUBLIC_KEY_ARG = "--publicKey"; // public key

    var LONG_FORMAT_PROXY_HOST_ARG = "--proxyHost"; // Proxy host

    var LONG_FORMAT_PROXY_PORT_ARG = "--proxyPort"; // Proxy port

    var LONG_FORMAT_PROXY_USER_ARG = "--proxyUser"; // Proxy username

    var LONG_FORMAT_PROXY_PWD_ARG = "--proxyPwd"; // Proxy password

    var LONG_FORMAT_DB_NAME_ARG = "--dbName"; //DB name

    var LONG_FORMAT_AUTH_TYPE_ARG = "--authMode"; // Auth type

    var LONG_FORMAT_SID_ARG = "--sid"; //SID

    var LONG_FORMAT_TRUST_STORE_FILE_ARG = "--truststoreFile"; //Trust store file path

    var LONG_FORMAT_TRUST_STORE_PASSWORD_ARG = "--truststorePwd"; // Trust store password

    var LONG_FORMAT_KEY_STORE_FILE_ARG = "--keystoreFile"; // Key store file path

    var LONG_FORMAT_KEY_STORE_PASSWORD_ARG = "--keystorePwd"; //key store password

    var LONG_FORMAT_TRUST_STORE_FILE_TYPE_ARG = "--truststoreFileType"; // Trust store file path

    var LONG_FORMAT_VECTOR_PERSIST_COUNT_ARG = "--vecPersistCount"; // Vector persist count

    var LONG_FORMAT_IS_REFRESH_ARG = "--isRefresh"; // IS REFRESH 

    var LONG_FORMAT_SERVICE_ACCOUNT_FILE_ARG = "--serviceAccFile"; // Service account file 

    var LONG_FORMAT_SERVICE_ACCOUNT_TOKEN_FILE_PATH_ARG = "--SATokenFilePath"; //Service account token file path

    var LONG_FORMAT_CONN_PARAMS_ARG = "--connParams"; //Connection params

    var LONG_FORMAT_IS_ENCRYPTED_DATA_ARG = "--isDataEncrypt"; // encrypted data

    var LONG_FORMAT_DB_QUERY_ARG = "--dbQuery"; // Db query

    var LONG_FORMAT_INSTANCE_ARG = "--instance"; //  instance

    var LONG_FORMAT_VECTOR_PREFIX = "--vecPrefix"; // vecPrefix

    var LONG_FORMAT_TWO_SSL_ENABLE_ARG = "--isTwoWaySSL"; //SSL enable

    var LONG_FORMAT_JMX_CONNECTOR_SEARCH_PATTERN_ARG = "--searchPattern"; //JMX connector search pattern

    var LONG_FORMAT_JMX_CONNECTION_URL_ARG = "--url"; //Jmx connection url

    var LONG_FORMAT_PID_ARG = "--pid"; //Process id for JMX monitor

    var LONG_FORMAT_PID_FILE_ARG = "--pidFile"; //Process Id file 

    var LONG_FORMAT_OCCURENCE_COUNT_ARG = "--index";
    var SPACE_SEPARATOR = " ";
    var PASSWORD_SEPERATOR = "cav_e";
    var DOLLAR_SIGN = "$";
    var OPENING_BRACKET = "{";
    var CLOSING_BRACKET = "}";
    var LONG_FORMAT_IS_ENCRYPTED_PWD_ARG = "--isEncryptPwd";
    var LONG_FORMAT_PROXY_URL_ARG = "--proxyUrl"; //  proxy url

    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts":
  /*!*************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts ***!
    \*************************************************************************************************************/

  /*! exports provided: AdvSettings, PatternVal */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_containers_advSettingsDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "AdvSettings", function () {
      return AdvSettings;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "PatternVal", function () {
      return PatternVal;
    });

    var AdvSettings = /*#__PURE__*/_createClass(function AdvSettings() {
      _classCallCheck(this, AdvSettings);

      this.delVecCount = 5; // delete vector count -Time (in minute) to hold non-exist vector

      this.delay = 60000; //delay 

      this.rCount = 60; //Count of maximum retry to make connection

      this.jFile = ""; // service account json file path

      this.tFile = ""; // service account token file path

      this.dbCon = false; // DB connection

      this.oP = []; // other parameters
    });

    var PatternVal = /*#__PURE__*/_createClass(function PatternVal() {
      _classCallCheck(this, PatternVal);

      this.pattern = ''; // pattern value

      this.upVal = ''; // updated value

      this.id = 0;
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/cmd-data.ts":
  /*!****************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/cmd-data.ts ***!
    \****************************************************************************************************/

  /*! exports provided: CmdData */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_containers_cmdDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CmdData", function () {
      return CmdData;
    });
    /* harmony import */


    var _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! ./adv-settings-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts");

    var CmdData = /*#__PURE__*/_createClass(function CmdData() {
      _classCallCheck(this, CmdData);

      this.host = ""; // host

      this.port = 22; // port

      this.user = ""; // username

      this.pwd = ""; //pwd

      this.pubKey = ""; // public key

      this.prvKey = ""; //private key

      this.passphrase = ""; //passphrase hidden

      this.pHost = ""; //proxy host

      this.pPort = 3128; // proxy port

      this.pUser = ""; // proxy user

      this.proxyPwd = ""; // proxy pwd

      this.rT = ""; // remote tier

      this.rS = ""; // remote server display name

      this.rSDpName = "";
      this.executeRemote = false;
      this.cT = "";
      this.adv = new _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__["AdvSettings"]();
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/db-data.ts":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/db-data.ts ***!
    \***************************************************************************************************/

  /*! exports provided: DbData */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_containers_dbDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "DbData", function () {
      return DbData;
    });
    /* harmony import */


    var _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! ./adv-settings-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts");

    var DbData = /*#__PURE__*/_createClass(function DbData() {
      _classCallCheck(this, DbData);

      this.host = ""; // host

      this.user = ""; // username

      this.pwd = ""; //pwd

      this.rT = ""; // remote tier

      this.rS = ""; // remote server display name

      this.rSDpName = "";
      this.executeRemote = false;
      this.cT = "";
      this.tsf = ""; // Trust Store File-path

      this.tsp = ""; // Trust Store Password

      this.tst = ""; // Trust Store Password

      this.ksf = ""; // Key Store File-path

      this.ksp = ""; // Key Store password

      this.dbName = ""; //  Database name

      this.query = ""; // query

      this.sslType = ""; // ssl Type

      this.auth = "0"; // auth for oracle

      this.sid = ""; // sid 

      this.custSSL = ""; //custom ssl type

      this.adv = new _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__["AdvSettings"]();
      this.classPath = "";
      this.javaHome = "";
      this.name = "";
      this.driverClass = "";
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/jmx-data.ts":
  /*!****************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/jmx-data.ts ***!
    \****************************************************************************************************/

  /*! exports provided: JmxData */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_containers_jmxDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "JmxData", function () {
      return JmxData;
    });
    /* harmony import */


    var _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! ./adv-settings-data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/adv-settings-data.ts");

    var JmxData = /*#__PURE__*/_createClass(function JmxData() {
      _classCallCheck(this, JmxData);

      this.host = "127.0.0.1"; // host

      this.user = ""; // username

      this.pwd = ""; //pwd

      this.pHost = ""; //proxy host

      this.pPort = 3128; // proxy port

      this.pUser = ""; // proxy user

      this.proxyPwd = ""; // proxy pwd

      this.instance = "";
      this.tsf = ""; // Trust Store File-path

      this.tsp = ""; // Trust Store Password

      this.tst = ""; // Trust Store Password

      this.ksf = ""; // Key Store File-path

      this.ksp = ""; // Key Store password

      this.connURL = "JMX_RMI"; //JMX Connection URL

      this.sslEnable = false;
      this.otherConn = "";
      this.occCount = 1; //Occurence count

      this.jmxConn = "setting";
      this.jmxConnPID = "procId";
      this.adv = new _adv_settings_data__WEBPACK_IMPORTED_MODULE_0__["AdvSettings"]();
      this.agent = "CMON";
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/rest-data.ts":
  /*!*****************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/containers/rest-data.ts ***!
    \*****************************************************************************************************/

  /*! exports provided: RestData */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_addMonitor_containers_restDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "RestData", function () {
      return RestData;
    });

    var RestData = /*#__PURE__*/_createClass(function RestData() {
      _classCallCheck(this, RestData);

      this.host = ""; // host

      this.user = ""; // username

      this.pwd = ""; //pwd

      this.pHost = ""; //proxy host

      this.pPort = 3128; // proxy port

      this.pURL = ""; // proxy URL

      this.pUser = ""; // proxy user

      this.pPwd = ""; // proxy pwd

      this.setRequired = false;
      this.protocol = "http://";
      this.isServer = false;
      this.isTier = false;
      this.header = []; //Header

      this.restUrl = ""; // Rest Url
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/log-monitors/log-pattern-monitor/log-pattern-data.ts":
  /*!**********************************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/log-monitors/log-pattern-monitor/log-pattern-data.ts ***!
    \**********************************************************************************************************************/

  /*! exports provided: LogPatternData */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_logMonitors_logPatternMonitor_logPatternDataTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "LogPatternData", function () {
      return LogPatternData;
    });

    var LogPatternData = /*#__PURE__*/_createClass(function LogPatternData() {
      _classCallCheck(this, LogPatternData);

      this.runOptions = "2";
      this.runOptions_ui = "Run Once";
      this.fileNameSelection = "-f";
      this.fileName = '';
      this.metric = "Application Metrics";
      this.journalType = "all";
      this.gdfDetails = [];
      this.groupId = -1;
      this.excludeTier = '';
      this.setRequired = false; //for log data monitor

      this.enableTab = false;
      this.enableSpace = false;
      this.enableDoubleQuotes = false;
      this.enableSingleQuotes = false;
      this.enableComma = false;
      this.enableBackSlash = false;
      this.enableSemiColon = false;
      this.enableDash = false;
      this.enableEqual = false;
      this.enablefieldSepOthers = false;
      this.headerLines = "0";
      this.logLinePattern = ''; // for bug 77321- support of -j option in Log Data Monitor.

      this.trailingChar = "0";
      this.truncateFile = false;
      this.logFileSize = 10;
      this.checkLogRemote = false;
      this.rolloverCount = 10; //added for snmp monitor

      this.pMode = 0;
      this.metaData = "Tier>Server>Instance"; // metaData:string ="Tier>Server>Instance";

      this.snmpHost = '127.0.0.1';
      this.ver = '2c';
      this.com = 'public';
      this.user = '';
      this.authPro = '';
      this.authParams = '';
      this.encryPr = '';
      this.privParams = '';
      this.sl = '';
    });
    /***/

  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.scss":
  /*!**************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.scss ***!
    \**************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_testMon_testMonComponentScss(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/test-mon/test-mon.component.ts":
  /*!************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.ts ***!
    \************************************************************************************************/

  /*! exports provided: TestMonComponent */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_testMon_testMonComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TestMonComponent", function () {
      return TestMonComponent;
    });
    /* 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 _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! ../../service/monitorupdownstatus.service */
    "./src/app/pages/monitor-up-down-status/service/monitorupdownstatus.service.ts");
    /* harmony import */


    var _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../add-monitor/constants/monitor-configuration-constants */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/constants/monitor-configuration-constants.ts");
    /* harmony import */


    var _tier_server_tier_server_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../tier-server/tier-server.component */
    "./src/app/pages/monitor-up-down-status/configure-monitors/tier-server/tier-server.component.ts");
    /* harmony import */


    var _add_monitor_add_monitor_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../add-monitor/add-monitor.component */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-monitor/add-monitor.component.ts");
    /* harmony import */


    var _add_custom_monitor_containers_testMon_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../add-custom-monitor/containers/testMon.data */
    "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/testMon.data.ts");
    /* harmony import */


    var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");

    var TestMonComponent = /*#__PURE__*/function () {
      function TestMonComponent(monitorupdownService, cd, messageService) {
        _classCallCheck(this, TestMonComponent);

        this.monitorupdownService = monitorupdownService;
        this.cd = cd;
        this.messageService = messageService;
        this.showMonLog = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.monData = new _add_custom_monitor_containers_testMon_data__WEBPACK_IMPORTED_MODULE_6__["TestMonDto"]();
        this.frequency = 0;
        this.displayChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.openDash = true;
        this.tierServerInfo = [];
        this.testLoading = false;
      }

      return _createClass(TestMonComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          this.dataToTS = this.testMonData.tierInfo;
          this.frequencyList = [{
            label: '10 sec',
            value: '10000'
          }, // {label: '30 sec', value: '30000'}, // removing from list bug - 138429
          {
            label: '1 min',
            value: '60000'
          }];
          this.durationList = [{
            label: '1',
            value: '60000'
          }, {
            label: '2',
            value: '120000'
          }, {
            label: '5',
            value: '300000'
          }, {
            label: '10',
            value: '600000'
          }];
        }
      }, {
        key: "executeTest",
        value: function executeTest() {
          var _this21 = this;

          var me = this;
          this.tierServerInfo = this.tierChild.getTierServerInfo();

          if (this.tierServerInfo.length == 0) {
            return;
          }

          this.monData.tierServerInfo.push({
            tier: this.tierServerInfo[0]['tier'],
            server: this.tierServerInfo[0]['server']
          });
          this.monitorupdownService.nodeName = this.tierServerInfo[0]['nodeName'];
          this.monData.objectId = this.testMonData.objectId;
          this.monData.gConfId = this.testMonData.gConfId;
          this.monData.topology = this.testMonData.topo;
          this.monData.techName = this.testMonData.techName;
          if (this.executeTestMode == '1') this.monData.isFromTable = true;
          var that = this;
          that.testLoading = true;
          me.monitorupdownService.executeTest(this.monData, this.monitorupdownService.nodeName).subscribe(function (res) {
            if (res['status']) {
              _this21.openDash = !_this21.openDash;
              _this21.trNum = res['trNum'];

              _this21.showMonLog.emit(_this21.trNum);

              me.messageService.add({
                key: 'testMon',
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["SEVERITY_SUCCESS"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["SUMMARY_SUCCESS"],
                detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["RESPONSE_MSG"]]
              });
              me.cd.detectChanges();
            } else {
              me.messageService.add({
                key: 'testMon',
                severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["SEVERITY_ERROR"],
                summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["SUMMARY_ERROR"],
                detail: res[_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_3__["RESPONSE_MSG"]]
              });
            }

            that.testLoading = false;
            me.cd.detectChanges();
          }, function () {
            that.testLoading = false;
          });
        }
      }, {
        key: "dialogCloseEvent",
        value: function dialogCloseEvent() {
          this.displayChange.emit(false);
        }
      }, {
        key: "showData",
        value: function showData() {
          var url = this.generateCopyLink(this.trNum);
          window.open(url, '_blank');
        }
      }, {
        key: "generateCopyLink",
        value: function generateCopyLink(tr) {
          var str1 = '/UnifiedDashboard/copylink.html?requestFrom=CopyLink&u=guest&prodType=Netstorm&testRun=';
          var str2 = '&opType=11&dashboardName=Test_Monitor&dashboardPath=/dashboards/system&viewby=0&preset=WS&st=0&et=0&running=false';
          var finalStr = str1 + tr + str2;
          return finalStr;
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.displayChange.unsubscribe();
        }
      }]);
    }();

    TestMonComponent.ctorParameters = function () {
      return [{
        type: _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_2__["MonitorupdownstatusService"]
      }, {
        type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_7__["CavMessageService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_tier_server_tier_server_component__WEBPACK_IMPORTED_MODULE_4__["TierServerComponent"])], TestMonComponent.prototype, "tierChild", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_add_monitor_add_monitor_component__WEBPACK_IMPORTED_MODULE_5__["AddMonitorComponent"])], TestMonComponent.prototype, "addMon", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()], TestMonComponent.prototype, "showMonLog", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], TestMonComponent.prototype, "displayTestMon", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()], TestMonComponent.prototype, "displayChange", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], TestMonComponent.prototype, "testMonData", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()], TestMonComponent.prototype, "executeTestMode", void 0);
    TestMonComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-test-mon',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./test-mon.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.html"))["default"],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./test-mon.component.scss */
      "./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.scss"))["default"]]
    })], TestMonComponent);
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.module.ts":
  /*!*********************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.module.ts ***!
    \*********************************************************************************************/

  /*! exports provided: TestMonModule */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_testMon_testMonModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TestMonModule", function () {
      return TestMonModule;
    });
    /* 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 _test_mon_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./test-mon.component */
    "./src/app/pages/monitor-up-down-status/configure-monitors/test-mon/test-mon.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/shared/header/header.module */
    "./src/app/shared/header/header.module.ts");
    /* harmony import */


    var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _tier_server_tier_server_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../tier-server/tier-server.module */
    "./src/app/pages/monitor-up-down-status/configure-monitors/tier-server/tier-server.module.ts");

    var routes = [{
      path: '',
      component: _test_mon_component__WEBPACK_IMPORTED_MODULE_3__["TestMonComponent"]
    }];

    var TestMonModule = /*#__PURE__*/_createClass(function TestMonModule() {
      _classCallCheck(this, TestMonModule);
    });

    TestMonModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_test_mon_component__WEBPACK_IMPORTED_MODULE_3__["TestMonComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToolbarModule"], src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_5__["HeaderModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["InputTextModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TreeModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ConfirmDialogModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["FieldsetModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ProgressSpinnerModule"], _tier_server_tier_server_module__WEBPACK_IMPORTED_MODULE_7__["TierServerModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"]],
      providers: [primeng__WEBPACK_IMPORTED_MODULE_4__["ConfirmationService"]],

      /*Required for opening in model window. */
      entryComponents: [],
      exports: [_test_mon_component__WEBPACK_IMPORTED_MODULE_3__["TestMonComponent"]]
    })], TestMonModule);
    /***/
  },

  /***/
  "./src/app/pages/monitor-up-down-status/configure-monitors/tier-server/tier-server.module.ts":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/monitor-up-down-status/configure-monitors/tier-server/tier-server.module.ts ***!
    \***************************************************************************************************/

  /*! exports provided: TierServerModule */

  /***/
  function _src_app_pages_monitorUpDownStatus_configureMonitors_tierServer_tierServerModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "TierServerModule", function () {
      return TierServerModule;
    });
    /* 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 _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! src/app/shared/header/header.module */
    "./src/app/shared/header/header.module.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _tier_server_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ./tier-server.component */
    "./src/app/pages/monitor-up-down-status/configure-monitors/tier-server/tier-server.component.ts");

    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"], src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_4__["HeaderModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TreeModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ConfirmDialogModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["FieldsetModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ProgressSpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ChipsModule"]];
    var components = [_tier_server_component__WEBPACK_IMPORTED_MODULE_7__["TierServerComponent"]];

    var TierServerModule = /*#__PURE__*/_createClass(function TierServerModule() {
      _classCallCheck(this, TierServerModule);
    });

    TierServerModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [components],
      imports: [imports],
      schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]],
      exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"], _tier_server_component__WEBPACK_IMPORTED_MODULE_7__["TierServerComponent"]],
      providers: []
    })], TierServerModule);
    /***/
  }
}]);