(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["additional-settings-main-http-url-encoding-http-url-encoding-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.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=\"mt-32 p-24 mb-16 border-3 borderTabClass\">\n    <div class=\"w-100-p font-weight-500 font-14\">\n        URL ENCODING\n    </div>\n    <div class=\"p-grid my-16 p-align-center\">\n        <div class=\"\">Encode space in URL and query parameters of URL by</div>\n        <div class=\"mx-10 p-col-1 p-col-nogutter\">\n            <p-dropdown  [options]=\"lstOptURL\" [style]=\"{ 'min-width' : '100%' }\" [(ngModel)]=\"lstURL\"  dropdownIcon=\"icons8 icons8-expand-arrow\" [disabled]=\"enableDisKeywordList.URI_ENCODING\"></p-dropdown>\n        </div>\n    </div>\n    <div class=\"p-grid my-16 p-align-center\">\n        <div class=\"\">Additional characters to be encoded in URL</div>\n        <div class=\"mx-10 p-col-4 p-col-nogutter\">\n            <input type=\"text\" pInputText class=\"w-100-p\" [(ngModel)]=\"txtEncodeURL\" (keypress)=\"validateEvt($event)\" [disabled]=\"enableDisKeywordList.URI_ENCODING\"/>\n        </div>\n    </div>\n    <div class=\"p-grid my-16 p-align-center\">\n        <div>\n            <p-checkbox label=\"Additional characters to be encoded in query parameter of URL\" binary=\"true\" [(ngModel)]=\"checkedEncodeQueryUrl\" [disabled]=\"enableDisKeywordList.URI_ENCODING\" ></p-checkbox>\n        </div>\n    </div>\n    <div class=\"p-grid mt-16 p-align-center\">\n        <div >\n            <p-selectButton [disabled]=\"!checkedEncodeQueryUrl\"  class=\"radio-selectButton\" [options]=\"urlOptions\" [(ngModel)]=\"radQueryUrl\"></p-selectButton>\n        </div>\n        <div class=\"ml-17 p-col-1 p-col-nogutter\">\n            <input [(ngModel)]=\"txtEncodeQueryURL\" [disabled]=\"!(radQueryUrl == '1' && checkedEncodeQueryUrl)\" type=\"text\" pInputText class=\"w-100-p\" (keypress)=\"validateEvt($event)\"/>\n        </div>\n    </div>\n</div>\n\n<div class=\"mt-32 p-24 mb-16 border-3 borderTabClass\">\n    <div class=\"w-100-p font-weight-500 font-14\">\n        HTTP ADVANCE\n    </div>\n    <div class=\"p-grid my-16 p-align-center\">\n        <span class=\"mr-10\">\n            Select Cookie(s) with \n        </span>\n        <div class=\"p-col-3 p-col-nogutter\">\n            <p-dropdown  [options]=\"lstAutoCookie\" [style]=\"{ 'min-width' : '100%' }\" [(ngModel)]=\"valAutoCookie\" [disabled]=\"enableDisKeywordList.AUTO_COOKIE\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        </div>\n        <span class=\"mx-10\">with expires attribute</span>\n        <div class=\"p-col-2 p-col-nogutter\">\n            <p-dropdown  [options]=\"lstAutoCookieAttr\" [style]=\"{ 'min-width' : '100%' }\" [(ngModel)]=\"valAutoCookieAttr\" [disabled]=\"valAutoCookie == null || enableDisKeywordList.AUTO_COOKIE\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        </div>\n    </div>\n    <div class=\"w-100-p my-16 p-grid p-align-center\">\n        <div class=\"mr-10\">\n            Redirection depth upto\n        </div>\n        <div class=\"p-col-1 p-col-nogutter\">\n            <input [(ngModel)]=\"txtEnableRedirect\" type=\"text\" pInputText class=\"w-100-p\" [disabled]=\"enableDisKeywordList.AUTO_REDIRECT\"/>\n        </div>\n    </div>\n    <div class=\"my-16 p-grid p-align-center\">\n        <p-checkbox label=\"Use parent URL method for redirected URL\" [disabled]=\"txtEnableRedirect == 0 || enableDisKeywordList.AUTO_REDIRECT\"  binary=\"true\" [(ngModel)]=\"chkAutoRedirect\"></p-checkbox>\n        <button type=\"button\" pTooltip=\"In cases of redirection, the HTTP method used to make the new request pointed to by Location Header depends on the original method and status code:\n            301 (Moved Permanently) and 302 (Found) change the POST method to GET method\n            303 (See Other) always use GET method except if parent method is HEAD\n            307 (Temporary Redirect) and 308 (Permanent Redirect) use the parent method\n      \n      If there is a need to use parent method always, then this cheeck box can be enabled\n      \" tooltipStyleClass=\"width-400\" class=\"btn-icon ml-8 mr-5\"><i class=\"icons8 icons8-info\"></i></button>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.scss":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.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-http-url-encoding .borderTabClass {\n  border-style: solid;\n  border-width: 1px;\n  border-radius: 3px;\n}");

/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.ts ***!
  \**********************************************************************************************************/
/*! exports provided: HttpUrlEncodingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpUrlEncodingComponent", function() { return HttpUrlEncodingComponent; });
/* 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 _constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants/scen-keyword-constants */ "./src/app/pages/scenario/constants/scen-keyword-constants.ts");
/* harmony import */ var _interface_scenario_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../interface/scenario-state */ "./src/app/pages/scenario/interface/scenario-state.ts");
/* harmony import */ var _service_additional_setting_data_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../service/additional-setting-data-service */ "./src/app/pages/scenario/service/additional-setting-data-service.ts");
/* harmony import */ var _service_scen_keyword_definition_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../service/scen-keyword-definition.service */ "./src/app/pages/scenario/service/scen-keyword-definition.service.ts");
/* harmony import */ var _service_scenario_http_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../service/scenario-http.service */ "./src/app/pages/scenario/service/scenario-http.service.ts");
/* harmony import */ var _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../service/scenario-utils.service */ "./src/app/pages/scenario/service/scenario-utils.service.ts");
/* harmony import */ var _service_sch_schedule_data_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../service/sch-schedule-data.service */ "./src/app/pages/scenario/service/sch-schedule-data.service.ts");









let HttpUrlEncodingComponent = class HttpUrlEncodingComponent {
    constructor(keywordDefinition, dataService, scenUtilsService, schData, scenarioHttpService) {
        this.keywordDefinition = keywordDefinition;
        this.dataService = dataService;
        this.scenUtilsService = scenUtilsService;
        this.schData = schData;
        this.scenarioHttpService = scenarioHttpService;
        this.enableDisKeywordList = {
            "AUTO_COOKIE": false,
            "AUTO_REDIRECT": false,
            "USE_HTTP_10": false,
            "URI_ENCODING": false
        };
        this.URI_ENCODING = {
            NONE: "NONE",
            SAME: "SAME"
        };
        this.screenKeywordList = Object.keys(this.enableDisKeywordList);
        //AUTO_COOKIE  
        this.lstAutoCookie = [];
        this.valAutoCookie = "1";
        this.lstAutoCookieAttr = [];
        this.valAutoCookieAttr = 0;
        this.chkAutoRedirect = true;
        this.arrKeywordData = {};
        this.lstOptURL = [];
        this.lstURL = '%20';
        this.txtEncodeURL = '';
        this.txtEncodeQueryURL = '';
        this.checkedEncodeQueryUrl = false;
        this.radQueryUrl = '0';
        this.urlOptions = [];
        this.lstAutoCookie = [];
        this.lstAutoCookie.push({ label: 'Select Cookie', value: null });
        this.lstAutoCookie.push({ label: 'Name,Domain and Path as key', value: '1' });
        this.lstAutoCookie.push({ label: 'Name as key', value: '2' });
        this.lstAutoCookie.push({ label: 'Name and Path as key', value: '3' });
        this.lstAutoCookie.push({ label: 'Name and Domain as key', value: '4' });
        this.lstAutoCookieAttr = [];
        this.lstAutoCookieAttr.push({ label: 'Ignored', value: 0 });
        this.lstAutoCookieAttr.push({ label: 'in the past then delete cookie', value: 1 });
        this.lstOptURL.push({ label: '%20', value: '%20' });
        this.lstOptURL.push({ label: '+', value: '+' });
        this.urlOptions.push({ label: 'Same as URL', value: '0' });
        this.urlOptions.push({ label: 'Different', value: '1' });
    }
    canDeactivate() {
        try {
            if (this.validateAndSetKeywordArray() == false) {
                return false;
            }
        }
        catch (e) {
            console.log("can Deactivate in compponents", e);
        }
        return true;
    }
    /**
      * This method is called, when user navigate from one component to another, and want to save data in conf file before navigation.
      */
    setDataInConf() {
        return true;
    }
    ngOnInit() {
        this.subscription = this.scenUtilsService.$saveGroupbasedSetting.subscribe((res) => {
            if (this.validateAndSetKeywordArray()) {
                this.scenUtilsService.saveComponentData(0, {});
            }
        });
        this.arrKeywordData = this.keywordDefinition.chkAndGetKeywrdDataWithAdditionalKeys(this.screenKeywordList);
        if (this.keywordDefinition.isArrKeywordDataEmpty(this.arrKeywordData, this.screenKeywordList)) {
            this.keywordDefinition.setRequestKeywordListInBody(this.screenKeywordList, "");
            let obj = this.keywordDefinition.getRequestJsonParm();
            this.getKeywordData(obj);
            //error case
            if (this.arrKeywordData == null)
                this.arrKeywordData = {};
        }
        else
            this.fillDataInComp();
    }
    getKeywordData(obj) {
        this.scenarioHttpService.getDefaultKeywordData(obj).subscribe((state) => {
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_3__["GetDefaultKeywordDataLoadingState"]) {
                return;
            }
            if (state instanceof _interface_scenario_state__WEBPACK_IMPORTED_MODULE_3__["GetDefaultKeywordDataLoadedState"]) {
                this.keywordDefinition.setArrKeywordData(this.arrKeywordData, state.data, this.keywordDefinition.mergeKeywordData);
                this.fillDataInComp();
                return;
            }
        }, (state) => {
            console.log(state.error);
            return;
        });
    }
    fillDataInComp() {
        try {
            let keys = Object.keys(this.arrKeywordData);
            for (let i = 0; i < keys.length; i++) //keyword iteration
             {
                let strKeyword = keys[i];
                let keyObj = this.arrKeywordData[strKeyword];
                let dataObj = keyObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["KEYWORD_DATA_KEY"].DATA];
                this.enableDisKeywordList[strKeyword] = this.dataService.isCompEnable(this.dataService.getScenMode(), keyObj, strKeyword);
                if (dataObj == undefined)
                    continue;
                if (dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]] == undefined)
                    continue;
                let arrVal = dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]][0];
                if (arrVal == undefined)
                    continue;
                if (strKeyword == 'AUTO_COOKIE') //AUTO_COOKIE
                 {
                    if (arrVal[0] == '0')
                        this.valAutoCookie = null;
                    else {
                        this.valAutoCookie = arrVal[0] == undefined ? "1" : arrVal[0];
                        this.valAutoCookieAttr = arrVal[1] == undefined ? "0" : arrVal[1];
                    }
                }
                else if (strKeyword == 'AUTO_REDIRECT') {
                    this.txtEnableRedirect = arrVal[0];
                    if (arrVal[1] == '1') {
                        this.chkAutoRedirect = true;
                    }
                    else
                        this.chkAutoRedirect = false;
                }
                else if (strKeyword == 'USE_HTTP_10') {
                    if (arrVal[0] == '0')
                        this.chkValUseHTTP = false;
                    else
                        this.chkValUseHTTP = true;
                }
                else if (strKeyword == 'URI_ENCODING') {
                    this.lstURL = !(arrVal[0]) ? '%20' : arrVal[0];
                    let mode = !(arrVal[1]) ? '0' : arrVal[1];
                    switch (mode) {
                        case '0': {
                            let encodeUrl = !(arrVal[2]) ? '' : arrVal[2];
                            let encodeQueryUrl = !(arrVal[3]) ? '' : arrVal[3];
                            if (!encodeUrl) {
                                this.txtEncodeURL = '';
                            }
                            else {
                                if (encodeUrl == this.URI_ENCODING.NONE) {
                                    this.txtEncodeURL = '';
                                }
                                else {
                                    this.txtEncodeURL = encodeUrl;
                                }
                            }
                            if (!encodeQueryUrl) {
                                this.txtEncodeQueryURL = '';
                                this.checkedEncodeQueryUrl = false;
                                this.radQueryUrl = '0';
                            }
                            else {
                                if (encodeQueryUrl == this.URI_ENCODING.SAME) {
                                    this.checkedEncodeQueryUrl = true;
                                    this.txtEncodeQueryURL = '';
                                    this.radQueryUrl = '0';
                                }
                                else if (encodeQueryUrl == this.URI_ENCODING.NONE) {
                                    this.txtEncodeQueryURL = '';
                                    this.radQueryUrl = '0';
                                }
                                else {
                                    this.checkedEncodeQueryUrl = true;
                                    this.txtEncodeQueryURL = encodeQueryUrl;
                                    this.radQueryUrl = '1';
                                }
                            }
                            break;
                        }
                        case '1': {
                            let encodeUrl = !(arrVal[2]) ? '' : arrVal[2];
                            let encodeQueryUrl = !(arrVal[3]) ? '' : arrVal[3];
                            if (!encodeUrl || encodeUrl == this.URI_ENCODING.NONE) {
                                this.txtEncodeURL = '|';
                            }
                            else {
                                this.txtEncodeURL = '|' + encodeUrl;
                            }
                            this.txtEncodeQueryURL = encodeQueryUrl;
                            this.radQueryUrl = '0';
                            if (!encodeQueryUrl || encodeQueryUrl == this.URI_ENCODING.NONE) {
                                this.checkedEncodeQueryUrl = false;
                                this.txtEncodeQueryURL = '';
                                this.radQueryUrl = '0';
                            }
                            else if (encodeQueryUrl == this.URI_ENCODING.SAME) {
                                this.radQueryUrl = '0';
                                this.txtEncodeQueryURL = '';
                            }
                            else {
                                this.checkedEncodeQueryUrl = true;
                                this.radQueryUrl = '1';
                            }
                            break;
                        }
                        case '2': {
                            let encodeUrl = !(arrVal[2]) ? '' : arrVal[2];
                            let encodeQueryUrl = !(arrVal[3]) ? '' : arrVal[3];
                            this.txtEncodeURL = encodeUrl;
                            if (encodeUrl == this.URI_ENCODING.NONE || encodeUrl == '') {
                                this.txtEncodeURL = '';
                            }
                            this.radQueryUrl = '1';
                            this.checkedEncodeQueryUrl = true;
                            if (!encodeQueryUrl || encodeQueryUrl == this.URI_ENCODING.NONE) {
                                this.txtEncodeQueryURL = '|';
                                this.radQueryUrl = '1';
                            }
                            else if (encodeQueryUrl == this.URI_ENCODING.SAME) {
                                this.txtEncodeQueryURL = '';
                                this.radQueryUrl = '0';
                            }
                            else {
                                this.txtEncodeQueryURL = '|' + encodeQueryUrl;
                            }
                            break;
                        }
                        case '3': {
                            let encodeUrl = !(arrVal[2]) ? '' : arrVal[2];
                            let encodeQueryUrl = !(arrVal[3]) ? '' : arrVal[3];
                            this.checkedEncodeQueryUrl = true;
                            if (!encodeUrl || encodeUrl == this.URI_ENCODING.NONE) {
                                this.txtEncodeURL = '|';
                            }
                            else {
                                this.txtEncodeURL = '|' + encodeUrl;
                            }
                            if (!encodeQueryUrl || encodeQueryUrl == this.URI_ENCODING.NONE) {
                                this.radQueryUrl = '1';
                                this.txtEncodeQueryURL = '|';
                            }
                            else if (encodeQueryUrl == this.URI_ENCODING.SAME) {
                                this.radQueryUrl = '0';
                                this.txtEncodeQueryURL = '';
                            }
                            else {
                                this.radQueryUrl = '1';
                                this.txtEncodeQueryURL = '|' + encodeQueryUrl;
                            }
                            break;
                        }
                        default: {
                            this.txtEncodeURL = '';
                            this.txtEncodeQueryURL = '';
                            this.radQueryUrl = '0';
                            this.checkedEncodeQueryUrl = false;
                        }
                    }
                }
            }
        }
        catch (e) {
            console.log("Exception", e);
        }
    }
    validateAndSetKeywordArray() {
        this.setChkBoxData("USE_HTTP_10", this.chkValUseHTTP);
        //AUTO_REDIRECT
        if (this.valAndSetAutoRedirect() == false)
            return false;
        let tempCookie = [];
        if (this.valAutoCookie == null)
            tempCookie.push(0);
        else {
            tempCookie.push(this.valAutoCookie);
            tempCookie.push(this.valAutoCookieAttr);
        }
        this.setArrayWithKeyWord('AUTO_COOKIE', tempCookie);
        if (this.valAndSetUriEncoding() == false) {
            return false;
        }
        //All validation success
        for (let i = 0; i < this.screenKeywordList.length; i++) {
            this.schData.saveKeywordData[this.screenKeywordList[i]] = this.arrKeywordData[this.screenKeywordList[i]].data;
        }
        return true;
    }
    valAndSetUriEncoding() {
        try {
            let tmpData = [];
            let encodePipe = '0';
            let encodeUrlStr = this.txtEncodeURL;
            let encodeUrlQueryStr = this.txtEncodeQueryURL;
            if (this.checkedEncodeQueryUrl && this.radQueryUrl == '0') {
                encodeUrlQueryStr = encodeUrlStr;
            }
            else {
                encodeUrlQueryStr = this.txtEncodeQueryURL;
            }
            if (encodeUrlStr != "" && encodeUrlStr.includes("|") && this.checkedEncodeQueryUrl && encodeUrlQueryStr.includes("|")) {
                encodePipe = '3';
                let urlStr = encodeUrlStr.replace(/\|/g, '');
                if (urlStr.length == 0) {
                    encodeUrlStr = this.URI_ENCODING.NONE;
                }
                else {
                    encodeUrlStr = urlStr;
                }
                let urlQueryStr = encodeUrlQueryStr.replace(/\|/g, '');
                if (urlQueryStr.length == 0) {
                    encodeUrlQueryStr = this.URI_ENCODING.NONE;
                }
                else {
                    encodeUrlQueryStr = urlQueryStr;
                }
            }
            else {
                if (encodeUrlStr != "" && encodeUrlStr.includes("|")) {
                    encodePipe = '1';
                    let urlStr = encodeUrlStr.replace(/\|/g, '');
                    encodeUrlStr = urlStr;
                }
                if (this.checkedEncodeQueryUrl && encodeUrlQueryStr && encodeUrlQueryStr.includes("|")) {
                    encodePipe = '2';
                    let urlQueryStr = encodeUrlQueryStr.replace(/\|/g, '');
                    encodeUrlQueryStr = urlQueryStr;
                }
                if (encodeUrlStr.length == 0) {
                    encodeUrlStr = this.URI_ENCODING.NONE;
                }
                if (encodeUrlQueryStr.length == 0) {
                    encodeUrlQueryStr = this.URI_ENCODING.NONE;
                }
            }
            if (encodeUrlStr === this.URI_ENCODING.NONE && encodeUrlQueryStr === this.URI_ENCODING.NONE) {
                encodeUrlStr = '';
                encodeUrlQueryStr = '';
            }
            //Saving space encoding value
            tmpData.push(this.lstURL);
            tmpData.push(encodePipe);
            if (encodeUrlStr != "") {
                tmpData.push(encodeUrlStr);
            }
            else {
                if (this.checkedEncodeQueryUrl)
                    tmpData.push(this.URI_ENCODING.NONE);
                else {
                    tmpData.push('');
                }
            }
            if (this.checkedEncodeQueryUrl) {
                if (this.radQueryUrl == '1' && (encodeUrlQueryStr.length == 0 || encodeUrlQueryStr == this.URI_ENCODING.NONE)) {
                    this.scenUtilsService.errorMessage('Character to be encoded in query parameter should not be empty or blank.');
                    return false;
                }
                if (this.radQueryUrl == '0') {
                    tmpData.push(this.URI_ENCODING.SAME);
                }
                else {
                    tmpData.push(encodeUrlQueryStr);
                }
            }
            else {
                if (encodeUrlStr != "") {
                    tmpData.push(this.URI_ENCODING.NONE);
                }
                else {
                    tmpData.push('');
                }
            }
            this.setArrayWithKeyWord('URI_ENCODING', tmpData);
            return true;
        }
        catch (e) {
            console.log('valAndSetUriEncoding | error = ', e);
        }
        return true;
    }
    validateEvt($event) {
        if (($event.charCode >= 33 && $event.charCode <= 47) || ($event.charCode >= 58 && $event.charCode <= 64)
            || ($event.charCode >= 91 && $event.charCode <= 96) || ($event.charCode >= 123 && $event.charCode <= 126)) {
            return true;
        }
        return false;
    }
    valAndSetAutoRedirect() {
        let tempSumMail = [];
        if (this.txtEnableRedirect != 0) {
            if (this.txtEnableRedirect > 32) {
                this.scenUtilsService.errorMessage('Please enter the value of Auto Redirect between 1 and 32');
                return false;
            }
            tempSumMail.push(this.txtEnableRedirect);
            if (this.chkAutoRedirect)
                tempSumMail.push(1);
            else
                tempSumMail.push(0);
        }
        else {
            tempSumMail.push(0);
            tempSumMail.push(0);
        }
        this.setArrayWithKeyWord('AUTO_REDIRECT', tempSumMail);
        return true;
    }
    setChkBoxData(keyword, obj) {
        let temObj = [];
        if (obj) {
            temObj.push(1);
        }
        else
            temObj.push(0);
        this.setArrayWithKeyWord(keyword, temObj);
    }
    setArrayWithKeyWord(keyword, temObj) {
        let dataObj = this.arrKeywordData[keyword].data;
        if (dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]] != undefined) {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]] = [];
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]].push(temObj);
        }
        else {
            dataObj[_constants_scen_keyword_constants__WEBPACK_IMPORTED_MODULE_2__["GLOBAL_KEY"]] = [temObj];
        }
    }
    ngOnDestroy() {
        if (this.subscription)
            this.subscription.unsubscribe();
    }
};
HttpUrlEncodingComponent.ctorParameters = () => [
    { type: _service_scen_keyword_definition_service__WEBPACK_IMPORTED_MODULE_5__["ScenKeywordDefinitionService"] },
    { type: _service_additional_setting_data_service__WEBPACK_IMPORTED_MODULE_4__["AdditionalSettingsDataService"] },
    { type: _service_scenario_utils_service__WEBPACK_IMPORTED_MODULE_7__["ScenarioUtilsService"] },
    { type: _service_sch_schedule_data_service__WEBPACK_IMPORTED_MODULE_8__["SchScheduleDataService"] },
    { type: _service_scenario_http_service__WEBPACK_IMPORTED_MODULE_6__["ScenarioHttpService"] }
];
HttpUrlEncodingComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-http-url-encoding',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./http-url-encoding.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.html")).default,
        encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./http-url-encoding.component.scss */ "./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.scss")).default]
    })
], HttpUrlEncodingComponent);



/***/ }),

/***/ "./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.module.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.module.ts ***!
  \*******************************************************************************************************/
/*! exports provided: HttpUrlEncodingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpUrlEncodingModule", function() { return HttpUrlEncodingModule; });
/* 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 _http_url_encoding_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./http-url-encoding.component */ "./src/app/pages/scenario/additional-settings-main/http-url-encoding/http-url-encoding.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var _interface_scenario_routing_guard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../interface/scenario-routing-guard */ "./src/app/pages/scenario/interface/scenario-routing-guard.ts");








const route = [
    { path: '', component: _http_url_encoding_component__WEBPACK_IMPORTED_MODULE_3__["HttpUrlEncodingComponent"], canDeactivate: [_interface_scenario_routing_guard__WEBPACK_IMPORTED_MODULE_7__["ScenRoutingGuard"]] }
];
let HttpUrlEncodingModule = class HttpUrlEncodingModule {
};
HttpUrlEncodingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_http_url_encoding_component__WEBPACK_IMPORTED_MODULE_3__["HttpUrlEncodingComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["FileUploadModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DialogModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["DropdownModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["BreadcrumbModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SelectButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["InputTextModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MultiSelectModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TableModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CardModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["CheckboxModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MessageModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["RadioButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SpinnerModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(route),
        ],
        exports: [_http_url_encoding_component__WEBPACK_IMPORTED_MODULE_3__["HttpUrlEncodingComponent"]]
    })
], HttpUrlEncodingModule);



/***/ })

}]);