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

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

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

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

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

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

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

function _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([["schedulereport-schedulereport-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.html":
  /*!***************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.html ***!
    \***************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "\n<ng-container *ngIf=\"fromReport === 'reports'\">\n  <p>Schedule Add/Edit is not supported yet if you want to edit the schedule, please delete the existing schedule and create a new one.</p>\n </ng-container >\n <ng-container *ngIf=\"fromReport !== 'reports'\">\n <div class=\"ns-scenario overflow p-8\" style=\"height:calc(100vh - 130px);\">\n  <div class=\"w-100-p relative\">\n    <app-cav-toolbar [number]=\"'1'\" [label]=\"'Report Details'\"> </app-cav-toolbar>\n    <app-help [helpFileName]=\"'addScheduleReport'\" [helpTitle]=\"'Schedule Report'\" [helpFolder]=\"'reports'\"\n    [helpClass]=\"'help_position'\"></app-help>\n  </div>\n  <div class=\"p-grid p-align-center\">\n  <div class=\"p-col-3 form-group\" \n  *ngIf=\" selectedReportType.value !=='custom' && selectedReportType.value !== 'standard' && selectedReportType.value !== 'template'\">\n    <label class=\"p-col-4 control-label checkmark\" for=\"Rname\">Report Name</label>\n    <div class=\"p-col-8\">\n      <input type=\"text\" pInputText class=\"w-100-p\"\n      pTooltip=\"Only letters (either case), numbers, underscores. The Report Name must start with a letter and must be between 1 and 20 characters long (inclusive)\"\n      [(ngModel)]=\"taskName\" tooltipPosition=\"top\"  id=\"Rname\"  />\n    </div>\n  </div>\n\n  <div class=\"p-col-3 form-group\">\n    <label class=\"p-col-4 control-label\" for=\"Rtype\">Report Type</label>\n    <div class=\"p-col-8\">\n      <p-dropdown styleClass=\"w-100-p\" id=\"Rtype\" [options]=\"data.reportType\"\n      placeholder=\"Report Type\" optionLabel=\"label\" [(ngModel)]=\"selectedReportType\"\n      (onChange)=\"selectMethod()\">\n    </p-dropdown>\n    </div>\n  </div>\n\n<div class=\"p-col-2 form-group\" *ngIf=\"selectedReportType.value == 'Performance Stats'\">\n  <label class=\"p-col-4 control-label\"\n    *ngIf=\"selectedReportType.value !== 'Excel' && selectedReportType.value !=='custom' && selectedReportType.value !== 'standard' && selectedReportType.value !== 'template' \">\n    Format\n  </label>\n  <div class=\"p-col-8\" *ngIf=\"selectedReportType.value === 'Performance Stats'\">\n    <p-dropdown styleClass=\"w-100-p\" [options]=\"drpRptViewTypeStatsList\" name=\"rViewType\"\n      (onChange)=\"selectFormat()\" [(ngModel)]=\"reportVisualizeType\">\n    </p-dropdown>\n  </div>\n  <div class=\"p-col-8\" *ngIf=\"selectedReportType.value === 'Alert Digest Report'\">\n    <p-dropdown styleClass=\"w-100-p\" [options]=\"drpRptViewTypeList\" name=\"rViewType\"\n      [(ngModel)]=\"reportVisualizeType\">\n    </p-dropdown>\n  </div>\n</div>\n\n<div class=\"p-col-fixed form-group\" *ngIf=\"selectedReportType.value === 'Performance Stats' && reportVisualizeType === 'HTML'\">\n  <button pButton type=\"button\" class=\"btn-light-secondary  width-34\" icon=\"icons8 icons8-settings\" pTooltip=\"Report Settings\" (click)=\"reportSetting()\" tooltipPosition=\"top\"></button>\n</div>\n\n\n<div class=\"p-col-fixed form-group\" *ngIf=\"selectedReportType.value === 'Performance Stats'\">\n  <p-selectButton [options]=\"selectTemplateOptions\" [(ngModel)]=\"selectedTempOrFav\" (onChange)=\"selectTempORDashboard($event)\"></p-selectButton>\n</div>\n\n\n\n  <div class=\"p-col max-w-30 form-group\">\n    <label class=\"p-col-fixed width-122 control-label\"\n      *ngIf=\"selectedReportType.value === 'Excel' || selectedReportType.value === 'Alert Digest Report' || selectedReportType.value ==='custom' || selectedReportType.value === 'standard' || selectedReportType.value === 'template'\">\n      Template\n    </label>\n\n    <div class=\"p-col\"\n      *ngIf=\"selectedReportType.value === 'Excel' || selectedReportType.value === 'Alert Digest Report'\">\n      <p-dropdown styleClass=\"w-100-p\" [(ngModel)]=\"selectedExcelTemplate\" \n      [options]=\"excelTemplateOption\" optionLabel=\"label\" [filter]=\"true\" (onChange)=\"selectAlertDigest()\">\n        <ng-template let-item pTemplate=\"item\">\n          <div>\n            <span [pTooltip]=\"item.label\" tooltipPosition=\"top\">{{item.label}}</span>\n          </div>\n        </ng-template>\n        <ng-template let-item pTemplate=\"selectedItem\">\n          <div>\n            <span [pTooltip]=\"item.label\" tooltipPosition=\"top\">{{item.label}}</span>\n          </div>\n        </ng-template>\n      </p-dropdown>\n    </div>\n    <div class=\"p-col\"\n      *ngIf=\"selectedReportType.value ==='custom' || selectedReportType.value === 'standard' || selectedReportType.value === 'template'\">\n      <p-dropdown styleClass=\"w-100-p\" \n        [(ngModel)]=\"selectedReportTemplate\" [options]=\"reportTemplates\" [autoDisplayFirst]=\"false\"\n        [filter]=\"true\" (onChange)=\"onUXReportTypeChange($event.value)\">\n      </p-dropdown>\n    </div>\n    <div class=\"p-col width-190\" *ngIf=\"selectedReportType.value === 'Performance Stats'\">\n      <p-dropdown styleClass=\"w-100-p\" [panelStyle]=\"{'max-width':'100%'}\"\n        [(ngModel)]=\"selectedSystemTemplate\" [options]=\"templateOptions\" optionLabel=\"label\" [filter]=\"true\">\n        <ng-template let-item pTemplate=\"item\">\n          <div>\n            <span [pTooltip]=\"item.label\" tooltipPosition=\"top\">{{item.label}}</span>\n          </div>\n        </ng-template>\n        <ng-template let-item pTemplate=\"selectedItem\">\n          <div>\n            <span [pTooltip]=\"item.label\" tooltipPosition=\"top\">{{item.label}}</span>\n          </div>\n        </ng-template>\n      </p-dropdown>\n    </div>\n  </div>\n  <div class=\"p-col-fixed form-group\" \n  *ngIf=\"selectedReportType.value === 'Excel' || selectedReportType.value === 'Alert Digest Report'\">\n      <button pButton type=\"button\" class=\"btn-light-secondary mx-3 width-34\"\n        (click)=\"downloadTemplate(selectedExcelTemplate,selectedReportType)\" pTooltip=\"Download\"\n        tooltipPosition=\"top\" icon=\"icons8 icons8-download\"></button>\n\n        <div class=\"btn-upload\" title=\"Upload\">\n          <p-fileUpload #schExcelUpload mode=\"basic\" name=\"uploadedFiles[]\" [url]=\"uploadURL\" accept=\".xls,.xlsx\"\n            (onSelect)=\"onSelectTemplateToUpload($event,schExcelUpload)\" class=\"btn-upload\" [showUploadButton]=\"false\">\n          </p-fileUpload>\n          <button pButton type=\"button\" class=\"btn-light-secondary mx-3 width-34\" icon=\"icons8 icons8-upload\"></button>\n        </div>\n\n      <span [pTooltip]=\"toolTipTest\" tooltipPosition=\"top\">\n        <button pButton type=\"button\" class=\"btn-danger-outline mx-3 width-34\" (click)=\"deleteExcelAlertTemplate()\"\n          pTooltip=\"Delete\" tooltipPosition=\"top\" icon=\"icons8 icons8-delete-trash\">\n        </button>\n      </span>\n  </div>\n  </div>\n\n\n<div class=\"p-grid p-align-center\">\n  <ng-container *ngIf=\"selectedReportType.value === 'Excel'\">\n  <div class=\"p-col-3 form-group\">\n    <label class=\"p-col-4 control-label\">Aggregated by</label>\n    <div class=\"p-col\">\n      <p-dropdown name=\"nameAggregateTimeOption\" [options]=\"aggregateTimeDropdown\"\n        [(ngModel)]=\"selectedAggregateTimeOption\" styleClass=\"w-100-p\" (onChange)=\"selectAggregateTimeOption()\"\n        [disabled]=\"presetType == 'templateTime'\">\n      </p-dropdown>\n    </div>\n  <div class=\"p-col-3 pl-6\" *ngIf=\"selectedAggregateTimeOption !== 'totalDuration(s)'\">\n    <p-dropdown [options]=\"aggregatebyDropdown\" (onChange)=\"selectAggregatebyOption()\"\n      [(ngModel)]=\"selectedAaggregateByOption\" optionLabel=\"label\" styleClass=\"w-100-p\"></p-dropdown>\n  </div>\n  </div>\n\n  <div *ngIf=\"selectedReportType.value === 'Excel' && selectedAggregateTimeOption !== 'totalDuration(s)'\"\n    class=\"p-col-3 form-group\">\n    <label class=\"p-col-4 control-label\">Show report in</label>\n    <div class=\"p-col-6 pr-0\">\n      <p-dropdown styleClass=\"w-100-p addonSelect\" [options]=\"showInDropdown\" placeholder=\"Column\" [(ngModel)]=\"selectedValue\"\n        optionLabel=\"label\">\n      </p-dropdown>\n    </div>\n    <div class=\"ui-inputgroup p-col-2 pl-0\">\n      <span class=\"ui-inputgroup-addon formatAddon\">Format.</span>\n    </div>\n  </div>\n\n  <div class=\"p-col-fixed form-group\" *ngIf=\"selectedAggregateTimeOption == 'Week(s)' && !aggregatedValue\">\n    <div class=\"control-label\">\n      <p-checkbox class=\"line-height\" name=\"groupname\" value=\"val\" [binary]=\"true\"\n        label=\"Show last week's data day-wise\" [(ngModel)]=\"shwLstData\"></p-checkbox>\n    </div>\n  </div>\n  </ng-container>\n\n<ng-container *ngIf=\"selectedReportType.value === 'Performance Stats' && checkMetricsCharts\">\n    <div class=\"p-col-fixed p-offset-1 pl-3 form-group\">\n      <p-checkbox [binary]=\"true\" name=\"nameIncludeChart\" label=\"Include Metrics Charts\"\n      [disabled]=\"reportVisualizeType === 'HTML'\" [(ngModel)]=\"includeMetricChart\">\n    </p-checkbox>\n    </div>\n  <div class=\"p-col-fixed form-group\"  *ngIf=\"includeMetricChart && checkMetricsCharts\">\n      <p-checkbox name=\"nameAddGraphImage\" [binary]=\"true\" label=\"Add Graph Image\" [(ngModel)]=\"addGraphImage\">\n      </p-checkbox>\n  </div>\n  <div class=\"p-col-2 form-group\" *ngIf=\"selectedReportType.value == 'Performance Stats' && addGraphImage && includeMetricChart && checkMetricsCharts\">\n    <label class=\"p-col-8 control-label\" *ngIf=\"selectedTempOrFav == 'Using Template'\">Number Of Report Set</label>\n    <label class=\"p-col-8 control-label\" *ngIf=\"selectedTempOrFav == 'Using Dashboard'\">Number Of Widget</label>\n    <div class=\"p-col-4\"\n      *ngIf=\"selectedReportType.value == 'Performance Stats' && addGraphImage && includeMetricChart && checkMetricsCharts\">\n      <p-dropdown name=\"nameNumGraphImg\" [options]=\"numGraphImgDropdown\"\n        [(ngModel)]=\"selectedNumGraphImg\" label=\"Number of Widget\" styleClass=\"w-100-p\">\n      </p-dropdown>\n    </div>\n  </div>\n</ng-container>\n</div>\n\n\n<div class=\"p-grid p-align-center mb-16\">\n  <div class=\"p-col-12 form-group\">\n    <label class=\"p-col-1 control-label checkmark mln-3\">Task Description </label>\n    <div class=\"p-col-11\">\n      <textarea rows=\"8\" class=\"w-100-p\" pInputTextarea [(ngModel)]=\"taskDescription\"></textarea>\n    </div>\n  </div>\n</div>\n\n<!-- ========================Time Filter======================== -->\n\n<div class=\"w-100-p\">\n  <app-cav-toolbar [number]=\"'2'\" [label]=\"'Time Filter'\"> </app-cav-toolbar>\n</div>\n<div class=\"mb-16\">\n<div class=\"p-grid p-align-center\">\n  <div class=\"p-col-12 form-group\">\n    <div class=\"control-label\">\n      <p-selectButton [options]=\"presetOptions\" [(ngModel)]=\"presetType\"\n        (onChange)=\"onTimeFilterTypeChange()\"></p-selectButton>\n    </div>\n</div>\n</div>\n\n<div class=\"p-grid p-align-center pl-16\">\n<div *ngIf=\"preset && presetType != 'templateTime'\" class=\"p-col-2 form-group\">\n    <button pButton #presetMenu class=\"w-100-p btn-secondary-outline\"\n    (click)=\"timePeriodMenu.show($event);onschMenuAppendClick()\" [disabled]=\"!preset\" id=\"schMenuAppend\"\n    *ngIf=\"selectedReportType.value !=='custom' && selectedReportType.value !== 'standard' && selectedReportType.value !== 'template'\">\n    <div class=\"p-grid p-align-center p-justify-between w-100-p\">\n      <span>\n        {{(tmpValue.timePeriod.selected && tmpValue.timePeriod.selected.label) || 'Select time period'}}\n      </span>\n      <i class=\"icons8 icons8-expand-arrow font-24 mrn-10\"></i>\n    </div>\n  </button>\n</div>\n<ng-container\n  *ngIf=\"selectedReportType.value === 'Excel' || selectedReportType.value === 'Performance Stats' || selectedReportType.value === 'Alert Digest Report' \">\n  <p-slideMenu [style]=\"{width: '235px'}\" [menuWidth]=\"235\" #timePeriodMenu [model]=\"tmpValue.timePeriod.options\"\n    [popup]=\"true\">\n  </p-slideMenu>\n</ng-container>\n\n<div *ngIf=\"presetType != 'templateTime'\" class=\"p-col-3 form-group\">\n    <div class=\"ui-inputgroup w-100-p\">\n      <span class=\"ui-float-label w-100-p\">\n        <input id=\"dateTime\" type=\"text\" pInputText [owlDateTime]=\"customStartDateTime\"\n          placeholder=\"MM/dd/yyyy HH:mm:ss\" (input)=\"onInput()\" [selectMode]=\"'range'\" [max]=\"customTimeFrameMax\"\n          [(ngModel)]=\"customTimeFrame\" (onChange)=\"onTimeFilterCustomTimeChange()\" [disabled]=\"preset\"\n          class=\"owlInput w-100-p\" />\n        <label for=\"dateTime\">Start and End Date Time</label>\n      </span>\n      <span class=\"ui-inputgroup-addon\" [owlDateTimeTrigger]=\"customStartDateTime\"><i\n          class=\"icons8 icons8-calendar mx-8\"></i></span>\n    </div>\n    <owl-date-time [showSecondsTimer]=true #customStartDateTime tooltipZIndex=\"100001005\"></owl-date-time>\n</div>\n\n<ng-container *ngIf=\"checkNBHEnable\" >\n  <div class=\"p-col-2 form-group\">\n      <p-checkbox binary=\"true\" name=\"nonBusinessHours\" [(ngModel)]=\"isExceluedNonBusinessHoue\"\n      label=\"Exclude Non Business Hours\"></p-checkbox>\n  </div>\n\n  <div class=\"p-col-3 form-group\">\n    <div class=\"w-100-p\">\n    <p-dropdown [disabled]=\"!isExceluedNonBusinessHoue\" [filter]=\"true\" [options]=\"nonBusinessHoursOpt\"\n       (onChange)=\"selectNonBusinessHours($event)\"\n      [(ngModel)]=\"selectedNonBusinessHours\" styleClass=\"w-100-p\">\n    </p-dropdown>\n    </div>\n  </div>\n</ng-container>\n</div>\n</div>\n\n\n\n\n<!-- ========================Schedule Settings======================== -->\n<div class=\"w-100-p\">\n  <app-cav-toolbar [number]=\"'3'\" [label]=\"'Schedule Settings'\"> </app-cav-toolbar>\n</div>\n    <div class=\"mx-24\">\n        <app-cav-scheduler [cavScheduleInput]=\"inputForCavScheduler\" (responseEvent)=\"onSuccessEventHandling($event)\"></app-cav-scheduler>\n    </div>\n\n\n\n\n<!-- ========================Mailing Info======================== -->\n\n  <div class=\"w-100-p\">\n    <app-cav-toolbar [number]=\"'4'\" [label]=\"'Mailing Info'\"> </app-cav-toolbar>\n  </div>\n\n\n  <div class=\"p-grid p-align-center mb-12\">\n      <div class=\"p-col-6 form-group\">\n        <label class=\"p-col-2 control-label\" for=\"toEmails\">To</label>\n        <div class=\"p-col-10\">\n          <p-chips class=\"w-100-p input-chips\" [addOnBlur]=\"true\" pTooltip=\"\" tooltipPosition=\"top\"\n            [(ngModel)]=\"toEmails\" id=\"toEmails\" [allowDuplicate]='false' (onAdd)=\"mailAdd($event)\"></p-chips>\n        </div>\n      </div>\n      <div class=\"p-col-6 form-group\">\n        <label class=\"p-col-2 control-label\" for=\"emailSubject\">Subject</label>\n        <div class=\"p-col-10\">\n          <input type=\"text\" pInputText class=\"w-100-p\" [(ngModel)]=\"txtMailSubject\" id=\"emailSubject\">\n        </div>\n      </div>\n      <div class=\"p-col-12 form-group\">\n        <label class=\"p-col-1 control-label\" for=\"emaililBody\">Body</label>\n        <div class=\"p-col-11\">\n          <textarea rows=\"5\" pInputTextarea class=\"w-100-p\" [(ngModel)]=\"txtMailBody\"></textarea>\n        </div>\n      </div>\n      <div class=\"p-col-12 form-group\">\n        <label class=\"p-col-1 control-label\">Hints</label>\n        <div class=\"p-col-11\">\n          <button pButton class=\"btn-primary-outline mr-6\" label=\"ReportName =$reportname\" (click)=\"fillMailBody('ReportName = $reportname')\">\n          </button>\n          <button pButton class=\"btn-primary-outline mx-6\" label=\"StartDate =$sddate\" (click)=\"fillMailBody('StartDate = $sddate')\"></button>\n            <button pButton class=\"btn-primary-outline mx-6\" label=\"EndDate =$eddate\" (click)=\"fillMailBody('EndDate = $eddate')\"></button>\n            <button pButton class=\"btn-primary-outline mx-6\" label=\"GenerationDateTime =$genDatetime\"\n              (click)=\"fillMailBody('GenerationDateTime = $genDateTime')\">\n            </button>\n        </div>\n  </div>\n</div>\n\n\n<p-dialog header=\"Report Settings\" [(visible)]=\"displayReportSetting\" [modal]=\"true\" [responsive]=\"true\"\n  [style]=\"styleForDialog()\" (onHide)=\"cancelReportSetting()\" [minY]=\"70\">\n  <div class=\"outer-border\">\n    <div class=\"changeStyleReportSetting\">\n      <p-checkbox [binary]=\"true\" [(ngModel)]=\"checkAnalysisSummary\" label=\"Analysis Summary\"></p-checkbox>\n    </div>\n    <div class=\"changeStyleReportSetting\">\n      <p-checkbox [binary]=\"true\" [(ngModel)]=\"checkPerformanceSummary\" (onChange)=\"updateReportSetting()\"\n        label=\"Performance Summary\"></p-checkbox>\n    </div>\n    <div class=\"changeStyleReportSetting\">\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Overview\"\n          [(ngModel)]=\"checkOverview\"></p-checkbox>\n      </div>\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Sessions\"\n          [(ngModel)]=\"checkSessions\"></p-checkbox>\n      </div>\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Transactions\"\n          [(ngModel)]=\"checkTransactions\"></p-checkbox>\n      </div>\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Pages\" [(ngModel)]=\"checkPages\">\n        </p-checkbox>\n      </div>\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Network\"\n          [(ngModel)]=\"checkNetwork\"></p-checkbox>\n      </div>\n      <div class=\"changeStyleReportSetting\">\n        <p-checkbox [binary]=\"true\" (onChange)=\"updateSubReportSetting()\" label=\"Errors\"\n          [(ngModel)]=\"checkErrors\"></p-checkbox>\n      </div>\n    </div>\n    <div class=\"changeStyleReportSetting\">\n      <p-checkbox [binary]=\"true\" label=\"Metrics Summary\" [(ngModel)]=\"checkMetricsSummary\"></p-checkbox>\n    </div>\n    <div class=\"changeStyleReportSetting\">\n      <p-checkbox [binary]=\"true\" label=\"Metrics Charts\" [(ngModel)]=\"checkMetricsCharts\"></p-checkbox>\n    </div>\n  </div>\n  <p-footer>\n    <div class=\"p-grid p-justify-end\">\n      <button class=\"px-10\" type=\"button\" pButton (click)=\"applyReportSetting()\" label=\"Apply\"></button>\n      <button class=\"ui-button-secondarymx-6\" type=\"button\" pButton (click)=\"cancelReportSetting()\" label=\"Cancel\"></button>\n    </div>\n  </p-footer>\n</p-dialog>\n</div>\n\n<div class=\"bottom-footer ns-scenario\">\n  <button pButton type=\"button\" styleClass=\"mx-6\" [disabled]=\"permission\"\n  [pTooltip]=\"isEditClicked  ? 'Update The Scheduled Report':'Schedule Report'\"\n  label=\"{{isEditClicked ? 'Update' : 'Save'}}\" (click)=\"saveSchedule()\"></button>\n  <button pButton type=\"button\" class=\"btn-secondary-outline mx-6\" label=\"Cancel\" (click)=\"onCancelSchedule()\"></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\" key=\"scheduler\" rejectLabel=\"No\"></p-confirmDialog>\n  </ng-container>\n";
    /***/
  },

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.scss":
  /*!*************************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.scss ***!
    \*************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "app-schedulereport .owlInput {\n  height: calc(2em + 0.35rem + 2px) !important;\n  padding: 0.25rem 0.55rem !important;\n}\napp-schedulereport .help_position {\n  top: 8px;\n}";
    /***/
  },

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.ts":
  /*!***********************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.ts ***!
    \***********************************************************************************************/

  /*! exports provided: SchedulereportComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "SchedulereportComponent", function () {
      return SchedulereportComponent;
    });
    /* 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_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


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


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


    var moment_timezone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! moment-timezone */
    "./node_modules/moment-timezone/index.js");
    /* harmony import */


    var moment_timezone__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment_timezone__WEBPACK_IMPORTED_MODULE_4__);
    /* 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 primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! rxjs */
    "./node_modules/rxjs/_esm2015/index.js");
    /* harmony import */


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


    var src_app_core_session_node_Info_session_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! src/app/core/session/node-Info-session.service */
    "./src/app/core/session/node-Info-session.service.ts");
    /* harmony import */


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


    var src_app_pages_home_home_sessions_common_service_nvhttp_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/pages/home/home-sessions/common/service/nvhttp.service */
    "./src/app/pages/home/home-sessions/common/service/nvhttp.service.ts");
    /* harmony import */


    var src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! src/app/shared/cav-nav-bar/cav-nav-bar.service */
    "./src/app/shared/cav-nav-bar/cav-nav-bar.service.ts");
    /* harmony import */


    var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_13__ = __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_shared_date_time_picker_moment_moment_date_time_adapter__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! src/app/shared/date-time-picker-moment/moment-date-time-adapter */
    "./src/app/shared/date-time-picker-moment/moment-date-time-adapter.ts");
    /* harmony import */


    var src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! src/app/shared/report-common/constant/report-enum */
    "./src/app/shared/report-common/constant/report-enum.ts");
    /* harmony import */


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


    var src_app_shared_utility_menu_item__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! src/app/shared/utility/menu-item */
    "./src/app/shared/utility/menu-item.ts");
    /* harmony import */


    var src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! src/app/shared/utility/object */
    "./src/app/shared/utility/object.ts");
    /* harmony import */


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


    var _reports_service_reports_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! ../../../reports/service/reports.service */
    "./src/app/pages/my-library/reports/service/reports.service.ts");
    /* harmony import */


    var _metrics_add_report_service_add_report_dummy__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! ../../metrics/add-report/service/add-report.dummy */
    "./src/app/pages/my-library/reports/metrics/add-report/service/add-report.dummy.ts");
    /* harmony import */


    var _metrics_add_report_service_add_report_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! ../../metrics/add-report/service/add-report.service */
    "./src/app/pages/my-library/reports/metrics/add-report/service/add-report.service.ts");
    /* harmony import */


    var _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! ../../metrics/add-report/service/add-report.state */
    "./src/app/pages/my-library/reports/metrics/add-report/service/add-report.state.ts");
    /* harmony import */


    var _template_service_template_state__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
    /*! ../../template/service/template.state */
    "./src/app/pages/my-library/reports/template/service/template.state.ts");
    /* harmony import */


    var _schedulereport_service_schedulereport_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
    /*! ../schedulereport/service/schedulereport.service */
    "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.service.ts");
    /* harmony import */


    var _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
    /*! ../schedulereport/service/schedulereport.state */
    "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.state.ts");
    /* harmony import */


    var _service_schedules_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
    /*! ../service/schedules.service */
    "./src/app/pages/my-library/reports/schedules/service/schedules.service.ts");
    /* harmony import */


    var _service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
    /*! ./service/schedulereport.dummy */
    "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.dummy.ts");

    var SchedulereportComponent = /*#__PURE__*/function () {
      function SchedulereportComponent(timebarService, scheduleReportService, addReportService, router, cd, sessionService, confirmation, schedulesService, messageService, reportsService, breadcrumbService, nvhttp, cavNavBarService, nodeInfoSessionService, route) {
        _classCallCheck(this, SchedulereportComponent);

        this.timebarService = timebarService;
        this.scheduleReportService = scheduleReportService;
        this.addReportService = addReportService;
        this.router = router;
        this.cd = cd;
        this.sessionService = sessionService;
        this.confirmation = confirmation;
        this.schedulesService = schedulesService;
        this.messageService = messageService;
        this.reportsService = reportsService;
        this.breadcrumbService = breadcrumbService;
        this.nvhttp = nvhttp;
        this.cavNavBarService = cavNavBarService;
        this.nodeInfoSessionService = nodeInfoSessionService;
        this.route = route;
        this.customTimeFrame = null;
        this.customTimeFrameMax = null;
        this.timeFilterEnableApply = false;
        this.invalidDate = false;
        this.tmpValue = null;
        this.preset = true;
        this.isDiscontinue = true;
        this.includeMetricChart = true;
        this.showLastWeekData = true;
        this.overridePreset = false;
        this.showDiscontinued = true;
        this.aggregatedValue = true;
        this.data = lodash__WEBPACK_IMPORTED_MODULE_3__["cloneDeep"](_service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__["SCHEDULE_REPORT_DATA"]);
        this.selectedReportType = {
          label: 'Excel',
          value: 'Excel'
        };
        this.showInDropdown = [{
          label: 'Column',
          value: 0
        }, {
          label: 'Tab',
          value: 1
        }];
        this.selectedValue = {
          label: 'Column',
          value: 0
        };
        this.selectedAggregateTimeOption = 'totalDuration(s)';
        this.selectedAaggregateByOption = {
          label: '-1',
          value: '-1'
        };
        this.aggTimeUnitInExcel = '-1';
        this.aggTimeValueInExcel = this.selectedAaggregateByOption;
        this.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE;
        this.dialogVisible = false;
        this.reportVisualizeType = 'WORD';
        this.addGraphImage = false;
        this.selectedNumGraphImg = '1';
        this.checkAnalysisSummary = true;
        this.checkPerformanceSummary = true;
        this.checkOverview = true;
        this.checkSessions = true;
        this.checkTransactions = true;
        this.checkPages = true;
        this.checkNetwork = true;
        this.checkErrors = true;
        this.checkMetricsSummary = true;
        this.checkMetricsCharts = true;
        this.checkIncludeChart = true;
        this.isApply = false;
        this.objReportSetting = {};
        this.addOffset = false;
        this.addOSInPreTime = false;
        this.everyHourOffsetModel = 0;
        this.schTaskObj = {};
        this.mailObj = {};
        this.crqObj = {};
        this.schObj = {};
        this.txtMailTo = '';
        this.toEmails = [];
        this.txtMailSubject = '';
        this.txtMailBody = '';
        this.shwLstData = false;
        this.isMultiDC = false;
        this.boundaryCondition = 'NA';
        this.formatTxt = 'WORD';
        this.excelReportOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_REPORT;
        this.selectedMetricOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].TEMPLATE_GRAPH_REPORT;
        this.selectedFavMetricOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].Favorite_GRAPH_REPORT;
        this.alertDigestReportOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].ALERT_DIGEST_EXCEL_REPORT;
        this.displayReportSetting = false;
        this.isEditClicked = false;
        this.blockedDocument = false;
        this.rowsForDes = 4;
        this.checkFirstTimePreset = false;
        this.uploadedFileName = '';
        this.firstTimeCustom = false;
        this.count = 0;
        this.note = '';
        this.reportTemplates = [];
        this.buckets = [];
        this.selectedBucket = 1;
        this.selectTemplateOptions = [{
          label: 'Template',
          value: 'Using Template'
        }, {
          label: "Dashboard",
          value: "Using Dashboard"
        }];
        this.lastTime = [{
          label: '15 Minutes',
          value: '15 Minutes'
        }, {
          label: '1 Hour',
          value: '1 Hour'
        }, {
          label: '4 Hours',
          value: '4 Hours'
        }, {
          label: '8 Hours',
          value: '8 Hours'
        }, {
          label: '12 Hours',
          value: '12 Hours'
        }, {
          label: '16 Hours',
          value: '16 Hours'
        }, {
          label: '20 Hours',
          value: '20 Hours'
        }, {
          label: '1 Day',
          value: '1 Day'
        }, {
          label: '1 Week',
          value: '1 Week'
        }, {
          label: '1 Month',
          value: '1 Month'
        }, {
          label: '1 Year',
          value: '1 Year'
        }];
        this.selectedTime = '00:00';
        this.DAYS = [{
          label: 'SUN',
          value: 'SUN'
        }, {
          label: 'MON',
          value: 'MON'
        }, {
          label: 'TUE',
          value: 'TUE'
        }, {
          label: 'WED',
          value: 'WED'
        }, {
          label: 'THU',
          value: 'THU'
        }, {
          label: 'FRI',
          value: 'FRI'
        }, {
          label: 'SAT',
          value: 'SAT'
        }];
        this.presetType = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].PRESET;
        this.permission = false;
        this.checkNBHEnable = false;
        this.isExceluedNonBusinessHoue = false;
        this.lostTemplateMsg = false; // for closing of schMenuAppend menu

        this.isSchMenuAppendOpen = false;
        this.dataTobeEdit = {}; //This is for editing scheduler task.

        this.cavNavBarService.showNavBar = false;
        this.dialogVisible = false;
        this.pushGraphImageArr();
      }

      return _createClass(SchedulereportComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {
          if (this.route.snapshot.queryParams.from && this.route.snapshot.queryParams.from == "nvreports") {
            this.data.reportType = _service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__["SCHEDULE_REPORT_DATA"].uxReportType;
          } else {
            this.fromReport = this.route.snapshot.queryParams.from;
            this.data.reportType = _service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__["SCHEDULE_REPORT_DATA"].reportType;
          }

          var me = this;
          me.inputForCavScheduler = {
            enableFor: false,
            enableNow: false
          };
          me.cmt = me.sessionService.session.testRun.cmt;
          me.addReportService.productNameType = me.sessionService.session.cctx.prodType;
          me.breadcrumbService.addNewBreadcrumb({
            label: (history.state.data ? 'Edit' : 'Add') + ' Schedule'
          });
          me.cavNavBarService.showBreadCrumb = true;
          me.tmpValue = _service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__["Report_Scheduler_Preset"];
          me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameStart.value), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value)];
          me.selectedReportType = me.data.reportType[0];

          if (!history.state.data) {
            //This case is for fresh schedule not for edit mode.
            me.getPresetInit();
            me.favoriteTaskList();
          }

          me.getDrpRptTypeList();
          me.selectAggregateTimeOption();
          me.setPresetoption(me.selectedReportType.label);

          if (me.schedulesService.isScheduleReportButtonClicked) {
            me.resetCreateTaskObj();
            me.schedulesService.isScheduleReportButtonClicked = false;
          }

          me.note = me.reportsService.viewByAutoNote;
          me.getNonBusinessHourPreset();

          if (history.state.data) {
            //This case is for edit scheduler.
            me.isEditClicked = true;
            me.editReportTask(history.state.data);
          }

          if (history.state.permission) {
            me.permission = true;
          } else {
            me.permission = false;
          } //Below changes is for initialization of excel template URL.


          this.uploadURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase.toString() + src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.uploadFile.load.endpoint + '?for=fileExplorer&destination=' + '/home/cavisson/' + this.sessionService.preSession.serverName + '/webapps/templates/excel_templates';
        }
      }, {
        key: "editReportTask",
        value: function editReportTask(cavScheduleTask) {
          try {
            var me = this;
            me.dataTobeEdit = cavScheduleTask;
            me.inputForCavScheduler = {
              schedule: cavScheduleTask.schedule,
              enableFor: false,
              enableNow: false
            };
            this.fillValues();
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "routeToRptOrSch",
        value: function routeToRptOrSch() {
          this.router.navigate(['/schedules']);
        }
      }, {
        key: "fillValues",
        value: function fillValues() {
          var _a, _b, _c, _d, _e, _f;

          var me = this;

          if (me.dataTobeEdit.taskType == "CavNvScheduleReport") {
            this.taskName = me.dataTobeEdit.task[0].taskReq.crq.name;

            if (me.dataTobeEdit.task[0].taskReq.crq.scheduleReportType === 'standard') {
              this.selectedReportType = {
                label: 'UX Standard',
                value: 'standard'
              };
            } else if (me.dataTobeEdit.task[0].taskReq.crq.scheduleReportType === 'custom') {
              this.selectedReportType = {
                label: 'UX Custom',
                value: src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM
              };
            } else if (me.dataTobeEdit.task[0].taskReq.crq.scheduleReportType === 'template') {
              this.selectedReportType = {
                label: 'UX Template',
                value: 'template'
              };
            }

            me.setPresetoption(me.selectedReportType.label);
            this.getNVReportTemplates(true);
            return;
          }

          this.taskName = me.dataTobeEdit.task[0].crq.name; // setting report param

          if (me.dataTobeEdit.task[0].crq.reportType === 'Excel Report') {
            this.selectedReportType = {
              label: 'Excel',
              value: 'Excel'
            };
          } else if (me.dataTobeEdit.task[0].crq.reportType === 'Word Report') {
            this.selectedReportType = {
              label: 'Metric',
              value: 'Performance Stats'
            };
            this.reportVisualizeType = 'WORD';
          } else if (me.dataTobeEdit.task[0].crq.reportType === 'Html Report') {
            this.selectedReportType = {
              label: 'Metric',
              value: 'Performance Stats'
            };
            this.reportVisualizeType = 'HTML';
            me.checkAnalysisSummary = me.dataTobeEdit.task[0].crq.analysisSummaryEnabled;
            me.checkPerformanceSummary = me.dataTobeEdit.task[0].crq.performanceSummaryEnable;
            me.checkOverview = me.dataTobeEdit.task[0].crq.overviewEnabled;
            me.checkSessions = me.dataTobeEdit.task[0].crq.sessionsEnabled;
            me.checkTransactions = me.dataTobeEdit.task[0].crq.transactionsEnabled;
            me.checkPages = me.dataTobeEdit.task[0].crq.pagesEnabled;
            me.checkNetwork = me.dataTobeEdit.task[0].crq.networkEnabled;
            me.checkErrors = me.dataTobeEdit.task[0].crq.errorsEnabled;
            me.checkMetricsSummary = me.dataTobeEdit.task[0].crq.metricsSummaryEnabled;
            me.checkMetricsCharts = me.dataTobeEdit.task[0].crq.metricsChartsEnabled;
          } else if (me.dataTobeEdit.task[0].crq.reportType === 'Alert Digest WORD Report' || me.dataTobeEdit.task[0].crq.reportType === 'Alert DigestWORD Report') {
            this.selectedReportType = {
              label: 'Alert Digest Report',
              value: 'Alert Digest Report'
            };
            this.reportVisualizeType = 'WORD';
          } else if (me.dataTobeEdit.task[0].crq.reportType === 'Alert Digest EXCEL Report' || me.dataTobeEdit.task[0].crq.reportType === 'Alert DigestEXCEL Report') {
            this.selectedReportType = {
              label: 'Alert Digest Report',
              value: 'Alert Digest Report'
            };
            this.reportVisualizeType = 'EXCEL';
          } else if (me.dataTobeEdit.task[0].crq.reportType === 'Alert Digest PDF Report' || me.dataTobeEdit.task[0].crq.reportType === 'Alert DigestPDF Report') {
            this.selectedReportType = {
              label: 'Alert Digest Report',
              value: 'Alert Digest Report'
            };
            this.reportVisualizeType = 'PDF';
          }

          me.setPresetoption(me.selectedReportType.label); // setting template name in the dropdown

          if (me.dataTobeEdit.task[0].crq.templateName) {
            this.selectedReportTemplate = me.dataTobeEdit.task[0].crq.templateName;
          } else {
            this.selectedReportTemplate = me.dataTobeEdit.task[0].crq.template;
          }

          this.onUXReportTypeChange(this.selectedReportTemplate);
          this.selectedExcelTemplate = me.dataTobeEdit.task[0].crq.template;

          if (me.dataTobeEdit.task[0].crq.readFromTemplate) {
            if (me.dataTobeEdit.task[0].crq.format === 'EXCEL') {
              this.overridePreset = me.dataTobeEdit.task[0].crq.readFromTemplate;
              if (me.dataTobeEdit.task[0].crq.readFromTemplate) this.presetType = "templateTime";
            }
          }

          this.shwLstData = me.dataTobeEdit.task[0].crq.shwLstData;

          if (me.dataTobeEdit.task[0].crq.reportView) {
            if (me.dataTobeEdit.task[0].crq.reportView === 'tabView') {
              this.selectedValue = {
                label: 'Tab',
                value: 1
              };
            } else {
              this.selectedValue = {
                label: 'Column',
                value: 0
              };
            }
          }

          if (me.dataTobeEdit.task[0].crq.addGraphImageInSchMailBody) {
            this.addGraphImage = me.dataTobeEdit.task[0].crq.addGraphImageInSchMailBody;
            this.selectedNumGraphImg = me.dataTobeEdit.task[0].crq.numAddGraphImageInSchMailBody;
          }

          if (me.dataTobeEdit.task[0].crq.aggEntireRpt) {
            var arr = [];
            arr = me.dataTobeEdit.task[0].crq.aggEntireRpt.split(' ');
            this.aggregatedValue = this.getBooleanFromString(arr[2]);
            this.selectedAggregateTimeOption = arr[1] + '(s)';
            this.selectedAaggregateByOption = {
              label: arr[0],
              value: arr[0]
            };
            this.fillAggregateByDropdowninEditMode(this.selectedAggregateTimeOption); // specified preset from template (false) preset/custom 

            if (arr[0] == -1) {
              this.selectedAggregateTimeOption = 'totalDuration(s)';
              this.selectedAaggregateByOption = {
                label: '-1',
                value: '-1'
              };
            } // specified preset from template (true) not preset/custom


            if (this.getBooleanFromString(arr[2])) {
              this.aggregatedValue = true;
              this.selectedAggregateTimeOption = 'totalDuration(s)';
              this.selectedAaggregateByOption = {
                label: '-1',
                value: '-1'
              };
            }
          }

          if (me.dataTobeEdit.task[0].crq.bucket) {
            this.selectedBucket = me.dataTobeEdit.task[0].crq.bucket;
          }

          this.includeMetricChart = me.dataTobeEdit.task[0].crq.includeChart;
          this.addOSInPreTime = me.dataTobeEdit.task[0].crq.addOSInPreTime;
          this.isDiscontinue = true;
          this.boundaryCondition = 'NA';
          this.selectedExcelTemplate = me.dataTobeEdit.task[0].crq.templateName;

          if (me.dataTobeEdit.task[0].crq.lastTime === 'Custom') {
            this.preset = false;
            this.presetType = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM;

            if (me.scheduleReportService.presetData && me.scheduleReportService.presetData.data) {
              var preparedValue = src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_18__["ObjectUtility"].duplicate(me.scheduleReportService.presetData.data);

              if (me.dataTobeEdit.task[0].crq.viewBy) {
                // Minute_1
                var view = [];
                view = me.dataTobeEdit.task[0].crq.viewBy.split('_');

                if (view[0] === 'Minute') {
                  view[0] = 'Min';
                }

                if (view[0] === 'Hour') {
                  if (view[1] == 1) {
                    view[0] = 'Hour';
                  } else {
                    view[0] = 'Hours';
                  }
                }

                var newViewBy = view[1] + ' ' + view[0]; // 1 Minute

                if (newViewBy == "Auto undefined") {
                  newViewBy = "Auto";
                }

                for (var j = 0; j < preparedValue.viewBy.options.length; j++) {
                  if (preparedValue.viewBy.options[j].label === newViewBy) {
                    preparedValue.viewBy.selected = preparedValue.viewBy.options[j];
                  } else {
                    if (preparedValue.viewBy.options[j].items) {
                      for (var i = 0; i < preparedValue.viewBy.options[j].items.length; i++) {
                        if (preparedValue.viewBy.options[j].items[i].label === newViewBy) {
                          preparedValue.viewBy.selected = preparedValue.viewBy.options[j].items[i];
                        }
                      }
                    }
                  }
                }
              }

              me.tmpValue = me.prepareValue(preparedValue);
            }

            var st = this.sessionService.convertFormattedStringIntoTimestamp(me.dataTobeEdit.task[0].crq.startDate + " " + me.dataTobeEdit.task[0].crq.startTime);
            var et = this.sessionService.convertFormattedStringIntoTimestamp(me.dataTobeEdit.task[0].crq.endDate + " " + me.dataTobeEdit.task[0].crq.endTime);
            this.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(st).tz(this.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(et).tz(this.sessionService.selectedTimeZone.zoneLabel)];
            me.tmpValue.timePeriod.selected.label = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM_TIME;
          } else if (me.dataTobeEdit.task[0].crq.lastTime === 'Event Days') {
            if (me.scheduleReportService.presetData && me.scheduleReportService.presetData.data) {
              var _preparedValue = src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_18__["ObjectUtility"].duplicate(me.scheduleReportService.presetData.data);

              _preparedValue.timePeriod.selected = src_app_shared_utility_menu_item__WEBPACK_IMPORTED_MODULE_17__["MenuItemUtility"].searchById(me.dataTobeEdit.task[0].crq.eventId, _preparedValue.timePeriod.options);
              me.scheduleReportService.loadTime(_preparedValue.timePeriod.selected.id).subscribe(function (state) {
                if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["ReportTimebarTimeLoadingState"]) {
                  me.timeLoading(state);
                  return;
                }

                if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["ReportTimebarTimeLoadedState"]) {
                  me.timeLoaded(state);
                  return;
                }
              }, function (state) {
                me.timeLoadingError(state);
              });

              if (me.dataTobeEdit.task[0].crq.viewBy) {
                // Minute_1
                var _view = [];
                _view = me.dataTobeEdit.task[0].crq.viewBy.split('_');

                if (_view[0] === 'Minute') {
                  _view[0] = 'Min';
                }

                if (_view[0] === 'Hour') {
                  if (_view[1] == 1) {
                    _view[0] = 'Hour';
                  } else {
                    _view[0] = 'Hours';
                  }
                }

                var _newViewBy = _view[1] + ' ' + _view[0]; // 1 Minute


                for (var _j = 0; _j < _preparedValue.viewBy.options.length; _j++) {
                  if (_preparedValue.viewBy.options[_j].items) {
                    for (var _i = 0; _i < _preparedValue.viewBy.options[_j].items.length; _i++) {
                      if (_preparedValue.viewBy.options[_j].items[_i].label === _newViewBy) {
                        _preparedValue.viewBy.selected = _preparedValue.viewBy.options[_j].items[_i];
                      }
                    }
                  }
                }
              }

              me.tmpValue = me.prepareValue(_preparedValue);
            } // handling for nv last time

          } else if (me.dataTobeEdit.task[0].crq.lastTime === 'lastTime') {
            this.selectedLastTime = me.dataTobeEdit.task[0].crq.last;
            this.selectedDay = me.dataTobeEdit.task[0].crq.day;
            this.selectedTime = me.dataTobeEdit.task[0].crq.time;
          } else {
            this.getPresetInit();
          } // for mO


          if (this.selectedReportType.label === 'Performance Stats' || this.selectedReportType.label === 'Metric') {
            this.rowsForDes = 10;

            if (me.dataTobeEdit.task[0].crq.templateName.indexOf('*Fav') > -1 || me.dataTobeEdit.task[0].crq.metricOption == src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].Favorite_GRAPH_REPORT) {
              me.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD;
              this.getFavorite();
            } else if (me.dataTobeEdit.task[0].crq.metricOption == src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].TEMPLATE_GRAPH_REPORT) {
              me.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE;
              this.getTemplate();
              this.selectedSystemTemplate = me.dataTobeEdit.task[0].crq.templateName;
            }
          } else if (this.selectedReportType.label === 'Alert Digest Report') {
            this.rowsForDes = 15;
            this.getAlertDigestTemplate();
          } else {
            this.rowsForDes = 8;
            this.favoriteTaskList();
          }

          if (((_c = (_b = (_a = me.dataTobeEdit) === null || _a === void 0 ? void 0 : _a.task[0]) === null || _b === void 0 ? void 0 : _b.crq) === null || _c === void 0 ? void 0 : _c.description) === 'NA') {
            this.taskDescription = '';
          } else {
            this.taskDescription = (_f = (_e = (_d = me.dataTobeEdit) === null || _d === void 0 ? void 0 : _d.task[0]) === null || _e === void 0 ? void 0 : _e.crq) === null || _f === void 0 ? void 0 : _f.description;
          }

          me.fillMailObj(); // fill mailObj
        }
      }, {
        key: "setScheduleFieldForNV",
        value: function setScheduleFieldForNV() {
          var _a, _b, _c, _d, _e, _f, _g, _h;

          var me = this; // need to handle selectedReportTemplate dropdown for all report standard , custom, template

          var crqdatafilter = this.reportTemplates.filter(function (val) {
            return val.label == me.dataTobeEdit.task[0].taskReq.crq.name;
          });
          if (crqdatafilter.length > 0) this.selectedReportTemplate = crqdatafilter[0].value; //handling for description section

          if (((_d = (_c = (_b = (_a = me.dataTobeEdit) === null || _a === void 0 ? void 0 : _a.task[0]) === null || _b === void 0 ? void 0 : _b.taskReq) === null || _c === void 0 ? void 0 : _c.crq) === null || _d === void 0 ? void 0 : _d.description) === 'NA') {
            this.taskDescription = '';
          } else {
            this.taskDescription = (_h = (_g = (_f = (_e = me.dataTobeEdit) === null || _e === void 0 ? void 0 : _e.task[0]) === null || _f === void 0 ? void 0 : _f.taskReq) === null || _g === void 0 ? void 0 : _g.crq) === null || _h === void 0 ? void 0 : _h.description;
          } // handling for timefilter section


          var datetime = me.dataTobeEdit.task[0].taskReq.crq.dataTime;
          this.presetType = me.dataTobeEdit.task[0].taskReq.crq.dataTime.presetType;
          this.preset = false;
          var st = this.sessionService.convertFormattedStringIntoTimestamp(datetime.startTime);
          var et = this.sessionService.convertFormattedStringIntoTimestamp(datetime.endTime);
          this.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(st).tz(this.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(et).tz(this.sessionService.selectedTimeZone.zoneLabel)]; //handling for mail section

          me.fillMailObjNV();
        }
      }, {
        key: "fillMailObjNV",
        value: function fillMailObjNV() {
          try {
            var me = this;

            if (me.dataTobeEdit.task[0].taskReq.mail) {
              if (me.dataTobeEdit.task[0].taskReq.mail.to.length > 0) {
                me.toEmails = me.dataTobeEdit.task[0].taskReq.mail.to.split(";");
              }

              me.txtMailTo = me.dataTobeEdit.task[0].taskReq.mail.to;
              me.txtMailSubject = me.dataTobeEdit.task[0].taskReq.mail.subject;
              me.txtMailBody = me.dataTobeEdit.task[0].taskReq.mail.body;
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "fillMailObj",
        value: function fillMailObj() {
          try {
            var me = this;

            if (me.dataTobeEdit.task[0].mail) {
              if (me.dataTobeEdit.task[0].mail.to.length > 0) {
                me.toEmails = me.dataTobeEdit.task[0].mail.to.split(";");
              }

              me.txtMailTo = me.dataTobeEdit.task[0].mail.to;
              me.txtMailSubject = me.dataTobeEdit.task[0].mail.subject;
              me.txtMailBody = me.dataTobeEdit.task[0].mail.body;
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "getBooleanFromString",
        value: function getBooleanFromString(str) {
          if (str === 'false') {
            return false;
          } else if (str === 'true') {
            return true;
          }
        }
      }, {
        key: "presetTimeCall",
        value: function presetTimeCall() {
          var me = this;
          me.subscribe = me.addReportService.pre().subscribe(function (state) {
            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ReportTimebarLoadingState"]) {
              me.presetLoading(state);
              return;
            }

            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ReportTimebarLoadedState"]) {
              me.presetLoaded(state);
              return;
            }
          }, function (state) {
            me.presetLoadingError(state);
          });
        }
      }, {
        key: "onTimeFilterTypeChange",
        value: function onTimeFilterTypeChange() {
          var me = this;

          if (me.presetType === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].PRESET) {
            me.preset = true;
          } else if (me.presetType === 'templateTime') {
            this.selectedAggregateTimeOption = 'totalDuration(s)';
            me.preset = true;
          } else {
            me.preset = false;
            me.tmpValue.timePeriod.selected.label = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM_TIME;
          }

          if (!me.preset) {
            this.firstTimeCustom = true;
            var customTime = me.addReportService.getTimeConfig(lodash__WEBPACK_IMPORTED_MODULE_3__["get"](me.tmpValue, 'timePeriod.selected.id', ''));
            var serverTime = moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.sessionService.time).tz(this.sessionService.selectedTimeZone.zoneLabel);

            if (!me.customTimeFrame || !me.customTimeFrame.length) {
              me.customTimeFrame = [serverTime.clone().subtract(1, 'hour'), serverTime.clone()];
            }

            me.customTimeFrameMax = serverTime.clone();
          } else {
            this.note = this.reportsService.viewByAutoNote;
            this.checkFirstTimePreset = true;
            this.firstTimeCustom = false;
            me.presetTimeCall();
          }
        }
      }, {
        key: "getPresetInit",
        value: function getPresetInit() {
          var me = this;
          me.addReportService.pre().subscribe(function (state) {
            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ReportTimebarLoadingState"]) {
              me.presetLoading(state);
              return;
            }

            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ReportTimebarLoadedState"]) {
              me.presetLoaded(state);
              return;
            }
          }, function (state) {
            me.presetLoadingError(state);
          });
        }
      }, {
        key: "presetLoading",
        value: function presetLoading(_state) {
          this.blockedDocument = true;
        }
      }, {
        key: "presetLoaded",
        value: function presetLoaded(state) {
          if (state && state.data && state.data.timePeriod && state.data.timePeriod.options) {
            for (var i = 0; i < state.data.timePeriod.options.length; i++) {
              if (state.data.timePeriod.options[i].label == src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].TIME_BACK) {
                state.data.timePeriod.options.pop();
              }
            }
          }

          if (this.cmt) {
            if (state && state.data && state.data.timePeriod && state.data.timePeriod.options) {
              var specifiedIdx = state.data.timePeriod.options.findIndex(function (item) {
                return item.label === 'Specified Phase';
              });
              if (specifiedIdx > -1) state.data.timePeriod.options.splice(specifiedIdx, 1);
            }
          }

          this.scheduleReportService.presetData = state;
          this.preparedPreset(state.data, true);
          this.blockedDocument = false;
        }
      }, {
        key: "presetLoadingError",
        value: function presetLoadingError(_state) {
          this.blockedDocument = false;
        }
      }, {
        key: "preparedPreset",
        value: function preparedPreset(value, silent) {
          var me = this;
          var preparedValue = src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_18__["ObjectUtility"].duplicate(value);
          this.blockedDocument = true;

          if (me.isEditClicked) {
            if (me.dataTobeEdit.task[0].crq.lastTime !== "Event Days" && me.dataTobeEdit.task[0].crq.lastTime !== "Time back") {
              for (var j = 0; j < preparedValue.timePeriod.options.length; j++) {
                if (preparedValue.timePeriod.options[j].label == me.dataTobeEdit.task[0].crq.lastTime) {
                  preparedValue.timePeriod.selected = preparedValue.timePeriod.options[j];
                  break;
                } else {
                  if (preparedValue.timePeriod.options[j] && preparedValue.timePeriod.options[j].items) {
                    for (var i = 0; i < preparedValue.timePeriod.options[j].items.length; i++) {
                      if (preparedValue.timePeriod.options[j].items[i] && preparedValue.timePeriod.options[j].items[i].label) {
                        if (preparedValue.timePeriod.options[j].items[i].label === me.dataTobeEdit.task[0].crq.lastTime) {
                          preparedValue.timePeriod.selected = preparedValue.timePeriod.options[j].items[i];
                        }
                      }
                    }
                  }
                }
              }
            }

            me.scheduleReportService.loadTime(preparedValue.timePeriod.selected.id).subscribe(function (state) {
              if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["ReportTimebarTimeLoadingState"]) {
                me.timeLoading(state);
                return;
              }

              if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["ReportTimebarTimeLoadedState"]) {
                me.timeLoaded(state);
                return;
              }
            }, function (state) {
              me.timeLoadingError(state);
            });

            if (me.dataTobeEdit.task[0].crq.viewBy) {
              // Minute_1
              var view = [];
              view = me.dataTobeEdit.task[0].crq.viewBy.split('_');

              if (view[0] === 'Minute') {
                view[0] = 'Min';
              }

              if (view[0] === 'Hour') {
                if (view[1] == 1) {
                  view[0] = 'Hour';
                } else {
                  view[0] = 'Hours';
                }
              }

              var newViewBy = view[1] + ' ' + view[0]; // 1 Minute

              if (newViewBy == "Auto undefined") {
                newViewBy = "Auto";
              }

              for (var _j2 = 0; _j2 < preparedValue.viewBy.options.length; _j2++) {
                if (preparedValue.viewBy.options[_j2].label === newViewBy) {
                  preparedValue.viewBy.selected = preparedValue.viewBy.options[_j2];
                } else {
                  if (preparedValue.viewBy.options[_j2].items) {
                    for (var _i2 = 0; _i2 < preparedValue.viewBy.options[_j2].items.length; _i2++) {
                      if (preparedValue.viewBy.options[_j2].items[_i2].label === newViewBy) {
                        preparedValue.viewBy.selected = preparedValue.viewBy.options[_j2].items[_i2];
                      }
                    }
                  }
                }
              }
            }

            me.tmpValue = me.prepareValue(preparedValue);
            me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameStart.value).tz(this.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value).tz(this.sessionService.selectedTimeZone.zoneLabel)];
          } else {
            me.tmpValue = me.prepareValue(preparedValue);
            this.checkFirstTimePreset = true;

            if (this.checkFirstTimePreset) {
              for (var _i3 = 0; _i3 < preparedValue.timePeriod.options[0].items.length; _i3++) {
                if (preparedValue.timePeriod.options[0].items[_i3].label == 'Today') {
                  var objFor = preparedValue.timePeriod.options[0].items[_i3];
                  preparedValue.timePeriod.selected = objFor;
                }
              }

              for (var _i4 = 0; _i4 < preparedValue.viewBy.options[3].items.length; _i4++) {
                if (preparedValue.viewBy.options[3].items[_i4].label === '1 Hour') {
                  var objViewBy = preparedValue.viewBy.options[3].items[_i4];
                  preparedValue.viewBy.selected = objViewBy;
                }
              }

              if (preparedValue.viewBy.options[0].label === 'Auto') {
                preparedValue.viewBy.selected = preparedValue.viewBy.options[0];
              }
            }

            if (this.checkFirstTimePreset) {
              this.addReportService.srtTimeZero = me.tmpValue.time.frameStart.value;
              me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(this.addReportService.srtTimeZero).tz(this.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value).tz(this.sessionService.selectedTimeZone.zoneLabel)];
              this.checkFirstTimePreset = false;
            } else {
              me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameStart.value), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value)];
            }

            if (!silent) {
              me.addReportService.setValue(me.tmpValue);
            }

            me.addReportService.setGlobalTimeBar(me.tmpValue);
          }

          this.blockedDocument = false;
          me.cd.detectChanges();
        }
      }, {
        key: "timeLoading",
        value: function timeLoading(_state) {}
      }, {
        key: "timeLoaded",
        value: function timeLoaded(state) {
          this.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(state.data[1]).tz(this.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(state.data[2]).tz(this.sessionService.selectedTimeZone.zoneLabel)];
        }
      }, {
        key: "timeLoadingError",
        value: function timeLoadingError(_state) {}
      }, {
        key: "onTimeFilterCustomTimeChange",
        value: function onTimeFilterCustomTimeChange() {
          var _this = this;

          var me = this;

          var refDateTimeFrame = _toConsumableArray(me.customTimeFrame);

          setTimeout(function () {
            if (me.customTimeFrame && me.customTimeFrame.length === 2) {
              if (me.customTimeFrame[0] !== null && me.customTimeFrame[1] !== null && me.customTimeFrame[0].valueOf() == me.customTimeFrame[1].valueOf()) {
                var _me = _this;
                _me.timeFilterEnableApply = false;
                _me.invalidDate = true;

                if (_me.invalidDate) {
                  _this.messageService.add({
                    severity: 'error',
                    summary: 'Custom Date/Time',
                    detail: 'Start Date and End Date cannot be same.'
                  });
                }

                _me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              } else if (me.customTimeFrame[0] === null) {
                me.invalidDate = true;

                if (me.invalidDate) {
                  _this.messageService.add({
                    severity: 'error',
                    summary: 'Custom Date/Time',
                    detail: 'End Date should be greater than start Date.'
                  });
                }

                me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              } else if (me.customTimeFrame[1] === null) {
                me.invalidDate = true;

                if (me.invalidDate) {
                  _this.messageService.add({
                    severity: 'error',
                    summary: 'Custom Date/Time',
                    detail: 'Start Date should not greater than End Date.'
                  });
                }

                me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              } else {
                me.invalidDate = false;
                var timePeriod = me.timebarService.getCustomTime(me.customTimeFrame[0].valueOf(), me.customTimeFrame[1].valueOf());
                me.setTmpValue({
                  timePeriod: timePeriod
                });
              }
            }
          });
        }
      }, {
        key: "setTmpValue",
        value: function setTmpValue(input) {
          var _this2 = this;

          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          me.timeFilterEnableApply = false;
          me.addReportService.prepareValue(input, me.tmpValue).subscribe(function (value) {
            var timeValuePresent = lodash__WEBPACK_IMPORTED_MODULE_3__["has"](value, 'time.frameStart.value');

            if (value && timeValuePresent) {
              me.tmpValue = me.prepareValue(value);
              me.timeFilterEnableApply = true;
              var timeBack = me.tmpValue.timePeriod.selected.id;

              if (timeBack !== 'TB0' && timeBack !== 'TB1' && timeBack !== 'TB2' && timeBack !== 'TB3') {
                if (_this2.firstTimeCustom) {
                  _this2.addReportService.srtTimeZero = me.tmpValue.time.frameStart.value;
                  me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(_this2.addReportService.srtTimeZero).tz(_this2.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value).tz(_this2.sessionService.selectedTimeZone.zoneLabel)];
                  _this2.firstTimeCustom = false;
                } else {
                  me.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameStart.value).tz(_this2.sessionService.selectedTimeZone.zoneLabel), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(me.tmpValue.time.frameEnd.value).tz(_this2.sessionService.selectedTimeZone.zoneLabel)];
                }
              }

              output.next(me.tmpValue);
              output.complete();
            } else {
              me.tmpValue = null;
              me.timeFilterEnableApply = false;
              output.next(me.tmpValue);
              output.complete();
            }
          });
          return output;
        }
      }, {
        key: "prepareValue",
        value: function prepareValue(value) {
          var _this3 = this;

          var me = this;
          src_app_shared_utility_menu_item__WEBPACK_IMPORTED_MODULE_17__["MenuItemUtility"].map(function (item) {
            item.command = function () {
              if (!item.items) {
                me.tmpValue.timePeriod.selected = item;
                me.tmpValue.viewBy.selected.id = "0"; //these lines are changer for the bug ID-122370

                me.tmpValue.viewBy.selected.label = "Auto";
                me.validateTimeFilter(true);
                _this3.note = _this3.reportsService.viewByOtherNote;
              }
            };
          }, value.timePeriod.options);
          src_app_shared_utility_menu_item__WEBPACK_IMPORTED_MODULE_17__["MenuItemUtility"].map(function (item) {
            item.command = function () {
              if (!item.items) {
                me.tmpValue.viewBy.selected = item; // me.validateTimeFilter(); // this line is commented to show the view by according to preset

                if (me.tmpValue.viewBy.selected.label === 'Auto') {
                  _this3.note = _this3.reportsService.viewByAutoNote;
                } else {
                  _this3.note = _this3.reportsService.viewByOtherNote;
                }
              }
            };
          }, value.viewBy.options);

          if (!this.preset && this.isEditClicked) {
            var startDateTime = new Date();
            var endDateTime = new Date();
            var strtDateArr = me.dataTobeEdit.task[0].crq.startDate.split('/'); // 05/25/2021

            var srtTimeArr = me.dataTobeEdit.task[0].crq.startTime.split(':'); // 11:02:02

            var endDateArr = me.dataTobeEdit.task[0].crq.endDate.split('/'); // 05/25/2021

            var endTimeArr = me.dataTobeEdit.task[0].crq.endTime.split(':'); // 12:02:07

            startDateTime.setMonth(strtDateArr[0] - 1);
            startDateTime.setDate(strtDateArr[1]);
            startDateTime.setFullYear(parseInt(strtDateArr[2]));
            startDateTime.setHours(srtTimeArr[0]);
            startDateTime.setMinutes(srtTimeArr[1]);
            startDateTime.setSeconds(srtTimeArr[2]);
            endDateTime.setMonth(endDateArr[0] - 1);
            endDateTime.setDate(endDateArr[1]);
            endDateTime.setFullYear(parseInt(endDateArr[2]));
            endDateTime.setHours(endTimeArr[0]);
            endDateTime.setMinutes(endTimeArr[1]);
            endDateTime.setSeconds(endTimeArr[2]);
            this.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(startDateTime.getTime()), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(endDateTime.getTime())];
            value.timePeriod.selected.label = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM_TIME;
          }

          return value;
        }
      }, {
        key: "validateTimeFilter",
        value: function validateTimeFilter(clearViewBy) {
          var me = this;
          var input = {
            timePeriod: me.tmpValue.timePeriod.selected.id,
            viewBy: me.tmpValue.viewBy.selected.id,
            running: me.tmpValue.running,
            discontinued: me.tmpValue.discontinued,
            includeCurrent: me.tmpValue.includeCurrent
          };

          if (clearViewBy) {
            input.viewBy = null;
            me.setTmpValue(input);
          }

          var pre = me.tmpValue.timePeriod.selected.label;

          if (me.tmpValue.viewBy.selected.label === 'Auto' && !pre.includes('Minutes')) {
            this.note = this.reportsService.viewByAutoNote;
          } else {
            this.note = this.reportsService.viewByOtherNote;
          }
        }
      }, {
        key: "favoriteTaskList",
        value: function favoriteTaskList() {
          var me = this;
          me.scheduleReportService.onTakingTempFavTaskList().subscribe(function (state) {
            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["FavoriteTaskListLoadingState"]) {
              me.favoriteTaskListLoading(state);
              return;
            }

            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["FavoriteTaskListLoadedState"]) {
              me.favoriteTaskListLoaded(state);
              return;
            }
          }, function (state) {
            me.favoriteTaskListLoadingError(state);
          });
        }
      }, {
        key: "favoriteTaskListLoading",
        value: function favoriteTaskListLoading(_state) {
          var me = this;
          me.blockedDocument = true;
          this.timebarService.setLoading(true);
        }
      }, {
        key: "favoriteTaskListLoaded",
        value: function favoriteTaskListLoaded(state) {
          var me = this;
          me.excelTemplateOption = [];

          if (state.data && state.data.temFavList && state.data.temFavList.excel && state.data.temFavList.excel.length > 0) {
            me.excelTemplateOption = state.data.temFavList.excel;
            me.selectedExcelTemplate = me.excelTemplateOption[0];

            if (me.isEditClicked) {
              if (me.dataTobeEdit.task[0].crq.format === 'EXCEL') {
                var ar = me.dataTobeEdit.task[0].crq.templateName.split('.');

                for (var i = 0; i < state.data.temFavList.excel.length; i++) {
                  if (state.data.temFavList.excel[i].label === ar[0]) {
                    me.selectedExcelTemplate = state.data.temFavList.excel[i];
                  }
                }
              }
            }
          }

          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "favoriteTaskListLoadingError",
        value: function favoriteTaskListLoadingError(_state) {
          var me = this;
          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "getFavorite",
        value: function getFavorite() {
          var me = this;
          var payload = {
            cctx: me.sessionService.session.cctx,
            rT: this.getReportTypeValue(this.selectedReportType.value, this.reportVisualizeType),
            mO: this.selectedFavMetricOption,
            tR: parseInt(me.sessionService.session.testRun.id)
          };
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.report.getTemplateFavList.endpoint;
          var base = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase;
          me.scheduleReportService.onTakingFavTaskList(path, payload, base).subscribe(function (state) {
            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["FavTaskListLoadingState"]) {
              me.favTaskListLoading(state);
              return;
            }

            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["FavTaskListLoadedState"]) {
              me.favTaskListLoaded(state);
              return;
            }
          }, function (state) {
            me.favTaskListLoadingError(state);
          });
        }
      }, {
        key: "favTaskListLoading",
        value: function favTaskListLoading(_state) {
          var me = this;
          me.blockedDocument = true;
          me.timebarService.setLoading(true);
        }
      }, {
        key: "favTaskListLoaded",
        value: function favTaskListLoaded(state) {
          var me = this;

          if (state.data && state.data.temFavList && state.data.temFavList.fav && state.data.temFavList.fav.length > 0) {
            me.templateOptions = [];
            me.templateOptions = state.data.temFavList.fav;
            me.selectedSystemTemplate = me.templateOptions[0];

            if (me.isEditClicked) {
              var ar = me.dataTobeEdit.task[0].crq.templateName.split(' ');

              for (var i = 0; i < state.data.temFavList.fav.length; i++) {
                if (state.data.temFavList.fav[i].value === ar[0]) {
                  me.selectedSystemTemplate = state.data.temFavList.fav[i];
                }
              }
            }
          }

          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "favTaskListLoadingError",
        value: function favTaskListLoadingError(_state) {
          var me = this;
          me.blockedDocument = false;
          this.timebarService.setLoading(false);
        }
      }, {
        key: "selectFavorite",
        value: function selectFavorite() {
          var me = this;

          try {
            me.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD;
            me.getFavorite();
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "selectTemplate",
        value: function selectTemplate() {
          var me = this;

          try {
            me.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE;
            me.getTemplate();
          } catch (error) {
            console.error('Error on selectTemplate call : ', error);
          }
        }
      }, {
        key: "selectMethod",
        value: function selectMethod() {
          this.lostTemplateMsg = true;
          this.isApply = false;
          this.preset = true;
          this.presetType = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].PRESET;
          this.onTimeFilterTypeChange();
          this.setPresetoption(this.selectedReportType.label);

          if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
            this.rowsForDes = 8;
            this.favoriteTaskList();
            this.addGraphImage = false;
            this.selectedNumGraphImg = '1';
          } else if (this.selectedReportType.value === 'Performance Stats') {
            this.rowsForDes = 10;
            this.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE;
            this.getTemplate();
            this.reportVisualizeType = 'WORD';
          } else if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM || this.selectedReportType.value === 'standard' || this.selectedReportType.value === 'template') {
            this.getNVReportTemplates(false);
          } else {
            this.rowsForDes = 15;
            this.getAlertDigestTemplate();
            this.reportVisualizeType = 'WORD';
            this.addGraphImage = false;
            this.selectedNumGraphImg = '1';
          }

          this.checkAnalysisSummary = true;
          this.checkPerformanceSummary = true;
          this.checkOverview = true;
          this.checkSessions = true;
          this.checkTransactions = true;
          this.checkPages = true;
          this.checkNetwork = true;
          this.checkErrors = true;
          this.checkMetricsSummary = true;
          this.checkMetricsCharts = true;
          var objectReportSetting = {
            analysisSummaryEnabled: this.checkAnalysisSummary,
            performanceSummaryEnable: this.checkPerformanceSummary,
            overviewEnabled: this.checkOverview,
            sessionsEnabled: this.checkSessions,
            transactionsEnabled: this.checkTransactions,
            pagesEnabled: this.checkPages,
            networkEnabled: this.checkNetwork,
            errorsEnabled: this.checkErrors,
            metricsSummaryEnabled: this.checkMetricsSummary,
            metricsChartsEnabled: this.checkMetricsCharts
          };
          this.objReportSetting = objectReportSetting;
          this.note = this.reportsService.viewByAutoNote;
          this.isExceluedNonBusinessHoue = false;

          if (this.nonBusinessHoursOpt && this.nonBusinessHoursOpt.length > 0) {
            this.selectedNonBusinessHours = this.nonBusinessHoursOpt[0].value;
            this.selectedNbhName = this.nonBusinessHoursOpt[0].label;
          }
        }
      }, {
        key: "getNVReportTemplates",
        value: function getNVReportTemplates(editflag) {
          var _this4 = this;

          if (!this.generalReports) {
            this.nvhttp.getGeneralReport().subscribe(function (state) {
              if (state instanceof src_app_pages_home_home_sessions_common_service_nvhttp_service__WEBPACK_IMPORTED_MODULE_11__["NVPreLoadingState"]) {
                _this4.reportTemplates = [];
              }

              if (state instanceof src_app_pages_home_home_sessions_common_service_nvhttp_service__WEBPACK_IMPORTED_MODULE_11__["NVPreLoadedState"]) {
                _this4.generalReports = state.data;
                _this4.reportTemplates = _this4.getReportTemplates();
                if (editflag) _this4.setScheduleFieldForNV();
              }
            }, function (state) {
              if (state instanceof src_app_pages_home_home_sessions_common_service_nvhttp_service__WEBPACK_IMPORTED_MODULE_11__["NVPreLoadingErrorState"]) {
                _this4.messageService.add({
                  severity: 'error',
                  summary: 'Error',
                  detail: 'Failed to get the reports'
                });
              }
            });
          } else {
            this.reportTemplates = this.getReportTemplates();
            if (editflag) this.setScheduleFieldForNV();
          }
        }
      }, {
        key: "getReportTemplates",
        value: function getReportTemplates() {
          var reports = [];
          var type = this.selectedReportType.value;

          switch (type) {
            case 'standard':
              this.generalReports.standard.forEach(function (report) {
                reports.push({
                  label: report.name,
                  value: report
                });
              });
              break;

            case src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM:
              var userName = this.sessionService.session.cctx.u;

              if (this.generalReports[userName]) {
                this.generalReports[userName].forEach(function (report) {
                  reports.push({
                    label: report.name,
                    value: report
                  });
                });
              }

              break;

            case 'template':
              this.generalReports.templatedatamodel.forEach(function (report) {
                reports.push({
                  label: report.name,
                  value: report
                });
              });
              break;
          }

          return reports;
        }
      }, {
        key: "getTemplate",
        value: function getTemplate() {
          var me = this;
          var payload = {
            cctx: me.sessionService.session.cctx,
            rT: this.getReportTypeValue(this.selectedReportType.value, this.reportVisualizeType),
            mO: this.selectedMetricOption
          };
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.report.getTemplateFavList.endpoint;
          var base = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase;
          me.scheduleReportService.onTakingTemplateTaskList(path, payload, base).subscribe(function (state) {
            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["TemplateTaskListLoadingState"]) {
              me.templateTaskListLoading(state);
              return;
            }

            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["TemplateTaskListLoadedState"]) {
              me.templateTaskListLoaded(state);
              return;
            }
          }, function (state) {
            me.templateTaskListLoadingError(state);
          });
        }
      }, {
        key: "templateTaskListLoading",
        value: function templateTaskListLoading(_state) {
          var me = this;
          me.blockedDocument = true;
          me.timebarService.setLoading(true);
        }
      }, {
        key: "templateTaskListLoaded",
        value: function templateTaskListLoaded(state) {
          var me = this;

          if (state.data && state.data.temFavList && state.data.temFavList.json && state.data.temFavList.json.length > 0) {
            me.templateOptions = [];
            me.templateOptions = state.data.temFavList.json;
            me.selectedSystemTemplate = me.templateOptions[0];

            if (me.isEditClicked) {
              for (var i = 0; i < state.data.temFavList.json.length; i++) {
                if (state.data.temFavList.json[i].label === me.dataTobeEdit.task[0].crq.templateName) {
                  me.selectedSystemTemplate = state.data.temFavList.json[i];
                }
              }

              var value = this.templateOptions.filter(function (item) {
                return item.value === me.dataTobeEdit.task[0].crq.templateName;
              });

              if (!this.lostTemplateMsg) {
                this.lostTemplateMsg = true;

                if (value.length == 0) {
                  this.messageService.add({
                    severity: 'error',
                    summary: 'Info',
                    detail: 'Your applied template for this schedule has been deleted, so you need to add another template; otherwise, it will pick the default template.'
                  });
                }
              }
            }
          }

          me.blockedDocument = false;
          this.timebarService.setLoading(false);
        }
      }, {
        key: "templateTaskListLoadingError",
        value: function templateTaskListLoadingError(_state) {
          var me = this;
          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "downloadTemplate",
        value: function downloadTemplate(selectedExcelTemplate, selectedReportType) {
          this.addReportService.downlaodExcelOrThresholdTemplate(selectedReportType.label, null, selectedExcelTemplate, null, this.excelTemplateOption);
        }
      }, {
        key: "onChangeTemplate",
        value: function onChangeTemplate(event) {
          this.selectedExcelTemplate = event.value;
        }
      }, {
        key: "onChangeReportType",
        value: function onChangeReportType(event) {
          this.selectedReportType = event.value;
        }
      }, {
        key: "saveSchedule",
        value: function saveSchedule() {
          var eachEmails = this.toEmails;
          var uniqueMailList = lodash__WEBPACK_IMPORTED_MODULE_3__["uniqBy"](eachEmails.map(function (email) {
            return email.trim();
          }), function (email) {
            return email;
          });
          this.txtMailTo = uniqueMailList.join(";");
          var status = this.vaildateInputFields(this.taskDescription, this.txtMailTo, this.txtMailSubject);
          var status1 = false; // handling for NV scheduler

          if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM || this.selectedReportType.value === 'standard' || this.selectedReportType.value === 'template') {
            if (status) {
              this.saveNVSchedule();
            }

            return;
          }

          status = status && this.validateTaskName(this.taskName);

          if (this.taskName.length > 20) {
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: 'Report Name should not exceed 20 characters.'
            });
            return;
          }

          var tempp;
          var tempOrFav;

          if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE || this.selectedReportType.value === 'Alert Digest Report') {
            tempp = this.selectedExcelTemplate;

            if (!tempp) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: 'No template is available.'
              });
              return;
            }

            if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              tempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE;
            } else if (this.selectedReportType.value === 'Alert Digest Report') {
              tempOrFav = 'Alert';
            }
          } else {
            if (this.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE) {
              tempp = this.selectedSystemTemplate;
              tempOrFav = 'Template';
            }

            if (this.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD) {
              tempp = this.selectedSystemTemplate;
              tempOrFav = 'Favourite';
            }
          }

          if (status) {
            status = this.validateTemplate(tempp, tempOrFav);
          }

          if (status) {
            status = this.validateOnTimeFilterCustomTimeChange();
          }

          if (status) {
            status1 = true;

            if (status1) {
              this.createMailObj();
              this.createCrqObj();
              this.addReportTask();
            }
          }
        }
      }, {
        key: "onSuccessEventHandling",
        value: function onSuccessEventHandling(status) {
          var _a;

          try {
            var me = this;

            if ((status === null || status === void 0 ? void 0 : status.code) == 200) {
              me.isEditClicked = false;
              me.router.navigate(['/schedules'], {
                queryParams: this.route.snapshot.queryParams
              });
            } else {
              me.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: (_a = status === null || status === void 0 ? void 0 : status.msg) !== null && _a !== void 0 ? _a : "Internal Server Error"
              });
            }
          } catch (error) {
            console.error(error);
          }
        }
        /** This method is used to schedule the NV type reports */

      }, {
        key: "saveNVSchedule",
        value: function saveNVSchedule() {
          var crq = {};
          var schObj = {};

          if (!this.selectedReportTemplate) {
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: 'Please Select Report Template'
            });
            return;
          }

          if (this.selectedReportType.value === 'custom' || this.selectedReportType.value === 'template') {
            crq = {
              'name': this.selectedReportTemplate['name'],
              'sesLoginName': this.sessionService.session.cctx.u,
              'reportType': 'template'
            };
          } else {
            crq = this.selectedReportTemplate;
            delete crq['sequence'];
          }

          crq['dataTime'] = this.setDataTime();
          crq['scheduleReportType'] = this.selectedReportType.value;
          crq['description'] = this.taskDescription; // schObj.reportType = this.selectedReportType.value;

          var mail = {
            to: this.txtMailTo,
            subject: this.txtMailSubject,
            body: this.txtMailBody
          };
          var tskReq = {
            mail: mail,
            crq: crq
          };
          schObj.taskReq = tskReq;
          schObj.taskType = 'CavNvScheduleReport';
          if (this.isEditClicked && this.dataTobeEdit.task[0].id) schObj.id = this.dataTobeEdit.task[0].id;
          var abc = {
            task: [schObj],
            inputType: this.isEditClicked ? "UPDATE" : "ADD"
          };
          this.inputForCavScheduler = abc;
        }
      }, {
        key: "setDataTime",
        value: function setDataTime() {
          //  if lasttime selected
          var startTime = '';
          var endTime = '';
          startTime = moment_timezone__WEBPACK_IMPORTED_MODULE_4__(this.customTimeFrame[0]).format('MM/DD/YYYY HH:mm A');
          endTime = moment_timezone__WEBPACK_IMPORTED_MODULE_4__(this.customTimeFrame[1]).format('MM/DD/YYYY HH:mm A');
          return {
            startTime: startTime,
            endTime: endTime,
            presetType: this.presetType
          };
        }
      }, {
        key: "resetCreateTaskObj",
        value: function resetCreateTaskObj() {
          this.taskName = '';
          this.selectedReportType = {
            label: 'Excel',
            value: 'Excel'
          };
          this.selectedTempOrFav = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE;
          this.preset = true;
          this.overridePreset = false;
          this.tmpValue = _service_schedulereport_dummy__WEBPACK_IMPORTED_MODULE_28__["Report_Scheduler_Preset"];
          this.customTimeFrame = [moment_timezone__WEBPACK_IMPORTED_MODULE_4__(this.tmpValue.time.frameStart.value), moment_timezone__WEBPACK_IMPORTED_MODULE_4__(this.tmpValue.time.frameEnd.value)];
          this.aggregatedValue = true;
          this.selectedAggregateTimeOption = 'totalDuration(s)';
          this.selectedAaggregateByOption = {
            label: '1',
            value: '-1'
          };
          this.shwLstData = false;
          this.selectedValue = {
            label: 'Column',
            value: 0
          };
          this.taskDescription = '';
          this.reportVisualizeType = 'WORD';
          this.addGraphImage = false;
          this.scheduleExpiry = null;
          this.addOffset = false;
          this.everyHourOffsetModel = 0;
          this.txtMailTo = '';
          this.txtMailSubject = '';
          this.txtMailBody = '';
        }
      }, {
        key: "getTaskTypeAccToDB",
        value: function getTaskTypeAccToDB(rawTaskType) {
          var tskTyp;

          if (rawTaskType === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
            tskTyp = 'Excel Report';
          } else if (rawTaskType === 'Performance Stats' && this.reportVisualizeType === 'WORD') {
            tskTyp = 'Word Report';
          } else if (rawTaskType === 'Performance Stats' && this.reportVisualizeType === 'HTML') {
            tskTyp = 'Html Report';
          } else if (rawTaskType === 'Alert Digest Report') {
            var arr = rawTaskType.split(' ');
            tskTyp = arr[0] + ' ' + arr[1] + this.reportVisualizeType + ' ' + arr[2];
          }

          return tskTyp;
        }
      }, {
        key: "getDrpRptTypeList",
        value: function getDrpRptTypeList() {
          this.drpRptViewTypeStatsList = [];
          this.drpRptViewTypeList = [];
          this.drpRptViewTypeStatsList.push({
            label: 'WORD',
            value: 'WORD'
          });
          this.drpRptViewTypeStatsList.push({
            label: 'HTML',
            value: 'HTML'
          });
          this.drpRptViewTypeList.push({
            label: 'WORD',
            value: 'WORD'
          });
          this.drpRptViewTypeList.push({
            label: 'EXCEL',
            value: 'EXCEL'
          });
          this.drpRptViewTypeList.push({
            label: 'PDF',
            value: 'PDF'
          });
        }
      }, {
        key: "fillAggregateByDropdown",
        value: function fillAggregateByDropdown() {
          try {
            if (this.aggregatedValue) {
              this.aggTimeUnitInExcel = '-1';
            } else {
              this.aggTimeUnitInExcel = this.selectedAggregateTimeOption;
            }

            this.aggregatebyDropdown = [];

            if (this.selectedAggregateTimeOption === 'Minute(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '5',
                value: '5'
              });
              this.aggregatebyDropdown.push({
                label: '10',
                value: '10'
              });
              this.aggregatebyDropdown.push({
                label: '15',
                value: '15'
              });
              this.aggregatebyDropdown.push({
                label: '30',
                value: '30'
              });
            } else if (this.selectedAggregateTimeOption === 'Hour(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '2',
                value: '2'
              });
              this.aggregatebyDropdown.push({
                label: '4',
                value: '4'
              });
              this.aggregatebyDropdown.push({
                label: '6',
                value: '6'
              });
              this.aggregatebyDropdown.push({
                label: '12',
                value: '12'
              });
              this.aggregatebyDropdown.push({
                label: '24',
                value: '24'
              });
            } else if (this.selectedAggregateTimeOption === 'Day(s)' || this.selectedAggregateTimeOption === 'Week(s)' || this.selectedAggregateTimeOption === 'Month(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '2',
                value: '2'
              });
              this.aggregatebyDropdown.push({
                label: '3',
                value: '3'
              });
            } else if (this.selectedAggregateTimeOption === 'totalDuration(s)') {
              this.aggregatedValue = true;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '-1'
              });
            } //This change is for set default value during save.


            if (this.selectedAggregateTimeOption !== 'totalDuration(s)') {
              this.selectedAaggregateByOption = this.aggregatebyDropdown[0];
            }
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "selectAggregateTimeOption",
        value: function selectAggregateTimeOption() {
          try {
            this.aggregateTimeDropdown = [];
            this.aggregateTimeDropdown.push({
              label: 'Total Duration',
              value: 'totalDuration(s)'
            });
            this.aggregateTimeDropdown.push({
              label: 'Minute(s)',
              value: 'Minute(s)'
            });
            this.aggregateTimeDropdown.push({
              label: 'Hour(s)',
              value: 'Hour(s)'
            });
            this.aggregateTimeDropdown.push({
              label: 'Day(s)',
              value: 'Day(s)'
            });
            this.aggregateTimeDropdown.push({
              label: 'Week(s)',
              value: 'Week(s)'
            });
            this.aggregateTimeDropdown.push({
              label: 'Month(s)',
              value: 'Month(s)'
            });
            this.fillAggregateByDropdown();
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "fillAggregateByDropdowninEditMode",
        value: function fillAggregateByDropdowninEditMode(aaggUnit) {
          try {
            this.aggregatebyDropdown = [];

            if (aaggUnit === 'Minute(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '5',
                value: '5'
              });
              this.aggregatebyDropdown.push({
                label: '10',
                value: '10'
              });
              this.aggregatebyDropdown.push({
                label: '15',
                value: '15'
              });
              this.aggregatebyDropdown.push({
                label: '30',
                value: '30'
              });
            } else if (aaggUnit === 'Hour(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '2',
                value: '2'
              });
              this.aggregatebyDropdown.push({
                label: '4',
                value: '4'
              });
              this.aggregatebyDropdown.push({
                label: '6',
                value: '6'
              });
              this.aggregatebyDropdown.push({
                label: '12',
                value: '12'
              });
              this.aggregatebyDropdown.push({
                label: '24',
                value: '24'
              });
            } else if (aaggUnit === 'Day(s)' || aaggUnit === 'Week(s)' || aaggUnit === 'Month(s)') {
              this.aggregatedValue = false;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '1'
              });
              this.aggregatebyDropdown.push({
                label: '2',
                value: '2'
              });
              this.aggregatebyDropdown.push({
                label: '3',
                value: '3'
              });
            } else if (aaggUnit === 'totalDuration(s)') {
              this.aggregatedValue = true;
              this.aggregatebyDropdown.push({
                label: '1',
                value: '-1'
              });
            }
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "selectAggregatebyOption",
        value: function selectAggregatebyOption() {
          try {
            this.aggTimeValueInExcel = this.selectedAaggregateByOption;
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "onSelectTemplateToUpload",
        value: function onSelectTemplateToUpload(event, fileUpload) {
          var _this5 = this;

          try {
            this.count = 0;
            var uploadFile = event.files[0].name;
            this.uploadedFileName = uploadFile;

            if (uploadFile.substring(uploadFile.lastIndexOf('.')) != '.xls' && uploadFile.substring(uploadFile.lastIndexOf('.')) != '.xlsx') {
              this.messageService.add({
                severity: "error",
                summary: "Excel Template",
                detail: "Please select correct Excel Template file with extension as .xls or .xlsx."
              });
              fileUpload.clear();
              return;
            }

            if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              this.uploadURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase.toString() + src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.uploadFile.load.endpoint + '?for=fileExplorer&destination=' + '/home/cavisson/' + this.sessionService.preSession.serverName + '/webapps/templates/excel_templates';
              var templateNameWithOutExt = uploadFile.lastIndexOf(".");

              if (templateNameWithOutExt > 64) {
                this.messageService.add({
                  severity: "error",
                  summary: "Error",
                  detail: "Template name should not be greater than 64 character"
                });
                fileUpload.clear();
                return;
              }
            } else {
              this.uploadURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase.toString() + src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.uploadFile.load.endpoint + '?for=fileExplorer&destination=' + '/home/cavisson/' + this.sessionService.preSession.serverName + '/webapps/templates/alertDigestTemplates';
            }

            if (this.excelTemplateOption) {
              var wholeScenarioIdx = this.excelTemplateOption.findIndex(function (item) {
                return item.value === uploadFile;
              });

              if (wholeScenarioIdx > -1) {
                this.dialogVisible = true;
                this.confirmation.confirm({
                  key: 'scheduler',
                  message: 'Template ' + uploadFile + ' is already present.Do you want to overwrite this template?',
                  header: 'Confirmation',
                  accept: function accept() {
                    _this5.excelTemplateOption.splice(wholeScenarioIdx, 1);

                    _this5.excelTemplateOption = _toConsumableArray(_this5.excelTemplateOption);
                    _this5.selectedExcelTemplate = _this5.excelTemplateOption[0];
                    _this5.dialogVisible = false;

                    _this5.uploadFile(_this5.uploadedFileName);

                    return;
                  },
                  reject: function reject() {
                    _this5.dialogVisible = false;
                    fileUpload.clear();
                    return;
                  },
                  rejectVisible: true
                });
                return;
              } else {
                this.uploadFile(this.uploadedFileName);
              }
            }
          } catch (error) {
            this.count = 0;
            console.error(error);
          }

          var nameWithoutExtension = event.files[0].name.split('.xls');

          if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE && (nameWithoutExtension[0].includes('.') || nameWithoutExtension[0].includes('/') || nameWithoutExtension[0].includes('#') || nameWithoutExtension[0].includes('"'))) {
            this.messageService.add({
              severity: "error",
              summary: "Error",
              detail: "Excel Template with following special symbols (#./\") are not allowed."
            });
            fileUpload.clear();
            return;
          }

          if (this.selectedReportType.value === 'Alert Digest Report' && (nameWithoutExtension[0].includes('.') || nameWithoutExtension[0].includes('/') || nameWithoutExtension[0].includes('#') || nameWithoutExtension[0].includes('"'))) {
            this.messageService.add({
              severity: "error",
              summary: "Error",
              detail: "Alert Digest Template with following special symbols (#./\") are not allowed."
            });
            fileUpload.clear();
            return;
          }
        }
      }, {
        key: "uploadFile",
        value: function uploadFile(file) {
          this.excelFileUpload.upload();
          this.afterTemplateUploadScheduler(file);
        }
      }, {
        key: "afterTemplateUploadScheduler",
        value: function afterTemplateUploadScheduler(fileNameWithExt) {
          try {
            this.blockedDocument = true;
            this.count = this.count + 1;

            if (this.count == 1) {
              var dateObject = {};

              if (this.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
                dateObject.name = fileNameWithExt.split('.')[0];
                dateObject.fileName = fileNameWithExt;
                dateObject.reportType = this.excelReportOption;
                this.postCallForParsingExcelTempaltetoJson(dateObject);
                this.excelTemplateOption.push({
                  label: fileNameWithExt.split(".")[0],
                  value: fileNameWithExt
                });
              }

              if (this.selectedReportType.value === 'Alert Digest Report') {
                dateObject.name = fileNameWithExt.split('.')[0];
                dateObject.fileName = fileNameWithExt;
                dateObject.reportType = this.alertDigestReportOption;
                this.postCallForParsingExcelTempaltetoJson(dateObject);
                this.getAlertDigestTemplate();
              }

              var fileName = this.uploadedFileName ? this.uploadedFileName : '';
              this.excelTemplateOption = _toConsumableArray(this.excelTemplateOption);
              this.messageService.add({
                severity: 'success',
                summary: 'Template Upload',
                detail: 'Template ' + fileName + ' uploaded successfully.'
              });
              this.selectedExcelTemplate = this.excelTemplateOption[0];
            }
          } catch (error) {
            console.error("afterTemplateUploadScheduler : ", error);
          }
        }
      }, {
        key: "createCrqObj",
        value: function createCrqObj() {
          try {
            var me = this;
            var clusterFlag = me.nodeInfoSessionService.dcData.length > 0 ? true : false;

            if (me.tmpValue.timePeriod.selected.label === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].CUSTOM_TIME) {
              me.crqObj.lastTime = 'Custom';
            } else if (me.tmpValue.timePeriod.selected.id.indexOf('EV') > -1) {
              me.crqObj.lastTime = 'Event Days';
              me.crqObj.eventDay = src_app_shared_utility_menu_item__WEBPACK_IMPORTED_MODULE_17__["MenuItemUtility"].searchById(me.tmpValue.timePeriod.selected.id, me.tmpValue.timePeriod.options).label;
              me.crqObj.eventYear = me.tmpValue.timePeriod.selected.label;
              me.crqObj.eventId = me.tmpValue.timePeriod.selected.id;
            } else {
              me.crqObj.lastTime = me.tmpValue.timePeriod.selected.label;
            }

            if (me.crqObj.lastTime.indexOf('Phase') > -1) {
              me.crqObj['specifiedPhaseId'] = me.tmpValue.timePeriod.selected.id;
            }

            if (me.presetType === 'templateTime') {
              me.crqObj.readFromTemplate = true;
            } else {
              me.crqObj.readFromTemplate = false;
            }

            me.crqObj.shwLstData = me.shwLstData;

            if (me.selectedValue.value == 1) {
              me.crqObj.reportView = 'tabView';
            } else {
              me.crqObj.reportView = 'columnView';
            }

            if (me.addGraphImage == false) {
              me.crqObj.numAddGraphImageInSchMailBody = '-1';
            } else {
              me.crqObj.numAddGraphImageInSchMailBody = me.selectedNumGraphImg;
            }

            me.crqObj.isMultiDC = clusterFlag;
            me.crqObj.aggEntireRpt = me.selectedAaggregateByOption.value + ' ' + me.selectedAggregateTimeOption.split('(')[0] + ' ' + me.aggregatedValue;
            me.crqObj.includeChart = me.includeMetricChart;
            me.crqObj.userName = me.sessionService.session.cctx.u;
            me.crqObj.productKey = me.sessionService.session.cctx.pk;
            me.crqObj.testRun = me.sessionService.session.testRun.id;
            me.crqObj.cmt = me.cmt;
            me.crqObj.running = me.sessionService.session.testRun.running;
            me.crqObj.duration = me.sessionService.session.testRun.duration;
            me.crqObj.st = me.sessionService.session.testRun.st;
            var viewByArr;
            var newViewByForCrqCreation;

            if (me.tmpValue.viewBy.selected.label) {
              viewByArr = me.tmpValue.viewBy.selected.label.split(' ');

              if (viewByArr[1] === 'Min') {
                viewByArr[1] = 'Minute';
              }

              if (viewByArr[1] === 'Hours') {
                viewByArr[1] = 'Hour';
              }

              newViewByForCrqCreation = viewByArr[1] + '_' + viewByArr[0];
            }

            me.crqObj.viewBy = newViewByForCrqCreation;

            if (!me.addOSInPreTime && me.addOffset) {
              me.crqObj.addOSInPreTime = me.addOSInPreTime;
            } else {
              me.crqObj.addOSInPreTime = true;
            }

            if (me.addOffset) {
              me.crqObj.offSetValue = me.everyHourOffsetModel + '';
            }

            if (clusterFlag) {
              me.crqObj.multiDCPort = window.location.protocol + '//' + window.location.host;
              me.crqObj.isMultiDC = true;
            } else {
              me.crqObj.multiDCPort = '';
              me.crqObj.isMultiDC = false;
            }

            me.crqObj.isDiscontinue = me.isDiscontinue;
            me.crqObj.boundaryCondition = me.boundaryCondition;

            if (me.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE || me.selectedReportType.value === 'Alert Digest Report') {
              me.crqObj.templateName = me.selectedExcelTemplate.value;
            } else {
              if (me.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE) {
                me.crqObj.templateName = me.selectedSystemTemplate.label;
              }

              if (me.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD) {
                me.crqObj.templateName = me.selectedSystemTemplate.value + ' *Fav';
              }
            }

            me.crqObj.addGraphImageInSchMailBody = me.addGraphImage;
            me.crqObj.name = me.taskName;

            if (me.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              me.crqObj.format = 'EXCEL';
            } else if (me.selectedReportType.value === 'Alert Digest Report') {
              me.crqObj.format = 'ALERT';
            } else if (me.selectedReportType.value === 'Performance Stats') {
              me.crqObj.format = me.reportVisualizeType;
            }

            if (!me.preset) {
              me.crqObj.startDate = me.customTimeFrame[0].format('MM/DD/YYYY');
              me.crqObj.startTime = me.customTimeFrame[0].format('HH:mm:ss');
              me.crqObj.endDate = me.customTimeFrame[1].format('MM/DD/YYYY');
              me.crqObj.endTime = me.customTimeFrame[1].format('HH:mm:ss');
            }

            if (me.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_TEMPLATE || me.selectedReportType.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              me.crqObj.metricOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].TEMPLATE_GRAPH_REPORT;
            } else if (me.selectedTempOrFav === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD) {
              me.crqObj.metricOption = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].Favorite_GRAPH_REPORT;
            }

            me.crqObj.cck = me.sessionService.session.cctx.cck;
            me.crqObj.prodType = me.sessionService.session.cctx.prodType;

            if (me.reportVisualizeType == 'HTML') {
              me.crqObj.analysisSummaryEnabled = me.checkAnalysisSummary;
              me.crqObj.performanceSummaryEnable = me.checkPerformanceSummary;
              me.crqObj.overviewEnabled = me.checkOverview;
              me.crqObj.sessionsEnabled = me.checkSessions;
              me.crqObj.transactionsEnabled = me.checkTransactions;
              me.crqObj.pagesEnabled = me.checkPages;
              me.crqObj.networkEnabled = me.checkNetwork;
              me.crqObj.errorsEnabled = me.checkErrors;
              me.crqObj.metricsSummaryEnabled = me.checkMetricsSummary;
              me.crqObj.metricsChartsEnabled = me.checkMetricsCharts;
            }

            if (me.isExceluedNonBusinessHoue) {
              me.crqObj.nonBusinessHoursId = me.selectedNonBusinessHours;
              me.crqObj.nbhLabel = me.selectedNbhName;
            }

            me.crqObj.zoneId = me.sessionService.selectedTimeZone.zoneLabel;
            me.crqObj.zoneUnit = me.sessionService.selectedTimeZone.abb;
            me.crqObj.clusterFlag = clusterFlag;
            me.crqObj.reportType = me.getTaskTypeAccToDB(me.selectedReportType.value);
            me.crqObj.description = me.taskDescription;
          } catch (error) {
            console.error('createCrqObj :', error);
          }
        }
      }, {
        key: "selectFormat",
        value: function selectFormat() {
          this.checkMetricsCharts = true;
          this.includeMetricChart = true;
          this.addGraphImage = false;

          if (this.reportVisualizeType == 'HTML') {
            this.checkAnalysisSummary = true;
            this.checkPerformanceSummary = true;
            this.checkOverview = true;
            this.checkSessions = true;
            this.checkTransactions = true;
            this.checkPages = true;
            this.checkNetwork = true;
            this.checkErrors = true;
            this.checkMetricsSummary = true;
            this.checkMetricsCharts = true;
            var objectReportSetting = {
              analysisSummaryEnabled: this.checkAnalysisSummary,
              performanceSummaryEnable: this.checkPerformanceSummary,
              overviewEnabled: this.checkOverview,
              sessionsEnabled: this.checkSessions,
              transactionsEnabled: this.checkTransactions,
              pagesEnabled: this.checkPages,
              networkEnabled: this.checkNetwork,
              errorsEnabled: this.checkErrors,
              metricsSummaryEnabled: this.checkMetricsSummary,
              metricsChartsEnabled: this.checkMetricsCharts
            };
            this.objReportSetting = objectReportSetting;
          }
        }
      }, {
        key: "pushGraphImageArr",
        value: function pushGraphImageArr() {
          this.numGraphImgDropdown = [];
          this.numGraphImgDropdown.push({
            label: '1',
            value: '1'
          });
          this.numGraphImgDropdown.push({
            label: '2',
            value: '2'
          });
          this.numGraphImgDropdown.push({
            label: '3',
            value: '3'
          });
          this.numGraphImgDropdown.push({
            label: '4',
            value: '4'
          });
          this.numGraphImgDropdown.push({
            label: '5',
            value: '5'
          });
          this.numGraphImgDropdown.push({
            label: '6',
            value: '6'
          });
        }
      }, {
        key: "selectAlertDigest",
        value: function selectAlertDigest() {
          if (this.selectedExcelTemplate.label == 'AlertDigestReportWithGrouping') {
            this.toolTipTest = 'Default Template cannot be deleted';
          } else {
            this.toolTipTest = 'Delete';
          }
        }
      }, {
        key: "createMailObj",
        value: function createMailObj() {
          this.mailObj.subject = this.txtMailSubject;
          this.mailObj.to = this.txtMailTo;
          this.mailObj.body = this.txtMailBody;
        }
      }, {
        key: "vaildateInputFields",
        value: function vaildateInputFields(des, mailId, subj) {
          var status = false;

          try {
            status = this.validateTaskDescription(des);

            if (status) {
              status = this.validateEmail(mailId, subj);
            }
          } catch (error) {
            console.error(error);
          }

          return status;
        }
      }, {
        key: "validateTaskName",
        value: function validateTaskName(taskName) {
          try {
            var _regSeperator = new RegExp('^[a-zA-Z][a-zA-Z0-9_().{}\:\]*$');

            if (taskName === '' || taskName == null) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: 'Please enter Report Name.'
              });
              return;
            }

            if (!_regSeperator.test(taskName)) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: 'Please enter valid Report Name.\r\nReport ' + 'name must start with alphabet. \r\n Maximum length is 20. \r\nAllowed ' + 'characters are alphanumeric and  following special characters: ( ) { } _  . \ :'
              });
              return;
            }

            if (taskName.length > 128) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: 'Enter Report Name <= 128 characters.'
              });
              return;
            }
          } catch (error) {
            console.error(error);
          }

          return true;
        }
      }, {
        key: "validateTaskDescription",
        value: function validateTaskDescription(des) {
          if (des === '' || des == null) {
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: 'Please enter task description.'
            });
            return false;
          }

          if (des.indexOf('|') > -1) {
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: 'Description shouldn\'t contain special character: |'
            });
            return false;
          }

          return true;
        }
      }, {
        key: "confirmationDialog",
        value: function confirmationDialog(head, msg) {
          var _this6 = this;

          this.dialogVisible = true;
          var keyValue = 'scheduler';

          if (head === 'Error') {
            keyValue = 'schedulerError';
          }

          this.confirmation.confirm({
            key: keyValue,
            message: msg,
            header: head,
            accept: function accept() {
              _this6.dialogVisible = false;
              return;
            },
            rejectVisible: false
          });
        }
      }, {
        key: "validateEmail",
        value: function validateEmail(inputText, subj) {
          try {
            var txtEmailId = inputText;
            var arrEmailId = [];

            if (inputText.indexOf(';') > -1) {
              arrEmailId = txtEmailId.split(';');
            } else {
              arrEmailId[0] = txtEmailId;
            }

            if (txtEmailId.length == 0) {
              if (subj !== '' && subj !== null) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Error',
                  detail: 'Please enter Email Id or clear the Subject as well.'
                });
                return;
              }

              return true;
            }

            if (txtEmailId.length > 0) {
              var _regSeperator = new RegExp('[$&+,:=?#|\'<>^*()%!]');

              for (var i = 0; i < arrEmailId.length; i++) {
                var emailValue = arrEmailId[i];

                if (!emailValue) {
                  this.messageService.add({
                    severity: 'error',
                    summary: 'Error',
                    detail: 'Please enter Email Id.'
                  });
                  return;
                }
              }

              if (subj === '' || subj == null) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Error',
                  detail: 'Subject field is empty.'
                });
                return;
              }

              return true;
            }
          } catch (error) {
            console.error('error :', error);
            return false;
          }
        }
      }, {
        key: "getReportTypeValue",
        value: function getReportTypeValue(selectedReportType, reportVisualizeType) {
          var reportId = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].STATS_REPORT;

          if (selectedReportType.value == 'Performance Stats') {
            if (reportVisualizeType == 'WORD') {
              reportId = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].WORD_REPORT;
            } else if (reportVisualizeType == 'HTML') {
              reportId = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].HTML_REPORT;
            }
          }

          return reportId;
        }
      }, {
        key: "reportSetting",
        value: function reportSetting() {
          this.displayReportSetting = true;
        }
      }, {
        key: "styleForDialog",
        value: function styleForDialog() {
          return {
            width: '350px',
            minWidth: '200px'
          };
        }
      }, {
        key: "updateReportSetting",
        value: function updateReportSetting() {
          try {
            if (this.checkPerformanceSummary == false) {
              this.checkOverview = false;
              this.checkPages = false;
              this.checkSessions = false;
              this.checkTransactions = false;
              this.checkNetwork = false;
              this.checkErrors = false;
            } else {
              this.checkOverview = true;
              this.checkPages = true;
              this.checkSessions = true;
              this.checkTransactions = true;
              this.checkNetwork = true;
              this.checkErrors = true;
            }
          } catch (error) {
            console.error('error :', error);
          }
        }
      }, {
        key: "updateSubReportSetting",
        value: function updateSubReportSetting() {
          try {
            if (this.checkOverview == true || this.checkSessions == true || this.checkTransactions == true || this.checkPages == true || this.checkNetwork == true || this.checkErrors == true) {
              this.checkPerformanceSummary = true;
            } else {
              this.checkPerformanceSummary = false;
            }
          } catch (error) {
            console.error('error : ', error);
          }
        }
      }, {
        key: "applyReportSetting",
        value: function applyReportSetting() {
          try {
            var objectReportSetting = {};

            if (this.checkAnalysisSummary == false && this.checkPerformanceSummary == false && this.checkOverview == false && this.checkSessions == false && this.checkTransactions == false && this.checkPages == false && this.checkNetwork == false && this.checkErrors == false && this.checkMetricsSummary == false && this.checkMetricsCharts == false && this.checkMetricsSummary == false && this.checkMetricsCharts == false) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: 'Please select at least one option.'
              });
              return;
            } else {
              this.displayReportSetting = false;
            }

            this.checkIncludeChart = this.checkMetricsCharts;
            objectReportSetting = {
              analysisSummaryEnabled: this.checkAnalysisSummary,
              performanceSummaryEnable: this.checkPerformanceSummary,
              overviewEnabled: this.checkOverview,
              sessionsEnabled: this.checkSessions,
              transactionsEnabled: this.checkTransactions,
              pagesEnabled: this.checkPages,
              networkEnabled: this.checkNetwork,
              errorsEnabled: this.checkErrors,
              metricsSummaryEnabled: this.checkMetricsSummary,
              metricsChartsEnabled: this.checkMetricsCharts
            };
            this.objReportSetting = objectReportSetting;
            this.isApply = true;
          } catch (error) {
            console.error('error : ' + error);
          }
        }
      }, {
        key: "cancelReportSetting",
        value: function cancelReportSetting() {
          try {
            this.displayReportSetting = false;

            if (!this.isApply) {
              this.checkAnalysisSummary = true;
              this.checkPerformanceSummary = true;
              this.checkOverview = true;
              this.checkSessions = true;
              this.checkTransactions = true;
              this.checkPages = true;
              this.checkNetwork = true;
              this.checkErrors = true;
              this.checkMetricsSummary = true;
              this.checkMetricsCharts = true;
            } else {
              var objectReportSetting = {
                analysisSummaryEnabled: this.checkAnalysisSummary,
                performanceSummaryEnable: this.checkPerformanceSummary,
                overviewEnabled: this.checkOverview,
                sessionsEnabled: this.checkSessions,
                transactionsEnabled: this.checkTransactions,
                pagesEnabled: this.checkPages,
                networkEnabled: this.checkNetwork,
                errorsEnabled: this.checkErrors,
                metricsSummaryEnabled: this.checkMetricsSummary,
                metricsChartsEnabled: this.checkMetricsCharts
              };
              this.objReportSetting = objectReportSetting;
            }
          } catch (error) {
            console.error('error :', error);
          }
        }
      }, {
        key: "getAlertDigestTemplate",
        value: function getAlertDigestTemplate() {
          var me = this;
          var payload = {
            cctx: me.sessionService.session.cctx,
            rT: this.alertDigestReportOption,
            mO: this.selectedMetricOption,
            tR: parseInt(me.sessionService.session.testRun.id)
          };
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.report.getTemplateFavList.endpoint;
          var base = src_environments_environment__WEBPACK_IMPORTED_MODULE_19__["environment"].api.core.defaultBase;
          me.scheduleReportService.onTakingAlertDigestTemplateTaskList(path, payload, base).subscribe(function (state) {
            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["AlertDigestTaskListLoadingState"]) {
              me.alertDigestTaskListLoading(state);
              return;
            }

            if (state instanceof _schedulereport_service_schedulereport_state__WEBPACK_IMPORTED_MODULE_26__["AlertDigestTaskListLoadedState"]) {
              me.alertDigestTaskListLoaded(state);
              return;
            }
          }, function (state) {
            me.alertDigestTaskListLoadingError(state);
          });
        }
      }, {
        key: "alertDigestTaskListLoading",
        value: function alertDigestTaskListLoading(_state) {
          var me = this;
          me.blockedDocument = true;
          me.timebarService.setLoading(true);
        }
      }, {
        key: "alertDigestTaskListLoaded",
        value: function alertDigestTaskListLoaded(state) {
          var me = this;
          me.excelTemplateOption = [];

          if (state && state.data && state.data.temFavList && state.data.temFavList.alert && state.data.temFavList.alert.length > 0) {
            me.excelTemplateOption = state.data.temFavList.alert;
            me.selectedExcelTemplate = me.excelTemplateOption[0];

            if (this.selectedExcelTemplate.label == 'AlertDigestReportWithGrouping') {
              this.toolTipTest = 'Default Template cannot be delated';
            } else {
              this.toolTipTest = 'Delete';
            }

            if (me.isEditClicked) {
              if (this.dataTobeEdit.task[0].crq.format === 'ALERT') {
                var ar = this.dataTobeEdit.task[0].crq.templateName.split('.');

                for (var i = 0; i < state.data.temFavList.alert.length; i++) {
                  if (state.data.temFavList.alert[i].label === ar[0]) {
                    me.selectedExcelTemplate = state.data.temFavList.alert[i];
                  }
                }
              }
            }
          }

          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "alertDigestTaskListLoadingError",
        value: function alertDigestTaskListLoadingError(_state) {
          var me = this;
          me.blockedDocument = false;
          me.timebarService.setLoading(false);
        }
      }, {
        key: "fillMailBody",
        value: function fillMailBody(hint) {
          this.txtMailBody = this.txtMailBody + ' ' + hint + ' ';
        }
      }, {
        key: "addReportTask",
        value: function addReportTask() {
          var me = this;
          var lastModified = new Date();
          me.schObj.lastModified = lastModified.getTime();
          var reptobj = {
            taskType: 'ReportTask',
            crq: me.crqObj,
            mail: me.mailObj,
            enable: true,
            name: this.taskName
          };

          if (me.isEditClicked && me.dataTobeEdit.task[0].id) {
            reptobj.id = me.dataTobeEdit.task[0].id;
          }

          var cavScheduleObj = {
            task: [reptobj],
            inputType: me.isEditClicked ? "UPDATE" : "ADD"
          };
          me.inputForCavScheduler = cavScheduleObj;
        }
      }, {
        key: "readFrmTemp",
        value: function readFrmTemp() {
          if (this.aggregatedValue) {
            this.overridePreset = false;
          }
        }
      }, {
        key: "deleteExcelAlertTemplate",
        value: function deleteExcelAlertTemplate() {
          var _this7 = this;

          var type;

          if (!this.selectedExcelTemplate) {
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: "No File selected."
            });
            return;
          }

          if (this.selectedReportType.label === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
            type = src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE;
          } else if (this.selectedReportType.label === 'Alert Digest Report') {
            type = 'AlertDigest';
          }

          var ext = this.selectedExcelTemplate.value.split('.');
          var me = this;
          var tempInfoo = [{
            cd: '-',
            des: '-',
            ext: ext[1],
            md: '-',
            rptSetNum: 0,
            tn: this.selectedExcelTemplate.label,
            tr: -1,
            type: type,
            un: '-'
          }];

          try {
            if (!me.selectedExcelTemplate) {
              this.dialogVisible = true;
              this.confirmation.confirm({
                key: 'scheduler',
                message: 'Template is not selected',
                header: 'Error',
                accept: function accept() {
                  _this7.dialogVisible = false;
                },
                rejectVisible: false
              });
              return;
            }

            this.dialogVisible = true;

            if (me.selectedExcelTemplate) {
              this.confirmation.confirm({
                key: 'scheduler',
                message: "Do you want to delete " + me.selectedExcelTemplate.label + " template ?",
                header: 'Confirmation',
                accept: function accept() {
                  me.blockedDocument = true;
                  me.scheduleReportService.deleteTemplateList(tempInfoo).subscribe(function (state) {
                    if (state instanceof _template_service_template_state__WEBPACK_IMPORTED_MODULE_24__["DeleteTemplateLoadingState"]) {
                      me.deleteExcelLoading(state);
                      return;
                    }

                    if (state instanceof _template_service_template_state__WEBPACK_IMPORTED_MODULE_24__["DeleteTemplateLoadedState"]) {
                      me.deleteExcelLoaded(state, tempInfoo);
                      return;
                    }
                  }, function (state) {
                    me.deleteExcelLoadingError(state);
                  });
                  return;
                },
                reject: function reject() {
                  _this7.dialogVisible = false;
                  return;
                },
                rejectVisible: true
              });
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "deleteExcelLoading",
        value: function deleteExcelLoading(_state) {
          this.blockedDocument = true;
        }
      }, {
        key: "deleteExcelLoaded",
        value: function deleteExcelLoaded(_state, tempInfoo) {
          var me = this;

          try {
            if (this.selectedReportType.label === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              for (var i = 0; i < me.excelTemplateOption.length; i++) {
                if (me.excelTemplateOption[i].label === tempInfoo[0].tn) {
                  me.excelTemplateOption.splice(i, 1);
                  break;
                }
              }
            } else if (this.selectedReportType.label === 'Alert Digest Report') {
              this.getAlertDigestTemplate();
            }

            this.selectedExcelTemplate = {
              label: '',
              value: ''
            };
            this.messageService.add({
              severity: 'success',
              summary: 'Template delete',
              detail: 'Template deleted successfully'
            });
            me.excelTemplateOption = _toConsumableArray(me.excelTemplateOption);
            me.selectedExcelTemplate = me.excelTemplateOption[0];
            me.blockedDocument = false;
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "deleteExcelLoadingError",
        value: function deleteExcelLoadingError(_state) {
          this.blockedDocument = false;
        }
      }, {
        key: "validateTemplate",
        value: function validateTemplate(template, str) {
          var status = true;
          var msg;

          if (str === 'Favourite') {
            msg = 'No favourite is available.';
          } else {
            msg = 'No template is available.';
          }

          try {
            if (template === '' || template == null) {
              this.messageService.add({
                severity: 'error',
                summary: 'Error',
                detail: msg
              });
              return false;
            }
          } catch (error) {
            console.error(error);
          }

          return status;
        }
      }, {
        key: "validateOnTimeFilterCustomTimeChange",
        value: function validateOnTimeFilterCustomTimeChange() {
          var me = this;

          var refDateTimeFrame = _toConsumableArray(me.customTimeFrame);

          if (me.customTimeFrame && me.customTimeFrame.length === 2) {
            if (me.customTimeFrame[0] !== null && me.customTimeFrame[1] !== null) {
              if (this.patternMatchFlag) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Error',
                  detail: 'Please enter valid start Date and End Date.'
                });
                return;
              }

              me.invalidDate = true;

              if (me.customTimeFrame[0].valueOf() === me.customTimeFrame[1].valueOf()) {
                me.invalidDate = true;

                if (me.invalidDate) {
                  this.messageService.add({
                    severity: 'error',
                    summary: 'Custom Date/Time',
                    detail: 'The selected preset time does not have enough duration to select.'
                  });
                }

                return false;
              } else if (me.customTimeFrame[0].valueOf() > me.customTimeFrame[1].valueOf()) {
                if (me.invalidDate) {
                  this.messageService.add({
                    severity: 'error',
                    summary: 'Custom Date/Time',
                    detail: 'Start Date should not be greater than End Date'
                  });
                }

                return false;
              }

              me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
            } else if (me.customTimeFrame[0] == null && me.customTimeFrame[1] == null) {
              me.invalidDate = true;

              if (me.invalidDate) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Custom Date/Time',
                  detail: 'Please enter start Date and End Date.'
                });
              }

              me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              return false;
            } else if (me.customTimeFrame[0] === null) {
              me.invalidDate = true;

              if (me.invalidDate) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Custom Date/Time',
                  detail: 'Please enter start Date.'
                });
              }

              me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              return false;
            } else if (me.customTimeFrame[1] === null) {
              me.invalidDate = true;

              if (me.invalidDate) {
                this.messageService.add({
                  severity: 'error',
                  summary: 'Custom Date/Time',
                  detail: 'Please enter End Date.'
                });
              }

              me.customTimeFrame = [refDateTimeFrame[0], refDateTimeFrame[1]];
              return false;
            }
          }

          return true;
        }
      }, {
        key: "postCallForParsingExcelTempaltetoJson",
        value: function postCallForParsingExcelTempaltetoJson(dateObect) {
          var me = this;
          var payload = {
            cctx: this.sessionService.session.cctx,
            rT: dateObect.reportType,
            fN: dateObect.fileName
          };
          me.addReportService.postCallForParsingExcelTempaltetoJson(payload).subscribe(function (state) {
            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ExcelPostCallParsingToJsonLoadingState"]) {
              me.excelPostLoadingState(state);
              return;
            }

            if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["ExcelPostCallParsingToJsonLoadedState"]) {
              me.excelPostLoadedState(state, payload);
              return;
            }
          }, function (state) {
            me.excelPostErrorState(state);
          });
        }
      }, {
        key: "excelPostLoadingState",
        value: function excelPostLoadingState(state) {
          this.blockedDocument = true;
        }
      }, {
        key: "excelPostLoadedState",
        value: function excelPostLoadedState(state, _payload) {
          this.blockedDocument = false;
        }
      }, {
        key: "excelPostErrorState",
        value: function excelPostErrorState(state) {
          this.blockedDocument = false;
        }
      }, {
        key: "onInput",
        value: function onInput() {
          var _this8 = this;

          var me = this;
          setTimeout(function () {
            var dtTimeFieldValue = _this8.dataTimeRef.nativeElement.value;
            var pattern = /(01|1|02|2|03|3|04|4|05|5|06|6|07|7|08|8|09|9|10|11|12)\/(0?[1-9]|[1-2][0-9]|30|31)\/(\d{4}) (20|21|22|23|[01]?\d):(\d\d|0[1-9]|[1-5][0-9]):(\d\d|0[1-9]|[1-5][0-9]) \~ (01|1|02|2|03|3|04|4|05|5|06|6|07|7|08|8|09|9|10|11|12)\/(0?[1-9]|[1-2][0-9]|30|31)\/(\d{4}) (20|21|22|23|[01]?\d):(\d\d|0[1-9]|[1-5][0-9]):(\d\d|0[1-9]|[1-5][0-9])$/;

            if (!pattern.test(dtTimeFieldValue)) {
              me.invalidDate = true;
              me.errMsg = 'Enter Date in the format of MM/DD/YYYY HH:mm:ss ';
              _this8.patternMatchFlag = true;
            } else {
              _this8.patternMatchFlag = false;
              me.invalidDate = false;
            }
          }, 50);
        }
      }, {
        key: "resetDayTimeCheck",
        value: function resetDayTimeCheck() {
          this.selectDay = false;
          this.selectTime = false;
          this.selectedDay = '';
          this.selectedTime = '00:00';
        }
      }, {
        key: "onUXReportTypeChange",
        value: function onUXReportTypeChange(crq) {
          if (crq && crq.reportType !== 'date') {
            this.buckets = [{
              label: 'Complete',
              value: 0
            }];
            this.selectedBucket = 0;
          } else {
            this.buckets = [{
              label: 'Hourly',
              value: 1
            }, {
              label: 'Daily',
              value: 2
            }, {
              label: 'Weekly',
              value: 3
            }, {
              label: 'Monthly',
              value: 4
            }];
            this.selectedBucket = 1;
          }
        }
      }, {
        key: "selectNonBusinessHours",
        value: function selectNonBusinessHours(event) {
          try {
            var me = this;

            if (event && event.value) {
              var oldItem = me.nonBusinessHoursOpt.filter(function (item) {
                return item.value == event.value;
              });
              me.selectedNbhName = oldItem[0].label;
              me.selectedNonBusinessHours = event.value;
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "getNonBusinessHourPreset",
        value: function getNonBusinessHourPreset() {
          try {
            var me = this;
            me.addReportService.getNonBusinessHourList().subscribe(function (state) {
              if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["nonBusinessHourPresetLoadingState"]) {
                me.nonBusinessHourPresetLoading(state);
                return;
              }

              if (state instanceof _metrics_add_report_service_add_report_state__WEBPACK_IMPORTED_MODULE_23__["nonBusinessHourPresetLoadedState"]) {
                me.nonBusinessHourPresetLoaded(state);
                return;
              }
            }, function (state) {
              me.nonBusinessHourPresetLoadingError(state);
            });
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "nonBusinessHourPresetLoading",
        value: function nonBusinessHourPresetLoading(state) {}
      }, {
        key: "nonBusinessHourPresetLoaded",
        value: function nonBusinessHourPresetLoaded(state) {
          var _a, _b;

          try {
            var me = this;

            if ((_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.task) {
              var nbhTasks = state.data.task;
              var nbhList = nbhTasks.map(function (task) {
                return {
                  label: task.name,
                  value: task.id
                };
              });

              if ((nbhList === null || nbhList === void 0 ? void 0 : nbhList.length) > 0) {
                me.nonBusinessHoursOpt = nbhList;
              }

              if (!me.isEditClicked && (nbhList === null || nbhList === void 0 ? void 0 : nbhList.length) > 0) {
                me.selectedNonBusinessHours = nbhList[0].value;
                me.selectedNbhName = nbhList[0].label;
              } else {
                if (me.dataTobeEdit) {
                  var nbhId = me.dataTobeEdit.task[0].crq.nonBusinessHoursId;
                  var isNBHIDPreset = me.nonBusinessHoursOpt.find(function (col) {
                    return nbhId === col.value;
                  });

                  if (isNBHIDPreset) {
                    me.isExceluedNonBusinessHoue = true;
                    me.selectedNonBusinessHours = nbhId;
                    me.selectedNbhName = me.dataTobeEdit.task[0].crq.nbhLabel || isNBHIDPreset.label;
                  } else {
                    me.isExceluedNonBusinessHoue = false;

                    if ((nbhList === null || nbhList === void 0 ? void 0 : nbhList.length) > 0) {
                      me.selectedNonBusinessHours = nbhList[0].value;
                      me.selectedNbhName = nbhList[0].label;
                    }
                  }
                }
              }

              if (((_b = me.nonBusinessHoursOpt) === null || _b === void 0 ? void 0 : _b.length) > 0) {
                this.checkNBHEnable = true;
              }
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "nonBusinessHourPresetLoadingError",
        value: function nonBusinessHourPresetLoadingError(state) {}
      }, {
        key: "onschMenuAppendClick",
        value: function onschMenuAppendClick() {
          this.isSchMenuAppendOpen = true;
        }
      }, {
        key: "overlayClickHandler",
        value: function overlayClickHandler(event) {
          event.hide();
          this.isSchMenuAppendOpen = false;
        }
      }, {
        key: "selectTempORDashboard",
        value: function selectTempORDashboard(event) {
          try {
            var me = this;

            if (event.value === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].USING_DASHBOARD) {
              me.selectFavorite();
            } else {
              me.selectTemplate();
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "onCancelSchedule",
        value: function onCancelSchedule() {
          try {
            var me = this;
            me.router.navigate(['/schedules'], {
              queryParams: this.route.snapshot.queryParams
            });
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "setPresetoption",
        value: function setPresetoption(reportType) {
          try {
            var me = this;

            if (reportType === src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_15__["ReportConstant"].EXCEL_TYPE) {
              me.presetOptions = [{
                label: 'Preset',
                value: 'preset1'
              }, {
                label: "Custom",
                value: "custom"
              }, {
                label: "Preset specified in template",
                value: "templateTime"
              }];
            } else {
              me.presetOptions = [{
                label: 'Preset',
                value: 'preset1'
              }, {
                label: "Custom",
                value: "custom"
              }];
            }
          } catch (error) {
            console.error("setPresetoption : ", error);
          }
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.cavNavBarService.showBreadCrumb = false;
        }
      }, {
        key: "mailAdd",
        value: function mailAdd(event) {
          var mailformat = /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{2,4}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{2,4})[\W]*$/;

          if (!event.value.trim().match(mailformat)) {
            this.toEmails.pop();
            this.messageService.add({
              severity: 'error',
              summary: 'Error',
              detail: 'Please enter a valid e-mail id'
            });
          }
        }
      }]);
    }();

    SchedulereportComponent.ctorParameters = function () {
      return [{
        type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_16__["TimebarService"]
      }, {
        type: _schedulereport_service_schedulereport_service__WEBPACK_IMPORTED_MODULE_25__["ScheduleReportService"]
      }, {
        type: _metrics_add_report_service_add_report_service__WEBPACK_IMPORTED_MODULE_22__["AddReportService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
      }, {
        type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_10__["SessionService"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_6__["ConfirmationService"]
      }, {
        type: _service_schedules_service__WEBPACK_IMPORTED_MODULE_27__["SchedulesService"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_13__["CavMessageService"]
      }, {
        type: _reports_service_reports_service__WEBPACK_IMPORTED_MODULE_20__["ReportsService"]
      }, {
        type: src_app_core_breadcrumb_breadcrumb_service__WEBPACK_IMPORTED_MODULE_8__["BreadcrumbService"]
      }, {
        type: src_app_pages_home_home_sessions_common_service_nvhttp_service__WEBPACK_IMPORTED_MODULE_11__["NvhttpService"]
      }, {
        type: src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_12__["CavNavBarService"]
      }, {
        type: src_app_core_session_node_Info_session_service__WEBPACK_IMPORTED_MODULE_9__["NodeInfoSessionService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('timePeriodMenu', {
      "static": false
    })], SchedulereportComponent.prototype, "timePeriodMenu", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('schExcelUpload')], SchedulereportComponent.prototype, "excelFileUpload", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('dateTime')], SchedulereportComponent.prototype, "dataTimeRef", void 0);
    SchedulereportComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-schedulereport',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./schedulereport.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      providers: [primeng__WEBPACK_IMPORTED_MODULE_6__["ConfirmationService"], {
        provide: ng_pick_datetime__WEBPACK_IMPORTED_MODULE_5__["DateTimeAdapter"],
        useClass: src_app_shared_date_time_picker_moment_moment_date_time_adapter__WEBPACK_IMPORTED_MODULE_14__["MomentDateTimeAdapter"],
        deps: [ng_pick_datetime__WEBPACK_IMPORTED_MODULE_5__["OWL_DATE_TIME_LOCALE"]]
      }, {
        provide: ng_pick_datetime__WEBPACK_IMPORTED_MODULE_5__["OWL_DATE_TIME_FORMATS"],
        useValue: _metrics_add_report_service_add_report_dummy__WEBPACK_IMPORTED_MODULE_21__["Report_Date_Format"].formats.OWL_DATE_TIME_FORMATS
      }],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./schedulereport.component.scss */
      "./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.scss"))["default"]]
    })], SchedulereportComponent);
    /***/
  },

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.module.ts":
  /*!********************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.module.ts ***!
    \********************************************************************************************/

  /*! exports provided: SchedulereportModule */

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

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


    __webpack_require__.d(__webpack_exports__, "SchedulereportModule", function () {
      return SchedulereportModule;
    });
    /* 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 _schedulereport_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./schedulereport.component */
    "./src/app/pages/my-library/reports/schedules/schedulereport/schedulereport.component.ts");
    /* harmony import */


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


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


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


    var ng_pick_datetime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ng-pick-datetime */
    "./node_modules/ng-pick-datetime/__ivy_ngcc__/picker.js");
    /* harmony import */


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


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


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


    var src_app_shared_date_time_picker_moment_moment_date_time_module__WEBPACK_IMPORTED_MODULE_11__ = __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 primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! primeng/confirmdialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js");
    /* harmony import */


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


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


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


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


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

    var imports = [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["BreadcrumbModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CardModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], ng_pick_datetime__WEBPACK_IMPORTED_MODULE_7__["OwlDateTimeModule"], src_app_shared_date_time_picker_moment_moment_date_time_module__WEBPACK_IMPORTED_MODULE_11__["OwlMomentDateTimeModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ChipsModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TabViewModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["SlideMenuModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_8__["FileUploadModule"], primeng_calendar__WEBPACK_IMPORTED_MODULE_9__["CalendarModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_10__["SelectButtonModule"], primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_12__["ConfirmDialogModule"], primeng_dialog__WEBPACK_IMPORTED_MODULE_13__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TooltipModule"], primeng_blockui__WEBPACK_IMPORTED_MODULE_14__["BlockUIModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_15__["HelpModule"], src_app_shared_cav_toolbar_cav_toolbar_module__WEBPACK_IMPORTED_MODULE_16__["CavToolbarModule"], src_app_shared_cav_scheduler_cav_scheduler_module__WEBPACK_IMPORTED_MODULE_17__["CavSchedulerModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TieredMenuModule"]];
    var components = [_schedulereport_component__WEBPACK_IMPORTED_MODULE_3__["SchedulereportComponent"]];
    var routes = [{
      path: '',
      redirectTo: 'schedule-report',
      pathMatch: 'full'
    }, {
      path: 'schedule-report',
      component: _schedulereport_component__WEBPACK_IMPORTED_MODULE_3__["SchedulereportComponent"]
    }];

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

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

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.dummy.ts":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.dummy.ts ***!
    \***************************************************************************************************/

  /*! exports provided: SCHEDULE_REPORT_DATA, Report_Scheduler_Preset, Report_Date_Format */

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

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


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


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


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

    var SCHEDULE_REPORT_DATA = {
      preset: [{
        label: 'Today',
        value: 'Today'
      }, {
        label: 'Today',
        value: 'Today'
      }],
      template: [{
        label: 'NDEHealth',
        value: 'NDEHealth'
      }, {
        label: 'NDEHealth',
        value: 'NDEHealth'
      }],
      viewBy: [{
        label: 'Hour (s)',
        value: 'Hour (s)'
      }],
      value: [{
        label: '12',
        value: '12'
      }, {
        label: '10',
        value: '10'
      }],
      uxReportType: [{
        label: 'UX Custom',
        value: 'custom'
      }, {
        label: 'UX Standard',
        value: 'standard'
      }, {
        label: 'UX Template',
        value: 'template'
      }],
      reportType: [{
        label: 'Excel',
        value: 'Excel'
      }, {
        label: 'Metric',
        value: 'Performance Stats'
      }],
      matrics: [{
        label: 'Select Matrics',
        value: 'Select Matrics'
      }, {
        label: 'Using Template',
        value: 'Using Template'
      }, {
        label: 'Using Favourite',
        value: 'Using Favourite'
      }],
      hourlyType: [{
        label: 'Every',
        value: 'Every'
      }, {
        label: 'Daily',
        value: 'Daily'
      }],
      days: [{
        label: 'Sunday',
        value: 'Sunday'
      }, {
        label: 'Monday',
        value: 'Monday'
      }, {
        label: 'TuesDay',
        value: 'TuesDay'
      }, {
        label: 'Wednesday',
        value: 'Wednesday'
      }, {
        label: 'Thirsday',
        value: 'Thirsday'
      }, {
        label: 'Friday',
        value: 'Friday'
      }, {
        label: 'Saturday',
        value: 'Saturday'
      }]
    };
    var Report_Scheduler_Preset = {
      time: {
        min: {
          raw: null,
          value: 1614311454316
        },
        max: {
          raw: null,
          value: 1614325854316
        },
        frameStart: {
          raw: null,
          value: 1614322254316
        },
        frameEnd: {
          raw: null,
          value: 1614325854316
        }
      },
      timePeriod: {
        selected: {
          id: 'WS',
          label: 'Whole Test',
          url: ''
        },
        previous: null,
        options: [{
          label: 'Live',
          items: []
        }]
      },
      viewBy: {
        selected: {
          id: '600',
          label: '10 Min',
          url: ''
        },
        previous: {
          id: '600',
          label: '10 Min',
          url: ''
        },
        options: [{
          id: 'M',
          labe: 'Min',
          items: [{
            id: '60',
            label: '1 Min',
            url: ''
          }, {
            id: '600',
            label: '10 Min',
            url: ''
          }]
        }]
      }
    };
    var Report_Date_Format = {
      formats: {
        date: {
          // Moment JS date formats
          "default": 'MM/DD/YYYY',
          "long": 'D/MMM/YYYY',
          "short": 'D/MMM/YYYY'
        },
        dateTime: {
          // Moment JS date formats
          "default": 'MM/DD/YYYY HH:mm'
        },
        OWL_DATE_TIME_FORMATS: {
          parseInput: 'MM/DD/YYYY HH:mm:ss',
          fullPickerInput: 'MM/DD/YYYY HH:mm:ss',
          datePickerInput: 'MM/DD/YYYY',
          timePickerInput: 'HH:mm:ss',
          monthYearLabel: 'MMM YYYY',
          dateA11yLabel: 'LL',
          monthYearA11yLabel: 'MMMM YYYY'
        }
      }
    };
    /***/
  },

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.service.ts":
  /*!*****************************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.service.ts ***!
    \*****************************************************************************************************/

  /*! exports provided: ScheduleReportService */

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

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


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


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


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


    var _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ./schedulereport.state */
    "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.state.ts");
    /* harmony import */


    var src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! src/app/shared/report-common/constant/report-enum */
    "./src/app/shared/report-common/constant/report-enum.ts");
    /* harmony import */


    var _template_service_template_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../../template/service/template.state */
    "./src/app/pages/my-library/reports/template/service/template.state.ts");

    var ScheduleReportService = /*#__PURE__*/function (_src_app_core_store_s) {
      function ScheduleReportService(sessionService) {
        var _this9;

        _classCallCheck(this, ScheduleReportService);

        _this9 = _callSuper(this, ScheduleReportService);
        _this9.sessionService = sessionService;
        return _this9;
      }

      _inherits(ScheduleReportService, _src_app_core_store_s);

      return _createClass(ScheduleReportService, [{
        key: "onTakingTempFavTaskList",
        value: function onTakingTempFavTaskList() {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavoriteTaskListLoadingState"]());
          }, 0);
          var payload = {
            cctx: me.sessionService.session.cctx,
            rT: src_app_shared_report_common_constant_report_enum__WEBPACK_IMPORTED_MODULE_7__["ReportConstant"].EXCEL_REPORT
          };
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.report.getTemplateFavList.endpoint;
          var basePath = this.sessionService.getBasePath(true, null, null);
          me.controller.post(path, payload, basePath).subscribe(function (data) {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavoriteTaskListLoadedState"](data));
            output.complete();
          }, function (e) {
            output.error(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavoriteTaskListLoadingErrorState"](e));
            output.complete();
            me.logger.error('loading failed', e);
          });
          return output;
        }
      }, {
        key: "onTakingFavTaskList",
        value: function onTakingFavTaskList(path, payload, base) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavTaskListLoadingState"]());
          }, 0);
          var basePath = this.sessionService.getBasePath(true, null, null);
          me.controller.post(path, payload, basePath).subscribe(function (data) {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavTaskListLoadedState"](data));
            output.complete();
          }, function (e) {
            output.error(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["FavTaskListLoadingErrorState"](e));
            output.complete();
            me.logger.error('loading failed', e);
          });
          return output;
        }
      }, {
        key: "onTakingTemplateTaskList",
        value: function onTakingTemplateTaskList(path, payload, base) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["TemplateTaskListLoadingState"]());
          }, 0);
          var basePath = this.sessionService.getBasePath(true, null, null);
          me.controller.post(path, payload, basePath).subscribe(function (data) {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["TemplateTaskListLoadedState"](data));
            output.complete();
          }, function (e) {
            output.error(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["TemplateTaskListLoadingErrorState"](e));
            output.complete();
            me.logger.error('loading failed', e);
          });
          return output;
        }
      }, {
        key: "onTakingAlertDigestTemplateTaskList",
        value: function onTakingAlertDigestTemplateTaskList(path, payload, base) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["AlertDigestTaskListLoadingState"]());
          }, 0);
          var basePath = this.sessionService.getBasePath(true, null, null);
          me.controller.post(path, payload, basePath).subscribe(function (data) {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["AlertDigestTaskListLoadedState"](data));
            output.complete();
          }, function (e) {
            output.error(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["AlertDigestListLoadingErrorState"](e));
            output.complete();
            me.logger.error('loading failed', e);
          });
          return output;
        }
      }, {
        key: "loadTime",
        value: function loadTime(timePeriod, viewBy) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["ReportTimebarTimeLoadingState"]());
          }, 0);
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.globalTimebar.time.endpoint;
          var session = me.sessionService.session;

          if (session) {
            var payload = {
              cck: session.cctx.cck,
              tr: session.testRun.id,
              pk: session.cctx.pk,
              u: session.cctx.u,
              sp: timePeriod,
              running1: session.testRun.running,
              prodType: me.sessionService.session.cctx.prodType,
              running: session.testRun.running,
              st: session.testRun.st,
              duration: session.testRun.duration,
              cmt: session.testRun.cmt,
              zoneId: me.sessionService.selectedTimeZone.zoneLabel
            };
            var basePath = this.sessionService.getBasePath(true, null, null);
            me.controller.get(path, payload, basePath).subscribe(function (data) {
              output.next(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["ReportTimebarTimeLoadedState"](data));
              output.complete();
            }, function (e) {
              output.error(new _schedulereport_state__WEBPACK_IMPORTED_MODULE_6__["ReportTimebarTimeLoadingErrorState"](e));
              output.complete();
              me.logger.error('ReportTimebar Time Loading failed', e);
            });
          }

          return output;
        }
      }, {
        key: "deleteTemplateList",
        value: function deleteTemplateList(tempInfoList) {
          var me = this;
          var output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          setTimeout(function () {
            output.next(new _template_service_template_state__WEBPACK_IMPORTED_MODULE_8__["DeleteTemplateLoadingState"]());
          }, 0);
          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.report.deleteTemplate.endpoint;
          var payload = {
            cctx: me.sessionService.session.cctx,
            temInfo: tempInfoList
          };
          var basePath = this.sessionService.getBasePath(true, null, null);
          me.controller.post(path, payload, basePath).subscribe(function (data) {
            output.next(new _template_service_template_state__WEBPACK_IMPORTED_MODULE_8__["DeleteTemplateLoadedState"](data));
            output.complete();
          }, function (e) {
            output.error(new _template_service_template_state__WEBPACK_IMPORTED_MODULE_8__["DeleteTemplateLoadingErrorState"](e));
            output.complete();
            me.logger.error('loading failed', e);
          });
          return output;
        }
      }]);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_3__["Store"].AbstractService);

    ScheduleReportService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"]
      }];
    };

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

  /***/
  "./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.state.ts":
  /*!***************************************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/schedulereport/service/schedulereport.state.ts ***!
    \***************************************************************************************************/

  /*! exports provided: FavoriteTaskListLoadingState, FavoriteTaskListLoadedState, FavoriteTaskListLoadingErrorState, FavTaskListLoadingState, FavTaskListLoadedState, FavTaskListLoadingErrorState, TemplateTaskListLoadingState, TemplateTaskListLoadedState, TemplateTaskListLoadingErrorState, AlertDigestTaskListLoadingState, AlertDigestTaskListLoadedState, AlertDigestListLoadingErrorState, ReportTimebarTimeLoadingState, ReportTimebarTimeLoadingErrorState, ReportTimebarTimeLoadedState, AddReportTaskLoadingState, AddReportTaskLoadedState, AddReportTaskLoadingErrorState, UpdateReportTaskLoadingState, UpdateReportTaskLoadedState, UpdateReportTaskLoadingErrorState */

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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

    var FavoriteTaskListLoadingState = /*#__PURE__*/function (_src_app_core_store_s2) {
      function FavoriteTaskListLoadingState() {
        _classCallCheck(this, FavoriteTaskListLoadingState);

        return _callSuper(this, FavoriteTaskListLoadingState, arguments);
      }

      _inherits(FavoriteTaskListLoadingState, _src_app_core_store_s2);

      return _createClass(FavoriteTaskListLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var FavoriteTaskListLoadedState = /*#__PURE__*/function (_src_app_core_store_s3) {
      function FavoriteTaskListLoadedState() {
        _classCallCheck(this, FavoriteTaskListLoadedState);

        return _callSuper(this, FavoriteTaskListLoadedState, arguments);
      }

      _inherits(FavoriteTaskListLoadedState, _src_app_core_store_s3);

      return _createClass(FavoriteTaskListLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var FavoriteTaskListLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s4) {
      function FavoriteTaskListLoadingErrorState() {
        _classCallCheck(this, FavoriteTaskListLoadingErrorState);

        return _callSuper(this, FavoriteTaskListLoadingErrorState, arguments);
      }

      _inherits(FavoriteTaskListLoadingErrorState, _src_app_core_store_s4);

      return _createClass(FavoriteTaskListLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var FavTaskListLoadingState = /*#__PURE__*/function (_src_app_core_store_s5) {
      function FavTaskListLoadingState() {
        _classCallCheck(this, FavTaskListLoadingState);

        return _callSuper(this, FavTaskListLoadingState, arguments);
      }

      _inherits(FavTaskListLoadingState, _src_app_core_store_s5);

      return _createClass(FavTaskListLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var FavTaskListLoadedState = /*#__PURE__*/function (_src_app_core_store_s6) {
      function FavTaskListLoadedState() {
        _classCallCheck(this, FavTaskListLoadedState);

        return _callSuper(this, FavTaskListLoadedState, arguments);
      }

      _inherits(FavTaskListLoadedState, _src_app_core_store_s6);

      return _createClass(FavTaskListLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var FavTaskListLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s7) {
      function FavTaskListLoadingErrorState() {
        _classCallCheck(this, FavTaskListLoadingErrorState);

        return _callSuper(this, FavTaskListLoadingErrorState, arguments);
      }

      _inherits(FavTaskListLoadingErrorState, _src_app_core_store_s7);

      return _createClass(FavTaskListLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var TemplateTaskListLoadingState = /*#__PURE__*/function (_src_app_core_store_s8) {
      function TemplateTaskListLoadingState() {
        _classCallCheck(this, TemplateTaskListLoadingState);

        return _callSuper(this, TemplateTaskListLoadingState, arguments);
      }

      _inherits(TemplateTaskListLoadingState, _src_app_core_store_s8);

      return _createClass(TemplateTaskListLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var TemplateTaskListLoadedState = /*#__PURE__*/function (_src_app_core_store_s9) {
      function TemplateTaskListLoadedState() {
        _classCallCheck(this, TemplateTaskListLoadedState);

        return _callSuper(this, TemplateTaskListLoadedState, arguments);
      }

      _inherits(TemplateTaskListLoadedState, _src_app_core_store_s9);

      return _createClass(TemplateTaskListLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var TemplateTaskListLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s0) {
      function TemplateTaskListLoadingErrorState() {
        _classCallCheck(this, TemplateTaskListLoadingErrorState);

        return _callSuper(this, TemplateTaskListLoadingErrorState, arguments);
      }

      _inherits(TemplateTaskListLoadingErrorState, _src_app_core_store_s0);

      return _createClass(TemplateTaskListLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var AlertDigestTaskListLoadingState = /*#__PURE__*/function (_src_app_core_store_s1) {
      function AlertDigestTaskListLoadingState() {
        _classCallCheck(this, AlertDigestTaskListLoadingState);

        return _callSuper(this, AlertDigestTaskListLoadingState, arguments);
      }

      _inherits(AlertDigestTaskListLoadingState, _src_app_core_store_s1);

      return _createClass(AlertDigestTaskListLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var AlertDigestTaskListLoadedState = /*#__PURE__*/function (_src_app_core_store_s10) {
      function AlertDigestTaskListLoadedState() {
        _classCallCheck(this, AlertDigestTaskListLoadedState);

        return _callSuper(this, AlertDigestTaskListLoadedState, arguments);
      }

      _inherits(AlertDigestTaskListLoadedState, _src_app_core_store_s10);

      return _createClass(AlertDigestTaskListLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var AlertDigestListLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s11) {
      function AlertDigestListLoadingErrorState() {
        _classCallCheck(this, AlertDigestListLoadingErrorState);

        return _callSuper(this, AlertDigestListLoadingErrorState, arguments);
      }

      _inherits(AlertDigestListLoadingErrorState, _src_app_core_store_s11);

      return _createClass(AlertDigestListLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var ReportTimebarTimeLoadingState = /*#__PURE__*/function (_src_app_core_store_s12) {
      function ReportTimebarTimeLoadingState() {
        _classCallCheck(this, ReportTimebarTimeLoadingState);

        return _callSuper(this, ReportTimebarTimeLoadingState, arguments);
      }

      _inherits(ReportTimebarTimeLoadingState, _src_app_core_store_s12);

      return _createClass(ReportTimebarTimeLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var ReportTimebarTimeLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s13) {
      function ReportTimebarTimeLoadingErrorState() {
        _classCallCheck(this, ReportTimebarTimeLoadingErrorState);

        return _callSuper(this, ReportTimebarTimeLoadingErrorState, arguments);
      }

      _inherits(ReportTimebarTimeLoadingErrorState, _src_app_core_store_s13);

      return _createClass(ReportTimebarTimeLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var ReportTimebarTimeLoadedState = /*#__PURE__*/function (_src_app_core_store_s14) {
      function ReportTimebarTimeLoadedState() {
        _classCallCheck(this, ReportTimebarTimeLoadedState);

        return _callSuper(this, ReportTimebarTimeLoadedState, arguments);
      }

      _inherits(ReportTimebarTimeLoadedState, _src_app_core_store_s14);

      return _createClass(ReportTimebarTimeLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var AddReportTaskLoadingState = /*#__PURE__*/function (_src_app_core_store_s15) {
      function AddReportTaskLoadingState() {
        _classCallCheck(this, AddReportTaskLoadingState);

        return _callSuper(this, AddReportTaskLoadingState, arguments);
      }

      _inherits(AddReportTaskLoadingState, _src_app_core_store_s15);

      return _createClass(AddReportTaskLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var AddReportTaskLoadedState = /*#__PURE__*/function (_src_app_core_store_s16) {
      function AddReportTaskLoadedState() {
        _classCallCheck(this, AddReportTaskLoadedState);

        return _callSuper(this, AddReportTaskLoadedState, arguments);
      }

      _inherits(AddReportTaskLoadedState, _src_app_core_store_s16);

      return _createClass(AddReportTaskLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var AddReportTaskLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s17) {
      function AddReportTaskLoadingErrorState() {
        _classCallCheck(this, AddReportTaskLoadingErrorState);

        return _callSuper(this, AddReportTaskLoadingErrorState, arguments);
      }

      _inherits(AddReportTaskLoadingErrorState, _src_app_core_store_s17);

      return _createClass(AddReportTaskLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);

    var UpdateReportTaskLoadingState = /*#__PURE__*/function (_src_app_core_store_s18) {
      function UpdateReportTaskLoadingState() {
        _classCallCheck(this, UpdateReportTaskLoadingState);

        return _callSuper(this, UpdateReportTaskLoadingState, arguments);
      }

      _inherits(UpdateReportTaskLoadingState, _src_app_core_store_s18);

      return _createClass(UpdateReportTaskLoadingState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState);

    var UpdateReportTaskLoadedState = /*#__PURE__*/function (_src_app_core_store_s19) {
      function UpdateReportTaskLoadedState() {
        _classCallCheck(this, UpdateReportTaskLoadedState);

        return _callSuper(this, UpdateReportTaskLoadedState, arguments);
      }

      _inherits(UpdateReportTaskLoadedState, _src_app_core_store_s19);

      return _createClass(UpdateReportTaskLoadedState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState);

    var UpdateReportTaskLoadingErrorState = /*#__PURE__*/function (_src_app_core_store_s20) {
      function UpdateReportTaskLoadingErrorState() {
        _classCallCheck(this, UpdateReportTaskLoadingErrorState);

        return _callSuper(this, UpdateReportTaskLoadingErrorState, arguments);
      }

      _inherits(UpdateReportTaskLoadingErrorState, _src_app_core_store_s20);

      return _createClass(UpdateReportTaskLoadingErrorState);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState);
    /***/

  },

  /***/
  "./src/app/pages/my-library/reports/schedules/service/schedules.service.ts":
  /*!*********************************************************************************!*\
    !*** ./src/app/pages/my-library/reports/schedules/service/schedules.service.ts ***!
    \*********************************************************************************/

  /*! exports provided: SchedulesService */

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

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


    __webpack_require__.d(__webpack_exports__, "SchedulesService", function () {
      return SchedulesService;
    });
    /* 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_store_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/store/store */
    "./src/app/core/store/store.ts");
    /* 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");

    var SchedulesService = /*#__PURE__*/function (_src_app_core_store_s21) {
      function SchedulesService(sessionService) {
        var _this0;

        _classCallCheck(this, SchedulesService);

        _this0 = _callSuper(this, SchedulesService);
        _this0.sessionService = sessionService;
        _this0.isScheduleReportButtonClicked = false;
        return _this0;
      }

      _inherits(SchedulesService, _src_app_core_store_s21);

      return _createClass(SchedulesService);
    }(src_app_core_store_store__WEBPACK_IMPORTED_MODULE_2__["Store"].AbstractService);

    SchedulesService.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"]
      }];
    };

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