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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div>\n    <p-toolbar class=\"ui-secondary-toolbar\">\n        <div class=\"p-grid p-justify-between p-align-center pl-5 pr-5\">\n            <a routerLink=\"/monitor/custom-monitors/availCustMon/customsnmp\">\n                <span class=\"icons8 icons8-left toolbar-icon-color\"></span>\n            </a>\n            <div class=\"p-col ui-toolbar-text\">Configure SNMP Monitor</div>\n            <div>\n                <button  pButton form=\"ngForm\" class=\"ui-button ui-button-rounded ui-button-right\" \n                    (click)=\"saveMode = '1'\"   label=\"Save\"  [disabled] = \"!isAdminPermisson\"\n                    title=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle :'Save'}}\">\n                </button>\n                <button  pButton form=\"ngForm\" class=\"mx-6 ui-button ui-button-rounded ui-button-right\" \n                    (click)=\"saveMode = '2'\"  label=\"Save & Deploy\"  [disabled] = \"!isAdminPermisson\"\n                    title=\"{{sessionService.noPermissionTitle ? sessionService.noPermissionTitle :'Save & Deploy'}}\">\n                </button>\n            </div>\n        </div>\n    </p-toolbar>\n\n    <div class=\"content-body\">\n        <form class=\"monitor-ui-form\" (ngSubmit)=\"saveSnmpConfData()\" id=\"ngForm\" ngNativeValidate>\n            <p-tabView class=\"tabWauto mini-tab\">\n                <p-tabPanel header=\"Configure\">\n                    <div class=\"p-grid  w-100-p\" >\n                        <div class=\"w-100-p mb-8\">\n                            <app-metric-group-info class=\"d-block\" [item]=\"snmpData\"></app-metric-group-info>\n                        </div>\n                        <div class = \"p-col-2\" *ngIf=\"showMibTree\" >\n                            <p-panel header='MIB Tree - {{customMonService.mibs}}'>\n                              <div>\n                                <p-tree [value]=\"files\" selectionMode=\"single\" [(selection)]=\"selectedNode\" dynamic=\"true\" \n                                  [contextMenu]=\"cm\" (onNodeContextMenuSelect)=\"nodeContentMenu($event)\"\n                                  (onNodeSelect)=\"nodeSelect($event)\" (onNodeExpand)=\"loadNode($event)\"\n                                  [filter]=\"true\" filterMode=\"strict\" filterPlaceholder=\"Search\"\n                                  class=\"my-tree scrollHeight\">\n                                  <ng-template let-node pTemplate=\"default\">\n                                    <span [style.color]=\"node.color\" title={{node.label}}>{{node.label}}</span>\n                                  </ng-template>\n                                </p-tree>\n                                <p-contextMenu #cm [model]=\"items\" appendTo=\"body\"></p-contextMenu>\n                              </div>\n                            </p-panel>\n                          </div>\n\n                          <div [className]=\"showMibTree ? 'p-col-10' : 'p-col'\">\n                                <div class=\"w-100-p\" >\n                                    <app-metric-hierarchy [showMetHierCols]=\"arrMetricHier\" (tableData)=\"metricTableData($event)\" [item]=\"snmpData\">\n                                    </app-metric-hierarchy>\n                                </div>\n                                <div class=\"w-100-p\" >\n                                    <app-metric-configuration [showMetConfCols]=\"arrMetricConf\" (mConfTableData)=\"metricConfTableData($event)\"\n                                        [item]=\"snmpData\">\n                                    </app-metric-configuration>\n                                </div>\n                          </div>\n                    </div>\n                </p-tabPanel>\n                \n               <!-- <p-tabPanel header=\"View Deployment\" [disabled]=\"disableViewDep\">\n                    <app-configured-monitor-info [hideActionCol]=\"hideActionCol\" [showCols]=\"cols\"></app-configured-monitor-info>\n                </p-tabPanel> -->\n            </p-tabView>\n        </form>\n    </div>\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\n    <p-dialog [(visible)]=\"showViewInfoDialog\" [resizable]=\"true\" [modal]=\"true\" \n        [draggable]=\"true\" [closable]=\"false\" [style]=\"{ width: '900px' }\" closeIcon=\"icons8-delete\">\n        <p-header class=\"p-grid p-align-center p-justify-between\">\n                <div>View Information - {{selectedMib}}</div>\n                <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-delete\" (click)=\"showViewInfoDialog = false\"></button>\n        </p-header>\n\n        <p-table [value]=\"mibInformation\" class=\"all-tables\">\n            <ng-template pTemplate=\"body\" let-eachNodeInfo> \n                <tr> \n                    <th class=\"text-left\" width=\"100px\">Name</th>\n                    <td [title]=\"eachNodeInfo.name\">{{eachNodeInfo.name}}</td> \n                </tr>\n                <tr>\n                    <th class=\"text-left\" width=\"100px\">OID</th>\n                    <td [title]=\"eachNodeInfo.oid\">{{eachNodeInfo.oid}}</td>\n                </tr>\n                <tr>\n                    <th class=\"text-left\" width=\"100px\">Detailed OID</th> \n                    <td [title]=\"eachNodeInfo.dOid\" style=\"word-wrap: break-word;\">{{eachNodeInfo.dOid}}</td>\n                </tr>\n                <tr>\n                    <th class=\"text-left\" width=\"100px\">Description</th>\n                    <td [title]=\"eachNodeInfo.desc\">{{eachNodeInfo.desc}}</td>\n                </tr>\n                <tr>\n                    <th class=\"text-left\" width=\"100px\">Data Type</th> \n                    <td [title]=\"eachNodeInfo.dataType\">{{eachNodeInfo.dataType}}</td> \n                </tr>\n                <tr>\n                   <th class=\"text-left\" width=\"100px\">Syntax</th>\n                   <td [title]=\"eachNodeInfo.syntax\">{{eachNodeInfo.syntax}}</td>\n                </tr> \n            </ng-template> \n       </p-table>\n       <p-footer class=\"p-grid p-align-center p-justify-end\">\n            <button pButton type=\"button\" label=\"Close\" class=\"btn-secondary-outline\"\n            (click)=\"showViewInfoDialog = false\"></button>\n        </p-footer>\n    </p-dialog>\n</div>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("app-configure-custom-snmp-monitor .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-configure-custom-snmp-monitor .my-tree .ui-tree {\n  width: 100%;\n}\napp-configure-custom-snmp-monitor .my-tree .p-tree-filter-container {\n  width: 100%;\n}\napp-configure-custom-snmp-monitor .my-tree .p-tree-filter {\n  width: 100%;\n}\napp-configure-custom-snmp-monitor .ui-tree .ui-tree-filter-container .ui-tree-filter-icon {\n  right: auto;\n}\napp-configure-custom-snmp-monitor .scrollHeight .ui-tree-container {\n  height: calc(100vh - 230px);\n  overflow: auto;\n}");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigureCustomSnmpMonitorComponent", function() { return ConfigureCustomSnmpMonitorComponent; });
/* 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 _generic_gdf_containers_metric_configuration_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../generic-gdf/containers/metric-configuration-data */ "./src/app/pages/generic-gdf/containers/metric-configuration-data.ts");
/* harmony import */ var _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../generic-gdf/containers/metric-hierarchy-data */ "./src/app/pages/generic-gdf/containers/metric-hierarchy-data.ts");
/* harmony import */ var _services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/custom-monitor.service */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/services/custom-monitor.service.ts");
/* harmony import */ var _containers_snmp_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../containers/snmp-data */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/snmp-data.ts");
/* harmony import */ var _service_utility_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../service/utility.service */ "./src/app/pages/monitor-up-down-status/service/utility.service.ts");
/* harmony import */ var _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__ = __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 _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/monitorupdownstatus.service */ "./src/app/pages/monitor-up-down-status/service/monitorupdownstatus.service.ts");
/* harmony import */ var _configured_monitor_info_configured_monitor_info_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../configured-monitor-info/configured-monitor-info.component */ "./src/app/pages/monitor-up-down-status/configure-monitors/configured-monitor-info/configured-monitor-info.component.ts");
/* harmony import */ var _containers_api_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../containers/api-data */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/api-data.ts");
/* harmony import */ var _constants_mon_rest_api_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../constants/mon-rest-api-constants */ "./src/app/pages/monitor-up-down-status/constants/mon-rest-api-constants.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var src_app_pages_generic_gdf_services_generic_gdf_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/pages/generic-gdf/services/generic-gdf-service */ "./src/app/pages/generic-gdf/services/generic-gdf-service.ts");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_16__ = __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_17__ = __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");


















let ConfigureCustomSnmpMonitorComponent = class ConfigureCustomSnmpMonitorComponent {
    constructor(customMonService, msgService, monUpDown, router, sessionService, genericSerObj) {
        this.customMonService = customMonService;
        this.msgService = msgService;
        this.monUpDown = monUpDown;
        this.router = router;
        this.sessionService = sessionService;
        this.genericSerObj = genericSerObj;
        this.saveMode = '1';
        this.cols = [];
        this.hideActionCol = true;
        this.snmpConnDialog = false;
        this.arrMetricHier = []; // array for sending columns index user wants to show in UI.
        this.arrMetricConf = [];
        this.snmpData = new _containers_snmp_data__WEBPACK_IMPORTED_MODULE_5__["SnmpData"]();
        this.domainName = '';
        this.bsPathName = []; // basePath node's value
        this.disableViewDep = true;
        this.showMibTree = true; // show MIB Tree if data is present otherwise hide tree.
        this.apiData = new _containers_api_data__WEBPACK_IMPORTED_MODULE_10__["APIData"]();
        this.loading = false;
        this.showViewInfoDialog = false; // flag to show view information dialog.
        this.mibInformation = [];
        this.oidOpt = "";
    }
    ngOnInit() {
        this.isAdminPermisson = this.sessionService.isFeatureWrite(src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_17__["CAV_FEATURES"].MONITORS.NAME, src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_17__["CAV_FEATURES"].MONITORS.SUB_FEATURES.MONITORS);
        this.customMonService.outputLength = 0; // for showing metric hierarchy tree data as per design need to set this value. (No use in snmp UI)
        // show metric hierarchy table columns
        this.arrMetricHier = [
            { field: '_metadata', header: 'Metric Hierarchy Component', visible: false, width: '200px' },
            { field: '_dispName', header: 'Display Name', visible: false, width: '150px' },
            { field: '_oid', header: 'OID', visible: false, align: 'right', width: '130px' },
            { field: '_useAsTag_ui', header: 'Use As Tag', visible: false, width: '85px' },
        ];
        // show metric configuration table columns
        this.arrMetricConf = [
            { field: '_mN', header: 'Metric Name', visible: false, width: '150px' },
            { field: '_mDN', header: 'Display Name', visible: false, width: '150px' },
            { field: '_unit', header: 'Unit', visible: false, width: '90px' },
            { field: '_oid', header: 'OID', align: 'right', width: '120px' },
            { field: '_dT', header: 'Data type', visible: false, width: '120px' },
            { field: 'syntax', header: 'Syntax', visible: false, width: '180px' },
            { field: '_metDesc', header: 'Description', visible: false, width: '250px' },
        ];
        this.cols = [
            { field: "tierInfo", header: 'Tier Information', visible: true },
        ];
        this.loading = true;
        if (this.customMonService.isFromEdit) // check whether UI is from "ADD" or "EDIT"  mode
         {
            this.snmpData = Object.assign({}, this.customMonService.getCustomSnmpDataAtEdit);
            this.snmpData.gdfInfo.depMHComp.forEach(val => {
                if (val._defVal !== undefined && val._defVal !== null && val._oid === '-1' || val._oid === '-2') {
                    val._oid = val._defVal;
                }
            });
            const hostExist = this.snmpData.gdfInfo.depMHComp.some(val => val._metadata === 'Host');
            const deviceExist = this.snmpData.gdfInfo.depMHComp.some(val => val._metadata === 'Device');
            if (!hostExist) {
                let hostObject = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
                hostObject['_metadata'] = "Host";
                hostObject['_dispName'] = "Host";
                hostObject['_oid'] = "0.0.1.2";
                hostObject['_useAsTag'] = false;
                hostObject['_useAsTag_ui'] = "No";
                hostObject['id'] = this.snmpData.gdfInfo.depMHComp.length + 1;
                hostObject['enable'] = false;
                this.snmpData.gdfInfo.depMHComp.push(hostObject);
            }
            if (!deviceExist) {
                let deviceObject = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
                deviceObject['_metadata'] = "Device";
                deviceObject['_dispName'] = "Device";
                deviceObject['_oid'] = "0.0.1.3";
                deviceObject['_useAsTag'] = false;
                deviceObject['_useAsTag_ui'] = "No";
                deviceObject['id'] = this.snmpData.gdfInfo.depMHComp.length + 1;
                deviceObject['enable'] = false;
                this.snmpData.gdfInfo.depMHComp.push(deviceObject);
            }
            this.parseOptions(this.snmpData.opt);
            this.disableViewDep = false;
            this.monUpDown.getConfigInfo(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["CUSTOM_SNMP"], this.snmpData.monN).subscribe(response => {
                this.loading = false;
                this.monInfoChild.getTableData(response);
            });
        }
        this.loading = true;
        // send request for gettig Mib Tree 
        this.customMonService.getMibTree(this.customMonService.mibs).subscribe(res => {
            this.loading = false;
            let str = "";
            if (res) {
                if (res['failedMibs'])
                    str = "\n\nThese Mib Files are either corrupt or all imports are not present : " + res['failedMibs'];
                if (res['status']) {
                    let obj = this.getParentRootNode(res.data, res.mibKey);
                    this.files = obj;
                    if (res['failedMibs'])
                        this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_WARNING"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_WARNING"], detail: res['msg'] + str });
                    else
                        this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_SUCCESS"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_SUCCESS"], detail: res['msg'] + str });
                }
                else // when MIB Tree data is not found need to open UI without tree
                 {
                    this.showMibTree = false;
                    this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: res['msg'] + str });
                }
            }
            else {
                this.showMibTree = false;
                let mibString = "";
                for (let i = 0; i < this.customMonService.mibs.length; i++) {
                    mibString = mibString + this.customMonService.mibs[i] + ",";
                }
                mibString = mibString.substring(0, mibString.length - 1);
                this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: "No MIB Tree found for MIB - " + mibString });
                return;
            }
        });
    }
    ngAfterViewInit() {
        if (!this.customMonService.isFromEdit) {
            let arr = [];
            let obj1 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj1['_metadata'] = "Country";
            obj1['_dispName'] = "Country";
            obj1['_oid'] = "India";
            obj1['_useAsTag'] = false;
            obj1['_useAsTag_ui'] = "No";
            obj1['id'] = arr.length + 1;
            obj1['enable'] = true;
            arr.push(obj1);
            let obj2 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj2['_metadata'] = "State";
            obj2['_dispName'] = "State";
            obj2['_oid'] = "From Deployment";
            obj2['_useAsTag'] = false;
            obj2['_useAsTag_ui'] = "No";
            obj2['id'] = arr.length + 1;
            obj2['enable'] = true;
            arr.push(obj2);
            let obj3 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj3['_metadata'] = "City";
            obj3['_dispName'] = "City";
            obj3['_oid'] = "From Deployment";
            obj3['_useAsTag'] = false;
            obj3['_useAsTag_ui'] = "No";
            obj3['id'] = arr.length + 1;
            obj3['enable'] = true;
            arr.push(obj3);
            let obj4 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj4['_metadata'] = "Area";
            obj4['_dispName'] = "Area";
            obj4['_oid'] = "From Deployment";
            obj4['_useAsTag'] = false;
            obj4['_useAsTag_ui'] = "No";
            obj4['id'] = arr.length + 1;
            obj4['enable'] = true;
            arr.push(obj4);
            let obj5 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj5['_metadata'] = "Host";
            obj5['_dispName'] = "Host";
            obj5['_oid'] = "1.1.3.6.1.2.1.1.5.0";
            obj5['_useAsTag'] = false;
            obj5['_useAsTag_ui'] = "No";
            obj5['id'] = arr.length + 1;
            obj5['enable'] = true;
            arr.push(obj5);
            let obj6 = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
            obj6['_metadata'] = "Device";
            obj6['_dispName'] = "Device";
            obj6['_oid'] = "0.0.1.2";
            obj6['_useAsTag'] = false;
            obj6['_useAsTag_ui'] = "No";
            obj6['id'] = arr.length + 1;
            obj6['enable'] = true;
            arr.push(obj6);
            this.customMonService.autoFillMetricHierarchyData(arr);
        }
    }
    saveSnmpConfData() {
        this.customMonService.saveMonitorConfProvider(true);
        this.snmpData.tabularData = this.customMonService.useTabularData;
        this.snmpData.gdfInfo.metricInfo = this.snmpData.gdfInfo.metricInfo.filter(function (val) {
            return val.depMConf[0]['_isChk'];
        });
        this.snmpData.gdfInfo.depMHComp = this.snmpData.gdfInfo.depMHComp.filter(function (val) {
            const oidRegex = /^(\d+\.)*\d+$/gm;
            if (!oidRegex.test(val._oid)) {
                val._defVal = val._oid;
                if ("From Deployment" === val._oid)
                    val._oid = '-2';
                else
                    val._oid = '-1';
            }
            return val['enable'];
        });
        if (!this.customMonService.validateConfigurationData(this.snmpData))
            return false;
        //Added for bug 143202
        if (this.isSubjectProvided(this.snmpData.gdfInfo.depMHComp)) {
            this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: 'Provide atleast one subject which will not be used as tag.' });
            return false;
        }
        if (this.snmpData.enterprise && this.oidOpt === "") {
            this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: 'Please select enterprise name from MIB tree.' });
            return false;
        }
        //adding custom category name to category tag in json backend
        this.snmpData.cat = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["CUSTOM_SNMP"];
        this.snmpData.gdfInfo.mV = _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SNMP_METRICS_NAME"];
        this.snmpData.monN = this.snmpData.gdfInfo.grpN;
        this.snmpData.oN = this.snmpData.gdfInfo.grpN;
        this.snmpData.mib = this.customMonService.mibs;
        this.snmpData.mdata = this.snmpData.gdfInfo.mD;
        let mibString = "";
        for (let i = 0; i < this.customMonService.mibs.length; i++) {
            mibString = mibString + this.customMonService.mibs[i] + ",";
        }
        mibString = mibString.substring(0, mibString.length - 1);
        if (this.snmpData.enterprise)
            this.snmpData.opt = "--monUiOpt " + mibString + " --enterprise " + this.oidOpt;
        else
            this.snmpData.opt = "--monUiOpt " + mibString;
        this.snmpData.opt += ' -o ';
        this.snmpData.gdfInfo.depMHComp.forEach((item) => {
            if (item._oid === '-2') {
                this.snmpData.opt += `${item._metadata}=,`;
            }
        });
        this.apiData['snmpDto'] = this.snmpData;
        this.apiData.objectId = this.customMonService.objectID;
        this.loading = true;
        this.customMonService.saveSnmpConf(this.apiData).subscribe(res => {
            if (res['status']) {
                this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_SUCCESS"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_SUCCESS"], detail: res['msg'] });
                this.monUpDown.monName = this.snmpData.monN;
                this.apiData = new _containers_api_data__WEBPACK_IMPORTED_MODULE_10__["APIData"](); // for clearing fields of the form after save
                this.monUpDown.customMonOpt = this.snmpData;
                this.snmpData = new _containers_snmp_data__WEBPACK_IMPORTED_MODULE_5__["SnmpData"]();
                this.loading = false;
                if (this.saveMode == '2') {
                    this.monUpDown.isFromSnmpSaveAndDeploy = true;
                    setTimeout(() => {
                        this.customMonService.saveDeploy(_add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["CUSTOM_SNMP"]);
                    }, 500);
                }
                else {
                    setTimeout(() => {
                        this.router.navigate([_constants_mon_rest_api_constants__WEBPACK_IMPORTED_MODULE_11__["AVAILABLE_CST_MON_URL"], _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["CUSTOM_SNMP"]]);
                    }, 500);
                }
            }
            else {
                this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: res['msg'] });
                this.loading = false;
            }
        });
    }
    isSubjectProvided(data) {
        if (data != 0) {
            for (let i = 0; i < data.length; i++) {
                if (!data[i]._useAsTag)
                    return false;
            }
            return true;
        }
    }
    metricTableData(data) {
        this.customMonService.setMetricHierarchy(data.depMHComp);
    }
    metricConfTableData(data) {
        this.customMonService.setMetricData(data);
    }
    loadNode(event) {
        let nodeNameArr = [];
        this.getNodeName(event.node, nodeNameArr);
        if (!event.node.mibKey)
            event.node.mibKey = event.node.parent.mibKey;
        this.loading = true;
        this.customMonService.getMibChild(event.node.dOid, event.node.mibKey, event.node.pduType).subscribe((res) => {
            this.loading = false;
            let me = this;
            let obj = this.getChildNode(res.data, res.mibKey);
            res.data.map(function (o) {
                // if(o.oid.includes("1.3.6.1.2") && o.oid.lastIndexOf (".")==9 ){
                if (o.oid.includes("1.3.6.1.4.1") && o.oid.lastIndexOf(".") == 11) {
                    me.oidOpt = o.name;
                    me.customMonService.enterpriseName = me.oidOpt;
                }
                return o.oid;
            });
            event.node.children = obj;
        });
    }
    // Method to get parent root node when Fetch MIB tree button is clicked.
    getParentRootNode(node, mibKey) {
        let vectorParentNode;
        let data = [];
        for (let i = 0; i < node.length; i++) {
            vectorParentNode = {
                "label": node[i].name,
                "key": "Domain",
                "children": [{ 'label': '' }],
                "expandedIcon": "gui gui-folder-open",
                "collapsedIcon": "gui gui-folder",
                "color": "black",
                "data": null,
                "oid": node[i].oid,
                "dOid": node[i].dOid,
                "mibKey": mibKey,
                "icon": "las-tree-solid"
            };
            data.push(vectorParentNode);
        }
        return data;
    }
    getChildNode(node, mibKey) {
        let vectorParentNode;
        let data = [];
        for (let i = 0; i < node.length; i++) {
            vectorParentNode = {
                "label": node[i]['name'],
                "key": node[i]['name'],
                "children": node[i]['child'] == true ? [{ 'label': '' }] : [],
                "expandedIcon": node[i]['child'] == true ? "gui gui-folder-open" : "gui gui-3d",
                "collapsedIcon": node[i]['child'] == true ? "gui gui-folder" : "gui gui-3d",
                "color": "black",
                "data": null,
                "oid": node[i]['oid'],
                "pduType": node[i]['pduType'],
                "desc": node[i]['desc'],
                "dataType": node[i]['dataType'],
                "dOid": node[i]['dOid'],
                "mibKey": mibKey,
                "syntax": node[i]['syntax'],
                "unit": node[i]['units'],
                "icon": !node[i]['child'] && node[i]['pduType'] === "get" ? 'las-leaf-solid' : (node[i]['pduType'] === "table") ? 'icons8 icons8-table' : 'icons8 icons8-opened-folder'
            };
            data.push(vectorParentNode);
        }
        return data;
    }
    nodeSelect(event) {
        let attributeDataArr = [];
        let attributeDataArr1 = [];
        if (event.node.children.length == 0) {
            // this.getBasePath(event.node.objName);
            this.snmpData.monN = event.node.objName;
        }
        if (event.node.data != null) {
            Object.keys(event.node.data).map(function (each) {
                if (each.includes(".")) {
                    event.node.data[each]['Name'] = each;
                    event.node.data[each]['Description'] = each;
                    attributeDataArr.push(event.node.data[each]);
                }
                else {
                    attributeDataArr.push(event.node.data[each]);
                }
            });
        }
        else {
            let nodeNameArr = [];
            this.getNodeName(event.node, nodeNameArr);
            if (event.node.data == null && event.node.children.length == 0) {
            }
        }
        this.snmpData.monN = "";
        this.snmpData.oN = "";
    }
    //used to getting basePath list and thier respective node names
    getBasePath(objName) {
        let bPathLabelArr = [];
        let bPathValuelArr = [];
        let that = this;
        let str = objName.split(":");
        this.domainName = str[0];
        let objNameStr = str[1].split(",");
        for (let i = 0; i < objNameStr.length; i++) {
            let bPathStr = objNameStr[i].split("=");
            bPathValuelArr.push(bPathStr[0]);
            that.bsPathName.push(bPathStr[1]);
            this.bPathList = _service_utility_service__WEBPACK_IMPORTED_MODULE_6__["UtilityService"].createListWithKeyValue(bPathLabelArr, bPathValuelArr);
        }
    }
    getNodeName(node, nodeNameArr) {
        if (node.parent == undefined) {
            this.domainName = node.label;
            return nodeNameArr;
        }
        else {
            nodeNameArr.push(node.label);
            return this.getNodeName(node.parent, nodeNameArr);
        }
    }
    createMetadata() {
        let list = [];
        let mD = '';
        mD = mD + "Enterprise>" + "Host>" + "Device>";
        let str = "";
        if (this.bPathList && this.bPathList.length > 0) {
            for (let i = 0; i < this.bPathList.length; i++) {
                let arr = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
                arr['id'] = i;
                arr['_metadata'] = this.bsPathName[i];
                arr['_keyInd'] = this.bPathList[i]['value'];
                str = str + this.bPathList[i]['value'] + ">";
                list.push(arr);
            }
        }
        mD = mD + str;
        mD = mD.substring(0, mD.length - 1); // for skipping last character (>)
        this.snmpData.gdfInfo.mD = mD;
        this.snmpData.gdfInfo.depMHComp = list;
    }
    onDialogClose(event) {
        this.snmpConnDialog = event;
    }
    openSNMPConDialog() {
        this.snmpConnDialog = true;
        this.customMonService.disableFields = true;
    }
    //Method called when "Add As Subject" is clicked to autofill in  metric hierarchy table.
    addAsSubject() {
        let arr = [];
        let existingTableData;
        //Added for Bug 141600 When adding new Subject for already Configured Monitor old Metric Components gets replaced
        if (this.customMonService.isFromEdit) {
            existingTableData = this.customMonService.getCustomSnmpDataAtEdit.gdfInfo.depMHComp;
        }
        else {
            existingTableData = this.customMonService.getMetricHierarchy();
        }
        if (existingTableData && existingTableData.length != 0)
            arr = existingTableData;
        let oidArr = arr.map(obj => obj._oid);
        if (oidArr.includes(this.selectedNode['oid'])) {
            this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: `Duplicate Entry '${this.selectedNode['oid']}'` });
            return;
        }
        let obj = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
        obj['_metadata'] = this.selectedNode.label;
        obj['_oid'] = this.selectedNode['oid'];
        obj['_useAsTag'] = false;
        obj['_useAsTag_ui'] = "No";
        obj['id'] = arr.length + 1;
        obj['enable'] = true;
        arr.push(obj);
        this.customMonService.autoFillMetricHierarchyData(arr);
    }
    //Method called when "Add As Metric" is clicked to autofill in  metric configuration table.
    addAsMetric() {
        let arr = [];
        let existingTableData = this.genericSerObj.getMConfTable();
        if (existingTableData && existingTableData.length != 0)
            arr = existingTableData;
        let oidArr = arr.map(obj => obj._oid);
        if (oidArr.includes(this.selectedNode['oid'])) {
            this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: `Duplicate Entry '${this.selectedNode['oid']}'` });
            return;
        }
        let obj = new _generic_gdf_containers_metric_configuration_data__WEBPACK_IMPORTED_MODULE_2__["MetricConfData"]();
        obj['_mN'] = this.selectedNode.label;
        obj['_mDN'] = this.selectedNode.label;
        obj['_oid'] = this.selectedNode['oid'];
        obj['_metDesc'] = this.selectedNode['desc'] ? this.selectedNode['desc'] : obj['_mDN'];
        obj['syntax'] = this.selectedNode['syntax'] ? this.selectedNode['syntax'] : 'NA'; //to show the syntax name
        obj['id'] = arr.length + 1;
        obj['_isChk'] = true;
        if (this.selectedNode['unit']) {
            obj['_unit'] = this.selectedNode['unit'].replace(/\"/g, '');
        }
        arr.push(obj);
        this.customMonService.autoFillMetricInfoData(arr);
    }
    nodeContentMenu(event) {
        this.items = [];
        if (event.node.pduType === 'get') {
            this.items = [
                { label: 'Add As Subject', command: (event) => this.addAsSubject() },
                { label: 'Add As Metric', command: (event) => this.addAsMetric() },
                { label: 'View Information', command: (event) => this.viewInformation() },
            ];
        }
        else if (event.node.pduType === 'table') {
            let data;
            this.customMonService.getMibChild(event.node.dOid, event.node.mibKey, event.node.pduType).subscribe((res) => {
                data = res.data[0].childMap;
                this.loading = false;
            });
            this.items = [
                { label: 'Add as Table', command: (event) => this.autoFillSubjectAndMetric(data) }
            ];
        }
        else { //to hide the contextmenu if there is no data for pdutype Bug 141612
            this.cm.hide(event);
        }
    }
    autoFillSubjectAndMetric(data) {
        let arr = [];
        let metricArr = [];
        let existingTableData = this.customMonService.getMetricHierarchy();
        if (existingTableData && existingTableData.length != 0)
            arr = existingTableData;
        let existingMetricTableData = this.genericSerObj.getMConfTable();
        if (existingMetricTableData && existingMetricTableData.length != 0)
            metricArr = existingMetricTableData;
        let obj = null;
        let metricObj = null;
        for (const [key, value] of Object.entries(data)) {
            if (value['dataType'] === 'OCTET STRING') {
                // Adding for Bug 141631 Metric Hierarchy Components are getting duplicate when add via "Add as Table" 
                let oidArr = arr.map(obj => obj._oid);
                if (oidArr.includes(value['oid'])) {
                    this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: `Duplicate Entry '${value['oid']}'` });
                    return;
                }
                obj = new _generic_gdf_containers_metric_hierarchy_data__WEBPACK_IMPORTED_MODULE_3__["MetricHierarchyData"]();
                obj['_metadata'] = value['name'];
                obj['_oid'] = value['oid'];
                obj['_useAsTag'] = false;
                obj['_useAsTag_ui'] = "No";
                obj['id'] = arr.length + 1;
                obj['enable'] = true;
                arr.push(obj);
            }
            else {
                // Adding for Bug 141631 Metric Hierarchy Components are getting duplicate when add via "Add as Table"
                let oidArr = metricArr.map(obj => obj._oid);
                if (oidArr.includes(value['oid'])) {
                    this.msgService.add({ severity: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SEVERITY_ERROR"], summary: _add_monitor_constants_monitor_configuration_constants__WEBPACK_IMPORTED_MODULE_7__["SUMMARY_ERROR"], detail: `Duplicate Entry '${value['oid']}'` });
                    return;
                }
                metricObj = new _generic_gdf_containers_metric_configuration_data__WEBPACK_IMPORTED_MODULE_2__["MetricConfData"]();
                metricObj['_mN'] = value['name'];
                metricObj['_mDN'] = value['name'];
                metricObj['_oid'] = value['oid'];
                metricObj['_metDesc'] = value['desc'] ? value['desc'] : metricObj['_mDN'];
                metricObj['syntax'] = value['syntax'];
                metricObj['syntax'] = value['syntax'] ? value['syntax'] : 'NA';
                if (value['units']) {
                    metricObj['_unit'] = value['units'].replace(/\"/g, '');
                }
                metricObj['id'] = metricArr.length + 1;
                metricObj['_isChk'] = true;
                metricArr.push(metricObj);
            }
            this.customMonService.autoFillMetricHierarchyData(arr);
            this.customMonService.autoFillMetricInfoData(metricArr);
        }
    }
    ngOnDestroy() {
        this.customMonService.mibs = []; // clearing selected Mib list.
        this.snmpData = new _containers_snmp_data__WEBPACK_IMPORTED_MODULE_5__["SnmpData"]();
        this.customMonService.isFromEdit = false;
        this.customMonService.setMetricHierarchy([]);
        this.customMonService.setMetricData([]);
        this.customMonService.objectID = "-1";
        this.monUpDown.isFromSnmpSaveAndDeploy = false;
        this.customMonService.enterpriseName = null;
    }
    //Method called to view information of MIB on particular node click.
    viewInformation() {
        this.showViewInfoDialog = true;
        this.mibInformation = [];
        this.selectedMib = this.selectedNode['label'];
        let nodeObj = {};
        nodeObj['name'] = this.selectedNode['label'];
        nodeObj['oid'] = this.selectedNode['oid'];
        nodeObj['desc'] = this.selectedNode['desc'] ? this.selectedNode['desc'] : 'NA';
        nodeObj['dOid'] = this.selectedNode['dOid'];
        nodeObj['dataType'] = this.selectedNode['dataType'] ? this.selectedNode['dataType'].toUpperCase() : 'NA';
        nodeObj['pduType'] = this.selectedNode['pduType'] ? this.selectedNode['pduType'] : 'NA';
        nodeObj['syntax'] = this.selectedNode['syntax'] ? this.selectedNode['syntax'] : 'NA';
        if (!lodash__WEBPACK_IMPORTED_MODULE_15__["isEmpty"](nodeObj))
            this.mibInformation.push(nodeObj);
    }
    //Method to parse options and get enterprise name in edit mode.
    parseOptions(data) {
        let optionval = data.split(" ");
        for (let i = 0; i < optionval.length; i++) {
            if (optionval[i] === '--enterprise') {
                this.customMonService.enterpriseName = optionval[i + 1];
                this.snmpData.enterprise = true;
                this.oidOpt = optionval[i + 1];
            }
        }
    }
};
ConfigureCustomSnmpMonitorComponent.ctorParameters = () => [
    { type: _services_custom_monitor_service__WEBPACK_IMPORTED_MODULE_4__["CustomMonitorService"] },
    { type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_16__["CavMessageService"] },
    { type: _service_monitorupdownstatus_service__WEBPACK_IMPORTED_MODULE_8__["MonitorupdownstatusService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_12__["Router"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_14__["SessionService"] },
    { type: src_app_pages_generic_gdf_services_generic_gdf_service__WEBPACK_IMPORTED_MODULE_13__["GenericGdfService"] }
];
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_configured_monitor_info_configured_monitor_info_component__WEBPACK_IMPORTED_MODULE_9__["ConfiguredMonitorInfoComponent"])
], ConfigureCustomSnmpMonitorComponent.prototype, "monInfoChild", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('cm')
], ConfigureCustomSnmpMonitorComponent.prototype, "cm", void 0);
ConfigureCustomSnmpMonitorComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-configure-custom-snmp-monitor',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./configure-custom-snmp-monitor.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/configure-custom-snmp-monitor/configure-custom-snmp-monitor.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./configure-custom-snmp-monitor.component.scss */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/configure-custom-snmp-monitor/configure-custom-snmp-monitor.component.scss")).default]
    })
], ConfigureCustomSnmpMonitorComponent);



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigureCustomSnmpModule", function() { return ConfigureCustomSnmpModule; });
/* 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 _configure_custom_snmp_monitor_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configure-custom-snmp-monitor.component */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/configure-custom-snmp-monitor/configure-custom-snmp-monitor.component.ts");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/header/header.module */ "./src/app/shared/header/header.module.ts");
/* harmony import */ var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/accordion */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-accordion.js");
/* harmony import */ var primeng_radiobutton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js");
/* harmony import */ var src_app_pages_generic_gdf_generic_gdf_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/pages/generic-gdf/generic-gdf.module */ "./src/app/pages/generic-gdf/generic-gdf.module.ts");
/* harmony import */ var _configured_monitor_info_configured_monitor_info_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../configured-monitor-info/configured-monitor-info.module */ "./src/app/pages/monitor-up-down-status/configure-monitors/configured-monitor-info/configured-monitor-info.module.ts");
/* harmony import */ var _snmp_connection_snmp_connection_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./snmp-connection/snmp-connection-module */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/configure-custom-snmp-monitor/snmp-connection/snmp-connection-module.ts");














const routes = [
    {
        path: '',
        component: _configure_custom_snmp_monitor_component__WEBPACK_IMPORTED_MODULE_4__["ConfigureCustomSnmpMonitorComponent"]
    }
];
let ConfigureCustomSnmpModule = class ConfigureCustomSnmpModule {
};
ConfigureCustomSnmpModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_configure_custom_snmp_monitor_component__WEBPACK_IMPORTED_MODULE_4__["ConfigureCustomSnmpMonitorComponent"]],
        imports: [
            src_app_pages_generic_gdf_generic_gdf_module__WEBPACK_IMPORTED_MODULE_11__["GenericGDFModule"],
            // MetricGroupInfoComponent,
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"],
            src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_6__["HeaderModule"],
            primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormsModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"],
            primeng_accordion__WEBPACK_IMPORTED_MODULE_9__["AccordionModule"],
            primeng_radiobutton__WEBPACK_IMPORTED_MODULE_10__["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__["ConfirmDialogModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["ProgressSpinnerModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["TabViewModule"],
            _configured_monitor_info_configured_monitor_info_module__WEBPACK_IMPORTED_MODULE_12__["ConfiguredMonitorInfoModule"],
            _snmp_connection_snmp_connection_module__WEBPACK_IMPORTED_MODULE_13__["SnmpConnectionModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["ContextMenuModule"],
            // CustomMonDeploymentModule,
            _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"].forChild(routes)
        ],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"]],
    })
], ConfigureCustomSnmpModule);



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SnmpData", function() { return SnmpData; });
/* harmony import */ var _gdf_info_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./gdf-info-data */ "./src/app/pages/monitor-up-down-status/configure-monitors/add-custom-monitor/containers/gdf-info-data.ts");

class SnmpData {
    constructor() {
        this.mib = [];
        this.gN = ""; // Gdf Name
        this.enbl = "false"; // Enable /Disable
        this.cfp = ""; // Config File path
        this.dvm = ""; // DVM
        this.mdata = ""; // Hirearchy (Tier>Server)
        this.gdfInfo = new _gdf_info_data__WEBPACK_IMPORTED_MODULE_0__["GdfInfo"];
        this.frequency = "";
    }
}


/***/ })

}]);