(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["components-page-dump-revamped-page-dump-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.html":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/ddr/components/page-dump-revamped/page-dump.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>\n    <router-outlet></router-outlet>\n</div>\n\n<p-toast [style]=\"{'marginTop': '25px' }\" position=\"top-right\" key=\"pageDumpKey\"  baseZIndex=\"10000\" ></p-toast>\n");

/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.scss":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.scss ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.ts ***!
  \********************************************************************************/
/*! exports provided: PageDumpComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageDumpComponent", function() { return PageDumpComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var _service_page_dump_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./service/page-dump-utils.service */ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-utils.service.ts");




let PageDumpComponent = class PageDumpComponent {
    constructor(PageDumpUtilsService, messageService) {
        this.PageDumpUtilsService = PageDumpUtilsService;
        this.messageService = messageService;
    }
    ngOnInit() {
        this.subscription = this.PageDumpUtilsService.messageObservable$.subscribe((res) => {
            this.addMessage(res);
        });
    }
    addMessage(msg) {
        this.clearMessage();
        this.messageService.add(msg);
    }
    clearMessage() {
        this.messageService.clear();
    }
    ngOnDestroy() {
        if (this.subscription) {
            this.subscription.unsubscribe();
        }
    }
};
PageDumpComponent.ctorParameters = () => [
    { type: _service_page_dump_utils_service__WEBPACK_IMPORTED_MODULE_3__["PageDumpUtilsService"] },
    { type: primeng__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
];
PageDumpComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'page-dump',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./page-dump.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./page-dump.component.scss */ "./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.scss")).default]
    })
], PageDumpComponent);



/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/page-dump.module.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/page-dump.module.ts ***!
  \*****************************************************************************/
/*! exports provided: PageDumpModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageDumpModule", function() { return PageDumpModule; });
/* 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__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var primeng_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
/* harmony import */ var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/selectbutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
/* harmony import */ var primeng_inputtext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
/* harmony import */ var primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js");
/* harmony import */ var primeng_messages__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primeng/messages */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js");
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primeng/sidebar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-sidebar.js");
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _page_dump_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./page-dump.component */ "./src/app/pages/ddr/components/page-dump-revamped/page-dump.component.ts");
/* harmony import */ var _service_page_dump_utils_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./service/page-dump-utils.service */ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-utils.service.ts");
/* harmony import */ var _service_page_dump_http_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./service/page-dump-http.service */ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-http.service.ts");


















const route = [{
        path: '', component: _page_dump_component__WEBPACK_IMPORTED_MODULE_15__["PageDumpComponent"], children: [
            { path: '', redirectTo: 'home' },
            { path: 'home', loadChildren: () => __webpack_require__.e(/*! import() | page-dump-home-page-dump-home-module */ "page-dump-home-page-dump-home-module").then(__webpack_require__.bind(null, /*! ./page-dump-home/page-dump-home.module */ "./src/app/pages/ddr/components/page-dump-revamped/page-dump-home/page-dump-home.module.ts")).then((m) => m.PageDumpHomeModule) }
        ]
    }];
let PageDumpModule = class PageDumpModule {
};
PageDumpModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_page_dump_component__WEBPACK_IMPORTED_MODULE_15__["PageDumpComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClientModule"],
            primeng_dropdown__WEBPACK_IMPORTED_MODULE_6__["DropdownModule"],
            primeng_button__WEBPACK_IMPORTED_MODULE_7__["ButtonModule"],
            primeng_selectbutton__WEBPACK_IMPORTED_MODULE_8__["SelectButtonModule"],
            primeng_inputtext__WEBPACK_IMPORTED_MODULE_9__["InputTextModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["CardModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["MessageModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["ToastModule"],
            primeng__WEBPACK_IMPORTED_MODULE_5__["TooltipModule"],
            primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_10__["ConfirmDialogModule"],
            primeng_messages__WEBPACK_IMPORTED_MODULE_11__["MessagesModule"],
            primeng_sidebar__WEBPACK_IMPORTED_MODULE_12__["SidebarModule"],
            primeng_inputnumber__WEBPACK_IMPORTED_MODULE_13__["InputNumberModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_14__["RouterModule"].forChild(route)
        ],
        exports: [
            _angular_router__WEBPACK_IMPORTED_MODULE_14__["RouterModule"]
        ],
        providers: [_service_page_dump_utils_service__WEBPACK_IMPORTED_MODULE_16__["PageDumpUtilsService"], _service_page_dump_http_service__WEBPACK_IMPORTED_MODULE_17__["PagedumpHttpService"]]
    })
], PageDumpModule);



/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-http.service.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-http.service.ts ***!
  \*******************************************************************************************/
/*! exports provided: PagedumpHttpService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PagedumpHttpService", function() { return PagedumpHttpService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../service/page-dump.state */ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump.state.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
/* harmony import */ var _services_common_services__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/common.services */ "./src/app/pages/ddr/services/common.services.ts");









let PagedumpHttpService = class PagedumpHttpService extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_3__["Store"].AbstractService {
    constructor(session, http, commonService) {
        super();
        this.session = session;
        this.http = http;
        this.commonService = commonService;
        this.product = this.session.session.cctx.prodType;
        if (this.product == "Netstorm") {
            this.product = "netstorm";
        }
        if (this.product == "Netdiagnostics") {
            this.product = "netdiagnostics";
        }
        this.defaultBase = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
    }
    getPagedumpData(pageDumpObj) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageDumpDataLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.pagedump.endpoint;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), pageDumpObj, 'post', 'pagedumpdata').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageDumpDataLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageDumpDataLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getPageParameterData(pageDumpObj) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageParameterDataLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.pageParameter.endpoint;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), { filter: pageDumpObj }, 'post').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageParameterDataLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetPageParameterDataLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getPageDumpErrorCode(objectVal) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpErrorCodeLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.pageDumpErrorCode.endpoint + '?testRun=' + this.session.session.testRun.id + "&object=" + objectVal;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), null, 'get').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpErrorCodeLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpErrorCodeLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getResponseStatusCounts(statusObj) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getResStatusCountLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.transactionDetail.getResponseStatusCounts.endpoint;
        this.controller.post(path, statusObj).subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getResStatusCountLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getResStatusCountLoadingErrorState"](e));
            output.complete();
        });
        return output;
    }
    getNetworkLogsPageData(pageObj) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getNetworkLogsPageDataLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.getNetworkLogsPageData.endpoint + '?filePath=' + pageObj.filePath + "&req=" + pageObj.req + "&repBody=" + pageObj.repBody + "&rep=" + pageObj.rep;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), null, 'get').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getNetworkLogsPageDataLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getNetworkLogsPageDataLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getPageUrlList(pageObj) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getPageUrlListLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.getPageList.endpoint + '?pageName=' + pageObj.pageName + '&pageIndex=' + pageObj.pageIndex + '&testIndex=' + this.session.session.testRun.id;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), null, 'get').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getPageUrlListLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["getPageUrlListLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    doRestCall(path, param, type, virtualPath, localBase) {
        if (window['enableVirtualizeSerivce'] == 'true' && virtualPath) {
            let hostname = `${window['virtualServiceProtocol']}://${window['virtualServiceIP']}${window['virtualServicePort'] ? (':' + window['virtualServicePort']) : ''}/`;
            return this.http.get(`${hostname}${virtualPath}`);
        }
        else {
            if (type == 'get')
                return this.controller.get(path, null, localBase || this.defaultBase);
            else if (type == 'post')
                return this.controller.post(path, param, localBase || this.defaultBase);
            else if (type == 'getForTxt')
                return this.controller.getForTextResp(path, null, localBase || this.defaultBase);
        }
    }
    pageDumpSnapShot(snapShot) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpSnapShotLoadingState"]());
        }, 0);
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.pageDumpSnapShot.endpoint;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            this.defaultBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), snapShot, 'post').subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpSnapShotLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["pageDumpSnapShotLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getTimingData(query) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetTimingDataLoadingState"]());
        }, 0);
        let localBase = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.sessionTime.endpoint + query;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            localBase = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.ddrv2.base.defaultBase;
        }
        this.doRestCall(path.toString(), null, 'get', null, localBase).subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetTimingDataLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetTimingDataLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
    getNetworkLogTooltip(tr) {
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        setTimeout(() => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetNetworkLogTooltipLoadingState"]());
        }, 0);
        let base = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.scenarioData.base.defaultBase;
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.scenarioData.getNetworkLogTooltip.endpoint + "?testRun=" + tr;
        if (this.session.preSession.multiDc) {
            const masterURL = this.session.preSession.dcData.filter(e => e.master).map(e => e.url)[0];
            base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].api.scenarioData.base.defaultBase;
        }
        this.doRestCall(path.toString(), null, 'getForTxt', null, base).subscribe((data) => {
            output.next(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetNetworkLogTooltipLoadedState"](data));
            output.complete();
        }, (e) => {
            output.error(new _service_page_dump_state__WEBPACK_IMPORTED_MODULE_6__["GetNetworkLogTooltipLoadingErrorState"](e));
            output.complete();
            this.logger.error('loading failed', e);
        });
        return output;
    }
};
PagedumpHttpService.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_5__["SessionService"] },
    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"] },
    { type: _services_common_services__WEBPACK_IMPORTED_MODULE_8__["CommonServices"] }
];
PagedumpHttpService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])()
], PagedumpHttpService);



/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-utils.service.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/service/page-dump-utils.service.ts ***!
  \********************************************************************************************/
/*! exports provided: PageDumpUtilsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageDumpUtilsService", function() { return PageDumpUtilsService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");





let PageDumpUtilsService = class PageDumpUtilsService extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_3__["Store"].AbstractService {
    constructor(sessionService) {
        super();
        this.sessionService = sessionService;
        this.messageObservable = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        this.messageObservable$ = this.messageObservable.asObservable();
        this.sidebarOpenObs = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        this.sidebarOpenObs$ = this.sidebarOpenObs.asObservable();
        this.sidebarFillDataObs = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        this.sidebarFillDataObs$ = this.sidebarFillDataObs.asObservable();
        this.pageReqInfo = {
            pageIndex: -1,
            pageName: '',
            partitionNum: -1
        };
        this.comparePageReqInfoArr = [];
        this.isInlineReqCaptured = false;
        this.isRbu = false;
        this.filmStripData = [];
        this.pageData = {
            networkData: [],
            headerData: [],
            summaryData: [],
            payload: [],
            cookies: []
        };
        this.isCompare = false;
        this.toggleEnlargeRecSnap = false;
        this.toggleEnlargeActualSnap = false;
        this.pageDataArr = [];
        this.timingDataArr = [];
        this.cachePageData = {};
    }
    onMessage(msg) {
        this.messageObservable.next(msg);
    }
    errorMessage(detail, summary) {
        if (summary == undefined)
            this._message = [{ key: "pageDumpKey", severity: 'error', detail: detail, life: 10000 }];
        else
            this._message = [{ key: "pageDumpKey", severity: 'error', summary: summary, detail: detail, life: 10000 }];
        this.onMessage(this._message);
    }
    infoMessage(detail, summary) {
        if (summary == undefined)
            this._message = [{ key: "pageDumpKey", severity: 'info', detail: detail, life: 10000 }];
        else
            this._message = [{ key: "pageDumpKey", severity: 'info', summary: summary, detail: detail, life: 10000 }];
        this.onMessage(this._message);
    }
    successMessage(detail, summary) {
        if (summary == undefined)
            this._message = [{ key: "pageDumpKey", severity: 'success', detail: detail, life: 10000 }];
        else
            this._message = [{ key: "pageDumpKey", severity: 'success', summary: summary, detail: detail, life: 10000 }];
        this.onMessage(this._message);
    }
    warnMessage(detail, summary) {
        if (summary == undefined)
            this._message = [{ key: "pageDumpKey", severity: 'warn', detail: detail, life: 10000 }];
        else
            this._message = [{ key: "pageDumpKey", severity: 'warn', summary: summary, detail: detail, life: 10000 }];
        this.onMessage(this._message);
    }
    /**
     * This method converts number to formatted string.
     * For ex: 23421 => 23,421 | 1123421 => 1,123,421
     * @param value
     */
    formatNumStr(value) {
        if (isNaN(parseFloat(value)))
            return value;
        value = value.toString();
        let decimalIndex = value.indexOf(".");
        let tmpValue = decimalIndex != -1 ? value.substring(0, decimalIndex) : value;
        let decimalPart = "";
        if (decimalIndex != -1)
            decimalPart = value.substring(value.indexOf("."));
        let result = "";
        let numberCounter = 0;
        for (let i = tmpValue.length - 1; i >= 0; i--) {
            if (numberCounter != 0 && numberCounter % 3 == 0)
                result = tmpValue[i] + "," + result;
            else
                result = tmpValue[i] + result;
            numberCounter++;
        }
        return (decimalPart ? result + decimalPart : result);
    }
    replaceParameterName(url) {
        let parameterArr = this.pageReqInfo.node.parameterSubstitution.split(";");
        for (let arr of parameterArr) {
            let paramArr = arr.split("=");
            // let regex = new RegExp(`{${paramKey}}`, "g");
            url = url.replace(`{${paramArr[0]}}`, `${paramArr[1]}`);
        }
        return url;
    }
};
PageDumpUtilsService.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_4__["SessionService"] }
];
PageDumpUtilsService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])()
], PageDumpUtilsService);



/***/ }),

/***/ "./src/app/pages/ddr/components/page-dump-revamped/service/page-dump.state.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/ddr/components/page-dump-revamped/service/page-dump.state.ts ***!
  \************************************************************************************/
/*! exports provided: GetPageDumpDataLoadingState, GetPageDumpDataLoadingErrorState, GetPageDumpDataLoadedState, pageDumpErrorCodeLoadingState, pageDumpErrorCodeLoadingErrorState, pageDumpErrorCodeLoadedState, GetPageParameterDataLoadingState, GetPageParameterDataLoadingErrorState, GetPageParameterDataLoadedState, getResStatusCountLoadingState, getResStatusCountLoadingErrorState, getResStatusCountLoadedState, getNetworkLogsPageDataLoadingState, getNetworkLogsPageDataLoadingErrorState, getNetworkLogsPageDataLoadedState, getPageUrlListLoadingState, getPageUrlListLoadingErrorState, getPageUrlListLoadedState, pageDumpSnapShotLoadingState, pageDumpSnapShotLoadingErrorState, pageDumpSnapShotLoadedState, GetTimingDataLoadingState, GetTimingDataLoadingErrorState, GetTimingDataLoadedState, GetNetworkLogTooltipLoadingState, GetNetworkLogTooltipLoadingErrorState, GetNetworkLogTooltipLoadedState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageDumpDataLoadingState", function() { return GetPageDumpDataLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageDumpDataLoadingErrorState", function() { return GetPageDumpDataLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageDumpDataLoadedState", function() { return GetPageDumpDataLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpErrorCodeLoadingState", function() { return pageDumpErrorCodeLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpErrorCodeLoadingErrorState", function() { return pageDumpErrorCodeLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpErrorCodeLoadedState", function() { return pageDumpErrorCodeLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageParameterDataLoadingState", function() { return GetPageParameterDataLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageParameterDataLoadingErrorState", function() { return GetPageParameterDataLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPageParameterDataLoadedState", function() { return GetPageParameterDataLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getResStatusCountLoadingState", function() { return getResStatusCountLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getResStatusCountLoadingErrorState", function() { return getResStatusCountLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getResStatusCountLoadedState", function() { return getResStatusCountLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNetworkLogsPageDataLoadingState", function() { return getNetworkLogsPageDataLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNetworkLogsPageDataLoadingErrorState", function() { return getNetworkLogsPageDataLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNetworkLogsPageDataLoadedState", function() { return getNetworkLogsPageDataLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPageUrlListLoadingState", function() { return getPageUrlListLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPageUrlListLoadingErrorState", function() { return getPageUrlListLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPageUrlListLoadedState", function() { return getPageUrlListLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpSnapShotLoadingState", function() { return pageDumpSnapShotLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpSnapShotLoadingErrorState", function() { return pageDumpSnapShotLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageDumpSnapShotLoadedState", function() { return pageDumpSnapShotLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetTimingDataLoadingState", function() { return GetTimingDataLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetTimingDataLoadingErrorState", function() { return GetTimingDataLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetTimingDataLoadedState", function() { return GetTimingDataLoadedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetNetworkLogTooltipLoadingState", function() { return GetNetworkLogTooltipLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetNetworkLogTooltipLoadingErrorState", function() { return GetNetworkLogTooltipLoadingErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetNetworkLogTooltipLoadedState", function() { return GetNetworkLogTooltipLoadedState; });
/* 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 GetPageDumpDataLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetPageDumpDataLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetPageDumpDataLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class pageDumpErrorCodeLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class pageDumpErrorCodeLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class pageDumpErrorCodeLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetPageParameterDataLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetPageParameterDataLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetPageParameterDataLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class getResStatusCountLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class getResStatusCountLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class getResStatusCountLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class getNetworkLogsPageDataLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class getNetworkLogsPageDataLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class getNetworkLogsPageDataLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class getPageUrlListLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class getPageUrlListLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class getPageUrlListLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class pageDumpSnapShotLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class pageDumpSnapShotLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class pageDumpSnapShotLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetTimingDataLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetTimingDataLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetTimingDataLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}
class GetNetworkLogTooltipLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class GetNetworkLogTooltipLoadingErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class GetNetworkLogTooltipLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}


/***/ })

}]);