(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["create-script-create-script-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n<div class=\"p-15\">\n<div class=\"p-grid p-align-center p-justify-between mb-10\">\n    <span class=\"font-weight-700\">Create Script</span>\n</div>\n\n<div class=\"create-script-container\">\n    <div class=\"p-grid p-align-center\">\n        <div class=\"width-130 p-5\">Script Name</div>\n        <div class=\"p-col-2\"><input id=\"input\" type=\"text\" class=\"w-100-p\" pInputText [(ngModel)]=\"scriptName\"> </div>\n        <div class=\"width-130 p-5\" style=\"margin-left: 43px;\">Script Type</div>\n        <div class=\"p-col-2\">\n            <p-dropdown [options]=\"scriptType\" [(ngModel)]=\"selectScritp\" placeholder=\"Script type\" optionLabel=\"label\" (onChange)=\"getTemplateList()\"\n            dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\"></p-dropdown>\n        </div>\n    </div>\n    <div class=\"p-grid p-align-center\">\n        <div class=\"width-130 p-5\">Project Name</div>\n        <div class=\"p-col-2\">\n            <p-dropdown [options]=\"projectList\"  [(ngModel)]=\"projName\" placeholder=\"Project Name\"\n            dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\" (onChange)=\"showSubProjList($event)\" [filter]=\"true\"></p-dropdown>\n        </div>\n        <div class=\"width-130 p-5\" style=\"margin-left: 43px;\">Sub Project</div>\n        <div class=\"p-col-2\">\n            <p-dropdown [options]=\"subProjectList\" [(ngModel)]=\"subProjName\" placeholder=\"Sub Project Name\"\n            dropdownIcon=\"icons8 icons8-expand-arrow\" [style]=\"{'min-width':'100%'}\" [filter]=\"true\"></p-dropdown>\n        </div>\n        <div class=\"p-grid p-align-center\">\n        <div class=\"width-130 p-5\" style=\"margin-left: 43px;\">Template</div>\n        <div class=\"p-col-2\">\n            <p-dropdown [options]=\"templates\" [(ngModel)]=\"selectedTemplate\" placeholder=\"--Select Template--\"\n            dropdownIcon=\"icons8 icons8-expand-arrow\" [filter]=\"true\"></p-dropdown>\n        </div>\n        </div>\n    </div>\n</div>\n\n<div class=\"foter-box\">\n    <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary px-15 mx-3\" (click)=\"cancel()\">Cancel</button>\n    <!-- <a *ngIf=\"isValid\" routerLink=\"/run-logic\" pButton class=\"ui-button-rounded px-15 mx-3 \" (click)=\"create()\">Create</a> -->\n     <button pButton class=\"ui-button-rounded px-15 mx-3 \" [disabled]=\"loading\" (click)=\"create()\">Create</button>\n     <i class=\"icons8 icons8-spinner spin text-primary\"  *ngIf=\"loading\"></i>\n\n</div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/replay-access-log/create-script/create-script.component.html":
/*!***********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/replay-access-log/create-script/create-script.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 style=\"border-width:1px ; border-style:solid\" class=\" maiBottomBox ns-scenario  border-3\">\n    <div class=\"container\">\n        <p-header>\n            <h2 class=\"text-uppercase font-weight-500\" >  Replay Script Status </h2>\n        </p-header>\n        <div class=\"p-col-12 p-grid font-14 p-align-center\">\n                <i style=\"color:var(--primary-1200)\" class=\"pi pi-check-circle font-24 mr-8\" ></i>\n                <label>Script is generated successfully.</label>  \n        </div>\n    </div>\n</div>\n<div class=\"my-24  w-100-p\">\n    <textarea rows=\"30\" class=\"w-100-p\"  pInputTextarea [(ngModel)]=\"summaryuData\" readonly></textarea> \n</div>\n\n<div class=\"p-grid p-justify-center\">\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"openScriptManager()\" label=\"View Script...\"></button>\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"displayScriptWarning()\" label=\"Warnings...\"></button>\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"displayInvalidRequest()\" label=\"Invalid Request\"></button>\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"displayNonSessionRequest()\" label=\"Non Session Requests\"></button>\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"displayInlineRequest()\" label=\"Inline To Main Requests\"></button>\n        <button pButton type=\"button\" class=\"mx-3\" (click)=\"goBack()\" label=\"Back\"></button>\n</div>\n\n<!--This dialouge for the Script warning-->\n<div>\n    <p-dialog header=\"Script Warnings\"  [style]=\"{'width':'650px'}\" [(visible)]=\"displayWarnings\" modal=\"modal\">\n        <p-table *ngIf=\"scenReplayAccessService.getWarningTableData() && scenReplayAccessService.getWarningTableData().length != 0\" class=\"scenario\" [value]=\"scenReplayAccessService.getWarningTableData()\">\n            <ng-template pTemplate=\"header\">\n                <tr>\n                    <th>Script Warnings</th>\n                </tr>\n            </ng-template>\n            \n            <ng-template pTemplate=\"body\" let-rowData>\n                <tr>\n                    <td >{{rowData}}</td>\n                </tr>\n            </ng-template>\n        </p-table>\n        <p class=\"my-20 text-center\" *ngIf=\"scenReplayAccessService.getWarningTableData().length == 0\"> No record found</p>\n    </p-dialog>\n</div>\n\n<!--This dialouge for the Invalid Request-->\n    <p-dialog header=\"Invalid Request\"  [style]=\"{'width':'650px'}\"  [(visible)]=\"invalidRequest\" modal=\"modal\">\n\n        <p-table *ngIf=\"scenReplayAccessService.getInvalidRequestTableData() && scenReplayAccessService.getInvalidRequestTableData().length != 0\" class=\"scenario\" [columns]=\"scenReplayAccessService.getInvalidRequestTableData()[0]\" [value]=\"scenReplayAccessService.getInvalidRequestTableData()\">\n            <ng-template pTemplate=\"header\" let-columns>\n                <tr>\n                    <th *ngFor=\"let col of columns\">{{col}}</th>\n                </tr>\n            </ng-template>\n            \n            <ng-template pTemplate=\"body\" let-columns let-j=\"rowIndex\" let-rowData>\n                <tr>\n                    <td *ngFor=\"let col of columns;let i=index\"> \n                        <span *ngIf=\"j>0\">\n                        {{rowData[i]}}\n                        </span>\n                    </td>\n                </tr>\n            </ng-template>\n        </p-table>\n        <p class=\"my-20 text-center\" *ngIf=\"scenReplayAccessService.getInvalidRequestTableData().length == 0\"> No record found</p>\n    </p-dialog>\n\n<!--This dialouge for the Non Session Request-->\n<div>\n    <p-dialog header=\"Non Session Request\"  [style]=\"{'width':'650px'}\" [(visible)]=\"nonSessionRequest\" modal=\"modal\">\n        <p-table *ngIf=\"scenReplayAccessService.getNonSessionRequest() && scenReplayAccessService.getNonSessionRequest().length != 0\" class=\"scenario\" [columns]=\"scenReplayAccessService.getNonSessionRequest()[0]\" \n        [value]=\"scenReplayAccessService.getNonSessionRequest()\">\n            <ng-template pTemplate=\"header\" let-columns>\n                <tr>\n                    <th *ngFor=\"let col of columns\">{{col}}</th>\n                </tr>\n            </ng-template>\n            \n            <ng-template pTemplate=\"body\" let-columns let-j=\"rowIndex\"  let-rowData>\n                <tr>\n                    <td *ngFor=\"let col of columns;let i=index\"> \n                        <span *ngIf=\"j>0\">\n                        {{rowData[i]}}\n                        </span>\n                    </td>\n                </tr>\n            </ng-template>\n        </p-table>\n        <p class=\"my-20 text-center\" *ngIf=\"scenReplayAccessService.getNonSessionRequest().length == 0\"> No record found</p>\n    </p-dialog>\n</div>\n\n<!--This dialouge for the Inline Request-->\n<div>\n    <p-dialog header=\"Inline Request\"  [style]=\"{'width':'650px'}\" [(visible)]=\"inlineRequest\" modal=\"modal\">\n    \n        <p-table *ngIf=\"scenReplayAccessService.getInlineRequest() && scenReplayAccessService.getInlineRequest().length != 0\" class=\"scenario\" [columns]=\"scenReplayAccessService.getInlineRequest()[0]\" \n        [value]=\"scenReplayAccessService.getInlineRequest()\">\n            <ng-template pTemplate=\"header\" let-columns>\n                <tr>\n                    <th *ngFor=\"let col of columns\">{{col}}</th>\n                </tr>\n            </ng-template>\n            \n            <ng-template pTemplate=\"body\" let-columns let-j=\"rowIndex\"  let-rowData>\n                <tr>\n                    <td *ngFor=\"let col of columns;let i=index\"> \n                        <span *ngIf=\"j>0\">\n                        {{rowData[i]}} \n                        </span>\n                    </td>\n                </tr>\n            </ng-template>\n        </p-table>\n        <p class=\"my-20 text-center\" *ngIf=\"scenReplayAccessService.getInlineRequest().length == 0\"> No record found</p>\n    </p-dialog>\n</div>\n\n<!--This dialouge for the summary report-->\n<p-dialog class=\"summaryReport\" header=\"Summary Report\" [(visible)]=\"summaryReport\" modal=\"modal\">\n    <textarea rows=\"200\" cols=\"200\" pInputTextarea [(ngModel)]=\"summaryuData\"></textarea> \n</p-dialog>");

/***/ }),

/***/ "./src/app/pages/home/script-manager/create-script/create-script.component.scss":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/home/script-manager/create-script/create-script.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-create-script {\n  width: 100%;\n}\napp-create-script .create-script-container {\n  background-color: var(--background_color_8);\n  padding: 15px;\n  width: 100%;\n  border-radius: 4px;\n}\napp-create-script .foter-box {\n  padding: 15px 0px;\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n}");

/***/ }),

/***/ "./src/app/pages/home/script-manager/create-script/create-script.component.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/home/script-manager/create-script/create-script.component.ts ***!
  \************************************************************************************/
/*! exports provided: CreateScriptComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateScriptComponent", function() { return CreateScriptComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var 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_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_4__ = __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 src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/scenario/interface/scenario-state */ "./src/app/pages/scenario/interface/scenario-state.ts");
/* harmony import */ var _load_test_services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../load-test/services/load-test-utils.service */ "./src/app/pages/home/load-test/services/load-test-utils.service.ts");
/* harmony import */ var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../services/script-msg.service */ "./src/app/pages/home/script-manager/services/script-msg.service.ts");
/* harmony import */ var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../services/script-rest.service */ "./src/app/pages/home/script-manager/services/script-rest.service.ts");
/* harmony import */ var _services_script_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../services/script-utils.service */ "./src/app/pages/home/script-manager/services/script-utils.service.ts");
/* harmony import */ var _services_script_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../services/script.state */ "./src/app/pages/home/script-manager/services/script.state.ts");
/* harmony import */ var src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/pages/scenario/service/scenario-http.service */ "./src/app/pages/scenario/service/scenario-http.service.ts");












let CreateScriptComponent = class CreateScriptComponent {
    constructor(scriptRestService, sessionService, router, workProfile, utilservice, scenHTTPService, loadTestUtilService, scriptMsgService, utilService, route) {
        this.scriptRestService = scriptRestService;
        this.sessionService = sessionService;
        this.router = router;
        this.workProfile = workProfile;
        this.utilservice = utilservice;
        this.scenHTTPService = scenHTTPService;
        this.loadTestUtilService = loadTestUtilService;
        this.scriptMsgService = scriptMsgService;
        this.utilService = utilService;
        this.route = route;
        this.projectList = [];
        this.totalProjSubProjList = [];
        this.subProjectList = [];
        this.loading = false;
        this.READ_ONLY = "4";
        this.scriptType = [
            { label: 'WebC(HTTP/HTML)', value: 'WebC' },
            { label: 'WebJava(HTTP/HTML)', value: 'WebJava' },
            { label: 'WebJavascript(HTTP/HTML)', value: 'WebJavascript' },
        ];
        this.userName = this.sessionService.session.cctx.u;
    }
    ngOnInit() {
        this.loadTestUtilService.getPermissions().then(res => {
            this.privilege = res;
            this.getList();
        });
        this.selectScritp = this.scriptType[0];
        this.getTemplateList();
        // this.getProjectList();
    }
    getList() {
        this.scenHTTPService.getProjSubprojList(this.userName, this.privilege).subscribe((state) => {
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_5__["GetProjSubprojListLoadingState"]) {
                this.onLoadingGetProjSubProjList(state);
                return;
            }
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_5__["GetProjSubprojListLoadedState"]) {
                this.onLoadedGetProjSubProjList(state);
                return;
            }
        }, (state) => {
            this.onLoadingErrorGetProjSubProjList(state);
        });
    }
    onLoadingErrorGetProjSubProjList(state) {
    }
    onLoadedGetProjSubProjList(state) {
        this.projSubProjData(state.data);
    }
    projSubProjData(res) {
        this.totalProjSubProjList = res;
        let prjArr = [];
        let subPrjArr = [];
        let tmpPrjArr = [];
        let tmpSubPrjArr = [];
        for (let i = 0; i < res.length; i++) {
            if (prjArr.indexOf(res[i].project) == -1)
                prjArr.push(res[i].project);
            subPrjArr.push(res[i].subproject);
            if (tmpPrjArr.indexOf(res[i].project) == -1) {
                if (res[i]["Permission"] != this.READ_ONLY)
                    tmpPrjArr.push(res[i].project);
            }
            if (tmpSubPrjArr.indexOf(res[i].subproject) == -1) {
                if (res[i]["Permission"] != this.READ_ONLY)
                    tmpSubPrjArr.push(res[i].subproject);
            }
        }
        for (let k = 0; k < tmpPrjArr.length; k++) {
            this.projectList.push({ label: tmpPrjArr[k], value: tmpPrjArr[k] });
            this.projName = this.projectList[0].value;
        }
        if (tmpSubPrjArr.length > 0) {
            this.showSubProjList(this.projectList[0]);
        }
        // this.subProjectList.push({ label: subPrjArr[0], value: subPrjArr[0] });
        this.selectScritp = this.scriptType[0];
    }
    showSubProjList(event) {
        this.subProjectList = [];
        var subPrjArr = [];
        for (let i = 0; i < this.totalProjSubProjList.length; i++) {
            if (this.totalProjSubProjList[i].project == event.value) {
                if (subPrjArr.indexOf(this.totalProjSubProjList[i].subproject) == -1)
                    subPrjArr.push(this.totalProjSubProjList[i].subproject);
            }
        }
        for (let j = 0; j < subPrjArr.length; j++) {
            this.subProjectList.push({ label: subPrjArr[j], value: subPrjArr[j] });
        }
        this.subProjName = this.subProjectList[0].value;
    }
    onLoadingGetProjSubProjList(state) {
    }
    create() {
        var pattern = /^[a-zA-Z][a-zA-Z0-9_]{0,63}$/;
        if (!this.scriptName) {
            this.utilservice.errorMessage('Script Name cannot be empty');
            return;
        }
        if (!pattern.test(this.scriptName)) {
            this.utilservice.errorMessage('Please enter valid script name.\nScript name is of maximum 64 characters.\nFirst character must be Alpha.\r\nOther characters are Alphanumeric or underscore.');
            return;
        }
        if (this.scriptName == 'scripts') {
            this.utilservice.errorMessage("Script name 'scripts' is not allowed");
            return;
        }
        if (!this.projName) {
            this.utilservice.errorMessage('Project name cannot be empty.');
            return;
        }
        if (!this.subProjName) {
            this.utilservice.errorMessage('Sub Project name cannot be empty.');
            return;
        }
        if (this.userName == 'cavisson') {
            this.user = "admin";
        }
        else {
            this.user = this.userName;
        }
        let payload;
        if (this.selectedTemplate != null) {
            payload = {
                reqData: "-w " + this.user + "/" + this.workProfile.profile + " -o CreateScript -s " + this.projName + "/" + this.subProjName + "/scripts/" + this.scriptName + " -T " + this.selectedTemplate + " -f flow -l " + this.selectScritp.value
            };
        }
        else {
            payload = {
                reqData: "-w " + this.user + "/" + this.workProfile.profile + " -o CreateScript -s " + this.projName + "/" + this.subProjName + "/scripts/" + this.scriptName + " -f flow -l " + this.selectScritp.value
            };
        }
        this.scriptRestService.doScriptOperation(payload).subscribe((state) => {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["CreateScriptLoadingState"]) {
                this.onLoading(state);
                return;
            }
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["CreateScriptLoadedState"]) {
                this.onScriptOperation(state);
                return;
            }
        }, (state) => {
            this.onLoadingError(state);
        });
    }
    onLoadingError(state) {
        this.loading = false;
    }
    onScriptOperation(state) {
        this.loading = false;
        if (state.data['status']) {
            this.scriptMsgService.showSuccess("Script created successfully", '', 'msg');
            this.utilService.sendEditScriptObj(this.projName + "/" + this.subProjName, this.scriptName, 'Edit', false, 0, 0);
            this.router.navigate(['/script'], { relativeTo: this.route });
        }
        else
            this.scriptMsgService.showWarn('Script already exist on server', 'Warn Message', 'msg');
    }
    onLoading(state) {
        this.loading = true;
    }
    cancel() {
        this.router.navigateByUrl("/home/script-manager");
    }
    getTemplateList() {
        this.templates = [];
        this.templates.push({ label: "--Select Template--", value: null });
        this.scriptRestService.getTemplateList().subscribe((state) => {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["ScriptRestLoading"]) {
                return;
            }
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["ScriptRestLoaded"]) {
                let ext = "";
                if (this.selectScritp.value == "WebC")
                    ext = "c";
                else if (this.selectScritp.value == "WebJava")
                    ext = "java";
                else if (this.selectScritp.value == "WebJavascript")
                    ext = "js";
                let outputArray = state.data[ext];
                if (outputArray == null)
                    return;
                for (let i = 0; i < outputArray.length; i++) {
                    this.templates.push(state.data[ext][i]);
                }
                this.selectedTemplate = this.templates[0];
                return;
            }
        });
    }
};
CreateScriptComponent.ctorParameters = () => [
    { type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_8__["ScriptRestService"] },
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
    { type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_4__["WorkProfileActiveService"] },
    { type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_9__["ScriptUtilService"] },
    { type: src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_11__["ScenarioHttpService"] },
    { type: _load_test_services_load_test_utils_service__WEBPACK_IMPORTED_MODULE_6__["LoadTestUtilsService"] },
    { type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_7__["ScriptMsgService"] },
    { type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_9__["ScriptUtilService"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }
];
CreateScriptComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-create-script',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./create-script.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/create-script/create-script.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./create-script.component.scss */ "./src/app/pages/home/script-manager/create-script/create-script.component.scss")).default]
    })
], CreateScriptComponent);



/***/ }),

/***/ "./src/app/pages/home/script-manager/create-script/create-script.module.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/home/script-manager/create-script/create-script.module.ts ***!
  \*********************************************************************************/
/*! exports provided: CreateScriptModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateScriptModule", function() { return CreateScriptModule; });
/* 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_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _create_script_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create-script.component */ "./src/app/pages/home/script-manager/create-script/create-script.component.ts");
/* 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_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
/* harmony import */ var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/selectbutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
/* harmony import */ var _angular_material_menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/menu */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/menu.js");
/* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/overlay */ "./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/overlay.js");
/* harmony import */ var primeng_fileupload__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primeng/fileupload */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
/* harmony import */ var primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primeng/breadcrumb */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-breadcrumb.js");
/* harmony import */ var primeng_slidemenu__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primeng/slidemenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-slidemenu.js");
/* harmony import */ var primeng_inputtext__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
/* harmony import */ var primeng_fieldset__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/fieldset */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js");
/* harmony import */ var src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! src/app/shared/header/header.module */ "./src/app/shared/header/header.module.ts");
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");



























const routes = [
    {
        path: '',
        pathMatch: 'full',
        component: _create_script_component__WEBPACK_IMPORTED_MODULE_4__["CreateScriptComponent"],
    },
];
const components = [_create_script_component__WEBPACK_IMPORTED_MODULE_4__["CreateScriptComponent"]];
const imports = [
    _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
    _angular_forms__WEBPACK_IMPORTED_MODULE_25__["FormsModule"],
    primeng_tree__WEBPACK_IMPORTED_MODULE_5__["TreeModule"],
    _angular_common_http__WEBPACK_IMPORTED_MODULE_26__["HttpClientModule"],
    primeng_dropdown__WEBPACK_IMPORTED_MODULE_7__["DropdownModule"],
    primeng_button__WEBPACK_IMPORTED_MODULE_8__["ButtonModule"],
    primeng_selectbutton__WEBPACK_IMPORTED_MODULE_9__["SelectButtonModule"],
    _angular_material_menu__WEBPACK_IMPORTED_MODULE_10__["MatMenuModule"],
    primeng_fileupload__WEBPACK_IMPORTED_MODULE_12__["FileUploadModule"],
    _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"],
    primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_13__["BreadcrumbModule"],
    primeng_slidemenu__WEBPACK_IMPORTED_MODULE_14__["SlideMenuModule"],
    primeng_inputtext__WEBPACK_IMPORTED_MODULE_15__["InputTextModule"],
    primeng_fieldset__WEBPACK_IMPORTED_MODULE_16__["FieldsetModule"],
    primeng_table__WEBPACK_IMPORTED_MODULE_17__["TableModule"],
    src_app_shared_header_header_module__WEBPACK_IMPORTED_MODULE_18__["HeaderModule"],
    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__["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"]
];
let CreateScriptModule = class CreateScriptModule {
};
CreateScriptModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [components],
        imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"].forChild(routes), imports],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"]],
    })
], CreateScriptModule);



/***/ }),

/***/ "./src/app/pages/scenario/replay-access-log/create-script/create-script.component.scss":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/scenario/replay-access-log/create-script/create-script.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/scenario/replay-access-log/create-script/create-script.component.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/scenario/replay-access-log/create-script/create-script.component.ts ***!
  \*******************************************************************************************/
/*! exports provided: CreateScriptComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateScriptComponent", function() { return CreateScriptComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var src_app_pages_home_script_manager_services_script_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/home/script-manager/services/script-utils.service */ "./src/app/pages/home/script-manager/services/script-utils.service.ts");
/* harmony import */ var _service_scen_replay_access_services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../service/scen-replay-access.services */ "./src/app/pages/scenario/service/scen-replay-access.services.ts");
/* harmony import */ var _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../service/scenario-utils.service */ "./src/app/pages/scenario/service/scenario-utils.service.ts");






let CreateScriptComponent = class CreateScriptComponent {
    constructor(router, activateRoute, scenReplayAccessService, scenUtils, scriptUtils) {
        this.router = router;
        this.activateRoute = activateRoute;
        this.scenReplayAccessService = scenReplayAccessService;
        this.scenUtils = scenUtils;
        this.scriptUtils = scriptUtils;
        /**This is the status comming from the back end*/
        this.summaryuData = "";
        /**These variable are to show the dialougs on button click */
        this.displayWarnings = false;
        this.invalidRequest = false;
        this.nonSessionRequest = false;
        this.inlineRequest = false;
        this.summaryReport = false;
        this.classname = "createscript";
        this.openSummaryReport();
    }
    ngOnInit() {
        this.scenUtils.setSelectedComponent(this.classname);
        this.saveSubscription = this.scenUtils.triggerSaveEventGloballyRAL.subscribe((selectedComp) => {
            if (selectedComp['component'] == this.classname) {
                this.scenUtils.isRALValidated = 1;
                return true;
            }
        });
    }
    /**
     * This methos is just to show the warning dialouge.
     */
    displayScriptWarning() {
        this.displayWarnings = true;
    }
    /**
     * This method is to display the invalid invalid Request
     */
    displayInvalidRequest() {
        this.invalidRequest = true;
    }
    /**
     * This mathod is to display the non session request
     */
    displayNonSessionRequest() {
        this.nonSessionRequest = true;
    }
    /**
     * This mathod is to display the non session request
     */
    displayInlineRequest() {
        this.inlineRequest = true;
    }
    /**
     * This method is to opening the script manager jnlp.
     */
    openScriptManager() {
        this.scriptUtils.sendEditScriptObj(`${this.scenUtils.Project}/${this.scenUtils.subProject}`, this.scenUtils.scenarioName, "Edit", false, 0, 0);
        this.router.navigate(['/script'], { relativeTo: this.activateRoute });
    }
    /**
     * This method is to go back to the process data window
     */
    goBack() {
        this.scenUtils.goBackToReplayAccess(false);
        this.router.navigate(["/scenario/basicScenario/design/scenDesign/replay", { outlets: { replay: ['replayAccessLog'] } }]);
    }
    /**
     * This method is to open summary report.
     */
    openSummaryReport() {
        this.summaryuData = this.scenReplayAccessService.getSummaryReport();
    }
};
CreateScriptComponent.ctorParameters = () => [
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
    { type: _service_scen_replay_access_services__WEBPACK_IMPORTED_MODULE_4__["ScenReplayAccessService"] },
    { type: _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_5__["ScenarioUtilsService"] },
    { type: src_app_pages_home_script_manager_services_script_utils_service__WEBPACK_IMPORTED_MODULE_3__["ScriptUtilService"] }
];
CreateScriptComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-create-script',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./create-script.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/replay-access-log/create-script/create-script.component.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./create-script.component.scss */ "./src/app/pages/scenario/replay-access-log/create-script/create-script.component.scss")).default]
    })
], CreateScriptComponent);



/***/ }),

/***/ "./src/app/pages/scenario/replay-access-log/create-script/create-script.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/scenario/replay-access-log/create-script/create-script.module.ts ***!
  \****************************************************************************************/
/*! exports provided: CreateScriptModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateScriptModule", function() { return CreateScriptModule; });
/* 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 _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_file_manager_file_manager_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/file-manager/file-manager.module */ "./src/app/shared/file-manager/file-manager.module.ts");
/* harmony import */ var _jdbc_pool_mapping_jdbc_pool_mapping_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../jdbc-pool-mapping/jdbc-pool-mapping.module */ "./src/app/pages/scenario/replay-access-log/jdbc-pool-mapping/jdbc-pool-mapping.module.ts");
/* harmony import */ var _create_script_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./create-script.component */ "./src/app/pages/scenario/replay-access-log/create-script/create-script.component.ts");










const route = [
    { path: '', component: _create_script_component__WEBPACK_IMPORTED_MODULE_9__["CreateScriptComponent"] },
];
let CreateScriptModule = class CreateScriptModule {
};
CreateScriptModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_create_script_component__WEBPACK_IMPORTED_MODULE_9__["CreateScriptComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CardModule"],
            _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClientModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CheckboxModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MenuModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TabViewModule"],
            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__["OverlayPanelModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DropdownModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SpinnerModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["AccordionModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CalendarModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TableModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DialogModule"],
            src_app_shared_file_manager_file_manager_module__WEBPACK_IMPORTED_MODULE_7__["FileManagerModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["FieldsetModule"],
            _jdbc_pool_mapping_jdbc_pool_mapping_module__WEBPACK_IMPORTED_MODULE_8__["JdbcPoolMappingModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["PanelModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["InputTextareaModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(route),
        ],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"]]
    })
], CreateScriptModule);



/***/ })

}]);