function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }

function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }

function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }

function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }

function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }

function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }

function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }

function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }

function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }

function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }

function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }

function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["script-topmenu-script-topmenu-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.html":
  /*!*********************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.html ***!
    \*********************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_checkpoint_checkpointsList_checkpointsListComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<p-dialog  [(visible)]=\"isVisible\" [style]=\"{width: '1201px'}\" [modal]=\"true\">\n    <div *ngIf=\"isVisible\">   \n        <cav-table #checkpointListTable [value]=\"assertions\" [headerRelativePath]=\"headerRelativePath\" [scrollable]=\"true\" scrollHeight=\"300px\" (clickButtonEvent)=\"clickButtonEvent($event)\" [(selection)]=\"selectedAssertions\" [responsive]=\"true\" selectionMode=\"single\" editMode=\"row\" (deleteRow)=\"onDeleteRow($event.row)\"></cav-table>\n    </div>\n\n    <!-- <p-confirmDialog class=\"confirmdialog\" header=\"Confirmation\" [style]=\"{width: '30vw'}\" acceptButtonStyleClass=\"ui-button-rounded px-10\"\nrejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" acceptLabel=\"Yes\" rejectLabel=\"No\"   [baseZIndex]=\"12000\"></p-confirmDialog>\n -->\n</p-dialog>";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/external-libraries/external-libraries.component.html":
  /*!**************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/external-libraries/external-libraries.component.html ***!
    \**************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_externalLibraries_externalLibrariesComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<p-dialog [(visible)]=\"isVisible\" [style]=\"{width: '500px'}\" [modal]=\"true\" [resizable]=\"false\">\n    <p-header class=\"word-break\">Add External Libraries - {{headerTitle}}</p-header>\n    <div class=\"p-grid p-align-center\">\n       <div class=\"p-col-12\" *ngIf=\"isVisible\"> \n            <cav-table [value]=\"getExtLibData\" [headerRelativePath]=\"headerRelativePath\" [globalFilterFields]=\"['name']\" sortField=\"\" (clickButtonEvent)=\"clickButtonEvent($event)\"\n            [scrollable]=\"true\" [selection]=\"selectedExtLibFile\"></cav-table>\n       </div>\n    </div>\n    <p-footer [style]=\"{padding: 0, margin: 0}\">\n        <div class=\"p-grid p-col-12\" [style]=\"{padding: 0, margin: 0}\">\n            <div class=\"p-col-6\" style=\"text-align: left;\">\n                <p-fileUpload #form class=\"ui-button-rounded fileUpload mx-3\" mode=\"basic\" name=\"file[]\" url=\"\" accept=\"{{validFileType}}\" maxFileSize=\"1000000\" (onSelect)=\"onBasicUploadAuto($event, form, scriptType)\" [auto]=\"true\" chooseLabel=\"Upload External Library\" uploadIcon=\"null\"></p-fileUpload>\n                <i *ngIf=\"showUplodLoader\" class=\"icons8 icons8-spinner spin\"></i>\n            </div>\n            <div class=\"p-col-6\" style=\"text-align: right;\">\n                <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary mx-6\" (click)=\"isVisible=false\" label=\"Cancel\"></button>  \n                <button type=\"button\" pButton class=\"ui-button-rounded px-15\" label=\"Save\" (click)=\"addExternalLib(scriptType)\"></button>  \n            </div>    \n        </div>\n    </p-footer>\n</p-dialog>";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/page-list/script-page-list.component.html":
  /*!***************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/page-list/script-page-list.component.html ***!
    \***************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_pageList_scriptPageListComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "\n<p-dialog  [closable]=\"false\" [(visible)]=\"isVisible\" [style]=\"{width: '500px'}\" [modal]=\"true\" [resizable]=\"false\">\n    <p-header class=\"p-grid p-align-center p-justify-between p-nogutter\">\n        <span class=\"word-break p-col\">Page(s) list for  -  {{headerTitle}}  -  {{pageTypeFlowOrAll}}</span>\n        <i class=\"pi pi-times p-col-fixed width-20 text-right clickable\" (click)=\"closePageDialog()\"></i>\n    </p-header>\n    <div class=\"p-grid p-align-center\">\n        <div class=\"p-col-12\" *ngIf=\"isVisible\">\n            <p-table #pglist [value]=\"pageslists\" dataKey=\"id\" editMode=\"row\" [loading]=\"loading\"  [globalFilterFields]=\"['header']\" class=\"new-table\">\n                <ng-template pTemplate=\"caption\">\n                    <div class=\"w-100-p p-grid p-align-center p-justify-end mn-5\">\n                        <div class=\"type-search\">\n                            <i class=\"left-icon icons8 icons8-search mt-2\"></i>\n                            <input type=\"text\" (input)=\"pglist.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search page\"  pInputText class=\"pl-20\"> \n                        </div>\n                    </div>\n                    \n                </ng-template>\n                <ng-template pTemplate=\"header\">\n                    <tr>\n                        <th class=\"headerTh\" pSortableColumn=\"id\">\n                            #\n                            <p-sortIcon field=\"id\"></p-sortIcon>\n                        </th>\n                        <th pSortableColumn=\"header\">\n                            Page name \n                            <p-sortIcon field=\"header\"></p-sortIcon>\n                        </th>\n                    </tr>\n                </ng-template>\n                <ng-template pTemplate=\"body\" let-editing=\"editing\" let-ri=\"rowIndex\" let-pagelist>\n                    <tr class=\"bodyTr\" [pEditableRow]=\"pagelist\" (mouseover)=\"rowMouseHover(pagelist.id)\" (mouseout)=\"rowMouseOut(pagelist.id)\">\n                        <td >\n                            {{pagelist.id}}\n                        </td>\n                        <td>\n                            <div class=\"p-grid p-align-center p-justify-between\">\n                                <div class=\"p-1\">\n                                    <p-cellEditor>\n                                        <ng-template pTemplate=\"input\">\n                                            <input pInputText type=\"text\" [(ngModel)]=\"pagelist.header\" required>\n                                        </ng-template>\n                                        <ng-template pTemplate=\"output\">\n                                            {{pagelist.header}}\n                                        </ng-template>\n                                    </p-cellEditor>\n                                </div>\n                                <div class=\"p-1\">\n                                    <button id=\"div_{{pagelist.id}}\" *ngIf=\"!editing\" style=\"display:none;\" pButton pRipple type=\"button\" pInitEditableRow icon=\"pi pi-pencil\" (click)=\"onRowEditInit(pagelist)\" class=\"p-button-text btn-icon custom-style\"></button>\n                                    <button *ngIf=\"editing\" pButton  id=\"closeSave\" spRipple type=\"button\" pSaveEditableRow icon=\"pi pi-check\" (click)=\"onRowEditSave(pagelist)\" class=\"custom-style p-button-text p-button-success btn-icon mr-2\"></button>\n                                </div>\n                            </div>\n                        </td>\n                    </tr>\n                </ng-template>\n            </p-table>\n        </div>\n    </div>\n    <p-footer>\n        <!-- <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary mx-6\" (click)=\"isVisible=false\" label=\"Cancel\"></button> -->\n        <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary mx-6\" label=\"Show All Pages\" (click)=\"getPageList('All')\"></button>\n        <button *ngIf=\"showRenameButton\" type=\"button\" pButton class=\"ui-button-rounded px-15\" label=\"Save Changes\" (click)=\"renamePageProcess()\"></button>\n    </p-footer>\n</p-dialog>\n<p-confirmDialog class=\"confirmdialog\" header=\"Confirmation\" acceptButtonStyleClass=\"ui-button-rounded px-10\"\n    rejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" acceptIcon=\"null\" rejectIcon=\"null\"\n    acceptLabel=\"OK\" rejectLabel=\"Cancel\" key=\"scriptpagelist\"></p-confirmDialog>\n";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.html":
  /*!***************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.html ***!
    \***************************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_parameter_components_parameterList_parameterListComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<div class=\"blockedUI\" *ngIf=\"loadingOnEditing\">\n    <i class=\"icons8 icons8-spinner spin\"></i>\n</div>\n<p-dialog  [(visible)]=\"isVisible\" [style]=\"{width: '900px'}\" [modal]=\"true\">\n    <div class=\"p-grid p-align-center w-100-p p-justify-end\">\n\n         <button pButton type=\"button\" label=\"Fix error(s)\" class=\"ui-button-secondary mr-5\" pTooltip=\"All parameters having error(s) will be removed.\" \n            tooltipPosition=\"bottom\" [tooltipZIndex]=\"20000\"  *ngIf=\"errsList != ''\" (click)=\"fixErrorInRegistSpec()\"></button>\n       \n    </div> \n    <div class=\"alert-danger my-8 heightDiv\" *ngIf=\"errsList != ''\">\n        <span class=\"word-break\" [innerHTML]=\"errsList\"></span>\n    </div>\n    <div *ngIf=\"isVisible\">\n    <cav-table #parameterListTable [value]=\"pages\" [headerRelativePath]=\"headerRelativePath\"\n    [scrollable]=\"true\" scrollHeight=\"300px\" (clickButtonEvent)=\"clickButtonEvent($event)\"\n    [(selection)]=\"selectedParameters\"\n    [responsive]=\"true\" selectionMode=\"single\" editMode=\"row\" (deleteRow)=\"deleteParameter($event.row)\"></cav-table>\n    </div>\n\n</p-dialog>\n\n<p-confirmDialog class=\"confirmdialog\" header=\"Delete Confirmation\" [style]=\"{width: '30vw'}\"\n    acceptButtonStyleClass=\"ui-button-rounded px-10\"\n    rejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" key=\"paramList\" acceptLabel=\"Yes\"\n    rejectLabel=\"No\" [baseZIndex]=\"12000\"></p-confirmDialog>\n";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.html":
  /*!********************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.html ***!
    \********************************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_createFlow_createFlowComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<p-dialog header=\"Create Flow\" [(visible)]=\"isVisible\" [style]=\"{width: '400px'}\" [modal]=\"true\" [resizable]=\"false\">\n  <div class=\"p-grid p-align-center\">\n    <div class=\"p-col-4\">Flow Name</div>\n    <div class=\"p-col-8\">\n      <input type=\"text\" pInputText class=\"w-100-p\" [(ngModel)]=\"flowName\">\n    </div>\n    <div class=\"p-col-4\">Location</div>\n    <div class=\"p-col-8\">\n      <input type=\"text\" pInputText class=\"w-100-p\" [(ngModel)]=\"treePath\" readonly>\n    </div>\n    <div class=\"p-col-4\">Template</div>\n    <div class=\"p-col-8\">\n      <p-dropdown #dd [options]=\"templates\" [(ngModel)]=\"selectedTemplate\" [filter]=\"true\" placeholder=\"--Select Template--\"\n      dropdownIcon=\"icons8 icons8-expand-arrow\" appendTo=\"body\" [resetFilterOnHide]=\"true\"></p-dropdown>\n</div>\n    <!-- <div class=\"p-col-4\">\n      Project Name\n    </div>\n    <div class=\"p-col-8\">\n        <p-dropdown [options]=\"projectName\" [(ngModel)]=\"selectProjectName\" \n        [style]=\"{'min-width':'100%'}\" dropdownIcon=\"icons8 icons8-expand-arrow\">\n       </p-dropdown>\n    </div>\n    <div class=\"p-col-4\">\n      Subproject Name\n    </div>\n    <div class=\"p-col-8\">\n        <p-dropdown [options]=\"subProjectName\" [(ngModel)]=\"selectSubProjectName\" \n        [style]=\"{'min-width':'100%'}\" dropdownIcon=\"icons8 icons8-expand-arrow\">\n       </p-dropdown>\n    </div>\n    <div class=\"p-col-4\">\n      Script Name\n    </div>\n    <div class=\"p-col-8\">\n        <p-dropdown [options]=\"scriptName\" [(ngModel)]=\"selectScriptName\" \n        [style]=\"{'min-width':'100%'}\" dropdownIcon=\"icons8 icons8-expand-arrow\">\n       </p-dropdown>\n    </div> -->\n  </div>\n\n\n\n  <p-footer>\n    <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary mx-6\" (click)=\"isVisible=false\"\n      label=\"Cancel\"></button>\n    <button type=\"button\" pButton class=\"ui-button-rounded px-15\" label=\"Create\" (click)=\"createFlow()\"></button>\n  </p-footer>\n</p-dialog>";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.html":
  /*!**********************************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.html ***!
    \**********************************************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_newFileDirectory_newFileDirectoryComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "\n<p-dialog header=\"Create File / Directory\" [(visible)]=\"isVisible\" [style]=\"{width: '400px'}\" [modal]=\"true\"\n[baseZIndex]=\"10000\" [resizable]=\"false\">\n\n<div class=\"p-grid p-align-center\">\n    <div class=\"p-col-4\">File/Directory Name</div>\n    <div class=\"p-col-8\">\n        <input type=\"text\" maxlength=\"32\" [(ngModel)]=\"txtForNewFileFolder\" pInputText class=\"w-100-p\">\n    </div>\n    <div class=\"p-col-4\">\n        <p-radioButton name=\"group2\" value=\"File\" label=\"File\" [(ngModel)]=\"isUploadFile\"></p-radioButton>\n    </div>\n    <div class=\"p-col-8\">\n        <p-radioButton name=\"group2\" value=\"Directory\" label=\"Directory\" [(ngModel)]=\"isUploadFile\"></p-radioButton>\n    </div>\n</div>\n\n\n\n<p-footer>\n    <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary mx-6\" (click)=\"close()\" label=\"Cancel\"></button>\n    <button type=\"button\" pButton class=\"ui-button-rounded px-15\" (click)=\"createFileDir()\" label=\"Ok\"></button>\n</p-footer>\n</p-dialog>\n";
    /***/
  },

  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.html":
  /*!***********************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.html ***!
    \***********************************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _node_modules_rawLoader_dist_cjsJs_src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_scriptTopmenuComponentHtml(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "<div class=\"inline-flex p-align-center p-justify-between my-5\" *ngIf=\"scriptTabService.tabsArr.length > 0 && scriptTabService.nodeType != 14\">\n  <div class=\"inline-flex\" *ngIf=\"scriptTabService.nodeType == 8\">\n    <button *ngIf=\"permissionType >= permissionList.readWrite\"  (click)=\"createRunlogic()\"  class=\"btn-icon\" pButton icon=\"icons8 icons8-add\" pTooltip=\"Create Runlogic\" tooltipPosition=\"top\"></button>\n    <button *ngIf=\"permissionType >= permissionList.readWrite\" type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-save\" pTooltip=\"Save(Ctrl + S)\" tooltipPosition=\"top\"\n    (click)=\"saveRunlogic()\"></button>\n    <button type=\"button\" class=\"btn-icon\" [pTooltip]=\"!scriptTabService.runLogicExpandCollapse[scriptTabService.activeTabDataInfo['filePath'] + scriptTabService.activeTabDataInfo['fileName']] ? 'Collapse All' : 'Expand All'\" (click)=\"expandCollapse()\" tooltipPosition=\"top\">\n      <i class=\"icons8\" [ngClass]=\"!scriptTabService.runLogicExpandCollapse[scriptTabService.activeTabDataInfo['filePath'] + scriptTabService.activeTabDataInfo['fileName']] ? 'icons8-compress' : 'icons8-enlarge'\"></i></button>\n      <button type=\"button\" pButton class=\"btn-icon\" icon=\"las-calculator-solid\" pTooltip=\"Calculator\" (click)=\"showCalculator()\"\n      tooltipPosition=\"top\"></button>\n\n      <!---Runlogic options---->\n      <button *ngIf=\"permissionType >= permissionList.readWrite\" (click)=\"renameRunlogic()\"  [disabled]=\"scriptTabService.renameRun\" icon=\"icons8 icons8-edit\" class=\"btn-icon\" pButton pTooltip=\"Rename Runlogic\" tooltipPosition=\"top\"></button>\n\n      <button *ngIf=\"permissionType >= permissionList.readWrite\"  (click)=\"copyRunlogic()\" class=\"btn-icon\" pButton icon=\"icons8 icons8-copy\" pTooltip=\"Copy Runlogic\" tooltipPosition=\"top\"></button>\n  \n      <button *ngIf=\"permissionType >= permissionList.readWrite\" (click)=\"defaultRunlogic()\"  [disabled]=\"scriptTabService.setAsDefault\" class=\"btn-icon\" pButton icon=\"icons8 icons8-sync-settings\" pTooltip=\"Set Default\" tooltipPosition=\"top\"></button>\n    \n      <button *ngIf=\"permissionType >= permissionList.readWrite\" (click)=\"resetRunlogic()\"  class=\"btn-icon\" pButton icon=\"las-redo-alt-solid\" pTooltip=\"Reset Runlogic\" tooltipPosition=\"top\"></button>\n\n      <button (click)=\"downloadRunlogic()\" class=\"btn-icon\" pButton icon=\"las-download-solid\" pTooltip=\"Download\" tooltipPosition=\"top\"></button>\n  \n      <button *ngIf=\"permissionType >= permissionList.readWrite\"  (click)=\"deleteRunlogic()\" [disabled]=\"scriptTabService.deleteRun\" class=\"btn-icon\" pButton icon=\"icons8 icons8-trash\" pTooltip=\"Delete Runlogic\" tooltipPosition=\"top\"></button>\n    <app-help  [helpFileName]=\"'runLogicHelp'\"  [helpTitle]=\"'Runlogic'\" [helpFolder]=\"'script'\"></app-help>\n</div>\n  <div class=\"inline-flex\" *ngIf=\"scriptTabService.nodeType != 8\">\n    <p-button type=\"button\"  styleClass=\"btn-icon\" [icon]=\"this.scriptTabService.treeWidth == 0 ? 'cav5 sidebar-toggle' :'cav5 sidebar-toggle la-flip-horizontal'\" pTooltip=\"Toggle Script Tree\"\n      tooltipPosition=\"top\" (click)=\"toggleScriptTree()\"></p-button>\n    <button *ngIf=\"permissionType >= permissionList.readWrite\" type=\"button\" pButton class=\"btn-icon\" icon=\"las-file-alt-solid\" pTooltip=\"Create New File /Directory\"\n      tooltipPosition=\"top\" (click)=\"showDialog3()\"></button>\n    <button *ngIf=\"permissionType >= permissionList.readWrite && ifActiveTabIsScript\" type=\"button\" pButton class=\"btn-icon\" icon=\"las-code-branch-solid\" pTooltip=\"Create Flow\"\n      tooltipPosition=\"top\" (click)=\"showDialog4()\"></button>\n    <button *ngIf=\"permissionType >= permissionList.readWrite\" type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-save\" pTooltip=\"Save(Ctrl + S)\" tooltipPosition=\"top\"\n      (click)=\"saveFile()\"></button>\n    <button *ngIf=\"permissionType >= permissionList.readWrite\" type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-save-as\" pTooltip=\"Save All\"\n      tooltipPosition=\"top\" (click)=\"saveAllFile()\"></button>\n    <button type=\"button\" pButton class=\"btn-icon\" icon=\"cav2 word-wrap\" pTooltip=\"Word wrap\" tooltipPosition=\"top\"\n      (click)=\"changeWordWrap()\" [ngClass]=\"wordWrapFlag ? 'is-active' : ''\"></button>\n    <!-- <button type=\"button\" pButton class=\"btn-icon\" icon=\"las-save\" pTooltip=\"Save all breakpoint\"\n      tooltipPosition=\"top\"></button> -->\n    <!-- <button type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-synchronize\" pTooltip=\"Synchronize / refresh\"\n      tooltipPosition=\"top\" (click)=\"synchronize()\"></button> -->\n      <button type=\"button\" *ngIf=\"ifActiveTabIsScript\" pButton class=\"btn-icon\" icon=\"icons8 icons8-synchronize\" pTooltip=\"Synchronize user's scripts\" tooltipPosition=\"top\" [matMenuTriggerFor]=\"SyncUserScripts\"></button>\n\n      <button type=\"button\" *ngIf=\"ifActiveTabIsScript\" [disabled]=\"compileInProgress\" pButton class=\"btn-icon\" icon=\"icons8 icons8-settings font-16 btn-icon\" pTooltip=\"Compile script\" tooltipPosition=\"top\" (click)=\"getScriptCompile()\"></button>\n      <button type=\"button\" *ngIf=\"ifActiveTabIsScript\" pButton class=\"btn-icon\" icon=\"icons8 icons8-circled-play font-16 btn-icon\" pTooltip=\"Test script\" tooltipPosition=\"top\"  (click)=\"showTestScript()\"></button>\n      <button pButton  *ngIf=\"scriptType == 'C' && ifActiveTabIsScript\" type=\"button\" class=\"btn-icon debugScript\" [disabled]=\"brkPointservice.debugDisabled\" pTooltip=\"Debug Script with {{iterationNum}} iteration\" tooltipPosition=\"top\">\n        <span class=\"p-grid p-align-center pt-2\" (click)=\"createScenAndDebugTest()\">\n            <i class=\"las-bug-solid mr-1\"></i></span>\n        <i class=\"iteration pi pi-angle-down font-17\" (click)=\"op1.toggle($event)\"></i>\n    </button>\n      <button *ngIf=\"scriptType == 'C' && ifActiveTabIsScript && !brkPointservice.continueDisabled\" type=\"button\" pButton class=\"btn-icon\" icon=\"las-arrow-circle-right-solid\" pTooltip=\"Continue\" tooltipPosition=\"top\" (click)=\"continueDebugger()\"></button>\n      <button *ngIf=\"scriptType == 'C' && ifActiveTabIsScript && !brkPointservice.nextDisabled\" type=\"button\" pButton class=\"btn-icon\" icon=\"las-route-solid\" pTooltip=\"Step by Step\" tooltipPosition=\"top\" (click)=\"debuggerNext()\"></button>\n      <button *ngIf=\"scriptType == 'C' && ifActiveTabIsScript && !brkPointservice.stopDisabled\" type=\"button\" pButton class=\"btn-icon\" icon=\"las-ban-solid\" pTooltip=\"Stop Test\" tooltipPosition=\"top\" (click)=\"stopDebugger()\"></button>  \n    <button *ngIf=\"ifActiveTabIsScript\" type=\"button\" pButton class=\"btn-icon\" icon=\"icons8 icons8-menu-vertical\" [matMenuTriggerFor]=\"advanceOptions\"\n      pTooltip=\"Advanced Options\"></button>\n      <i class=\"icons8 icons8-spinner spin\" *ngIf=\"brkPointservice.loadingOnClick\"></i>\n      <i class=\"pi pi-spin pi-spinner\" *ngIf=\"smtreeService.showSyncSpinner\"></i>\n\n    <!-- <p-tieredMenu class=\"menuList\" styleClass=\"menuList\" #menu [popup]=\"true\" appendTo=\"body\" autoZIndex=\"true\"\n      [style]=\"{'width': '125px','cursor':'pointer'}\" [model]=\"menuOptions\" tooltipPosition=\"top\"></p-tieredMenu> -->\n  </div>\n  \n  <div class=\"p-grid p-align-center\">\n    <span *ngIf=\"permissionType >= permissionList.readWrite\" [pTooltip]=\"scriptTabService.nodeType != 4 ? 'Transaction can be added only in flow file' : ''\"\n      tooltipPosition=\"bottom\">\n      <button  [disabled]=\"scriptTabService.nodeType != 4\" [matMenuTriggerFor]=\"transaction\"\n        class=\"ui-button-secondary mx-3 ui-button\">\n        <span>Transaction</span>\n        <i class=\"icons8 icons8-expand-arrow font-20\"></i>\n      </button>\n    </span>\n    <button [disabled]=\"!ifActiveTabIsScript\"\n      [matMenuTriggerFor]=\"parameter\" class=\"ui-button-secondary mx-3 ui-button\">\n      <span>Parameter</span>\n      <i class=\"icons8 icons8-expand-arrow font-20\"></i>\n    </button>\n    <button [disabled]=\"!ifActiveTabIsScript\"\n      class=\"ui-button-secondary mx-3 ui-button\" [matMenuTriggerFor]=\"checkpoints\">\n    <span>Assertion</span>\n    <i class=\"icons8 icons8-expand-arrow font-20\"></i>\n    </button>\n    <span *ngIf=\"permissionType >= permissionList.readWrite\" [pTooltip]=\"scriptTabService.nodeType != 4 ? 'API can be added only in flow file' : (scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition'] == undefined) ? 'Click on line in editor where to add API' : ''\"\n      tooltipPosition=\"bottom\">\n      <button [disabled]=\"scriptTabService.nodeType != 4 || (scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition']) == undefined\"\n        class=\"ui-button-secondary mx-3 ui-button\" (click)=\"showAPI('api', 'Add API')\">\n      <span>API</span>\n      </button>\n    </span>\n    \n  </div>\n</div>\n\n<mat-menu #checkpoints=\"matMenu\">\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item (click)=\"showAPI('addCheckpoint', 'Add Assertion')\">Add Assertion</button>\n  <button mat-menu-item (click)=\"showDialog2()\">List Assertion</button>\n</mat-menu>\n\n<mat-menu #SyncUserScripts=\"matMenu\">\n  <button mat-menu-item (click)=\"synchronizeTree('all')\">All</button>\n  <button mat-menu-item (click)=\"synchronizeTree('project')\" [disabled]=\"selectedNodeProj\">Project</button>\n  <button mat-menu-item (click)=\"synchronizeTree('subproject')\" [disabled]=\"selectedNodeSubProj\">Sub Project</button>\n  <button mat-menu-item (click)=\"synchronizeTree('script')\" [disabled]=\"selectedNodeScript\">Script</button>\n</mat-menu>\n\n<mat-menu #transaction=\"matMenu\">\n  <span\n\n    [pTooltip]=\"(scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition'] == undefined) ? 'Click on line in editor where to add transaction' : ''\">\n    <button mat-menu-item [disabled]=\"scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition'] == undefined\"\n      (click)=\"showAPI('startTx', 'Start Transaction')\">Start Transaction\n    </button>\n  </span>\n  <span\n    [pTooltip]=\"(scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition'] == undefined) ? 'Click on line in editor where to add transaction' : ''\">\n    <button mat-menu-item [disabled]=\"scriptTabService.activeTabDataInfo == undefined || scriptTabService.activeTabDataInfo['cursorPosition'] == undefined\"\n      (click)=\"showAPI('endTx', 'End Transaction')\">End Transaction</button>\n  </span>\n  <span [pTooltip]=\"scriptTabService.activeTabDataInfo == undefined || !scriptTabService.activeTabDataInfo['editorSelection']?.text || scriptTabService.activeTabDataInfo['editorSelection']?.text == undefined ? \n  'select block of text in editor first':''\" pTooltip=\"select block of text in editor first\" tooltipZIndex=\"1100\">\n    <button mat-menu-item\n      [disabled]=\"scriptTabService.activeTabDataInfo == undefined || !scriptTabService.activeTabDataInfo['editorSelection']?.text || scriptTabService.activeTabDataInfo['editorSelection']?.text == undefined\"\n      (click)=\"showAPI('startEndTx', 'Start End Transaction')\">Start End Transaction</button>\n  </span>\n\n</mat-menu>\n<mat-menu #parameter=\"matMenu\">\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item [matMenuTriggerFor]=\"addParameter\">Add Parameter</button>\n  <button mat-menu-item (click)=\"showDialog()\">List Parameter</button>\n</mat-menu>\n<mat-menu #addParameter=\"matMenu\">\n  <button mat-menu-item (click)=\"showAPI('addParameter/file', 'Add Parameter')\">Dataset using File </button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/file-test-data-generator', 'Add Parameter')\">Dataset using Auto Data Generation</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/search', 'Add Parameter')\">Search Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/declare', 'Add Parameter')\">Scratch Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/xml', 'Add Parameter')\">XML Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/index_file', 'Add Parameter')\">Index Dataset using\n    file</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/dateTime', 'Add Parameter')\">DateTime Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/random_string', 'Add Parameter')\">Random String\n    Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/random_number', 'Add Parameter')\">Random Number\n    Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/unique_number', 'Add Parameter')\">Unique Number\n    Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/declare_array', 'Add Parameter')\">Scratch Array\n    Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/json', 'Add Parameter')\">Json Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/unique_range', 'Add Parameter')\">Unique Range\n    Parameter</button>\n  <button mat-menu-item (click)=\"showAPI('addParameter/sql', 'Add Parameter')\">Dataset using Query</button>\n  <!-- <button mat-menu-item (click)=\"showAPI('/script/addParameter/cmd', 'Add Parameter')\">Dataset using Command</button> -->\n</mat-menu>\n<mat-menu #advanceOptions=\"matMenu\">\n<button *ngIf=\"permissionType >= permissionList.readWrite && ifActiveTabIsScript\" mat-menu-item \n      [matMenuTriggerFor]=\"versionControl\">Version control</button>\n\n<mat-menu #versionControl=\"matMenu\">\n  <button mat-menu-item *ngIf=\"versionCommit?.toEnableGitRefresh\" (click)=\"openGitCommandforFile('commit')\">GIT Commit\n    (File)</button>\n  <button mat-menu-item *ngIf=\"versionCommit?.toEnableGitRefresh\" (click)=\"openGitCommand('commit')\">GIT Commit\n    (Script)</button>\n  <button mat-menu-item *ngIf=\"versionCommit?.toEnableGitRefresh\" (click)=\"openGitCommand('history')\">GIT\n    History</button>\n  <button mat-menu-item *ngIf=\"versionCommit?.toEnableGitRefresh\" (click)=\"openGitCommand('pull')\">GIT Pull</button>\n  <button mat-menu-item *ngIf=\"!versionCommit?.toEnableGitRefresh\" (click)=\"openGitCommand('versionCommit')\">Version\n    Commit</button>\n  <button mat-menu-item *ngIf=\"versionLogs?.isVersionLog\" (click)=\"openVersionLogs()\">Version Logs </button>\n</mat-menu>\n  <button mat-menu-item *ngIf=\"ifActiveTabIsScript\" (click)=\"onViewSnapshot()\">Snapshot</button>\n  <button mat-menu-item *ngIf=\"ifActiveTabIsScript\" (click)=\"compareScript.toggle($event)\">Compare scripts</button>\n  <button mat-menu-item [matMenuTriggerFor]=\"recordingOptions\">Recording logs</button>\n  <button mat-menu-item (click)=\"onClickRequestResponse()\">View recorded request-response</button>\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item (click)=\"openPageList()\">Page List</button>\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item (click)=\"openAddExternalLibraries()\">Add External Libraries</button>\n</mat-menu>\n<mat-menu #recordingOptions=\"matMenu\">\n  <button mat-menu-item (click)=\"openDialog('Debug log')\">Debug Log</button>\n  <button mat-menu-item (click)=\"openDialog('Error log')\">Error Log</button>\n</mat-menu>\n<!-- <mat-menu #nextMenuItems=\"matMenu\">\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item (click)=\"renameRunlogic()\"  [disabled]=\"scriptTabService.renameRun\">\n      <i class=\"icons8 icons8-edit mr-5\" ></i>\n      Rename Runlogic</button>\n\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item  (click)=\"copyRunlogic()\">\n      <i class=\"icons8 icons8-copy mr-5\"></i>\n      Copy Runlogic</button>\n\n  <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item (click)=\"defaultRunlogic()\"  [disabled]=\"scriptTabService.setAsDefault\">\n      <i class=\"icons8 icons8-sync-settings mr-5\"></i>\n      Set Default</button>\n    \n\n  <button mat-menu-item (click)=\"downloadRunlogic()\">\n      <i class=\"las-download-solid mr-5\"></i>\n      Download</button>\n\n      <button *ngIf=\"permissionType >= permissionList.readWrite\" mat-menu-item  (click)=\"deleteRunlogic()\" [disabled]=\"scriptTabService.deleteRun\" >\n      <i class=\"icons8 icons8-trash mr-5\"></i>\n      Delete Runlogic</button>\n\n</mat-menu> -->\n\n<p-overlayPanel #op1 appendTo=\"body\">\n  <ng-template pTemplate>\n  <div class=\"p-grid p-align-center p-15\">\n      <label class=\"mr-5\">Iterations</label>\n          <p-spinner [(ngModel)]=\"iterationNum\" inputStyleClass=\"width-60\" [min]=\"1\"></p-spinner>  \n  </div>\n</ng-template>\n</p-overlayPanel>\n\n<div class=\"main-tab-background mx-5 border-1\">\n  <app-script-tab></app-script-tab>\n</div>\n\n<app-cav-scen-version-commit openFrom=\"scripts\" [hidden]=\"!scriptUtilService.doGITOpeartionFrmTopMenu\"></app-cav-scen-version-commit>\n<app-cav-scen-version-log openFrom=\"scripts\" (versionUpdated)=\"onVersionUpdate()\" [hidden]=\"!scriptUtilService.doGITOpeartionFrmTopMenu\"></app-cav-scen-version-log>\n\n<p-sidebar [(visible)]=\"scriptTabService.openSideBar\" position=\"right\" [modal]=\"true\" appendTo=\"body\"\n  [style]=\"psideBarStyle\" [showCloseIcon]=\"false\" (onHide)=\"onCloseSideBar()\" [dismissible] = \"false\">\n  <!-- [fullScreen]=\"fullscreen\"> -->\n  <div class=\"sidebar-header p-grid px-6 pt-6 pb-7 p-align-center p-justify-between font-weight-600\">\n    <div class=\"sidebar-title font-13\">{{parameterDataService.sideBartitle}}</div>\n    <div class=\"action-buttons right\">\n        <span *ngIf=\"showHelpBtn\">\n          <button type=\"button\" pButton class=\"btn-icon btn-white\" icon=\"icons8 icons8-help clickable\" pTooltip=\"Help\"\n          (click)=\"showHelp()\" tooltipZIndex=\"12000\"></button> \n        </span>\n      \n        <button type=\"button\" pButton\n        [ngClass]=\"fullscreen == true ? 'btn-icon btn-white icons8 icons8-compress clickable' : 'btn-icon btn-white icons8 icons8-enlarge clickable'\"\n        (click)=\"toggleView()\" [pTooltip]=\"psideBarToolTip\" tooltipZIndex=\"12000\"></button>\n      <button type=\"button\" pButton class=\"btn-icon btn-white\" icon=\"icons8 icons8-delete clickable\"\n        (click)=\"onCloseSideBar()\" pTooltip=\"Close\" tooltipZIndex=\"12000\"></button>\n    </div>\n  </div>\n  <router-outlet></router-outlet>\n</p-sidebar>\n\n\n<!-- <app-end-transaction  #endTransaction></app-end-transaction>\t\n<app-start-end-transaction  #startEndTransaction></app-start-end-transaction>\t\n<app-add-parameter  #addParameters></app-add-parameter>\t -->\n<app-parameter-list></app-parameter-list>\n<app-checkpoints-list></app-checkpoints-list>\n<!-- <app-add-checkpoints #addCheckPoints></app-add-checkpoints>\t -->\n<app-create-flow></app-create-flow>\n<app-new-file-directory></app-new-file-directory>\n<!-- <app-ns-api></app-ns-api> -->\n<script-page-list></script-page-list>\n<external-libraries></external-libraries>\n\n<ng-template ngFor let-ele [ngForOf]=\"dialogArr\" let-i=\"index\">\n  <p-dialog [(visible)]=\"ele.visible\" header=\"{{ele.header}}\" [modal]=\"false\" [style]=\"{width: '700px'}\"\n    [maximizable]=\"true\" [resizable]=\"false\">\n\n    <div *ngIf=\"ele.loading\" class=\"loadingCls\"><i class=\"pi pi-spin pi-spinner\"></i><b>Loading...</b> <br></div>\n    <span class=\"word-break\" [innerHTML]=\"ele.data\"></span>\n\n    <p-footer class=\"p-grid p-justify-end\">\n      <button type=\"button\" pButton class=\"ui-button-rounded ui-button-secondary\" (click)=\"ele.visible=false\"\n        label=\"Close\"></button>\n    </p-footer>\n\n  </p-dialog>\n</ng-template>\n<!-- Overlay to compare script -->\n<p-overlayPanel [showTransitionOptions]=\"'0ms'\" [hideTransitionOptions]=\"'0ms'\" #compareScript [dismissable]=\"true\">\n  <ng-template pTemplate>\n    <div class=\"p-10\">\n      <span class=\"p-10\">Select script to compare with <b>project/subproject/script</b></span> \n      <div class=\"p-grid p-justify-start\">\n        <p-dropdown class=\"p-10\" [options]=\"projects\" filter=\"true\" [(ngModel)]=\"selectedProject1\" (onChange)=\"onFieldChangeProj1()\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        <span class=\"pt-10 font-25\">/</span>\n        <p-dropdown class=\"p-10\" [options]=\"subProjects\" filter=\"true\" [(ngModel)]=\"selectedSubProject1\" (onChange)=\"onFieldChangeSubproj1()\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        <span class=\"pt-10 font-25\">/</span>\n        <p-dropdown class=\"p-10\" [options]=\"scriptsList1\" filter=\"true\" [(ngModel)]=\"selectedScript1\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n      </div>\n      <div class=\"p-grid p-justify-start\">\n        <p-dropdown class=\"p-10\" [options]=\"projects2\" filter=\"true\" [(ngModel)]=\"selectedProject2\" (onChange)=\"onFieldChangeProj2()\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        <span class=\"pt-10 font-25\">/</span>\n        <p-dropdown class=\"p-10\" [options]=\"subProjects2\" filter=\"true\" [(ngModel)]=\"selectedSubProject2\" (onChange)=\"onFieldChangeSubproj2()\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n        <span class=\"pt-10 font-25\">/</span>\n        <p-dropdown class=\"p-10\" [options]=\"scriptsList2\" filter=\"true\" [(ngModel)]=\"selectedScript2\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n      </div>\n      <div class=\"p-grid p-justify-end\">\n        <button pButton type=\"button\" label=\"Cancel\" class=\"ui-button-rounded ui-button-secondary\" (click)=\"compareScript.hide()\"></button>\n        <button pButton type=\"button\" label=\"Compare\" class=\"ml-5 ui-button-rounded ui-button-info\" (click)=\"showCompScrDialog()\"></button>\n      </div>\n      <div class=\"p-grid p-justify-start\" [style]=\"{margin: '11px'}\" *ngIf=\"smtreeService.showScriptCompareNotes\">\n        Note: To compare script of all other projects, click 'View All Scripts' option at the bottom of the left pane.\n      </div>\n    </div>\n\n  </ng-template>\n</p-overlayPanel>\n\n<p-confirmDialog class=\"confirmdialog\" header=\"Confirmation\" [style]=\"{width: '30vw'}\" acceptButtonStyleClass=\"ui-button-rounded px-10\" [closable]=false\nrejectButtonStyleClass=\"ui-button-rounded ui-button-secondary px-10 mx-6\" key=\"scriptTopMenu\" acceptIcon=\"null\"  rejectIcon=\"null\" acceptLabel=\"Ok\" rejectLabel=\"Cancel\"   [baseZIndex]=\"12000\"></p-confirmDialog>\n<app-help #help></app-help>";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.scss":
  /*!*******************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.scss ***!
    \*******************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_checkpoint_checkpointsList_checkpointsListComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.ts":
  /*!*****************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.ts ***!
    \*****************************************************************************************************/

  /*! exports provided: CheckpointsListComponent */

  /***/
  function _src_app_pages_home_scriptManager_checkpoint_checkpointsList_checkpointsListComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CheckpointsListComponent", function () {
      return CheckpointsListComponent;
    });
    /* 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 primeng__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../constants/script-constants */
    "./src/app/pages/home/script-manager/constants/script-constants.ts");
    /* harmony import */


    var _parameter_components_add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../parameter/components/add-parameter/parameter-data.service */
    "./src/app/pages/home/script-manager/parameter/components/add-parameter/parameter-data.service.ts");
    /* harmony import */


    var _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../../script-edit-home/script-topmenu/script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(
    /*! ../../services/script-utils.service */
    "./src/app/pages/home/script-manager/services/script-utils.service.ts");
    /* harmony import */


    var _services_script_validations_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../../services/script-validations.service */
    "./src/app/pages/home/script-manager/services/script-validations.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");

    var CheckpointsListComponent = /*#__PURE__*/function () {
      function CheckpointsListComponent(scriptTabService, parameterService, router, scriptRestService, utilService, confirmationService, validationService, activatedRoute) {
        _classCallCheck(this, CheckpointsListComponent);

        this.scriptTabService = scriptTabService;
        this.parameterService = parameterService;
        this.router = router;
        this.scriptRestService = scriptRestService;
        this.utilService = utilService;
        this.confirmationService = confirmationService;
        this.validationService = validationService;
        this.activatedRoute = activatedRoute;
        this.headerRelativePath = "script/assertion-list.json";
        this.assertions = [];
        this.filterProp = false;
        this.subscriptionArr = [];
        this.selectedAssertions = [];
        this.permissionList = {
          read: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"],
          readWrite: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ_WRITE"],
          admin: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ADMIN"]
        };
        this.viewModeMsg = "";
        this.cols = [{
          field: 'isTextMatch',
          header: 'Assertion criteria'
        }, {
          field: 'match',
          header: 'Check criteria value'
        }, {
          field: 'suffixValue',
          header: 'Suffix text'
        }, {
          field: 'pageName',
          header: 'Page(s)'
        }, {
          field: 'failOn',
          header: 'Fail on'
        }, {
          field: 'iDValue',
          header: 'Message on fail'
        }, {
          field: 'saveCountVarName',
          header: 'Checkpoint Variable count'
        }, {
          field: 'actionOnFail',
          header: 'Fail Action'
        }];
      }

      return _createClass(CheckpointsListComponent, [{
        key: "open",
        value: function open() {
          this.filterProp = false;
          this.isVisible = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this = this;

          this.sub = this.scriptTabService.assertions.subscribe(function (data) {
            _this.setTableData(data);
          });
          this.subscriptionArr.push(this.scriptTabService.events.onChange.subscribe(function (data) {
            _this.permissionType = _this.scriptTabService.tabDetailFromIndex[data.index].treeNode.acl;
            _this.viewModeMsg = _this.scriptTabService.tabsArr[data.index].fileObj.viewModeMsg;

            var fp = _this.scriptTabService.tabDetailFromIndex[data.index].filePath.replace(/\/$/, '');

            fp = fp.replace(/\/runlogic$/, ''); // if found runlogic path

            var scriptlockInfo = _this.scriptTabService.lockScriptObj[fp];

            if (scriptlockInfo != undefined) {
              var lockType = scriptlockInfo['statusCode'];

              if (_this.permissionType >= _this.permissionList.readWrite) {
                if (lockType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT_READ_LOCK"]) {
                  // 403 = locked by another user
                  _this.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"];
                }
              }
            } else if (_this.scriptTabService.tabDetailFromIndex[data.index].treeNode.mode > _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["EDIT_MODE"]) {
              //if open in view mode
              _this.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"];
            }
          }));
        }
      }, {
        key: "addAssertion",
        value: function addAssertion() {
          this.router.navigate(['addCheckpoint'], {
            relativeTo: this.activatedRoute
          });
          this.scriptTabService.openSideBar = true;
          this.parameterService.sideBartitle = 'Add Assertion';
          this.isVisible = false;
        }
      }, {
        key: "onEditRow",
        value: function onEditRow(row) {
          this.parameterService.assertionData = row;
          this.parameterService.mode = "Update";
          this.router.navigate(['addCheckpoint'], {
            relativeTo: this.activatedRoute
          });
          this.scriptTabService.openSideBar = true;
          this.parameterService.sideBartitle = 'Edit Assertion';
          this.isVisible = false;
        }
      }, {
        key: "deleteAssertions",
        value: function deleteAssertions() {
          this.onDeleteRow(this.selectedAssertions);
        }
      }, {
        key: "onDeleteRow",
        value: function onDeleteRow(row) {
          var _this2 = this;

          var lineArr = [];

          if (row.length >= 1) {
            row.forEach(function (element) {
              lineArr.push(element.line);
            });
          } else {
            lineArr.push(row.line);
          }

          this.confirmationService.confirm({
            message: "Do you want to delete the selected assertion(s) ?",
            header: 'Delete Confirmation',
            key: "scriptMonacoEditor",
            accept: function accept() {
              _this2.deleteRow(lineArr);
            },
            reject: function reject() {}
          });
        }
      }, {
        key: "deleteRow",
        value: function deleteRow(line) {
          var _this3 = this;

          var filePath = this.scriptTabService.activeTabDataInfo['treePath'].split('/');
          var payload = {
            project: filePath[0],
            subProject: filePath[1],
            scriptName: filePath[2],
            lineNo: line
          };
          this.scriptRestService.parameter(payload, 'delCHK').subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["ScriptRestLoading"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_10__["ScriptRestLoaded"]) {
              if (state.data['status']) _this3.validationService.showMessage("success", "", "Assertion(s) deleted successsfully.");

              _this3.scriptTabService.assertionsList.next();

              _this3.selectedAssertions = [];

              _this3.parameterService.refreshTabOnAddTextToRegSpec();
            } else {
              _this3.validationService.showMessage("error", "", "Error in deleting checkpoint.");
            }
          }, function (state) {
            console.error("Error in deleting...", state.error);
          });
        }
      }, {
        key: "setTableData",
        value: function setTableData(assertionslist) {
          var _this4 = this;

          this.assertions = [];
          assertionslist.forEach(function (element) {
            var flag = false;
            var compareFile = false;
            var cookie = false;
            var checksum = false;

            if (element['matchTextValue']) {
              flag = true;
            }

            if (element['isCompareFile']) compareFile = true;
            if (element['isCompareChecksumHTTPCookie']) cookie = true;
            if (element['isCompareChecksum']) checksum = true;
            var obj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
              isTextMatch: element['isTextMatch'] ? "Specific Text" : element['isCompareFile'] ? "Compare File" : element['isCompareChecksumHTTPCookie'] ? "Cookie Name" : element['isCompareChecksum'] ? "Checksum" : "Match Prefix&Suffix"
            }, compareFile && !flag && {
              match: element['compareFileValue']
            }), flag && {
              match: element['matchTextValue']
            }), !flag && !compareFile && {
              match: element['prefixValue']
            }), !flag && !compareFile && cookie && {
              match: element['compareChecksumCookieValue']
            }), !flag && !compareFile && checksum && {
              match: element['compareChecksumValue']
            }), {
              suffixValue: element['suffixValue'],
              pageName: element['pageName'] == '*' ? 'All Pages' : element['pageName'],
              failOn: element['failOn'] == 'FOUND' && element['chkFailOn'] ? 'Found' : element['failOn'] == 'NOTFOUND' && element['chkFailOn'] ? 'Not found' : '',
              iDValue: element['iDValue'],
              saveCountVarName: element['saveCountVarName'],
              actionOnFail: element['actionOnFail'] == 0 && element['chkFailOn'] ? 'Stop' : element['actionOnFail'] == 1 && element['chkFailOn'] ? 'Continue' : '',
              isCountVarNameEnabled: element['isCountVarNameEnabled'],
              chkFailOn: element['chkFailOn'],
              search_Type_String: element['search_Type_String'],
              line: element['line'],
              searchINFlag: element['searchINFlag'],
              searchIN_index: element['searchIN_index'],
              isRegularExp: element['isRegularExp'],
              isIgnoreCase: element['isIgnoreCase'],
              isRegularExpForSuffix: element['isRegularExpForSuffix'],
              isIgnoreCaseForSuffix: element['isIgnoreCaseForSuffix'],
              chkTarget: element['chkTarget'],
              target: element['target'],
              pattern: element['pattern']
            });

            _this4.assertions.push(obj);
          });
        }
      }, {
        key: "customSort",
        value: function customSort(event) {
          event.data.sort(function (data1, data2) {
            var value1 = data1[event.field];
            var value2 = data2[event.field];
            var result = null;
            if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
            return event.order * result;
          });
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d, _e, _f;

          var me = this;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == "edit") {
            me.onEditRow(event.cavEventExt.row);
          }

          if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == "Add") {
            if (this.permissionType >= this.permissionList.readWrite) {
              me.addAssertion();
            } else {
              this.validationService.showMessage("error", "", this.viewModeMsg.replace(/Edit/, 'Addition')); // Msg: Addition is not allowed in auto generated script.
            }
          }

          if (((_f = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.actionConfig) === null || _f === void 0 ? void 0 : _f.action) == "delete") {
            if (this.permissionType >= this.permissionList.readWrite) {
              me.onDeleteRow(event.cavEventExt.row);
            } else {
              this.validationService.showMessage("error", "", this.parameterService.reviewMessageMode(me.viewModeMsg));
            }
          }
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          if (this.sub) {
            this.sub.unsubscribe();
          }

          this.subscriptionArr.forEach(function (subscription) {
            subscription.unsubscribe();
          });
        }
      }, {
        key: "showHideGlobalFilterOption",
        value: function showHideGlobalFilterOption() {
          try {
            this.filterProp = !this.filterProp;
            this.checkpointListTable.table.reset();
          } catch (e) {
            console.error("Error in showHideGlobalFilter", e);
          }
        }
      }]);
    }();

    CheckpointsListComponent.ctorParameters = function () {
      return [{
        type: _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_6__["ScriptTabDataService"]
      }, {
        type: _parameter_components_add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_5__["ParameterDataService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_7__["ScriptRestService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_8__["ScriptUtilService"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_3__["ConfirmationService"]
      }, {
        type: _services_script_validations_service__WEBPACK_IMPORTED_MODULE_9__["ScriptValidationsService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('checkpointListTable')], CheckpointsListComponent.prototype, "checkpointListTable", void 0);
    CheckpointsListComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-checkpoints-list',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./checkpoints-list.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./checkpoints-list.component.scss */
      "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.scss"))["default"]]
    })], CheckpointsListComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.module.ts":
  /*!**************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.module.ts ***!
    \**************************************************************************************************/

  /*! exports provided: CheckpointsListModule */

  /***/
  function _src_app_pages_home_scriptManager_checkpoint_checkpointsList_checkpointsListModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CheckpointsListModule", function () {
      return CheckpointsListModule;
    });
    /* 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 _checkpoints_list_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./checkpoints-list.component */
    "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");

    var CheckpointsListModule = /*#__PURE__*/_createClass(function CheckpointsListModule() {
      _classCallCheck(this, CheckpointsListModule);
    });

    CheckpointsListModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_checkpoints_list_component__WEBPACK_IMPORTED_MODULE_3__["CheckpointsListComponent"]],
      exports: [_checkpoints_list_component__WEBPACK_IMPORTED_MODULE_3__["CheckpointsListComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_21__["CavTableModule"]]
    })], CheckpointsListModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/external-libraries/external-libraries.component.scss":
  /*!************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/external-libraries/external-libraries.component.scss ***!
    \************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_externalLibraries_externalLibrariesComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "external-libraries .p-field-checkbox {\n  margin-bottom: 0.4rem;\n  display: flex;\n  align-items: center;\n}\nexternal-libraries p-checkbox {\n  display: inline-flex;\n  vertical-align: bottom;\n  align-items: center;\n}\nexternal-libraries .p-field-checkbox > label {\n  margin-left: 0.5rem;\n  line-height: 1;\n}\nexternal-libraries .minheight {\n  height: 265px;\n}\nexternal-libraries tr.bodyTr {\n  height: 38px;\n}\nexternal-libraries th.headerTh {\n  width: 55px;\n}\nexternal-libraries .type-search {\n  display: flex;\n  align-items: center;\n  width: 45%;\n  position: relative;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/external-libraries/external-libraries.component.ts":
  /*!**********************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/external-libraries/external-libraries.component.ts ***!
    \**********************************************************************************************/

  /*! exports provided: ExternalLibrariesComponent */

  /***/
  function _src_app_pages_home_scriptManager_externalLibraries_externalLibrariesComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ExternalLibrariesComponent", function () {
      return ExternalLibrariesComponent;
    });
    /* 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_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! primeng/api */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.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 _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(
    /*! ../services/script-utils.service */
    "./src/app/pages/home/script-manager/services/script-utils.service.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_script_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../script-edit-home/script-topmenu/script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");
    /* harmony import */


    var _services_script_validations_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../services/script-validations.service */
    "./src/app/pages/home/script-manager/services/script-validations.service.ts");
    /* harmony import */


    var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");

    var ExternalLibrariesComponent = /*#__PURE__*/function () {
      function ExternalLibrariesComponent(workProfile, confirmationService, scriptMsgService, scriptUtilService, scriptRestService, sessionService, _http, scriptTabService, scriptValidationService) {
        _classCallCheck(this, ExternalLibrariesComponent);

        this.workProfile = workProfile;
        this.confirmationService = confirmationService;
        this.scriptMsgService = scriptMsgService;
        this.scriptUtilService = scriptUtilService;
        this.scriptRestService = scriptRestService;
        this.sessionService = sessionService;
        this._http = _http;
        this.scriptTabService = scriptTabService;
        this.scriptValidationService = scriptValidationService;
        this.selectedExtLibFile = [];
        this.getFilesData = [];
        this.getExtLibData = [];
        this.checkIfLibAlreadyExists = false;
        this.showUplodLoader = false;
        this.checkUnCheckAll = false;
        this.checkAll = false;
        this.headerRelativePath = "script/external-libraries.json";
        this.username = this.sessionService.session.cctx.u == 'cavisson' ? "admin" : this.sessionService.session.cctx.u;
        this.profile = this.workProfile.profile;
      }

      return _createClass(ExternalLibrariesComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {}
      }, {
        key: "open",
        value: function open() {
          var _this5 = this;

          this.headerTitle = this.scriptTabService.activeTabDataInfo['treePath'];
          this.filePath = this.scriptTabService.activeTabDataInfo['filePath'];
          var checkIfRunLogic = false;

          if (this.headerTitle.match(/runlogic/)) {
            checkIfRunLogic = true;
            this.headerTitle = this.headerTitle.replace('runlogic/', '');
            this.filePath = this.filePath.replace('runlogic/', '');
          } //this.headerTitle = this.scriptTabService.activeTabDataInfo['treePath'];


          if (checkIfRunLogic) {
            if (this.scriptTabService.activeTabDataInfo['treeNode'] != undefined) {
              this.scriptType = this.scriptTabService.activeTabDataInfo['treeNode'].parent.parent.info.SCRIPT_TYPE;
            }
          } else {
            if (this.scriptTabService.activeTabDataInfo['treeNode'] != undefined) {
              if (this.scriptTabService.activeTabDataInfo['treeNode'].parent.info != null) {
                this.scriptType = this.scriptTabService.activeTabDataInfo['treeNode'].parent.info.SCRIPT_TYPE;
              }
            }
          }

          if (this.scriptType == undefined) {
            this.scriptMsgService.showError('Please select flow file to perform this operation.', 'Error', 'extLib');
            return;
          }

          if (this.scriptType == 'C') {
            this.validFileType = '.h';
          } else if (this.scriptType == 'JAVA') {
            this.validFileType = '.jar';
          } else if (this.scriptType == "JS") {
            this.validFileType = '.js';
          }

          this.checkAll = false;
          this.getFilesData = [];
          this.getScriptsLibDetails(); // get script library details from proj/subproj/scripts/ScriptName/.script.libs
          // get all library lists from /thirdparty/.script.libs

          setTimeout(function () {
            _this5.getFileData();
          }, 1000);
        }
      }, {
        key: "getScriptsLibDetails",
        value: function getScriptsLibDetails() {
          var _this6 = this;

          this.selectedExtLibFile = [];
          var filePath = "workspace/".concat(this.username, "/").concat(this.profile, "/cavisson/").concat(this.filePath, ".script.libs");
          this.scriptRestService.getSuggestions(filePath).subscribe(function (res) {
            var data = res['data'];

            if (data != null) {
              var libArr = data.split(';');

              var _iterator = _createForOfIteratorHelper(libArr),
                  _step;

              try {
                for (_iterator.s(); !(_step = _iterator.n()).done;) {
                  var libName = _step.value;

                  if (libName != '') {
                    _this6.selectedExtLibFile.push({
                      name: libName
                    });
                  }
                }
              } catch (err) {
                _iterator.e(err);
              } finally {
                _iterator.f();
              }
            }
          });
        } //to set data in UI, read file from path=/home/cavisson/thirdparty/.script_lib

      }, {
        key: "getFileData",
        value: function getFileData() {
          var _this7 = this;

          var path = "/home/cavisson/thirdparty/.script_lib";
          var type = 'scripts';
          this.scriptRestService.getFiles({
            path: path,
            type: type
          }).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptFilesLoadingState"]) {
              _this7.onFileDataLoading(state);

              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptFilesLoadedState"]) {
              _this7.onFilesDataLoaded(state);

              return;
            }
          }, function (state) {
            _this7.onFilesDataLoadingError(state);
          });
        }
      }, {
        key: "onFilesDataLoadingError",
        value: function onFilesDataLoadingError(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onFilesDataLoaded",
        value: function onFilesDataLoaded(state) {
          var _this8 = this;

          var statusCode = state.data.status;

          if (statusCode['code'] == 0 || statusCode['code'] == 101) {
            var data = state.data.data;
            this.getFilesData = [];
            var i = 0;

            if (data.length > 0) {
              var _iterator2 = _createForOfIteratorHelper(data),
                  _step2;

              try {
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                  var filename = _step2.value;
                  var typeOfFileName = filename.name;

                  if (this.scriptType == 'C' && typeOfFileName.match(/.h$/)) {
                    this.getFilesData.push(typeOfFileName);
                  } else if (this.scriptType == 'JAVA' && typeOfFileName.match(/.jar$/)) {
                    this.getFilesData.push(typeOfFileName);
                  } else if (this.scriptType == 'JS' && typeOfFileName.match(/.js$/)) {
                    this.getFilesData.push(typeOfFileName);
                  }

                  i++;
                }
              } catch (err) {
                _iterator2.e(err);
              } finally {
                _iterator2.f();
              }

              this.totalLibExists = this.getFilesData.length;

              if (this.selectedExtLibFile.length == this.totalLibExists && this.selectedExtLibFile.length > 0) {
                this.checkAll = true;
              }

              this.sortFilesData(this.getFilesData); // ------- Sort and selected on top

              if (this.selectedExtLibFile.length > 0) {
                var checkedLib = [];
                var arr = this.selectedExtLibFile;

                for (var _i = 0; _i < arr.length; _i++) {
                  if (this.getFilesData.includes(arr[_i])) {
                    // check if file from selectedExtLibFile exists in getFileData
                    checkedLib.push(arr[_i]);
                    this.getFilesData.push(arr[_i]);
                  }
                }

                if (this.getFilesData.length > 0 && checkedLib.length > 0) {
                  this.sortFilesData(checkedLib);
                  var unchecked = this.getFilesData.filter(function (item) {
                    return !_this8.selectedExtLibFile.includes(item);
                  });
                  this.getFilesData = [].concat(checkedLib, _toConsumableArray(unchecked));
                }
              } // ------- Sort and selected on top


              this.getExtLibData = [];

              for (var j = 0; j < this.getFilesData.length; j++) {
                this.getExtLibData.push({
                  name: this.getFilesData[j]
                });
              }

              this.isVisible = true;
            } else {
              this.getExtLibData = [];
              this.isVisible = true; //this.scriptMsgService.showError('External library not found, Please upload.', 'Error', 'extLib');
            }
          } else {
            // external lib is not found on /home/cavisson/thirdparty/.script_lib
            this.scriptMsgService.showError('.script_lib directory not found.', 'Error', 'extLib');
          }
        }
      }, {
        key: "sortFilesData",
        value: function sortFilesData(objArray) {
          objArray.sort(function (a, b) {
            var textA = a.toUpperCase();
            var textB = b.toUpperCase();
            return textA < textB ? -1 : textA > textB ? 1 : 0;
          });
        }
      }, {
        key: "onFileDataLoading",
        value: function onFileDataLoading(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d, _e;

          var me = this;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == "rowCheckboxEnable" || ((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == "rowCheckboxDisable") {
            this.selectedExtLibFile = (_e = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _e === void 0 ? void 0 : _e.rowData;
          }
        }
      }, {
        key: "addExternalLib",
        value: function addExternalLib(type) {
          var _this9 = this;

          var filePath = this.filePath;
          var wp = {
            w: this.username,
            p: this.profile
          };
          var data = [];
          this.selectedExtLibFile.forEach(function (element) {
            data.push(element.name);
          });
          this.scriptRestService.saveExtLib(filePath, data, wp).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {
              _this9.onAddLibLoading(state);

              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
              _this9.onAddLibLoaded(state);

              return;
            }
          }, function (state) {
            _this9.onAddLibError(state);
          });
        }
      }, {
        key: "onAddLibError",
        value: function onAddLibError(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onAddLibLoaded",
        value: function onAddLibLoaded(state) {
          if (state.data.status) {
            this.scriptMsgService.showSuccess('External library updated successfully.', '', 'extLib');
            this.isVisible = false;
          } else {
            this.scriptMsgService.showSuccess(state.data.msg, '', 'extLib');
            this.isVisible = false;
          }
        }
      }, {
        key: "onAddLibLoading",
        value: function onAddLibLoading(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onBasicUploadAuto",
        value: function onBasicUploadAuto(data, form, type) {
          var _this0 = this;

          this.showUplodLoader = true;
          var f_name = data.files[0]['name'].substr(data.files[0]['name'].lastIndexOf('.') + 1);

          if (data.files[0].length == 0 && type == 'C') {
            this.showUplodLoader = false;
            this.scriptMsgService.showError('Invalid file type, only .h files are allowed.', 'Error', 'extLib');
            form.clear();
          } else if (data.files[0].length == 0 && type == 'JAVA') {
            this.showUplodLoader = false;
            this.scriptMsgService.showError('Invalid file type, only .jar files are allowed.', 'Error', 'extLib');
            form.clear();
          } else if (f_name != 'h' && type == 'C') {
            this.showUplodLoader = false;
            this.scriptMsgService.showError('Invalid file type, only .h files are allowed.', 'Error', 'extLib');
            form.clear();
          } else if (f_name != 'jar' && type == 'JAVA') {
            this.showUplodLoader = false;
            this.scriptMsgService.showError('Invalid file type, only .jar files are allowed.', 'Error', 'extLib');
            form.clear();
          } else {
            //upload file
            var uploadedFilename = "";
            var formData = new FormData();
            var file = data.files[0];
            formData.append('file', file, file.name);
            uploadedFilename = file.name;
            var uppath = "thirdparty/.script_lib/";
            this.scriptRestService.uploadExternalLib(uppath, formData).subscribe(function (state) {
              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {
                _this0.onUploadLoading(state);

                return;
              }

              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
                _this0.onUploadFilesLoaded(state, form);

                return;
              }
            }, function (state) {
              _this0.onUploadLoadingError(state);
            });
          }
        }
      }, {
        key: "onUploadLoadingError",
        value: function onUploadLoadingError(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "onUploadFilesLoaded",
        value: function onUploadFilesLoaded(state, form) {
          if (state.data.success == true) {
            this.getFileData();
            this.scriptMsgService.showSuccess('Library uploaded successfully .', '', 'extLib');
            form.clear();
            this.showUplodLoader = false;
          } else {
            this.scriptMsgService.showError('Error while uploading library, Try Again.', 'Error', 'extLib');
            form.clear();
            this.showUplodLoader = false;
          }
        }
      }, {
        key: "onUploadLoading",
        value: function onUploadLoading(state) {//throw new Error('Method not implemented.');
        }
      }, {
        key: "checkUncheckAll",
        value: function checkUncheckAll(ev) {
          var _this1 = this;

          this.selectedExtLibFile = [];

          if (ev.checked) {
            this.getExtLibData.forEach(function (libname) {
              _this1.selectedExtLibFile.push(libname.name);
            });
          }
        }
      }, {
        key: "checkAllCalc",
        value: function checkAllCalc(ev) {
          if (this.selectedExtLibFile.length != this.totalLibExists) {
            this.checkAll = false;
          } else if (this.selectedExtLibFile.length == this.totalLibExists) {
            this.checkAll = true;
          }
        }
      }]);
    }();

    ExternalLibrariesComponent.ctorParameters = function () {
      return [{
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_4__["WorkProfileActiveService"]
      }, {
        type: primeng_api__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__["ScriptMsgService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScriptUtilService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__["ScriptRestService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]
      }, {
        type: _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_9__["ScriptTabDataService"]
      }, {
        type: _services_script_validations_service__WEBPACK_IMPORTED_MODULE_10__["ScriptValidationsService"]
      }];
    };

    ExternalLibrariesComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'external-libraries',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./external-libraries.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/external-libraries/external-libraries.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      providers: [primeng_api__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./external-libraries.component.scss */
      "./src/app/pages/home/script-manager/external-libraries/external-libraries.component.scss"))["default"]]
    })], ExternalLibrariesComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/external-libraries/external-libraries.module.ts":
  /*!*******************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/external-libraries/external-libraries.module.ts ***!
    \*******************************************************************************************/

  /*! exports provided: ExternalLibrariesModule */

  /***/
  function _src_app_pages_home_scriptManager_externalLibraries_externalLibrariesModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ExternalLibrariesModule", function () {
      return ExternalLibrariesModule;
    });
    /* 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 _external_libraries_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./external-libraries.component */
    "./src/app/pages/home/script-manager/external-libraries/external-libraries.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");
    /* harmony import */


    var primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! primeng/inputtextarea */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js");
    /* harmony import */


    var primeng_checkbox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! primeng/checkbox */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");

    var ExternalLibrariesModule = /*#__PURE__*/_createClass(function ExternalLibrariesModule() {
      _classCallCheck(this, ExternalLibrariesModule);
    });

    ExternalLibrariesModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_external_libraries_component__WEBPACK_IMPORTED_MODULE_3__["ExternalLibrariesComponent"]],
      exports: [_external_libraries_component__WEBPACK_IMPORTED_MODULE_3__["ExternalLibrariesComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng_checkbox__WEBPACK_IMPORTED_MODULE_22__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"], primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_21__["InputTextareaModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_23__["CavTableModule"]]
    })], ExternalLibrariesModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/page-list/script-page-list.component.scss":
  /*!*************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/page-list/script-page-list.component.scss ***!
    \*************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_pageList_scriptPageListComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "script-page-list .custom-style {\n  color: var(--secondary-button-text-color) !important;\n  border: 0px !important;\n  background: inherit !important;\n}\nscript-page-list tr.bodyTr {\n  height: 38px;\n}\nscript-page-list th.headerTh {\n  width: 49px;\n}\nscript-page-list .type-search {\n  display: flex;\n  align-items: center;\n  width: 45%;\n  position: relative;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/page-list/script-page-list.component.ts":
  /*!***********************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/page-list/script-page-list.component.ts ***!
    \***********************************************************************************/

  /*! exports provided: ScriptPageListComponent */

  /***/
  function _src_app_pages_home_scriptManager_pageList_scriptPageListComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ScriptPageListComponent", function () {
      return ScriptPageListComponent;
    });
    /* 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_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! primeng/api */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.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 _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(
    /*! ../services/script-utils.service */
    "./src/app/pages/home/script-manager/services/script-utils.service.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_script_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../script-edit-home/script-topmenu/script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");
    /* harmony import */


    var _services_script_validations_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../services/script-validations.service */
    "./src/app/pages/home/script-manager/services/script-validations.service.ts");
    /* harmony import */


    var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");

    var ScriptPageListComponent = /*#__PURE__*/function () {
      function ScriptPageListComponent(workProfile, confirmationService, scriptMsgService, scriptUtilService, scriptRestService, sessionService, _http, scriptTabService, scriptValidationService) {
        _classCallCheck(this, ScriptPageListComponent);

        this.workProfile = workProfile;
        this.confirmationService = confirmationService;
        this.scriptMsgService = scriptMsgService;
        this.scriptUtilService = scriptUtilService;
        this.scriptRestService = scriptRestService;
        this.sessionService = sessionService;
        this._http = _http;
        this.scriptTabService = scriptTabService;
        this.scriptValidationService = scriptValidationService;
        this.fileDirectory = 'File';
        this.fileExt = '';
        this.pageslists = [];
        this.showRenameButton = false;
        this.key = "pageList";
        this.clonedProducts = {};
        this.username = this.sessionService.session.cctx.u == 'cavisson' ? "admin" : this.sessionService.session.cctx.u;
        this.profile = this.workProfile.profile;
      }

      return _createClass(ScriptPageListComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {}
      }, {
        key: "open",
        value: function open() {
          this.pageslists = [];
          this.showRenameButton = false;
          this.headerTitle = this.scriptTabService.activeTabDataInfo['treePath'];
          var flowFileName = this.scriptTabService.activeTabDataInfo['fileName'].split('.');
          var checkFileType = 0;
          if (this.scriptTabService.activeTabDataInfo['treeNode'] != undefined) checkFileType = this.scriptTabService.activeTabDataInfo['treeNode'].nodeType;
          this.loading = true;

          if (checkFileType == 4) {
            this.getPageList(flowFileName[0]);
          } else {
            this.scriptMsgService.showError('Please select flow file to perform this operation.', 'Error', this.key);
          }
        }
      }, {
        key: "getPageList",
        value: function getPageList(pagesFlag) {
          var _this10 = this;

          this.pageTypeFlowOrAll = pagesFlag;
          this.pageslists = [];
          var wp = {
            w: this.username,
            p: this.profile
          };
          var opCode = 7;
          var reqData = '-s ' + this.scriptTabService.activeTabDataInfo['filePath'] + ' -w ' + this.username + "/" + this.profile;

          if (pagesFlag != 'All') {
            reqData = '-s ' + this.scriptTabService.activeTabDataInfo['filePath'] + ' -f ' + pagesFlag + ' -w ' + this.username + "/" + this.profile;
          }

          this.scriptRestService.runCmdCommands(reqData, opCode, wp).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
              _this10.onScriptOperation(state);

              return;
            }
          });
          document.getElementById("closeSave").click();
        }
      }, {
        key: "onScriptOperation",
        value: function onScriptOperation(state) {
          var _this11 = this;

          var pageList = state.data.output;

          if (pageList.length > 0) {
            var i = 1;
            pageList.forEach(function (pageName) {
              _this11.pageslists.push({
                id: i++,
                header: pageName,
                oldPageName: pageName,
                editable: true
              });
            });
            this.isVisible = true;
            this.loading = false;
          } else {
            this.scriptMsgService.showError('Page(s) not found.', 'Error', this.key);
            return;
          }
        }
      }, {
        key: "renamePageProcess",
        value: function renamePageProcess() {
          var pageNameChanges = '';

          for (var i = 0; i < this.pageslists.length; i++) {
            if (this.pageslists[i].header == '') {
              this.scriptMsgService.showError('Empty page name not allowed.', 'Error', this.key);
              return;
            }

            if (this.pageslists[i].oldPageName != this.pageslists[i].header && this.pageslists[i].header != '') {
              if (!this.scriptValidationService.validateName(this.pageslists[i].header, true, 'page')) {
                return;
              } else {
                if (!this.checkPageNameAlreadyExists(this.pageslists[i].header)) {
                  pageNameChanges += ' -p ' + this.pageslists[i].oldPageName + ' -n ' + this.pageslists[i].header;
                } else {
                  var msg = this.pageslists[i].header + ' page name already exists';
                  this.scriptMsgService.showError(msg, 'Error', this.key);
                  return;
                }
              }
            }
          }

          var cmdToChangePageName = '-s ' + this.scriptTabService.activeTabDataInfo['filePath'] + ' -w ' + this.username + "/" + this.profile + pageNameChanges;

          if (pageNameChanges == '') {
            this.scriptMsgService.showError('No new page name found.', 'Error', this.key);
            return;
          } else {
            this.renamePagesRest(cmdToChangePageName);
          }

          document.getElementById("closeSave").click();
        }
      }, {
        key: "checkPageNameAlreadyExists",
        value: function checkPageNameAlreadyExists(pagename) {
          var existsFlag = false;
          this.pageslists.forEach(function (pname) {
            if (pagename == pname.oldPageName) {
              existsFlag = true;
            }
          });
          return existsFlag;
        }
      }, {
        key: "renamePagesRest",
        value: function renamePagesRest(reqData) {
          var _this12 = this;

          var outputArray = [];
          var wp = {
            w: this.username,
            p: this.profile
          };
          var opCode = 6;
          this.scriptRestService.runCmdCommands(reqData, opCode, wp).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
              _this12.onScriptOperationChangePageName(state);

              return;
            }
          });
        }
      }, {
        key: "onScriptOperationChangePageName",
        value: function onScriptOperationChangePageName(state) {
          var respData = state.data;

          if (respData.status) {
            this.isVisible = false;
            this.scriptTabService.paramListUpdate.next();
            this.scriptTabService.assertionsList.next();
            this.scriptTabService.events.refreshTab.next(this.scriptTabService.activeTabDataInfo['filePath']);
            this.scriptMsgService.showSuccess('Page(s) name changed successfully.', '', this.key);
          } else {
            this.scriptMsgService.showError(this.cleanString(respData.output.join(", ")), 'Error', this.key);
          }
        }
      }, {
        key: "cleanString",
        value: function cleanString(inputString) {
          return inputString.replace(/['\\]/g, "");
        }
      }, {
        key: "onRowEditInit",
        value: function onRowEditInit(pagelist) {
          this.clonedProducts[pagelist.id] = Object.assign({}, pagelist);
          this.showRenameButton = true;
          document.getElementById("closeSave").click();
        }
      }, {
        key: "onRowEditSave",
        value: function onRowEditSave(pagelist) {
          if (pagelist.header == '') {
            this.scriptMsgService.showError('Empty page name not allowed.', 'Error', this.key);
          }
        }
      }, {
        key: "rowMouseHover",
        value: function rowMouseHover(rowid) {
          $("#div_" + rowid).show();
        }
      }, {
        key: "rowMouseOut",
        value: function rowMouseOut(rowid) {
          $("#div_" + rowid).hide();
        }
      }, {
        key: "checkIfEditedPage",
        value: function checkIfEditedPage() {
          var isEdit = false;
          this.pageslists.forEach(function (pname) {
            if (pname.header != pname.oldPageName) {
              isEdit = true;
            }
          });
          return isEdit;
        }
      }, {
        key: "closePageDialog",
        value: function closePageDialog() {
          var _this13 = this;

          if (this.checkIfEditedPage()) {
            this.confirmationService.confirm({
              message: "<b>Are you sure you want to cancel? Any unsaved changes will be lost.",
              key: "scriptpagelist",
              accept: function accept() {
                _this13.isVisible = false;
                document.getElementById("closeSave").click();
              },
              reject: function reject() {
                _this13.isVisible = true;
              }
            });
          } else {
            this.isVisible = false;
            document.getElementById("closeSave").click();
          }
        }
      }]);
    }();

    ScriptPageListComponent.ctorParameters = function () {
      return [{
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_4__["WorkProfileActiveService"]
      }, {
        type: primeng_api__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__["ScriptMsgService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScriptUtilService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__["ScriptRestService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]
      }, {
        type: _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_9__["ScriptTabDataService"]
      }, {
        type: _services_script_validations_service__WEBPACK_IMPORTED_MODULE_10__["ScriptValidationsService"]
      }];
    };

    ScriptPageListComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'script-page-list',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./script-page-list.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/page-list/script-page-list.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      providers: [primeng_api__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]],
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./script-page-list.component.scss */
      "./src/app/pages/home/script-manager/page-list/script-page-list.component.scss"))["default"]]
    })], ScriptPageListComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/page-list/script-page-list.module.ts":
  /*!********************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/page-list/script-page-list.module.ts ***!
    \********************************************************************************/

  /*! exports provided: ScriptPageListModule */

  /***/
  function _src_app_pages_home_scriptManager_pageList_scriptPageListModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ScriptPageListModule", function () {
      return ScriptPageListModule;
    });
    /* 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 _script_page_list_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./script-page-list.component */
    "./src/app/pages/home/script-manager/page-list/script-page-list.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");

    var ScriptPageListModule = /*#__PURE__*/_createClass(function ScriptPageListModule() {
      _classCallCheck(this, ScriptPageListModule);
    });

    ScriptPageListModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_script_page_list_component__WEBPACK_IMPORTED_MODULE_3__["ScriptPageListComponent"]],
      exports: [_script_page_list_component__WEBPACK_IMPORTED_MODULE_3__["ScriptPageListComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"]]
    })], ScriptPageListModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.scss":
  /*!*************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.scss ***!
    \*************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_parameter_components_parameterList_parameterListComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "app-parameter-list .heightDiv {\n  max-height: 160px;\n  overflow: auto;\n  position: relative;\n}\napp-parameter-list .word-break {\n  white-space: break-spaces;\n  word-break: break-all;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.ts":
  /*!***********************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.ts ***!
    \***********************************************************************************************************/

  /*! exports provided: ParameterListComponent */

  /***/
  function _src_app_pages_home_scriptManager_parameter_components_parameterList_parameterListComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ParameterListComponent", function () {
      return ParameterListComponent;
    });
    /* 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 _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../../../script-edit-home/script-topmenu/script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../../services/script-rest.service */
    "./src/app/pages/home/script-manager/services/script-rest.service.ts");
    /* harmony import */


    var _services_script_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../../../services/script-utils.service */
    "./src/app/pages/home/script-manager/services/script-utils.service.ts");
    /* harmony import */


    var _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../../sm-tree/sm-tree.service */
    "./src/app/pages/home/script-manager/sm-tree/sm-tree.service.ts");
    /* harmony import */


    var _add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../add-parameter/parameter-data.service */
    "./src/app/pages/home/script-manager/parameter/components/add-parameter/parameter-data.service.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../../../constants/script-constants */
    "./src/app/pages/home/script-manager/constants/script-constants.ts");
    /* harmony import */


    var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ../../../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");

    var ParameterListComponent = /*#__PURE__*/function () {
      function ParameterListComponent(scriptTabService, scriptRestService, scriptUtilService, smTreeService, confirmationService, parameterDataService, router, scriptMsgService, activatedRoute) {
        _classCallCheck(this, ParameterListComponent);

        this.scriptTabService = scriptTabService;
        this.scriptRestService = scriptRestService;
        this.scriptUtilService = scriptUtilService;
        this.smTreeService = smTreeService;
        this.confirmationService = confirmationService;
        this.parameterDataService = parameterDataService;
        this.router = router;
        this.scriptMsgService = scriptMsgService;
        this.activatedRoute = activatedRoute;
        this.headerRelativePath = "script/parameter-list.json";
        this.filterProp = false;
        this.selectedParameters = [];
        this.subscriptionArr = [];
        this.permissionList = {
          read: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["READ"],
          readWrite: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["READ_WRITE"],
          admin: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["ADMIN"]
        };
        this.errLines = [];
        this.loadingOnEditing = false;
        this.viewModeMsg = "";
        this.obj = {
          "File": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["STATIC_VAR"],
            selectedParameter: "file"
          },
          "Search": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["SEARCH_VAR"],
            selectedParameter: "search"
          },
          "Scratch": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["DECLARE_VAR"],
            selectedParameter: "declare"
          },
          "XML": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["XML_VAR"],
            selectedParameter: "xml"
          },
          "Index File": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["INDEX_FILE_VAR"],
            selectedParameter: "index_file"
          },
          "Date Time": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["DATE_TIME_VAR"],
            selectedParameter: "dateTime"
          },
          "Random String": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["RANDOM_STRING_VAR"],
            selectedParameter: "random_string"
          },
          "Random Number": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["RANDOM_NUMBER_VAR"],
            selectedParameter: "random_number"
          },
          "Unique Number": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["UNIQUE_NUMBER_VAR"],
            selectedParameter: "unique_number"
          },
          "Scratch Array": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["DECLARE_ARRAY_VAR"],
            selectedParameter: "declare_array"
          },
          "Json": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["JSON_VAR"],
            selectedParameter: "json"
          },
          "Unique Range": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["UNIQUE_RANGE_VAR"],
            selectedParameter: "unique_range"
          },
          "Dataset using Query": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["SQL_PARAM"],
            selectedParameter: "sql"
          },
          "AutoGenData": {
            operation: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["STATIC_VAR"],
            selectedParameter: _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["TEST_DATA_GEN"]
          }
        };
        this.cols = [{
          field: 'name',
          header: 'Name'
        }, {
          field: 'type',
          header: 'Type'
        }, {
          field: 'specification',
          header: 'Specification'
        }];
        this.pages = [];
      }

      return _createClass(ParameterListComponent, [{
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.subscriptionArr.forEach(function (subscription) {
            subscription.unsubscribe();
          });
        }
      }, {
        key: "open",
        value: function open() {
          this.filterProp = false;
          this.isVisible = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this14 = this;

          var me = this;
          this.subscriptionArr.push(me.scriptTabService.allParamListFetched.subscribe(function (data) {
            _this14.treePath = _this14.scriptTabService.activeTabDataInfo['treePath'];

            _this14.insertDataIntoTable(data['parameter']); //this.getRegistrationsSpecErr(); // commented for saving the unnecessary getErrors network call is happening on tab switching.


            _this14.errsList = !data['errorsList'] ? "" : data['errorsList'];
            _this14.errLines = !data['errorLinesList'] ? [] : data['errorLinesList'];
          }));
          this.subscriptionArr.push(this.scriptTabService.events.onChange.subscribe(function (data) {
            _this14.permissionType = _this14.scriptTabService.tabDetailFromIndex[data.index].treeNode.acl;
            _this14.viewModeMsg = _this14.scriptTabService.tabsArr[data.index].fileObj.viewModeMsg;

            var fp = _this14.scriptTabService.tabDetailFromIndex[data.index].filePath.replace(/\/$/, '');

            fp = fp.replace(/\/runlogic$/, ''); // if found runlogic path

            var scriptlockInfo = _this14.scriptTabService.lockScriptObj[fp];

            if (scriptlockInfo != undefined) {
              var lockType = scriptlockInfo['statusCode'];

              if (_this14.permissionType >= _this14.permissionList.readWrite) {
                if (lockType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["SCRIPT_READ_LOCK"]) {
                  // 403 = locked by another user
                  _this14.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["READ"];
                }
              }
            } else if (_this14.scriptTabService.tabDetailFromIndex[data.index].treeNode.mode > _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["EDIT_MODE"]) {
              //if open in view mode
              _this14.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_10__["READ"];
            }
          }));
        }
      }, {
        key: "insertDataIntoTable",
        value: function insertDataIntoTable(paramData) {
          var _this15 = this;

          this.pages = [];
          var tmp = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath.split('/');
          var paramListPath = tmp[0] + "/" + tmp[1] + "/" + tmp[3] + "/";

          if (this.scriptTabService.allParamList[paramListPath].errorLinesList.length == 0) {
            paramData.forEach(function (val, index) {
              var dataObj = {
                name: val[1],
                type: val[2],
                specification: val[3]
              };

              _this15.pages.push(dataObj);
            });
          }
        }
      }, {
        key: "customSort",
        value: function customSort(event) {
          event.data.sort(function (data1, data2) {
            var value1 = data1[event.field];
            var value2 = data2[event.field];
            var result = null;
            if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
            return event.order * result;
          });
        }
      }, {
        key: "deleteParameter",
        value: function deleteParameter(row) {
          var _this16 = this;

          var filepath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath;
          var tmp = filepath.split('/');
          var project = tmp[0];
          var subProject = tmp[1];
          var scriptName = tmp[3];
          var paramType = [];
          var paramName = [];

          if (row) {
            paramType.push(row.type);
            paramName.push(row.name);
          } else if (this.selectedParameters.length != 0) {
            this.selectedParameters.forEach(function (element) {
              paramType.push(element.type);
              paramName.push(element.name);
            });
          } else {
            this.scriptUtilService.errorMessage("Please select parameter(s) to delete.");
          }

          var payload = {
            operation: -1,
            isForDescription: true,
            project: project,
            subProject: subProject,
            scriptName: scriptName,
            parameterType: paramType,
            parameterName: paramName
          };
          this.confirmationService.confirm({
            message: this.selectedParameters.length != 0 ? 'Are you sure to delete the selected Parameter(s).' : "Are you sure to delete the parameter <b>".concat(row.name, "</b>."),
            key: "paramList",
            accept: function accept() {
              _this16.scriptRestService.parameter(payload, 'delete').subscribe(function (state) {
                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptRestLoading"]) {
                  return;
                }

                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptRestLoaded"]) {
                  if (state.data.status) {
                    paramName.forEach(function (val) {
                      _this16.pages.forEach(function (ele, index) {
                        var treeParamPath = project + "/" + subProject + "/" + scriptName + "/";

                        _this16.scriptTabService.allParamList[treeParamPath]['parameter'].forEach(function (data, index) {
                          if (data[1] == val) {
                            _this16.scriptTabService.unhighlightParamAfterUpdate.next(_this16.scriptTabService.allParamList[treeParamPath]['parameter'][index][1]);

                            _this16.scriptTabService.allParamList[treeParamPath]['parameter'].splice(index, 1);

                            return;
                          }
                        });

                        if (ele.name === val) _this16.pages.splice(index, 1);

                        _this16.parameterListTable.table.filter('', '', ''); //Removing filtered data does not update the list.

                      });
                    });
                    _this16.selectedParameters = [];

                    _this16.parameterDataService.refreshTabOnAddTextToRegSpec();
                  } else {
                    _this16.scriptMsgService.showError("Error in deleting parameter", 'Error', 'paramList');
                  }
                }
              }, function (state) {
                console.error("Error in deleting...", state.error);
              });
            },
            reject: function reject() {}
          });
        }
      }, {
        key: "editRow",
        value: function editRow(row) {
          this.loadingOnEditing = true;
          var filepath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath;
          var tmp = filepath.split('/');
          var paramListPath = tmp[0] + "/" + tmp[1] + "/" + tmp[3] + "/";
          var mainParamObj = this.scriptTabService.allParamListMainObj[paramListPath];
          this.scriptTabService.openSideBar = true;
          this.parameterDataService.sideBartitle = 'Edit Parameter';
          var output = [];
          output[0] = mainParamObj[this.obj[row.type].operation].flat().find(function (element) {
            return element.varName === row.name || element.paramName === row.name;
          }); //Select the array position element from list, match param name, if found return element.

          if (row['type'] == 'File') {
            if (row['specification'] && row['specification'].includes('config=')) // DIRTY FIX NEED TO REVIEW THIS
              row['type'] = 'AutoGenData'; // If the specification contains config=, then treat it as AutoGenData type.

            Object.assign(this.parameterDataService.objForFileParameter, output[0]);
          } else if (row['type'] == 'Search') Object.assign(this.parameterDataService.objForSearchParameter, output[0]);else if (row['type'] == 'Scratch') Object.assign(this.parameterDataService.objForDeclareParameter, output[0]);else if (row['type'] == 'XML') Object.assign(this.parameterDataService.objXMLParameter, output[0]);else if (row['type'] == 'Index File') Object.assign(this.parameterDataService.objForIndexFileParameter, output[0]);else if (row['type'] == 'Date Time') Object.assign(this.parameterDataService.objForDateTimeParam, output[0]);else if (row['type'] == 'Random String') Object.assign(this.parameterDataService.objForRandomStringParameter, output[0]);else if (row['type'] == 'Random Number') Object.assign(this.parameterDataService.objForRandomNumberParameter, output[0]);else if (row['type'] == 'Unique Number') Object.assign(this.parameterDataService.objForUniqueNumberParameter, output[0]);else if (row['type'] == 'Scratch Array') Object.assign(this.parameterDataService.objForDeclareArrayParameter, output[0]);else if (row['type'] == 'Json') Object.assign(this.parameterDataService.objForJsonParameter, output[0]);else if (row['type'] == 'Unique Range') Object.assign(this.parameterDataService.objForUniqueRangeParameter, output[0]);else if (row['type'] == 'Dataset using Query') {
            Object.assign(this.parameterDataService.objForSQLParameter, output[0]);
            Object.assign(this.parameterDataService.objForFileParameter, output[0]);
          }

          this.parameterDataService.selectedParameter = this.obj[row.type].selectedParameter;
          this.loadingOnEditing = false;
          this.router.navigate(['addParameter/' + this.obj[row.type].selectedParameter], {
            relativeTo: this.activatedRoute
          }); // /script/edit/

          if (output[0].dataDir != "") {
            this.parameterDataService.commonObj.dataDir = output[0].dataDir;
          } else {
            this.parameterDataService.commonObj.dataDir = "";
          }

          if (output[0].encodeChar) {
            this.parameterDataService.commonObj.encodeChar = output[0].encodeChar;
            this.parameterDataService.commonObj.charToEncode = output[0].charToEncode;
            this.parameterDataService.commonObj.encodeSpaceBy = output[0].encodeSpaceBy;
          } else {
            this.parameterDataService.commonObj.encodeChar = "All";
            this.parameterDataService.commonObj.charToEncode = "' \"<>#%{}|\\^~[]`";
            this.parameterDataService.commonObj.encodeSpaceBy = "+";
          }

          this.isVisible = false;
          this.parameterDataService.mode = "UpdateParam";
        }
      }, {
        key: "fixErrorInRegistSpec",
        value: function fixErrorInRegistSpec() {
          var _this17 = this;

          var tmp = this.treePath.split('/');
          var payload = {
            project: tmp[0],
            subProject: tmp[1],
            scriptName: tmp[2],
            lineNo: this.errLines
          };
          this.scriptRestService.parameter(payload, 'delCHK').subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptRestLoading"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_5__["ScriptRestLoaded"]) {
              if (state.data['status']) {
                _this17.scriptTabService.paramListUpdate.next();

                _this17.parameterDataService.refreshTabOnAddTextToRegSpec();
              }
            }
          }, function (state) {
            console.error("Error in deleting...", state.error);

            _this17.parameterDataService.refreshTabOnAddTextToRegSpec();
          });
        }
      }, {
        key: "clickButtonEvent",
        value: function clickButtonEvent(event) {
          var _a, _b, _c, _d;

          var me = this;

          if (((_b = (_a = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _a === void 0 ? void 0 : _a.actionConfig) === null || _b === void 0 ? void 0 : _b.action) == "edit") {
            me.editRow(event.cavEventExt.row);
          }

          if (((_d = (_c = event === null || event === void 0 ? void 0 : event.cavEventExt) === null || _c === void 0 ? void 0 : _c.actionConfig) === null || _d === void 0 ? void 0 : _d.action) == "delete") {
            if (this.permissionType >= this.permissionList.readWrite) {
              me.deleteParameter(event.cavEventExt.row);
            } else {
              this.scriptMsgService.showError(this.parameterDataService.reviewMessageMode(me.viewModeMsg));
            }
          }
        }
      }, {
        key: "showHideGlobalFilterOption",
        value: function showHideGlobalFilterOption() {
          try {
            this.filterProp = !this.filterProp;
            this.parameterListTable.table.reset();
          } catch (e) {
            console.error("Error in showHideGlobalFilter", e);
          }
        }
      }]);
    }();

    ParameterListComponent.ctorParameters = function () {
      return [{
        type: _script_edit_home_script_topmenu_script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_3__["ScriptTabDataService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_4__["ScriptRestService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScriptUtilService"]
      }, {
        type: _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_7__["SmTreeService"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_2__["ConfirmationService"]
      }, {
        type: _add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_8__["ParameterDataService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_11__["ScriptMsgService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('registrationSpecError')], ParameterListComponent.prototype, "registrationSpecError", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])('parameterListTable')], ParameterListComponent.prototype, "parameterListTable", void 0);
    ParameterListComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-parameter-list',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./parameter-list.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./parameter-list.component.scss */
      "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.scss"))["default"]]
    })], ParameterListComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.module.ts":
  /*!********************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.module.ts ***!
    \********************************************************************************************************/

  /*! exports provided: ParameterListModule */

  /***/
  function _src_app_pages_home_scriptManager_parameter_components_parameterList_parameterListModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ParameterListModule", function () {
      return ParameterListModule;
    });
    /* 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 _parameter_list_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./parameter-list.component */
    "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");
    /* harmony import */


    var src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! src/app/shared/cav-table/cav-table.module */
    "./src/app/shared/cav-table/cav-table.module.ts");

    var ParameterListModule = /*#__PURE__*/_createClass(function ParameterListModule() {
      _classCallCheck(this, ParameterListModule);
    });

    ParameterListModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_parameter_list_component__WEBPACK_IMPORTED_MODULE_3__["ParameterListComponent"]],
      exports: [_parameter_list_component__WEBPACK_IMPORTED_MODULE_3__["ParameterListComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["OverlayPanelModule"], src_app_shared_cav_table_cav_table_module__WEBPACK_IMPORTED_MODULE_21__["CavTableModule"]]
    })], ParameterListModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.scss":
  /*!******************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.scss ***!
    \******************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_createFlow_createFlowComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.ts":
  /*!****************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.ts ***!
    \****************************************************************************************************************/

  /*! exports provided: CreateFlowComponent */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_createFlow_createFlowComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CreateFlowComponent", function () {
      return CreateFlowComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_3__ = __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 _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../../constants/script-constants */
    "./src/app/pages/home/script-manager/constants/script-constants.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(
    /*! ../../../services/script-utils.service */
    "./src/app/pages/home/script-manager/services/script-utils.service.ts");
    /* harmony import */


    var _services_script_validations_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../../services/script-validations.service */
    "./src/app/pages/home/script-manager/services/script-validations.service.ts");
    /* harmony import */


    var _services_script_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../../../sm-tree/sm-tree.service */
    "./src/app/pages/home/script-manager/sm-tree/sm-tree.service.ts");
    /* harmony import */


    var _script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");

    var CreateFlowComponent = /*#__PURE__*/function () {
      function CreateFlowComponent(sessionService, smTreeService, scriptRestService, validationService, workProfile, utilService, tabService) {
        _classCallCheck(this, CreateFlowComponent);

        this.sessionService = sessionService;
        this.smTreeService = smTreeService;
        this.scriptRestService = scriptRestService;
        this.validationService = validationService;
        this.workProfile = workProfile;
        this.utilService = utilService;
        this.tabService = tabService;
        this.username = this.sessionService.session.cctx.u == 'cavisson' ? "admin" : this.sessionService.session.cctx.u;
        this.profile = this.workProfile.profile;
      }

      return _createClass(CreateFlowComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {}
      }, {
        key: "open",
        value: function open() {
          if (this.smTreeService.selectedNode == undefined) {
            this.utilService.errorMessage("Please select a script from the left pane in the script tree to create a flow.\nCreating a flow can only be done in a script.");
            return;
          }

          this.scriptNode = this.smTreeService.findScriptNodeInParent(this.smTreeService.selectedNode);
          this.flowName = "";

          if (this.scriptNode == null) {
            this.utilService.errorMessage("Please select a script from the left pane in the script tree to create a flow.\nCreating a flow can only be done in a script.");
            return;
          }

          this.scriptNodePath = this.smTreeService.getFilePath(this.scriptNode, '', true);
          this.treePath = this.scriptNodePath.replace("/scripts/", "/"); // path = proj/subproj/scriptName

          this.isVisible = true;
          this.scriptType = this.scriptNode['info']['SCRIPT_TYPE'].toLowerCase();
          this.getTemplateList();
        }
      }, {
        key: "createFlow",
        value: function createFlow() {
          var _this18 = this;

          if (this.flowName.trim() == '') {
            this.utilService.errorMessage("Flow name cannot be empty");
            return;
          }

          var isFileNameValid = this.validationService.validateName(this.flowName, true, "flow");

          if (isFileNameValid) {
            if (!this.smTreeService.validateRunlogicName(this.flowName)) {
              this.utilService.errorMessage("Flow '".concat(this.flowName, "' already exists."));
              return;
            }

            this.scriptType = this.smTreeService.getExtensionOfScriptFile(this.scriptNode['info']['SCRIPT_TYPE'].toLowerCase());
            var payload;

            if (this.selectedTemplate != null) {
              payload = {
                reqData: "-o " + "CreateFlow" + " -s " + this.scriptNodePath + " -f " + this.flowName + " -T " + this.selectedTemplate + " -w " + this.username + "/" + this.profile
              };
            } else {
              payload = {
                reqData: "-o " + "CreateFlow" + " -s " + this.scriptNodePath + " -f " + this.flowName + " -w " + this.username + "/" + this.profile
              };
            }

            var opCode = 9;
            var resp = [];
            var wp = {
              w: this.sessionService.session.cctx.u,
              p: this.profile
            };
            resp = this.scriptRestService.doScriptOperation(payload).subscribe(function (state) {
              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["CreateScriptLoadingState"]) {
                return;
              }

              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["CreateScriptLoadedState"]) {
                if (state.data['status']) {
                  _this18.smTreeService.addNodeInTree(_constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["FLOW"], _this18.flowName + "." + _this18.scriptType);

                  var selectedNode = _this18.smTreeService.findNodeInTree(_this18.treePath + _this18.flowName + "." + _this18.scriptType, _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ALL_SCRIPTS"]);

                  selectedNode['fp'] = _this18.scriptNodePath;
                  var smTreeOpenNode = {
                    selected: selectedNode,
                    scriptNode: _this18.scriptNode,
                    type: selectedNode.nodeType
                  };

                  _this18.smTreeService.events.onclick.next(smTreeOpenNode);

                  _this18.isVisible = false;
                } else _this18.utilService.errorMessage("Error occured while creating the flow file '".concat(_this18.flowName, "'."));

                return;
              }

              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["CreateScriptLoadingErrorState"]) {}
            });
          }
        }
      }, {
        key: "getTemplateList",
        value: function getTemplateList() {
          var _this19 = this;

          this.templates = [];
          this.templates.push({
            label: "--Select Template--",
            value: null
          });
          this.scriptRestService.getTemplateList().subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
              var ext = _this19.scriptType;
              var outputArray = state.data[ext];

              for (var i = 0; i < outputArray.length; i++) {
                _this19.templates.push(state.data[ext][i]);
              }

              return;
            }
          });
        }
      }]);
    }();

    CreateFlowComponent.ctorParameters = function () {
      return [{
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"]
      }, {
        type: _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_9__["SmTreeService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__["ScriptRestService"]
      }, {
        type: _services_script_validations_service__WEBPACK_IMPORTED_MODULE_7__["ScriptValidationsService"]
      }, {
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_3__["WorkProfileActiveService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScriptUtilService"]
      }, {
        type: _script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_10__["ScriptTabDataService"]
      }];
    };

    CreateFlowComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-create-flow',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./create-flow.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./create-flow.component.scss */
      "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.scss"))["default"]]
    })], CreateFlowComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.module.ts":
  /*!*************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.module.ts ***!
    \*************************************************************************************************************/

  /*! exports provided: CreateFlowModule */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_createFlow_createFlowModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "CreateFlowModule", function () {
      return CreateFlowModule;
    });
    /* 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 _create_flow_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./create-flow.component */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");

    var CreateFlowModule = /*#__PURE__*/_createClass(function CreateFlowModule() {
      _classCallCheck(this, CreateFlowModule);
    });

    CreateFlowModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_create_flow_component__WEBPACK_IMPORTED_MODULE_3__["CreateFlowComponent"]],
      exports: [_create_flow_component__WEBPACK_IMPORTED_MODULE_3__["CreateFlowComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"]]
    })], CreateFlowModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.scss":
  /*!********************************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.scss ***!
    \********************************************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_newFileDirectory_newFileDirectoryComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.ts":
  /*!******************************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.ts ***!
    \******************************************************************************************************************************/

  /*! exports provided: NewFileDirectoryComponent */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_newFileDirectory_newFileDirectoryComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NewFileDirectoryComponent", function () {
      return NewFileDirectoryComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var src_app_shared_file_manager_service_file_manager_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/shared/file-manager/service/file-manager.service */
    "./src/app/shared/file-manager/service/file-manager.service.ts");
    /* harmony import */


    var _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../../../constants/script-constants */
    "./src/app/pages/home/script-manager/constants/script-constants.ts");
    /* harmony import */


    var _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../../sm-tree/sm-tree.service */
    "./src/app/pages/home/script-manager/sm-tree/sm-tree.service.ts");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! src/app/shared/header/work-profile/services/work-profile-active.service */
    "./src/app/shared/header/work-profile/services/work-profile-active.service.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! ../../../services/script-rest.service */
    "./src/app/pages/home/script-manager/services/script-rest.service.ts");
    /* harmony import */


    var _services_script_state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.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_msg_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../../../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");

    var NewFileDirectoryComponent = /*#__PURE__*/function () {
      function NewFileDirectoryComponent(smTreeService, fileManagerService, scriptMsgService, sessionService, activeWPService, scriptRestService, utilsSerivce) {
        _classCallCheck(this, NewFileDirectoryComponent);

        this.smTreeService = smTreeService;
        this.fileManagerService = fileManagerService;
        this.scriptMsgService = scriptMsgService;
        this.sessionService = sessionService;
        this.activeWPService = activeWPService;
        this.scriptRestService = scriptRestService;
        this.utilsSerivce = utilsSerivce;
        this.txtForNewFileFolder = "";
        this.isUploadFile = "File";
      }

      return _createClass(NewFileDirectoryComponent, [{
        key: "ngOnInit",
        value: function ngOnInit() {}
      }, {
        key: "open",
        value: function open() {
          this.isVisible = true;
        }
      }, {
        key: "close",
        value: function close() {
          this.isVisible = false;
          this.txtForNewFileFolder = "";
        }
      }, {
        key: "createFileDir",
        value: function createFileDir() {
          var _this20 = this;

          var enteredVal = this.txtForNewFileFolder;

          if (this.smTreeService.selectedNode == undefined) {
            this.scriptMsgService.showError("Please click on a script to create ".concat(this.isUploadFile), 'Error', 'script');
            return;
          }

          if (this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["RUNLOGIC_DIR"] || this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["RUNLOGIC"]) {
            this.scriptMsgService.showError("File or Directory can not be created inside runlogic directory.", 'Error', 'script');
            return;
          }

          if (enteredVal == "") {
            this.scriptMsgService.showError("Field cannot be empty", 'Error', 'script');
            return;
          } else if (enteredVal.startsWith('_') || /^[0-9]/.test(enteredVal)) {
            this.scriptMsgService.showError("".concat(this.isUploadFile == "Directory" ? "Folder" : "File", " name should start with alphabet."), 'Error', 'script');
            return;
          }

          if (/[-!$%^&*()+|~=`{}:/<>?,@# ]/g.test(enteredVal) || enteredVal.includes('[') || enteredVal.includes(']')) {
            this.scriptMsgService.showError("Please Enter valid ".concat(this.isUploadFile == "Directory" ? "Folder" : "File", " name"), 'Error', 'script');
            return;
          }

          var parentNode;
          if ((this.isUploadFile == "Directory" || this.isUploadFile == "File") && (this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["FLOW"] || this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["FILE"] || this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["RUNLOGIC"])) parentNode = this.smTreeService.selectedNode.parent;else parentNode = this.smTreeService.selectedNode;

          if (!this.smTreeService.validateRunlogicName(enteredVal)) {
            this.scriptMsgService.showError("".concat(this.isUploadFile == "Directory" ? "Folder" : "File", " name already exists, specify another name"), 'Error', 'script');
            return;
          }

          if (this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["PRJ"] || this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["SUB_PRJ"] || this.smTreeService.selectedNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["ALL_SCRIPTS"]) {
            this.scriptMsgService.showError("Please select a script from the left pane in the script tree to create a ".concat(this.isUploadFile, ".\nCreating a ").concat(this.isUploadFile, " can only be done in a script."), 'Error', 'script');
            return;
          }

          var path = this.smTreeService.getFilePath(parentNode, '', true);
          this.fileAndFolderPath = "/home/cavisson/" + this.sessionService.preSession.controllerName + "/workspace/" + (this.sessionService.session.cctx.u == "cavisson" ? "admin" : this.sessionService.session.cctx.u) + "/" + this.activeWPService.profile + "/cavisson/" + path;

          if (this.isUploadFile == "Directory") {
            this.subscription = this.fileManagerService.newFolder(this.fileAndFolderPath + enteredVal).subscribe(function (res) {
              if (res['data']['status'].code == 0 && res['data']['status'].msg.startsWith("New Folder created successfully")) {
                _this20.scriptMsgService.showSuccess("New Directory created successfully", '', 'script');

                _this20.smTreeService.addNodeInTree(_constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["DIR"], enteredVal);
              } else _this20.utilsSerivce.errorMessage(res['data']['status'].msg);
            }, function (error) {
              return console.error("error = ", error);
            });
          } else {
            var formData = new FormData();
            var file = new File([], enteredVal);
            formData.append('file', file, file.name);
            this.scriptRestService.uploadFile(this.fileAndFolderPath, formData).subscribe(function (state) {
              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoading"]) {}

              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestLoaded"]) {
                if (state.data['status']['code'] == 0 && state.data['status']['msg'].startsWith("File uploaded successfully")) {
                  _this20.scriptMsgService.showSuccess("New File created successfully", '', 'script');

                  _this20.smTreeService.addNodeInTree(_constants_script_constants__WEBPACK_IMPORTED_MODULE_3__["FILE"], enteredVal);
                } else _this20.utilsSerivce.errorMessage(state.data['status']['msg']);
              }

              if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_8__["ScriptRestError"]) {}
            }, function (error) {
              return console.error("error = ", error);
            });
          }

          this.close();
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          if (this.subscription) this.subscription.unsubscribe();
        }
      }]);
    }();

    NewFileDirectoryComponent.ctorParameters = function () {
      return [{
        type: _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_4__["SmTreeService"]
      }, {
        type: src_app_shared_file_manager_service_file_manager_service__WEBPACK_IMPORTED_MODULE_2__["FileManagerService"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_10__["ScriptMsgService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_5__["SessionService"]
      }, {
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_6__["WorkProfileActiveService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_7__["ScriptRestService"]
      }, {
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_9__["ScriptUtilService"]
      }];
    };

    NewFileDirectoryComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-new-file-directory',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./new-file-directory.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./new-file-directory.component.scss */
      "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.scss"))["default"]]
    })], NewFileDirectoryComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.module.ts":
  /*!***************************************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.module.ts ***!
    \***************************************************************************************************************************/

  /*! exports provided: NewFileDirectoryModule */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_newFileDirectory_newFileDirectoryModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NewFileDirectoryModule", function () {
      return NewFileDirectoryModule;
    });
    /* 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 _new_file_directory_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./new-file-directory.component */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! primeng/dropdown */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
    /* harmony import */


    var primeng_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! primeng/button */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
    /* harmony import */


    var primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
    /*! primeng/inputtext */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
    /* harmony import */


    var primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! primeng/fieldset */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fieldset.js");
    /* harmony import */


    var primeng_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! primeng/table */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.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_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! @angular/forms */
    "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! primeng/fileupload */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
    /* harmony import */


    var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! primeng/selectbutton */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-selectbutton.js");
    /* harmony import */


    var primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! primeng/tooltip */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");

    var NewFileDirectoryModule = /*#__PURE__*/_createClass(function NewFileDirectoryModule() {
      _classCallCheck(this, NewFileDirectoryModule);
    });

    NewFileDirectoryModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_new_file_directory_component__WEBPACK_IMPORTED_MODULE_3__["NewFileDirectoryComponent"]],
      exports: [_new_file_directory_component__WEBPACK_IMPORTED_MODULE_3__["NewFileDirectoryComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClientModule"], primeng_dropdown__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng_button__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"], primeng_inputtext__WEBPACK_IMPORTED_MODULE_7__["InputTextModule"], primeng_fieldset__WEBPACK_IMPORTED_MODULE_8__["FieldsetModule"], primeng_table__WEBPACK_IMPORTED_MODULE_9__["TableModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MessageModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["ToastModule"], primeng_tooltip__WEBPACK_IMPORTED_MODULE_20__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["TabViewModule"], 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"], primeng_dialog__WEBPACK_IMPORTED_MODULE_16__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_17__["TabMenuModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AutoCompleteModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_4__["SpinnerModule"], primeng_fileupload__WEBPACK_IMPORTED_MODULE_18__["FileUploadModule"], primeng_selectbutton__WEBPACK_IMPORTED_MODULE_19__["SelectButtonModule"]]
    })], NewFileDirectoryModule);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.scss":
  /*!*********************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.scss ***!
    \*********************************************************************************************************/

  /*! exports provided: default */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_scriptTopmenuComponentScss(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony default export */


    __webpack_exports__["default"] = "app-script-topmenu {\n  width: 100%;\n}\napp-script-topmenu .my-containt {\n  flex: 1;\n  max-width: 100%;\n  position: relative;\n}\napp-script-topmenu .item-list {\n  position: relative;\n  padding-left: 1em;\n  padding-right: 1em;\n}\napp-script-topmenu .item-list .closeX {\n  position: absolute;\n  top: 1px;\n  z-index: 45;\n  right: -17px;\n}\napp-script-topmenu .ui-tabview.ui-tabview-top .ui-tabview-nav li a {\n  text-transform: none !important;\n  display: inline-flex;\n  align-items: center;\n  height: 42px;\n  margin-bottom: -1px;\n}\napp-script-topmenu .ui-tabview .ui-tabview-panels {\n  border: none !important;\n  background: none !important;\n  height: calc(100vh - 160px);\n  overflow: auto;\n  position: relative;\n}\napp-script-topmenu app-play-runlogic .ui-tabview .ui-tabview-panels {\n  height: inherit;\n}\napp-script-topmenu .main-tab-background {\n  background-color: var(--background_color_1);\n  border-style: solid;\n  border-width: 1px;\n  max-height: calc(100vh - 87px);\n  overflow: hidden;\n}\napp-script-topmenu .main-tab-background .ui-tabview {\n  padding: 0px;\n}\napp-script-topmenu .sidebar-inneer {\n  height: calc(100vh - 140px);\n  overflow: auto;\n}\napp-script-topmenu .is-active {\n  box-shadow: 0px 0px 3px var(--background_color_10) !important;\n}\napp-script-topmenu .word-break {\n  white-space: break-spaces;\n  word-break: break-all;\n}\napp-script-topmenu .iteration {\n  z-index: 99;\n  cursor: pointer;\n}\napp-script-topmenu button.btn-icon.debugScript.ui-button {\n  padding-left: 2px !important;\n  padding-right: 2px !important;\n  background-color: transparent !important;\n}\napp-script-topmenu .ui-tabview.ui-tabview-top > .ui-tabview-nav {\n  display: flex;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.ts":
  /*!*******************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.ts ***!
    \*******************************************************************************************************/

  /*! exports provided: ScriptTopMenuComponent */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_scriptTopmenuComponentTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ScriptTopMenuComponent", function () {
      return ScriptTopMenuComponent;
    });
    /* harmony import */


    var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
    /*! tslib */
    "./node_modules/tslib/tslib.es6.js");
    /* harmony import */


    var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
    /*! @angular/core */
    "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
    /* harmony import */


    var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.service.ts");
    /* harmony import */


    var src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_3__ = __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 _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ../../constants/script-constants */
    "./src/app/pages/home/script-manager/constants/script-constants.ts");
    /* harmony import */


    var _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __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_7__ = __webpack_require__(
    /*! ../../services/script.state */
    "./src/app/pages/home/script-manager/services/script.state.ts");
    /* harmony import */


    var _parameter_components_parameter_list_parameter_list_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../parameter/components/parameter-list/parameter-list.component */
    "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.component.ts");
    /* harmony import */


    var _checkpoint_checkpoints_list_checkpoints_list_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! ../../checkpoint/checkpoints-list/checkpoints-list.component */
    "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.component.ts");
    /* harmony import */


    var _new_file_directory_new_file_directory_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ./new-file-directory/new-file-directory.component */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.component.ts");
    /* harmony import */


    var _create_flow_create_flow_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! ./create-flow/create-flow.component */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.component.ts");
    /* harmony import */


    var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
    /*! @angular/router */
    "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
    /* harmony import */


    var _load_test_cav_scen_version_commit_cav_scen_version_commit_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! ../../../load-test/cav-scen-version-commit/cav-scen-version-commit.component */
    "./src/app/pages/home/load-test/cav-scen-version-commit/cav-scen-version-commit.component.ts");
    /* harmony import */


    var _load_test_cav_scen_version_log_cav_scen_version_log_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
    /*! ../../../load-test/cav-scen-version-log/cav-scen-version-log.component */
    "./src/app/pages/home/load-test/cav-scen-version-log/cav-scen-version-log.component.ts");
    /* harmony import */


    var _load_test_services_load_test_common_services__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
    /*! ../../../load-test/services/load-test-common.services */
    "./src/app/pages/home/load-test/services/load-test-common.services.ts");
    /* harmony import */


    var primeng__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
    /*! primeng */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
    /* harmony import */


    var _script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
    /*! ./script-tab/script-tab-data.service */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab-data.service.ts");
    /* harmony import */


    var _parameter_components_add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
    /*! ../../parameter/components/add-parameter/parameter-data.service */
    "./src/app/pages/home/script-manager/parameter/components/add-parameter/parameter-data.service.ts");
    /* harmony import */


    var _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
    /*! ../../sm-tree/sm-tree.service */
    "./src/app/pages/home/script-manager/sm-tree/sm-tree.service.ts");
    /* harmony import */


    var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
    /*! @angular/platform-browser */
    "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
    /* harmony import */


    var _page_list_script_page_list_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
    /*! ../../page-list/script-page-list.component */
    "./src/app/pages/home/script-manager/page-list/script-page-list.component.ts");
    /* harmony import */


    var _external_libraries_external_libraries_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
    /*! ../../external-libraries/external-libraries.component */
    "./src/app/pages/home/script-manager/external-libraries/external-libraries.component.ts");
    /* harmony import */


    var _script_compare_script_compare_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
    /*! ../../script-compare/script-compare.component */
    "./src/app/pages/home/script-manager/script-compare/script-compare.component.ts");
    /* harmony import */


    var primeng_dynamicdialog__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
    /*! primeng/dynamicdialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dynamicdialog.js");
    /* harmony import */


    var _services_cav_common_converter_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
    /*! ../../services/cav-common-converter.service */
    "./src/app/pages/home/script-manager/services/cav-common-converter.service.ts");
    /* harmony import */


    var src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
    /*! src/app/pages/scenario/interface/scenario-state */
    "./src/app/pages/scenario/interface/scenario-state.ts");
    /* harmony import */


    var _services_breakpoint_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
    /*! ../../services/breakpoint.service */
    "./src/app/pages/home/script-manager/services/breakpoint.service.ts");
    /* harmony import */


    var src_app_shared_help_help_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
    /*! src/app/shared/help/help.component */
    "./src/app/shared/help/help.component.ts");
    /* harmony import */


    var src_environments_environment__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
    /*! src/environments/environment */
    "./src/environments/environment.ts");
    /* harmony import */


    var _angular_common_http__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
    /*! @angular/common/http */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
    /* harmony import */


    var lodash__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
    /*! lodash */
    "./node_modules/lodash/lodash.js");
    /* harmony import */


    var lodash__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_31__);
    /* harmony import */


    var _services_script_msg_service__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
    /*! ../../services/script-msg.service */
    "./src/app/pages/home/script-manager/services/script-msg.service.ts");
    /* harmony import */


    var src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(
    /*! src/app/shared/cav-toast/service/cav-message.service */
    "./src/app/shared/cav-toast/service/cav-message.service.ts");
    /* harmony import */


    var src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(
    /*! src/app/pages/scenario/service/scenario-http.service */
    "./src/app/pages/scenario/service/scenario-http.service.ts");
    /* harmony import */


    var _angular_common__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(
    /*! @angular/common */
    "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");

    var ScriptTopMenuComponent = /*#__PURE__*/function () {
      function ScriptTopMenuComponent(scriptUtilService, scriptRestService, sessionService, workProfile, router, loadTestCommonService, messageService, scriptTabService, parameterDataService, smtreeService, sanitizer, confirmationService, dialogService, _cavCommonConnverterService, scenariosHttpService, brkPointservice, http, scriptMsgService, activatedRoute, location) {
        _classCallCheck(this, ScriptTopMenuComponent);

        this.scriptUtilService = scriptUtilService;
        this.scriptRestService = scriptRestService;
        this.sessionService = sessionService;
        this.workProfile = workProfile;
        this.router = router;
        this.loadTestCommonService = loadTestCommonService;
        this.messageService = messageService;
        this.scriptTabService = scriptTabService;
        this.parameterDataService = parameterDataService;
        this.smtreeService = smtreeService;
        this.sanitizer = sanitizer;
        this.confirmationService = confirmationService;
        this.dialogService = dialogService;
        this._cavCommonConnverterService = _cavCommonConnverterService;
        this.scenariosHttpService = scenariosHttpService;
        this.brkPointservice = brkPointservice;
        this.http = http;
        this.scriptMsgService = scriptMsgService;
        this.activatedRoute = activatedRoute;
        this.location = location;
        this.subscriptionArr = [];
        this.showHelpBtn = true;
        this.compileInProgress = false;
        this.ifActiveTabIsScript = true;
        this.tabsArr = [];
        this.tabDataMap = {};
        this.tabInfoFromIndex = {};
        this.activeTabIndex = 0;
        this.runlogicHome = false;
        this.fullscreen = false;
        this.psideBarStyle = {
          'min-width': '40em',
          'top': '39px'
        };
        this.psideBarToolTip = "Maximize View";
        this.dialogArr = [{
          visible: false,
          header: 'Debug log',
          loading: false,
          data: ""
        }, {
          visible: false,
          header: 'Error log',
          loading: false,
          data: ""
        }];
        this.lastOffset = 0;
        this.cities1 = [{
          label: 'Select City',
          value: null
        }];
        this.permissionList = {
          read: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"],
          readWrite: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ_WRITE"],
          admin: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ADMIN"]
        }; // properties for compare Scripts

        this.totalProjSubProjData = [];
        this.projects = [];
        this.projects2 = [];
        this.subProjects = [];
        this.subProjects2 = [];
        this.scriptsList1 = [];
        this.scriptsList2 = [];
        this.READ_ONLY = "4";
        this.openScriptComp = false;
        this.iterationNum = 1;
        this.selectedNodeScript = true;
        this.selectedNodeSubProj = true;
        this.selectedNodeProj = true;
        this.objectFromScriptTree = {
          profile: null,
          username: null,
          project: null,
          subproject: null,
          script: null,
          type: null,
          isFile: null,
          file: null,
          rootNode: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ALL_SCRIPTS"],
          mode: 0
        };
        this.scriptType = 'C';
        this.workProfileInfo = {};
        this.cctxInfo = {};
        this.helpMetaData = {
          "file": {
            title: "Dataset Using File",
            help: "datasetUsingFile"
          },
          "search": {
            title: "Search Parameter",
            help: "searchParameter"
          },
          "declare": {
            title: "Scratch Parameter",
            help: "scratchParameter"
          },
          "xml": {
            title: "XML Parameter",
            help: "xmlParameter"
          },
          "index_file": {
            title: "Index Dataset Using File",
            help: "indexDataset"
          },
          "dateTime": {
            title: "Date Time Parameter",
            help: "dateTimeParameter"
          },
          "random_string": {
            title: "Random String Parameter",
            help: "randomStringParameter"
          },
          "random_number": {
            title: "Random Number Parameter",
            help: "randomNumberParameter"
          },
          "unique_number": {
            title: "Unique Number Parameter",
            help: "uniqueNumberParameter"
          },
          "declare_array": {
            title: "Scratch Array Parameter",
            help: "scratchArrayParameter"
          },
          "json": {
            title: "JSON Parameter",
            help: "jsonParameter"
          },
          "unique_range": {
            title: "Unique Range Parameter",
            help: "uniqueRangeParameter"
          },
          "sql": {
            title: "Dataset Using Query",
            help: "datasetUsingQueryParameter"
          },
          "addCheckpoint": {
            title: "Assertion",
            help: "assertion"
          },
          "startTx": {
            title: "Start Transaction",
            help: "startTransaction"
          },
          "endTx": {
            title: "End Transaction",
            help: "endTransaction"
          },
          "startEndTx": {
            title: "Start End Transaction",
            help: "startEndTransaction"
          }
        };
        this.scriptUtilService.openConsoleLog = false;
        this.smtreeService.showScriptCompareNotes = true;
      }

      return _createClass(ScriptTopMenuComponent, [{
        key: "showDialog",
        value: function showDialog() {
          this.ParameterList.open();
        }
      }, {
        key: "showDialog2",
        value: function showDialog2() {
          this.CheckpointsList.open();
        }
      }, {
        key: "showDialog3",
        value: function showDialog3() {
          this.NewFileDirectory.open();
        }
      }, {
        key: "showDialog4",
        value: function showDialog4() {
          this.CreateFlow.open();
        }
      }, {
        key: "showAPI",
        value: function showAPI(routeName, title) {
          if (routeName == "/script/addParameter/file" || routeName == "/script/addParameter/file-test-data-generator") this.toggleView(true);
          this.scriptTabService.openSideBar = true;
          this.router.navigate([routeName], {
            relativeTo: this.activatedRoute
          });
          var arrOfRoute = routeName.split("/");
          if (arrOfRoute[arrOfRoute.length - 1] == 'api') this.showHelpBtn = false;else this.showHelpBtn = true;
          this.parameterDataService.selectedParameter = arrOfRoute[arrOfRoute.length - 1];
          this.parameterDataService.sideBartitle = title;
        } // HttpClient is added for Bug 126201

      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          var _this21 = this;

          this.scriptUtilService.isParamFullScreenView = false;
          /*
          commentted following subsciber and moved to scrip -tab component
          this.scriptUtilService.fileToOpen.subscribe(async (data: TabInfo) => {
              // this.runlogicHome=false;
              let fullpath = data.filePath + data.fileName;
              // highlight already opened tab
              if (this.tabDataMap[fullpath] != undefined) {
                  this.activeTabIndex = this.tabDataMap[fullpath];
                  this.scriptUtilService.sendTabChangeEvent({index:this.activeTabIndex});
                  return;
              }
              data.tabIndex=this.tabsArr.length
              this.tabsArr.push({
                  header: data.fileName,
                  fileObj: data,
              });
              let tabIndex = this.tabsArr.length - 1;
              this.tabDataMap[fullpath] = tabIndex;  // this can be directly used to highlight tab
              this.tabInfoFromIndex[tabIndex] = fullpath;
          let activePath = this.tabInfoFromIndex[this.activeTabIndex];
              let tmp : any = activePath.split('/');
              this.project = tmp[0];
              this.subProject = tmp[1];
              this.head = tmp[3];
              // if (this.tabsArr.indexOf(data))
              if (data.scriptNode && !data.scriptNode.info) {
                  await this.initScriptInfo(data.scriptNode, data.filePath);
              }
              setTimeout(() => {
                  this.activeTabIndex = this.tabsArr.length - 1;
              }, 50);
          });
          */

          this.loadTestCommonService.messageObservable$.subscribe(function (msg) {
            var message = {
              key: "script",
              severity: msg[0]['severity'],
              detail: msg[0]['detail']
            };

            _this21.messageService.add(message);
          });
          this.wordWrapFlag = this.scriptTabService.wordWrapVal == undefined || this.scriptTabService.wordWrapVal == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["WORD_WRAP_OFF"] ? false : true;
          this.subscriptionArr.push(this.scriptTabService.events.onChange.subscribe(function (data) {
            _this21.permissionType = _this21.scriptTabService.tabDetailFromIndex[data.index].treeNode.acl; // in case of acl

            var fp = _this21.scriptTabService.tabDetailFromIndex[data.index].filePath.replace(/\/$/, '');

            fp = fp.replace(/\/runlogic$/, ''); // if found runlogic path

            var scriptlockInfo = _this21.scriptTabService.lockScriptObj[fp];

            if (scriptlockInfo != undefined) {
              var lockType = scriptlockInfo['statusCode'];

              if (_this21.permissionType >= _this21.permissionList.readWrite) {
                if (lockType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT_READ_LOCK"]) {
                  // 403 = locked by another user
                  _this21.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"];
                }
              }
            } else if (_this21.scriptTabService.tabDetailFromIndex[data.index].treeNode.mode > _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["EDIT_MODE"]) {
              //if open in view mode
              _this21.permissionType = _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["READ"];
            } // Disable parameter/assertion add/update button in case of read user or opened in a view mode


            if (_this21.permissionType < _this21.permissionList.readWrite) {
              _this21.parameterDataService.isReadUserAccess = true;
            } else {
              _this21.parameterDataService.isReadUserAccess = false;
            }

            if (_this21.scriptTabService.activeTabDataInfo['filePath']) _this21.ifActiveTabIsScript = _this21.scriptTabService.activeTabDataInfo['filePath'].includes('/scripts/');
          }));
          this.subscriptionArr.push(this.scriptTabService.events.onChange.subscribe(function (data) {
            try {
              _this21.scriptType = _this21.getScriptType(_this21.scriptTabService.tabDetailFromIndex[data.index].treeNode);
            } catch (e) {
              _this21.scriptType = _this21.scriptTabService.tabDetailFromIndex[data.index].fileName.indexOf('.c') ? 'C' : 'JAVA';
            }
          }));
          this.subscriptionArr.push(this.scriptTabService.events.onClose.subscribe(function (data) {
            setTimeout(function () {
              try {
                _this21.ifActiveTabIsScript = _this21.scriptTabService.activeTabDataInfo['filePath'].includes('/scripts/');
                _this21.scriptType = _this21.getScriptType(_this21.scriptTabService.tabDetailFromIndex[_this21.scriptTabService.activeTabIndex].treeNode);
              } catch (e) {
                _this21.ifActiveTabIsScript = _this21.scriptTabService.activeTabDataInfo['filePath'].includes('/scripts/');
                _this21.scriptType = _this21.scriptTabService.tabDetailFromIndex[_this21.scriptTabService.activeTabIndex].fileName.indexOf('.c') ? 'C' : 'JAVA';
              }
            }, 50);
          }));
          this.subscriptionArr.push(this.smtreeService.events.onclick.subscribe(function (dataObj) {
            var selectedNodeType = dataObj.selected.nodeType;

            var scriptPath = _this21.smtreeService.getFilePath(dataObj.selected, '', true);

            var path = scriptPath.split('/'); // proj/subproj/scripts/script_name/../..

            if (selectedNodeType >= _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["PRJ"]) {
              //selectedNodeType >= PRJ 
              _this21.selectedNodeProj = false;
              _this21.objectFromScriptTree.project = path[0];
              _this21.objectFromScriptTree.subproject = null;
              _this21.objectFromScriptTree.script = null;
            } else {
              _this21.selectedNodeProj = true;
            }

            if (selectedNodeType >= _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SUB_PRJ"]) {
              // selectedNodeType >= SUB_PRJ
              _this21.selectedNodeSubProj = false;
              _this21.objectFromScriptTree.project = path[0];
              _this21.objectFromScriptTree.subproject = path[1];
              _this21.objectFromScriptTree.script = null;
            } else {
              _this21.selectedNodeSubProj = true;
            }

            if (selectedNodeType >= _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT"]) {
              // selectedNodeType >= SCRIPT
              _this21.selectedNodeScript = false;
              _this21.objectFromScriptTree.project = path[0];
              _this21.objectFromScriptTree.subproject = path[1];
              _this21.objectFromScriptTree.script = path[3];
            } else {
              _this21.selectedNodeScript = true;
            }
          }));
          this.gettingListOfProjSubProj();

          window.onbeforeunload = function () {
            return _this21.releaseLock();
          };

          try {
            this.workProfileInfo = {
              w: this.sessionService.session.cctx.u == 'cavisson' ? 'admin' : lodash__WEBPACK_IMPORTED_MODULE_31__["cloneDeep"](this.sessionService.session.cctx.u),
              p: this.workProfile.profile == undefined ? 'default' : lodash__WEBPACK_IMPORTED_MODULE_31__["cloneDeep"](this.workProfile.profile)
            };
            this.cctxInfo = lodash__WEBPACK_IMPORTED_MODULE_31__["cloneDeep"](this.sessionService.session.cctx);
          } catch (e) {} // script compare related changes, after view all script fill all project sub project in drop down


          this.subscriptionArr.push(this.smtreeService.events.onChanges.subscribe(function (dataObj) {
            _this21.projects = [];
            _this21.projects2 = [];

            _this21.projects.push({
              label: '--Select Project--',
              value: null
            });

            _this21.projects2.push({
              label: '--Select Project--',
              value: null
            });

            var selectFirstProject = [];

            var _iterator3 = _createForOfIteratorHelper(_this21.smtreeService.treeData[0].children),
                _step3;

            try {
              for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                var getTreeNode = _step3.value;
                selectFirstProject.push(getTreeNode.label);

                _this21.projects.push({
                  label: getTreeNode.label,
                  value: getTreeNode.label
                }); //first project dropdown


                _this21.projects2.push({
                  label: getTreeNode.label,
                  value: getTreeNode.label
                }); //second project drop down

              }
            } catch (err) {
              _iterator3.e(err);
            } finally {
              _iterator3.f();
            }

            _this21.showSubProjList({
              value: _this21.selectedProject1
            }, " ");
          }));
        }
      }, {
        key: "openPageList",
        value: function openPageList() {
          this.ScriptPageList.open();
        }
      }, {
        key: "openAddExternalLibraries",
        value: function openAddExternalLibraries() {
          this.ExternalLibraries.open();
        }
      }, {
        key: "synchronize",
        value: function synchronize() {
          this.smtreeService.getTree();
        }
      }, {
        key: "onClickRequestResponse",
        value: function onClickRequestResponse() {
          var username = this.sessionService.session.cctx.u == "cavisson" ? "admin" : this.sessionService.session.cctx.u;
          var url = window.location.protocol + "//" + window.location.host + "/netstorm/recorder/../../ScriptPageDetail/index.html?productKey=" + this.sessionService.session.cctx.pk + "&scriptPath=" + username + "/" + this.workProfile.profile + "/" + this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].treePath + "&header=false";
          var pageDetailUrl;
          pageDetailUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url);
          var tabToOpen = {
            type: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["PAGE_DETAIL"],
            url: pageDetailUrl,
            filePath: this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath
          };
          this.smtreeService.events.onclick.next(tabToOpen);
        }
      }, {
        key: "onViewSnapshot",
        value: function onViewSnapshot() {
          var username = this.sessionService.session.cctx.u == "cavisson" ? "admin" : this.sessionService.session.cctx.u;

          if (this.scriptTabService.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["FLOW"]) {
            var fileName = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].fileName.split(".")[0];
            var url = window.location.protocol + "//" + window.location.host + "/workspace/" + username + "/" + this.workProfile.profile + "/cavisson/" + this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath + "dump/" + fileName + "/pages.html";
            var snapshotUrl;
            snapshotUrl = this.sanitizer.bypassSecurityTrustResourceUrl(url);
            var tabToOpen = {
              type: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["VIEW_SNAPSHOT"],
              url: snapshotUrl,
              filePath: this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath,
              treeNode: this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].treeNode
            };
            this.smtreeService.events.onclick.next(tabToOpen);
          } else {
            this.scriptUtilService.errorMessage("Please select a Flow file to view snapshots.");
          }
        }
      }, {
        key: "initScriptInfo",
        value: function initScriptInfo(treeNode, filePath) {
          var _this22 = this;

          if (treeNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT"]) {
            return new Promise(function (onfullfill, onreject) {
              var payload1 = {
                //reqData: "-w " + this.user + "/"+this.workProfile.profile+ " -o CreateScript -s " + this.projName.value + "/" + this.subProjName.value + "/scripts/" + this.scriptName + " -f flow -l " + this.selectScritp.value
                reqData: "-w " + (_this22.sessionService.session.cctx.u == 'cavisson' ? 'admin' : _this22.sessionService.session.cctx.u) + "/" + _this22.workProfile.profile + " -o Info -s " + filePath.match(/[a-zA-Z0-9_]+\/[a-zA-Z0-9_]+\/scripts\/[a-zA-Z0-9_]+/g)
              };
              if (treeNode.info) return;

              _this22.scriptRestService.doScriptOperation(payload1).subscribe(function (state) {
                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["CreateScriptLoadingState"]) {
                  _this22.onLoading(state);

                  return;
                }

                if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["CreateScriptLoadedState"]) {
                  _this22.onRestLoaded(state, treeNode);

                  onfullfill(true);
                  return;
                }
              }, function (state) {
                _this22.onLoadingError(state);

                onreject(false);
              });
            }); //call info call and set data in tree 
          } else this.initScriptInfo(treeNode.parent, filePath);
        }
      }, {
        key: "onLoadingError",
        value: function onLoadingError(state) {// throw new Error('Method not implemented.');
        }
      }, {
        key: "onRestLoaded",
        value: function onRestLoaded(state, treeNode) {
          var resp = state.data;
          treeNode.info = resp.output;
          this.scriptType = treeNode.info['SCRIPT_TYPE'];
          this.runlogicHome = true; // TODO : need to review / remove
        }
      }, {
        key: "onLoading",
        value: function onLoading(state) {// throw new Error('Method not implemented.');
        }
      }, {
        key: "onTabClose",
        value: function onTabClose(event) {
          this.tabDataMap[this.tabInfoFromIndex[event.index]] = undefined; // this.tabsArr.splice(event.index,1)
          // this.tabInfoFromIndex.splice(event.index, 1)
        }
      }, {
        key: "closeTabOnDemand",
        value: function closeTabOnDemand(tabInfo) {
          //find fullpath index 
          var fullpath = tabInfo.filePath + tabInfo.fileName; // highlight already opened tab

          if (this.tabDataMap[fullpath] != undefined) {
            var index = this.tabDataMap[fullpath]; // remove index from array : TabsArr

            this.tabsArr.splice(index, 1);
            this.tabDataMap[fullpath] = undefined;
            return;
          }
        }
      }, {
        key: "renameTab",
        value: function renameTab(runlogicName, tab) {
          var fullpath = tab.fileObj.filePath + tab.fileObj.fileName;

          if (this.tabDataMap[fullpath] != undefined) {
            var index = this.tabDataMap[fullpath];

            if (index == this.activeTabIndex) {
              tab.header = runlogicName;
              tab.fileObj.fileName = runlogicName;
              this.tabDataMap[fullpath] = undefined;
              var fullpathNew = tab.fileObj.filePath + tab.fileObj.fileName;
              this.tabDataMap[fullpathNew] = this.activeTabIndex;
            }
          }
        }
      }, {
        key: "copyRunlogic",
        value: function copyRunlogic() {
          this.scriptTabService.copyRunlogic.next();
        }
      }, {
        key: "renameRunlogic",
        value: function renameRunlogic() {
          this.scriptTabService.renameRunlogic.next();
        }
      }, {
        key: "downloadRunlogic",
        value: function downloadRunlogic() {
          this.scriptTabService.downloadRunlogic.next();
        }
      }, {
        key: "deleteRunlogic",
        value: function deleteRunlogic() {
          this.scriptTabService.deleteRunlogic.next();
        }
      }, {
        key: "createRunlogic",
        value: function createRunlogic() {
          this.scriptTabService.createRunlogic.next();
        }
      }, {
        key: "defaultRunlogic",
        value: function defaultRunlogic() {
          this.scriptTabService.defaultRunlogic.next();
        }
      }, {
        key: "showCalculator",
        value: function showCalculator() {
          this.scriptTabService.calculator.next();
        }
      }, {
        key: "expandCollapse",
        value: function expandCollapse() {
          this.scriptTabService.expandCollapse.next();
        }
      }, {
        key: "saveRunlogic",
        value: function saveRunlogic() {
          this.scriptTabService.saveRunlogic.next();
        }
      }, {
        key: "resetRunlogic",
        value: function resetRunlogic() {
          this.scriptTabService.resetRunlogic.next();
        }
      }, {
        key: "OnTabChange",
        value: function OnTabChange(event) {
          this.scriptUtilService.sendTabChangeEvent(event);
        }
      }, {
        key: "toggleView",
        value: function toggleView(isFull) {
          if (isFull) this.fullscreen = isFull;else this.fullscreen = !this.fullscreen;
          this.scriptUtilService.isParamFullScreenView = this.fullscreen;

          if (this.fullscreen) {
            this.psideBarStyle = {
              'min-width': '100em',
              'top': '39px'
            };
            this.psideBarToolTip = "Minimize View";
          } else {
            this.psideBarToolTip = "Maximize View";
            this.psideBarStyle = {
              'min-width': '40em',
              'top': '39px'
            };
          }
        }
      }, {
        key: "openGitCommand",
        value: function openGitCommand(opType) {
          this.scriptUtilService.doGITOpeartionFrmSmTree = false;
          this.scriptUtilService.doGITOpeartionFrmTopMenu = true;
          var filepath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath;
          var tmp = filepath.split('/');
          var project = tmp[0];
          var subProject = tmp[1];
          var head = tmp[3];
          var dataObject = {
            selectedScenario: [{
              head: head,
              project: project,
              subproject: subProject,
              Permission: '7'
            }],
            projectList: [{
              Permission: '7',
              project: project,
              subproject: subProject,
              groupName: 'groupName',
              owner: 'cavisson',
              scenario: head,
              workprofile: 'workprofile',
              scenType: 'CONF'
            }],
            scenMode: 0,
            operationType: opType
          };
          this.versionCommit.dataObjectFromScenariosList(dataObject);
        }
      }, {
        key: "openVersionLogs",
        value: function openVersionLogs() {
          this.scriptUtilService.doGITOpeartionFrmSmTree = false;
          this.scriptUtilService.doGITOpeartionFrmTopMenu = true;
          var filepath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath;
          var tmp = filepath.split('/');
          var project = tmp[0];
          var subProject = tmp[1];
          var head = tmp[3];
          var dataObject = {
            selectedScenario: [{
              head: head,
              project: project,
              subproject: subProject,
              Permission: '7'
            }],
            scenMode: 0
          };
          this.versionLogs.getOpenVersionLog(dataObject);
        }
      }, {
        key: "openGitCommandforFile",
        value: function openGitCommandforFile(opType) {
          this.scriptUtilService.doGITOpeartionFrmSmTree = false;
          this.scriptUtilService.doGITOpeartionFrmTopMenu = true;
          var filepath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath;
          var tmp = filepath.split('/');
          var project = tmp[0];
          var subProject = tmp[1];
          var head = tmp[3];
          var fileName = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].fileName;
          var dataObject = {
            selectedScenario: [{
              head: head,
              project: project,
              subproject: subProject,
              Permission: '7',
              fileName: fileName
            }],
            projectList: [{
              Permission: '7',
              project: project,
              subproject: subProject,
              groupName: 'groupName',
              owner: 'cavisson',
              scenario: head,
              workprofile: 'workprofile',
              scenType: 'CONF',
              fileName: fileName
            }],
            scenMode: 0,
            operationType: opType
          };
          this.versionCommit.dataObjectFromScenariosList(dataObject);
        }
        /*
        * when we change openSidebar to false from any other component as well
        * this function will be called from p-sidebar
        * and we can handle close side bar operations here
        * setting openSidebar to false when it was true will call this method again and then will do location.back
        */

      }, {
        key: "onCloseSideBar",
        value: function onCloseSideBar() {
          if (this.scriptTabService.openSideBar) this.scriptTabService.openSideBar = false;else this.location.back();
        }
      }, {
        key: "saveFile",
        value: function saveFile() {
          if (this.scriptTabService.tabsArr[this.scriptTabService.activeTabIndex].isModified) this.scriptTabService.saveFile.next();
        }
      }, {
        key: "saveAllFile",
        value: function saveAllFile() {
          if (this.scriptTabService.tabsArr[this.scriptTabService.activeTabIndex].isModified) this.scriptTabService.saveAllFile.next();
        }
        /*
         *   1. Create 1 U Multi Session scenario
         *   2. start debug test with nsu_start_test -S debug
         *   3. once we get TRNum In Response , send CONNECT request to TOMCAT.
         */

      }, {
        key: "createScenAndDebugTest",
        value: function createScenAndDebugTest() {
          var _this23 = this;

          var storeSaveData = {}; //temp to save data
          //for (let i = 0; tempKey.length > i; i++) {
          //  storeSaveData[tempKey[i]] = this.saveKeywordData[tempKey[i]]['data'];
          //}

          var innercontent = {};
          var tname = [];
          var schedule = [];
          var debugTRACE = [];
          var runLogicSc = [];
          var sgrp = [];
          var grbu = [];
          var gModuleMask = [];
          var gdebug = [];
          var pageThinkTime = [];
          var pageThinkTimeSec = [];
          var getInlineObj = [];
          var gContinuePageErr = [];
          var gIdleMsecs = [];
          var gNewUsronSess = [];
          var pageAsTrans = [];
          var gProxyServer = [];
          var enambeScriptHeader = [];
          var captVideo = [];
          var gTracing = [];
          var gVuTrace = [];
          var scenarioProfile = []; // array 

          tname[0] = ["Script_Test"]; //need to clarify

          schedule[0] = ["ALL", "Duration", "DURATION", "SESSIONS", this.iterationNum, 0];
          debugTRACE[0] = [1]; // if(this.selectedRunlogic == undefined)

          runLogicSc[0] = []; // else 
          //   runLogicSc[0]   = ["ALL",this.selectedRunlogic];

          sgrp[0] = ["TestGroup", "NA", "NA", "Internet", 0, this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].treePath, 1, ""];
          gTracing[0] = [4, 1, 0, 0, 0, 0];
          gVuTrace[0] = [2]; //Run virtual user as real browser

          var runverusr = 0; // if(this.runVertualUser==true && this.isRBU)
          // {
          // }

          grbu[0] = ["ALL", runverusr, 1, 0, 1, 1, 0];
          gModuleMask[0] = [0];
          gdebug[0] = [0]; // pageThinkTime[0] = ['ALL',2,this.overrideThinkTime];
          // if(this.overrideThink == true){

          pageThinkTimeSec[0] = ['ALL', 1]; // } else {
          //   pageThinkTimeSec[0] = ['ALL',0];
          // }
          // if(this.fetchInlineResource == true) {

          getInlineObj[0] = [1]; // } else {
          //   getInlineObj[0]  = [0];
          // }
          // if(this.continueOnPageError == true) {

          gContinuePageErr[0] = ['ALL', 1]; // } else {
          //   gContinuePageErr[0] = ['ALL',0];
          // }

          var reptm = 0; // if(this.enableRespTime == true){

          reptm = 1; // }
          // let tmot = this.httpTimeOut*1000;
          // let ehtrt = this.enableHttpRespTime*1000;
          // gIdleMsecs[0]      = [tmot,reptm,ehtrt];
          //Simulates A New User On Each Session & retainUserDataForSession
          // if(this.simulatesNewUser==true) {

          gNewUsronSess[0] = [1, 0]; // } else if(this.retainUserDataForSession==true) {
          //   gNewUsronSess[0]     = [0, 1];
          // } else {
          //   gNewUsronSess[0]     = [0, 0];
          // }

          var pgtrans = 0; // if(this.treatAsTransaction==true)

          {
            pgtrans = 1;
          }
          pageAsTrans[0] = [pgtrans]; //proxy settings
          // if(this.useSameProxy == true) {
          //   let httpval = 'all='+this.proxyUrl+';https='+this.proxyUrl;
          //   gProxyServer[0] = [2, httpval];
          // } else if(this.httpProxy == true && this.sslProxy==true) {
          //   let httpval = 'http='+this.proxyUrl+';https='+this.sslProxyUrl;
          //   gProxyServer[0] = [2, httpval];
          // } else if(this.httpProxy == true && this.sslProxy==false) {
          //   let httpval = 'http='+this.proxyUrl+';https=';
          //   gProxyServer[0] = [2, httpval];
          // } else if(this.httpProxy == false && this.sslProxy==true) {
          //   let httpval = 'http=;https='+this.sslProxyUrl;
          //   gProxyServer[0] = [2, httpval];
          // }
          //enable script header

          var scriptHeader = 0; // if(this.enableScriptBaseHeader==true)

          {
            scriptHeader = 1;
          }
          enambeScriptHeader[0] = [scriptHeader]; // Objects

          storeSaveData['TNAME'] = innercontent = {
            '_G': tname
          };
          storeSaveData['SCHEDULE'] = innercontent = {
            '_G': schedule
          };
          storeSaveData['DEBUG_TRACE'] = innercontent = {
            '_G': debugTRACE
          };
          storeSaveData['G_SCRIPT_RUNLOGIC'] = innercontent = {
            '_G': runLogicSc
          };
          storeSaveData['SGRP'] = innercontent = {
            '_G': sgrp
          }; // storeSaveData['G_RBU'] = innercontent = {
          //   'ALL':grbu
          // };

          storeSaveData['G_MODULEMASK'] = innercontent = {
            'ALL': gModuleMask
          };
          storeSaveData['G_DEBUG'] = innercontent = {
            'ALL': gdebug
          };
          storeSaveData['G_PAGE_THINK_TIME'] = innercontent = {
            'ALL': pageThinkTime
          };
          storeSaveData['G_OVERRIDE_RECORDED_THINK_TIME'] = innercontent = {
            'ALL': pageThinkTimeSec
          };
          storeSaveData['G_GET_NO_INLINED_OBJ'] = innercontent = {
            'ALL': getInlineObj
          };
          storeSaveData['G_CONTINUE_ON_PAGE_ERROR'] = innercontent = {
            'ALL': gContinuePageErr
          };
          storeSaveData['G_IDLE_MSECS'] = innercontent = {
            'ALL': gIdleMsecs
          };
          storeSaveData['G_NEW_USER_ON_SESSION'] = innercontent = {
            'ALL': gNewUsronSess
          };
          storeSaveData['PAGE_AS_TRANSACTION'] = innercontent = {
            '_G': pageAsTrans
          };
          storeSaveData['G_PROXY_SERVER'] = innercontent = {
            'ALL': gProxyServer
          };
          storeSaveData['G_PROXY_SERVER'] = innercontent = {
            'ALL': gProxyServer
          };
          storeSaveData['G_DISABLE_ALL_HEADER'] = innercontent = {
            'ALL': enambeScriptHeader
          }; // storeSaveData['G_RBU_CAPTURE_CLIPS'] = innercontent = {
          //   'ALL':captVideo
          // };

          storeSaveData['G_TRACING'] = innercontent = {
            'ALL': gTracing
          };
          storeSaveData['G_VUSER_TRACE'] = innercontent = {
            'ALL': gVuTrace
          };
          storeSaveData['SCENARIO_SETTINGS_PROFILE'] = innercontent = {
            '_G': scenarioProfile
          };
          var filePath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath.split("/");
          var scenName = filePath[0] + '/' + filePath[1] + '/.' + this.sessionService.session.cctx.u + '.TestScript';
          var outputData = {
            "scenMode": "0",
            "scenName": scenName,
            "userName": this.sessionService.session.cctx.u,
            "testRunNum": -1,
            "grpName": this.sessionService.session.cctx.u,
            "userRole": "admin",
            "keyValueData": storeSaveData
          };
          this.scenariosHttpService.saveHandler(outputData).subscribe(function (state) {
            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_26__["SaveHandlerLoadingState"]) {
              _this23.brkPointservice.loadingOnClick = true;
              _this23.brkPointservice.debugDisabled = true;

              _this23.onLoadingSaveHandler(state);

              return;
            }

            if (state instanceof src_app_pages_scenario_interface_scenario_state__WEBPACK_IMPORTED_MODULE_26__["SaveHandlerLoadedState"]) {
              _this23.onLoadedSaveHandler(state);

              return;
            }
          }, function (state) {
            _this23.onLoadingErrorSaveHandler(state);
          });
        }
      }, {
        key: "onLoadingSaveHandler",
        value: function onLoadingSaveHandler(state) {}
      }, {
        key: "onLoadingErrorSaveHandler",
        value: function onLoadingErrorSaveHandler(state) {
          this.brkPointservice.debugDisabled = false;
          this.brkPointservice.loadingOnClick = false;
        }
      }, {
        key: "onLoadedSaveHandler",
        value: function onLoadedSaveHandler(state) {
          var res = state.data;
          if (res.message == 'success') this.debugTest();
        }
      }, {
        key: "debugTest",
        value: function debugTest() {
          var _this24 = this;

          // this.showConsole('Starting Test scenario ...');
          var filePath = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].filePath.split("/");
          var scenName = filePath[0] + '/' + filePath[1] + '/.' + this.sessionService.session.cctx.u + '.TestScript';
          var params = {
            scenName: scenName,
            testName: 'Script_Test',
            scenMode: 0,
            userName: this.sessionService.session.cctx.u,
            role: 'admin',
            productKey: this.sessionService.session.cctx.pk,
            param: '-F',
            "debugger": true
          };
          this.scriptRestService.startTest(true, params).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["StartTestLoadingState"]) {
              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["StartTestLoadedState"]) {
              _this24.onLoadedStartTest(state);

              return;
            }
          }, function (state) {
            _this24.brkPointservice.loadingOnClick = false;
            _this24.brkPointservice.debugDisabled = false;
          });
        }
      }, {
        key: "onLoadedStartTest",
        value: function onLoadedStartTest(state) {
          var res = state.data;
          this.testRunNo = res.split("|")[1];
          this.brkPointservice.testRun = this.testRunNo;
          if (res.startsWith("SUCCESS")) this.scriptTabService.connect.next(this.testRunNo);else {
            this.brkPointservice.loadingOnClick = false;
            this.brkPointservice.debugDisabled = false;
            this.scriptMsgService.showError(res, 'Error', 'smtree');
          }
        }
      }, {
        key: "continueDebugger",
        value: function continueDebugger() {
          this.scriptTabService["continue"].next(this.testRunNo);
        }
      }, {
        key: "debuggerNext",
        value: function debuggerNext() {
          this.scriptTabService.next.next(this.testRunNo);
        }
      }, {
        key: "stopDebugger",
        value: function stopDebugger() {
          this.scriptTabService.stop.next(this.testRunNo);
        }
      }, {
        key: "changeWordWrap",
        value: function changeWordWrap() {
          this.wordWrapFlag = !this.wordWrapFlag;
          var val = this.wordWrapFlag ? _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["WORD_WRAP_ON"] : _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["WORD_WRAP_OFF"];
          this.scriptTabService.wordWrapVal = val;
          this.scriptTabService.wordWrapChanged.next(val);
        }
      }, {
        key: "openDialog",
        value: function openDialog(str) {
          var _this25 = this;

          this.dialogArr.forEach(function (ele) {
            if (str == ele.header && !ele.visible) {
              try {
                var treeObj = _this25.scriptTabService.tabDetailFromIndex[_this25.scriptTabService.activeTabIndex];

                if (treeObj.treeNode.nodeType != undefined && treeObj.treeNode.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["FLOW"]) {
                  var fp = _this25.scriptTabService.tabDetailFromIndex[_this25.scriptTabService.activeTabIndex].filePath;
                  var offset = _this25.lastOffset;
                  var limit = _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["MAXOFFSETLIMIT"];
                  var openFlow = treeObj.fileName.split(".")[0];
                  fp += ele.header == 'Debug log' ? "temp/".concat(openFlow, "/logs/ScriptRecorder_debug.log") : "temp/".concat(openFlow, "/logs/ScriptRecorder_error.log");
                  ele.visible = ele.loading = true;

                  _this25.scriptRestService.getFileData({
                    fp: fp,
                    offset: offset,
                    limit: limit
                  }).subscribe(function (state) {
                    if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["ScriptRestLoading"]) {
                      return;
                    }

                    if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["ScriptRestLoaded"]) {
                      ele.data = "";
                      ele.data = state.data.data;

                      if (ele.data == "" && !state.data.status) {
                        ele.data = "No Data Available"; //   this.scriptUtilService.errorMessage(state.data.msg);
                      } else if (ele.data == "") ele.data = "No Data Available";

                      ele.loading = false;
                      return;
                    }
                  }, function (state) {
                    ele.loading = false;

                    _this25.scriptUtilService.errorMessage("Error occured while reading log file.");
                  });
                } else {
                  _this25.scriptUtilService.infoMessage("Please select a Flow file to view log(s).");
                }
              } catch (e) {
                _this25.scriptUtilService.infoMessage("Please select a Flow file to view log(s).");
              }
            }
          });
        }
      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          this.subscriptionArr.forEach(function (subscription) {
            subscription.unsubscribe();
          });
          this.scriptTabService.editorInstances = {};
        }
      }, {
        key: "canDeactivate",
        value: function canDeactivate() {
          return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
            var unsavedFlag, _iterator4, _step4, tab, _t, _t2;

            return _regenerator().w(function (_context) {
              while (1) switch (_context.p = _context.n) {
                case 0:
                  //insert logic to check if there are pending changes here;
                  //returning true will navigate without confirmation
                  //returning false will show a confirm alert before navigating away
                  unsavedFlag = false;
                  _context.p = 1;
                  // This check is to handle case when user closes the tab then rotuer event in app.component.ts initiates blockUI which blocks the confirm dialog.
                  setTimeout(function () {//// this.blockUI.stop();
                  }, 500);
                  _iterator4 = _createForOfIteratorHelper(this.scriptTabService.tabsArr);
                  _context.p = 2;

                  _iterator4.s();

                case 3:
                  if ((_step4 = _iterator4.n()).done) {
                    _context.n = 5;
                    break;
                  }

                  tab = _step4.value;

                  if (!(tab['isModified'] != undefined && tab.isModified)) {
                    _context.n = 4;
                    break;
                  }

                  // try{
                  //     let res = await this.getWarning(tab);
                  // }
                  // catch(e){}
                  unsavedFlag = true;
                  return _context.a(3, 5);

                case 4:
                  _context.n = 3;
                  break;

                case 5:
                  _context.n = 7;
                  break;

                case 6:
                  _context.p = 6;
                  _t = _context.v;

                  _iterator4.e(_t);

                case 7:
                  _context.p = 7;

                  _iterator4.f();

                  return _context.f(7);

                case 8:
                  if (!unsavedFlag) {
                    _context.n = 10;
                    break;
                  }

                  _context.n = 9;
                  return this.getWarning();

                case 9:
                  return _context.a(2, _context.v);

                case 10:
                  this.releaseLock();

                case 11:
                  if (this.brkPointservice.stopDisabled) {
                    _context.n = 13;
                    break;
                  }

                  _context.n = 12;
                  return this.getDebugTestWarning();

                case 12:
                  return _context.a(2, _context.v);

                case 13:
                  _context.n = 15;
                  break;

                case 14:
                  _context.p = 14;
                  _t2 = _context.v;
                  console.error("can Deactivate in compponents", _t2);

                case 15:
                  return _context.a(2, Promise.resolve(true));
              }
            }, _callee, this, [[2, 6, 7, 8], [1, 14]]);
          }));
        }
      }, {
        key: "getDebugTestWarning",
        value: function getDebugTestWarning() {
          var _this26 = this;

          var messageContent = "Navigating away from the current page will stop the Debug test forcefully. Are you sure you want to proceed?";
          return new Promise(function (onFulfill, onReject) {
            _this26.confirmationService.confirm({
              message: messageContent,
              header: 'Confirmation',
              key: 'scriptTopMenu',
              accept: function accept() {
                _this26.stopDebugger();

                onFulfill(true);
              },
              reject: function reject() {
                onFulfill(false);
              }
            });
          });
        }
      }, {
        key: "getWarning",
        value: function getWarning() {
          var _this27 = this;

          var messageContent = "Are you sure you want to navigate? Any unsaved changes will be lost.";
          return new Promise(function (onFulfill, onReject) {
            _this27.confirmationService.confirm({
              message: messageContent,
              header: 'Confirmation',
              key: 'scriptTopMenu',
              accept: function accept() {
                _this27.releaseLock();

                onFulfill(true);
              },
              reject: function reject() {
                onFulfill(false);
              }
            });
          });
        }
      }, {
        key: "onVersionUpdate",
        value: function onVersionUpdate() {
          this.scriptTabService.events.refreshTab.next(this.scriptTabService.activeTabDataInfo['filePath']);
        }
      }, {
        key: "releaseLock",
        value: function releaseLock() {
          var _this28 = this;

          var fp = [];
          var payload = {};
          payload['cctx'] = this.cctxInfo;
          payload['wp'] = this.workProfileInfo;

          for (var key in this.scriptTabService.filesInEditMode) {
            var filePath = key.includes("/scripts/") ? key.substring(0, key.indexOf("/", key.indexOf("scripts") + 8)) : key;
            if (!fp.includes(filePath)) fp.push(filePath);
          }

          if (fp.length != 0) {
            payload['fp'] = fp;
            payload['type'] = 'Script';
            setTimeout(function () {
              //     this.scriptRestService.doTestAssetLockOperations(payload, 'release').subscribe(
              //     (state: Store.State) => {
              //       if (state instanceof ScriptRestLoading) { return; }
              //       if (state instanceof ScriptRestLoaded) {
              //     }
              // },
              // (state: ScriptRestError) => {
              //   console.error("Error in doTestAssetLockOperations..", state.error);
              // })
              var path = src_environments_environment__WEBPACK_IMPORTED_MODULE_29__["environment"].api.script.testAssetLock.endpoint + "/" + 'release';
              var base = src_environments_environment__WEBPACK_IMPORTED_MODULE_29__["environment"].api.core.defaultBase;

              if (_this28.sessionService.preSession.multiDc) {
                var masterURL = _this28.sessionService.preSession.dcData.filter(function (e) {
                  return e.master;
                }).map(function (e) {
                  return e.url;
                })[0];

                base = masterURL + src_environments_environment__WEBPACK_IMPORTED_MODULE_29__["environment"].api.core.defaultBase;
              }

              _this28.http.post(base + path, payload).subscribe(function (data) {});

              _this28.scriptTabService.filesInEditMode = {};
              _this28.scriptTabService.lockScriptObj = {};
            }, 2000);
          }
        }
      }, {
        key: "gettingListOfProjSubProj",
        value: function gettingListOfProjSubProj() {
          var _this29 = this;

          try {
            //To get the list of Project and SubProject
            this.subscriptionArr.push(this.smtreeService.events.onclick.subscribe(function (dataObj) {
              var type = dataObj.selected.nodeType;

              if (type == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["PRJ"]) {
                _this29.selectedProject1 = dataObj.selected.label;
                _this29.selectedProject2 = dataObj.selected.label;
              } else if (type == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SUB_PRJ"]) {
                _this29.selectedProject1 = dataObj.selected.parent.label;
                _this29.selectedProject2 = dataObj.selected.parent.label;
                _this29.selectedSubProject1 = dataObj.selected.label;
                _this29.selectedSubProject2 = dataObj.selected.label;
              } else if (type == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT"]) {
                _this29.selectedProject1 = dataObj.selected.parent.parent.label;
                _this29.selectedProject2 = dataObj.selected.parent.parent.label;
                _this29.selectedSubProject1 = dataObj.selected.parent.label;
                _this29.selectedSubProject2 = dataObj.selected.parent.label;
                _this29.selectedScript1 = dataObj.selected.label;
              } else {
                _this29.selectedProject1 = dataObj.selected.parent.parent.parent.label;
                _this29.selectedProject2 = dataObj.selected.parent.parent.parent.label;
                _this29.selectedSubProject1 = dataObj.selected.parent.parent.label;
                _this29.selectedSubProject2 = dataObj.selected.parent.parent.label;
                _this29.selectedScript1 = dataObj.selected.parent.label;
              } //this._cavCommonConnverterService.getPrjSubList().then((data) => {


              _this29.getProjSubprojScriData(_this29.selectedProject1, " "); //});


              _this29.getScriptList(_this29.selectedProject1, _this29.selectedSubProject1, "");
            }));
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "getProjSubprojScriData",
        value: function getProjSubprojScriData(projectName, onChange) {
          try {
            this.projects = [];
            this.projects2 = [];
            this.projects.push({
              label: '--Select Project--',
              value: null
            });
            this.projects2.push({
              label: '--Select Project--',
              value: null
            });
            var selectFirstProject = [];

            var _iterator5 = _createForOfIteratorHelper(this.smtreeService.treeData[0].children),
                _step5;

            try {
              for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                var getTreeNode = _step5.value;
                selectFirstProject.push(getTreeNode.label);
                this.projects.push({
                  label: getTreeNode.label,
                  value: getTreeNode.label
                }); //first project dropdown

                this.projects2.push({
                  label: getTreeNode.label,
                  value: getTreeNode.label
                }); //second project drop down
              }
            } catch (err) {
              _iterator5.e(err);
            } finally {
              _iterator5.f();
            }

            this.showSubProjList({
              value: projectName
            }, onChange);
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "showSubProjList",
        value: function showSubProjList(projectName, onChange) {
          try {
            var subPrjArr = [];
            var subPrjArr2 = [];

            if (onChange === "onChange1") {
              this.subProjects = [];
              this.subProjects.push({
                label: '--Select Sub Project--',
                value: null
              });

              var _iterator6 = _createForOfIteratorHelper(this.smtreeService.treeData[0].children),
                  _step6;

              try {
                for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                  var getTreeNode = _step6.value;

                  if (getTreeNode.label == projectName.value) {
                    var _iterator7 = _createForOfIteratorHelper(getTreeNode.children),
                        _step7;

                    try {
                      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
                        var subProjectList = _step7.value;
                        subPrjArr.push(subProjectList.label);
                        this.subProjects.push({
                          label: subProjectList.label,
                          value: subProjectList.label
                        }); //first sub-project dropdown 
                      }
                    } catch (err) {
                      _iterator7.e(err);
                    } finally {
                      _iterator7.f();
                    }
                  }
                }
              } catch (err) {
                _iterator6.e(err);
              } finally {
                _iterator6.f();
              }

              this.selectedSubProject1 = subPrjArr[0];
              this.getScriptList(projectName.value, this.selectedSubProject1, onChange);
            } else if (onChange === "onChange2") {
              this.subProjects2 = [];
              this.subProjects2.push({
                label: '--Select Sub Project--',
                value: null
              });

              var _iterator8 = _createForOfIteratorHelper(this.smtreeService.treeData[0].children),
                  _step8;

              try {
                for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
                  var _getTreeNode = _step8.value;

                  if (_getTreeNode.label == projectName.value) {
                    var _iterator9 = _createForOfIteratorHelper(_getTreeNode.children),
                        _step9;

                    try {
                      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
                        var _subProjectList = _step9.value;
                        subPrjArr.push(_subProjectList.label);
                        this.subProjects2.push({
                          label: _subProjectList.label,
                          value: _subProjectList.label
                        }); //first sub-project dropdown 
                      }
                    } catch (err) {
                      _iterator9.e(err);
                    } finally {
                      _iterator9.f();
                    }
                  }
                }
              } catch (err) {
                _iterator8.e(err);
              } finally {
                _iterator8.f();
              }

              this.selectedSubProject2 = subPrjArr[0];
              this.getScriptList(projectName.value, this.selectedSubProject2, onChange);
            } else {
              this.subProjects = [];
              this.subProjects2 = [];
              this.subProjects.push({
                label: '--Select Sub Project--',
                value: null
              });
              this.subProjects2.push({
                label: '--Select Sub Project--',
                value: null
              });

              var _iterator0 = _createForOfIteratorHelper(this.smtreeService.treeData[0].children),
                  _step0;

              try {
                for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
                  var _getTreeNode2 = _step0.value;

                  if (_getTreeNode2.label == projectName.value) {
                    var _iterator1 = _createForOfIteratorHelper(_getTreeNode2.children),
                        _step1;

                    try {
                      for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
                        var _subProjectList2 = _step1.value;
                        subPrjArr.push(_subProjectList2.label);
                        subPrjArr2.push(_subProjectList2.label);
                        this.subProjects.push({
                          label: _subProjectList2.label,
                          value: _subProjectList2.label
                        }); //first sub-project dropdown

                        this.subProjects2.push({
                          label: _subProjectList2.label,
                          value: _subProjectList2.label
                        }); //second sub-project drop down 
                      }
                    } catch (err) {
                      _iterator1.e(err);
                    } finally {
                      _iterator1.f();
                    }
                  }
                }
              } catch (err) {
                _iterator0.e(err);
              } finally {
                _iterator0.f();
              }

              this.selectedSubProject1 = subPrjArr[0];
              this.selectedSubProject2 = subPrjArr2[0];
            }
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "getScriptList",
        value: function getScriptList(proj, subProj, isChange) {
          var _this30 = this;

          try {
            if (isChange == "onChange1") {
              var scriptListObj = this.smtreeService.findNodeInTree(proj + "/" + subProj + "/scripts/", _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ALL_SCRIPTS"]);
              this.scriptsList1 = [];
              scriptListObj.forEach(function (element) {
                _this30.scriptsList1.push({
                  label: element.label,
                  value: element.label
                });
              });
              this.selectedScript1 = this.scriptsList1[0].value;
            } else if (isChange == "onChange2") {
              var _scriptListObj = this.smtreeService.findNodeInTree(proj + "/" + subProj + "/scripts/", _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ALL_SCRIPTS"]);

              this.scriptsList2 = [];

              _scriptListObj.forEach(function (element) {
                _this30.scriptsList2.push({
                  label: element.label,
                  value: element.label
                });
              });

              this.selectedScript2 = this.scriptsList2[0].value;
            } else {
              var _scriptListObj2 = this.smtreeService.findNodeInTree(proj + "/" + subProj + "/scripts/", _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["ALL_SCRIPTS"]);

              this.scriptsList1 = [];
              this.scriptsList2 = [];

              _scriptListObj2.forEach(function (element) {
                _this30.scriptsList1.push({
                  label: element.label,
                  value: element.label
                });

                _this30.scriptsList2.push({
                  label: element.label,
                  value: element.label
                });
              });

              this.selectedScript2 = this.scriptsList2[0].value;
            }
          } catch (error) {
            console.error(error);
          }
        }
      }, {
        key: "onFieldChangeProj1",
        value: function onFieldChangeProj1() {
          this.showSubProjList({
            value: this.selectedProject1
          }, "onChange1");
        }
      }, {
        key: "onFieldChangeSubproj1",
        value: function onFieldChangeSubproj1() {
          this.getScriptList(this.selectedProject1, this.selectedSubProject1, "onChange1");
        }
      }, {
        key: "onFieldChangeProj2",
        value: function onFieldChangeProj2() {
          this.showSubProjList({
            value: this.selectedProject2
          }, "onChange2");
        }
      }, {
        key: "onFieldChangeSubproj2",
        value: function onFieldChangeSubproj2() {
          this.getScriptList(this.selectedProject2, this.selectedSubProject2, "onChange2");
        }
      }, {
        key: "showCompScrDialog",
        value: function showCompScrDialog() {
          try {
            this.smtreeService.scriptPath1 = this.selectedProject1 + "/" + this.selectedSubProject1 + "/scripts/" + this.selectedScript1;
            this.smtreeService.scriptPath2 = this.selectedProject2 + "/" + this.selectedSubProject2 + "/scripts/" + this.selectedScript2;

            if (this.smtreeService.scriptPath1 == this.smtreeService.scriptPath2) {
              this.scriptUtilService.errorMessage("Cannot compare same script.");
              return;
            }

            this.scriptUtilService.openScriptCompareFrom = 'script';
            this.ref = this.dialogService.open(_script_compare_script_compare_component__WEBPACK_IMPORTED_MODULE_23__["ScriptCompareComponent"], {
              header: 'Compare Scripts',
              width: '99vw',
              styleClass: 'foterDialog',
              baseZIndex: 10000,
              showHeader: true,
              style: {
                'padding': 'unset'
              }
            });
          } catch (e) {
            console.error(e);
          }
        }
      }, {
        key: "synchronizeTree",
        value: function synchronizeTree(syncType) {
          var addFiles = false;
          var isForAll = false;
          this.smtreeService.showSyncSpinner = true; // extract proj, sub-proj and script name from active tab

          var activeTabPath = this.scriptTabService.activeTabDataInfo["treePath"].split("/");

          if (syncType == 'all') {
            isForAll = true;
            addFiles = true; //this.smtreeService.getSyncScriptTree(addFiles, isForAll, null, null, null, syncType); // if all script
            //this.smtreeService.getSyncScriptTree(addFiles, isForAll, this.objectFromScriptTree.project, null, null, syncType);

            this.smtreeService.getSyncScriptTree(addFiles, isForAll, activeTabPath[0].trim(), null, null, syncType);
          } else if (syncType == 'project') {
            isForAll = true;
            addFiles = true; //this.smtreeService.getSyncScriptTree(addFiles, isForAll, this.objectFromScriptTree.project, null, null, syncType);

            this.smtreeService.getSyncScriptTree(addFiles, isForAll, activeTabPath[0].trim(), null, null, syncType);
          } else if (syncType == 'subproject') {
            isForAll = true;
            addFiles = true; //this.smtreeService.getSyncScriptTree(addFiles, isForAll, this.objectFromScriptTree.project, this.objectFromScriptTree.subproject, null, syncType);

            this.smtreeService.getSyncScriptTree(addFiles, isForAll, activeTabPath[0].trim(), activeTabPath[1].trim(), null, syncType);
          } else if (syncType == 'script') {
            addFiles = true; //this.smtreeService.getSyncScriptTree(addFiles, isForAll, this.objectFromScriptTree.project, this.objectFromScriptTree.subproject, this.objectFromScriptTree.script, syncType);

            this.smtreeService.getSyncScriptTree(addFiles, isForAll, activeTabPath[0].trim(), activeTabPath[1].trim(), activeTabPath[2].trim(), syncType);
          }
        }
      }, {
        key: "getScriptCompile",
        value: function getScriptCompile() {
          var _this31 = this;

          this.nodeActionClick = true;
          var path = this.scriptTabService.tabDetailFromIndex[this.scriptTabService.activeTabIndex].treePath;
          var msgPath = path.slice(0, -1);
          this.scriptUtilService.openConsoleLog = true;
          this.scriptUtilService.setisshow("<b>Script '" + msgPath + "' compilation in progress ...</b>");
          this.scriptRestService.getScriptCompile(path).subscribe(function (state) {
            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["ScriptCompileLoadingState"]) {
              _this31.onLoadingCompile(state);

              return;
            }

            if (state instanceof _services_script_state__WEBPACK_IMPORTED_MODULE_7__["ScriptCompileLoadedState"]) {
              _this31.onScriptCompile(state);

              _this31.nodeActionClick = false;
              return;
            }
          }, function (state) {
            _this31.onLoadingErrorCompile(state);
          });
        }
      }, {
        key: "onScriptCompile",
        value: function onScriptCompile(state) {
          var details = state.data.output.join('');
          var severe = '';
          var title = '';

          if (state.data.status) {
            this.statusforoutputlog = state.data.status;
            severe = "success";
            title = 'Compiled Successfully';
            this.showSuccess(severe, title, details);
            this.scriptUtilService.setisshow(details);
          } else {
            this.scriptUtilService.setisshow("<b>Error: </b>");
            this.errormsg = details;
            this.statusforoutputlog = false;
            this.scriptUtilService.setisshow('<pre class="text-wrap">' + state.data.output.join('<br>') + '</pre>'); // this.isshow = true;

            severe = "error";
            title = 'Compile Failed';
            this.showSuccess(severe, title, details);
          }

          this.compileInProgress = false;
        }
      }, {
        key: "showSuccess",
        value: function showSuccess(severe, title, details) {
          if (severe == 'error') this.scriptMsgService.showError(details, 'Error', 'smtree');else this.scriptMsgService.showSuccess(details, title, 'smtree');
        }
      }, {
        key: "onLoadingErrorCompile",
        value: function onLoadingErrorCompile(state) {
          this.compileInProgress = false;
        }
      }, {
        key: "onLoadingCompile",
        value: function onLoadingCompile(state) {
          this.compileInProgress = true;
        }
      }, {
        key: "showTestScript",
        value: function showTestScript(filePathStr) {
          var node = this.smtreeService.findScriptNodeInParent(this.scriptTabService.activeTabDataInfo['treeNode']);

          if (node.type == 'script') {
            this.smtreeService.events.onclick.next({
              event: node.parent,
              selected: node,
              type: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["TESTSCRIPT"]
            });
            var fileToOpen;
            if (filePathStr == undefined) filePathStr = this.smtreeService.getFilePath(node, "", true);
            var treePath = this.smtreeService.getFilePath(node, "", false);
            fileToOpen = {
              filePath: filePathStr,
              treePath: treePath,
              fileName: 'Test Script [' + node.label + ']',
              type: _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["TESTSCRIPT"] + '',
              treeNode: node
            };
            this.scriptUtilService.fileOpen(fileToOpen);
          }
        }
      }, {
        key: "showHelp",
        value: function showHelp() {
          this.help.show(this.helpMetaData[this.parameterDataService.selectedParameter].help, this.helpMetaData[this.parameterDataService.selectedParameter].title, 'script');
        } //need to move to service

      }, {
        key: "getScriptType",
        value: function getScriptType(node) {
          if (node.nodeType == _constants_script_constants__WEBPACK_IMPORTED_MODULE_4__["SCRIPT"]) return node.info.SCRIPT_TYPE;
          return this.getScriptType(node.parent);
        }
      }, {
        key: "toggleScriptTree",
        value: function toggleScriptTree() {
          if (this.scriptTabService.treeWidth == 0) this.scriptTabService.treeWidth = 25;else this.scriptTabService.treeWidth = 0;
        }
      }]);
    }();

    ScriptTopMenuComponent.ctorParameters = function () {
      return [{
        type: _services_script_utils_service__WEBPACK_IMPORTED_MODULE_6__["ScriptUtilService"]
      }, {
        type: _services_script_rest_service__WEBPACK_IMPORTED_MODULE_5__["ScriptRestService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"]
      }, {
        type: src_app_shared_header_work_profile_services_work_profile_active_service__WEBPACK_IMPORTED_MODULE_3__["WorkProfileActiveService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_12__["Router"]
      }, {
        type: _load_test_services_load_test_common_services__WEBPACK_IMPORTED_MODULE_15__["LoadTestCommonService"]
      }, {
        type: src_app_shared_cav_toast_service_cav_message_service__WEBPACK_IMPORTED_MODULE_33__["CavMessageService"]
      }, {
        type: _script_tab_script_tab_data_service__WEBPACK_IMPORTED_MODULE_17__["ScriptTabDataService"]
      }, {
        type: _parameter_components_add_parameter_parameter_data_service__WEBPACK_IMPORTED_MODULE_18__["ParameterDataService"]
      }, {
        type: _sm_tree_sm_tree_service__WEBPACK_IMPORTED_MODULE_19__["SmTreeService"]
      }, {
        type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_20__["DomSanitizer"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_16__["ConfirmationService"]
      }, {
        type: primeng_dynamicdialog__WEBPACK_IMPORTED_MODULE_24__["DialogService"]
      }, {
        type: _services_cav_common_converter_service__WEBPACK_IMPORTED_MODULE_25__["CavCommonConverterService"]
      }, {
        type: src_app_pages_scenario_service_scenario_http_service__WEBPACK_IMPORTED_MODULE_34__["ScenarioHttpService"]
      }, {
        type: _services_breakpoint_service__WEBPACK_IMPORTED_MODULE_27__["BreakpointService"]
      }, {
        type: _angular_common_http__WEBPACK_IMPORTED_MODULE_30__["HttpClient"]
      }, {
        type: _services_script_msg_service__WEBPACK_IMPORTED_MODULE_32__["ScriptMsgService"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_12__["ActivatedRoute"]
      }, {
        type: _angular_common__WEBPACK_IMPORTED_MODULE_35__["Location"]
      }];
    };

    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_parameter_components_parameter_list_parameter_list_component__WEBPACK_IMPORTED_MODULE_8__["ParameterListComponent"], {
      read: _parameter_components_parameter_list_parameter_list_component__WEBPACK_IMPORTED_MODULE_8__["ParameterListComponent"]
    })], ScriptTopMenuComponent.prototype, "ParameterList", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_checkpoint_checkpoints_list_checkpoints_list_component__WEBPACK_IMPORTED_MODULE_9__["CheckpointsListComponent"], {
      read: _checkpoint_checkpoints_list_checkpoints_list_component__WEBPACK_IMPORTED_MODULE_9__["CheckpointsListComponent"]
    })], ScriptTopMenuComponent.prototype, "CheckpointsList", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_new_file_directory_new_file_directory_component__WEBPACK_IMPORTED_MODULE_10__["NewFileDirectoryComponent"], {
      read: _new_file_directory_new_file_directory_component__WEBPACK_IMPORTED_MODULE_10__["NewFileDirectoryComponent"]
    })], ScriptTopMenuComponent.prototype, "NewFileDirectory", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(src_app_shared_help_help_component__WEBPACK_IMPORTED_MODULE_28__["HelpComponent"], {
      read: src_app_shared_help_help_component__WEBPACK_IMPORTED_MODULE_28__["HelpComponent"]
    })], ScriptTopMenuComponent.prototype, "help", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_create_flow_create_flow_component__WEBPACK_IMPORTED_MODULE_11__["CreateFlowComponent"], {
      read: _create_flow_create_flow_component__WEBPACK_IMPORTED_MODULE_11__["CreateFlowComponent"]
    })], ScriptTopMenuComponent.prototype, "CreateFlow", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_load_test_cav_scen_version_commit_cav_scen_version_commit_component__WEBPACK_IMPORTED_MODULE_13__["CavScenVersionCommitComponent"], {
      read: _load_test_cav_scen_version_commit_cav_scen_version_commit_component__WEBPACK_IMPORTED_MODULE_13__["CavScenVersionCommitComponent"]
    })], ScriptTopMenuComponent.prototype, "versionCommit", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_load_test_cav_scen_version_log_cav_scen_version_log_component__WEBPACK_IMPORTED_MODULE_14__["CavScenVersionLogComponent"], {
      read: _load_test_cav_scen_version_log_cav_scen_version_log_component__WEBPACK_IMPORTED_MODULE_14__["CavScenVersionLogComponent"]
    })], ScriptTopMenuComponent.prototype, "versionLogs", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_page_list_script_page_list_component__WEBPACK_IMPORTED_MODULE_21__["ScriptPageListComponent"], {
      read: _page_list_script_page_list_component__WEBPACK_IMPORTED_MODULE_21__["ScriptPageListComponent"]
    })], ScriptTopMenuComponent.prototype, "ScriptPageList", void 0);
    Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_external_libraries_external_libraries_component__WEBPACK_IMPORTED_MODULE_22__["ExternalLibrariesComponent"], {
      read: _external_libraries_external_libraries_component__WEBPACK_IMPORTED_MODULE_22__["ExternalLibrariesComponent"]
    })], ScriptTopMenuComponent.prototype, "ExternalLibraries", void 0);
    ScriptTopMenuComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
      selector: 'app-script-topmenu',
      template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! raw-loader!./script-topmenu.component.html */
      "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.html"))["default"],
      encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
      styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(
      /*! ./script-topmenu.component.scss */
      "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.component.scss"))["default"]]
    })], ScriptTopMenuComponent);
    /***/
  },

  /***/
  "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.module.ts":
  /*!****************************************************************************************************!*\
    !*** ./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.module.ts ***!
    \****************************************************************************************************/

  /*! exports provided: ScriptTopMenuModule */

  /***/
  function _src_app_pages_home_scriptManager_scriptEditHome_scriptTopmenu_scriptTopmenuModuleTs(module, __webpack_exports__, __webpack_require__) {
    "use strict";

    __webpack_require__.r(__webpack_exports__);
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "ScriptTopMenuModule", function () {
      return ScriptTopMenuModule;
    });
    /* 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 _script_topmenu_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
    /*! ./script-topmenu.component */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-topmenu.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");
    /* harmony import */


    var primeng_dialog__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
    /*! primeng/dialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
    /* harmony import */


    var primeng_tabmenu__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
    /*! primeng/tabmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
    /* harmony import */


    var _runlogic_home_runlogic_home_module__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
    /*! ../../runlogic-home/runlogic-home.module */
    "./src/app/pages/home/script-manager/runlogic-home/runlogic-home.module.ts");
    /* harmony import */


    var _play_runlogic_play_runlogic_module__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
    /*! ../../play-runlogic/play-runlogic.module */
    "./src/app/pages/home/script-manager/play-runlogic/play-runlogic.module.ts");
    /* harmony import */


    var _add_child_node_add_child_node_module__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
    /*! ../../add-child-node/add-child-node.module */
    "./src/app/pages/home/script-manager/add-child-node/add-child-node.module.ts");
    /* harmony import */


    var _current_node_properties_current_node_properties_module__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
    /*! ../../current-node-properties/current-node-properties.module */
    "./src/app/pages/home/script-manager/current-node-properties/current-node-properties.module.ts");
    /* harmony import */


    var _script_editor_script_editor_module__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(
    /*! ../../script-editor/script-editor.module */
    "./src/app/pages/home/script-manager/script-editor/script-editor.module.ts");
    /* harmony import */


    var primeng_tieredmenu__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(
    /*! primeng/tieredmenu */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tieredmenu.js");
    /* harmony import */


    var _parameter_components_parameter_list_parameter_list_module__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(
    /*! ../../parameter/components/parameter-list/parameter-list.module */
    "./src/app/pages/home/script-manager/parameter/components/parameter-list/parameter-list.module.ts");
    /* harmony import */


    var _checkpoint_checkpoints_list_checkpoints_list_module__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(
    /*! ../../checkpoint/checkpoints-list/checkpoints-list.module */
    "./src/app/pages/home/script-manager/checkpoint/checkpoints-list/checkpoints-list.module.ts");
    /* harmony import */


    var _new_file_directory_new_file_directory_module__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(
    /*! ./new-file-directory/new-file-directory.module */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/new-file-directory/new-file-directory.module.ts");
    /* harmony import */


    var _create_flow_create_flow_module__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(
    /*! ./create-flow/create-flow.module */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/create-flow/create-flow.module.ts");
    /* harmony import */


    var _load_test_cav_scen_version_log_cav_scen_version_log_module__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(
    /*! ../../../load-test/cav-scen-version-log/cav-scen-version-log.module */
    "./src/app/pages/home/load-test/cav-scen-version-log/cav-scen-version-log.module.ts");
    /* harmony import */


    var _load_test_cav_scen_version_commit_cav_scen_version_commit_module__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(
    /*! ../../../load-test/cav-scen-version-commit/cav-scen-version-commit.module */
    "./src/app/pages/home/load-test/cav-scen-version-commit/cav-scen-version-commit.module.ts");
    /* harmony import */


    var _script_tab_script_tab_module__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(
    /*! ./script-tab/script-tab.module */
    "./src/app/pages/home/script-manager/script-edit-home/script-topmenu/script-tab/script-tab.module.ts");
    /* harmony import */


    var _page_list_script_page_list_module__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(
    /*! ../../page-list/script-page-list.module */
    "./src/app/pages/home/script-manager/page-list/script-page-list.module.ts");
    /* harmony import */


    var _external_libraries_external_libraries_module__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(
    /*! ../../external-libraries/external-libraries.module */
    "./src/app/pages/home/script-manager/external-libraries/external-libraries.module.ts");
    /* harmony import */


    var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
    /*! primeng/overlaypanel */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-overlaypanel.js");
    /* harmony import */


    var _load_test_cav_dev_routing_guard__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(
    /*! ../../../load-test/cav-dev-routing.guard */
    "./src/app/pages/home/load-test/cav-dev-routing.guard.ts");
    /* harmony import */


    var primeng_dynamicdialog__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(
    /*! primeng/dynamicdialog */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dynamicdialog.js");
    /* harmony import */


    var _script_compare_script_compare_module__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(
    /*! ../../script-compare/script-compare.module */
    "./src/app/pages/home/script-manager/script-compare/script-compare.module.ts");
    /* harmony import */


    var _services_cav_common_converter_service__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(
    /*! ../../services/cav-common-converter.service */
    "./src/app/pages/home/script-manager/services/cav-common-converter.service.ts");
    /* harmony import */


    var primeng_spinner__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
    /*! primeng/spinner */
    "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-spinner.js");
    /* harmony import */


    var src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(
    /*! src/app/shared/help/help.module */
    "./src/app/shared/help/help.module.ts"); // import { StartTransactionModule } from './start-transaction/start-transaction.module';	


    var routes = [{
      path: '',
      component: _script_topmenu_component__WEBPACK_IMPORTED_MODULE_4__["ScriptTopMenuComponent"],
      canDeactivate: [_load_test_cav_dev_routing_guard__WEBPACK_IMPORTED_MODULE_45__["CavDevRoutingGuard"]],
      children: [{
        path: 'api',
        loadChildren: function loadChildren() {
          return __webpack_require__.e(
          /*! import() | shared-cav-api-cav-api-module */
          "shared-cav-api-cav-api-module").then(__webpack_require__.bind(null,
          /*! ../../../../../shared/cav-api/cav-api.module */
          "./src/app/shared/cav-api/cav-api.module.ts")).then(function (m) {
            return m.CavApiModule;
          });
        }
      }, {
        path: 'startTx',
        loadChildren: function loadChildren() {
          return __webpack_require__.e(
          /*! import() | Transaction-start-transaction-start-transaction-module */
          "Transaction-start-transaction-start-transaction-module").then(__webpack_require__.bind(null,
          /*! ../../Transaction/start-transaction/start-transaction.module */
          "./src/app/pages/home/script-manager/Transaction/start-transaction/start-transaction.module.ts")).then(function (m) {
            return m.StartTransactionModule;
          });
        }
      }, {
        path: 'endTx',
        loadChildren: function loadChildren() {
          return __webpack_require__.e(
          /*! import() | Transaction-end-transaction-end-transaction-module */
          "Transaction-end-transaction-end-transaction-module").then(__webpack_require__.bind(null,
          /*! ../../Transaction/end-transaction/end-transaction.module */
          "./src/app/pages/home/script-manager/Transaction/end-transaction/end-transaction.module.ts")).then(function (m) {
            return m.EndTransactionModule;
          });
        }
      }, {
        path: 'startEndTx',
        loadChildren: function loadChildren() {
          return __webpack_require__.e(
          /*! import() | Transaction-start-end-transaction-start-end-transaction-module */
          "Transaction-start-end-transaction-start-end-transaction-module").then(__webpack_require__.bind(null,
          /*! ../../Transaction/start-end-transaction/start-end-transaction.module */
          "./src/app/pages/home/script-manager/Transaction/start-end-transaction/start-end-transaction.module.ts")).then(function (m) {
            return m.StartEndTransactionModule;
          });
        }
      }, {
        path: 'addParameter',
        loadChildren: function loadChildren() {
          return Promise.all(
          /*! import() | parameter-components-add-parameter-add-parameter-module */
          [__webpack_require__.e("default~checkpoint-add-checkpoints-add-checkpoints-module~parameter-components-add-parameter-add-par~1954d724"), __webpack_require__.e("parameter-components-add-parameter-add-parameter-module")]).then(__webpack_require__.bind(null,
          /*! ../../parameter/components/add-parameter/add-parameter.module */
          "./src/app/pages/home/script-manager/parameter/components/add-parameter/add-parameter.module.ts")).then(function (m) {
            return m.AddParameterModule;
          });
        }
      }, {
        path: 'addCheckpoint',
        loadChildren: function loadChildren() {
          return Promise.all(
          /*! import() | checkpoint-add-checkpoints-add-checkpoints-module */
          [__webpack_require__.e("default~checkpoint-add-checkpoints-add-checkpoints-module~parameter-components-add-parameter-add-par~1954d724"), __webpack_require__.e("checkpoint-add-checkpoints-add-checkpoints-module")]).then(__webpack_require__.bind(null,
          /*! ../../checkpoint/add-checkpoints/add-checkpoints.module */
          "./src/app/pages/home/script-manager/checkpoint/add-checkpoints/add-checkpoints.module.ts")).then(function (m) {
            return m.AddCheckpointsModule;
          });
        }
      }]
    } // {
    //     path: 'runlogic-calculator', component: RunlogicCalculatorComponent,
    //     loadChildren: () => import('../../runlogic-calculator/runlogic-calculator.module').then((m) => m.RunlogicCalculatorModule),
    // },
    ];
    var components = [_script_topmenu_component__WEBPACK_IMPORTED_MODULE_4__["ScriptTopMenuComponent"]];
    var imports = [_add_child_node_add_child_node_module__WEBPACK_IMPORTED_MODULE_31__["AddChildNodeModule"], _current_node_properties_current_node_properties_module__WEBPACK_IMPORTED_MODULE_32__["CurrentNodePropertiesModule"], _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__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_6__["ToolbarModule"], primeng__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_6__["TabViewModule"], primeng_confirmdialog__WEBPACK_IMPORTED_MODULE_19__["ConfirmDialogModule"], primeng_messages__WEBPACK_IMPORTED_MODULE_20__["MessagesModule"], primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__["SidebarModule"], primeng_lightbox__WEBPACK_IMPORTED_MODULE_22__["LightboxModule"], primeng_treetable__WEBPACK_IMPORTED_MODULE_23__["TreeTableModule"], primeng_inputnumber__WEBPACK_IMPORTED_MODULE_24__["InputNumberModule"], primeng_dialog__WEBPACK_IMPORTED_MODULE_27__["DialogModule"], primeng_tabmenu__WEBPACK_IMPORTED_MODULE_28__["TabMenuModule"], _runlogic_home_runlogic_home_module__WEBPACK_IMPORTED_MODULE_29__["RunLogicHomeModule"], _play_runlogic_play_runlogic_module__WEBPACK_IMPORTED_MODULE_30__["PlayRunlogicModule"], _script_editor_script_editor_module__WEBPACK_IMPORTED_MODULE_33__["ScriptEditorModule"], primeng_spinner__WEBPACK_IMPORTED_MODULE_49__["SpinnerModule"], // StartTransactionModule,	
    // EndTransactionModule,	
    // StartEndTransactionModule,	
    // AddParameterModule,	
    _parameter_components_parameter_list_parameter_list_module__WEBPACK_IMPORTED_MODULE_35__["ParameterListModule"], _checkpoint_checkpoints_list_checkpoints_list_module__WEBPACK_IMPORTED_MODULE_36__["CheckpointsListModule"], _new_file_directory_new_file_directory_module__WEBPACK_IMPORTED_MODULE_37__["NewFileDirectoryModule"], _create_flow_create_flow_module__WEBPACK_IMPORTED_MODULE_38__["CreateFlowModule"], _load_test_cav_scen_version_commit_cav_scen_version_commit_module__WEBPACK_IMPORTED_MODULE_40__["CavScenVersionCommitModule"], _load_test_cav_scen_version_log_cav_scen_version_log_module__WEBPACK_IMPORTED_MODULE_39__["CavScenVersionLogModule"], _script_tab_script_tab_module__WEBPACK_IMPORTED_MODULE_41__["ScriptTabModule"], _page_list_script_page_list_module__WEBPACK_IMPORTED_MODULE_42__["ScriptPageListModule"], _external_libraries_external_libraries_module__WEBPACK_IMPORTED_MODULE_43__["ExternalLibrariesModule"], primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_44__["OverlayPanelModule"], primeng_tieredmenu__WEBPACK_IMPORTED_MODULE_34__["TieredMenuModule"], primeng_dynamicdialog__WEBPACK_IMPORTED_MODULE_46__["DynamicDialogModule"], _script_compare_script_compare_module__WEBPACK_IMPORTED_MODULE_47__["ScriptCompareModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_50__["HelpModule"]];

    var ScriptTopMenuModule = /*#__PURE__*/_createClass(function ScriptTopMenuModule() {
      _classCallCheck(this, ScriptTopMenuModule);
    });

    ScriptTopMenuModule = 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"], components],
      providers: [_services_cav_common_converter_service__WEBPACK_IMPORTED_MODULE_48__["CavCommonConverterService"]]
    })], ScriptTopMenuModule);
    /***/
  }
}]);