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

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); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["netocean-config-ftp-settings-netocean-config-ftp-settings-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.html":
  /*!***************************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.html ***!
    \***************************************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"ns-scenario netOcean-container\">\n    <div class=\"w-100-p headerSection\">\n        <div class=\"w-100-p mt-5 p-grid py-5 pl-16 p-align-center p-justify-between\">\n        <div class=\"p-grid p-align-center py-5\">\n            <span class=\"font-16 text-uppercase font-weight-700\">FTP Configuration</span>\n            <span class=\"mx-5\">\n                <app-help  [helpFileName]=\"'FTPConfiguration'\"  [helpTitle]=\"'FTP Configuration'\" [helpFolder]=\"'netOcean'\"></app-help>\n            </span>\n        </div>\n        </div>\n    </div>\n\n    <div class=\"w-100-p  border-all border-5 border-radius-3 my-24 px-16 pb-16\">\n        <h3 class=\"text-uppercase w-100-p\" >FTP Port</h3>\n        <div class=\"w-100-p p-grid p-align-center\">\n            <div class=\"p-col-1\">IPv4 Ports</div>\n            <div class=\"p-col-1\">\n                <input pInputText type=\"text\" [(ngModel)]=\"IPv4SmtpPort\" (input)=\"change($event)\" class=\"w-100-p\">\n            </div>\n            <div class=\"p-col-1 ml-30\">IPv6 Ports</div>\n            <div class=\"p-col-1\">\n                <input pInputText type=\"text\" [(ngModel)]=\"IPv6SmtpPort\" (input)=\"change($event)\" class=\"w-100-p\">\n            </div>\n            <div class=\"p-col-fixed ml-30 mr-10\">FTP Data Connection Time</div>\n            <div class=\"ui-inputgroup width-95 m-5\">\n                <input class=\"w-100-p\" type=\"text\"\n                    [(ngModel)]=\"ftpDataConTime\" (keypress)=\"this._config.isNumCheck($event)\" (input)=\"change($event)\" pInputText />\n                <span class=\"ui-inputgroup-addon px-5\">ms</span>   \n                </div>  \n           \n        </div>\n    </div>\n\n    <div class=\"w-100-p  border-all border-5 border-radius-3 my-24 px-16 pb-16\">\n        <h3 class=\"text-uppercase w-100-p\" >Service Time</h3>\n        <div class=\"p-grid p-justify-between p-align-center w-100-p\">\n            <div class=\"p-col-fixed pl-0\">Mode</div>\n            <div class=\"p-col-2\">\n                <p-dropdown dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\" (onChange)=\"modeselect()\"\n                            [options]=\"Mode\" [(ngModel)]=\"modeVal\"></p-dropdown>\n            </div>\n            <div class=\"p-col-fixed pl-0\">Command</div>\n            <div class=\"p-col-2\">\n                <p-dropdown dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\" [options]=\"Command\"\n                [(ngModel)]=\"commandVal\"></p-dropdown>\n            </div>\n            <div class=\"p-col-fixed pl-0\">Average Time</div>\n            <div class=\"p-col-2\">\n                <div class=\"ui-inputgroup\">\n                    <input pInputText class=\"w-100-p\" [disabled]=\"modeVal == '0'\" type=\"text\" (input)=\"change($event)\" (focusout)=\"validateOneHourTime(averagetime,'averagetime')\"\n                        [(ngModel)]=\"averagetime\" (keypress)=\"this._config.isNumCheck($event)\" pInputText />\n                        <span class=\"ui-inputgroup-addon px-5\">ms</span>   \n                </div>\n            </div>\n            <div class=\"p-col-fixed pl-0\">Maximum Time</div>\n            <div class=\"p-col-2\">\n                <div class=\"ui-inputgroup\">\n                    <input pInputText [disabled]=\"modeVal != '3'\" class=\"w-100-p\" type=\"text\" (input)=\"change($event)\" (focusout)=\"validateOneHourTime(maxtime,'maxtime')\"\n                        [(ngModel)]=\"maxtime\" (keypress)=\"this._config.isNumCheck($event)\" pInputText />\n                        <span class=\"ui-inputgroup-addon px-5\">ms</span> \n                </div>\n            </div>\n            <button pButton class=\"btn-icon\" icon=\"icons8 icons8-add\" pTooltip=\"Add\" type=\"button\" (click)=\"addSvcTimeConfig()\"></button>\n\n        </div>\n        <div class=\"my-8\">\n            <cav-table [value]=\"serviceTime\" [headerRelativePath]=\"this._config.headerRelativePathForServiceTime\" [scrollable]=\"true\" [responsive] =\"true\"\n                scrollHeight=\"55px\" (clickButtonEvent)=\"this._config.clickButtonEventForProtocolSettings($event,this.serviceTime)\"></cav-table>\n        </div>\n\n    </div>\n\n    <div class=\"w-100-p  border-all border-5 border-radius-3 my-24 px-16 pb-16\">\n        <h3  class=\"text-uppercase w-100-p\" >Error Simulation</h3>\n        <div class=\"w-100-p p-grid p-align-center\">\n                <div class=\"p-col-fixed pl-0\">Command</div>\n                <div class=\"p-col-2\">\n                    <p-dropdown dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\" [options]=\"Command\" [(ngModel)]=\"commandSimVal\"></p-dropdown>\n                </div>\n                <div class=\"p-col-fixed ml-30\">Percentage(%)</div>\n                <div class=\"p-col-2\">\n                    <input pInputText type=\"text\" class=\"w-100-p\" (input)=\"change($event)\" [(ngModel)]=\"simPerVal\">\n                </div>\n                <div class=\"p-col-fixed ml-30\">Response</div>\n                <div class=\"p-col-4\">\n                    <input pInputText type=\"text\" class=\"w-100-p\" (input)=\"change($event)\" [(ngModel)]=\"simBufVal\">\n                </div>\n                <button pButton class=\"btn-icon\" pTooltip=\"Add\" icon=\"icons8 icons8-add\" type=\"button\" (click)=\"addErrSimConfig()\"></button>\n        </div>\n        <div class=\"w-100-p my-8\">\n            <cav-table [value]=\"errorSimulation\" [headerRelativePath]=\"this._config.headerRelativePathForErrorSml\" [scrollable]=\"true\" [responsive] =\"true\" \n                scrollHeight=\"55px\" (clickButtonEvent)=\"this._config.clickButtonEventForProtocolSettings($event,this.errorSimulation)\"></cav-table>\n        </div>\n    </div>\n\n</div>\n    \n        <div class=\"p-grid p-justify-end my-5\">\n            <button pButton type=\"button\" label=\"Save\" [disabled]=\"!serveObj.$globalConfigPermission\" (click)=\"sendFtpInfo('')\"\n                class=\"ui-button-rounded mr-16\" [pTooltip]=\"serveObj.saveTooltipConfig\"></button>\n            <button pButton type=\"button\" label=\"Save & Activate\" [disabled]=\"!serveObj.$globalConfigPermission\" (click)=\"sendFtpInfo('activate')\"\n                class=\"btn-primary-outline mr-12\" [pTooltip]=\"serveObj.saveActivateTooltipConfig\"></button>\n        </div>\n\n  <p-confirmDialog class=\"confirmdialog\" header=\"Confirmation\" acceptButtonStyleClass=\"ui-button-rounded px-10\"\n    rejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" acceptIcon=\"null\" rejectIcon=\"null\"\n    acceptLabel=\"Yes\" rejectLabel=\"No\"></p-confirmDialog>\n\n<p-toast key=\"msgs\"></p-toast>";
    /***/
  },

  /***/
  "./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.scss":
  /*!*************************************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.scss ***!
    \*************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "app-netocean-config-ftp-settings .netOcean-container {\n  max-height: calc(100vh - 145px);\n  overflow: auto;\n}\napp-netocean-config-ftp-settings .ui-dialog-content ul {\n  line-height: 1.7526;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.ts":
  /*!***********************************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.ts ***!
    \***********************************************************************************************************************/

  /*! exports provided: NetoceanConfigFtpSettingsComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "NetoceanConfigFtpSettingsComponent", function () {
      return NetoceanConfigFtpSettingsComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


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


    var _services_netocean_common_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! ../../services/netocean-common.service */
    "./src/app/pages/home/netocean/services/netocean-common.service.ts");
    /* harmony import */


    var _services_netocean_configuration_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../../services/netocean-configuration.service */
    "./src/app/pages/home/netocean/services/netocean-configuration.service.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/api */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
    /* harmony import */


    var _services_manage_services_info_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../../services/manage-services-info.service */
    "./src/app/pages/home/netocean/services/manage-services-info.service.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); // import { NetoceanCommonService } from '../../../services/netocean/netocean-common.service';
    // import { Logger } from '../../../../../vendors/angular2-logger/core';
    // import { NetoceanConfigurationService } from '../../../services/netocean/netocean-configuration.service';


    var NetoceanConfigFtpSettingsComponent = /*#__PURE__*/function () {
      function NetoceanConfigFtpSettingsComponent(serveObj, _router, // private log: Logger,
      _config, _confirm, _manageService, messageService) {
        _classCallCheck(this, NetoceanConfigFtpSettingsComponent);

        this.serveObj = serveObj;
        this._router = _router;
        this._config = _config;
        this._confirm = _confirm;
        this._manageService = _manageService;
        this.messageService = messageService;
        this.helpdialog = false;
        this.rtcMode = 'false';
        this.isRtcMode = true;
        this.IPv4SmtpPort = '21';
        this.IPv6SmtpPort = '6821';
        this.ftpDataConTime = '60000';
        this.modeVal = '0';
        this.averagetime = '0';
        this.maxtime = '0';
        this.max_able = true;
        this.avg_able = true;
        this.commandVal = 'USER';
        this.commandSimVal = 'USER';
        this.simPerVal = '0';
        this.simBufVal = '';
        this.serviceTime = [];
        this.errorSimulation = [];
        this.unsavedChanges = false;

        if (this.serveObj.$mode === '') {
          if (localStorage.getItem('globalHttpSettings') !== null && localStorage.getItem('globalHttpSettings') !== undefined) {
            var txSession = JSON.parse(localStorage.getItem('globalHttpSettings'));
            this.serveObj.$mode = txSession['configurationMode'];
          } else {
            this.serveObj.$mode = 'Normal Mode';
          }
        }

        if (this.serveObj.$mode == 'RTC Mode') {
          this.rtcMode = 'true';
          this.isRtcMode = false;
        }

        this.Mode = [];
        this.Mode.push({
          label: 'No Service Time',
          value: '0'
        });
        this.Mode.push({
          label: 'Exponential Random',
          value: '1'
        });
        this.Mode.push({
          label: 'Constant',
          value: '2'
        });
        this.Mode.push({
          label: 'Uniform Distribution',
          value: '3'
        });
        this.Command = [];
        this.Command.push({
          label: 'USER',
          value: 'USER'
        });
        this.Command.push({
          label: 'PASS',
          value: 'PASS'
        });
        this.Command.push({
          label: 'PASV',
          value: 'PASV'
        });
        this.Command.push({
          label: 'PORT',
          value: 'PORT'
        });
        this.Command.push({
          label: 'RETR',
          value: 'RETR'
        });
        this.Command.push({
          label: 'QUIT',
          value: 'QUIT'
        });
        this.Command.push({
          label: 'TYPE',
          value: 'TYPE'
        });
        this.Command.push({
          label: 'STOR',
          value: 'STOR'
        }); // this.Command.push({ label: 'ALL', value: 'ALL' });
      }

      return _createClass(NetoceanConfigFtpSettingsComponent, [{
        key: "canDeactivate",
        value: function canDeactivate() {
          if (this.unsavedChanges) {
            var result = confirm('Are you sure you want to navigate? Any unsaved changes will be lost.');
            console.log(result);

            if (!result) {
              this.serveObj.confirmCommandSubject.next(this._router.url);
            }

            return result;
          } else {
            return true;
          }
        }
      }, {
        key: "change",
        value: function change(event) {
          this.unsavedChanges = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          this._config.loading = true;

          this._config.getFTPProtocolInfo();

          this.getGlobalHttpstatus();
        }
      }, {
        key: "validateOneHourTime",
        value: function validateOneHourTime(inputTime, inputType) {
          switch (inputType) {
            case "averagetime":
              return this.averagetime = this.serveObj.validateOneHourTimeInMS(inputTime);

            case "maxtime":
              return this.maxtime = this.serveObj.validateOneHourTimeInMS(inputTime);
          }
        }
      }, {
        key: "modeselect",
        value: function modeselect() {
          try {
            //this.log.debug('');
            if (this.serveObj.checkEmpty(this.modeVal) === true) {
              this.max_able = true;
              this.avg_able = true;

              if (this.modeVal === '3') {
                this.max_able = false;
                this.avg_able = false;
              }

              if (this.modeVal === '2' || this.modeVal === '1') {
                this.max_able = true;
                this.avg_able = false;
              }
            } else if (this.serveObj.checkEmpty(this.modeVal) === false || this.modeVal === '0') {
              this.avg_able = true;
              this.max_able = true;
            }
          } catch (error) {
            console.error('error in config-service-time-cgi modelselect() ->', error);
          }
        }
        /**get a operation status */

      }, {
        key: "getGlobalHttpstatus",
        value: function getGlobalHttpstatus() {
          var _this = this;

          try {
            //this.log.debug('getting a status of ssl fields');
            this.activeSubscriber = this._config.configProvider$.subscribe(function (result) {
              if (_this._config.action == 'GETFTPSETTINGS') {
                _this._config.loading = false;
                _this.serviceTime = [];
                _this.errorSimulation = [];

                if (result['serviceTime'] != undefined && result['serviceTime'].length != 0 && result['serviceTime'][0].mode != undefined) {
                  _this.serviceTime = result['serviceTime'];
                }

                if (result['errorSimulation'] != undefined && result['errorSimulation'].length != 0 && result['errorSimulation'][0].command != undefined) {
                  _this.errorSimulation = result['errorSimulation'];
                }

                if (result['conTimeout'] != undefined) {
                  _this.ftpDataConTime = result['conTimeout'];
                }

                if (result['ftpPorts'] != undefined) {
                  if (result['ftpPorts'].IPV4 != undefined) _this.IPv4SmtpPort = result['ftpPorts'].IPV4;
                  if (result['ftpPorts'].IPV6 != undefined) _this.IPv6SmtpPort = result['ftpPorts'].IPV6;
                }
              }

              if (_this._config.action == 'SETFTPSETTINGS') {
                _this._config.loading = false;

                _this.messageService.clear();

                if (result['status'] == true) {
                  _this.messageService.add({
                    key: 'msgs',
                    severity: 'success',
                    summary: 'Saved Successfully',
                    detail: 'FTP Settings saved successfully'
                  });

                  if (_this.isRestart == "activate") {
                    _this._config.isEnabledSpinner = true;

                    _this._manageService.activateHPD();
                  }
                } else {
                  _this.messageService.add({
                    severity: 'error',
                    summary: 'Error',
                    detail: 'Error in Saving FTP Settings'
                  });
                }
              }
            });
          } catch (error) {
            console.error('error in getting git fields', error);
          }
        }
        /**add a service time configuration fields */

      }, {
        key: "addSvcTimeConfig",
        value: function addSvcTimeConfig() {
          try {
            if (this.modeVal == '0') {
              this.averagetime = '';
            }

            if (this.modeVal != '3') {
              this.maxtime = '';
            }

            if (this.modeVal == '3' && parseInt(this.averagetime) >= parseInt(this.maxtime)) {
              this._config.alertMessage = 'Maximum time should be greater than average time';
              this._config.isAlert = true;
              return false;
            }

            this.serviceTime = this.serviceTime.concat({
              mode: this.modeVal,
              command: this.commandVal,
              avgTime: this.averagetime,
              maxTime: this.maxtime
            });
            this.modeVal = '0';
            this.commandVal = 'USER';
            this.averagetime = '0';
            this.maxtime = '0';
          } catch (error) {
            console.error('Error in adding Service Time configuration fields', error);
          }
        }
        /**add a Error simulation configuration fields */

      }, {
        key: "addErrSimConfig",
        value: function addErrSimConfig() {
          try {
            if (parseInt(this.simPerVal) > 100) {
              this._config.alertMessage = 'Please Enter Error Simulation Percentage Within the Range(0-100)%';
              this._config.isAlert = true;
              return false;
            }

            if (this.simBufVal == '') {
              this._config.alertMessage = 'Please Enter Error Simulation Response Message';
              this._config.isAlert = true;
              return false;
            }

            if (this.simBufVal.length > 1023) {
              this._config.alertMessage = 'Response length must be less than 1024 character!';
              this._config.isAlert = true;
              return false;
            }

            this.errorSimulation = this.errorSimulation.concat({
              index: this.errorSimulation.length,
              command: this.commandSimVal,
              percentage: this.simPerVal,
              replyBuf: this.simBufVal
            });
            this.commandSimVal = 'USER';
            this.simPerVal = '0';
            this.simBufVal = '';
          } catch (error) {
            console.error('Error in adding Error simulation configuration fields', error);
          }
        }
      }, {
        key: "validateGlobalSettings",
        value: function validateGlobalSettings() {
          try {
            //this.log.debug('validating the global http settings');
            if (this.serveObj.$mode != 'RTC Mode' && this.IPv4SmtpPort == '') {
              this._config.alertMessage = 'Please Enter IPV4 Ports';
              this._config.isAlert = true;
              return false;
            } else if (this.IPv6SmtpPort == '' && this.serveObj.$mode != 'RTC Mode') {
              this._config.alertMessage = 'Please Enter IPV6 Ports';
              this._config.isAlert = true;
              return false;
            } else if (this.ftpDataConTime == '' && this.serveObj.$mode != 'RTC Mode') {
              this._config.alertMessage = 'Please Enter FTP Connection Timeout';
              this._config.isAlert = true;
              return false;
            }

            return true;
          } catch (error) {
            console.error('error in validating the fields');
          }
        }
      }, {
        key: "validateGlobalSettingsVal",
        value: function validateGlobalSettingsVal() {
          try {
            //this.log.debug('validating the global http settings');
            if (parseInt(this.IPv4SmtpPort) <= 0 || parseInt(this.IPv4SmtpPort) > 65535) {
              this._config.alertMessage = 'Please Enter IPV4 Ports In The Range(0 to 65535)';
              this._config.isAlert = true;
              return false;
            } else if (parseInt(this.IPv6SmtpPort) <= 0 || parseInt(this.IPv6SmtpPort) > 65535) {
              this._config.alertMessage = 'Please Enter IPV6 Ports In The Range(0 to 65535)';
              this._config.isAlert = true;
              return false;
            }

            return true;
          } catch (error) {
            console.error('error in validating the fields');
          }
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this._config.loading = false;
          if (this.ftpSubscription != null) this.ftpSubscription.unsubscribe();
          if (this.activeSubscriber != undefined) this.activeSubscriber.unsubscribe();
          this._manageService.action = "";
        }
        /**send a json data for set FTP settings */

      }, {
        key: "sendFtpInfo",
        value: function sendFtpInfo(data) {
          try {
            //this.log.debug('json data for FTP settings');
            this.isRestart = data;

            if (this.validateGlobalSettings() == false) {
              return false;
            }

            if (this.validateGlobalSettingsVal() == false) {
              return false;
            }

            var ftpPorts = {
              'IPV4': this.IPv4SmtpPort,
              'IPV6': this.IPv6SmtpPort
            };
            var ftpContent = {
              'ftpPorts': ftpPorts,
              'conTimeout': this.ftpDataConTime,
              'serviceTime': this.serviceTime,
              'errorSimulation': this.errorSimulation
            };
            this._config.loading = true;

            this._config.setFTPSettings(ftpContent);

            this.modeVal = '0';
            this.commandVal = 'USER';
            this.averagetime = '0';
            this.maxtime = '0';
            this.commandSimVal = 'USER';
            this.simPerVal = '0';
            this.simBufVal = '';
            this.unsavedChanges = false;
          } catch (error) {
            console.error('error in making json data', error);
          }
        }
      }]);
    }();

    NetoceanConfigFtpSettingsComponent.ctorParameters = function () {
      return [{
        type: _services_netocean_common_service__WEBPACK_IMPORTED_MODULE_2__["NetoceanCommonService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"]
      }, {
        type: _services_netocean_configuration_service__WEBPACK_IMPORTED_MODULE_3__["NetoceanConfigurationService"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_4__["ConfirmationService"]
      }, {
        type: _services_manage_services_info_service__WEBPACK_IMPORTED_MODULE_6__["ManageServicesInfoService"]
      }, {
        type: primeng_api__WEBPACK_IMPORTED_MODULE_5__["MessageService"]
      }];
    };

    NetoceanConfigFtpSettingsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-netocean-config-ftp-settings',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./netocean-config-ftp-settings.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./netocean-config-ftp-settings.component.scss */
      "./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.scss"))["default"]]
    })], NetoceanConfigFtpSettingsComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.module.ts":
  /*!********************************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.module.ts ***!
    \********************************************************************************************************************/

  /*! exports provided: onMonacoLoad, NetoceanConfigFtpSettingsModule */

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

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


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


    __webpack_require__.d(__webpack_exports__, "NetoceanConfigFtpSettingsModule", function () {
      return NetoceanConfigFtpSettingsModule;
    });
    /* 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 _netocean_config_ftp_settings_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./netocean-config-ftp-settings.component */
    "./src/app/pages/home/netocean/components/netocean-config-ftp-settings/netocean-config-ftp-settings.component.ts");
    /* harmony import */


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


    var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! @angular/material/checkbox */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/checkbox.js");
    /* harmony import */


    var _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! @angular/material/menu */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/menu.js");
    /* harmony import */


    var _angular_material_radio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! @angular/material/radio */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/radio.js");
    /* harmony import */


    var _angular_material_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! @angular/material/select */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/select.js");
    /* harmony import */


    var _angular_material_tabs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! @angular/material/tabs */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tabs.js");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.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 ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ngx-monaco-editor */
    "./node_modules/ngx-monaco-editor/__ivy_ngcc__/fesm2015/ngx-monaco-editor.js");
    /* harmony import */


    var _pipes_netocean_pipe_module__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! ../pipes/netocean-pipe.module */
    "./src/app/pages/home/netocean/components/pipes/netocean-pipe.module.ts");
    /* harmony import */


    var _interfaces_confirmUnsavedChangesroutingguard__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! ../../interfaces/confirmUnsavedChangesroutingguard */
    "./src/app/pages/home/netocean/interfaces/confirmUnsavedChangesroutingguard.ts");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");

    function onMonacoLoad() {
      console.log(window.monaco);
      return window.monaco;
    }

    var monacoConfig = {
      baseUrl: './assets',
      defaultOptions: {
        scrollBeyondLastLine: false
      },
      onMonacoLoad: onMonacoLoad // here monaco object will be available as window.monaco use this function to extend monaco editor functionalities.

    };
    var routes = [{
      path: '',
      component: _netocean_config_ftp_settings_component__WEBPACK_IMPORTED_MODULE_3__["NetoceanConfigFtpSettingsComponent"],
      canDeactivate: [_interfaces_confirmUnsavedChangesroutingguard__WEBPACK_IMPORTED_MODULE_15__["ConfirmUnsavedChangesGuard"]]
    }];

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

    NetoceanConfigFtpSettingsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_netocean_config_ftp_settings_component__WEBPACK_IMPORTED_MODULE_3__["NetoceanConfigFtpSettingsComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_router__WEBPACK_IMPORTED_MODULE_12__["RouterModule"].forChild(routes), _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_11__["HelpModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["DynamicDialogModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TreeModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TieredMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["CalendarModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["SidebarModule"], ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_13__["MonacoEditorModule"].forRoot(monacoConfig), primeng__WEBPACK_IMPORTED_MODULE_10__["SplitButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ScrollPanelModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TabViewModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ConfirmDialogModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["FieldsetModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["FileUploadModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["OverlayPanelModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_6__["MatMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["SpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ToggleButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["OrderListModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ChipsModule"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_7__["MatRadioModule"], _angular_material_select__WEBPACK_IMPORTED_MODULE_8__["MatSelectModule"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_9__["MatTabsModule"], _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_5__["MatCheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["BreadcrumbModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ProgressBarModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["CardModule"], _pipes_netocean_pipe_module__WEBPACK_IMPORTED_MODULE_14__["NetoceanPipeModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_16__["CavTableModule"]],
      providers: [],
      schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]]
    })], NetoceanConfigFtpSettingsModule);
    /***/
  }
}]);