(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["splash-screen-splash-screen-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/load-test/splash-screen/splash-screen.component.html":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/load-test/splash-screen/splash-screen.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=\"container p-5\">\r\n    <div class=\"p-grid p-align-center p-justify-between px-5\">\r\n        <div class=\"p-grid p-align-center\">\r\n            <h3 class=\"my-0\">{{heading}}</h3>\r\n        </div>\r\n        <div class=\"p-grid p-align-center\">{{testRunDisplay}}<strong>{{testRunNumber}}</strong></div>\r\n        <div class=\"p-grid p-align-center\">{{testnameDisplay}}: <strong class=\"elipseText\" pTooltip=\"{{testName}}\"\r\n                tooltipPosition=\"bottom\">{{testName}}</strong></div>\r\n     <div class=\"p-grid p-align-center\">Test Name: <strong class=\"elipseText\" pTooltip=\"{{scenarioNameForTop}}\"\r\n                tooltipPosition=\"bottom\">{{scenarioNameForTop}}</strong></div>\r\n      <div class=\"p-grid p-align-center my-5\">\r\n            <button pButton type=\"button\" label=\"View Log\" class=\"ui-button-rounded mx-3\"\r\n                (click)=\"downloadLogs()\"></button>\r\n            <button *ngIf=\"!showCancelTest && tabIndex==0\" (click)=\"stopTest()\" pButton type=\"button\"\r\n                label=\"Cancel Test\" class=\"ui-button-rounded mx-3 ui-button-danger\"></button>\r\n        </div>\r\n    </div>\r\n    <div class=\"splash-tr-screen\">\r\n        <!--NC Case-->\r\n        <p-tabView (onChange)=\"onTabChange($event)\" *ngIf=\"showGeneratorCount\">\r\n            <p-tabPanel header=\"Controller\">\r\n                <div class=\"splash-screen-box ui-g\">\r\n                    <div class=\"left-box border-4\">\r\n                        <div class=\"p-5\">\r\n                            <p-table #dt [value]=\"data\" dataKey=\"stageName\" [resizableColumns]='true'\r\n                                rowGroupExpandMode=\"multiple\" expandableRowGroups=\"true\" scrollable=\"true\"\r\n                                scrollHeight=\"calc(100vh - 240px)\" class=\"scen-ptable\">\r\n                                <ng-template pTemplate=\"header\">\r\n                                    <tr class=\"scen-ptable-thead\">\r\n                                        <th pTooltip=\"Stage Name\" tooltipPosition=\"bottom\"\r\n                                            style=\"width:150px;cursor: default;\"><i class=\"las-tasks-solid\"></i>\r\n                                            {{cols[0].header}}</th>\r\n                                        <th pTooltip=\"Stage Start Time\" tooltipPosition=\"bottom\"\r\n                                            style=\"width:115px;cursor: default;\"><i\r\n                                                class=\"icons8 icons8-order-history\"></i> {{cols[1].header}}</th>\r\n                                        <th pTooltip=\"Complete Summary\" tooltipPosition=\"bottom\"\r\n                                            style=\"width:350px;cursor: default;\"><i class=\"las-clipboard-solid\"></i>\r\n                                            {{cols[2].header}}</th>\r\n                                        <th pTooltip=\"Duration of stage\" tooltipPosition=\"bottom\"\r\n                                            style=\"width:95px;cursor: default;\"><i class=\"icons8 icons8-clock\"></i>\r\n                                            {{cols[3].header}}</th>\r\n                                        <th pTooltip=\"Status of stage Completed, Error, In-Progress\"\r\n                                            style=\"width:58px;cursor: default;\"><i class=\"icons8 icons8-info\"></i>\r\n                                            {{cols[4].header}}</th>\r\n                                    </tr>\r\n                                </ng-template>\r\n                                <ng-template pTemplate=\"body\" let-row let-expanded=\"expanded\" let-i=rowIndex>\r\n                                    <tr class=\"scen-ptable-tbody\">\r\n                                        <td style=\"width:150px;\">\r\n                                            <a href=\"#\" [pRowToggler]=\"row\"\r\n                                                (click)=\"showLogsForRow(dt.expandedRowKeys,'')\">\r\n                                                <i pTooltip=\"Click to view logs\" tooltipPosition=\"right\"\r\n                                                    [ngClass]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></i>\r\n                                            </a>\r\n                                            {{row[cols[0].field]}}\r\n                                        </td>\r\n                                        <td style=\"text-align:right;width:115px;\">{{row[cols[1].field]}}</td>\r\n                                        <td pTooltip=\"{{row[cols[2].field]}}\" style=\"cursor: default;width:350px;\"\r\n                                            tooltipPosition=\"bottom\" tooltipStyleClass=\"testTooltip\">\r\n                                            {{row[cols[5].field]}}</td>\r\n                                        <td style=\"text-align: right;width:95px;\">{{row[cols[3].field]}}</td>\r\n                                        <td style=\"text-align: center;width:58px;\" *ngIf=\"row[cols[4].field]==='Error'\">\r\n                                            <i (click)=\"showDialog(row[cols[0].field],'')\"\r\n                                                class=\"icons8 icons8-error text-danger\"></i>\r\n\r\n                                        </td>\r\n                                        <td style=\"text-align: center;width:58px;\"\r\n                                            *ngIf=\"row[cols[4].field]==='Completed'\">\r\n                                            <i class=\"icons8 icons8-ok text-success\"></i>\r\n                                        </td>\r\n                                        <td style=\"text-align: center;width:58px;\"\r\n                                            *ngIf=\"row[cols[4].field]==='Running'\">\r\n                                            <i class=\"icons8 icons8-spinner spin btn-icon\"></i>\r\n                                        </td>\r\n                                    </tr>\r\n\r\n                                </ng-template>\r\n                                <ng-template pTemplate=\"rowexpansion\" let-rowData>\r\n                                    <div class=\"expansion-panel\"\r\n                                        [ngStyle]=tableWidth>\r\n                                        <span *ngFor=\"let log of rowData['log']\">\r\n                                            <span>\r\n                                                {{log}}\r\n                                            </span><br />\r\n                                        </span>\r\n                                    </div>\r\n                                </ng-template>\r\n                            </p-table>\r\n                        </div>\r\n                    </div>\r\n                    <!-------------right panel--------------->\r\n\r\n                        <div class=\"right-box border-4\">\r\n\r\n                            <ul class=\"list-unstyled\">\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\"  pTooltip=\"User who started test\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"fa fa-user ico\"></i>User<strong>{{OverallInfo?.owner}}</strong>\r\n                                    </div>\r\n                                    <div class=\"right-list\"  pTooltip=\"Date and Time\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"icons8 icons8-clock\"></i>Start Date\r\n                                        Time<strong>{{OverallInfo?.startDateTime}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\"  pTooltip=\"Target duration of scenario\"\r\n                                        tooltipPosition=\"top\" tooltipStyleClass=\"durationTooltip\">\r\n                                        <i\r\n                                            class=\"icons8 icons8-clock\"></i>Duration<strong>{{OverallInfo?.targetCompletion}}</strong>\r\n                                    </div>\r\n                                    <div class=\"right-list\"  pTooltip=\"Test type\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"icons8 icons8-combo-chart\"></i>Test\r\n                                        Type<strong>{{OverallInfo?.vusers}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\"  pTooltip=\"Number of warnings\" tooltipPosition=\"top\">\r\n                                        <span [ngStyle]=warningHyperLink (click)=\"getWarnings('')\"><i\r\n                                                class=\"icons8 icons8-error\"></i>Warning\r\n                                            Count<strong>{{statusData?.warningCount}}</strong></span>\r\n                                    </div>\r\n                                    <div class=\"right-list\" \r\n                                        pTooltip=\"Time elapsed after initializing test\" tooltipPosition=\"left\"\r\n                                        tooltipStyleClass=\"elapseTooltip\">\r\n                                        <i\r\n                                            class=\"icons8 icons8-clock\"></i>{{elpasedTimeStr}}<strong>{{elapsedTimeString}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\" *ngIf=\"showGeneratorCount\" \r\n                                        pTooltip=\"Click to view generator status\" tooltipPosition=\"top\">\r\n                                        <i class=\"icons8 icons8-dashboard\"></i>\r\n                                        <span class=\"hyperlink\" (click)=\"viewGeneratorStatus()\">Generator\r\n                                            Count</span><strong>{{OverallInfo?.genCount}}</strong>\r\n                                    </div>\r\n\r\n                                </li>\r\n                            </ul>\r\n                       \r\n                        <div class=\"quarter\">\r\n                            <chart [options]=\"chartObj\"></chart>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </p-tabPanel>\r\n\r\n            <p-tabPanel header=\"Generators\" [disabled]=\"disableGen\">\r\n                <div class=\"splash-screen-box\">\r\n                        <div class=\"left-box border-4\" style=\"overflow-y: auto\">\r\n                            <p-accordion [multiple]=\"true\" #acc class=\"splash-accord\" (onClose)=\"onTabClose($event)\">\r\n                                <p-accordionTab (click)=\"onclick($event)\" *ngFor=\"let gen of genNameList;\"\r\n                                    [header]=\"gen\" (click)=\"generatorData(gen)\">\r\n                                    <div class=\"splash-table mn-2\" *ngIf=\"dataForGen?showTable:hideTable\">\r\n                                        <p-table *ngIf=\"showTable\" #dtg id={{gen}} [value]=\"getGenData(gen)\"\r\n                                            dataKey=\"stageName\" [resizableColumns]='true' rowGroupExpandMode=\"multiple\"\r\n                                            expandableRowGroups=\"true\" scrollable=\"true\" scrollHeight=\"calc(100vh - 240px)\"\r\n                                            class=\"scen-ptable\">\r\n                                            <ng-template pTemplate=\"header\">\r\n                                                <tr (click)=\"onclick($event)\" class=\"scen-ptable-thead\">\r\n                                                    <th pTooltip=\"Stage Name\" tooltipPosition=\"bottom\"\r\n                                                        style=\"width:150px;cursor: default;\"><i class=\"fa fa-tasks\"></i>\r\n                                                        {{cols[0].header}}</th>\r\n                                                    <th pTooltip=\"Stage Start Time\" tooltipPosition=\"bottom\"\r\n                                                        style=\"width:115px;cursor: default;\"><i\r\n                                                            class=\"fa fa-history\"></i> {{cols[1].header}}</th>\r\n                                                    <th pTooltip=\"Complete Summary\" tooltipPosition=\"bottom\"\r\n                                                        style=\"width:350px;cursor: default;\"><i\r\n                                                            class=\"fa fa-clipboard\"></i> {{cols[2].header}}</th>\r\n                                                    <th pTooltip=\"Duration of stage\" tooltipPosition=\"bottom\"\r\n                                                        style=\"width:95px;cursor: default;\"><i\r\n                                                            class=\"fa fa-clock-o\"></i> {{cols[3].header}}</th>\r\n                                                    <th pTooltip=\"Status of stage Completed, Error, In-Progress\"\r\n                                                        style=\"width:58px;cursor: default;\"><i\r\n                                                            class=\"fa fa-info-circle\"></i> {{cols[4].header}}</th>\r\n                                                </tr>\r\n                                            </ng-template>\r\n                                            <ng-template pTemplate=\"body\" let-row let-expanded=\"expanded\"\r\n                                                let-i=rowIndex>\r\n                                                <tr (click)=\"onclick($event)\" class=\"scen-ptable-tbody\">\r\n                                                    <td style=\"width:150px;\">\r\n                                                        <a href=\"#\" [pRowToggler]=\"row\"\r\n                                                            (click)=\"showLogsForRow(dtg.expandedRowKeys,gen)\"\r\n                                                            (click)=\"closeAcc($event)\">\r\n                                                            <i pTooltip=\"Click to view logs\" tooltipPosition=\"right\"\r\n                                                                [ngClass]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></i>\r\n                                                        </a>\r\n                                                        {{row[cols[0].field]}}\r\n                                                    </td>\r\n                                                    <td style=\"text-align:right;width:115px;\">{{row[cols[1].field]}}\r\n                                                    </td>\r\n                                                    <td pTooltip=\"{{row[cols[2].field]}}\"\r\n                                                        style=\"cursor: default;width:350px;\" tooltipPosition=\"bottom\"\r\n                                                        tooltipStyleClass=\"testTooltip\">{{row[cols[5].field]}}</td>\r\n                                                    <td style=\"text-align: right;width:95px;\">{{row[cols[3].field]}}\r\n                                                    </td>\r\n                                                    <td style=\"text-align: center;width:58px;\"\r\n                                                        *ngIf=\"row[cols[4].field]==='Error'\">\r\n                                                        <i (click)=\"showDialog(row[cols[0].field],gen)\"\r\n                                                            class=\"icons8 icons8-error text-danger\"></i>\r\n\r\n                                                    </td>\r\n                                                    <td style=\"text-align: center;width:58px;\"\r\n                                                        *ngIf=\"row[cols[4].field]==='Completed'\">\r\n                                                        <i class=\"icons8 icons8-ok text-success\"></i>\r\n                                                    </td>\r\n                                                    <td style=\"text-align: center;width:58px;\"\r\n                                                        *ngIf=\"row[cols[4].field]==='Running'\">\r\n                                                        <i class=\"icons8 icons8-spinner spin btn-icon\"></i>\r\n                                                    </td>\r\n                                                </tr>\r\n\r\n                                            </ng-template>\r\n                                            <ng-template pTemplate=\"rowexpansion\" let-rowData>\r\n                                                <span (click)=\"onclick($event)\">\r\n                                                    <div class=\"expansion-panel\"\r\n                                                        [ngStyle]=tableWidth>\r\n                                                        <span *ngFor=\"let log of rowData['log']\">\r\n                                                            <span>\r\n                                                                {{log}}\r\n                                                            </span><br />\r\n                                                        </span>\r\n                                                    </div>\r\n                                                </span>\r\n                                            </ng-template>\r\n                                        </p-table>\r\n                                    </div>\r\n                                </p-accordionTab>\r\n\r\n                            </p-accordion>\r\n\r\n                        </div>\r\n                    <!-------------right panel--------------->\r\n      \r\n                        <div class=\"right-box border-4\">\r\n                            <ul class=\"list-unstyled\">\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\"  pTooltip=\"User who started test\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"las-user-circle\"></i>User<strong>{{OverallInfoForGen?.owner}}</strong>\r\n                                    </div>\r\n                                    <div class=\"right-list\"  pTooltip=\"Date and Time\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"icons8 icons8-clock\"></i>Start Date\r\n                                        Time<strong>{{OverallInfoForGen?.startDateTime}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n                                    <div class=\"left-list\"  pTooltip=\"Target duration of scenario\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i\r\n                                            class=\"icons8 icons8-clock\"></i>Duration<strong>{{OverallInfoForGen?.targetCompletion}}</strong>\r\n                                    </div>\r\n                                    <div class=\"right-list\"  pTooltip=\"Test type\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <i class=\"icons8 icons8-combo-chart\"></i>Test\r\n                                        Type<strong>{{OverallInfoForGen?.vusers}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n\r\n                                    <div class=\"left-list\"  pTooltip=\"Number of warnings\"\r\n                                        tooltipPosition=\"top\">\r\n                                        <span [ngStyle]=warningHyperLink (click)=\"getWarnings('generator')\"><i\r\n                                                class=\"icons8 icons8-error\"></i>Warning\r\n                                            Count<strong>{{statusData?.warningCount}}</strong></span>\r\n                                    </div>\r\n                                    <div class=\"right-list\" \r\n                                        pTooltip=\"Time elapsed after initializing test\" tooltipPosition=\"top\">\r\n                                        <i\r\n                                            class=\"icons8 icons8-clock\"></i>{{elpasedTimeStr}}<strong>{{elapsedTimeStringForgen}}</strong>\r\n                                    </div>\r\n                                </li>\r\n                                <li class=\"border-4\">\r\n                                    <div *ngIf=\"!disableGen\" class=\"left-list\" \r\n                                        pTooltip=\"Generator name\" tooltipPosition=\"left\">\r\n                                        <i class=\"las-user-circle\"></i>Generator<strong>{{generatorName}}</strong>\r\n                                    </div>\r\n\r\n                                </li>\r\n\r\n                            </ul>\r\n                       \r\n                        <div class=\"quarter\">\r\n                            <chart [options]=\"chartObj\"></chart>\r\n                        </div>\r\n                    </div>\r\n                \r\n\r\n                </div>\r\n            </p-tabPanel>\r\n        </p-tabView>\r\n\r\n\r\n\r\n        <!--NS Case-->\r\n        <div *ngIf=\"!showGeneratorCount\">\r\n            <div class=\"splash-screen-box\">\r\n                <div class=\"left-box border-4\">\r\n                    <div class=\"splash-table mn-2\" id=\"tableelmnt\">\r\n                        <p-table #dt [value]=\"data\" dataKey=\"stageName\" [resizableColumns]='true'\r\n                            rowGroupExpandMode=\"multiple\" expandableRowGroups=\"true\" scrollable=\"true\"\r\n                            scrollHeight=\"calc(100vh - 240px)\" class=\"scen-ptable\">\r\n                            <ng-template pTemplate=\"header\">\r\n                                <tr class=\"scen-ptable-thead\">\r\n                                    <th pTooltip=\"Stage Name\" tooltipPosition=\"bottom\"\r\n                                        style=\"width:150px;cursor: default;\"><i class=\"las-tasks-solid\"></i>\r\n                                        {{cols[0].header}}</th>\r\n                                    <th pTooltip=\"Stage Start Date Time\" tooltipPosition=\"bottom\"\r\n                                        style=\"width:115px;cursor: default;\"><i class=\"icons8 icons8-order-history\"></i>\r\n                                        {{cols[1].header}}</th>\r\n                                    <th pTooltip=\"Complete Summary\" tooltipPosition=\"bottom\"\r\n                                        style=\"width:350px;cursor: default;\"><i class=\"las-clipboard-solid\"></i>\r\n                                        {{cols[2].header}}</th>\r\n                                    <th pTooltip=\"Duration of stage\" tooltipPosition=\"bottom\"\r\n                                        style=\"width:95px;cursor: default;\"><i class=\"icons8 icons8-clock\"></i>\r\n                                        {{cols[3].header}}</th>\r\n                                    <th pTooltip=\"Status of stage Completed, Error, In-Progress\"\r\n                                        style=\"width:58px;cursor: default;\"><i class=\"icons8 icons8-info\"></i>\r\n                                        {{cols[4].header}}</th>\r\n                                </tr>\r\n                            </ng-template>\r\n                            <ng-template pTemplate=\"body\" let-row let-expanded=\"expanded\" let-i=rowIndex>\r\n                                <tr class=\"scen-ptable-tbody\">\r\n                                    <td style=\"width:150px;\">\r\n                                        <a href=\"#\" [pRowToggler]=\"row\" (click)=\"showLogsForRow(dt.expandedRowKeys,'')\">\r\n                                            <i pTooltip=\"Click to view logs\" tooltipPosition=\"right\"\r\n                                                [ngClass]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></i>\r\n                                        </a>\r\n                                        {{row[cols[0].field]}}\r\n                                    </td>\r\n                                    <td style=\"text-align:right;width:115px;\">{{row[cols[1].field]}}</td>\r\n                                    <td pTooltip=\"{{row[cols[2].field]}}\" style=\"cursor: default;width:350px;\"\r\n                                        tooltipPosition=\"bottom\" tooltipStyleClass=\"testTooltip\">{{row[cols[5].field]}}\r\n                                    </td>\r\n                                    <td style=\"text-align:right;width:95px;\">{{row[cols[3].field]}}</td>\r\n                                    <td style=\"text-align: center;width:58px;\" *ngIf=\"row[cols[4].field]==='Error'\">\r\n                                        <i (click)=\"showDialog(row[cols[0].field],'')\"\r\n                                            class=\"icons8 icons8-error text-danger\"></i>\r\n\r\n                                    </td>\r\n                                    <td style=\"text-align: center;width:58px;\" *ngIf=\"row[cols[4].field]==='Completed'\">\r\n                                        <i class=\"icons8 icons8-ok text-success\"></i>\r\n                                    </td>\r\n                                    <td style=\"text-align: center;width:58px;\" *ngIf=\"row[cols[4].field]==='Running'\">\r\n                                        <i class=\"icons8 icons8-spinner spin btn-icon\"></i>\r\n                                    </td>\r\n                                </tr>\r\n\r\n                            </ng-template>\r\n                            <ng-template pTemplate=\"rowexpansion\" let-rowData>\r\n                                <div class=\"expansion-panel\"\r\n                                    [ngStyle]=tableWidth>\r\n                                    <span *ngFor=\"let log of rowData['log']\">\r\n                                        <span>\r\n                                            {{log}}\r\n                                        </span><br />\r\n                                    </span>\r\n                                </div>\r\n                            </ng-template>\r\n                        </p-table>\r\n                    </div>\r\n                </div>\r\n                <!-------------right panel--------------->\r\n                    <div class=\"right-box border-4\">\r\n\r\n                        <ul class=\"list-unstyled\">\r\n                            <li class=\"border-4\">\r\n                                <div class=\"left-list\"  pTooltip=\"User who started test\"\r\n                                    tooltipPosition=\"top\">\r\n                                    <i class=\"las-user-circle\"></i>User<strong>{{OverallInfo?.owner}}</strong>\r\n                                </div>\r\n                                <div class=\"right-list\"  pTooltip=\"Date and Time\" tooltipPosition=\"top\">\r\n                                    <i class=\"icons8 icons8-clock\"></i>Start Date\r\n                                    Time<strong>{{OverallInfo?.startDateTime}}</strong>\r\n                                </div>\r\n                            </li>\r\n                            <li class=\"border-4\">\r\n                                <div class=\"left-list\"  pTooltip=\"Target duration of scenario\"\r\n                                    tooltipPosition=\"top\" tooltipStyleClass=\"durationTooltip\">\r\n                                    <i\r\n                                        class=\"icons8 icons8-clock\"></i>Duration<strong>{{OverallInfo?.targetCompletion}}</strong>\r\n                                </div>\r\n                                <div class=\"right-list\"  pTooltip=\"Test type\" tooltipPosition=\"top\">\r\n                                    <i class=\"icons8 icons8-combo-chart\"></i>Test\r\n                                    Type<strong>{{OverallInfo?.vusers}}</strong>\r\n                                </div>\r\n                            </li>\r\n                            <li class=\"border-4\">\r\n                                <div class=\"left-list\"  pTooltip=\"Number of warnings\"\r\n                                    tooltipPosition=\"top\">\r\n                                    <span [ngStyle]=warningHyperLink (click)=\"getWarnings('')\"><i\r\n                                            class=\"icons8 icons8-error\"></i>Warning\r\n                                        Count<strong>{{statusData?.warningCount}}</strong></span>\r\n                                </div>\r\n                                <div class=\"right-list\"  pTooltip=\"Time elapsed after initializing test\"\r\n                                    tooltipPosition=\"left\" tooltipStyleClass=\"elapseTooltip\">\r\n                                    <i\r\n                                        class=\"icons8 icons8-clock\"></i>{{elpasedTimeStr}}<strong>{{elapsedTimeString}}</strong>\r\n                                </div>\r\n                            </li>\r\n                        </ul>\r\n                        <div class=\"quarter\">\r\n                            <chart [options]=\"chartObj\"></chart>\r\n                        </div>\r\n                    </div>\r\n                    \r\n               \r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n<p-dialog header=\"ERROR\" class=\"scenmodal\" [(visible)]=\"displayErrorDialog\"\r\n    [modal]=\"true\" [responsive]=\"true\" [resizable]=\"true\" [style]=\"{width: '450px'}\">\r\n    <p class=\"text-danger my-20\">\r\n        {{testRunError}}\r\n    </p>\r\n    <p-footer class=\"p-grid p-justify-end\">\r\n        <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary\" (click)=\"hideDialog()\"\r\n            label=\"Close\"></button>\r\n    </p-footer>\r\n</p-dialog>\r\n\r\n\r\n<p-dialog [(visible)]=\"display\" [modal]=\"true\" [responsive]=\"true\" [resizable]=\"true\" [style]=\"{width: '450px'}\">\r\n    <p-header class=\"text-danger\">\r\n        <i class=\"icons8 icons8-error\"></i>\r\n        <span>Error in Test Execution</span>\r\n    </p-header>\r\n\r\n    <div [innerHTML]=\"errormsg\"></div>\r\n    <p-footer class=\"p-grid p-justify-end\">\r\n        <button type=\"button\" pButton class=\"ui-button-secondary ui-button-rounded\" (click)=\"display=false\"\r\n            label=\"Close\"></button>\r\n    </p-footer>\r\n</p-dialog>\r\n\r\n<p-dialog header=\"Warnings\" [(visible)]=\"showWarnings\" [modal]=\"true\" [responsive]=\"true\" [resizable]=\"true\"\r\n    [style]=\"{width: '450px'}\">\r\n    <div class=\"my-20\">\r\n        <span *ngFor=\"let log of warningLogs\">\r\n                {{log}}\r\n        </span>\r\n    </div>\r\n    <p-footer class=\"p-grid p-justify-end\">\r\n        <button type=\"button\" pButton class=\"ui-button-secondary ui-button-rounded\" (click)=\"showWarnings=false\"\r\n            label=\"Close\"></button>\r\n    </p-footer>\r\n</p-dialog>\r\n\r\n\r\n<p-dialog header=\"ERROR\" [(visible)]=\"notInitialised\" [modal]=\"true\" [responsive]=\"true\" [resizable]=\"false\"\r\n    [style]=\"{width: '450px'}\">\r\n    <p class=\"text-danger my-20\">\r\n        Test is not initialized successfully.\r\n    </p>\r\n    <p-footer class=\"p-grid p-justify-end\">\r\n        <button type=\"button\" pButton class=\"ui-button-secondary ui-button-rounded\" (click)=\"handleInitialised()\"\r\n            label=\"OK\"></button>\r\n    </p-footer>\r\n</p-dialog>");

/***/ }),

/***/ "./src/app/pages/home/load-test/services/timer.service.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/home/load-test/services/timer.service.ts ***!
  \****************************************************************/
/*! exports provided: TimerService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimerService", function() { return TimerService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var rxjs_Rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/Rx */ "./node_modules/rxjs-compat/_esm2015/Rx.js");



/**This class is used as a global timer service for providing the time event per second. It can be used for system clock, elapsed time
 * and time based data processing.*/
let TimerService = class TimerService {
    constructor() {
        /*Observable string sources.*/
        this.timerEventProvider = new rxjs_Rx__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        /*Service Observable for getting Progress Bar Toggle Action.*/
        this.timerObservable = this.timerEventProvider.asObservable();
        /* Creating Timer Here. */
        this.timer = rxjs_Rx__WEBPACK_IMPORTED_MODULE_2__["Observable"].timer(0, 1000).subscribe(t => {
            /*Forwarding request to all observer..*/
            this.timerEventProvider.next(t);
        });
    }
    /**Getting Timer Subscription. */
    getTimerSubscription() {
        return this.timerObservable;
    }
};
TimerService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])()
], TimerService);



/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/container/TestInitiallizationStatusDTO.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/container/TestInitiallizationStatusDTO.ts ***!
  \**********************************************************************************************/
/*! exports provided: TestInitiallizationStatusDTO */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestInitiallizationStatusDTO", function() { return TestInitiallizationStatusDTO; });
class TestInitiallizationStatusDTO {
}


/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/services/splash-screen-http.service.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/services/splash-screen-http.service.ts ***!
  \*******************************************************************************************/
/*! exports provided: SplashScreenHttpService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplashScreenHttpService", function() { return SplashScreenHttpService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./splash-screen.state */ "./src/app/pages/home/load-test/splash-screen/services/splash-screen.state.ts");







let SplashScreenHttpService = class SplashScreenHttpService extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__["Store"].AbstractService {
    constructor(sessionService) {
        super();
        this.sessionService = sessionService;
        this.defaultBase = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.scenarioWebService.base.defaultBase;
    }
    getLogs(testRun, seqNum, genName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetLogsLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getLogs.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + "&testRun=" + testRun + "&seqNumList=" + seqNum + "&genName=" + genName;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetLogsLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetLogsLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getCurrentPartition(testRun) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetCurrentPartitionLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getCurrentPartition.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + "&testRun=" + testRun;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetCurrentPartitionLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetCurrentPartitionLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getDataForController(testMode, productName, testRun, seqNumList, userName, genName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetDataForControllerLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.dataForController.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + "&testMode=" + testMode + "&productName=" + productName + "&testRun=" + testRun + "&seqNumList=" + seqNumList + "&userName=" + userName + "&generatorName=" + genName;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetDataForControllerLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetDataForControllerLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    createGeneratorFiles(testRun, ip, userName, genName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["CreateGeneratorFilesLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.createGeneratorFiles.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + "&testRun=" + testRun + "&ip=" + ip + "&userName=" + userName + "&generatorName=" + genName;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["CreateGeneratorFilesLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["CreateGeneratorFilesLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getGenList(testRun) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetGenListLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getGenList.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + "&testRun=" + testRun;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetGenListLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetGenListLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    stopTestRun(testRun, userName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["StopTestRunLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.stopTestRun.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + '&testRun='
            + testRun + '&client_connection_key=' + this.sessionService.session.cctx.cck + '&userName=' +
            userName + '&permission=7' + '&stopType= ' + encodeURIComponent('-f ') + '&module=TestInitializationStatus';
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["StopTestRunLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["StopTestRunLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    debugTrace(testRun, userName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["DebugTraceLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.debugTrace.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + '&testRun='
            + testRun + '&client_connection_key=' + this.sessionService.session.cctx.cck + '&login=' +
            userName;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["DebugTraceLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["DebugTraceLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getRemoteIPForNSPortal(testRun) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetRemoteIPForNSPortalLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getRemoteIPForNSPortal.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + '&testRun='
            + testRun;
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.base.defaultBase;
        }
        this.controller.getForTextResp(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetRemoteIPForNSPortalLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetRemoteIPForNSPortalLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    GetWarning(gen, testRun, genName) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetWarningLoadingState"]());
        }, 0);
        let path;
        if (gen !== '') {
            path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getWarning.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + '&testRun=' + testRun + "&generator=" + genName;
        }
        else {
            path = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.getWarning.endpoint + "?productKey=" + this.sessionService.session.cctx.pk + '&testRun=' + testRun + "&generator=" + '';
        }
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.commons.base.defaultBase;
        if (this.sessionService.preSession.multiDc) {
            const masterURL = this.sessionService.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].api.StopTestRunService.base.defaultBase;
        }
        this.controller.get(path, null, base).subscribe((data) => {
            output.next(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetWarningLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _splash_screen_state__WEBPACK_IMPORTED_MODULE_6__["GetWarningLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
};
SplashScreenHttpService.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] }
];
SplashScreenHttpService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])()
], SplashScreenHttpService);



/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/services/splash-screen.state.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/services/splash-screen.state.ts ***!
  \************************************************************************************/
/*! exports provided: GetLogsLoadingState, GetLogsLoadingErrorState, GetLogsLoadedState, GetCurrentPartitionLoadingState, GetCurrentPartitionLoadingErrorState, GetCurrentPartitionLoadedState, GetDataForControllerLoadingState, GetDataForControllerLoadingErrorState, GetDataForControllerLoadedState, CreateGeneratorFilesLoadingState, CreateGeneratorFilesLoadingErrorState, CreateGeneratorFilesLoadedState, GetGenListLoadingState, GetGenListLoadingErrorState, GetGenListLoadedState, StopTestRunLoadingState, StopTestRunLoadingErrorState, StopTestRunLoadedState, DebugTraceLoadingState, DebugTraceLoadingErrorState, DebugTraceLoadedState, GetRemoteIPForNSPortalLoadingState, GetRemoteIPForNSPortalLoadingErrorState, GetRemoteIPForNSPortalLoadedState, GetWarningLoadingState, GetWarningLoadingErrorState, GetWarningLoadedState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetLogsLoadingState", function() { return GetLogsLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetLogsLoadingErrorState", function() { return GetLogsLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetLogsLoadedState", function() { return GetLogsLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCurrentPartitionLoadingState", function() { return GetCurrentPartitionLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCurrentPartitionLoadingErrorState", function() { return GetCurrentPartitionLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCurrentPartitionLoadedState", function() { return GetCurrentPartitionLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetDataForControllerLoadingState", function() { return GetDataForControllerLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetDataForControllerLoadingErrorState", function() { return GetDataForControllerLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetDataForControllerLoadedState", function() { return GetDataForControllerLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateGeneratorFilesLoadingState", function() { return CreateGeneratorFilesLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateGeneratorFilesLoadingErrorState", function() { return CreateGeneratorFilesLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateGeneratorFilesLoadedState", function() { return CreateGeneratorFilesLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGenListLoadingState", function() { return GetGenListLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGenListLoadingErrorState", function() { return GetGenListLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGenListLoadedState", function() { return GetGenListLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTestRunLoadingState", function() { return StopTestRunLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTestRunLoadingErrorState", function() { return StopTestRunLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopTestRunLoadedState", function() { return StopTestRunLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugTraceLoadingState", function() { return DebugTraceLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugTraceLoadingErrorState", function() { return DebugTraceLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugTraceLoadedState", function() { return DebugTraceLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRemoteIPForNSPortalLoadingState", function() { return GetRemoteIPForNSPortalLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRemoteIPForNSPortalLoadingErrorState", function() { return GetRemoteIPForNSPortalLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRemoteIPForNSPortalLoadedState", function() { return GetRemoteIPForNSPortalLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetWarningLoadingState", function() { return GetWarningLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetWarningLoadingErrorState", function() { return GetWarningLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetWarningLoadedState", function() { return GetWarningLoadedState; });
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");

class GetLogsLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetLogsLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetLogsLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetCurrentPartitionLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetCurrentPartitionLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetCurrentPartitionLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetDataForControllerLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetDataForControllerLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetDataForControllerLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class CreateGeneratorFilesLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class CreateGeneratorFilesLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class CreateGeneratorFilesLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetGenListLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetGenListLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetGenListLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class StopTestRunLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class StopTestRunLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class StopTestRunLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class DebugTraceLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class DebugTraceLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class DebugTraceLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetRemoteIPForNSPortalLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetRemoteIPForNSPortalLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetRemoteIPForNSPortalLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetWarningLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetWarningLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetWarningLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}


/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/splash-screen.component.scss":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/splash-screen.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-splash-screen .splash-screen-box {\n  display: flex;\n  align-items: stretch;\n  height: calc(100vh - 205px);\n}\napp-splash-screen .splash-screen-box .left-box, app-splash-screen .splash-screen-box .right-box {\n  background-color: var(--background_color_1);\n  border-style: solid;\n  border-width: 1px;\n  margin: 0.5%;\n  height: 100%;\n  border-radius: 4px;\n}\napp-splash-screen .splash-screen-box .left-box {\n  width: 73.5%;\n  overflow: hidden;\n}\napp-splash-screen .splash-screen-box .right-box {\n  width: 24.5%;\n}\napp-splash-screen .list-unstyled {\n  margin-top: 0px;\n}\napp-splash-screen .list-unstyled > li {\n  border-bottom-style: solid;\n  border-bottom-width: 1px;\n  padding: 0px;\n}\napp-splash-screen .list-unstyled > li .right-list, app-splash-screen .list-unstyled > li .left-list {\n  cursor: default;\n  display: flex;\n  align-items: center;\n  margin: 8px;\n}\napp-splash-screen .list-unstyled > li .right-list strong, app-splash-screen .list-unstyled > li .left-list strong {\n  margin-left: 5px;\n}\napp-splash-screen .expansion-panel {\n  max-height: 100px;\n  overflow-y: auto;\n  width: 1060px;\n  padding: 10px;\n}\n@media (max-width: 1366px) {\n  app-splash-screen .expansion-panel {\n    width: 920px;\n  }\n}\napp-splash-screen .highcharts-button {\n  display: none;\n}");

/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/splash-screen.component.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/splash-screen.component.ts ***!
  \*******************************************************************************/
/*! exports provided: SplashScreenComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplashScreenComponent", function() { return SplashScreenComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! highcharts */ "./node_modules/highcharts/highcharts.js");
/* harmony import */ var highcharts__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(highcharts__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _container_TestInitiallizationStatusDTO__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./container/TestInitiallizationStatusDTO */ "./src/app/pages/home/load-test/splash-screen/container/TestInitiallizationStatusDTO.ts");
/* harmony import */ var _services_timer_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../services/timer.service */ "./src/app/pages/home/load-test/services/timer.service.ts");
/* harmony import */ var _services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../services/load-test-utils.service */ "./src/app/pages/home/load-test/services/load-test-utils.service.ts");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _services_splash_screen_http_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./services/splash-screen-http.service */ "./src/app/pages/home/load-test/splash-screen/services/splash-screen-http.service.ts");
/* harmony import */ var src_app_pages_exec_dashboard_constants_common_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/pages/exec-dashboard/constants/common-constants */ "./src/app/pages/exec-dashboard/constants/common-constants.ts");
/* harmony import */ var _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./services/splash-screen.state */ "./src/app/pages/home/load-test/splash-screen/services/splash-screen.state.ts");
/* harmony import */ var src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/pages/scenario/interface/scenario-state */ "./src/app/pages/scenario/interface/scenario-state.ts");
/* harmony import */ var src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/shared/header/work-profile/services/work-profile-active.service */ "./src/app/shared/header/work-profile/services/work-profile-active.service.ts");
/* harmony import */ var _services_load_test_common_services__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../services/load-test-common.services */ "./src/app/pages/home/load-test/services/load-test-common.services.ts");
/* harmony import */ var src_app_pages_scenario_service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/pages/scenario/service/scenario-utils.service */ "./src/app/pages/scenario/service/scenario-utils.service.ts");
/* harmony import */ var src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/pages/scenario/service/scenario-http.service */ "./src/app/pages/scenario/service/scenario-http.service.ts");





/*Adding Highchart More dependency Here. */














Object(src_app_pages_exec_dashboard_constants_common_constants__WEBPACK_IMPORTED_MODULE_11__["HighchartMore"])(highcharts__WEBPACK_IMPORTED_MODULE_5__);
//HighchartBoost(highcharts);
Object(src_app_pages_exec_dashboard_constants_common_constants__WEBPACK_IMPORTED_MODULE_11__["HighchartNoDataToDisplay"])(highcharts__WEBPACK_IMPORTED_MODULE_5__);
Object(src_app_pages_exec_dashboard_constants_common_constants__WEBPACK_IMPORTED_MODULE_11__["HighchartData"])(highcharts__WEBPACK_IMPORTED_MODULE_5__);
let SplashScreenComponent = class SplashScreenComponent {
    constructor(http, scenUtilService, sessionService, splashHttpService, scenHttpService, _timerService, router, loadUtilsService, activeWPService, loadTestcommonServcie) {
        this.http = http;
        this.scenUtilService = scenUtilService;
        this.sessionService = sessionService;
        this.splashHttpService = splashHttpService;
        this.scenHttpService = scenHttpService;
        this._timerService = _timerService;
        this.router = router;
        this.loadUtilsService = loadUtilsService;
        this.activeWPService = activeWPService;
        this.loadTestcommonServcie = loadTestcommonServcie;
        this.arr = {};
        this.arrForGen = {};
        this.display = false;
        this.chartObj = {};
        this.statusData = null;
        this.tableData = {};
        this.GenData = {};
        this.displayErrorDialog = false;
        this.stopDialog = true;
        this.OverallInfo = null;
        this.OverallInfoForGen = null;
        this.loading = false;
        this.showGeneratorCount = false;
        this.elapsedTime = 0;
        this.elapsedTimeForGen = 0; //aa
        this.elapsedTimeString = null;
        this.elapsedTimeStringForgen = null; //aa
        this.showCancelTest = false;
        this.headerName = "";
        this.completedStage = null;
        this.completedStageForCont = null;
        this.showWarnings = false;
        this.requestJsonParm = {};
        this.KEYWORD = {
            NS_GENERATOR: false
        };
        this.screenKeywordList = Object.keys(this.KEYWORD);
        this.getScenName = true;
        this.tableDataForGen = {};
        this.errorStat = 0;
        this.disableGen = true;
        this.generatorName = "";
        this.gen = "";
        this.tabIndex = 0;
        this.showGenName = false;
        this.showTable = true;
        this.hideTable = false;
        this.updateAccordTab = '';
        this.callForCont = true;
        this.callForGen = true;
        this.notInitialised = false;
        this.blockDialog = false;
        this.stopErrDialog = false;
        this.scenNameForType = '';
        this.scenModeForScenario = 0;
        this.makeCallForTestType = true;
        this.remoteIP = "";
        this.elpasedTimeStr = "Test Initialization Elapsed Time";
        this.summaryData = "NA";
        this.product = sessionService.session.cctx.prodType;
        this.userLoginName = sessionService.session.cctx.u;
    }
    ngOnInit() {
        this.cols = [
            { field: 'stageName', header: 'Stage' },
            { field: 'startTime', header: 'Start Time' },
            { field: 'summary', header: 'Summary' },
            { field: 'duration', header: 'Duration' },
            { field: 'status', header: 'Status' },
            { field: 'title', header: 'title' },
            { field: 'log', header: 'log' }
        ];
        if (this.loadUtilsService.$testInitRouteFrom != "cav-test-run" && this.product.toLowerCase() != "netdiagnostics") {
            this.testRunDisplay = "Test Run Number:";
            this.testnameDisplay = "Test Name";
            this.heading = "Test Initialization Status";
        }
        else if (this.product.toLowerCase() == "netdiagnostics") {
            this.testRunDisplay = "Session:";
            this.testnameDisplay = "Session Name";
            this.heading = "Session Initialization Status";
        }
        else {
            this.testRunDisplay = "Test Run Number:";
            this.testnameDisplay = "Test Name";
            this.heading = "Test Initialization Status";
        }
        this.testMode = this.loadUtilsService.$isOnlineTest;
        if (this.testMode == true || sessionStorage.getItem('runningtest') != undefined) {
            let testInfo = this.loadUtilsService.$dashboardTestRun.toString();
            if (testInfo != null && testInfo != undefined && testInfo != "") {
                this.testRunNumber = testInfo;
                this.sessionService.updateTRIntoNodeInfoHeader(this.testRunNumber);
            }
            else {
                this.testRunNumber = parseInt(sessionStorage.getItem('runningtest'));
                this.sessionService.updateTRIntoNodeInfoHeader(this.testRunNumber);
            }
        }
        else {
            this.testRunNumber = this.loadUtilsService.$dashboardTestRun;
            this.sessionService.updateTRIntoNodeInfoHeader(this.testRunNumber);
        }
        this.showCancelTest = this.loadUtilsService.$splashScreenFromDashboard;
        /**Getting remote IP if NS portal is enabled and testinit screen is not opened from cav-test-run */
        if (this.loadUtilsService.$testInitRouteFrom != "cav-test-run") {
            this.splashHttpService.getRemoteIPForNSPortal(this.testRunNumber).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetRemoteIPForNSPortalLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetRemoteIPForNSPortalLoadedState"]) {
                    this.onloadedGetRemoteIPForNSPortal(state);
                    return;
                }
            }, (state) => {
            });
            this.elpasedTimeStr = "Controller Initialization Elapsed Time";
        }
        /* getting scenarioInfoForTestInit object */
        let res = this.loadUtilsService.$resForScen;
        /**getting data for table */
        this.getData('controller', '');
        if ((this.loadUtilsService.$splashScreenFromDashboard == false && this.loadUtilsService.$testInitFromTestScreen == true) || (res != null && res !== undefined && res !== "" && !res.startsWith("Error"))) {
            this.sub = setInterval(() => {
                /* setting getScenName false for getTestType to be called only once i.e. in first call */
                if (!this.makeCallForTestType)
                    this.getScenName = false;
                this.expandedRowKeys = this.dtObj.expandedRowKeys;
                /* for keeping expanded rows expanded for gen */
                this.divs.forEach(queryTab => {
                    let generName = queryTab['el']['nativeElement']['id'];
                    if (this.gen !== "" && generName == this.gen) {
                        if (Object.keys(queryTab['expandedRowKeys']).length !== 0) {
                            this.expandedRowKeysOfGen = queryTab['expandedRowKeys'];
                        }
                    }
                });
                if (this.showGeneratorCount == false && this.callForCont == true) {
                    console.log("in NS case*********", this.callForCont);
                    this.getData('controller', '');
                }
                else {
                    console.log("in NC Case***********", this.callForGen);
                    if (this.callForCont == true) {
                        this.getData('controller', '');
                    }
                    let cnts = 0;
                    let stageName = "";
                    if (this.tableDataForGen != null && this.tableDataForGen != undefined && Object.keys(this.tableDataForGen).length != 0) {
                        const keys = Object.keys(this.tableDataForGen);
                        for (let i = 0; i < keys.length; i++) {
                            const strKeyword = keys[i];
                            if (this.tableDataForGen[strKeyword]['status'] == 'Error') {
                                cnts = cnts + 1;
                                stageName = this.tableDataForGen[strKeyword]['stageName'];
                            }
                        }
                    }
                    if (cnts !== 0) {
                        this.callForGen = false;
                        if (this.timerSubForGen) {
                            this.timerSubForGen.unsubscribe();
                        }
                        if (this.blockDialog == false && this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false && this.displayErrorDialog == false && this.stopErrDialog == false) {
                            if (stageName) {
                                this.showDialog(stageName, "genname");
                            }
                            else {
                                this.notInitialised = true;
                            }
                            this.blockDialog = true;
                        }
                        clearInterval(this.sub);
                    }
                    if (this.tabIndex == 1) {
                        this.getGenNameList();
                        this.accord.forEach(queryTab => {
                            let arr = queryTab['tabList']['_results'];
                            for (let i = 0; i < arr.length; i++) {
                                if (arr[i]['selected'] == true) {
                                    this.updateAccordTab = arr[i]['header'];
                                }
                            }
                        });
                    }
                }
                let c = 0;
                for (let i = 0; i < this.genNameList.length; i++) {
                    let j = this.genNameList[i].lastIndexOf("-");
                    let name = this.genNameList[i].substring(j + 1, this.genNameList[i].length);
                    console.log("name in ng+++++++++++++", name);
                    if (name == "Completed") {
                        c = c + 1;
                    }
                }
                let comp = 0;
                const key = Object.keys(this.tableData);
                for (let i = 0; i < key.length; i++) {
                    const strKeyword = key[i];
                    if (this.tableData[strKeyword]['status'] != 'Completed') {
                        comp = comp + 1;
                    }
                }
                if (c == this.genNameList.length && comp == Object.keys(this.tableData).length) {
                    clearInterval(this.sub);
                }
            }, 1000 * 10);
        }
        let timSub = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window, 'resize')
            .subscribe(keyboardEvent => {
            let divElement;
            if (this.generatorName !== "") {
                divElement = document.getElementsByClassName('ui-accordion-content');
            }
            else {
                divElement = document.getElementsByClassName('p-3');
            }
            let tableWidt = divElement[0]['clientWidth'] - 32;
            this.tableWidth = { width: tableWidt + 'px' };
        }, error => {
            console.log('error in subscription of timer data', error);
        }, () => {
            timSub.unsubscribe();
        });
    }
    onloadedGetRemoteIPForNSPortal(state) {
        let res = state.data;
        if (res) {
            this.remoteIP = res;
        }
    }
    /**method for elapsed time timer for controller*/
    updateElapsedTimeStamp() {
        try {
            /*Here checking if thread is already started or not. */
            if (this.OverallInfo['elapsedTime'] == "") {
                return;
            }
            let hms = this.OverallInfo['elapsedTime']; // your input string
            let a = hms.split(':'); // split it at the colons
            /* minutes are worth 60 seconds. Hours are worth 60 minutes.*/
            let seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]);
            //Changes for bug id: 64322, this will prevent test init elapsed time from resetting.
            if (!this.updateElapsedTimeStamp['secondsArr'])
                this.updateElapsedTimeStamp['secondsArr'] = [];
            if (this.updateElapsedTimeStamp['secondsArr'].indexOf(seconds) == -1) {
                this.elapsedTime = seconds;
                this.updateElapsedTimeStamp['secondsArr'].push(seconds);
            }
            if (this.timerSubscription !== null && this.timerSubscription !== undefined) {
                return;
            }
            /* Creating Timer Subscription Here for waiting till initial data response available.*/
            /* Subscribing to a observable returns a subscription object. */
            /* Listening on timer event. */
            this.timerSubscription = this._timerService.getTimerSubscription().subscribe(value => {
                this.elapsedTime = this.elapsedTime + 1;
                /**Here Checking if dashboard is in pause state. */
                this.elapsedTimeString = this.convertTimeToFormattedString(this.elapsedTime, ':');
            });
            /*Checking if elapsed time is in negative then marking it to 0. */
            if (this.elapsedTime < 0) {
                this.elapsedTime = 0;
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    /**method for elapsed time timer for gen*/
    updateElapsedTimeStampForGen() {
        try {
            /*Here checking if thread is already started or not. */
            if (this.OverallInfoForGen['elapsedTime'] == "") {
                return;
            }
            let hms = this.OverallInfoForGen['elapsedTime']; // your input string
            let a = hms.split(':'); // split it at the colons
            /* minutes are worth 60 seconds. Hours are worth 60 minutes.*/
            let seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]);
            //Changes for bug id: 64322, this will prevent test init elapsed time from resetting.
            if (!this.updateElapsedTimeStampForGen['secondsArr'])
                this.updateElapsedTimeStampForGen['secondsArr'] = [];
            if (this.updateElapsedTimeStampForGen['secondsArr'].indexOf(seconds) == -1) {
                this.elapsedTimeForGen = seconds;
                this.updateElapsedTimeStampForGen['secondsArr'].push(seconds);
            }
            if (this.timerSubForGen !== null && this.timerSubForGen !== undefined) {
                return;
            }
            /* Creating Timer Subscription Here for waiting till initial data response available.*/
            /* Subscribing to a observable returns a subscription object. */
            /* Listening on timer event. */
            this.timerSubForGen = this._timerService.getTimerSubscription().subscribe(value => {
                this.elapsedTimeForGen = this.elapsedTimeForGen + 1;
                /**Here Checking if dashboard is in pause state. */
                this.elapsedTimeStringForgen = this.convertTimeToFormattedString(this.elapsedTimeForGen, ':');
            });
            /*Checking if elapsed time is in negative then marking it to 0. */
            if (this.elapsedTimeForGen < 0) {
                this.elapsedTimeForGen = 0;
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    /* to stop the flickering of accordion tab */
    onclick(event) {
        event.stopPropagation();
    }
    closeAcc(event) {
        event.stopPropagation();
    }
    /* method to generate string of time format for timer */
    convertTimeToFormattedString(elapsedTime, separator) {
        try {
            /* First convert the millisecond to second.*/
            let seconds = parseInt(elapsedTime.toString(), 10); // don't forget the second param
            let hours = Math.floor(seconds / 3600);
            let minutes = Math.floor((seconds - (hours * 3600)) / 60);
            seconds = seconds - (hours * 3600) - (minutes * 60);
            return this.timeDecorator(hours + '') + separator + this.timeDecorator(minutes + '') + separator + this.timeDecorator(seconds + '');
        }
        catch (e) {
            console.error(e);
            return null;
        }
    }
    timeDecorator(time) {
        if (time.length === 1) {
            return ('0' + time);
        }
        else {
            return time;
        }
    }
    adjustPanelCaption(data) {
        /*Now Calculating widget Caption area.*/
        let widgetCaptionArea = 350;
        /*Now according to font size 12 px. One character taking 7px approx. So calculating avail characters to show in caption area.*/
        let numWidgetCaptionChars = widgetCaptionArea / 5;
        for (let i = 0; i < data.length; i++) {
            let objOfStage = data[i];
            let summary = objOfStage['summary'];
            if (summary !== null && numWidgetCaptionChars > 0 && summary.length > numWidgetCaptionChars) {
                objOfStage['title'] = String(summary).substring(0, numWidgetCaptionChars) + '..';
            }
            else {
                objOfStage['title'] = objOfStage['summary'];
            }
        }
    }
    getSeqNumbers(data, keys) {
        let seqNum;
        for (let i = 0; i < keys.length; i++) {
            const strKeyword = keys[i];
            const dataKeys = Object.keys(data);
            for (let j = 0; j < dataKeys.length; j++) {
                const datakey = dataKeys[j];
                if (data[datakey] != undefined && data[datakey] != null) {
                    let stagename = data[datakey]['stageName'];
                    if (seqNum == null && stagename == strKeyword) {
                        seqNum = datakey;
                    }
                    else if (stagename == strKeyword) {
                        seqNum = seqNum + ',' + datakey;
                    }
                }
            }
        }
        return seqNum;
    }
    setLogs(dataObj, tableObj) {
        dataObj = [];
        const keys = Object.keys(tableObj);
        for (let i = 0; i < keys.length; i++) {
            const strKeyword = keys[i];
            if (this.logData != null && this.logData != undefined) {
                const keyForLog = Object.keys(this.logData);
                for (let j = 0; j < keyForLog.length; j++) {
                    const keyOfLog = keyForLog[j];
                    if (keyOfLog == strKeyword) {
                        if (this.logData[keyOfLog] !== null)
                            tableObj[strKeyword]['log'] = this.logData[keyOfLog];
                        else {
                            let logArr = [];
                            logArr.push("No logs available.");
                            tableObj[strKeyword]['log'] = logArr;
                        }
                    }
                }
            }
        }
    }
    /**Method for showing logs */
    showLogsForRow(expandRowKeys, genName) {
        try {
            console.log("genName for logs----------", genName);
            let seqNum;
            const keys = Object.keys(expandRowKeys);
            if (genName != "") {
                seqNum = this.getSeqNumbers(this.tableDataForGen, keys);
            }
            else {
                seqNum = this.getSeqNumbers(this.tableData, keys);
            }
            let i = genName.lastIndexOf("-");
            let name = genName.substring(0, i);
            this.splashHttpService.getLogs(this.testRunNumber, seqNum, name).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetLogsLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetLogsLoadedState"]) {
                    this.onLoadedGetLogs(state, genName);
                    return;
                }
            }, (state) => {
            });
            let divElement;
            if (genName !== "") {
                divElement = document.getElementsByClassName('ui-accordion-content');
            }
            else {
                divElement = document.getElementsByClassName('p-3');
            }
            let tableWidt = divElement[0]['clientWidth'] - 32;
            this.tableWidth = { width: tableWidt + 'px' };
        }
        catch (e) {
            console.error(e);
        }
    }
    onLoadedGetLogs(state, genName) {
        let response = state.data;
        console.log('response for log...', response);
        this.logData = response;
        if (genName !== "") {
            this.setLogs(this.dataForGen, this.tableDataForGen);
        }
        else {
            this.setLogs(this.data, this.tableData);
        }
    }
    /* to make display variable true or false inorder to display dialogue */
    showDialog(stageName, genName) {
        this.display = true;
        if (genName !== '') {
            const key = Object.keys(this.tableDataForGen);
            for (let i = 0; i < key.length; i++) {
                const strKeyword = key[i];
                if (this.tableDataForGen[strKeyword]['stageName'] == stageName) {
                    this.errormsg = this.tableDataForGen[strKeyword]['errormsg'];
                    this.formatErrorMessage();
                }
            }
        }
        else {
            const keys = Object.keys(this.tableData);
            for (let i = 0; i < keys.length; i++) {
                const strKeyword = keys[i];
                if (this.tableData[strKeyword]['stageName'] == stageName) {
                    this.errormsg = this.tableData[strKeyword]['errormsg'];
                    this.formatErrorMessage();
                }
            }
        }
    }
    formatErrorMessage() {
        let errMsg = this.errormsg;
        this.errormsg = "";
        let isMessageFlag = true;
        for (let i = 0; i < errMsg.length; i++) {
            while (errMsg[i].toString().indexOf("<") > -1 || errMsg[i].toString().indexOf(">") > -1) {
                errMsg[i] = errMsg[i].toString().replace("<", "&lt;");
                errMsg[i] = errMsg[i].toString().replace(">", "&gt;");
            }
            if (errMsg[i].toString().startsWith("CavErr")) {
                this.errormsg = "<p class='cavErrClass'>" + errMsg[i].toString() + "<br>";
                isMessageFlag = false;
            }
            else if (errMsg[i].toString().startsWith("Message:")) {
                let msgStrArr = errMsg[i].toString().split("Message:");
                if (msgStrArr.length > 1)
                    this.errormsg += "</p>" + msgStrArr[1] + "<br>";
                else
                    this.errormsg += "</p>";
                isMessageFlag = true;
            }
            else {
                this.errormsg += errMsg[i].toString();
            }
        }
        if (!isMessageFlag)
            this.errormsg += "</p>";
    }
    /* to download the logs from download log button */
    downloadLogs() {
        try {
            this.splashHttpService.getCurrentPartition(this.testRunNumber).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetCurrentPartitionLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetCurrentPartitionLoadedState"]) {
                    this.onLoadedGetCurrentPartition(state);
                    return;
                }
            }, (state) => {
            });
        }
        catch (e) {
            console.error(e);
        }
    }
    onLoadedGetCurrentPartition(state) {
        let machineIP = window.location.protocol + "//" + window.location.host, response = state.data;
        console.log('response for log...', response);
        let curPartiotion = response;
        let path = machineIP + '/logs/TR' + this.testRunNumber + '/' + curPartiotion + '/ns_logs/ns_trace.log';
        window.open(path);
    }
    /* to get the warnings to be displayed on click of Warning Count in right panel of screen */
    getWarnings(gen) {
        console.log("----in getWarnings----", gen);
        let count = this.statusData.warningCount;
        if (count !== 0) {
            this.showWarnings = true;
            this.splashHttpService.GetWarning(gen, this.testRunNumber, this.generatorName).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetWarningLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetWarningLoadedState"]) {
                    this.onLoadedGetWarning(state);
                    return;
                }
            }, (state) => {
            });
        }
        else {
            this.showWarnings = false;
        }
    }
    onLoadedGetWarning(state) {
        this.warningLogs = state.data;
    }
    /* to make the object for donut chart */
    makeChart(arr) {
        try {
            let countForError = arr[1];
            let compl;
            console.log("makeChat Completed-----", this.completedStage);
            if (this.tabIndex == 0) {
                if (this.completedStageForCont == null) {
                    this.completedStageForCont = arr[0];
                }
                else {
                    this.completedStageForCont = parseInt(this.completedStageForCont) + parseInt(arr[0]);
                }
                compl = this.completedStageForCont;
            }
            else {
                if (this.completedStage == null) {
                    this.completedStage = arr[0];
                }
                else {
                    this.completedStage = parseInt(this.completedStage) + parseInt(arr[0]);
                }
                compl = this.completedStage;
            }
            let countForRunning = arr[2];
            let countNotStarted = arr[3];
            let totalCount = compl + arr[1] + arr[2] + arr[3];
            let perToDisplay;
            let error;
            if (countForError == 0) {
                error = 0;
            }
            else {
                error = Number(((countForError / totalCount) * 100).toFixed(1));
            }
            let completed;
            if (compl == 0) {
                completed = 0;
            }
            else {
                completed = Number(((compl / totalCount) * 100).toFixed(1));
            }
            let running;
            if (countForRunning == 0) {
                running = 0;
            }
            else {
                running = Number(((countForRunning / totalCount) * 100).toFixed(1));
            }
            let notStarted;
            if (countNotStarted == 0) {
                notStarted = 0;
            }
            else {
                notStarted = Number(((countNotStarted / totalCount) * 100).toFixed(1));
            }
            perToDisplay = Math.round(Number(completed));
            if (countForError == 0 && compl == 0 && countForRunning == 0 && countNotStarted == 0) {
                notStarted = 100;
            }
            console.log("RUNNNING-----", running);
            console.log("NOT STARTED------", notStarted);
            this.chartObj = {
                "chart": {
                    "type": "pie",
                    "plotShadow": false,
                    "backgroundColor": "rgba(0,0,0,0)",
                    "height": 250,
                    "width": 310,
                    "align": "right"
                },
                "credits": {
                    "enabled": false
                },
                "tooltip": {
                    "pointFormat": "{point.y}%"
                },
                "legend": {
                    "floating": false,
                    "itemStyle": {
                        "fontSize": "10px",
                    },
                },
                "title": {
                    "text": perToDisplay + "%",
                    "verticalAlign": 'middle',
                    "x": 8,
                    "y": -16,
                    "floating": true
                },
                "subtitle": {
                    "text": ""
                },
                "plotOptions": {
                    "pie": {
                        "allowPointSelect": true,
                        "innerSize": '60%',
                        "borderColor": '',
                        "cursor": "pointer",
                        "dataLabels": {
                            "enabled": false,
                            "format": "{point.name}({point.percentage:.1f})%</br>",
                            "style": {
                                "fontSize": "10px",
                                "fontWeight": "",
                                "textOutline": ""
                            }
                        },
                        "showInLegend": true,
                        "point": {
                            "events": {
                                legendItemClick: function (e) {
                                    e.preventDefault();
                                }
                            }
                        },
                        "size": 170
                    }
                },
                "series": [
                    {
                        "type": "pie",
                        "enableMouseTracking": true,
                        "data": [
                            {
                                "name": "Completed",
                                "y": Number(completed),
                                "color": '#09a709'
                            },
                            {
                                "name": "Running",
                                "y": Number(running),
                                "color": '#65bfff'
                            },
                            {
                                "name": "Error",
                                "y": Number(error),
                                "color": '#f23333'
                            },
                            {
                                "name": "Not Started",
                                "y": Number(notStarted),
                                "color": "#A9A9A9"
                            }
                        ]
                    }
                ]
            };
        }
        catch (error) {
            console.error('errorrr:', error);
        }
    }
    /* to get the type of test i.e. NC or not on the basis of NS_GENERATOR keyword in the scenario */
    getTestType(scenarioName, response) {
        /* checking test type */
        this.requestJsonParm = {
            keyword: this.screenKeywordList,
            scenMode: this.scenModeForScenario,
            scenName: scenarioName,
            userName: this.sessionService.session.cctx.u,
            testRunNum: this.testRunNumber
        };
        this.scenHttpService.getDefaultKeywordData(this.requestJsonParm).subscribe((state) => {
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_13__["GetDefaultKeywordDataLoadingState"]) {
                return;
            }
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_13__["GetDefaultKeywordDataLoadedState"]) {
                this.onLoadedGetDefaultKeywordData(state, response);
                return;
            }
        }, (state) => {
        });
        /* end checking */
    }
    onLoadedGetDefaultKeywordData(state, response) {
        let result = state.data;
        let obj = result['NS_GENERATOR'];
        let dataArr = obj['data'];
        if (dataArr !== null && dataArr !== undefined && Object.keys(obj.data).length !== 0) {
            this.showGeneratorCount = true;
        }
        else {
            this.showGeneratorCount = false;
        }
        this.setTableData(response);
        this.makeCallForTestType = false;
        this.checkForGen();
    }
    /* making call for data of controller and generator */
    getData(controller, genName) {
        console.log("--in getData--", genName);
        let productName = this.sessionService.session.cctx.prodType;
        let seqNumList = "";
        if (controller != "") {
            /**check for sending sequence number of not completed stage and getting data for that stage only */
            if (this.tableData != null && this.tableData != undefined && Object.keys(this.tableData).length != 0) {
                const keys = Object.keys(this.tableData);
                for (let i = 0; i < keys.length; i++) {
                    const strKeyword = keys[i];
                    if (this.tableData[strKeyword]['status'] != 'Completed') {
                        if (seqNumList == "") {
                            seqNumList = strKeyword;
                        }
                        else {
                            seqNumList += ',' + strKeyword;
                        }
                    }
                }
            }
        }
        if (genName != "") {
            if (this.tableDataForGen != null && this.tableDataForGen != undefined && Object.keys(this.tableDataForGen).length != 0) {
                const keys = Object.keys(this.tableDataForGen);
                for (let i = 0; i < keys.length; i++) {
                    const strKeyword = keys[i];
                    if (this.tableDataForGen[strKeyword]['status'] != 'Completed') {
                        if (seqNumList == "") {
                            seqNumList = strKeyword;
                        }
                        else {
                            seqNumList += ',' + strKeyword;
                        }
                    }
                }
            }
        }
        let userName = this.sessionService.session.cctx.u;
        try {
            this.splashHttpService.getDataForController(this.testMode, productName, this.testRunNumber, seqNumList, userName, genName).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetDataForControllerLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetDataForControllerLoadedState"]) {
                    this.onLoadedGetDataForController(state, controller, genName);
                    return;
                }
            }, (state) => {
            });
        }
        catch (error) {
            console.error("error----", error);
        }
    }
    onLoadedGetDataForController(state, controller, genName) {
        let response = state.data;
        this.summaryData = response['controllerData']['summary'];
        if (controller != "") {
            /* calling method to set data for controller */
            this.getTableData(response);
        }
        else {
            this.resGen = response;
            let resForGen = response.generatorData['data'];
            if (resForGen !== null && Object.keys(resForGen).length !== 0) {
                /* calling method to set data for generator */
                this.getTableDataForGen(response, genName);
            }
            else {
                if (genName)
                    this.GenData[genName] = [];
                console.log("in else of get data------------->>>>>");
                this.statusData.counters = response.generatorData['counters'];
                this.makeChart(this.statusData.counters);
            }
        }
    }
    /* making table data for controller */
    getTableData(response) {
        try {
            let info = response['controllerData']['info'];
            let scenName = this.tempScen;
            if (info['scenario'])
                scenName = info['scenario'];
            /* getTestType called */
            if (this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false) {
                this.scenModeForScenario = 0;
                this.scenNameForType = scenName;
            }
            else {
                this.scenModeForScenario = 2;
                this.scenNameForType = "TestRun/" + this.testRunNumber + "/" + scenName.substring(scenName.lastIndexOf("/") + 1);
            }
            if (this.getScenName == true) {
                /* calling method for checking type of test */
                this.getTestType(this.scenNameForType, response);
            }
            else {
                this.setTableData(response);
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    setTableData(response) {
        try {
            if (this.tableData == null || this.tableData == undefined || Object.keys(this.tableData).length == 0) {
                this.tableData = response['controllerData']['data'];
            }
            else {
                this.tableDataForSpecificIndex = response['controllerData']['data'];
            }
            this.data = [];
            const keys = Object.keys(this.tableData);
            for (let i = 0; i < keys.length; i++) {
                const strKeyword = keys[i];
                /**if call is coming second time. */
                if (this.tableDataForSpecificIndex != null && this.tableDataForSpecificIndex != undefined && Object.keys(this.tableDataForSpecificIndex).length !== 0) {
                    const dataKeys = Object.keys(this.tableDataForSpecificIndex);
                    for (let k = 0; k < dataKeys.length; k++) {
                        const dataky = dataKeys[k];
                        if (dataky == strKeyword) {
                            /**checking if any stage is deleted then not showing in table. */
                            if (this.tableDataForSpecificIndex[dataky] == null) {
                                delete this.tableData[strKeyword];
                                continue;
                            }
                            else {
                                this.tableData[strKeyword] = this.tableDataForSpecificIndex[dataky];
                            }
                        }
                    }
                }
                /**if logs are expanded the remain expanded*/
                /**for getting logs if xpanded */
                if (this.dtObj != null && this.dtObj != undefined && Object.keys(this.dtObj.expandedRowKeys).length !== 0) {
                    this.showLogsForRow(this.dtObj.expandedRowKeys, '');
                }
                /**if any stage has no data then not showing in table. */
                if (this.tableData[strKeyword] !== null && this.tableData[strKeyword] !== undefined) {
                    if (this.tableData[strKeyword]['stageName'] !== "") {
                        let contdata = this.tableData[strKeyword];
                        this.data.push(contdata);
                    }
                }
            }
            /**showing full data of summary in tooltip if text is more */
            this.adjustPanelCaption(this.data);
            /**logs key remain expanded if expanded before call */
            if (this.expandedRowKeys !== null && this.expandedRowKeys !== undefined) {
                this.dtObj.expandedRowKeys = this.expandedRowKeys;
            }
            this.statusData = new _container_TestInitiallizationStatusDTO__WEBPACK_IMPORTED_MODULE_6__["TestInitiallizationStatusDTO"]();
            /**updating counters */
            this.statusData.counters = response['controllerData']['counters'];
            /**to show the info of right panel.*/
            this.OverallInfo = response['controllerData']['info'];
            if (this.OverallInfo['vusers'] !== "") {
                if (this.OverallInfo.vusers.includes("-")) {
                    let splitVuser = this.OverallInfo.vusers.split("-");
                    let splitMore = splitVuser[1].split("VUsers");
                    let result = this.numberWithCommas(splitMore[0]);
                    this.OverallInfo.vusers = this.OverallInfo.vusers.replace(splitMore[0], result);
                }
            }
            if (this.OverallInfo['testName'] !== '')
                this.testName = this.OverallInfo['testName'] ? decodeURIComponent(this.OverallInfo['testName']) : this.OverallInfo['testName'];
            if (this.OverallInfo['scenario'])
                this.tempScen = this.OverallInfo['scenario'];
            let temArr = this.tempScen.split('/');
            this.scenarioNameForTop = temArr[2];
            this.statusData.warningCount = response['warningCount'];
            if (this.statusData.warningCount > 0) {
                this.warningHyperLink = { cursor: 'pointer' };
            }
            else {
                this.warningHyperLink = { cursor: 'default' };
            }
            this.statusData.ncKeyword = response['ncKeyword'];
            if (this.OverallInfo['elapsedTime'] !== "") {
                this.elapsedTimeString = this.OverallInfo['elapsedTime'];
            }
            if (this.showCancelTest == false) {
                this.updateElapsedTimeStamp();
            }
            if (this.loadUtilsService.$splashScreenFromDashboard == false) {
                console.log("splashScreenFromDashboard in check =", this.loadUtilsService.$splashScreenFromDashboard);
                let startTimeInMSec = -1;
                if (this.summaryData && this.summaryData != "NA") {
                    let summaryDataArr = this.summaryData.split("|");
                    if (summaryDataArr.length >= 18) {
                        if (summaryDataArr[17] != "0")
                            startTimeInMSec = Number.parseInt(summaryDataArr[17]) * 1000;
                    }
                }
                this.openDashboard(startTimeInMSec);
            }
            this.makeChart(this.statusData.counters);
            if (this.getScenName == false) {
                this.checkForGen();
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    numberWithCommas(x) {
        return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    }
    /* method to check if eigth stage of controller is initialized, then bring data for first gen and make gen tab enabled */
    checkForGen() {
        console.log("------in checkForGen------");
        if (this.showGeneratorCount == true && this.tableData[10] !== null && this.tableData[10] !== undefined) {
            if (this.tableData[10]['status'] !== '') {
                /* calling method for running nsu_get_gen_info shell and getting data for generator */
                this.disableGen = false; //enabling gen tab if 8th stage of controller has started
                if (this.tabIndex == 1) {
                    let i = this.genNameList[0].lastIndexOf("-");
                    let name = this.genNameList[0].substring(0, i);
                    if (this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false) {
                        this.createGenFiles(name);
                    }
                    else {
                        this.getData('', name);
                    }
                }
            }
        }
    }
    /* method for running nsu_get_gen_info shell and getting data for generator */
    createGenFiles(genName) {
        try {
            console.log("in createGenFiles*****");
            let userName = this.sessionService.session.cctx.u;
            this.splashHttpService.createGeneratorFiles(this.testRunNumber, window.location.host, userName, genName).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["CreateGeneratorFilesLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["CreateGeneratorFilesLoadedState"]) {
                    let response = state.data;
                    if (response == true) {
                        this.getData('', genName);
                        this.updateGenList();
                    }
                    return;
                }
            }, (state) => {
            });
        }
        catch (e) {
            console.error(e);
        }
    }
    /* making table data for gen */
    getTableDataForGen(response, genName) {
        try {
            console.log("-------in getTableDataForGen------", genName);
            /**for getting data for all stages in first time */
            if (this.tableDataForGen == null || this.tableDataForGen == undefined || Object.keys(this.tableDataForGen).length == 0) {
                this.tableDataForGen = response['generatorData']['data'];
            }
            else {
                /**in other times getting for non completed stages. */
                this.tableDataForSpecificIndexForGen = response['generatorData']['data'];
            }
            this.dataForGen = [];
            /**updating data for non completed stages in tabledata object. */
            const keys = Object.keys(this.tableDataForGen);
            for (let i = 0; i < keys.length; i++) {
                console.log('inside for loop....');
                const strKeyword = keys[i];
                if (this.tableDataForSpecificIndexForGen != null && this.tableDataForSpecificIndexForGen != undefined && Object.keys(this.tableDataForSpecificIndexForGen).length !== 0) {
                    const dataKeys = Object.keys(this.tableDataForSpecificIndexForGen);
                    for (let k = 0; k < dataKeys.length; k++) {
                        const dataky = dataKeys[k];
                        if (dataky == strKeyword) {
                            if (this.tableDataForSpecificIndexForGen[dataky] == null) {
                                delete this.tableDataForGen[strKeyword];
                            }
                            else {
                                this.tableDataForGen[strKeyword] = this.tableDataForSpecificIndexForGen[dataky];
                            }
                        }
                    }
                }
                /**for getting logs if expanded */
                this.divs.forEach(queryTab => {
                    let generName = queryTab['el']['nativeElement']['id'];
                    if (generName == genName) {
                        if (Object.keys(queryTab['expandedRowKeys']).length !== 0) {
                            this.showLogsForRow(queryTab['expandedRowKeys'], genName);
                        }
                    }
                });
                /**if some stage has no data then not showing in table. */
                if (this.tableDataForGen[strKeyword] !== null && this.tableDataForGen[strKeyword] !== undefined) {
                    if (this.tableDataForGen[strKeyword]['stageName'] !== "") {
                        let contdata = this.tableDataForGen[strKeyword];
                        this.dataForGen.push(contdata);
                    }
                }
            }
            if (genName)
                this.GenData[genName] = [...this.dataForGen];
            /**showing summary in tooltip  */
            this.adjustPanelCaption(this.dataForGen);
            /**when data comes after 10 seconds then expandeed rows will remain expanded. */
            if (this.expandedRowKeysOfGen !== null && this.expandedRowKeysOfGen !== undefined && Object.keys(this.expandedRowKeysOfGen).length !== 0) {
                this.divs.forEach(queryTab => {
                    let generName = queryTab['el']['nativeElement']['id'];
                    if (generName == genName) {
                        queryTab['expandedRowKeys'] = this.expandedRowKeysOfGen;
                    }
                });
            }
            this.statusData = new _container_TestInitiallizationStatusDTO__WEBPACK_IMPORTED_MODULE_6__["TestInitiallizationStatusDTO"]();
            /**updating counters */
            this.statusData.counters = response['generatorData']['counters'];
            /**updating right panel info. */
            this.OverallInfoForGen = response['generatorData']['info'];
            if (this.OverallInfoForGen['vusers'] !== "") {
                let splitVuser = this.OverallInfoForGen.vusers.split("-");
                let splitMore = splitVuser[1].split("VUsers");
                let result = this.numberWithCommas(splitMore[0]);
                this.OverallInfoForGen.vusers = this.OverallInfoForGen.vusers.replace(splitMore[0], result);
            }
            /**updating warning count */
            this.statusData.warningCount = response['warningCount'];
            if (this.statusData.warningCount > 0) {
                this.warningHyperLink = { cursor: 'pointer' };
            }
            else {
                this.warningHyperLink = { cursor: 'default' };
            }
            /**updating elapsed time */
            if (this.OverallInfoForGen['elapsedTime'] !== "") {
                this.elapsedTimeStringForgen = this.OverallInfoForGen['elapsedTime'];
            }
            if (this.showCancelTest == false) {
                this.updateElapsedTimeStampForGen();
            }
            /**draw chart */
            console.log("before make chart----------");
            this.makeChart(this.statusData.counters);
        }
        catch (e) {
            console.error(e);
        }
    }
    /* method used to get generator table data on click of accordion tab */
    generatorData(genName) {
        try {
            this.dataForGen = [];
            console.log("**********in generator data**********");
            this.tableDataForGen = {};
            this.completedStage = null;
            this.tableDataForSpecificIndexForGen = {};
            this.OverallInfoForGen = null;
            this.chartObj = {};
            this.elapsedTimeStringForgen = "";
            this.updateAccordTab = '';
            /* making all expanded rows of table collapsed */
            let obj;
            this.divs.forEach(queryTab => {
                let generName = queryTab['el']['nativeElement']['id'];
                if (generName == genName) {
                    obj = queryTab['expandedRowKeys'];
                    if (Object.keys(queryTab['expandedRowKeys']).length !== 0) {
                        queryTab['expandedRowKeys'] = {};
                    }
                }
            });
            this.showGenName = true;
            /* setting value of generator name clicked in the global variables*/
            this.gen = genName;
            let i = genName.lastIndexOf("-");
            let name = genName.substring(0, i);
            this.generatorName = name;
            if (this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false) {
                console.log("**********test is online*********");
                /* method called to run nsu_get_gen_info shell to make generator files and get data for table in online mode */
                this.getGenNameList();
            }
            else {
                /* getting data in offline mode */
                this.getData('', name);
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    updateGenList() {
        this.splashHttpService.getGenList(this.testRunNumber).subscribe((state) => {
            if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetGenListLoadingState"]) {
                return;
            }
            if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetGenListLoadedState"]) {
                this.genNameList = state.data;
                return;
            }
        }, (state) => {
        });
    }
    /* method for getting list of generators and making request for first gen data*/
    getGenNameList() {
        try {
            console.log('----in getGenNameList----');
            this.splashHttpService.getGenList(this.testRunNumber).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetGenListLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["GetGenListLoadedState"]) {
                    this.onLoadedGetGenList(state);
                    return;
                }
            }, (state) => {
            });
        }
        catch (e) {
            console.error(e);
        }
    }
    onLoadedGetGenList(state) {
        this.genNameList = state.data;
        console.log("**********gen List*********", this.genNameList);
        // /* making expanded rows collapsed */
        this.divs.forEach(queryTab => {
            let generName = queryTab['el']['nativeElement']['id'];
            if (generName.startsWith(this.generatorName)) {
                if (Object.keys(queryTab['expandedRowKeys']).length !== 0) {
                    queryTab['expandedRowKeys'] = {};
                }
            }
        });
        //to keep first tab open
        console.log("check 1---->>", this.genNameList.length);
        console.log("check 2---->>", this.generatorName);
        console.log("check 3---->>", this.updateAccordTab);
        let ji = this.updateAccordTab.lastIndexOf("-");
        let accordOpen = this.updateAccordTab.substring(0, ji);
        if (this.updateAccordTab !== '' && this.updateAccordTab !== null && this.updateAccordTab !== undefined) {
            console.log("update Accord Tab :", this.updateAccordTab);
            this.accord.forEach(queryTab => {
                let arr = queryTab['tabList']['_results'];
                for (let i = 0; i < arr.length; i++) {
                    let j = arr[i]['header'].lastIndexOf("-");
                    let name = arr[i]['header'].substring(0, j);
                    if (name == accordOpen) {
                        arr[i]['selected'] = true;
                    }
                    else {
                        arr[i]['selected'] = false;
                    }
                }
            });
        }
        if (this.genNameList.length > 0 && this.generatorName == '') {
            console.log("genName not selected------>>", this.generatorName);
            let i = this.genNameList[0].lastIndexOf("-");
            let nameOfFirstGen = this.genNameList[0].substring(0, i);
            let subcribes = setTimeout(() => {
                this.accord.forEach(queryTab => {
                    let arr = queryTab['tabList']['_results'];
                    for (let i = 0; i < arr.length; i++) {
                        let j = arr[i]['header'].lastIndexOf("-");
                        let nameArr = arr[i]['header'].substring(0, j);
                        if (nameArr == nameOfFirstGen) {
                            arr[i]['selected'] = true;
                        }
                        else {
                            arr[i]['selected'] = false;
                        }
                    }
                });
            }, 1000 * 2);
            this.generatorName = nameOfFirstGen;
        }
        console.log("AAAAAAAAAA-------", this.generatorName);
        if (this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false && this.callForGen == true) {
            this.createGenFiles(this.generatorName);
        }
        else {
            this.getData('', this.generatorName);
        }
    }
    /* method to get data of controller and generator on switch of tab */
    onTabChange(event) {
        try {
            console.log("GENNNNNNNNNNNNN-----", this.generatorName);
            this.completedStage = null;
            this.tabIndex = event.index;
            if (event.index == 0) {
                this.getData('controller', '');
            }
            /**for getting generator name list */
            if (event.index == 1) {
                this.tableDataForGen = {};
                this.tableDataForSpecificIndexForGen = {};
                this.OverallInfoForGen = null;
                this.chartObj = {};
                this.elapsedTimeStringForgen = "";
                this.accord.forEach(queryTab => {
                    let arr = queryTab['tabList']['_results'];
                    for (let i = 0; i < arr.length; i++) {
                        if (arr[i]['selected'] == true) {
                            this.updateAccordTab = arr[i]['header'];
                        }
                    }
                });
                console.log("updateAccordTab on tabChange------", this.updateAccordTab);
                /* method for getting list of generators and making request for first gen data*/
                this.getGenNameList();
            }
        }
        catch (e) {
            console.error(e);
        }
    }
    onTabClose(event) {
        console.log("event onTabClose------>>>>>>>>>>>>", event);
        this.generatorName = '';
        this.updateAccordTab = '';
    }
    /* handling for opening dashboard and safety checks for cont */
    openDashboard(startTimeInMSec) {
        let length = this.data.length;
        let res = this.loadUtilsService.$resForScen;
        let errorCount = 0;
        let runningCount = 0;
        let completedCount = 0;
        let stageName = "";
        const dataKeys = Object.keys(this.tableData);
        for (let j = 0; j < dataKeys.length; j++) {
            const datakey = dataKeys[j];
            let stat = this.tableData[datakey]['status'];
            if (stat == "Error") {
                errorCount = errorCount + 1;
                stageName = this.tableData[datakey]['stageName'];
                this.errormsg = this.tableData[datakey]['errormsg'];
                this.formatErrorMessage();
            }
            else if (stat == "Running") {
                runningCount = runningCount + 1;
            }
            else if (stat == "Completed") {
                completedCount = completedCount + 1;
            }
        }
        if (this.getScenName == true && this.testMode == true && this.loadUtilsService.$testInitFromTestScreen == false) {
            if (completedCount == Object.keys(this.tableData).length) {
                this.showCancelTest = true;
                if (this.timerSubscription) {
                    this.timerSubscription.unsubscribe();
                }
                clearInterval(this.sub);
                return;
            }
            else {
                this.showCancelTest = false;
            }
        }
        console.log("stop dialogue---->>", this.stopDialog);
        if (this.statusData.ncKeyword == false && this.stopDialog == true && errorCount == 0 && completedCount !== Object.keys(this.tableData).length) {
            if (stageName) {
                this.showDialog(stageName, '');
            }
            else {
                this.testRunError = 'Test stopped successfully.';
                this.displayErrorDialog = true;
            }
            this.callForCont = false;
            if (this.timerSubscription) {
                this.timerSubscription.unsubscribe();
            }
            this.showCancelTest = true;
        }
        /**if last stage is completed and running mode is true then do not update screen and stop timer also. */
        if (completedCount == Object.keys(this.tableData).length && this.loadUtilsService.$runningModeTest == true) {
            this.callForCont = false;
            if (this.timerSubscription) {
                this.timerSubscription.unsubscribe();
            }
            this.showCancelTest = true;
        }
        /**if last stage is complete and running mode is false then open dashboard after 5 seconds. */
        if (completedCount == Object.keys(this.tableData).length && this.loadUtilsService.$runningModeTest == false) {
            this.showCancelTest = true;
            setTimeout(() => {
                clearInterval(this.sub);
                let requestJsonParm = {
                    keyword: ['DEBUG_TRACE'],
                    scenMode: this.scenUtilService.ScenMode,
                    scenName: this.tempScen,
                    userName: this.sessionService.session.cctx.u,
                    testRunNum: this.testRunNumber
                };
                this.scenHttpService.getDefaultKeywordData(requestJsonParm).subscribe((state) => {
                    if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_13__["GetDefaultKeywordDataLoadingState"]) {
                        return;
                    }
                    if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_13__["GetDefaultKeywordDataLoadedState"]) {
                        this.onLoadedGetDefaultKeywordDataForDebug(state, startTimeInMSec);
                        return;
                    }
                }, (state) => {
                });
            }, 5000);
        }
        else {
        }
        /**if last stage has error then do not update screen and stop timer. */
        if (errorCount !== 0) {
            this.showCancelTest = true;
            if (this.blockDialog == false && this.loadUtilsService.$testInitFromTestScreen == true && this.loadUtilsService.$splashScreenFromDashboard == false && this.displayErrorDialog == false && this.stopErrDialog == false) {
                if (stageName) {
                    this.showDialog(stageName, '');
                }
                else {
                    this.notInitialised = true; //test not initialised
                }
                this.blockDialog = true;
            }
            this.callForCont = false;
            if (this.timerSubscription) {
                this.timerSubscription.unsubscribe();
            }
        }
    }
    onLoadedGetDefaultKeywordDataForDebug(state, startTimeInMSec) {
        let result = state.data;
        let isDebugTrace = result['DEBUG_TRACE']['data']['_G'];
        if (isDebugTrace != null && isDebugTrace != undefined && isDebugTrace[0][0] == "1") {
            let username = this.sessionService.session.cctx.u;
            this.splashHttpService.debugTrace(this.testRunNumber, username).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["DebugTraceLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["DebugTraceLoadedState"]) {
                    this.getDataFromUrl(state);
                    return;
                }
            }, (state) => {
            });
        }
        else {
            this.openDash(startTimeInMSec);
        }
    }
    handleInitialised() {
        this.notInitialised = false;
        this.loadUtilsService.$testInitFromTestScreen = false;
        this.loadUtilsService.$splashScreenFromDashboard = true;
    }
    /* getting 32 bit hashcode for string */
    getHashCode(str) {
        try {
            var hash = 0, i, chr, len;
            if (str.length === 0)
                return hash;
            for (i = 0, len = str.length; i < len; i++) {
                chr = str.charCodeAt(i);
                hash = ((hash << 5) - hash) + chr;
                hash |= 0; // Convert to 32bit integer
            }
            return hash;
        }
        catch (e) {
            console.error(e);
        }
    }
    /* method for opening dashboard after test is initialized successfully */
    openDash(startTimeInMSec) {
        var _a;
        console.log('inside opendash....');
        let res = this.loadUtilsService.$resForScen;
        let arrTemp = res;
        let testR = this.testRunNumber;
        this.sessionService.updateTRIntoNodeInfoHeader(testR);
        /*getting key format*/
        var keyString = window.location.hostname + ":" + window.location.port + ":" + testR + ":" + this.userLoginName;
        /* getting hashcode for key */
        var key = this.getHashCode(keyString).toString();
        /* getting object for hash code */
        let objet = {
            testRun: testR,
            productName: sessionStorage.getItem("sessServerTitle"),
            isOnline: true,
            userName: this.userLoginName,
            product: sessionStorage.getItem("productType"),
            role: sessionStorage.getItem("sesRole"),
            userGroup: 'cavisson'
        };
        window.localStorage.setItem(key, JSON.stringify(objet));
        var machineUrl = window.location.protocol + "//" + window.location.host;
        var url = machineUrl + "/ProductUI/../webdashboard/dashboard.html?requestID=" + key;
        this.loadUtilsService.setWebdashboardURL(url);
        this.sessionService.session.testStatus = -1;
        this.loading = false;
        if (this.loadUtilsService.$openDashboardInTab == true) {
            this.loadUtilsService.$dashboardTestRun = Number(testR);
            this.sessionService.session.testRun.id = testR;
            this.sessionService.session.testRun.running = true;
            this.sessionService.session.testRun.cmt = false;
            this.sessionService.updateSessionServiceKey();
            if (startTimeInMSec && startTimeInMSec != -1)
                this.sessionService.session.testRun.st = startTimeInMSec;
            else
                this.sessionService.session.testRun.st = this.OverallInfo['startDateTime'] ? this.sessionService.convertFormattedStringIntoTimestamp(this.OverallInfo['startDateTime'], "MM/DD/YYYY HH:mm:ss") : 0;
            this.sessionService.session.testRun.duration = 0;
            this.sessionService.session.testRun.scenario = this.OverallInfo['scenario'];
            this.sessionService.session.testRun.jsonStr = this.OverallInfo['jsonStr'];
            this.sessionService.updateSessionServiceKey();
            let summaryDataArr = this.summaryData.split("|");
            let genInfo = summaryDataArr[21].split(":");
            if (genInfo.length <= 2) {
                this.sessionService.session.testRun.generatorInfo = summaryDataArr[21];
                this.sessionService.session.testRun.filteredGen = "0";
                this.sessionService.updateSessionServiceKey();
            }
            else {
                this.sessionService.session.testRun.generatorInfo = `${genInfo[0]}:${genInfo[1]}`;
                this.sessionService.session.testRun.filteredGen = genInfo[2];
                this.sessionService.updateSessionServiceKey();
            }
            this.sessionService.session.testRun.groupBased = summaryDataArr[22] == "0" ? false : true;
            this.sessionService.session.testRun.ddrPCTDetail = summaryDataArr[23];
            this.sessionService.updateSessionServiceKey();
            let jsonObj = JSON.parse(summaryDataArr[summaryDataArr.length - 1]);
            this.sessionService.session.testRun.tracingPct = (_a = this.loadTestcommonServcie.parseAndReturnKey(jsonObj.trace, 'trace')) !== null && _a !== void 0 ? _a : "-1";
            this.loadUtilsService.registerNewTestRun(testR, this.OverallInfo['startDateTime'], this.loadUtilsService.getKeyFrmDCObj(`${this.sessionService.session.cctx.u}#${this.activeWPService.profile}#${this.scenNameForType}`), true);
            this.loadTestcommonServcie.getFavorite(this.sessionService.session.testRun.id, this.sessionService.session.cctx.u).then((result) => {
                this.sessionService.session.testRun.scenarioFav = result;
                this.sessionService.dashboardCache = null;
                this.sessionService.updateSessionServiceKey();
                this.router.navigate(['/home/dashboard']);
            });
        }
        else {
            this.router.navigate(['/home/openTestRunGrid']);
            window.open(this.loadUtilsService.getWebdashboardURL());
        }
    }
    ngOnDestroy() {
        //Reseting testInitRouteFrom
        this.loadUtilsService.$testInitRouteFrom = "";
        clearInterval(this.sub);
        this.loadUtilsService.$resForScen = null;
        if (this.timerSubscription) {
            this.timerSubscription.unsubscribe();
        }
    }
    /* method for stopping test from Cancel Test button in the screen */
    stopTest() {
        try {
            this.stopErrDialog = true;
            this.splashHttpService.stopTestRun(this.testRunNumber, this.sessionService.session.cctx.u).subscribe((state) => {
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["StopTestRunLoadingState"]) {
                    return;
                }
                if (state instanceof _services_splash_screen_state__WEBPACK_IMPORTED_MODULE_12__["StopTestRunLoadedState"]) {
                    this.onLoadedStopTestRun(state);
                    return;
                }
            }, (state) => {
            });
        }
        catch (e) {
            console.error(e);
        }
    }
    onLoadedStopTestRun(state) {
        let result = state.data;
        let testStatusValue = result.TestStopped;
        let netstormStatus = result.netstormStatus;
        this.getData('controller', '');
        if (testStatusValue === 'stopInProgress') {
            if (netstormStatus === false) {
                this.testRunError = 'Test cancelled Successfully.';
                this.loadTestcommonServcie.successMessage(this.testRunError);
            }
        }
        else if (testStatusValue === 'stopped') {
            this.testRunError = result.testOutPut;
            this.displayErrorDialog = true;
        }
        else {
            this.testRunError = result.testOutPut;
            this.displayErrorDialog = true;
        }
        this.callForCont = false;
        if (this.timerSubscription) {
            this.timerSubscription.unsubscribe();
        }
        this.showCancelTest = true;
    }
    hideDialog() {
        console.log("in hideDialog------>>");
        this.displayErrorDialog = false;
        this.stopDialog = false;
    }
    getDataFromUrl(state) {
        let result = state.data;
        let scriptName = '';
        let isRbu = '0';
        let isFileExist = 'true';
        scriptName = result.scriptName;
        isRbu = result.isRbuEnable;
        isFileExist = result.isFileExist;
        if (isFileExist == 'false') {
            this.loadTestcommonServcie.errorMessage(`Debug_trace.log is not available for test run - ${this.testRunNumber}`);
            return;
        }
        this.router.navigate(["/debug-trace/logs"]);
    }
    viewGeneratorStatus() {
        let isBrowserTab = Number(localStorage.getItem('isBrowserTab'));
        if (isBrowserTab === 0) {
            sessionStorage.setItem('generatorTestRun', this.testRunNumber);
            this.router.navigate(['/home/services/generatorStatus']);
        }
        else {
            let txtLocalStorage = {};
            txtLocalStorage['generatorTestRun'] = this.testRunNumber;
            txtLocalStorage['sesLoginName'] = this.userLoginName;
            if (localStorage.getItem('generatorStatus') !== null) {
                localStorage.removeItem('generatorStatus');
            }
            localStorage.setItem('generatorStatus', JSON.stringify(txtLocalStorage));
        }
    }
    getGenData(gen) {
        let genName = gen.split("-")[0];
        return this.GenData[genName];
    }
};
SplashScreenComponent.ctorParameters = () => [
    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"] },
    { type: src_app_pages_scenario_service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_16__["ScenarioUtilsService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_9__["SessionService"] },
    { type: _services_splash_screen_http_service__WEBPACK_IMPORTED_MODULE_10__["SplashScreenHttpService"] },
    { type: src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_17__["ScenarioHttpService"] },
    { type: _services_timer_service__WEBPACK_IMPORTED_MODULE_7__["TimerService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] },
    { type: _services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_8__["LoadTestUtilsService"] },
    { type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_14__["WorkProfileActiveService"] },
    { type: _services_load_test_common_services__WEBPACK_IMPORTED_MODULE_15__["LoadTestCommonService"] }
];
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"])("dtg")
], SplashScreenComponent.prototype, "divs", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"])("acc")
], SplashScreenComponent.prototype, "accord", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('dt')
], SplashScreenComponent.prototype, "dtObj", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('dtg')
], SplashScreenComponent.prototype, "dtgObj", void 0);
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('tableelmnt')
], SplashScreenComponent.prototype, "tableElement", void 0);
SplashScreenComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-splash-screen',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./splash-screen.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/load-test/splash-screen/splash-screen.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./splash-screen.component.scss */ "./src/app/pages/home/load-test/splash-screen/splash-screen.component.scss")).default]
    })
], SplashScreenComponent);



/***/ }),

/***/ "./src/app/pages/home/load-test/splash-screen/splash-screen.module.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/home/load-test/splash-screen/splash-screen.module.ts ***!
  \****************************************************************************/
/*! exports provided: SpashScreenModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpashScreenModule", function() { return SpashScreenModule; });
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
/* harmony import */ var primeng_tree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/tree */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tree.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var primeng_dropdown__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
/* harmony import */ var primeng_dialog__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
/* harmony import */ var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/selectbutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
/* harmony import */ var _angular_material_menu__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/menu */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/menu.js");
/* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/overlay */ "./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/overlay.js");
/* harmony import */ var primeng_fileupload__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primeng/fileupload */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
/* harmony import */ var primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primeng/breadcrumb */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-breadcrumb.js");
/* harmony import */ var primeng_slidemenu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primeng/slidemenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-slidemenu.js");
/* harmony import */ var primeng_inputtext__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
/* harmony import */ var primeng_fieldset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/fieldset */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js");
/* harmony import */ var primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js");
/* harmony import */ var primeng_messages__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! primeng/messages */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js");
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primeng/sidebar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-sidebar.js");
/* harmony import */ var primeng_lightbox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primeng/lightbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-lightbox.js");
/* harmony import */ var primeng_treetable__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primeng/treetable */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-treetable.js");
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js");
/* harmony import */ var _splash_screen_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./splash-screen.component */ "./src/app/pages/home/load-test/splash-screen/splash-screen.component.ts");
/* harmony import */ var angular2_highcharts__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! angular2-highcharts */ "./node_modules/angular2-highcharts/__ivy_ngcc__/index.js");
/* harmony import */ var angular2_highcharts__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(angular2_highcharts__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _services_timer_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../services/timer.service */ "./src/app/pages/home/load-test/services/timer.service.ts");
/* harmony import */ var _services_splash_screen_http_service__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./services/splash-screen-http.service */ "./src/app/pages/home/load-test/splash-screen/services/splash-screen-http.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");






























const route = [
    { path: '', component: _splash_screen_component__WEBPACK_IMPORTED_MODULE_25__["SplashScreenComponent"] }
];
let SpashScreenModule = class SpashScreenModule {
};
SpashScreenModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_splash_screen_component__WEBPACK_IMPORTED_MODULE_25__["SplashScreenComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            primeng_tree__WEBPACK_IMPORTED_MODULE_5__["TreeModule"],
            _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClientModule"],
            primeng_dropdown__WEBPACK_IMPORTED_MODULE_7__["DropdownModule"],
            primeng_button__WEBPACK_IMPORTED_MODULE_9__["ButtonModule"],
            primeng_selectbutton__WEBPACK_IMPORTED_MODULE_10__["SelectButtonModule"],
            _angular_material_menu__WEBPACK_IMPORTED_MODULE_11__["MatMenuModule"],
            primeng_fileupload__WEBPACK_IMPORTED_MODULE_13__["FileUploadModule"],
            _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_12__["OverlayModule"],
            primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_14__["BreadcrumbModule"],
            primeng_slidemenu__WEBPACK_IMPORTED_MODULE_15__["SlideMenuModule"],
            primeng_inputtext__WEBPACK_IMPORTED_MODULE_16__["InputTextModule"],
            primeng_fieldset__WEBPACK_IMPORTED_MODULE_17__["FieldsetModule"],
            primeng_table__WEBPACK_IMPORTED_MODULE_18__["TableModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CardModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CheckboxModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MenuModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MessageModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MultiSelectModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ToastModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ToolbarModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TabViewModule"],
            primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_19__["ConfirmDialogModule"],
            primeng_messages__WEBPACK_IMPORTED_MODULE_20__["MessagesModule"],
            primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__["SidebarModule"],
            primeng_lightbox__WEBPACK_IMPORTED_MODULE_22__["LightboxModule"],
            primeng_treetable__WEBPACK_IMPORTED_MODULE_23__["TreeTableModule"],
            primeng_inputnumber__WEBPACK_IMPORTED_MODULE_24__["InputNumberModule"],
            primeng_dialog__WEBPACK_IMPORTED_MODULE_8__["DialogModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["AccordionModule"],
            angular2_highcharts__WEBPACK_IMPORTED_MODULE_26__["ChartModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_29__["RouterModule"].forChild(route)
        ],
        exports: [_splash_screen_component__WEBPACK_IMPORTED_MODULE_25__["SplashScreenComponent"]],
        providers: [_services_timer_service__WEBPACK_IMPORTED_MODULE_27__["TimerService"], _services_splash_screen_http_service__WEBPACK_IMPORTED_MODULE_28__["SplashScreenHttpService"]]
    })
], SpashScreenModule);



/***/ })

}]);