function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(typeof e + " is not iterable"); }

function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }

function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }

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

function _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([["src-app-pages-home-home-nsm-page-average-report-page-average-report-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.html":
  /*!**********************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.html ***!
    \**********************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"page-average-report-container\">\n    <app-cav-loader *ngIf=\"busy\"></app-cav-loader>\n    <div [ngStyle]=\"{'width':pageAvgTableWidthForSM ? '97vw' : '99vw'}\">\n        <cav-table #dt [value]=\"tableData\" [headerRelativePath]=\"headerRelativePath\" [scrollable]=\"true\"\n            scrollHeight=\"calc(100vh - 260px)\" [rows]=\"PAGE_AVERAGE_REPORT.paginator.rows\" [first]=\"first\"\n            [(selection)]=\"selectedRowByCheckbox\" [totalRecords]=\"totalRecords\" (onLazyLoad)=\"loadPagination($event)\"\n            (clickButtonEvent)=\"clickButtonEvent($event)\"></cav-table>\n    </div>\n\n    <p-menu #exportMenu [popup]=\"true\" [model]=\"exportItems\" appendTo=\"body\"></p-menu>\n    <p-confirmDialog class=\"confirmdialog\" [style]=\"{width: '35vw'}\" [baseZIndex]=\"10000\" #cd>\n        <p-footer class=\"p-grid p-justify-end\">\n            <button type=\"button\" pButton label=\"Ok\" (click)='cd.accept()' class=\"ui-button-rounded px-15\"></button>\n        </p-footer>\n    </p-confirmDialog>\n\n</div>";
    /***/
  },

  /***/
  "./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.scss":
  /*!********************************************************************************************!*\
    !*** ./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.scss ***!
    \********************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "app-page-average-report .page-average-report-container {\n  width: calc(100vw - 48px);\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.ts":
  /*!******************************************************************************************!*\
    !*** ./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.ts ***!
    \******************************************************************************************/

  /*! exports provided: PageAverageReportComponent */

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

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


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


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


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


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


    var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* 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 moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! moment */
    "./node_modules/moment/moment.js");
    /* harmony import */


    var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
    /* harmony import */


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


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


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


    var src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_9__ = __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_environments_environment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! src/environments/environment */
    "./src/environments/environment.ts");
    /* harmony import */


    var _web_performance_report_web_vital_report_service_web_perf_report_rest_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ../web-performance-report/web-vital-report/service/web-perf-report-rest.service */
    "./src/app/pages/home/home-nsm/web-performance-report/web-vital-report/service/web-perf-report-rest.service.ts");
    /* harmony import */


    var _service_page_average_report_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! ./service/page-average-report.model */
    "./src/app/pages/home/home-nsm/page-average-report/service/page-average-report.model.ts");
    /* harmony import */


    var _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ./service/page-average-report.service */
    "./src/app/pages/home/home-nsm/page-average-report/service/page-average-report.service.ts");
    /* harmony import */


    var _synthetic_monitor_services_nvsm_utility_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! ../../synthetic-monitor/services/nvsm-utility.service */
    "./src/app/pages/home/synthetic-monitor/services/nvsm-utility.service.ts");
    /* harmony import */


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


    var lodash__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_15__);
    /* harmony import */


    var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");
    /* harmony import */


    var src_app_shared_cav_progress_service_cav_download_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! src/app/shared/cav-progress/service/cav-download.service */
    "./src/app/shared/cav-progress/service/cav-download.service.ts");
    /* harmony import */


    var src_app_shared_cav_progress_service_cav_progress_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! src/app/shared/cav-progress/service/cav-progress.service */
    "./src/app/shared/cav-progress/service/cav-progress.service.ts");

    var PageAverageReportComponent = /*#__PURE__*/function () {
      function PageAverageReportComponent(sessionService, route, router, breadcrumb, location, pageAvgReportService, messageService, timebarService, webPerfRest, nvsmUtility, confirmationService, cavProgressService, cavDownloadService) {
        var _this = this;

        _classCallCheck(this, PageAverageReportComponent);

        this.sessionService = sessionService;
        this.route = route;
        this.router = router;
        this.breadcrumb = breadcrumb;
        this.location = location;
        this.pageAvgReportService = pageAvgReportService;
        this.messageService = messageService;
        this.timebarService = timebarService;
        this.webPerfRest = webPerfRest;
        this.nvsmUtility = nvsmUtility;
        this.confirmationService = confirmationService;
        this.cavProgressService = cavProgressService;
        this.cavDownloadService = cavDownloadService;
        this.key = 'page-average-report';
        this.PAGE_AVERAGE_REPORT = _service_page_average_report_model__WEBPACK_IMPORTED_MODULE_12__["PAGE_AVERAGE_REPORT"];
        this.cols = lodash__WEBPACK_IMPORTED_MODULE_15__["cloneDeep"](_service_page_average_report_model__WEBPACK_IMPORTED_MODULE_12__["PAGE_AVERAGE_REPORT"].headers[0].cols);
        this.tableData = [];
        this.tableDatafull = [];
        this.selectedRowByCheckbox = [];
        this.filterLabel = '';
        this.countLoading = false;
        this.totalRecords = 0;
        this.totaRecordFromServer = 0;
        this.limit = 15;
        this.offset = 0;
        this.first = {
          first: 0
        };
        this.pagination = false;
        this.globalSearchStr = "";
        this.pageAvgTableWidthForSM = false;
        this.comparing = false; // RBU Page Avg Report

        this.cmt = true;
        this.starttime = null;
        this.endtime = null;
        this.pagename = null;
        this.vectorName = null;
        this.hmMetaData = null;
        this.headerRelativePath = "rbu-reports/page-average.json";
        /***Sorting */

        this.sclick = 0;
        this.iclick = 0;
        this.sortField = "strPageName";
        this.eventForMethod = {
          "first": 0,
          "rows": 15
        };
        this.actionItems = [{
          label: 'View Additional Info',
          command: function command() {
            return _this.viewAdditionalInfo();
          }
        }, {
          label: 'Page Detail Report',
          command: function command() {
            return _this.viewPageDetailReport();
          }
        }, {
          label: 'View Waterfall',
          command: function command() {
            return _this.viewAggregateWaterfall();
          }
        }, {
          label: 'Download Waterfall',
          command: function command() {
            return _this.downloadHARFile();
          }
        }];
        this.exportItems = [{
          label: 'EXCEL',
          icon: 'icons8 icons8-spreadsheet-file',
          command: function command() {
            return _this.exportData('ExcelFile');
          }
        }, {
          label: 'PDF',
          icon: 'icons8 icons8-pdf-2',
          command: function command() {
            return _this.exportData('PDFFile');
          }
        } // {
        //   label: 'WORD',
        //   icon: 'icons8 icons8-word',
        //   command: () => this.exportData('WordFile')
        // }
        ];
      }

      return _createClass(PageAverageReportComponent, [{
        key: "selectedColumns",
        get: function get() {
          return this._selectedColumns;
        },
        set: function set(value) {
          this._selectedColumns = this.cols.filter(function (col) {
            return value.includes(col);
          });
        }
      }, {
        key: "viewAdditionalInfo",
        value: function viewAdditionalInfo() {
          var data = {
            startTime: this.queryParams.pageStartTime,
            endTime: this.queryParams.pageEndTime,
            pageName: this.selectedRow.strPageName,
            runPhase: this.queryParams.runPhase,
            sesLoginName: this.queryParams.sesLoginName,
            osName: this.queryParams.userAgent,
            startTimeTR: this.queryParams.startTime,
            strRptTitle: this.queryParams.strRptTitle,
            strSessionId: this.queryParams.strSessionId,
            strSrcFileName: this.queryParams.strSrcFileName,
            envName: this.queryParams.envName,
            testRun: this.queryParams.testRun,
            vectorName: this.queryParams.vectorName,
            hmMetaData: this.queryParams.hmMetaData,
            pageIndex: this.selectedRow.pageIndex
          };
          this.pageAvgReportService.markMeasure = data;
          this.router.navigate(['/rbu-report/additional-info'], {
            queryParams: {
              testRun: this.queryParams.testRun,
              startTime: this.queryParams.pageStartTime,
              endTime: this.queryParams.pageEndTime,
              pageIndex: this.selectedRow.pageIndex,
              pageName: this.selectedRow.strPageName,
              groupName: this.selectedRow.groupName,
              vectorName: this.queryParams.vectorName,
              hmMetaData: this.queryParams.hmMetaData
            }
          });
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this2 = this;

          this.initTimeBar();
          this.route.queryParams.subscribe(function (params) {
            var _a, _b, _c, _d, _e, _f, _g;

            _this2.queryParams = {
              strTitle: 'Page Average Reports',
              runPhase: '0',
              strRptTitle: 'notInitialized',
              strSrcFileName: 'notInitialized',
              reportHeading: 'Browser side Performance Metrics',
              startTime: (_a = params.startTime) !== null && _a !== void 0 ? _a : 'NA',
              pageStartTime: (_b = params.pageStartTime) !== null && _b !== void 0 ? _b : -1,
              pageEndTime: (_c = params.pageEndTime) !== null && _c !== void 0 ? _c : -1,
              pageName: (_d = params.pageName) !== null && _d !== void 0 ? _d : '',
              vectorName: (_e = params.vectorName) !== null && _e !== void 0 ? _e : '',
              hmMetaData: (_f = params.hmMetaData) !== null && _f !== void 0 ? _f : '',
              testRun: params.testRun || _this2.sessionService.session.testRun.id,
              productKey: _this2.sessionService.session.cctx.pk,
              productType: (_g = params.prodType) !== null && _g !== void 0 ? _g : _this2.sessionService.session.cctx.prodType,
              sesLoginName: _this2.sessionService.session.cctx.u,
              userAgent: window.navigator.userAgent,
              envName: 'NA'
            };
            _this2.startTimeFromScriptTest = params.startTimeInMS;
            _this2.endTimeInMS = params.endTimeInMS;
            if (_this2.router.url.includes('synthetic-monitor')) _this2.pageAvgTableWidthForSM = true;
            if (params.isFromSynMon) _this2.nvsmUtility.isNVSMMultiDC = true;else _this2.nvsmUtility.isNVSMMultiDC = false; // we will receiving input params in case of rbu i.e. cmtFlag - false
            // handling ddr case to rbu page avg report

            if (_this2.cmt == false && _this2.starttime != null) {
              _this2.queryParams["pageStartTime"] = _this2.starttime;
              _this2.queryParams["pageEndTime"] = _this2.endtime;
              _this2.queryParams["pageName"] = _this2.pagename;
              _this2.queryParams["vectorName"] = _this2.vectorName;
              _this2.queryParams["hmMetaData"] = _this2.hmMetaData;
            }

            console.log("page avg report QP =>", _this2.queryParams);
            _this2.testRunNumber = _this2.queryParams.testRun;

            _this2.setBreadcrumb(params); // if not the case of DDR, get the time from the global timebar


            if (_this2.queryParams.pageStartTime == -1 && _this2.queryParams.pageEndTime == -1) {
              try {
                var timebarValue = _this2.timebarService.getValue();

                _this2.setTime();
              } catch (error) {
                console.error('Timebar not loaded yet. Reports will be shown for default time period');
              }
            }

            _this2.setSelectedColumns();

            _this2.setDefaultColumnPref();

            _this2.getTableData();

            _this2.setFilterLabel();

            try {
              _this2.sub = _this2.timebarService.events.onChange.subscribe(function (type) {
                if (type == "TIME_CHANGED") {
                  _this2.setTime();

                  _this2.setSelectedColumns();

                  _this2.setDefaultColumnPref();

                  _this2.getTableData();

                  _this2.setFilterLabel();
                }
              });
            } catch (error) {}
          });
        }
      }, {
        key: "setDefaultColumnPref",
        value: function setDefaultColumnPref() {
          var _this3 = this;

          var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.script.getTablePrefs.endpoint;
          var payload = {
            userName: this.sessionService.session.cctx.u,
            tableNames: new Array("rbuPageAvgReport")
          };
          this.pageAvgReportService.getDefaultColumnPreference(path, payload).subscribe(function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              var data = state.data.data;
              var preferedCols = data != null ? state.data.data[0].defaultColumns : null; // this.globalSearchStr = data != null ? state.data.data[0].globalSearchKeyword : '';

              if (preferedCols != null) {
                _this3.cols.forEach(function (col) {
                  var field = col.field;

                  if (preferedCols.includes(field)) {
                    col.selected = true;
                  } else col.selected = false;
                });
              }

              _this3.selectedColumns = _this3.cols.filter(function (col) {
                return col.selected;
              });
            }
          }, function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              _this3.error = state.error;
              console.log("Error in getting default column configuration ", _this3.error);
            }
          });
        }
      }, {
        key: "setBreadcrumb",
        value: function setBreadcrumb(params) {
          this.breadcrumb.addNewBreadcrumb({
            label: 'Page Average Report',
            routerLink: '/rbu-report/average',
            queryParams: params
          });
        }
      }, {
        key: "setFilterLabel",
        value: function setFilterLabel() {
          this.filterLabel = '';

          if (!(this.queryParams.pageStartTime == -1 && this.queryParams.pageEndTime == -1)) {
            this.filterLabel = "Time Period: ".concat(this.pageAvgReportService.getFormattedTime(this.queryParams.pageStartTime), " to ").concat(this.pageAvgReportService.getFormattedTime(this.queryParams.pageEndTime));
          }
        }
      }, {
        key: "setSelectedColumns",
        value: function setSelectedColumns() {
          this.selectedColumns = this.cols.filter(function (col) {
            return col.selected;
          });
        }
      }, {
        key: "getTableData",
        value: function getTableData() {
          var _this4 = this;

          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.haravgdetail.endpoint;
          var params = {
            testRun: this.queryParams.testRun,
            startTime: this.queryParams.pageStartTime,
            endTime: this.queryParams.pageEndTime,
            pageName: this.queryParams.pageName,
            vectorName: this.queryParams.vectorName,
            hmMetaData: this.queryParams.hmMetaData,
            productKey: this.queryParams.productKey,
            limit: '' + this.limit,
            offset: '' + this.offset,
            count: 'false'
          };
          var options = {
            params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]({
              fromObject: params
            })
          };
          this.pageAvgReportService.get(url, options).subscribe(function (state) {
            var _a, _b, _c;

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingState"]) {
              _this4.loading = state.loading;
              _this4.error = state.error;
              _this4.tableData = (_a = state.data) !== null && _a !== void 0 ? _a : [];
              _this4.tableDatafull = (_b = state.data) !== null && _b !== void 0 ? _b : [];
            }

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              _this4.loading = state.loading;
              _this4.error = state.error;
              _this4.tableData = (_c = state.data) !== null && _c !== void 0 ? _c : []; // set unique id for each row

              _this4.tableData.forEach(function (row, index) {
                return row.ROW_NUM = index;
              });

              _this4.tableDatafull = _this4.tableData;

              _this4.getEnvName();

              if (_this4.pagination == false) {
                _this4.first = {
                  first: 0
                };

                if (_this4.tableData.length > 0) {
                  _this4.getTableDataCount();
                } else {
                  _this4.totalRecords = 0;
                  _this4.totaRecordFromServer = 0;
                }
              } // if (this.paginationEvent) {
              //   this.customSort(this.paginationEvent);
              // }
              // if(this.tableData && this.tableData.length != 0){
              //   if(this.globalSearchStr != "")
              //   {
              //     this.tableRef.filterGlobal(this.globalSearchStr, 'contains');
              //   }
              //   else
              //     this.globalSearchStr = "";
              // }


              if (_this4.paginationEvent) setTimeout(function () {
                _this4.first = {
                  first: _this4.paginationEvent.first
                };
              }, 0);
            }
          }, function (state) {
            var _a, _b;

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              _this4.loading = state.loading;
              _this4.error = state.error;
              _this4.tableData = (_a = state.data) !== null && _a !== void 0 ? _a : [];
              _this4.tableDatafull = (_b = state.data) !== null && _b !== void 0 ? _b : [];
            }
          });
        }
      }, {
        key: "customSort",
        value: function customSort(event) {
          if (!event) {
            return;
          }

          this.changeSort(event);
        }
      }, {
        key: "changeSort",
        value: function changeSort(event) {
          var _this5 = this;

          console.log("changeSort : ", event);
          this.sclick = event.sortOrder;
          this.iclick = event.sortOrder;

          if (event.sortField) {
            this.sortField = event.sortField;

            if (this.sclick == -1) {
              this.sclick = 1; //this.tableData.sort((a, b) => a[this.sortField].localeCompare(b[this.sortField]));

              if (this.sortField == 'strPageName' || this.sortField == 'strHostName' || this.sortField == 'groupName' || this.sortField == 'browserName') this.tableData.sort(function (a, b) {
                return a[_this5.sortField].localeCompare(b[_this5.sortField]);
              });else this.tableData.sort(function (a, b) {
                return parseFloat(a[_this5.sortField]) - parseFloat(b[_this5.sortField]);
              });
            } else {
              this.sclick = -1;
              if (this.sortField == 'strPageName' || this.sortField == 'strHostName' || this.sortField == 'groupName' || this.sortField == 'browserName') this.tableData.sort(function (a, b) {
                return b[_this5.sortField].localeCompare(a[_this5.sortField]);
              });else this.tableData.sort(function (a, b) {
                return parseFloat(b[_this5.sortField]) - parseFloat(a[_this5.sortField]);
              });
            }

            this.tableData = _toConsumableArray(this.tableData);
          }
        }
      }, {
        key: "filterGlobal",
        value: function filterGlobal(session, event) {
          var _this6 = this;

          if (this.tableDatafull) {
            var groupDataTemp = this.tableDatafull.filter(function (row) {
              return _this6.filterColl(row, event.target.value);
            });
            this.tableData = _toConsumableArray(groupDataTemp);
            if (event.target.value == null || event.target.value == '') this.totalRecords = this.totaRecordFromServer; // when resetting the globar filter, we need total records fetched from the server.
            else this.totalRecords = this.tableData.length;
          }
        }
      }, {
        key: "filterColl",
        value: function filterColl(row, val) {
          val = val.toLowerCase();
          var isInFilter = false;
          var noFilter = false;
          if (val == "") noFilter = true;
          var f = Object.keys(row);
          var fieldValue = "";
          f.forEach(function (field) {
            fieldValue = row[field].toString().toLowerCase();
            fieldValue = fieldValue.toString().toLowerCase();
            if (fieldValue.indexOf(val) > -1) isInFilter = true;
          });

          if (noFilter) {
            isInFilter = true;
          }

          return isInFilter;
        }
      }, {
        key: "getTableDataCount",
        value: function getTableDataCount() {
          var _this7 = this;

          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.haravgdetail.endpoint;
          var params = {
            testRun: this.queryParams.testRun,
            startTime: this.queryParams.pageStartTime,
            endTime: this.queryParams.pageEndTime,
            pageName: this.queryParams.pageName,
            vectorName: this.queryParams.vectorName,
            hmMetaData: this.queryParams.hmMetaData,
            productKey: this.queryParams.productKey,
            limit: '-1',
            offset: '-1',
            count: 'true'
          };
          var options = {
            params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]({
              fromObject: params
            })
          };
          this.pageAvgReportService.get(url, options).subscribe(function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingState"]) {
              _this7.countLoading = state.loading;
              _this7.error = state.error; //this.tableData = state.data ?? [];
            }

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              _this7.countLoading = state.loading;
              _this7.error = state.error;
              var data = state.data; //this.totalRecords = data.length;

              if (state.data) {
                if (state.data.length > 0) {
                  _this7.totaRecordFromServer = _this7.totalRecords = state.data[0]["Total Count"];
                }
              }
            }
          }, function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              _this7.countLoading = state.loading;
              _this7.error = state.error; //this.tableData = state.data ?? [];
            }
          });
        }
      }, {
        key: "loadPagination",
        value: function loadPagination(event) {
          console.log('loadPagination called, event - ', event);

          if (!this.totalRecords) {
            return;
          }

          this.loading = true;

          if (Object.keys(event.filters).length == 0) {
            this.updateOffset(event.first, event.rows);
            this.paginationEvent = event;
            return;
          }
        }
      }, {
        key: "updateOffset",
        value: function updateOffset(offset, limit) {
          console.log("offset : ", offset, " limit : ", limit, " this.totalRecords:", this.totalRecords); //this.sessionrecordCount = false;

          this.pagination = true; // set limit as per remaining counts.

          this.limit = this.totalRecords - offset > limit ? limit : this.totalRecords - offset; //this.sessionsOffset = offset / limit;

          this.offset = offset; // (index) * parseInt(ParseSessionFilters.sessionFilters.limit+"");

          this.getTableData();
        }
      }, {
        key: "getEnvName",
        value: function getEnvName() {
          var _this8 = this;

          this.tableData.forEach(function (data) {
            if (_this8.queryParams.envName === 'NA') {
              _this8.queryParams.envName = data.envName;
              return;
            }
          });
        }
      }, {
        key: "exportData",
        value: function exportData(type) {
          var _this9 = this;

          var url = "".concat(src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.haravgreportdownload.endpoint, "?productKey=").concat(this.queryParams.productKey);
          var data = {
            startTime: this.queryParams.pageStartTime,
            endTime: this.queryParams.pageEndTime,
            pageName: this.queryParams.pageName,
            strTitle: this.queryParams.strTitle,
            runPhase: this.queryParams.runPhase,
            sesLoginName: this.queryParams.sesLoginName,
            strOperValue: type,
            osName: this.queryParams.userAgent,
            startTimeTR: this.queryParams.startTime,
            strRptTitle: this.queryParams.strRptTitle,
            strSessionId: this.queryParams.strSessionId == undefined ? "undefined" : this.queryParams.strSessionId,
            strSrcFileName: this.queryParams.strSrcFileName,
            reportHeading: "Page Average Report",
            envName: this.queryParams.envName,
            testRun: this.queryParams.testRun,
            vectorName: this.queryParams.vectorName,
            hmMetaData: this.queryParams.hmMetaData
          };
          this.pageAvgReportService.markMeasure = data;
          this.pageAvgReportService.post(url, data, {
            responseType: 'text'
          }).subscribe(function (response) {
            if (typeof response === 'string') {
              // Handle plain text response here
              var path = _this9.nvsmUtility.correctMultiDCPath("/common/".concat(response));

              window.open("".concat(path, "#page=1&zoom=85"), '_blank');
            } else if (response instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              // Handle JSON response (if you were expecting a JSON object)
              var _path = _this9.nvsmUtility.correctMultiDCPath("/common/".concat(response.data));

              window.open("".concat(_path, "#page=1&zoom=85"), '_blank');
            } else if (response instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              console.log("Error State = >", response);
            }
          }, function (err) {
            console.log("Error State = >", err);
          });
        }
      }, {
        key: "back",
        value: function back() {
          this.location.back();
        }
      }, {
        key: "viewPageDetailReport",
        value: function viewPageDetailReport() {
          var data = JSON.parse(JSON.stringify(this.queryParams));
          data.pageIndex = this.selectedRow.pageIndex;
          this.pageAvgReportService.markMeasure = data;
          this.router.navigate(['/rbu-report/detailed'], {
            queryParams: {
              testRun: data.testRun,
              pageIndex: this.selectedRow.pageIndex,
              pageName: encodeURI(this.selectedRow.strPageName),
              hostName: this.selectedRow.strHostName,
              pageStartTime: data.pageStartTime,
              pageEndTime: data.pageEndTime,
              vectorName: data.vectorName,
              hmMetaData: data.hmMetaData,
              screenSize: this.selectedRow.strScreenSize,
              group: this.selectedRow.groupName,
              prodType: data.productType,
              startTimeTR: this.queryParams.startTime
            }
          });
        }
      }, {
        key: "viewRequestDetail",
        value: function viewRequestDetail() {
          this.router.navigate(['/request-detail'], {
            queryParams: {
              ByteReceived: this.selectedRow.strAverageByteRec,
              ByteSend: this.selectedRow.strAverageByteSent,
              DOMContentLoadedTime: this.selectedRow.strAverageDOM,
              PageLoadTime: this.selectedRow.strAveragePageLoad,
              Request: this.selectedRow.strAverageReq,
              onload: this.selectedRow.strAverageOnload,
              pageName: encodeURI(this.selectedRow.strPageName),
              productKey: this.sessionService.session.cctx.pk,
              requestType: '0',
              sourceHostName: this.selectedRow.strHostName,
              sourcePageName: encodeURI(this.selectedRow.strPageName),
              testRun: this.queryParams.testRun
            },
            replaceUrl: true
          });
        }
      }, {
        key: "viewAggregateWaterfall",
        value: function viewAggregateWaterfall() {
          var _this0 = this;

          // get HAR filename
          var requests = Number(this.selectedRow.strAverageReq);

          if (requests == -1) {
            this.confirmationService.confirm({
              message: '<i class = "icons8 icons8-info mr-5 font-13"></i>There are no resources requested in this step/page. This can occur in steps where no data is fetched from the server, such as when a user inputs their username into a text field.',
              header: 'View Waterfall',
              accept: function accept() {},
              reject: function reject() {}
            });
            return;
          }

          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.harfileslistforaggregate.endpoint;
          var options = {
            params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]({
              fromObject: {
                testRun: this.queryParams.testRun,
                pageIndex: this.selectedRow.pageIndex,
                pageName: encodeURI(this.selectedRow.strPageName),
                hostName: this.selectedRow.strHostName,
                startTime: this.queryParams.pageStartTime,
                endTime: this.queryParams.pageEndTime,
                vectorName: this.queryParams.vectorName,
                hmMetaData: this.queryParams.hmMetaData,
                screenSize: this.selectedRow.strScreenSize,
                productKey: this.queryParams.productKey
              }
            }),
            responseType: 'text'
          };
          this.pageAvgReportService.get(url, options).subscribe(function (state) {
            _this0.busy = state.loading;

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              var HARFileName = state.data;
              var encodedHarFileList = "";

              var _iterator = _createForOfIteratorHelper(HARFileName.split(",")),
                  _step;

              try {
                for (_iterator.s(); !(_step = _iterator.n()).done;) {
                  var harFile = _step.value;
                  encodedHarFileList += encodeURIComponent(harFile) + ",";
                }
              } catch (err) {
                _iterator.e(err);
              } finally {
                _iterator.f();
              }

              encodedHarFileList = encodedHarFileList.substring(0, encodedHarFileList.length - 1); // check if HAR File is present

              url = "".concat(src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.isharfilesStauslistforaggregate.endpoint, "?productKey=").concat(_this0.queryParams.productKey);
              var payload = {
                harfilesList: encodedHarFileList,
                testRun: _this0.queryParams.testRun
              };

              _this0.pageAvgReportService.post(url, payload).subscribe(function (state) {
                _this0.busy = state.loading;

                if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
                  // const HARFiles = [];
                  // // tslint:disable-next-line: forin
                  // for (const key in state.data) {
                  //   if (state.data[key] === true) {
                  //     HARFiles.push(key);
                  //   }
                  // }
                  // if (!HARFiles.length) {
                  //   this.messageService.add({ key: this.key, severity: 'error', summary: 'Error', detail: 'All HAR files have been removed.' });
                  //   return;
                  // }
                  // url = `/harviewer/index.html?inputUrl=/logs/TR${this.queryParams.testRun}/reports/harp_csv/aggregateHar.har`;
                  // window.open(url, '_blank', 'aggreagetedForPage');
                  var flag = true;
                  var res1 = state.data;
                  var harFiles = "";

                  for (var key in res1) {
                    if (res1.hasOwnProperty(key)) {
                      if (res1[key] == false) {
                        flag = false;
                      } else {
                        if (harFiles == "") harFiles = key;else harFiles = harFiles + "," + key;
                      }
                    }
                  }

                  if (harFiles === '') {
                    _this0.messageService.add({
                      key: _this0.key,
                      severity: 'error',
                      summary: 'Error',
                      detail: 'All HAR files have been removed.'
                    });

                    return;
                  }

                  if (flag === false) {
                    _this0.messageService.add({
                      key: _this0.key,
                      severity: 'warn',
                      summary: 'Alert',
                      detail: 'Some Har Files have been removed from the backend'
                    });
                  }

                  _this0.webPerfRest.initateHarFilesForWaterFall(_this0.queryParams.testRun, encodeURI(_this0.selectedRow.strPageName), {
                    harfilesList: harFiles
                  }, "aggregatedPageNew").subscribe(function () {
                    var url = _this0.nvsmUtility.correctMultiDCPath("/harviewer/index.html?inputUrl=/logs/TR".concat(_this0.queryParams.testRun, "/reports/harp_csv/aggregateHar.har"));

                    window.open(url, '_blank');
                  }, function (err) {
                    console.log(err);
                  });
                }
              }, function (state) {
                _this0.busy = state.loading;

                _this0.messageService.add({
                  key: _this0.key,
                  severity: 'error',
                  summary: 'Error',
                  detail: 'Failed to verify the HAR files'
                });
              });
            }
          }, function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              _this0.busy = state.loading;

              _this0.messageService.add({
                key: _this0.key,
                severity: 'error',
                summary: 'Error',
                detail: 'Failed to get the HAR file name'
              });
            }
          });
        }
      }, {
        key: "downloadHARFile",
        value: function downloadHARFile() {
          var _this1 = this;

          var row = this.selectedRow;
          var url = src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.harfileslistforaggregate.endpoint;
          var options = {
            params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]({
              fromObject: {
                testRun: this.queryParams.testRun,
                pageIndex: row.pageIndex,
                pageName: encodeURI(row.strPageName),
                hostName: row.strHostName,
                startTime: this.queryParams.pageStartTime,
                endTime: this.queryParams.pageEndTime,
                vectorName: this.queryParams.vectorName,
                hmMetaData: this.queryParams.hmMetaData,
                screenSize: row.strScreenSize,
                productKey: this.queryParams.productKey
              }
            }),
            responseType: 'text'
          };
          var fileName = "Aggregated_" + encodeURI(row.strPageName) + "_" + row.strHostName + ".har";
          this.cavProgressService.showProgress(fileName); //Open download progress bar

          this.pageAvgReportService.get(url, options).subscribe(function (state) {
            _this1.busy = state.loading;

            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
              var harFileList = state.data;
              var encodedHarFileList = "";

              var _iterator2 = _createForOfIteratorHelper(harFileList.split(",")),
                  _step2;

              try {
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                  var harFile = _step2.value;
                  encodedHarFileList += encodeURIComponent(harFile) + ",";
                }
              } catch (err) {
                _iterator2.e(err);
              } finally {
                _iterator2.f();
              }

              encodedHarFileList = encodedHarFileList.substring(0, encodedHarFileList.length - 1);

              var _url = "".concat(src_environments_environment__WEBPACK_IMPORTED_MODULE_10__["environment"].api.detailedReport.isharfilesStauslistforaggregate.endpoint, "?productKey=").concat(_this1.queryParams.productKey);

              var payload = {
                harfilesList: encodedHarFileList,
                testRun: _this1.queryParams.testRun
              };

              _this1.pageAvgReportService.post(_url, payload).subscribe(function (state) {
                _this1.busy = state.loading;
                var arrHarfileList = [];

                if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadedState"]) {
                  // for (const key in state.data) {
                  //     if (state.data[key] === false) {
                  //       this.messageService.add({ key: this.key, severity: 'error', summary: 'Error', detail: 'The file cannot be downloaded as it has been removed' });
                  //       return;
                  //     }
                  // }
                  // const fileName = `Aggregated_${encodeURI(row.strPageName)}_${row.strHostName}.har`;
                  // const path = `/logs/TR${this.queryParams.testRun}/reports/harp_csv/aggregateHar_1.har`;
                  // import('file-saver').then(FileSaver => {
                  //   FileSaver.saveAs(path, fileName);
                  // });
                  var res1 = state.data;
                  var flag = true;
                  var harFiles = "";

                  for (var key in res1) {
                    if (res1.hasOwnProperty(key)) {
                      if (res1[key] == false) {
                        flag = false;
                      } else {
                        if (harFiles == "") harFiles = key;else harFiles = harFiles + "," + key;
                      }
                    }
                  }

                  if (harFiles == "") {
                    _this1.messageService.add({
                      key: _this1.key,
                      severity: 'error',
                      summary: 'Error',
                      detail: 'The file cannot be downloaded as it has been removed'
                    });

                    return;
                  }

                  if (flag == false) {
                    _this1.messageService.add({
                      key: _this1.key,
                      severity: 'warn',
                      summary: 'Alert',
                      detail: 'Some Har Files have been removed from the backend'
                    });
                  }

                  arrHarfileList.push(harFiles); //set harfile list for particular page

                  _this1.webPerfRest.initateHarFilesForDownload(_this1.queryParams.testRun, encodeURI(row.strPageName), {
                    arrHarfileList: arrHarfileList.join("####")
                  }, "aggregatedPageCompareNew").subscribe(function (res2) {
                    var path = _this1.nvsmUtility.correctMultiDCPath("/logs/TR" + _this1.queryParams.testRun.toString() + "/reports/harp_csv/" + "aggregateHar_1.har");

                    var fileName = "Aggregated_" + encodeURI(row.strPageName) + "_" + row.strHostName + ".har";

                    _this1.cavDownloadService.downloadFileWithProgress(path, fileName); // going to download
                    // import('file-saver').then(FileSaver => {
                    //   FileSaver.saveAs(path, fileName);
                    // });

                  }, function (err) {
                    console.log(err); //this.blockUI.stop();
                  }, function () {//this.blockUI.stop();
                  });
                }
              }, function (state) {
                if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
                  _this1.busy = state.loading;

                  _this1.messageService.add({
                    key: _this1.key,
                    severity: 'error',
                    summary: 'Error',
                    detail: 'Failed to verify the HAR files'
                  });
                }
              });
            }
          }, function (state) {
            if (state instanceof _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["DetailedReportLoadingErrorState"]) {
              console.log('Error --- ', state.error);
              _this1.busy = state.loading;

              _this1.messageService.add({
                key: _this1.key,
                severity: 'error',
                summary: 'Error',
                detail: 'Failed to get the HAR file Name'
              });
            }
          });
        }
        /*using for download the Har Report*/

      }, {
        key: "downloadURI",
        value: function downloadURI(uri, name) {
          var link = document.createElement("a");
          link.download = name;
          link.href = uri; //link.click();
          // Because firefox not executing the .click()
          // Hence, We need to create mouse event initialization.

          var clickEvent = document.createEvent("MouseEvent");
          clickEvent.initEvent("click", true, true);
          link.dispatchEvent(clickEvent);
        }
      }, {
        key: "setTime",
        value: function setTime() {
          var timebarValue = this.timebarService.getValue();
          var startTime = timebarValue.time.frameStart.value;
          var endTime = timebarValue.time.frameEnd.value;
          var offset = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](new Date(startTime), sessionStorage.getItem('_nvtimezone')).format('Z');
          var formattedST = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](new Date(startTime), sessionStorage.getItem('_nvtimezone')).format('MM/DD/YYYY HH:mm:ss');
          var dateObj = new Date(formattedST + offset);
          this.queryParams.pageStartTime = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](dateObj, 'UTC').format('x');
          var offsett = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](new Date(endTime), sessionStorage.getItem('_nvtimezone')).format('Z');
          var formattedET = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](new Date(endTime), sessionStorage.getItem('_nvtimezone')).format('MM/DD/YYYY HH:mm:ss');
          var dateObjj = new Date(formattedET + offsett);
          this.queryParams.pageEndTime = moment__WEBPACK_IMPORTED_MODULE_5__["tz"](dateObjj, 'UTC').format('x'); //console.log(" this.queryParams.pageStartTime ",  this.queryParams.pageStartTime);
          //console.log(" this.queryParams.pageEndTime ",  this.queryParams.pageEndTime);
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          if (this.sub) {
            this.sub.unsubscribe();
          }
        }
      }, {
        key: "toggleMenu",
        value: function toggleMenu(e, menu, row) {
          this.selectedRow = row;
          menu.toggle(e);
        }
      }, {
        key: "initTimeBar",
        value: function initTimeBar() {
          var me = this;

          try {
            var timebarValueInput = me.timebarService.makeTimeBarValueInput(me.timebarService.getValue());
            me.timebarService.prepareValue(timebarValueInput, me.timebarService.getValue()).subscribe(function (value) {
              setTimeout(function () {
                value.viewBy.previous = null;
                me.timebarService.isTimeChangedFromGlobal = false;
                me.timebarService.setValue(value, true);
                me.timebarService.updateTimeBar();
              });
            });
          } catch (e) {}
        }
      }, {
        key: "compare",
        value: function compare() {
          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
            var _this10 = this;

            var arrHarfileList, harPageName, harFlag, _iterator3, _step3, _loop, count, arrPageName, i, _t2;

            return _regenerator().w(function (_context2) {
              while (1) switch (_context2.p = _context2.n) {
                case 0:
                  if (!(this.selectedRowByCheckbox.length != 2)) {
                    _context2.n = 1;
                    break;
                  }

                  this.messageService.add({
                    key: this.key,
                    severity: 'warn',
                    summary: 'Alert',
                    detail: 'Please select two rows to compare.'
                  });
                  return _context2.a(2);

                case 1:
                  this.comparing = true;
                  arrHarfileList = [];
                  harPageName = "";
                  harFlag = true;
                  _iterator3 = _createForOfIteratorHelper(this.selectedRowByCheckbox);
                  _context2.p = 2;
                  _loop = /*#__PURE__*/_regenerator().m(function _loop() {
                    var row, data, data2, harFiles, key;
                    return _regenerator().w(function (_context) {
                      while (1) switch (_context.n) {
                        case 0:
                          row = _step3.value;
                          if (harPageName == "") harPageName = row.strPageName + " - " + row.strHostName;else harPageName = harPageName + "####" + row.strPageName + " - " + row.strHostName;
                          _context.n = 1;
                          return _this10.harFileListForAggr(row).then(function (res) {
                            data = res;
                          })["catch"](function (err) {
                            _this10.messageService.add({
                              key: _this10.key,
                              severity: 'error',
                              summary: 'Error',
                              detail: 'Error in comparing selected rows.'
                            });

                            console.log(err);
                          });

                        case 1:
                          _context.n = 2;
                          return _this10.isHarFileStatusForAggr(data).then(function (res) {
                            data2 = res;
                          })["catch"](function (err) {
                            _this10.messageService.add({
                              key: _this10.key,
                              severity: 'error',
                              summary: 'Error',
                              detail: 'Error in comparing selected rows.'
                            });

                            console.log(err);
                          });

                        case 2:
                          harFiles = "";

                          for (key in data2) {
                            if (data2.hasOwnProperty(key)) {
                              if (data2[key] == false) {
                                harFlag = false;
                              } else {
                                if (harFiles == "") harFiles = key;else harFiles = harFiles + "," + key;
                              }
                            }
                          }

                          arrHarfileList.push(harFiles); //set harfile list for particular page

                        case 3:
                          return _context.a(2);
                      }
                    }, _loop);
                  });

                  _iterator3.s();

                case 3:
                  if ((_step3 = _iterator3.n()).done) {
                    _context2.n = 5;
                    break;
                  }

                  return _context2.d(_regeneratorValues(_loop()), 4);

                case 4:
                  _context2.n = 3;
                  break;

                case 5:
                  _context2.n = 7;
                  break;

                case 6:
                  _context2.p = 6;
                  _t2 = _context2.v;

                  _iterator3.e(_t2);

                case 7:
                  _context2.p = 7;

                  _iterator3.f();

                  return _context2.f(7);

                case 8:
                  count = -1;
                  arrPageName = harPageName.split("####");

                  for (i = 0; i < arrHarfileList.length; i++) {
                    if (arrHarfileList[i] == "") count++;
                  }

                  if (!(count == 0)) {
                    _context2.n = 9;
                    break;
                  }

                  this.messageService.add({
                    key: this.key,
                    severity: 'error',
                    summary: 'Error',
                    detail: 'HAR files have been removed for the selected pages. Comparison cannot be done.'
                  });
                  this.comparing = false;
                  return _context2.a(2);

                case 9:
                  if (!(count == 1)) {
                    _context2.n = 10;
                    break;
                  }

                  this.messageService.add({
                    key: this.key,
                    severity: 'error',
                    summary: 'Error',
                    detail: 'HAR files have been removed for the selected pages. Comparison cannot be done.'
                  });
                  this.comparing = false;
                  return _context2.a(2);

                case 10:
                  if (!harFlag) this.messageService.add({
                    key: this.key,
                    severity: 'warn',
                    summary: 'Alert',
                    detail: 'Some Har Files have been removed from the backend'
                  }); //this.blockUI.start();

                  this.webPerfRest.initateHarFilesForDownload(this.testRunNumber, "", {
                    arrHarfileList: arrHarfileList.join("####")
                  }, "aggregatedPageCompareNew").subscribe(function (res2) {
                    //this.blockUI.stop();
                    _this10.comparing = false;
                    var aggragateUrl = '';
                    var selectedHarFiles = arrHarfileList;

                    for (var _i = 0; _i < selectedHarFiles.length; _i++) {
                      if (_i != selectedHarFiles.length - 1) {
                        aggragateUrl += "inputUrl=/logs/TR" + _this10.testRunNumber.toString() + "/reports/harp_csv/" + "aggregateHar_" + (_i + 1) + ".har" + "&";
                      } else {
                        aggragateUrl += "inputUrl=/logs/TR" + _this10.testRunNumber.toString() + "/reports/harp_csv/" + "aggregateHar_" + (_i + 1) + ".har";
                      }
                    }

                    var url = _this10.nvsmUtility.correctMultiDCPath("/harviewer/harDiff.html?expand=true&diff=true&prod=" + "" + "&");

                    url += aggragateUrl;
                    console.log("compare url :", url); // this.cavNewBrowTabService.openProdUINewBrowTabNSPortal("aggreageted", url);

                    window.open(url, '_blank');
                  }, function (err) {
                    console.log(err);
                    _this10.comparing = false; //this.blockUI.stop();
                  });

                case 11:
                  return _context2.a(2);
              }
            }, _callee, this, [[2, 6, 7, 8]]);
          }));
        }
      }, {
        key: "harFileListForAggr",
        value: function harFileListForAggr(rowData) {
          var _this11 = this;

          return new Promise(function (onFullfill, onReject) {
            _this11.webPerfRest.getHarFileListForAggr(_this11.testRunNumber, rowData.pageIndex, rowData.strPageName, rowData.strHostName, _this11.queryParams.pageStartTime, _this11.queryParams.pageEndTime).subscribe(function (res) {
              onFullfill(res);
            }, function (err) {
              console.log(err); //this.blockUI.stop();

              onReject();
            }, function () {//this.blockUI.stop();
            });
          });
        }
      }, {
        key: "isHarFileStatusForAggr",
        value: function isHarFileStatusForAggr(data) {
          var _this12 = this;

          return new Promise(function (onFullfill, onReject) {
            var obj = {
              "harfilesList": data,
              "testRun": _this12.testRunNumber.toString()
            };

            _this12.webPerfRest.isHarFileStatusForAggr(obj).subscribe(function (res) {
              onFullfill(res);
            }, function (err) {
              console.log(err); //this.blockUI.stop();

              onReject();
            }, function () {//this.blockUI.stop();
            });
          });
        }
      }, {
        key: "menuClick",
        value: function menuClick(rowData, menuType) {
          this.selectedRow = rowData;

          switch (menuType) {
            case 'additionalInfo':
              this.viewAdditionalInfo();
              break;

            case 'detailReport':
              this.viewPageDetailReport();
              break;

            case 'viewWaterfall':
              this.viewAggregateWaterfall();
              break;

            case 'downloadWaterfall':
              this.downloadHARFile();
              break;

            default:
              break;
          }
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;

          var me = this;
          this.selectedRow = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.row;

          if (((_c = (_b = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _b === void 0 ? void 0 : _b.actionConfig) === null || _c === void 0 ? void 0 : _c.action) === "viewMoreInfo") {
            this.viewAdditionalInfo();
          } else if (((_e = (_d = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _d === void 0 ? void 0 : _d.actionConfig) === null || _e === void 0 ? void 0 : _e.action) === "detailReport") {
            this.viewPageDetailReport();
          } else if (((_g = (_f = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _f === void 0 ? void 0 : _f.actionConfig) === null || _g === void 0 ? void 0 : _g.action) === "viewWaterfall") {
            this.viewAggregateWaterfall();
          } else if (((_j = (_h = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _h === void 0 ? void 0 : _h.actionConfig) === null || _j === void 0 ? void 0 : _j.action) === "downloadWaterfall") {
            this.downloadHARFile();
          } else if (((_l = (_k = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _k === void 0 ? void 0 : _k.actionConfig) === null || _l === void 0 ? void 0 : _l.action) == "rowCheckboxEnable" || ((_o = (_m = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _m === void 0 ? void 0 : _m.actionConfig) === null || _o === void 0 ? void 0 : _o.action) == "rowCheckboxDisable") {
            this.selectedRowByCheckbox = (_p = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _p === void 0 ? void 0 : _p.rowData;
          } else if (((_r = (_q = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _q === void 0 ? void 0 : _q.actionConfig) === null || _r === void 0 ? void 0 : _r.action) === "clickable") {
            this.viewPageDetailReport();
          } else if (((_t = (_s = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _s === void 0 ? void 0 : _s.actionConfig) === null || _t === void 0 ? void 0 : _t.action) === "export") {
            this.exportMenu.toggle(event);
          } else if (((_v = (_u = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _u === void 0 ? void 0 : _u.actionConfig) === null || _v === void 0 ? void 0 : _v.action) === "compare") {
            this.compare();
          }
        }
      }]);
    }();

    PageAverageReportComponent.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_8__["SessionService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
      }, {
        type: src_app_core_breadcrumb_breadcrumb_service__WEBPACK_IMPORTED_MODULE_7__["BreadcrumbService"]
      }, {
        type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["Location"]
      }, {
        type: _service_page_average_report_service__WEBPACK_IMPORTED_MODULE_13__["PageAverageReportService"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_16__["CavMessageService"]
      }, {
        type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_9__["TimebarService"]
      }, {
        type: _web_performance_report_web_vital_report_service_web_perf_report_rest_service__WEBPACK_IMPORTED_MODULE_11__["WebPerfReportRestService"]
      }, {
        type: _synthetic_monitor_services_nvsm_utility_service__WEBPACK_IMPORTED_MODULE_14__["NVSMUtility"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_6__["ConfirmationService"]
      }, {
        type: src_app_shared_cav_progress_service_cav_progress_service__WEBPACK_IMPORTED_MODULE_18__["CavProgressService"]
      }, {
        type: src_app_shared_cav_progress_service_cav_download_service__WEBPACK_IMPORTED_MODULE_17__["CavDownloadService"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "selectedColumns", null);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "cmt", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "starttime", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "endtime", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "pagename", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "vectorName", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])()], PageAverageReportComponent.prototype, "hmMetaData", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"])('exportMenu')], PageAverageReportComponent.prototype, "exportMenu", void 0);
    PageAverageReportComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
      selector: 'app-page-average-report',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./page-average-report.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./page-average-report.component.scss */
      "./src/app/pages/home/home-nsm/page-average-report/page-average-report.component.scss"))["default"]]
    })], PageAverageReportComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/home-nsm/page-average-report/page-average-report.module.ts":
  /*!***************************************************************************************!*\
    !*** ./src/app/pages/home/home-nsm/page-average-report/page-average-report.module.ts ***!
    \***************************************************************************************/

  /*! exports provided: PageAverageReportModule */

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

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


    __webpack_require__.d(__webpack_exports__, "PageAverageReportModule", function () {
      return PageAverageReportModule;
    });
    /* 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 _page_average_report_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./page-average-report.component */
    "./src/app/pages/home/home-nsm/page-average-report/page-average-report.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 primeng_contextmenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/contextmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-contextmenu.js");
    /* harmony import */


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


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


    var _page_report_pipe_transformPipe_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ./page-report-pipe/transformPipe.module */
    "./src/app/pages/home/home-nsm/page-average-report/page-report-pipe/transformPipe.module.ts");
    /* harmony import */


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


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


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

    var routes = [{
      path: '',
      component: _page_average_report_component__WEBPACK_IMPORTED_MODULE_3__["PageAverageReportComponent"]
    }];

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

    PageAverageReportModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_page_average_report_component__WEBPACK_IMPORTED_MODULE_3__["PageAverageReportComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextModule"], src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_8__["HeaderModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ProgressSpinnerModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["BreadcrumbModule"], _page_report_pipe_transformPipe_module__WEBPACK_IMPORTED_MODULE_9__["TransformPageReportsPipeModule"], primeng_contextmenu__WEBPACK_IMPORTED_MODULE_6__["ContextMenuModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_10__["MatMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ConfirmDialogModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_12__["CavTableModule"], src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_11__["CavLoaderModule"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"].forChild(routes)],
      exports: [_angular_router__WEBPACK_IMPORTED_MODULE_4__["RouterModule"]]
    })], PageAverageReportModule);
    /***/
  },

  /***/
  "./src/app/pages/home/home-nsm/page-average-report/service/page-average-report.model.ts":
  /*!**********************************************************************************************!*\
    !*** ./src/app/pages/home/home-nsm/page-average-report/service/page-average-report.model.ts ***!
    \**********************************************************************************************/

  /*! exports provided: PAGE_AVERAGE_REPORT */

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

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


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

    var COLS = [{
      label: 'Page Name',
      field: 'strPageName',
      tooltip: 'Page Name',
      isSort: true,
      classes: 'text-left',
      selected: true
    }, {
      label: 'Host Name',
      field: 'strHostName',
      tooltip: 'Host Name',
      isSort: true,
      classes: 'text-left',
      selected: true
    }, {
      label: 'Group',
      field: 'groupName',
      tooltip: 'Group',
      isSort: true,
      classes: 'text-left',
      selected: true
    }, {
      label: 'Browser',
      field: 'browserName',
      tooltip: 'Browser Name',
      isSort: true,
      classes: 'text-left',
      selected: true
    }, {
      label: 'Screen Size',
      field: 'strScreenSize',
      tooltip: 'Screen Size',
      isSort: true,
      classes: 'text-left',
      selected: false
    }, {
      label: 'Session Count',
      field: 'strSessionCount',
      tooltip: 'Session Count',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '125px'
    }, {
      label: 'DOM Content Load (sec)',
      field: 'strAverageDOM',
      tooltip: 'Average DOM Content Load Time (sec)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'On Load (sec)',
      field: 'strAverageOnload',
      tooltip: 'Average Onload Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true
    }, {
      label: 'Page Load (sec)',
      field: 'strAveragePageLoad',
      tooltip: 'Average Page Load Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Time To Interact (sec)',
      field: 'strAverageTimeToInteract',
      tooltip: 'Average Time To Interact in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: false,
      width: '130px'
    }, {
      label: 'Start Render Time (sec)',
      field: 'averageStartRender',
      tooltip: 'Start Render Time (sec)',
      isSort: true,
      classes: 'text-right',
      selected: false,
      width: '130px'
    }, {
      label: 'Visually Complete Time',
      field: 'averageEndRender',
      tooltip: 'Visually Complete Time',
      isSort: true,
      classes: 'text-right',
      selected: false,
      width: '130px'
    }, {
      label: 'Requests',
      field: 'strAverageReq',
      tooltip: 'Average number of Http Requests excluding browser cache',
      isSort: true,
      classes: 'text-right',
      selected: true
    }, {
      label: 'Browser Cache',
      field: 'strBrowserAverageReq',
      tooltip: 'Average number of resources served by Browser Cache',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Bytes Received (KB)',
      field: 'strAverageByteRec',
      tooltip: 'Average Bytes Received(KB)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Bytes Sent (KB)',
      field: 'strAverageByteSent',
      tooltip: 'Average Bytes Sent(KB)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'First Paint (sec)',
      field: 'avgFirstPaint',
      tooltip: 'Average First Paint Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'First Contentful Paint (sec)',
      field: 'avgFirstContentfulPaint',
      tooltip: 'Average First Contentful Paint Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Largest Contentful Paint (sec)',
      field: 'avgLargestContentfulPaint',
      tooltip: 'Average Largest Contentful Paint Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Cumulative Layout Shift',
      field: 'avgCumLayoutShift',
      tooltip: 'Average Cumulative Layout Shift',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Total Blocking Time (sec)',
      field: 'avgTotalBlockingTime',
      tooltip: 'Average Total Blocking Time Time in sec(s)',
      isSort: true,
      classes: 'text-right',
      selected: true,
      width: '130px'
    }, {
      label: 'Speed Index',
      field: 'averageSpeedIndex',
      tooltip: 'Speed Index',
      isSort: true,
      classes: 'text-right',
      selected: false
    }, {
      label: 'Request Before On Load',
      field: 'avgReqBeforeOnLoad',
      tooltip: 'Request Before On Load',
      isSort: true,
      classes: 'text-right',
      width: '130px'
    }, {
      label: 'Backend Response Time',
      field: 'avgBackResTime',
      tooltip: 'Average Backend Response Time',
      isSort: true,
      classes: 'text-right',
      width: '130px'
    }, {
      label: 'DOM Element',
      field: 'avgDomElement',
      tooltip: 'DOM Element',
      isSort: true,
      classes: 'text-right',
      width: '125px'
    }, {
      label: 'Request Before DOM Content',
      field: 'avgReqBeforeDomContent',
      tooltip: 'Request Before DOM Content',
      isSort: true,
      classes: 'text-right',
      width: '130px'
    }, {
      label: 'Bytes Received before Dom Content',
      field: 'avgBytesReceivedBeforeDomContent',
      tooltip: 'Bytes Received before Dom Content',
      isSort: true,
      classes: 'text-right',
      width: '130px'
    }, {
      label: 'Bytes Received before On Load',
      field: 'avgBytesReceivedBeforeOnLoad',
      tooltip: 'Bytes Received before On Load',
      isSort: true,
      classes: 'text-right',
      width: '130px'
    }];
    var PAGE_AVERAGE_REPORT = {
      headers: [{
        cols: COLS
      }],
      data: [],
      paginator: {
        first: 0,
        rows: 15,
        rowsPerPageOptions: [15, 30, 50, 100]
      }
    };
    /***/
  }
}]);