(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["generated-reports-generated-reports-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/engine-health/engine-health.component.html":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/engine-health/engine-health.component.html ***!
  \**************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"metricsGraph\">\n    <div class=\"ui-table-caption ui-widget-header top-fixed\">\n        <div class=\"p-grid p-align-center height-32\">\n            <button pButton icon=\"pi pi-arrow-left\" class=\"btn-icon\" (click)=\"goBack()\"></button>\n        </div>\n    </div>\n    <ng-container *ngFor=\"let graph of metricNameAndChartDataArray\">\n        <app-tabular-graph-view [metricName]=\"graph[0]\" [chartOptions]=\"graph[1]\">\n        </app-tabular-graph-view>\n</ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"!metricsGraph\">\n    <div class=\"mb-8\">\n        <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\"\n            (colorCodeChange)=\"onChangeColorCode($event)\" [isCompare]=\"isCompare\">\n        </app-report-filter>\n    </div>\n    <div class=\"mb-8\">\n        <cav-table [value]=\"enginHealthData\" [headers]=\"engineHealthHeader\" [tableConfig]=\"engineHealthConfig\" [selection]=\"chartIdList\"\n            (clickButtonEvent)=\"handleEnginHealthClick($event)\" scrollable=\"true\"\n            scrollHeight=\"calc(100vh - 220px)\"></cav-table>\n    </div>\n    <p-dialog header=\"Comments\" [modal]=\"true\" [(visible)]=\"addComment\" [style]=\"{ width: '500px' }\">\n        <div class=\"p-grid\">\n            <div class=\"p-col-12\">\n                <textarea rows=\"10\" pInputTextarea [autoResize]=\"true\" class=\"w-100-p\" [(ngModel)]=\"commentText\"\n                    (ngModelChange)=\"onCommentChange($event)\" maxlength=\"300\">\n            </textarea>\n            </div>\n            <div class=\"p-col-12 text-right opc-70\">\n                Remaining: {{remainingChars}} of 300 characters\n            </div>\n        </div>\n        <p-footer>\n            <p-button type=\"button\" label=\"Cancel\" class=\"ui-button-secondary ui-button-rounded\"\n                (click)=\"onCancelComment()\"></p-button>\n            <p-button type=\"button\" [label]=\"isUpdateComment ? 'Update' : 'Save'\"\n                (click)=\"onSaveComment()\"></p-button>\n        </p-footer>\n    </p-dialog>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/errors/errors.component.html":
/*!************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/errors/errors.component.html ***!
  \************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container>\n    <div class=\"mb-8\">\n        <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\"\n            (colorCodeChange)=\"onChangeColorCode($event)\" [isCompare]=\"isCompare\">\n        </app-report-filter>\n    </div>\n    <div class=\"mb-8\">\n        <cav-table [value]=\"errorsData\" [headerRelativePath]=\"relativePath\" scrollable=\"true\"\n            scrollHeight=\"calc(100vh - 220px)\" [rowGrouping]=\"rowGroupBy\" expandedRowGrouping=\"true\"></cav-table>\n    </div>\n</ng-container>\n\n<div class=\"relative\" *ngIf=\"chartSeriesData.length == 0 && isChartEnabled && showLoader\" style=\"min-height: 350px;\">\n    <app-cav-loader></app-cav-loader>\n</div>\n\n<div *ngFor=\"let graph of chartSeriesData\" class=\"mb-8\">\n    <div class=\"border-all border-7 mb-12\">\n        <highcharts-chart [Highcharts]=\"highcharts\" [options]=\"graph\"\n            style=\"display: table;  margin: 0 auto;\">\n        </highcharts-chart>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/generated-reports.component.html":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/generated-reports.component.html ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"ns-scenarios\" [ngClass]=\"{'pageLock': isPdfDownloaded}\">\n    <div class=\"relative\">\n        <ng-container *ngIf=\"isLoading\">\n            <p-tabMenu [model]=\"navbarItems\" [activeItem]=\"activeItem\">\n                <ng-template pTemplate=\"item\" let-item>\n                    <span>{{ item.label }}</span>\n                    <i [class]=\"item.icon\" #iconRef (mouseover)=\"setHoverTarget(iconRef, item)\"></i>\n                </ng-template>\n            </p-tabMenu>\n        </ng-container>\n\n        <button  type=\"button\" pButton class=\"btn-icon help_position mt-3\"\n            icon=\"font-20 icons8 icons8-installing-updates\" matTooltip=\"Download Report\"\n            (click)=\"openDownloadReportPopup()\"></button>\n\n            <app-cav-overlay\n            [target]=\"hoverTarget\"\n            [width]=\"500\" [contentTemplate]=\"hoverContentTemplate\">\n            </app-cav-overlay>\n            \n\n\n    </div>\n    <div class=\"h-100vh-120 overflow p-8\" *ngIf=\"!showLoader\">\n        <span *ngIf=\"reportName && activeComponent === 'title'\" id=\"title-tab\">\n            <app-title></app-title>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'summary'\" id=\"summary-tab\">\n            <app-summary></app-summary>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'sessions'\" id=\"session-tab\">\n            <app-sessions></app-sessions>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'errors'\" id=\"errors-tab\">\n            <app-errors></app-errors>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'network'\" id=\"network-tab\">\n            <app-network></app-network>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'transaction'\" id=\"transaction-tab\">\n            <app-transaction-stats></app-transaction-stats>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'pages'\" id=\"pages-tab\">\n            <app-pages></app-pages>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'engine'\" id=\"engine-tab\">\n            <app-engine-health></app-engine-health>\n        </span>\n        <span *ngIf=\"reportName && activeComponent === 'tabular'\" id=\"tabular-tab\">\n            <app-tabular-view></app-tabular-view>\n        </span>\n\n\n        <span *ngIf=\"reportName && activeComponent === 'graph'\" id=\"graph-tab\">\n            <app-graph-view></app-graph-view>\n        </span>\n                    \n<span *ngIf=\"reportName && activeComponent === 'trend'\" id=\"trend-tab\">\n    <app-trend-report></app-trend-report>\n</span>\n\n</div>\n</div>\n<app-cav-loader *ngIf=\"isPdfDownloaded\" [label]=\"'Downloading Report. It may take few minutes...'\"></app-cav-loader>\n\n\n<ng-template #sessionsTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Session</h2>\n            <p>A session is an executed and completed test case. Each Session consists of one or more transactions. </p>\n            <p>Session Summary Includes session wise statistic within the particular test, sessions per sec, Errors,\n                runtime(ms), Runtime Percentiles (ms).</p>\n            <p>The Summary chart section comprises all data across sessions to allow for a quick overview on session\n                problems and performance.</p>\n            <p>In the following, all chart sections below visualize this information:</p>\n            <ul class=\"ul-styled\">\n                <li><strong>Overview:</strong> Sessions Response Time, 95th Percentile and Errors.</li>\n                <li><strong>Averages:</strong> Sessions Response Time, 95th Percentile and Errors.</li>\n                <li><strong>Count/s:</strong> number of completed Sessions per second</li>\n                <li><strong>Arrival Rate:</strong> Arrival rate per hour, 95th Percentile</li>\n                <li><strong>Concurrent Users:</strong> number of Active Users</li>\n            </ul>\n        </div>\n    </div>\n</ng-template>\n\n<ng-template #transactionsTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Transaction</h2>\n            <p>Transaction is part of a session and usually consists of one or more pages. When testing web\n                applications, an action resembles a page view.</p>\n            <p>The data shown here reflects the time spent on the execution routine of a transaction. Therefore, the\n                transaction's runtime includes the runtime of a page (an HTTP operation, for instance) and the time\n                required to prepare, send, wait for, and receive the data.</p>\n            <p>The error count defines the number of errors detected for a particular transaction such as timeouts or\n                connection resets.</p>\n            <p>The Summary chart section comprises all data across Transactions to allow for a quick overview on\n                transaction problems and performance. The tabs in this chart section contain single charts that refer to\n                one transaction.</p>\n            <p>In the following, all chart sections below visualize this information:</p>\n            <ul class=\"ul-styled\">\n                <li><strong>Overview:</strong> Transactions Response Time, 95th Percentile and Errors</li>\n                <li><strong>Averages:</strong> Transactions Response Time, 95th Percentile and Errors.</li>\n                <li><strong>Count/s:</strong> number of completed transactions per second <br> * numbers may be\n                    projected</li>\n            </ul>\n        </div>\n    </div>\n</ng-template>\n\n<ng-template #pagesTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Pages</h2>\n            <p>The Page section is the most important statistics section when testing web applications. It directly\n                reflects the loading time of pages or page components</p>\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Overview</h2>\n            <p>Each row in the Overview tab displays the data for one specific page. Its name is derived from the action\n                name.</p>\n            <p>The Errors column shows the total number of errors that occurred during the loading of a page (Total).\n            </p>\n            <p>The Runtime column shows the average, the minimum and maximum runtime encountered, and the standard\n                deviation of all data within that series. The Runtime Segmentation shows several runtime segments and\n                the number of pages within the segment's definition.</p>\n            <p>If the runtime of the test case is shorter than a displayed time period, for instance, if the test\n                runtime was 30 minutes and the time period is given in hours, then the numbers are a linear projection.\n                That means they show a possible outcome of a longer test run, assuming load and application behavior\n                remain the same.\n                The Runtime Segmentation column helps you evaluate SLA and test success definitions.</p>\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Bandwidth</h2>\n            <p>The Bandwidth tab shows the incoming and outgoing bandwidth per page.</p>\n            <p>The Bytes Sent column comprises all data sent out of the application including overhead such as HTTP(S)\n                headers and SSL protocol data. The Bytes Received column includes all received data and the connected\n                overhead. As the data is measured right above the socket level and before it gets decoded by the\n                application, any compressed traffic is measured as seen by the network layer. The data size you see is\n                not the expanded data as seen by the DOM parser.</p>\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Network Timing</h2>\n            <p>The Network Timing tab displays all low-level network timing data that has been measured on socket level.\n                Each measurement point includes the minimum and maximum times and the mean of all gathered data. The\n                following measurement points are shown:</p>\n            <ul class=\"ul-styled\">\n                <li><strong>Connect Time:</strong> Time needed to establish a connection to the other system.</li>\n                <li><strong>Send Time:</strong> Time needed to send the request to the other system.</li>\n                <li><strong>Server Busy Time:</strong> Time spent waiting from sending the last bytes to receiving the\n                    first bytes.</li>\n                <li><strong>Receive Time:</strong> Time spent receiving data from the first to the last bytes received.\n                </li>\n                <li><strong>Time to First Bytes:</strong> Total time from the connection start until the first bytes are\n                    received. Includes Connect, Send, Server Busy, and Receive Time.</li>\n                <li><strong>Time to Last Bytes:</strong> Total time from the connection start until the last bytes are\n                    received. This is the time needed to connect, send, and receive data.</li>\n            </ul>\n        </div>\n    </div>\n</ng-template>\n\n<ng-template #networkTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Network</h2>\n            <p>See below for data on the incoming and outgoing traffic during the test.</p>\n            <p>The data is captured right above the network layer, thus it comprises all traffic information including\n                potential overhead due to encryption as well as savings due to compression. Depending on the test\n                runtime, the numbers per hour and per day may be estimates based on a linear projection of the available\n                data.</p>\n        </div>\n    </div>\n</ng-template>\n<ng-template #errorsTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Errors</h2>\n            <p>This section lists all errors that occurred during the test. The data listed here helps you identify\n                application errors or test problems</p>\n            <p>Errors can occur on transaction, pages,url and session level. The Overall section below lists the overall\n                errors chart and tables with all errors on transaction, pages,url and session. The Details section\n                beneath lists the charts of full erros on transaction, pages,url and session level with there count and\n                percentage.</p>\n        </div>\n    </div>\n</ng-template>\n\n<ng-template #trendTpl>\n    <div class=\"helpBody\" style=\"height: auto;\">\n        <div class=\"content_body p-0\">\n            <h2 class=\"mt-0 mb-5 font-weight-500 blueHead\">Server Signature</h2>\n            <p>The Server Signature section displays detailed information about server responses and characteristics captured during test execution.\n                This includes server headers, response signatures, and server-specific metadata.</p>\n            <p>Use this data to analyze server behavior, identify configuration patterns, and track server response variations across test runs.</p>\n        </div>\n    </div>\n</ng-template>\n\n<p-dialog  [(visible)]=\"showDownloadpopUp\" [modal]=\"true\" [style]=\"{width: '400px'}\" [closable]=\"false\">  \n    <p-header>\n        <div class=\"p-grid p-align-center\">\n            <div class=\"p-col inline-flex\"><i class=\"las-cloud-download-alt-solid mr-4\"></i> Download Report</div>\n            <div class=\"p-col-fixed\">\n                <button pButton type=\"button\" class=\"btn-icon\" icon=\"pi pi-times\"\n                    (click)=\"showDownloadpopUp = false\" [disabled]=\"downLoadingReport\"></button>\n            </div>\n        </div>\n    </p-header>\n    <app-cav-loader *ngIf=\"downLoadingReport\" [label]=\"'Downloading Report...'\"></app-cav-loader>\n    <div class=\"p-grid p-nogutter8 p-align-center\">\n        <div class=\"p-col font-weight-600\">\n            Select Report Format\n        </div>\n        <div class=\"p-col-fixed\">\n            <div class=\"w-100-p inline-flex p-8 mb-12 p-dir-col rounded-4 border-all border-7 clickable\"\n                [class.bg-secondary-200]=\"selectedFormat === 'pdf'\" [class.d-bg-secondary-1200]=\"selectedFormat === 'pdf'\" (click)=\"selectedFormat = 'pdf'\">\n                <i class=\"icons8 icons8-pdf font-24\"></i>\n                <span class=\"my-12\">PDF Document</span>\n            </div>\n        </div>\n     <div class=\"p-col-fixed\">\n        <div class=\"w-100-p inline-flex p-8 mb-12 p-dir-col rounded-4 border-all border-7 clickable\"\n            [class.bg-secondary-200]=\"selectedFormat === 'word'\" \n            [class.d-bg-secondary-1200]=\"selectedFormat === 'word'\" (click)=\"selectedFormat = 'word'\">\n            <i class=\"las-file-word font-24\"></i>\n            <span class=\"my-12\">Word Document</span>\n        </div>\n</div>\n         <!-- <div class=\"p-col-12 text-uppercase font-weight-600 opc-60\">\n           Include in Report\n        </div> -->\n        <div class=\"p-col-6\">\n            <p-checkbox binary=\"true\" label=\"Include Graph In Report\"\n                [(ngModel)]=\"includeGraph\"></p-checkbox>\n        </div>\n        <!-- <div class=\"p-col-6\">\n            <p-checkbox binary=\"true\" label=\"Include Table\"\n                [(ngModel)]=\"includeData\"></p-checkbox>\n        </div> -->\n    </div>\n    <p-footer>\n        <button pButton type=\"button\" label=\"Cancel\" class=\"btn-secondary-outline mx-4 my-12\" [disabled]=\"downLoadingReport\" (click)=\"showDownloadpopUp = false\"></button>\n        <button pButton type=\"button\" class=\"ui-btn-primary mx-4 my-12\" label=\"Download Now\" [disabled]=\"downLoadingReport\" (click)=\"downloadReport(selectedFormat)\"></button>\n    </p-footer>\n</p-dialog>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/graph-view/graph-view.component.html":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/graph-view/graph-view.component.html ***!
  \********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n    <div *ngIf=\"imgPathList && imgPathList.length > 0; else noImages\">\n      <div *ngFor=\"let imgPath of imgPathList\" class=\"image-wrapper\">\n        <div class=\"image-box border-all border-3\">\n          <img [src]=\"imgPath\" alt=\"Graph View\" class=\"w-100-p\" />\n        </div>\n      </div>\n    </div>\n\n    <ng-template #noImages>\n      <div class=\"alert-info relative\">\n        Graph view is still being generated. Please check back shortly to view the report.\n        </div>\n    </ng-template>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/network/network.component.html":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/network/network.component.html ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"mb-8\">\n    <cav-table [value]=\"requestData\" [headerRelativePath]=\"requestRelativePath\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\"></cav-table>\n</div>\n<div class=\"mb-8\">\n    <cav-table [value]=\"byteSent\" [headerRelativePath]=\"byteSentRelativePath\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\"></cav-table>\n</div>\n<div class=\"mb-8\">\n    <cav-table [value]=\"responseData\" [headerRelativePath]=\"responseRelativePath\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\" sortField=\"Metric\" sortOrder=\"-1\"></cav-table>\n</div>\n<div class=\"relative\" *ngIf=\"chartSeriesData.length == 0 && isChartEnabled\" style=\"min-height: 350px;\">\n    <app-cav-loader></app-cav-loader>\n</div>\n<div *ngFor=\"let graph of chartSeriesData\" class=\"mb-8\">\n    <div class=\"border-all border-7 mb-12\">\n        <highcharts-chart [Highcharts]=\"highcharts\" [options]=\"graph\"\n            style=\" display: table;  margin: 0 auto;\">\n        </highcharts-chart>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/pages/pages.component.html":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/pages/pages.component.html ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"mb-8\">\n    <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\" (colorCodeChange)=\"onChangeColorCode($event)\"\n        [isCompare]=\"isCompare\">\n    </app-report-filter>\n</div>\n\n<div class=\"mb-8\">\n    <cav-table [value]=\"overviewData\" [headerRelativePath]=\"relativePathOverview\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\" sortField=\"pageName\" sortOrder=\"-1\"></cav-table>\n</div>\n\n<div class=\"mb-8\">\n    <cav-table [value]=\"pageBandwidthData\" [headerRelativePath]=\"relativePathBandwidth\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\" sortField=\"pageName\" sortOrder=\"-1\"></cav-table>\n</div>\n\n<div class=\"mb-8\">\n    <cav-table [value]=\"pageNetworkTimingData\" [headerRelativePath]=\"relativePathNetworkTiming\" scrollable=\"true\"\n        scrollHeight=\"calc(100vh - 220px)\" sortField=\"pageName\" sortOrder=\"-1\"></cav-table>\n</div>\n<div class=\"bg-neutral-100 d-bg-neutral-900 border-all border-1 p-8 p-grid p-align-center\">\n    <i class=\"icon icon-info mr-4\"></i>\n    <span>{{noteData}}</span>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/report-filter/report-filter.component.html":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/report-filter/report-filter.component.html ***!
  \**************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"p-grid p-align-center bg-secondary-200 d-bg-secondary-1200\">\n    <!-- <div class=\"p-col-4\" *ngIf=\"isCompare\">\n        <p-dropdown [options]=\"measurementsOpt\" [(ngModel)]=\"selectMeasurementsOpt\" optionLabel=\"label\"\n            placeholder=\"Select Report Type\" (onChange)=\"onMeasurementChange($event)\"></p-dropdown>\n    </div>\n    <div class=\"p-col-2\" *ngIf=\"isCompare\">\n        <p-dropdown [options]=\"colorCodeOpt\" [(ngModel)]=\"selectedColorCodeOpt\" optionLabel=\"label\"\n            placeholder=\"Select Report Status\" (onChange)=\"onColorCodeChange($event)\"></p-dropdown>\n    </div> -->\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/sessions/sessions.component.html":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/sessions/sessions.component.html ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"mb-8\">\n    <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\" (colorCodeChange)=\"onChangeColorCode($event)\"\n        [isCompare]=\"isCompare\">\n    </app-report-filter>\n</div>\n<div class=\"mb-8\">\n    <cav-table [value]=\"sessionsData\" [headerRelativePath]=\"relativePath\" (clickButtonEvent)=\"clickButtonEvent($event)\"\n        scrollable=\"true\" scrollHeight=\"calc(100vh - 220px)\" sortField=\"sName\" sortOrder=\"-1\"></cav-table>\n</div>\n\n<div class=\"relative\" *ngIf=\"chartSeriesData.length == 0 && isChartEnabled\" style=\"min-height: 350px;\">\n    <app-cav-loader></app-cav-loader>\n</div>\n\n<div *ngFor=\"let graph of chartSeriesData\" class=\"mb-8\">\n    <div class=\"border-all border-5 mb-12\">\n        <highcharts-chart [Highcharts]=\"highcharts\" [options]=\"graph\"\n            style= \"display: table;  margin: 0 auto;\">\n        </highcharts-chart>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/summary/summary.component.html":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/summary/summary.component.html ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"metricsGraph\">\n    <div class=\"ui-table-caption ui-widget-header top-fixed\">\n        <div class=\"p-grid p-align-center height-32\">\n            <button pButton icon=\"pi pi-arrow-left\" class=\"btn-icon\" (click)=\"goBack()\"></button>\n        </div>\n    </div>\n    <ng-container *ngFor=\"let graph of metricNameAndChartDataArray\">\n        <app-tabular-graph-view [metricName]=\"graph[0]\" [chartOptions]=\"graph[1]\">\n        </app-tabular-graph-view>\n    </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"!metricsGraph\">\n    <div class=\"mb-8 thead-none\">\n        <cav-table [value]=\"summaryData\" [headers]=\"analysisHeader\" [tableConfig]=\"tableConfig1\"></cav-table>\n    </div>\n\n    <div class=\"mb-8\">\n        <cav-table [value]=\"kpiMetricsData\" [headers]=\"kpiHeader\" [tableConfig]=\"kpiConfig\" [selection]=\"chartIdList\"\n            (clickButtonEvent)=\"kpiTableClickButtonEvent($event)\" scrollable=\"true\"\n            scrollHeight=\"calc(100vh - 220px)\"></cav-table>\n    </div>\n\n    <div class=\"mb-8\">\n        <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\" [isCompare]=\"isCompare\"\n            (colorCodeChange)=\"onChangeColorCode($event)\">\n        </app-report-filter>\n    </div>\n    <div class=\"mb-8\" *ngIf=\"exeSum\">\n        <div class=\"ui-table-caption ui-widget-header\">\n            <div class=\"p-grid p-align-center p-justify-between height-32\">\n                <h4 class=\"my-0\">Executive Summary</h4>\n            </div>\n        </div>\n        <div class=\"border-all border-1 px-8\">\n            <p>{{exeSum}}</p>\n        </div>\n    </div>\n\n    <div class=\"mb-8\" *ngIf=\"conSum\">\n        <div class=\"ui-table-caption ui-widget-header\">\n            <div class=\"p-grid p-align-center p-justify-between height-32\">\n                <h4 class=\"my-0\">Conclusion</h4>\n            </div>\n        </div>\n        <div class=\"border-all border-1 px-8\">\n            <p>{{conSum}}</p>\n\n        </div>\n    </div>\n</ng-container>\n\n<p-dialog header=\"Comments\" [modal]=\"true\" [(visible)]=\"addComment\" [style]=\"{ width: '500px' }\">\n    <div class=\"p-grid\">\n        <div class=\"p-col-12\">\n            <textarea rows=\"10\" pInputTextarea [autoResize]=\"true\" class=\"w-100-p\" [(ngModel)]=\"commentText\"\n                (ngModelChange)=\"onCommentChange($event)\" maxlength=\"300\">\n        </textarea>\n        </div>\n        <div class=\"p-col-12 text-right opc-70\">\n            Remaining: {{remainingChars}} of 300 characters\n        </div>\n    </div>\n    <p-footer>\n        <p-button type=\"button\" label=\"Cancel\" class=\"ui-button-secondary ui-button-rounded\"\n            (click)=\"onCancelComment()\"></p-button>\n        <p-button type=\"button\" [label]=\"isUpdateComment ? 'Update' : 'Save'\"\n            (click)=\"onSaveComment()\"></p-button>\n    </p-footer>\n</p-dialog>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.html":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.html ***!
  \************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"mb-8\">\n        <div class=\"p-grid p-align-center\">\n            <h4 class=\"my-5\"> {{metricName}}</h4>\n        </div>\n    <div class=\"border-all border-7\">\n        <highcharts-chart [Highcharts]=\"highcharts\" [options]=\"chartOptions\"\n            style=\"display: table;  margin: 0 auto;\">\n        </highcharts-chart>\n    </div>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-view/tabular-view.component.html":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-view/tabular-view.component.html ***!
  \************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"!metricsGraph\">\n    <div class=\"mb-8\">\n        <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\"\n            (colorCodeChange)=\"onChangeColorCode($event)\" [isCompare]=\"isCompare\">\n        </app-report-filter>\n    </div>\n\n    <div class=\"mb-8\">\n        <cav-table [headers]=\"cavHeader\" [rowGrouping]=\"groupBy\" [tableConfig]=\"tableConfigAgg\" [selection]=\"chartIdList\"\n            (clickButtonEvent)=\"handleTabularDataClick($event)\" scrollable=\"true\" scrollHeight=\"calc(100vh - 270px)\"\n            [value]=\"compareTableData\" expandedRowGrouping=\"true\"></cav-table>\n    </div>\n</ng-container>\n\n<ng-container *ngIf=\"metricsGraph\">\n    <div class=\"ui-table-caption ui-widget-header top-fixed\">\n        <div class=\"p-grid p-align-center height-32\">\n            <button pButton icon=\"pi pi-arrow-left\" class=\"btn-icon\" (click)=\"goBack()\"></button>\n        </div>\n    </div>\n    <ng-container *ngFor=\"let graph of metricNameAndChartDataArray\">\n        <app-tabular-graph-view [metricName]=\"graph[0]\" [chartOptions]=\"graph[1]\">\n        </app-tabular-graph-view>\n    </ng-container>\n</ng-container>\n\n<p-dialog header=\"Comments\" [modal]=\"true\" [(visible)]=\"addComment\" [style]=\"{ width: '500px' }\">\n    <div class=\"p-grid\">\n        <div class=\"p-col-12\">\n            <textarea rows=\"10\" pInputTextarea [autoResize]=\"true\" class=\"w-100-p\" [(ngModel)]=\"commentText\"\n                (ngModelChange)=\"onCommentChange($event)\" maxlength=\"300\">\n        </textarea>\n        </div>\n        <div class=\"p-col-12 text-right opc-70\">\n            Remaining: {{remainingChars}} of 300 characters\n        </div>\n    </div>\n    <p-footer>\n        <p-button type=\"button\" label=\"Cancel\" class=\"ui-button-secondary ui-button-rounded\"\n            (click)=\"onCancelComment()\"></p-button>\n        <p-button type=\"button\" [label]=\"isUpdateComment ? 'Update' : 'Save'\"\n            (click)=\"onSaveComment()\"></p-button>\n    </p-footer>\n</p-dialog>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/title/title.component.html":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/title/title.component.html ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"p-grid p-align-center p-justify-between mtn-8\">\n    <div class=\"p-col-fixed\">\n        <img src='assets/img/cavisson_logo.png' alt='Cavisson' class=\"logo-img my-12\">\n    </div>\n    <div class=\"p-col-fixed\">\n    <div *ngIf=\"imageUrl\">\n        <img [src]=\"imageUrl\" alt=\"Loaded Image\" class=\"logo-img my-12\">\n    </div>\n    </div>\n</div>\n\n<div class=\"font-30 font-weight-600 p-48 text-center\">{{rptTitle}}</div>\n\n<div class=\"text-right font-14 px-24 py-48\">\n    <p><strong>Report Created By:</strong> {{createdBy}}</p>\n    <p><strong>{{durTitile}} :</strong> {{rptDuration}}</p>\n    <div *ngIf=\"isComapre\"> <p><strong>Target(s) :</strong> {{targetDur}}</p></div>\n    <p><strong>Report Created On:</strong> {{createdOn}}</p>\n</div>\n\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.html":
/*!**********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.html ***!
  \**********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"metricsGraph\">\n    <div class=\"ui-table-caption ui-widget-header top-fixed\">\n        <div class=\"p-grid p-align-center height-32\">\n            <button pButton icon=\"pi pi-arrow-left\" class=\"btn-icon\" (click)=\"goBack()\"></button>\n        </div>\n    </div>\n    <ng-container *ngFor=\"let graph of metricNameAndChartDataArray\">\n        <app-tabular-graph-view [metricName]=\"graph[0][0]\" [chartOptions]=\"graph[0][1]\">\n        </app-tabular-graph-view>\n    </ng-container>\n</ng-container>\n<div class=\"mb-8\">\n    <app-report-filter (measurementChange)=\"onChangeMeasurement($event)\" (colorCodeChange)=\"onChangeColorCode($event)\"\n        [isCompare]=\"isCompare\">\n    </app-report-filter>\n</div>\n\n<div class=\"mb-8\"> \n    <cav-table *ngIf=\"!metricsGraph\" [value]=\"transactionData || []\" [headerRelativePath]=\"relativePath\"\n        (clickButtonEvent)=\"handleChartClick($event)\" scrollable=\"true\" scrollHeight=\"calc(100vh - 220px)\"\n        sortField=\"trans\" sortOrder=\"-1\"></cav-table>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/trend-report/trend-report.component.html":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/trend-report/trend-report.component.html ***!
  \************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-script-compare></app-script-compare>");

/***/ }),

/***/ "./src/app/pages/generated-reports/engine-health/engine-health.component.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/generated-reports/engine-health/engine-health.component.ts ***!
  \**********************************************************************************/
/*! exports provided: EngineHealthComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EngineHealthComponent", function() { return EngineHealthComponent; });
/* 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 highcharts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/cav-toast/service/cav-message.service */ "./src/app/shared/cav-toast/service/cav-message.service.ts");
/* harmony import */ var _services_generated_report_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../services/generated-report.state */ "./src/app/pages/generated-reports/services/generated-report.state.ts");
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");








let EngineHealthComponent = class EngineHealthComponent {
    constructor(sessionService, generatedReportService, messageService, logger) {
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.messageService = messageService;
        this.logger = logger;
        this.enginHealthData = [];
        this.metricsGraph = false;
        this.addComment = false;
        this.isCompare = false;
        this.chartIdList = [];
        this.metricNameAndChartDataMap = new Map();
        this.metricNameAndChartDataArray = [];
        this.commentText = '';
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.engineHealthHeader = [];
        this.msrNames = [];
        this.enablechart = false;
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_2__;
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.reportName = (_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName;
        me.reportName = me.reportName; // Handle case where reportName might be undefined
        me.testRun = me.sessionService.session.testRun.id;
        me.getEngineHealthData();
        me.engineHealthConfig = {
            config: {
                "masterCheckbox": true,
                "tableName": "Engine Health",
                "showHideData": true
            },
            tableAction: [
                {
                    "iconType": "icon",
                    "iconClass": "icons8 icons8-combo-chart",
                    "toolTip": "Show Selected Graph",
                    "action": "showGraph",
                    "needRowData": false
                }
            ],
        };
    }
    handleEnginHealthClick(event) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
        const me = this;
        try {
            switch ((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) {
                case "clickable":
                    if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.columnClicked) === null || _d === void 0 ? void 0 : _d.key) === 'comment') {
                        me.addComment = true;
                        me.selectedRowData = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.row;
                        if (((_g = (_f = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _f === void 0 ? void 0 : _f.row) === null || _g === void 0 ? void 0 : _g.comment) === "Add Comment") {
                            me.commentText = "";
                            me.isUpdateComment = false;
                            me.onCommentChange(me.commentText);
                        }
                        else { //update comment
                            me.commentText = (_j = (_h = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _h === void 0 ? void 0 : _h.row) === null || _j === void 0 ? void 0 : _j.comment;
                            me.isUpdateComment = true;
                            me.onCommentChange(me.commentText);
                        }
                    }
                    else { //To view graph
                        me.getChartSeriesData((_l = (_k = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _k === void 0 ? void 0 : _k.row) === null || _l === void 0 ? void 0 : _l.index, (_o = (_m = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _m === void 0 ? void 0 : _m.row) === null || _o === void 0 ? void 0 : _o.name);
                    }
                    break;
                case "showGraph":
                    me.viewGraph();
                    break;
                case "rowCheckboxEnable":
                case "masterCheckboxEnable":
                    me.chartIdList = (_p = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _p === void 0 ? void 0 : _p.rowData;
                    break;
                default: //Default case is for checkbox select and unselect including master checkbox.
                    // me.selectedRow = event.cavEventExt?.rowData;
                    break;
            }
        }
        catch (error) {
            this.logger.error("handleEnginHealthClick : ", error);
        }
    }
    goBack() {
        const me = this;
        me.metricNameAndChartDataMap = new Map();
        me.metricNameAndChartDataArray = [];
        me.metricsGraph = false;
        // me.chartIdList = [];
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    viewGraph() {
        var _a, _b;
        const me = this;
        try {
            for (let i = 0; i < me.chartIdList.length; i++) {
                me.getChartSeriesData((_a = me.chartIdList[i]) === null || _a === void 0 ? void 0 : _a.index, (_b = me.chartIdList[i]) === null || _b === void 0 ? void 0 : _b.name);
            }
        }
        catch (error) {
            this.logger.error("viewGraph : ", error);
        }
    }
    getEngineHealthData() {
        var _a, _b, _c;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.sessionService.session.testRun.id + "/reports/" + me.reportName + "/" + "engineHealthData.json";
                me.enginHealthData = (_a = (yield me.generatedReportService.readFileData(filePath))) !== null && _a !== void 0 ? _a : [];
                me.msrNames = me.enginHealthData && ((_b = me.enginHealthData[0]) === null || _b === void 0 ? void 0 : _b.msrName) || [];
                if (me.enginHealthData && ((_c = me.msrNames) === null || _c === void 0 ? void 0 : _c.length) > 0) {
                    me.isCompare = true;
                    me.enginHealthData = yield me.generatedReportService.createChangeAndChangePer(me.enginHealthData, me.msrNames);
                }
                else {
                    me.isCompare = false;
                }
                if (me.generatedReportService.isIncludeChartEnabled) {
                    me.enablechart = true;
                }
                const cols = [
                    {
                        label: "Metric Name",
                        key: "name",
                        type: 0,
                        width: me.isCompare ? "35%" : "48%",
                        click: me.enablechart,
                    }
                ];
                if (me.msrNames.length > 0) {
                    me.msrNames.forEach((msrName, index) => {
                        cols.push({
                            label: msrName,
                            key: `val${index + 1}`,
                            type: 3,
                            width: "12%",
                            click: false,
                            bgColor: "#b1e9fa",
                            format: "dec_auto"
                        });
                        if (index > 0) {
                            cols.push({
                                label: msrName + " Change",
                                key: `change${index}`,
                                type: 8,
                                width: "14%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#d2f58f",
                                tooltip: "M2 - M1"
                            });
                            cols.push({
                                label: msrName + " Change(%)",
                                key: `changePer${index}`,
                                type: 8,
                                width: "16%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#f9d49f",
                                tooltip: "M2 - M1 / M2 * 100"
                            });
                        }
                    });
                    cols.push({
                        label: "Comment",
                        key: "comment",
                        type: 0,
                        width: "15%",
                        click: true
                    });
                }
                else {
                    cols.push({
                        label: "Value",
                        key: "val",
                        type: 3,
                        width: "12%",
                        click: false,
                        format: "dec_auto"
                    });
                    cols.push({
                        label: "Comment",
                        key: "comment",
                        type: 0,
                        click: true
                    });
                }
                me.engineHealthHeader = [{ cols: cols }];
            }
            catch (error) {
                this.logger.error("getEngineHealthData : ", error);
            }
        });
    }
    getChartSeriesData(iD, name) {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                let graphFileName = iD + ".json";
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + me.reportName + "/engineHealth/" + graphFileName;
                let chartConfig = yield me.generatedReportService.readFileData(filePath);
                chartConfig = Object(_services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["attachHighchartsFunctions"])(chartConfig);
                me.metricNameAndChartDataMap.set(name, chartConfig);
                me.metricNameAndChartDataArray = Array.from(me.metricNameAndChartDataMap.entries());
                me.metricsGraph = true;
            }
            catch (error) {
                this.logger.error("getChartSeriesData : ", error);
            }
        });
    }
    onSaveComment() {
        var _a;
        try {
            const me = this;
            // Validate that comment text is not just whitespace
            const trimmedComment = me.commentText.trim();
            if (trimmedComment.length === 0) {
                me.messageService.add({ severity: 'warn', summary: 'Add Comment', detail: 'Please enter a comment before saving.' });
                return;
            }
            me.generatedReportService.addComment((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName, trimmedComment, me.testRun, me.selectedRowData.index, "eHealth").subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_6__["AddCommentLoadingState"]) {
                    me.onLoadingAddComment(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_6__["AddCommentLoadedState"]) {
                    me.onLoadedAddComment(state);
                    return;
                }
            }, (error) => {
                me.onLoadingErrorAddComment(error);
            });
        }
        catch (error) {
            this.logger.error("onSaveComment : ", error);
            this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Error saving comment. Please try again.' });
        }
    }
    onLoadingAddComment(state) { }
    onLoadingErrorAddComment(error) {
        // Close the popup and reset state on error
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.logger.error("onLoadingErrorAddComment : ", error);
        this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Failed to save comment. Please try again.' });
    }
    onLoadedAddComment(state) {
        var _a, _b, _c, _d, _e, _f;
        const me = this;
        if (((_b = (_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.code) === 200) {
            // Close the popup and reset state
            me.addComment = false;
            me.commentText = '';
            me.selectedRowData = null;
            me.isUpdateComment = false;
            me.remainingChars = 300;
            // Refresh the table data to show the updated comment
            me.getEngineHealthData();
            me.messageService.add({ severity: 'success', summary: 'Add Comment', detail: (_d = (_c = state === null || state === void 0 ? void 0 : state.data) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.detailedMsg });
        }
        else {
            me.messageService.add({ severity: 'error', summary: 'Add Comment', detail: (_f = (_e = state === null || state === void 0 ? void 0 : state.data) === null || _e === void 0 ? void 0 : _e.status) === null || _f === void 0 ? void 0 : _f.detailedMsg });
        }
    }
    onCommentChange(value) {
        this.commentText = value.substring(0, 300); // enforce limit
        this.remainingChars = 300 - this.commentText.length;
    }
    onCancelComment() {
        // Close the popup and reset state without saving
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
    }
};
EngineHealthComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__["CavMessageService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_7__["CavLoggingService"] }
];
EngineHealthComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-engine-health',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./engine-health.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/engine-health/engine-health.component.html")).default
    })
], EngineHealthComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/engine-health/engine-health.module.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/generated-reports/engine-health/engine-health.module.ts ***!
  \*******************************************************************************/
/*! exports provided: EngineHealthModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EngineHealthModule", function() { return EngineHealthModule; });
/* 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 _engine_health_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine-health.component */ "./src/app/pages/generated-reports/engine-health/engine-health.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tabular-graph-view/tabular-graph-view.module */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");











const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_7__["HighchartsChartModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"],
    _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__["TabularGraphViewModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__["ReportFilterModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_10__["CavLoaderModule"]
];
const components = [
    _engine_health_component__WEBPACK_IMPORTED_MODULE_3__["EngineHealthComponent"]
];
let EngineHealthModule = class EngineHealthModule {
};
EngineHealthModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_engine_health_component__WEBPACK_IMPORTED_MODULE_3__["EngineHealthComponent"]],
        imports: [
            imports
        ],
        exports: [
            _engine_health_component__WEBPACK_IMPORTED_MODULE_3__["EngineHealthComponent"]
        ]
    })
], EngineHealthModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/errors/errors.component.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/generated-reports/errors/errors.component.ts ***!
  \********************************************************************/
/*! exports provided: ErrorsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorsComponent", function() { return ErrorsComponent; });
/* 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 highcharts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");






let ErrorsComponent = class ErrorsComponent {
    constructor(sessionService, generatedReportService, logger) {
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.logger = logger;
        this.relativePath = 'reports/errors.json';
        this.errorsData = [];
        this.addComment = false;
        this.rowGroupBy = ["rowGroup", "child"];
        this.chartSeriesData = [];
        this.isCompare = false;
        this.isChartEnabled = false;
        this.showLoader = true;
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_2__;
    }
    ngOnInit() {
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.reportName = me.generatedReportService.reportName;
        me.isChartEnabled = me.generatedReportService.isIncludeChartEnabled;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.getErrorData();
        me.getChartSeriesData();
        setTimeout(() => {
            this.showLoader = false;
        }, 15000);
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    getErrorData() {
        var _a, _b;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            const me = this;
            try {
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "errorData.json";
                me.errorsData = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
            }
            catch (error) {
                me.logger.error("getErrorData : ", error);
            }
        });
    }
    getChartSeriesData() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            const me = this;
            try {
                me.chartSeriesData = yield me.generatedReportService.getChartSeriesData([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], me.testRun, "errorChart");
            }
            catch (error) {
                me.logger.error("getChartSeriesData: ", error);
            }
        });
    }
};
ErrorsComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__["CavLoggingService"] }
];
ErrorsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-errors',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./errors.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/errors/errors.component.html")).default
    })
], ErrorsComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/errors/errors.module.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/generated-reports/errors/errors.module.ts ***!
  \*****************************************************************/
/*! exports provided: ErrorsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorsModule", function() { return ErrorsModule; });
/* 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 _errors_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./errors.component */ "./src/app/pages/generated-reports/errors/errors.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tabular-graph-view/tabular-graph-view.module */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");











const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_7__["HighchartsChartModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"],
    _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__["TabularGraphViewModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__["ReportFilterModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_10__["CavLoaderModule"]
];
const components = [
    _errors_component__WEBPACK_IMPORTED_MODULE_3__["ErrorsComponent"]
];
let ErrorsModule = class ErrorsModule {
};
ErrorsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_errors_component__WEBPACK_IMPORTED_MODULE_3__["ErrorsComponent"]],
        imports: [
            imports
        ],
        exports: [
            _errors_component__WEBPACK_IMPORTED_MODULE_3__["ErrorsComponent"]
        ]
    })
], ErrorsModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/generated-reports.component.scss":
/*!**************************************************************************!*\
  !*** ./src/app/pages/generated-reports/generated-reports.component.scss ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("app-generated-reports .ui-tabmenu .ui-tabmenu-nav .ui-tabmenuitem a.ui-menuitem-link {\n  padding: 0.75em 1em;\n  display: inline-flex;\n}\napp-generated-reports .thead-none .ui-table-thead {\n  display: none;\n}\napp-generated-reports .table-footer .ui-table-tbody tr:last-child {\n  font-weight: 600;\n}\napp-generated-reports .logo-img {\n  width: 100%;\n  max-width: 242px;\n}\napp-generated-reports app-dashboard-page .charts-wrapper .dashboard-container {\n  width: 100% !important;\n}\napp-generated-reports .pageLock {\n  pointer-events: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n          user-select: none;\n  filter: blur(3px);\n}");

/***/ }),

/***/ "./src/app/pages/generated-reports/generated-reports.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/generated-reports/generated-reports.component.ts ***!
  \************************************************************************/
/*! exports provided: GeneratedReportsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneratedReportsComponent", function() { return GeneratedReportsComponent; });
/* 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 primeng__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_3__ = __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_core_breadcrumb_breadcrumb_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.ts");
/* harmony import */ var _services_generated_report_state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./services/generated-report.state */ "./src/app/pages/generated-reports/services/generated-report.state.ts");
/* harmony import */ var _my_library_reports_metrics_service_metrics_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../my-library/reports/metrics/service/metrics.service */ "./src/app/pages/my-library/reports/metrics/service/metrics.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");
/* harmony import */ var src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/shared/utility/object */ "./src/app/shared/utility/object.ts");














let GeneratedReportsComponent = class GeneratedReportsComponent {
    constructor(cavNavBarService, breadcrumb, sessionService, generatedReportService, metricsService, router, cdr, logger, route, messageService) {
        this.cavNavBarService = cavNavBarService;
        this.breadcrumb = breadcrumb;
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.metricsService = metricsService;
        this.router = router;
        this.cdr = cdr;
        this.logger = logger;
        this.route = route;
        this.messageService = messageService;
        this.PDF_MARGIN_MM = 10;
        this.PDF_CONTENT_WIDTH_MM = 190;
        this.PDF_CONTENT_HEIGHT_MM = 277;
        this.tabsData = {};
        this.navbarItems = [];
        this.isCompare = false;
        this.headerNames = [];
        this.activeComponent = 'title';
        this.isPdfDownloaded = false;
        this.subscription = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subscription"]();
        this.isLoading = false;
        this.showLoader = false;
        this.isIncludeChartEnabled = false;
        this.hoverTarget = null;
        this.hoverContent = '';
        this.hoverContentTemplate = null;
        this.templateMap = {};
        this.showDownloadpopUp = false;
        this.selectedFormat = 'pdf';
        this.includeGraph = false;
        this.includeData = true;
        this.downLoadingReport = false;
        this.cavNavBarService.showNavBar = false;
        this.isLoading = false;
        this.generatedReportService.titleData = null;
    }
    ngOnInit() {
        const me = this;
        //complete block is reponsible to extract values from copylink params and set that accordigly to their respective services.
        this.route.queryParams.subscribe(params => {
            if (params['reportName']) {
                me.reportName = params['reportName'];
                me.generatedReportService.reportName = me.reportName;
                me.isIncludeChartEnabled = params['chartenabled'];
                me.generatedReportService.isIncludeChartEnabled = me.isIncludeChartEnabled;
                this.sessionService.copyLinkParam = null;
                sessionStorage.removeItem('copyLinkParams');
                if (params['testRun'])
                    this.sessionService.session.testRun.id = params['testRun'];
                me.reportName = decodeURIComponent(me.reportName);
                this.metricsService.setReportName(me.reportName);
            }
            else if (me.generatedReportService.reportName) {
                me.reportName = decodeURIComponent(me.generatedReportService.reportName);
            }
        });
        me.subscription = this.metricsService.reportNameObj$.subscribe(data => {
            if (data) {
                me.reportName = decodeURIComponent(data);
                me.generatedReportService.reportName = me.reportName;
                me.getTabs(me.reportName);
            }
        });
    }
    initReportMenues(tabs) {
        const me = this;
        this.navbarItems = [];
        me.cavNavBarService.showBreadCrumb = true;
        let rptName = me.reportName.split("@^@")[0];
        this.breadcrumb.addNewBreadcrumb({ label: me.reportName ? rptName : 'Generated Report' });
        if (!tabs) {
            this.navbarItems = [
                { label: 'Title', routerLink: './title', command: () => this.setActive('title'), },
                { label: 'Tabular View', routerLink: './tabular-view', command: () => this.setActive('tabular') },
                { label: 'Graph View', routerLink: './graph-view', command: () => this.setActive('graph') },
            ];
        }
        else {
            this.navbarItems.push({ label: 'Title', routerLink: './title', command: () => this.setActive('title'), });
            this.navbarItems.push({ label: 'Summary', routerLink: './summary', command: () => this.setActive('summary'), });
            if (tabs.session) {
                this.navbarItems.push({ label: 'Sessions', templateKey: 'sessionsTpl', routerLink: './sessions', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('sessions') });
            }
            if (tabs.transaction) {
                this.navbarItems.push({ label: 'Transaction', templateKey: 'transactionsTpl', routerLink: './transaction', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('transaction') });
            }
            if (tabs.pages) {
                this.navbarItems.push({ label: 'Pages', templateKey: 'pagesTpl', routerLink: './pages', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('pages') });
            }
            if (tabs.network) {
                this.navbarItems.push({ label: 'Network', templateKey: 'networkTpl', routerLink: './network', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('network') });
            }
            if (tabs.error) {
                this.navbarItems.push({ label: 'Errors', templateKey: 'errorsTpl', routerLink: './errors', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('errors') });
            }
            if (tabs.engine) {
                this.navbarItems.push({ label: 'Engine Health', routerLink: './engine-health', command: () => this.setActive('engine') });
            }
            if (tabs.serverSignature) {
                this.navbarItems.push({ label: 'Server Signature', templateKey: 'trendTpl', routerLink: './trend-view', icon: 'icons8 icons8-info mx-3', command: () => this.setActive('trend') });
            }
            this.navbarItems.push({ label: 'Tabular View', routerLink: './tabular-view', command: () => this.setActive('tabular') });
            this.navbarItems.push({ label: 'Graph View', routerLink: './graph-view', command: () => this.setActive('graph') });
        }
        this.activeItem = src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_12__["ObjectUtility"].duplicate(this.navbarItems[0]);
        this.cdr.detectChanges();
        me.router.navigate(['/generated-reports']);
    }
    setActive(key) {
        this.activeComponent = key;
        // Update activeItem to reflect the current tab
        const keyMapping = {
            'title': './title',
            'summary': './summary',
            'sessions': './sessions',
            'transaction': './transaction',
            'pages': './pages',
            'network': './network',
            'errors': './errors',
            'engine': './engine-health',
            'tabular': './tabular-view',
            'graph': './graph-view',
            'trend': './trend-view'
        };
        const routerLink = keyMapping[key];
        if (routerLink) {
            const selectedItem = this.navbarItems.find(item => item.routerLink === routerLink);
            if (selectedItem) {
                this.activeItem = src_app_shared_utility_object__WEBPACK_IMPORTED_MODULE_12__["ObjectUtility"].duplicate(selectedItem);
            }
        }
        this.cdr.detectChanges();
    }
    getTabs(rptName) {
        try {
            const me = this;
            me.showLoader = true;
            me.generatedReportService.loadGeneratedPage(rptName, ["title"]).subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_7__["GeneratedReportLoadingState"]) {
                    me.onLoading(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_7__["GeneratedReportLoadedState"]) {
                    me.onLoaded(state);
                    return;
                }
            }, (state) => {
                me.onLoadingError(state);
            });
        }
        catch (error) {
            this.logger.error("getTabs : ", error);
        }
    }
    onLoading(state) {
        this.showLoader = true;
        this.isLoading = false;
    }
    ;
    onLoadingError(state) {
        this.showLoader = false;
        this.isLoading = false;
    }
    ;
    onLoaded(state) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
        const me = this;
        try {
            if ((_a = state === null || state === void 0 ? void 0 : state.data[0]) === null || _a === void 0 ? void 0 : _a.tabWiseReportData) {
                me.tabsData = ((_c = (_b = state === null || state === void 0 ? void 0 : state.data[0]) === null || _b === void 0 ? void 0 : _b.tabWiseReportData) === null || _c === void 0 ? void 0 : _c.Tabs) || null;
                me.isCompare = (_e = (_d = state === null || state === void 0 ? void 0 : state.data[0]) === null || _d === void 0 ? void 0 : _d.tabWiseReportData) === null || _e === void 0 ? void 0 : _e.isCompare;
                me.generatedReportService.setIsCompare(me.isCompare);
                me.generatedReportService.compareApplied = (_g = (_f = state === null || state === void 0 ? void 0 : state.data[0]) === null || _f === void 0 ? void 0 : _f.tabWiseReportData) === null || _g === void 0 ? void 0 : _g.isCompare;
                me.headerNames = ((_j = (_h = state === null || state === void 0 ? void 0 : state.data[0]) === null || _h === void 0 ? void 0 : _h.tabWiseReportData) === null || _j === void 0 ? void 0 : _j.headerNames) || [];
                me.generatedReportService.setheaderNames(me.headerNames);
                me.generatedReportService.compareTestRuns = ((_l = (_k = state === null || state === void 0 ? void 0 : state.data[0]) === null || _k === void 0 ? void 0 : _k.tabWiseReportData) === null || _l === void 0 ? void 0 : _l.compareTestRunList) || [];
                me.generatedReportService.titleData = (_m = state === null || state === void 0 ? void 0 : state.data[0]) === null || _m === void 0 ? void 0 : _m.tabWiseReportData;
                this.isLoading = true;
                this.showLoader = false;
                this.initReportMenues(this.tabsData);
            }
        }
        catch (error) {
            this.isLoading = false;
            this.showLoader = false;
            this.logger.error(error);
        }
    }
    ngAfterViewInit() {
        this.templateMap = {
            'Sessions': this.sessionsTpl,
            'Transaction': this.transactionsTpl,
            'Pages': this.pagesTpl,
            'Network': this.networkTpl,
            'Errors': this.errorsTpl,
            'Server Signature': this.trendTpl
        };
    }
    setHoverTarget(icon, item) {
        this.hoverTarget = icon;
        this.hoverContentTemplate = this.templateMap[item.label] || null;
        this.cdr.detectChanges();
    }
    ngOnDestroy() {
        this.cavNavBarService.showNavBar = true,
            this.cavNavBarService.showBreadCrumb = false;
    }
    openDownloadReportPopup() {
        const me = this;
        me.showDownloadpopUp = true;
    }
    downloadReport(format) {
        try {
            this.selectedFormat = format;
            const me = this;
            me.downLoadingReport = true;
            me.generatedReportService.downlodReport(this.reportName, this.sessionService.session.testRun.id, this.selectedFormat, this.includeGraph).subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_7__["DownloadReportLoadingState"]) {
                    me.onReportDownloadLoading(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_7__["DownloadReportLoadedState"]) {
                    me.onReportDownloadLoaded(state);
                    return;
                }
            }, (state) => {
                me.onReportDownloadError(state);
            });
        }
        catch (error) {
            this.logger.error("Error in downloading : ", error);
        }
    }
    onReportDownloadLoading(state) {
    }
    onReportDownloadError(state) {
    }
    onReportDownloadLoaded(state) {
        this.messageService.add({ severity: "Success", summary: "Download Report", detail: "Report downloaded successfully." });
        let reportUrl = window.location.origin + "/" + state.data.status.msg;
        this.downLoadingReport = false;
        this.showDownloadpopUp = false;
        window.open(reportUrl, '_blank');
    }
};
GeneratedReportsComponent.ctorParameters = () => [
    { type: src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_3__["CavNavBarService"] },
    { type: src_app_core_breadcrumb_breadcrumb_service__WEBPACK_IMPORTED_MODULE_4__["BreadcrumbService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_5__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_6__["GeneratedReportService"] },
    { type: _my_library_reports_metrics_service_metrics_service__WEBPACK_IMPORTED_MODULE_8__["MetricsService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"] },
    { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_11__["CavLoggingService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["ActivatedRoute"] },
    { type: primeng__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
];
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('sessionsTpl')
], GeneratedReportsComponent.prototype, "sessionsTpl", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('transactionsTpl')
], GeneratedReportsComponent.prototype, "transactionsTpl", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('pagesTpl')
], GeneratedReportsComponent.prototype, "pagesTpl", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('networkTpl')
], GeneratedReportsComponent.prototype, "networkTpl", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('errorsTpl')
], GeneratedReportsComponent.prototype, "errorsTpl", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('trendTpl')
], GeneratedReportsComponent.prototype, "trendTpl", void 0);
GeneratedReportsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-generated-reports',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./generated-reports.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/generated-reports.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./generated-reports.component.scss */ "./src/app/pages/generated-reports/generated-reports.component.scss")).default]
    })
], GeneratedReportsComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/generated-reports.module.ts":
/*!*********************************************************************!*\
  !*** ./src/app/pages/generated-reports/generated-reports.module.ts ***!
  \*********************************************************************/
/*! exports provided: GeneratedReportsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneratedReportsModule", function() { return GeneratedReportsModule; });
/* 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 _generated_reports_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./generated-reports.component */ "./src/app/pages/generated-reports/generated-reports.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/tooltip */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tooltip.js");
/* harmony import */ var _summary_summary_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./summary/summary.module */ "./src/app/pages/generated-reports/summary/summary.module.ts");
/* harmony import */ var _sessions_sessions_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./sessions/sessions.module */ "./src/app/pages/generated-reports/sessions/sessions.module.ts");
/* harmony import */ var _title_title_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./title/title.module */ "./src/app/pages/generated-reports/title/title.module.ts");
/* harmony import */ var _errors_errors_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./errors/errors.module */ "./src/app/pages/generated-reports/errors/errors.module.ts");
/* harmony import */ var _network_network_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./network/network.module */ "./src/app/pages/generated-reports/network/network.module.ts");
/* harmony import */ var _transaction_stats_transaction_stats_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./transaction-stats/transaction-stats.module */ "./src/app/pages/generated-reports/transaction-stats/transaction-stats.module.ts");
/* harmony import */ var _engine_health_engine_health_module__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./engine-health/engine-health.module */ "./src/app/pages/generated-reports/engine-health/engine-health.module.ts");
/* harmony import */ var _pages_pages_module__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./pages/pages.module */ "./src/app/pages/generated-reports/pages/pages.module.ts");
/* harmony import */ var _tabular_view_tabular_view_module__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./tabular-view/tabular-view.module */ "./src/app/pages/generated-reports/tabular-view/tabular-view.module.ts");
/* harmony import */ var _graph_view_graph_view_module__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./graph-view/graph-view.module */ "./src/app/pages/generated-reports/graph-view/graph-view.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_18__ = __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_overlay_cav_overlay_module__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/shared/cav-overlay/cav-overlay.module */ "./src/app/shared/cav-overlay/cav-overlay.module.ts");
/* harmony import */ var _trend_report_trend_report_module__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./trend-report/trend-report.module */ "./src/app/pages/generated-reports/trend-report/trend-report.module.ts");





















const routes = [
    { path: '', component: _generated_reports_component__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportsComponent"],
    },
];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["CheckboxModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["TabMenuModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["ToolbarModule"],
    _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__["MatTooltipModule"],
    _summary_summary_module__WEBPACK_IMPORTED_MODULE_8__["SummaryModule"],
    _sessions_sessions_module__WEBPACK_IMPORTED_MODULE_9__["SessionsModule"],
    _title_title_module__WEBPACK_IMPORTED_MODULE_10__["TitleModule"],
    _errors_errors_module__WEBPACK_IMPORTED_MODULE_11__["ErrorsModule"],
    _network_network_module__WEBPACK_IMPORTED_MODULE_12__["NetworkModule"],
    _transaction_stats_transaction_stats_module__WEBPACK_IMPORTED_MODULE_13__["TransactionStatsModule"],
    _engine_health_engine_health_module__WEBPACK_IMPORTED_MODULE_14__["EngineHealthModule"],
    _pages_pages_module__WEBPACK_IMPORTED_MODULE_15__["PagesModule"],
    _tabular_view_tabular_view_module__WEBPACK_IMPORTED_MODULE_16__["TabularViewModule"],
    _graph_view_graph_view_module__WEBPACK_IMPORTED_MODULE_17__["GraphViewModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_18__["CavLoaderModule"],
    src_app_shared_cav_overlay_cav_overlay_module__WEBPACK_IMPORTED_MODULE_19__["CavOverlayModule"],
    _trend_report_trend_report_module__WEBPACK_IMPORTED_MODULE_20__["TrendReportModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["MessagesModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["RadioButtonModule"]
];
const components = [_generated_reports_component__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportsComponent"]];
let GeneratedReportsModule = class GeneratedReportsModule {
};
GeneratedReportsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [components],
        imports: [imports, _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(routes)],
        exports: [components, _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"]],
        providers: [],
    })
], GeneratedReportsModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/graph-view/graph-view.component.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/generated-reports/graph-view/graph-view.component.ts ***!
  \****************************************************************************/
/*! exports provided: GraphViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphViewComponent", function() { return GraphViewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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");
/* harmony import */ var _home_script_manager_services_script_rest_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../home/script-manager/services/script-rest.service */ "./src/app/pages/home/script-manager/services/script-rest.service.ts");
/* harmony import */ var _home_script_manager_services_script_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../home/script-manager/services/script.state */ "./src/app/pages/home/script-manager/services/script.state.ts");






let GraphViewComponent = class GraphViewComponent {
    constructor(generatedReportService, sessionService, scriptRestService) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.scriptRestService = scriptRestService;
        this.filePath = '';
        this.imgPathList = [];
    }
    ngOnInit() {
        var _a;
        this.testRun = this.sessionService.session.testRun.id;
        this.reportName = (_a = this.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName;
        this.reportName = this.reportName;
        this.readAllimagesNameAndCounts();
    }
    readAllimagesNameAndCounts() {
        const filePath = "webapps/logs/TR" + this.testRun + "/reports/" + this.reportName + "/images";
        const payload = {
            path: filePath,
            type: "dirPath"
        };
        this.scriptRestService.getFiles(payload).subscribe((state) => {
            if (state instanceof _home_script_manager_services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptFilesLoadingState"]) {
                this.onLoading(state);
                return;
            }
            if (state instanceof _home_script_manager_services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptFilesLoadedState"]) {
                if (state.data.data.length > 0) {
                    for (let i = 0; i < state.data.data.length; i++) {
                        const dirName = state.data.data[i].path;
                        const imgPath = dirName.replace(/^webapps/, '');
                        this.imgPathList.push(imgPath);
                    }
                }
            }
        });
    }
    onLoading(state) {
    }
    onFilesLoaded(state, dirName, path) { }
};
GraphViewComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _home_script_manager_services_script_rest_service__WEBPACK_IMPORTED_MODULE_4__["ScriptRestService"] }
];
GraphViewComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-graph-view',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./graph-view.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/graph-view/graph-view.component.html")).default
    })
], GraphViewComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/graph-view/graph-view.module.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/generated-reports/graph-view/graph-view.module.ts ***!
  \*************************************************************************/
/*! exports provided: GraphViewModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphViewModule", function() { return GraphViewModule; });
/* 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 _graph_view_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graph-view.component */ "./src/app/pages/generated-reports/graph-view/graph-view.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/common-iframe/common-iframe.module */ "./src/app/shared/common-iframe/common-iframe.module.ts");








const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_7__["CommonIfameModule"],
];
const components = [
    _graph_view_component__WEBPACK_IMPORTED_MODULE_3__["GraphViewComponent"]
];
let GraphViewModule = class GraphViewModule {
};
GraphViewModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_graph_view_component__WEBPACK_IMPORTED_MODULE_3__["GraphViewComponent"]],
        imports: [
            imports
        ],
        exports: [
            _graph_view_component__WEBPACK_IMPORTED_MODULE_3__["GraphViewComponent"]
        ]
    })
], GraphViewModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/network/network.component.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/generated-reports/network/network.component.ts ***!
  \**********************************************************************/
/*! exports provided: NetworkComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NetworkComponent", function() { return NetworkComponent; });
/* 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 highcharts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.ts");
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");






let NetworkComponent = class NetworkComponent {
    constructor(sessionService, generatedReportService, logger) {
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.logger = logger;
        this.requestRelativePath = 'reports/network-request.json';
        this.responseRelativePath = 'reports/network-response.json';
        this.byteSentRelativePath = 'reports/network_byte_sent.json';
        this.requestData = [];
        this.responseData = [];
        this.byteSent = [];
        this.chartSeriesData = [];
        this.isCompare = false;
        this.isChartEnabled = false;
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_2__;
    }
    ngOnInit() {
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.reportName = me.generatedReportService.reportName;
        me.reportName = me.reportName;
        me.isChartEnabled = me.generatedReportService.isIncludeChartEnabled;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.getNetworkData();
        me.getHttpHostData();
        me.getChartSeriesData();
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    // getTitleData() {
    //   try {
    //     const me = this;
    //     let comData = "network";
    //     me.generatedReportService.loadGeneratedPage(me.generatedReportService.reportName, [comData, "httpHostData"]).subscribe(
    //       (state: Store.State) => {
    //         if (state instanceof GeneratedReportLoadingState) {
    //           me.onLoading(state);
    //           return;
    //         }
    //         if (state instanceof GeneratedReportLoadedState) {
    //           me.onLoaded(state);
    //           return;
    //         }
    //       },
    //       (state: GeneratedReportErrorState) => {
    //         me.onLoadingError(state);
    //       }
    //     );
    //   } catch (error) {
    //     this.logger.error("getTitleData--->", error);
    //   }
    // }
    // onLoading(state) { };
    // onLoadingError(state) { };
    getNetworkData() {
        var _a, _b;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "networkData.json";
                let data = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
                me.processNetworkData(data);
            }
            catch (error) {
                this.logger.error("getNetworkData--->", error);
            }
        });
    }
    getHttpHostData() {
        var _a, _b;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "httpHostData.json";
                let data = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
                me.processHttpHostData(data);
            }
            catch (error) {
                this.logger.error("getHttpHostData--->", error);
            }
        });
    }
    processNetworkData(data) {
        const me = this;
        try {
            if (data && Array.isArray(data) && data.length > 0) {
                // Initialize data containers
                me.requestData = [];
                me.byteSent = [];
                // Loop through the data array and organize by name
                for (let i = 0; i < data.length; i++) {
                    const item = data[i];
                    if (item && item.name) {
                        if (item.name.includes('Requests')) {
                            me.requestData.push(item);
                        }
                        else {
                            me.byteSent.push(item);
                        }
                    }
                }
            }
        }
        catch (error) {
            this.logger.error("processNetworkData--->", error);
        }
    }
    processHttpHostData(data) {
        const me = this;
        me.responseData = [];
        me.responseData = data;
    }
    getChartSeriesData() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            const me = this;
            try {
                me.chartSeriesData = yield me.generatedReportService.getChartSeriesData([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], me.testRun, "networkChart");
            }
            catch (error) {
                this.logger.error("getChartSeriesData : ", error);
            }
        });
    }
};
NetworkComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_4__["GeneratedReportService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__["CavLoggingService"] }
];
NetworkComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-network',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./network.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/network/network.component.html")).default
    })
], NetworkComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/network/network.module.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/generated-reports/network/network.module.ts ***!
  \*******************************************************************/
/*! exports provided: NetworkModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NetworkModule", function() { return NetworkModule; });
/* 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 _network_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./network.component */ "./src/app/pages/generated-reports/network/network.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");










const routes = [
    { path: '', component: _network_component__WEBPACK_IMPORTED_MODULE_3__["NetworkComponent"], }
];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_7__["HighchartsChartModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__["ReportFilterModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__["CavLoaderModule"]
];
const components = [
    _network_component__WEBPACK_IMPORTED_MODULE_3__["NetworkComponent"]
];
let NetworkModule = class NetworkModule {
};
NetworkModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_network_component__WEBPACK_IMPORTED_MODULE_3__["NetworkComponent"]],
        imports: [
            imports
        ],
        exports: [
            _network_component__WEBPACK_IMPORTED_MODULE_3__["NetworkComponent"]
        ]
    })
], NetworkModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/pages/pages.component.ts":
/*!******************************************************************!*\
  !*** ./src/app/pages/generated-reports/pages/pages.component.ts ***!
  \******************************************************************/
/*! exports provided: PagesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PagesComponent", function() { return PagesComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.ts");
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");





let PagesComponent = class PagesComponent {
    constructor(sessionService, generatedReportService, logger) {
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.logger = logger;
        this.relativePathOverview = 'reports/page-overview.json';
        this.relativePathBandwidth = 'reports/page-bandwidth.json';
        this.relativePathNetworkTiming = 'reports/page-network-timing.json';
        this.overviewData = [];
        this.pageBandwidthData = [];
        this.pageNetworkTimingData = [];
        this.isCompare = false;
        this.noteData = '';
    }
    ngOnInit() {
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.getPagesData();
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    getPagesData() {
        var _a, _b, _c, _d;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "pagesData.json";
                let pagesData = yield me.generatedReportService.readFileData(filePath);
                if (pagesData) {
                    me.overviewData = (_b = pagesData.overviewData) !== null && _b !== void 0 ? _b : [];
                    me.pageBandwidthData = (_c = pagesData.bandwidthData) !== null && _c !== void 0 ? _c : [];
                    me.pageNetworkTimingData = (_d = pagesData.networkTimingData) !== null && _d !== void 0 ? _d : [];
                    me.noteData = pagesData.noteData;
                }
            }
            catch (error) {
                this.logger.error("getPagesData : ", error);
            }
        });
    }
};
PagesComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_4__["CavLoggingService"] }
];
PagesComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-pages',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./pages.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/pages/pages.component.html")).default
    })
], PagesComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/pages/pages.module.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/generated-reports/pages/pages.module.ts ***!
  \***************************************************************/
/*! exports provided: PagesModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PagesModule", function() { return PagesModule; });
/* 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 _pages_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pages.component */ "./src/app/pages/generated-reports/pages/pages.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");








const routes = [
    { path: '', component: _pages_component__WEBPACK_IMPORTED_MODULE_3__["PagesComponent"], }
];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_7__["ReportFilterModule"]
];
const components = [
    _pages_component__WEBPACK_IMPORTED_MODULE_3__["PagesComponent"]
];
let PagesModule = class PagesModule {
};
PagesModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_pages_component__WEBPACK_IMPORTED_MODULE_3__["PagesComponent"]],
        imports: [
            imports
        ],
        exports: [
            _pages_component__WEBPACK_IMPORTED_MODULE_3__["PagesComponent"]
        ]
    })
], PagesModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/report-filter/report-filter.component.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/generated-reports/report-filter/report-filter.component.ts ***!
  \**********************************************************************************/
/*! exports provided: ReportFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportFilterComponent", function() { return ReportFilterComponent; });
/* 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");


let ReportFilterComponent = class ReportFilterComponent {
    constructor() {
        this.measurementChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.colorCodeChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.viewGraphClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.showSelectedClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.hideSelectedClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.showAllClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.userClickEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
    }
    ngOnInit() {
        this.measurementsOpt = [
            { value: "0", label: "Show all columns of measurement together" },
            { value: "1", label: "Show all test measurement together" },
            { value: "2", label: "Show all measurement data together with change & change% pair" }
        ],
            this.colorCodeOpt = [
                { value: "0", label: "No color codes" },
                { value: "1", label: "Color coding based on measurement" },
                { value: "2", label: "Color coding based on column type" }
            ];
    }
    // onClick(): void {
    //   this.userClickEvent.emit()
    // }
    onMeasurementChange(event) {
        this.measurementChange.emit(event);
    }
    onColorCodeChange(event) {
        this.colorCodeChange.emit(event);
    }
    viewGraph() {
        this.viewGraphClicked.emit();
    }
    showSelected() {
        this.showSelectedClicked.emit();
    }
    hideSelected() {
        this.hideSelectedClicked.emit();
    }
    showAll() {
        this.showAllClicked.emit();
    }
};
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], ReportFilterComponent.prototype, "isCompare", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], ReportFilterComponent.prototype, "selectedGraph", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "measurementChange", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "colorCodeChange", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "viewGraphClicked", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "showSelectedClicked", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "hideSelectedClicked", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "showAllClicked", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], ReportFilterComponent.prototype, "userClickEvent", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], ReportFilterComponent.prototype, "buttonClickHandler", void 0);
ReportFilterComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-report-filter',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./report-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/report-filter/report-filter.component.html")).default
    })
], ReportFilterComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/generated-reports/report-filter/report-filter.module.ts ***!
  \*******************************************************************************/
/*! exports provided: ReportFilterModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportFilterModule", function() { return ReportFilterModule; });
/* 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 _report_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./report-filter.component */ "./src/app/pages/generated-reports/report-filter/report-filter.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");






const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"],
];
const components = [
    _report_filter_component__WEBPACK_IMPORTED_MODULE_3__["ReportFilterComponent"]
];
let ReportFilterModule = class ReportFilterModule {
};
ReportFilterModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [components],
        imports: [
            imports
        ],
        exports: [
            components
        ]
    })
], ReportFilterModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/sessions/sessions.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/generated-reports/sessions/sessions.component.ts ***!
  \************************************************************************/
/*! exports provided: SessionsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionsComponent", function() { return SessionsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");






let SessionsComponent = class SessionsComponent {
    constructor(sessionService, generatedReportService, logger) {
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.logger = logger;
        this.relativePath = 'reports/session-data.json';
        this.sessionsData = [];
        this.chartSeriesData = [];
        this.isCompare = false;
        this.isChartEnabled = false;
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_4__;
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.reportName = (_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName;
        me.reportName = me.reportName;
        me.isChartEnabled = me.generatedReportService.isIncludeChartEnabled;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.getSessionData();
        me.getChartSeriesData();
    }
    getChartSeriesData() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                me.chartSeriesData = yield me.generatedReportService.getChartSeriesData([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], me.testRun, "sessionChart");
            }
            catch (error) {
                this.logger.error("getChartSeriesData :", error);
            }
        });
    }
    clickButtonEvent(event) {
        //console.log(event);
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    getSessionData() {
        var _a;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "sessionData.json";
                me.sessionsData = yield me.generatedReportService.readFileData(filePath);
            }
            catch (error) {
                this.logger.error("getSessionData: ", error);
            }
        });
    }
};
SessionsComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__["GeneratedReportService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__["CavLoggingService"] }
];
SessionsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-sessions',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./sessions.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/sessions/sessions.component.html")).default
    })
], SessionsComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/sessions/sessions.module.ts":
/*!*********************************************************************!*\
  !*** ./src/app/pages/generated-reports/sessions/sessions.module.ts ***!
  \*********************************************************************/
/*! exports provided: SessionsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionsModule", function() { return SessionsModule; });
/* 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 _sessions_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sessions.component */ "./src/app/pages/generated-reports/sessions/sessions.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");










// const routes: Routes = [
//   { path: '', component: SessionsComponent, }
// ]
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_7__["ReportFilterModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_8__["HighchartsChartModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__["CavLoaderModule"]
];
const components = [
    _sessions_component__WEBPACK_IMPORTED_MODULE_3__["SessionsComponent"]
];
let SessionsModule = class SessionsModule {
};
SessionsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_sessions_component__WEBPACK_IMPORTED_MODULE_3__["SessionsComponent"]],
        imports: [
            imports
        ],
        exports: [
            _sessions_component__WEBPACK_IMPORTED_MODULE_3__["SessionsComponent"]
        ]
    })
], SessionsModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/summary/summary.component.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/generated-reports/summary/summary.component.ts ***!
  \**********************************************************************/
/*! exports provided: SummaryComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SummaryComponent", function() { return SummaryComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.state */ "./src/app/pages/generated-reports/services/generated-report.state.ts");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__ = __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_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");







let SummaryComponent = class SummaryComponent {
    constructor(generatedReportService, sessionService, messageService, logger) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.messageService = messageService;
        this.logger = logger;
        this.summaryData = [];
        this.staticData = [];
        this.kpiMetricsData = [];
        this.metricsGraph = false;
        this.addComment = false;
        this.metricNameAndChartDataMap = new Map();
        this.metricNameAndChartDataArray = [];
        this.chartIdList = [];
        this.commentText = '';
        this.isCompare = false;
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.msrNames = [];
        this.kpiHeader = [];
        this.isChartEnabled = false;
        this.isCompare = false;
    }
    ngOnDestroy() {
        this.isCompare = false;
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.isCompare = (_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.compareApplied;
        me.isChartEnabled = me.generatedReportService.isIncludeChartEnabled;
        me.getExeAndConSummary();
        me.getSummaryData();
        me.getKIPIMetricsData();
        me.tableConfig1 = {
            config: {
                "tableName": "Test Run Details",
                "toggleFilter": false,
                "download": true,
                "toggleColumn": false
            }
        };
        me.kpiConfig = {
            config: {
                "masterCheckbox": true,
                "tableName": "KPI Metrics",
                "showHideData": true
            },
            tableAction: [
                {
                    "iconType": "icon",
                    "iconClass": "icons8 icons8-combo-chart",
                    "toolTip": "Show Selected Graph",
                    "action": "showGraph",
                    "needRowData": false
                }
            ],
        };
    }
    kpiTableClickButtonEvent(event) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
        const me = this;
        try {
            switch ((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) {
                case "clickable":
                    if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.columnClicked) === null || _d === void 0 ? void 0 : _d.key) === 'comment') {
                        me.addComment = true;
                        me.selectedRowData = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.row;
                        if (((_g = (_f = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _f === void 0 ? void 0 : _f.row) === null || _g === void 0 ? void 0 : _g.comment) === "Add Comment") {
                            me.commentText = "";
                            me.isUpdateComment = false;
                            me.onCommentChange(me.commentText);
                        }
                        else { //update comment
                            me.commentText = (_j = (_h = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _h === void 0 ? void 0 : _h.row) === null || _j === void 0 ? void 0 : _j.comment;
                            me.isUpdateComment = true;
                            me.onCommentChange(me.commentText);
                        }
                    }
                    else { //To view graph
                        me.getChartSeriesData((_l = (_k = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _k === void 0 ? void 0 : _k.row) === null || _l === void 0 ? void 0 : _l.index, (_o = (_m = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _m === void 0 ? void 0 : _m.row) === null || _o === void 0 ? void 0 : _o.name);
                    }
                    break;
                case "showGraph":
                    me.viewGraph();
                    break;
                case "rowCheckboxEnable":
                case "masterCheckboxEnable":
                    me.chartIdList = (_p = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _p === void 0 ? void 0 : _p.rowData;
                    break;
                default: //Default case is for checkbox select and unselect including master checkbox.
                    // me.selectedRow = event.cavEventExt?.rowData;
                    break;
            }
        }
        catch (error) {
            this.logger.error("kpiTableClickButtonEvent : ", error);
        }
    }
    getSummaryData() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + me.generatedReportService.reportName + "/analysisAndStaticSummaryData.json";
                let data = yield me.generatedReportService.readFileData(filePath);
                me.summaryData = data === null || data === void 0 ? void 0 : data.analysisSummary;
                me.analysisHeader = me.summaryData ? me.getFormatedDataForCavTable(me.summaryData, "testRunSummary") : [];
            }
            catch (error) {
                this.logger.error("getSummaryData: ", error);
            }
        });
    }
    goBack() {
        const me = this;
        me.metricNameAndChartDataMap = new Map();
        me.metricNameAndChartDataArray = [];
        me.metricsGraph = false;
        //me.chartIdList = [];
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    viewGraph() {
        var _a, _b, _c;
        const me = this;
        try {
            for (let i = 0; i < me.chartIdList.length; i++) {
                me.metricName = (_a = me.chartIdList[i]) === null || _a === void 0 ? void 0 : _a.name;
                me.getChartSeriesData((_b = me.chartIdList[i]) === null || _b === void 0 ? void 0 : _b.index, (_c = me.chartIdList[i]) === null || _c === void 0 ? void 0 : _c.name);
            }
        }
        catch (error) {
            this.logger.error("viewGraph : ", error);
        }
    }
    showSelected() {
        //console.log('showSelected');
    }
    showAll() {
        //console.log('show all');
    }
    hideSelected() {
        //console.log('hide selected');
    }
    getExeAndConSummary() {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + me.generatedReportService.reportName + "/exeCon.json";
                let data = yield me.generatedReportService.readFileData(filePath);
                if (data) {
                    me.exeSum = data.exe;
                    me.conSum = data.con;
                }
            }
            catch (error) {
                this.logger.error("getExeAndConSummary: ", error);
            }
        });
    }
    getFormatedDataForCavTable(data, table) {
        const columnData = Object.keys(data[0]).map((key, index) => {
            return {
                label: '',
                key: index === 0 ? 'name' : `val${index}`,
                type: table === 'testRunSummary' ? 0 : index === 0 ? 0 : 1,
            };
        });
        return [{ cols: columnData }];
    }
    getKIPIMetricsData() {
        var _a, _b, _c;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "kpiData.json";
                me.kpiMetricsData = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
                me.msrNames = me.kpiMetricsData && ((_c = me.kpiMetricsData[0]) === null || _c === void 0 ? void 0 : _c.msrName) || [];
                if (me.kpiMetricsData && me.msrNames.length > 0) {
                    me.isCompare = true;
                    me.kpiMetricsData = yield me.generatedReportService.createChangeAndChangePer(me.kpiMetricsData, me.msrNames);
                }
                const cols = [
                    {
                        label: "Metric Name",
                        key: "name",
                        type: 0,
                        width: me.isCompare ? "28%" : "48%",
                        click: me.isChartEnabled,
                    }
                ];
                if (me.msrNames.length > 0) {
                    me.msrNames.forEach((msrName, index) => {
                        cols.push({
                            label: msrName,
                            key: `val${index + 1}`,
                            type: 3,
                            width: "12%",
                            click: false,
                            bgColor: "#b1e9fa",
                            format: "dec_auto"
                        });
                        if (index > 0) {
                            cols.push({
                                label: msrName + " Change",
                                key: `change${index}`,
                                type: 8,
                                width: "14%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#d2f58f"
                            });
                            cols.push({
                                label: msrName + " Change(%)",
                                key: `changePer${index}`,
                                type: 8,
                                width: "15%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#f9d49f"
                            });
                        }
                    });
                    cols.push({
                        label: "Comment",
                        key: "comment",
                        type: 0,
                        width: "15%",
                        click: true
                    });
                }
                else {
                    cols.push({
                        label: "Value",
                        key: "val",
                        type: 3,
                        width: "12%",
                        click: false,
                        format: "dec_auto"
                    });
                    cols.push({
                        label: "Comment",
                        key: "comment",
                        type: 0,
                        click: true
                    });
                }
                me.kpiHeader = [{ cols: cols }];
            }
            catch (error) {
                this.logger.error("getKIPIMetricsData: ", error);
            }
        });
    }
    getChartSeriesData(iD, name) {
        var _a;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                let graphFileName = iD + ".json";
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/kpiMetric/" + graphFileName;
                let chartConfig = yield me.generatedReportService.readFileData(filePath);
                chartConfig = Object(_services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["attachHighchartsFunctions"])(chartConfig);
                me.metricNameAndChartDataMap.set(name, chartConfig);
                me.metricNameAndChartDataArray = Array.from(me.metricNameAndChartDataMap.entries());
                me.metricsGraph = true;
            }
            catch (error) {
                this.logger.error("getChartSeriesData : ", error);
            }
        });
    }
    onSaveComment() {
        var _a;
        try {
            const me = this;
            // Validate that comment text is not just whitespace
            const trimmedComment = me.commentText.trim();
            if (trimmedComment.length === 0) {
                me.messageService.add({ severity: 'warn', summary: 'Add Comment', detail: 'Please enter a comment before saving.' });
                return;
            }
            me.generatedReportService.addComment((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName, trimmedComment, me.testRun, me.selectedRowData.index, "kpi").subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__["AddCommentLoadingState"]) {
                    me.onLoadingAddComment(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__["AddCommentLoadedState"]) {
                    me.onLoadedAddComment(state);
                    return;
                }
            }, (error) => {
                me.onLoadingErrorAddComment(error);
            });
        }
        catch (error) {
            this.logger.error("onSaveComment : ", error);
            this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Error saving comment. Please try again.' });
        }
    }
    onLoadingAddComment(state) { }
    onLoadingErrorAddComment(error) {
        // Close the popup and reset state on error
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.logger.error("onLoadingErrorAddComment : ", error);
        this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Failed to save comment. Please try again.' });
    }
    onLoadedAddComment(state) {
        var _a, _b, _c, _d, _e, _f;
        const me = this;
        if (((_b = (_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.code) === 200) {
            // Close the popup and reset state
            me.addComment = false;
            me.commentText = '';
            me.selectedRowData = null;
            me.isUpdateComment = false;
            me.remainingChars = 300;
            // Refresh the table data to show the updated comment
            me.getKIPIMetricsData();
            me.messageService.add({ severity: 'success', summary: 'Add Comment', detail: (_d = (_c = state === null || state === void 0 ? void 0 : state.data) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.detailedMsg });
        }
        else {
            me.messageService.add({ severity: 'error', summary: 'Add Comment', detail: (_f = (_e = state === null || state === void 0 ? void 0 : state.data) === null || _e === void 0 ? void 0 : _e.status) === null || _f === void 0 ? void 0 : _f.detailedMsg });
        }
    }
    onCommentChange(value) {
        this.commentText = value.substring(0, 300); // enforce limit
        this.remainingChars = 300 - this.commentText.length;
    }
    onCancelComment() {
        // Close the popup and reset state without saving
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
    }
};
SummaryComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] },
    { type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__["CavMessageService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_6__["CavLoggingService"] }
];
SummaryComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-summary',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./summary.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/summary/summary.component.html")).default
    })
], SummaryComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/summary/summary.module.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/generated-reports/summary/summary.module.ts ***!
  \*******************************************************************/
/*! exports provided: SummaryModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SummaryModule", function() { return SummaryModule; });
/* 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 _summary_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./summary.component */ "./src/app/pages/generated-reports/summary/summary.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tabular-graph-view/tabular-graph-view.module */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");










// const routes: Routes = [
//   { path: '', component: SummaryComponent, }
// ]
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ToolbarModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_7__["HighchartsChartModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"],
    _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_8__["TabularGraphViewModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_9__["ReportFilterModule"]
];
const components = [
    _summary_component__WEBPACK_IMPORTED_MODULE_3__["SummaryComponent"]
];
let SummaryModule = class SummaryModule {
};
SummaryModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_summary_component__WEBPACK_IMPORTED_MODULE_3__["SummaryComponent"]],
        imports: [
            imports
        ],
        exports: [
            _summary_component__WEBPACK_IMPORTED_MODULE_3__["SummaryComponent"]
        ]
    })
], SummaryModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.ts ***!
  \********************************************************************************************/
/*! exports provided: TabularGraphViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabularGraphViewComponent", function() { return TabularGraphViewComponent; });
/* 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 highcharts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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");





let TabularGraphViewComponent = class TabularGraphViewComponent {
    constructor(generatedReportService, sessionService) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.chartOptions = {};
        this.chartIdList = [];
        this.tabularData = [];
        this.error = null;
        this.userClickEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_2__;
    }
    ngOnInit() {
    }
};
TabularGraphViewComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] }
];
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], TabularGraphViewComponent.prototype, "metricName", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], TabularGraphViewComponent.prototype, "chartOptions", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])()
], TabularGraphViewComponent.prototype, "chartIdList", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])()
], TabularGraphViewComponent.prototype, "userClickEvent", void 0);
TabularGraphViewComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-tabular-graph-view',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./tabular-graph-view.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.html")).default
    })
], TabularGraphViewComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts ***!
  \*****************************************************************************************/
/*! exports provided: TabularGraphViewModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabularGraphViewModule", function() { return TabularGraphViewModule; });
/* 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 _tabular_graph_view_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabular-graph-view.component */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");









const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__["CavTableModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["ToolbarModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_5__["HighchartsChartModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["InputTextareaModule"],
];
const components = [
    _tabular_graph_view_component__WEBPACK_IMPORTED_MODULE_3__["TabularGraphViewComponent"]
];
let TabularGraphViewModule = class TabularGraphViewModule {
};
TabularGraphViewModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [components],
        imports: [
            imports,
            src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_8__["CavLoaderModule"]
        ],
        exports: [
            components
        ]
    })
], TabularGraphViewModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/tabular-view/tabular-view.component.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/generated-reports/tabular-view/tabular-view.component.ts ***!
  \********************************************************************************/
/*! exports provided: TabularViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabularViewComponent", function() { return TabularViewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.state */ "./src/app/pages/generated-reports/services/generated-report.state.ts");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__ = __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_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");







let TabularViewComponent = class TabularViewComponent {
    constructor(generatedReportService, sessionService, messageService, logger) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.messageService = messageService;
        this.logger = logger;
        this.relativePath = 'reports/tabular-view.json';
        this.tabularData = [];
        this.compareTableData = [];
        this.metricsGraph = false;
        this.addComment = false;
        this.chartSeriesData = [];
        this.groupBy = ["rowGroup"];
        this.error = null;
        this.chartIdList = [];
        this.metricNameList = [];
        this.metricNameAndChartDataMap = new Map();
        this.metricNameAndChartDataArray = [];
        this.isCompare = false;
        this.msrNames = [];
        this.cavHeader = [];
        this.headerNames = [];
        this.cols = [];
        this.commentText = '';
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.isChartEnabled = false;
        this.tableConfigAgg = null;
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.headerNames = me.generatedReportService.getHeaderNames();
        me.testRun = me.sessionService.session.testRun.id;
        me.reportName = (_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName;
        me.reportName = me.reportName;
        me.isChartEnabled = me.generatedReportService.isIncludeChartEnabled;
        me.getTabularData();
        me.tableConfigAgg = {
            config: {
                "masterCheckbox": true,
                "showHideData": true
            },
            tableAction: [
                {
                    "iconType": "icon",
                    "iconClass": "icons8 icons8-combo-chart",
                    "toolTip": "Show Selected Graph",
                    "action": "showGraph",
                    "needRowData": false
                }
            ],
        };
    }
    getTabularData() {
        var _a, _b, _c;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "metricSummaryData.json";
                me.compareTableData = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
                me.msrNames = me.compareTableData && ((_c = me.compareTableData[0]) === null || _c === void 0 ? void 0 : _c.msr) || [];
                if (me.compareTableData && me.msrNames.length > 0) {
                    me.isCompare = true;
                    me.compareTableData = yield me.generatedReportService.createChangeAndChangePer(me.compareTableData, me.msrNames);
                }
                const cols = [
                    {
                        label: "Group",
                        key: "rowGrouping",
                        type: 0,
                        width: me.isCompare ? "14%" : "25%",
                    },
                    {
                        label: "Metric Name",
                        key: "name",
                        type: 0,
                        width: me.isCompare ? "22%" : "30%",
                        click: me.isChartEnabled,
                    }
                ];
                if (me.msrNames.length > 0) {
                    me.msrNames.forEach((msrName, index) => {
                        cols.push({
                            label: msrName,
                            key: `val${index + 1}`,
                            type: 3,
                            width: "12%",
                            click: false,
                            bgColor: "#b1e9fa"
                        });
                        if (index > 0) {
                            cols.push({
                                label: msrName + " Change",
                                key: `change${index}`,
                                type: 8,
                                width: "12%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#d2f58f"
                            });
                            cols.push({
                                label: msrName + " Change(%)",
                                key: `changePer${index}`,
                                type: 8,
                                width: "15%",
                                click: false,
                                classes: "text-right",
                                bgColor: "#f9d49f"
                            });
                        }
                    });
                }
                else {
                    cols.push({
                        label: "Value",
                        key: "val",
                        type: 3,
                        width: "12%",
                        click: false
                    });
                }
                cols.push({
                    label: "Comment",
                    key: "comment",
                    type: 0,
                    click: true,
                    width: me.isCompare ? "15%" : "30%"
                });
                me.cavHeader = [{ cols: cols }];
            }
            catch (error) {
                this.logger.error("getKIPIMetricsData: ", error);
            }
        });
    }
    handleTabularDataClick(event) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
        const me = this;
        try {
            switch ((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) {
                case "clickable":
                    if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.columnClicked) === null || _d === void 0 ? void 0 : _d.key) === 'comment') {
                        me.addComment = true;
                        me.selectedRowData = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.row;
                        if (((_g = (_f = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _f === void 0 ? void 0 : _f.row) === null || _g === void 0 ? void 0 : _g.comment) === "Add Comment") {
                            me.commentText = "";
                            me.isUpdateComment = false;
                            me.onCommentChange(me.commentText);
                        }
                        else { //update comment
                            me.commentText = (_j = (_h = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _h === void 0 ? void 0 : _h.row) === null || _j === void 0 ? void 0 : _j.comment;
                            me.isUpdateComment = true;
                            me.onCommentChange(me.commentText);
                        }
                    }
                    else { //To view graph
                        me.getChartSeriesData((_l = (_k = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _k === void 0 ? void 0 : _k.row) === null || _l === void 0 ? void 0 : _l.gId, (_o = (_m = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _m === void 0 ? void 0 : _m.row) === null || _o === void 0 ? void 0 : _o.name);
                    }
                    break;
                case "showGraph":
                    me.viewGraph();
                    break;
                case "rowCheckboxDisable":
                case "masterCheckboxEnable":
                    me.metricsGraph = false;
                    let rowData = (_q = (_p = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _p === void 0 ? void 0 : _p.rowData) === null || _q === void 0 ? void 0 : _q.filter(row => row.data && Object.keys(row.data).length > 1);
                    me.chartIdList = rowData;
                    break;
                default: //Default case is for checkbox select and unselect including master checkbox.
                    // me.selectedRow = event.cavEventExt?.rowData;
                    break;
            }
        }
        catch (error) {
            this.logger.error("kpiTableClickButtonEvent : ", error);
        }
    }
    goBack() {
        try {
            const me = this;
            me.metricsGraph = false;
            me.metricNameAndChartDataMap = new Map();
            me.metricNameAndChartDataArray = [];
            me.metricOrderList = [];
            // me.chartIdList = [];
        }
        catch (error) {
            this.logger.error("goBack : ", error);
        }
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    viewGraph() {
        var _a, _b, _c, _d;
        for (let i = 0; i < this.chartIdList.length; i++) {
            this.getChartSeriesData((_b = (_a = this.chartIdList[i]) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.gId, (_d = (_c = this.chartIdList[i]) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.name);
        }
    }
    getChartSeriesData(iD, name) {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                let graphFileName = iD + ".json";
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + me.reportName + "/metricCharts/" + graphFileName;
                let chartConfig = yield me.generatedReportService.readFileData(filePath);
                chartConfig = Object(_services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["attachHighchartsFunctions"])(chartConfig);
                me.metricNameAndChartDataMap.set(name, chartConfig);
                me.metricNameAndChartDataArray = Array.from(me.metricNameAndChartDataMap.entries());
                me.metricsGraph = true;
            }
            catch (error) {
                this.logger.error("getChartSeriesData : ", error);
            }
        });
    }
    onSaveComment() {
        var _a;
        try {
            const me = this;
            // Validate that comment text is not just whitespace
            const trimmedComment = me.commentText.trim();
            if (trimmedComment.length === 0) {
                me.messageService.add({ severity: 'warn', summary: 'Add Comment', detail: 'Please enter a comment before saving.' });
                return;
            }
            me.generatedReportService.addComment((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName, trimmedComment, me.testRun, me.selectedRowData.index, "table").subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__["AddCommentLoadingState"]) {
                    me.onLoadingAddComment(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_2__["AddCommentLoadedState"]) {
                    me.onLoadedAddComment(state);
                    return;
                }
            }, (error) => {
                me.onLoadingErrorAddComment(error);
            });
        }
        catch (error) {
            this.logger.error("onSaveComment : ", error);
            this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Error saving comment. Please try again.' });
        }
    }
    onLoadingAddComment(state) { }
    onLoadedAddComment(state) {
        var _a, _b, _c, _d, _e, _f;
        const me = this;
        if (((_b = (_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.code) === 200) {
            // Close the popup and reset state
            me.addComment = false;
            me.commentText = '';
            me.selectedRowData = null;
            me.isUpdateComment = false;
            me.remainingChars = 300;
            // Refresh the table data to show the updated comment
            me.getTabularData();
            me.messageService.add({ severity: 'success', summary: 'Add Comment', detail: (_d = (_c = state === null || state === void 0 ? void 0 : state.data) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.detailedMsg });
        }
        else {
            me.messageService.add({ severity: 'error', summary: 'Add Comment', detail: (_f = (_e = state === null || state === void 0 ? void 0 : state.data) === null || _e === void 0 ? void 0 : _e.status) === null || _f === void 0 ? void 0 : _f.detailedMsg });
        }
    }
    onLoadingErrorAddComment(error) {
        // Close the popup and reset state on error
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
        this.logger.error("onLoadingErrorAddComment : ", error);
        this.messageService.add({ severity: 'error', summary: 'Add Comment', detail: 'Failed to save comment. Please try again.' });
    }
    onCommentChange(value) {
        this.commentText = value.substring(0, 300); // enforce limit
        this.remainingChars = 300 - this.commentText.length;
    }
    onCancelComment() {
        // Close the popup and reset state without saving
        this.addComment = false;
        this.commentText = '';
        this.selectedRowData = null;
        this.isUpdateComment = false;
        this.remainingChars = 300;
    }
};
TabularViewComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_3__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] },
    { type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_5__["CavMessageService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_6__["CavLoggingService"] }
];
TabularViewComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-tabular-view',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./tabular-view.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/tabular-view/tabular-view.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
    })
], TabularViewComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/tabular-view/tabular-view.module.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/generated-reports/tabular-view/tabular-view.module.ts ***!
  \*****************************************************************************/
/*! exports provided: TabularViewModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabularViewModule", function() { return TabularViewModule; });
/* 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 _tabular_view_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabular-view.component */ "./src/app/pages/generated-reports/tabular-view/tabular-view.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tabular-graph-view/tabular-graph-view.module */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");









const routes = [
    { path: '', component: _tabular_view_component__WEBPACK_IMPORTED_MODULE_3__["TabularViewComponent"], }
];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"],
    _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_7__["TabularGraphViewModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__["ReportFilterModule"]
];
const components = [
    _tabular_view_component__WEBPACK_IMPORTED_MODULE_3__["TabularViewComponent"]
];
let TabularViewModule = class TabularViewModule {
};
TabularViewModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_tabular_view_component__WEBPACK_IMPORTED_MODULE_3__["TabularViewComponent"]],
        imports: [
            imports
        ],
        exports: [
            _tabular_view_component__WEBPACK_IMPORTED_MODULE_3__["TabularViewComponent"]
        ]
    })
], TabularViewModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/title/title.component.ts":
/*!******************************************************************!*\
  !*** ./src/app/pages/generated-reports/title/title.component.ts ***!
  \******************************************************************/
/*! exports provided: TitleComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TitleComponent", function() { return TitleComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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");
/* harmony import */ var _my_library_reports_metrics_service_metrics_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../my-library/reports/metrics/service/metrics.service */ "./src/app/pages/my-library/reports/metrics/service/metrics.service.ts");
/* harmony import */ var _services_generated_report_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../services/generated-report.state */ "./src/app/pages/generated-reports/services/generated-report.state.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");








let TitleComponent = class TitleComponent {
    constructor(metricsService, sessionService, generatedReportService, logger) {
        this.metricsService = metricsService;
        this.sessionService = sessionService;
        this.generatedReportService = generatedReportService;
        this.logger = logger;
        this.subscription = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subscription"]();
        this.isComapre = false;
        this.targetDur = [];
    }
    ngOnDestroy() {
        this.subscription.unsubscribe();
    }
    ngOnInit() {
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.getLogo();
        me.subscription = this.metricsService.reportNameObj$.subscribe(data => {
            if (data) {
                me.reportName = data;
                me.generatedReportService.reportName = me.reportName;
                me.getTitleData();
            }
        });
    }
    getTitleData() {
        var _a;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "titlePage.json";
                let titleData = yield me.generatedReportService.readFileData(filePath);
                console.log("titleData---->", titleData);
                if (titleData) {
                    me.createdBy = titleData === null || titleData === void 0 ? void 0 : titleData.RCB;
                    me.rptTitle = titleData === null || titleData === void 0 ? void 0 : titleData.RT;
                    me.createdOn = titleData === null || titleData === void 0 ? void 0 : titleData.RCO;
                    me.rptDuration = titleData === null || titleData === void 0 ? void 0 : titleData.RD;
                    me.durTitile = "Report Duration";
                    if ((titleData === null || titleData === void 0 ? void 0 : titleData.finalMsrNames.length) > 0) {
                        me.isComapre = true;
                        me.generatedReportService.setIsCompare(me.isComapre);
                        me.durTitile = "Compare Duration : Source";
                        for (let i = 0; i < (titleData === null || titleData === void 0 ? void 0 : titleData.finalMsrNames.length); i++) {
                            if (i == 0) {
                                me.rptDuration = titleData === null || titleData === void 0 ? void 0 : titleData.finalMsrNames[i];
                            }
                            else {
                                me.targetDur.push(titleData === null || titleData === void 0 ? void 0 : titleData.finalMsrNames[i]);
                            }
                        }
                    }
                }
            }
            catch (error) {
                this.logger.error("getTitleData : ", error);
            }
        });
    }
    onLoading(state) { }
    ;
    onLoadingError(state) { }
    ;
    onLoaded(state) {
    }
    getLogo() {
        try {
            const me = this;
            me.generatedReportService.getLogo().subscribe((state) => {
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_5__["GetLogoLoadingState"]) {
                    me.onLoadingLogo(state);
                    return;
                }
                if (state instanceof _services_generated_report_state__WEBPACK_IMPORTED_MODULE_5__["GetLogoLoadedState"]) {
                    me.onLoadedLogo(state);
                    return;
                }
            }, (state) => {
                me.onLoadingErrorLogo(state);
            });
        }
        catch (error) {
            this.logger.error(error);
        }
    }
    onLoadingLogo(state) { }
    ;
    onLoadingErrorLogo(state) { }
    ;
    onLoadedLogo(state) {
        var _a, _b, _c, _d;
        try {
            if ((_b = (_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.image_data) {
                this.imageUrl = `data:image/png;base64,${(_d = (_c = state === null || state === void 0 ? void 0 : state.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.image_data}`;
            }
        }
        catch (error) {
            this.logger.error(error);
        }
    }
};
TitleComponent.ctorParameters = () => [
    { type: _my_library_reports_metrics_service_metrics_service__WEBPACK_IMPORTED_MODULE_4__["MetricsService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__["GeneratedReportService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_7__["CavLoggingService"] }
];
TitleComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-title',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./title.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/title/title.component.html")).default
    })
], TitleComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/title/title.module.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/generated-reports/title/title.module.ts ***!
  \***************************************************************/
/*! exports provided: TitleModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TitleModule", function() { return TitleModule; });
/* 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 _title_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./title.component */ "./src/app/pages/generated-reports/title/title.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");







// const routes: Routes = [
//   { path: '', component: TitleComponent, }
// ]
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
];
const components = [
    _title_component__WEBPACK_IMPORTED_MODULE_3__["TitleComponent"]
];
let TitleModule = class TitleModule {
};
TitleModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_title_component__WEBPACK_IMPORTED_MODULE_3__["TitleComponent"]],
        imports: [
            imports
        ],
        exports: [
            _title_component__WEBPACK_IMPORTED_MODULE_3__["TitleComponent"]
        ]
    })
], TitleModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.ts ***!
  \******************************************************************************************/
/*! exports provided: TransactionStatsComponent, attachHighchartsFunctions */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionStatsComponent", function() { return TransactionStatsComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "attachHighchartsFunctions", function() { return attachHighchartsFunctions; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.ts");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_3__);
/* 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_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/cavLoggerService/cav-logging.service */ "./src/app/shared/cavLoggerService/cav-logging.service.ts");







let TransactionStatsComponent = class TransactionStatsComponent {
    constructor(generatedReportService, sessionService, logger) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.logger = logger;
        this.relativePath = 'reports/transaction-stats.json';
        this.transactionData = [];
        this.chartSeriesData = [];
        this.isCompare = false;
        this.metricsGraph = false;
        this.metricNameAndChartDataArray = [];
        this.metricNameAndChartDataMap = new Map();
        this.highcharts = highcharts__WEBPACK_IMPORTED_MODULE_3__;
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.testRun = me.sessionService.session.testRun.id;
        me.reportName = (_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName;
        me.reportName = me.reportName;
        me.isCompare = me.generatedReportService.getIsCompare();
        me.getTransactionData();
        //me.getChartSeriesData();
    }
    handleChartClick(event) {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
        const me = this;
        if (((_d = (_c = (_b = (_a = event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionEvent) === null || _b === void 0 ? void 0 : _b.cavEventExt) === null || _c === void 0 ? void 0 : _c.columnClicked) === null || _d === void 0 ? void 0 : _d.label) === "Transaction Name") {
            let chartIdx = (_h = (_g = (_f = (_e = event.cavEventExt) === null || _e === void 0 ? void 0 : _e.actionEvent) === null || _f === void 0 ? void 0 : _f.cavEventExt) === null || _g === void 0 ? void 0 : _g.row) === null || _h === void 0 ? void 0 : _h.rowIndex;
            let transName = (_m = (_l = (_k = (_j = event.cavEventExt) === null || _j === void 0 ? void 0 : _j.actionEvent) === null || _k === void 0 ? void 0 : _k.cavEventExt) === null || _l === void 0 ? void 0 : _l.row) === null || _m === void 0 ? void 0 : _m.trans;
            for (let i = 0; i < 5; i++) {
                let fileId = i + chartIdx;
                me.getChartSeriesData(fileId, transName);
            }
        }
    }
    goBack() {
        const me = this;
        me.metricNameAndChartDataMap = new Map();
        me.metricNameAndChartDataArray = [];
        me.metricsGraph = false;
    }
    getChartSeriesData(iD, name) {
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                let graphFileName = iD + ".json";
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + me.reportName + "/transactionChart/" + graphFileName;
                let chartConfig = yield me.generatedReportService.readFileData(filePath);
                chartConfig = attachHighchartsFunctions(chartConfig);
                me.metricNameAndChartDataMap.set(name, chartConfig);
                me.metricNameAndChartDataArray.push(Array.from(me.metricNameAndChartDataMap.entries()));
                me.metricsGraph = true;
            }
            catch (error) {
                this.logger.error("getChartSeriesData : ", error);
            }
        });
    }
    onChangeMeasurement(event) {
        //console.log(event.value);
    }
    onChangeColorCode(event) {
        //console.log(event.value);
    }
    getTransactionData() {
        var _a, _b;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
            try {
                const me = this;
                const filePath = "webapps/logs/TR" + me.testRun + "/reports/" + ((_a = me.generatedReportService) === null || _a === void 0 ? void 0 : _a.reportName) + "/" + "transactionData.json";
                me.transactionData = (_b = (yield me.generatedReportService.readFileData(filePath))) !== null && _b !== void 0 ? _b : [];
            }
            catch (error) {
                this.logger.error("getTransactionData : ", error);
            }
        });
    }
};
TransactionStatsComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] },
    { type: src_app_shared_cavLoggerService_cav_logging_service__WEBPACK_IMPORTED_MODULE_5__["CavLoggingService"] }
];
TransactionStatsComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-transaction-stats',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./transaction-stats.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.html")).default
    })
], TransactionStatsComponent);

function attachHighchartsFunctions(chartConfig) {
    chartConfig.chart.width = window.innerWidth - 50;
    chartConfig.chart.type = 'spline';
    if (chartConfig.xAxis) {
        const xAxis = chartConfig.xAxis[0];
        if (xAxis.title && xAxis.title.text === 'Time(HH:MM)') {
            xAxis.title.text = null;
        }
        xAxis.labels = xAxis.labels || {};
        chartConfig.xAxis[0].labels.formatter = function () {
            if (typeof this.value === 'number') {
                const formatted = highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%H:%M', this.value);
                return formatted === '00:00'
                    ? highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%e. %b', this.value)
                    : formatted;
            }
            else if (typeof this.value === 'string' && !isNaN(Number(this.value))) {
                const numVal = Number(this.value);
                const formatted = highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%H:%M', numVal);
                return formatted === '00:00'
                    ? highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%e. %b', numVal)
                    : formatted;
            }
            else {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%H:%M', this.value) === '00:00'
                    ? highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%e. %b', this.value)
                    : highcharts__WEBPACK_IMPORTED_MODULE_3__["dateFormat"]('%H:%M', this.value);
            }
        };
    }
    if (chartConfig.yAxis) {
        chartConfig.yAxis.labels = chartConfig.yAxis.labels || {};
        chartConfig.yAxis.labels.formatter = function () {
            if (this.value < 1000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value, 0);
            }
            else if (this.value >= 1000000000000000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value / 1000000000000000, 0) + "P";
            }
            else if (this.value >= 1000000000000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value / 1000000000000, 0) + "T";
            }
            else if (this.value >= 1000000000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value / 1000000000, 0) + "G";
            }
            else if (this.value >= 1000000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value / 1000000, 0) + "M";
            }
            else if (this.value >= 1000) {
                return highcharts__WEBPACK_IMPORTED_MODULE_3__["numberFormat"](this.value / 1000, 0) + "K";
            }
            else {
                return this.value;
            }
        };
    }
    chartConfig.legend.enabled = true;
    return chartConfig;
}


/***/ }),

/***/ "./src/app/pages/generated-reports/transaction-stats/transaction-stats.module.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/generated-reports/transaction-stats/transaction-stats.module.ts ***!
  \***************************************************************************************/
/*! exports provided: TransactionStatsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionStatsModule", function() { return TransactionStatsModule; });
/* 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 _transaction_stats_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transaction-stats.component */ "./src/app/pages/generated-reports/transaction-stats/transaction-stats.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var highcharts_angular__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! highcharts-angular */ "./node_modules/highcharts-angular/__ivy_ngcc__/fesm2015/highcharts-angular.js");
/* harmony import */ var _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../report-filter/report-filter.module */ "./src/app/pages/generated-reports/report-filter/report-filter.module.ts");
/* harmony import */ var src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/shared/cav-loader/cav-loader.module */ "./src/app/shared/cav-loader/cav-loader.module.ts");
/* harmony import */ var _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tabular-graph-view/tabular-graph-view.module */ "./src/app/pages/generated-reports/tabular-graph-view/tabular-graph-view.module.ts");











const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_6__["CavTableModule"],
    highcharts_angular__WEBPACK_IMPORTED_MODULE_7__["HighchartsChartModule"],
    _report_filter_report_filter_module__WEBPACK_IMPORTED_MODULE_8__["ReportFilterModule"],
    src_app_shared_cav_loader_cav_loader_module__WEBPACK_IMPORTED_MODULE_9__["CavLoaderModule"]
];
const components = [
    _transaction_stats_component__WEBPACK_IMPORTED_MODULE_3__["TransactionStatsComponent"]
];
let TransactionStatsModule = class TransactionStatsModule {
};
TransactionStatsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_transaction_stats_component__WEBPACK_IMPORTED_MODULE_3__["TransactionStatsComponent"]],
        imports: [
            imports,
            _tabular_graph_view_tabular_graph_view_module__WEBPACK_IMPORTED_MODULE_10__["TabularGraphViewModule"]
        ],
        exports: [
            _transaction_stats_component__WEBPACK_IMPORTED_MODULE_3__["TransactionStatsComponent"]
        ]
    })
], TransactionStatsModule);



/***/ }),

/***/ "./src/app/pages/generated-reports/trend-report/trend-report.component.scss":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/generated-reports/trend-report/trend-report.component.scss ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("");

/***/ }),

/***/ "./src/app/pages/generated-reports/trend-report/trend-report.component.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/generated-reports/trend-report/trend-report.component.ts ***!
  \********************************************************************************/
/*! exports provided: TrendReportComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrendReportComponent", function() { return TrendReportComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/generated-report.service */ "./src/app/pages/generated-reports/services/generated-report.service.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");
/* harmony import */ var _home_script_manager_services_script_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../home/script-manager/services/script-utils.service */ "./src/app/pages/home/script-manager/services/script-utils.service.ts");





let TrendReportComponent = class TrendReportComponent {
    constructor(generatedReportService, sessionService, scriptUtilsService) {
        this.generatedReportService = generatedReportService;
        this.sessionService = sessionService;
        this.scriptUtilsService = scriptUtilsService;
    }
    ngOnInit() {
        const me = this;
        me.showCompScrDialog('server_signatures');
    }
    showCompScrDialog(openFor) {
        try {
            let trData = [];
            this.generatedReportService.compareTestRuns.forEach(tr => {
                trData.push(tr);
            });
            this.sessionService.compareTrScript = trData;
            this.scriptUtilsService.openScriptCompareFrom = openFor;
        }
        catch (e) {
            console.error(e);
        }
    }
};
TrendReportComponent.ctorParameters = () => [
    { type: _services_generated_report_service__WEBPACK_IMPORTED_MODULE_2__["GeneratedReportService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _home_script_manager_services_script_utils_service__WEBPACK_IMPORTED_MODULE_4__["ScriptUtilService"] }
];
TrendReportComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-trend-report',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./trend-report.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/generated-reports/trend-report/trend-report.component.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./trend-report.component.scss */ "./src/app/pages/generated-reports/trend-report/trend-report.component.scss")).default]
    })
], TrendReportComponent);



/***/ }),

/***/ "./src/app/pages/generated-reports/trend-report/trend-report.module.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/generated-reports/trend-report/trend-report.module.ts ***!
  \*****************************************************************************/
/*! exports provided: TrendReportModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrendReportModule", function() { return TrendReportModule; });
/* 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 _trend_report_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trend-report.component */ "./src/app/pages/generated-reports/trend-report/trend-report.component.ts");
/* harmony import */ var src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/common-iframe/common-iframe.module */ "./src/app/shared/common-iframe/common-iframe.module.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/cav-table/cav-table.module */ "./src/app/shared/cav-table/cav-table.module.ts");
/* harmony import */ var _home_script_manager_script_compare_script_compare_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../home/script-manager/script-compare/script-compare.module */ "./src/app/pages/home/script-manager/script-compare/script-compare.module.ts");









const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormsModule"],
    primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
    src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_7__["CavTableModule"],
    src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_4__["CommonIfameModule"],
    _home_script_manager_script_compare_script_compare_module__WEBPACK_IMPORTED_MODULE_8__["ScriptCompareModule"]
];
const components = [
    _trend_report_component__WEBPACK_IMPORTED_MODULE_3__["TrendReportComponent"]
];
let TrendReportModule = class TrendReportModule {
};
TrendReportModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_trend_report_component__WEBPACK_IMPORTED_MODULE_3__["TrendReportComponent"]],
        imports: [
            imports
        ],
        exports: [
            _trend_report_component__WEBPACK_IMPORTED_MODULE_3__["TrendReportComponent"]
        ]
    })
], TrendReportModule);



/***/ })

}]);