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

function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }

function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }

function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }

function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }

function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }

function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }

function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }

function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }

function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }

function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["backup-backup-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.html":
  /*!*****************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.html ***!
    \*****************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"db-query-stats-filter-container\">\n    <p-sidebar #sidebar [(visible)]=\"visible\" [showCloseIcon]=\"false\" blockScroll=\"true\" appendTo=\"body\"\n        [styleClass]=\"classes\">\n        <div class=\"sidebar-header\">\n            <div class=\"sidebar-title\">\n                <i class=\"icons8 icons8-clock\"></i>\n                <span>Stats Filter</span>\n                <i class=\"icons8 icons8-delete\" (click)=\"closeClick()\"></i>\n            </div>\n        </div>\n        <div class=\"sidebar-content ui-fluid\">\n            <p-accordion [multiple]=\"true\" expandIcon=\"icons8-forward\" collapseIcon=\"icons8-collapse-arrow\">\n                <p-accordionTab header=\"Preset\" [selected]=\"true\">\n                    <app-stats-filter></app-stats-filter>\n                </p-accordionTab>\n                <p-accordionTab header=\"DB Server\" [selected]=\"true\">\n                    <app-datasource-navigation></app-datasource-navigation>\n                </p-accordionTab>\n            </p-accordion>\n        </div>\n        <!-- <div class=\"sidebar-footer\">\n        <button pButton type=\"submit\" label=\"Save\" class=\"w-100-p\"></button>\n    </div> -->\n    </p-sidebar>\n</div>\n";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/vss/backup/backup.component.html":
  /*!************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/vss/backup/backup.component.html ***!
    \************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"backup-container p-6\">\n    <div class=\"p-5 p-col-12\">\n        <app-help #help></app-help>\n        <cav-table [value]=\"dataTable.data\" [headerRelativePath]=\"headerRelativePath\"  (clickButtonEvent)=\"clickButtonEvent($event)\" scrollHeight=\"350px\">\n        </cav-table>\n        <div *ngIf=\"loading\"\n            [ngClass]=\"{'loading-indicator pageLoading':dbMonService.spinnerClass === false, 'spinner':dbMonService.spinnerClass === true}\">\n            <p-progressSpinner [style]=\"{width: '40px', height: '40px'}\" strokeWidth=\"4\" animationDuration=\".5s\">\n            </p-progressSpinner>\n        </div>\n    </div>\n\n</div>\n<app-common-stats-filter #commonFilterSidebar></app-common-stats-filter>";
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.scss":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.scss ***!
    \***************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "";
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.ts":
  /*!*************************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.ts ***!
    \*************************************************************************************************/

  /*! exports provided: CommonStatsFilterComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "CommonStatsFilterComponent", function () {
      return CommonStatsFilterComponent;
    });
    /* 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 src_app_shared_page_sidebar_page_sidebar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/shared/page-sidebar/page-sidebar.component */
    "./src/app/shared/page-sidebar/page-sidebar.component.ts");

    var CommonStatsFilterComponent = /*#__PURE__*/function (_src_app_shared_page_) {
      function CommonStatsFilterComponent() {
        var _this;

        _classCallCheck(this, CommonStatsFilterComponent);

        _this = _callSuper(this, CommonStatsFilterComponent);
        _this.classes = 'page-sidebar';
        return _this;
      }

      _inherits(CommonStatsFilterComponent, _src_app_shared_page_);

      return _createClass(CommonStatsFilterComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {}
      }, {
        key: "show",
        value: function show() {
          _superPropGet(CommonStatsFilterComponent, "show", this, 3)([]);
        }
      }, {
        key: "closeClick",
        value: function closeClick() {
          var me = this;
          me.visible = !me.visible;
        }
      }]);
    }(src_app_shared_page_sidebar_page_sidebar_component__WEBPACK_IMPORTED_MODULE_2__["PageSidebarComponent"]);

    CommonStatsFilterComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-common-stats-filter',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./common-stats-filter.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.html"))["default"],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./common-stats-filter.component.scss */
      "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.scss"))["default"]]
    })], CommonStatsFilterComponent);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.module.ts":
  /*!**********************************************************************************************!*\
    !*** ./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.module.ts ***!
    \**********************************************************************************************/

  /*! exports provided: CommonStatsFilterModule */

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

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


    __webpack_require__.d(__webpack_exports__, "CommonStatsFilterModule", function () {
      return CommonStatsFilterModule;
    });
    /* 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 primeng__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* 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 ng_pick_datetime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ng-pick-datetime */
    "./node_modules/ng-pick-datetime/__ivy_ngcc__/picker.js");
    /* harmony import */


    var src_app_shared_date_time_picker_moment_moment_date_time_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! src/app/shared/date-time-picker-moment/moment-date-time.module */
    "./src/app/shared/date-time-picker-moment/moment-date-time.module.ts");
    /* harmony import */


    var _common_stats_filter_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ./common-stats-filter.component */
    "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.component.ts");
    /* harmony import */


    var _stats_filter_stats_filter_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../stats-filter/stats-filter.module */
    "./src/app/pages/db-monitoring/shared/stats-filter/stats-filter.module.ts");
    /* harmony import */


    var _datasource_navigation_datasource_navigation_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../datasource-navigation/datasource-navigation.module */
    "./src/app/pages/db-monitoring/shared/datasource-navigation/datasource-navigation.module.ts");

    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], // HeaderModule,
    primeng__WEBPACK_IMPORTED_MODULE_3__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TabViewModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["ButtonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["InputSwitchModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["SlideMenuModule"], ng_pick_datetime__WEBPACK_IMPORTED_MODULE_5__["OwlDateTimeModule"], src_app_shared_date_time_picker_moment_moment_date_time_module__WEBPACK_IMPORTED_MODULE_6__["OwlMomentDateTimeModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["OrderListModule"], primeng__WEBPACK_IMPORTED_MODULE_3__["SidebarModule"], _stats_filter_stats_filter_module__WEBPACK_IMPORTED_MODULE_8__["StatsFilterModule"], _datasource_navigation_datasource_navigation_module__WEBPACK_IMPORTED_MODULE_9__["DatasourceNavigationModule"]];
    var components = [_common_stats_filter_component__WEBPACK_IMPORTED_MODULE_7__["CommonStatsFilterComponent"]];

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

    CommonStatsFilterModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [components],
      imports: [imports],
      exports: [components]
    })], CommonStatsFilterModule);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/vss/backup/backup.component.scss":
  /*!**********************************************************************!*\
    !*** ./src/app/pages/db-monitoring/vss/backup/backup.component.scss ***!
    \**********************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "app-backup .backup-container .ui-table-globalfilter-container .global-search {\n  position: absolute;\n  top: -55px;\n  left: 53px;\n  width: 250px;\n  padding: 0.429em 0.429em 0.429em 2em;\n}\napp-backup .backup-container .ui-table-globalfilter-container i {\n  position: absolute;\n  top: -49px;\n  left: 58px;\n  z-index: 99;\n  font-size: 1.5em;\n}\napp-backup .backup-container .action-container .input-field-search {\n  padding: 0.429em 0.429em 0.429em 2em;\n  width: 200px;\n}\napp-backup .backup-container .action-container .search-div-css {\n  position: relative;\n  width: 80%;\n}\napp-backup .backup-container .action-container .search-div-css i {\n  font-size: 1.5em;\n  position: absolute;\n  color: #1d5290;\n  top: 5px;\n  left: 5px;\n}\napp-backup .backup-container .action-container .ui-multiselect {\n  border: none;\n  background: transparent;\n}\napp-backup .backup-container .action-container .ui-multiselect .ui-helper-hidden-accessible {\n  display: none;\n}\napp-backup .backup-container .action-container .ui-multiselect .ui-multiselect-label {\n  display: none;\n}\napp-backup .backup-container .action-container .ui-multiselect .ui-multiselect-trigger {\n  background-color: transparent;\n}\napp-backup .backup-container .action-container .ui-multiselect .ui-multiselect-trigger .ui-multiselect-trigger-icon {\n  font-size: 1.5em;\n}\napp-backup .backup-container .action-container .icons-container {\n  display: inline-flex;\n}\napp-backup .backup-container .action-container .ip-alert-group {\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n}\napp-backup .backup-container .column-icon {\n  font-size: 1.5em;\n  color: #1d5290;\n  margin: 0 10px;\n}\napp-backup .backup-container .ui-table .columnwidth {\n  width: 40px;\n}\napp-backup .backup-container .ui-table .action-olumnwidth {\n  width: 180px;\n}\napp-backup .backup-container .ui-table .switch-column {\n  width: 60px;\n}\napp-backup .backup-container .ui-table .icons8 {\n  color: #1d5290;\n}\napp-backup .backup-container .mh-10 {\n  margin: 0 10px;\n}\napp-backup .backup-container .customInput {\n  width: 100%;\n}\napp-backup .backup-container .customInput .ui-dropdown {\n  min-width: 100%;\n}\napp-backup .backup-container .ui-inputgroup {\n  margin: 0 5px;\n}\napp-backup .backup-container .ui-inputgroup .custom-input-group {\n  width: 70px;\n}\napp-backup .backup-container .mulitselectRight .ui-multiselect-panel {\n  right: 0px !important;\n  left: auto !important;\n}\napp-backup .backup-container .loading-indicator {\n  position: fixed;\n  z-index: 9999;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background-color: rgba(0, 0, 0, 0.15);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\napp-backup .backup-container .spinner {\n  position: fixed;\n  top: 85px;\n  right: 37px;\n}\napp-backup .highcharts-container {\n  margin-bottom: 10px;\n}";
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/vss/backup/backup.component.ts":
  /*!********************************************************************!*\
    !*** ./src/app/pages/db-monitoring/vss/backup/backup.component.ts ***!
    \********************************************************************/

  /*! exports provided: BackupComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "BackupComponent", function () {
      return BackupComponent;
    });
    /* 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 src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_scheduler_scheduler_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! src/app/shared/scheduler/scheduler.service */
    "./src/app/shared/scheduler/scheduler.service.ts");
    /* harmony import */


    var _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../db-monitoring.state */
    "./src/app/pages/db-monitoring/db-monitoring.state.ts");
    /* harmony import */


    var _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../services/db-monitoring.services */
    "./src/app/pages/db-monitoring/services/db-monitoring.services.ts");
    /* harmony import */


    var _backup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ./backup.service */
    "./src/app/pages/db-monitoring/vss/backup/backup.service.ts");
    /* harmony import */


    var src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/time-bar/service/time-bar.service */
    "./src/app/shared/time-bar/service/time-bar.service.ts");

    var BackupComponent = /*#__PURE__*/function () {
      function BackupComponent(backupService, dbMonService, schedulerService, sessionSerivce, cdRef, timebarService) {
        _classCallCheck(this, BackupComponent);

        this.backupService = backupService;
        this.dbMonService = dbMonService;
        this.schedulerService = schedulerService;
        this.sessionSerivce = sessionSerivce;
        this.cdRef = cdRef;
        this.timebarService = timebarService;
      }

      return _createClass(BackupComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          var me = this;
          me.dbMonService.activePage = '';
          me.dbMonService.ioFileActivePage = '';
          me.headerRelativePath = "DBMonitoring/MSSQL_BACKUP.json";
          me.dataTable = {
            data: []
          };
          /**This is called when user will land on this screen for the first time */

          if (!me.dataSubscription) me.load();
          me.subscribeScheduleLoad();
        }
      }, {
        key: "ngAfterViewInit",
        value: function ngAfterViewInit() {
          var me = this;
          /** When realtime mode is enabled auto refresh will called from here. */

          if (me.dbMonService.isRealTimeAppled) me.scheduleLoad();
          setTimeout(function () {
            //For the change in progress spinner css
            me.dbMonService.spinnerClass = false;
          });
        }
        /** will listen the subscription and when result will be true, it will do the rest call for this screen  */

      }, {
        key: "subscribeScheduleLoad",
        value: function subscribeScheduleLoad() {
          var _this2 = this;

          var me = this;
          me.dataSubscription = me.dbMonService.scheduleDataRequestObservable$.subscribe(function (result) {
            if (result && _this2.backupService.resPending) {
              _this2.backupService.resPending = false;
              me.load();
              /** When realtime is enabled this will do the auto refresh and time-bar auto refresh will not work */

              if (me.dbMonService.isRealTimeAppled) me.scheduleLoad();
            }
          });
        }
        /** When realtime mode is enabled auto refresh will work from this code */

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

          if (me.dbMonService.isRealTimeAppled) {
            if (me.schedulerService) {
              me.schedulerService.unsubscribe('load-backup');
            }

            me.schedulerService.subscribe('load-backup', function () {
              if (me.dbMonService.isAnalysisMode) {
                return;
              }

              me.load();
            }, 'progressInterval');
          }
        }
      }, {
        key: "load",
        value: function load() {
          var me = this;
          me.loading = true;

          if (!me.sessionSerivce.isActive()) {
            return;
          }

          var payload = {};
          me.backupService.getPresetAndLoad(payload).subscribe(function (state) {
            if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__["DBMonitoringLoadingState"]) {
              me.onLoading(state);
              return;
            }

            if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_4__["DBMonitoringLoadedState"]) {
              me.onLoaded(state);
              return;
            }
          }, function (state) {
            me.onLoadingError(state);
          });
        }
      }, {
        key: "onLoading",
        value: function onLoading(state) {
          var me = this;
          me.loading = true;
        }
      }, {
        key: "onLoadingError",
        value: function onLoadingError(state) {
          var me = this;
          me.dataTable.data = [];
          me.loading = false;
        }
        /*  Method to load table & graph data.  */

      }, {
        key: "onLoaded",
        value: function onLoaded(state) {
          var me = this;
          me.loading = false;
          me.timebarService.isTimeChangedFromGlobal = false;
          me.dataTable.data = state.data['dbBackupData'];

          if (me.dataTable.data) {} else {
            me.dataTable.data = [];
          }

          setTimeout(function () {}, 100);
          me.loading = false; //For the change in progress spinner css

          me.dbMonService.spinnerClass = true;
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          var me = this;
          me.schedulerService.unsubscribe('load-backup');
          me.dbMonService.disabledRealTime = false;

          if (me.dataSubscription) {
            me.dataSubscription.unsubscribe();
          }
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b;

          var me = this;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == "help") {
            me.help.show('msSqlBackup', 'Backup', 'db-monitoring');
          }
        }
      }]);
    }();

    BackupComponent.ctorParameters = function () {
      return [{
        type: _backup_service__WEBPACK_IMPORTED_MODULE_6__["BackupService"]
      }, {
        type: _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_5__["DBMonitoringService"]
      }, {
        type: src_app_shared_scheduler_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["SchedulerService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"]
      }, {
        type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
      }, {
        type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__["TimebarService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('help')], BackupComponent.prototype, "help", void 0);
    BackupComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-backup',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./backup.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/db-monitoring/vss/backup/backup.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./backup.component.scss */
      "./src/app/pages/db-monitoring/vss/backup/backup.component.scss"))["default"]]
    })], BackupComponent);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/vss/backup/backup.module.ts":
  /*!*****************************************************************!*\
    !*** ./src/app/pages/db-monitoring/vss/backup/backup.module.ts ***!
    \*****************************************************************/

  /*! exports provided: BackupModule */

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

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


    __webpack_require__.d(__webpack_exports__, "BackupModule", function () {
      return BackupModule;
    });
    /* 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 _backup_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./backup.component */
    "./src/app/pages/db-monitoring/vss/backup/backup.component.ts");
    /* harmony import */


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


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


    var src_app_shared_chart_chart_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! src/app/shared/chart/chart.module */
    "./src/app/shared/chart/chart.module.ts");
    /* harmony import */


    var src_app_shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/pipes/pipes.module */
    "./src/app/shared/pipes/pipes.module.ts");
    /* harmony import */


    var _shared_common_stats_filter_common_stats_filter_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../shared/common-stats-filter/common-stats-filter.module */
    "./src/app/pages/db-monitoring/shared/common-stats-filter/common-stats-filter.module.ts");
    /* harmony import */


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


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


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


    var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.ts");

    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["MultiSelectModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["InputTextModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["PanelModule"], src_app_shared_chart_chart_module__WEBPACK_IMPORTED_MODULE_6__["ChartModule"], src_app_shared_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_7__["PipeModule"], _shared_common_stats_filter_common_stats_filter_module__WEBPACK_IMPORTED_MODULE_8__["CommonStatsFilterModule"], primeng__WEBPACK_IMPORTED_MODULE_10__["ProgressSpinnerModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__["MatTooltipModule"], _shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_11__["CavTableModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_12__["HelpModule"]];
    var components = [_backup_component__WEBPACK_IMPORTED_MODULE_3__["BackupComponent"]];
    var routes = [{
      path: '',
      component: _backup_component__WEBPACK_IMPORTED_MODULE_3__["BackupComponent"],
      pathMatch: 'full'
    }];

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

    BackupModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [components],
      exports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"]],
      imports: [imports, _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(routes), _shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_11__["CavTableModule"]]
    })], BackupModule);
    /***/
  },

  /***/
  "./src/app/pages/db-monitoring/vss/backup/backup.service.ts":
  /*!******************************************************************!*\
    !*** ./src/app/pages/db-monitoring/vss/backup/backup.service.ts ***!
    \******************************************************************/

  /*! exports provided: BackupService */

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

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


    __webpack_require__.d(__webpack_exports__, "BackupService", function () {
      return BackupService;
    });
    /* 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 rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! rxjs */
    "./node_modules/rxjs/_esm2015/index.js");
    /* harmony import */


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


    var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! src/app/core/store/store */
    "./src/app/core/store/store.ts");
    /* harmony import */


    var src_app_shared_time_bar_service_time_bar_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/shared/time-bar/service/time-bar.state */
    "./src/app/shared/time-bar/service/time-bar.state.ts");
    /* harmony import */


    var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! src/environments/environment */
    "./src/environments/environment.ts");
    /* harmony import */


    var _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../db-monitoring.state */
    "./src/app/pages/db-monitoring/db-monitoring.state.ts");
    /* harmony import */


    var _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../services/db-monitoring.services */
    "./src/app/pages/db-monitoring/services/db-monitoring.services.ts");

    var BackupService = /*#__PURE__*/function (_src_app_core_store_s) {
      function BackupService(sessionService, dbmonService) {
        var _this3;

        _classCallCheck(this, BackupService);

        _this3 = _callSuper(this, BackupService);
        _this3.sessionService = sessionService;
        _this3.dbmonService = dbmonService;
        _this3.resPending = false;
        _this3.spin = false;
        return _this3;
      }
      /* Method for sending all the required params into the payload for the request*/


      _inherits(BackupService, _src_app_core_store_s);

      return _createClass(BackupService, [{
        key: "load",
        value: function load(payload) {
          var _this4 = this;

          var me = this;
          this.resPending = false;
          me.dbmonService.disabledRealTime = true;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadingState"]());
          }, 0);
          var session = me.sessionService.session;
          payload = me.dbmonService.loadDefaultCommonParam(payload);

          if (session) {
            payload.cctx = me.sessionService.session.cctx;
            payload.tr = me.sessionService.session.testRun.id;
            payload.timezone = me.sessionService.selectedTimeZone.zoneLabel;
          }

          payload.updateRealTimeStamp = -1;

          if (me.sessionService.isMultiDC) {
            payload.subject = me.dbmonService.subject;
          }

          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].api.dbMonitoring.backup.endpoint;
          me.controller.post(path, payload).subscribe(function (result) {
            var state = new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadedState"]();
            _this4.resPending = true;
            me.dbmonService.disabledRealTime = false;

            if (result != undefined) {
              state.data = result;
              output.next(state);
              return;
            }
          }, function (e) {
            _this4.resPending = true;
            me.dbmonService.disabledRealTime = false;
            output.error(new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadingErrorState"](e));
            output.complete();
            me.logger.error('Memory stats is not loaded successfully');
          });
          return output;
        }
        /* Method for preset */

      }, {
        key: "getPresetAndLoad",
        value: function getPresetAndLoad(payload) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          me.dbmonService.getPresetTime().subscribe(function (state) {
            if (state instanceof src_app_shared_time_bar_service_time_bar_state__WEBPACK_IMPORTED_MODULE_5__["GlobalTimebarTimeLoadedState"]) {
              me.load(payload).subscribe(function (state) {
                if (state instanceof _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadedState"]) {
                  output.next(state);
                  output.complete();
                }
              }, function (state) {
                output.error(new _db_monitoring_state__WEBPACK_IMPORTED_MODULE_7__["DBMonitoringLoadingErrorState"](state.error));
                output.complete();
              });
            }
          });
          return output;
        }
      }]);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__["Store"].AbstractService);

    BackupService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"]
      }, {
        type: _services_db_monitoring_services__WEBPACK_IMPORTED_MODULE_8__["DBMonitoringService"]
      }];
    };

    BackupService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
      providedIn: 'root'
    })], BackupService);
    /***/
  }
}]);