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([["netocean-jms-settings-netocean-jms-settings-module"], {
  /***/
  "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.html":
  /*!*************************************************************************************************************************************************!*\
    !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.html ***!
    \*************************************************************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "<div class=\"ns-scenario mn-6\">\n  <div class=\"overflow\" style=\"height: calc(100vh - 170px)\">  \n  <p-panel styleClass=\"net-panel1 m-6\" header=\"Messaging Service Provider Settings\">\n    <div class=\"p-grid p-align-center mb-10 pb-6\">\n      <div class=\"form-group p-col-3\">\n        <label for=\"jmsType\" class=\"control-label p-col-4\">Vendor</label>\n        <div class=\"p-col-8\">\n          <p-dropdown [options]=\"jmsType\" (onChange)=\"changeJmsKeyword()\" [(ngModel)]=\"enablekeyword\"></p-dropdown>\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-2\" *ngIf=\"enablekeyword == 'tibco'\">\n        <!-- <label class=\"control-label p-col-4\">Connection</label> -->\n         <div class=\"p-col-12\">\n        <p-checkbox binary=\"true\" label=\"Use SSL Connection\" [(ngModel)]=\"enableConnection\"  \n        (onChange)=\"changeConnection()\"></p-checkbox>\n\n        <!-- <p-checkbox name=\"group1\" binary=\"true\" label=\"Use SSL\" [(ngModel)]=\"enableConnection\"  \n        (change)=\"changeConnection()\"></p-checkbox> -->\n         </div>\n  \n        <!-- <div *ngIf=\"enablekeyword == 'tibco'\" class=\"p-col-8\">\n            <p-dropdown  [options]=\"connectionType\" (onChange)=\"changeConnection()\" [(ngModel)]=\"enableConnection\"></p-dropdown>\n        </div>\n        <div  *ngIf=\"enablekeyword == 'ibm'\" class=\"p-col-8\">\n            <p-dropdown  [options]=\"connectionTypeibm\" [(ngModel)]=\"enableConnection\"></p-dropdown>\n        </div> -->\n    </div>\n  \n      <div class=\"form-group p-col-4\">\n        <label class=\"control-label p-col-4\"> Mode \n        </label>\n        <div class=\"p-col-6\">\n          <p-dropdown dropdownIcon=\"icons8 icons8-expand-arrow\" [options]=\"modeType\"\n            (onChange)=\"changeMode()\" [(ngModel)]=\"mode\" [disabled]=\"disableall\"></p-dropdown>\n        </div>\n        <div class=\"p-col-2\">\n            <i class=\"icons8 icons8-info\" (mouseenter)=\"modeTypeHelp.show($event)\"\n            (mouseleave)=\"modeTypeHelp.hide()\"></i>\n        </div>\n        </div>\n      </div>\n  </p-panel>\n\n  <p-overlayPanel #modeTypeHelp class=\"popHover\" styleClass=\"width-250\">\n    <p>If the mode is set to <strong>Consume,</strong> the message will be consumed and discarded.</p>\n    <p>If the mode is <strong>Forward,</strong> the message will be consumed and then forwarded to the destination after applying any find-and-replace parameters (if applicable).</p>\n  </p-overlayPanel>\n  \n  <p-panel styleClass=\"net-panel1 m-6\" header=\"Source Settings\">\n    <div class=\"p-grid p-align-center mb-10 pb-6\">\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Server</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" placeholder=\"IP/Host Name\" pInputText type=\"text\"\n          [disabled]=\"disableall\" (input)=\"change($event)\" class=\"w-100-p\" [(ngModel)]=\"serverip\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Port</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"number\" (input)=\"change($event)\" class=\"w-100-p\" [disabled]=\"disableall\" [(ngModel)]=\"sourceport\" (keypress)=\"isNumCheck($event)\">\n        </div>\n      </div>\n\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword!='kaf'\">\n        <label class=\"control-label p-col-4\">User Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\" [(ngModel)]=\"username\"\n          [disabled]=\"disableall\" (input)=\"change($event)\">\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword!='kaf'\">\n        <label class=\"control-label p-col-4\">Password</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"password\" class=\"w-100-p\" (input)=\"change($event)\" [(ngModel)]=\"password\"\n          [disabled]=\"disableall\">\n        </div>\n      </div>\n\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword == 'kaf'\">\n  \n        <label class=\"control-label p-col-4\">Connection</label>\n        <div class=\"p-col-8\">\n          <p-dropdown [options]=\"connectionTypeForkafka\" (onChange)=\"changeConnection()\" \n          [(ngModel)]=\"enableConnectionForSrc\"></p-dropdown>\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='kaf'\">\n        <label class=\"control-label p-col-4\">Topic</label>\n        <div class=\"p-col-8\">\n          <div class=\"ui-inputgroup\">\n            <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\" (input)=\"change($event)\"\n              [(ngModel)]=\"topicForSrcKafka\">\n            <button type=\"button\" *ngIf=\"enablekeyword=='kaf' && enableConnectionForSrc != 'plaintext'\"\n              pTooltip=\"Additional Settings\" (click)=\"jmsConfigureDialogKafkaFunction('source')\" class=\"ui-button-secondary\"\n              pButton icon=\"icons8  icons8-settings\"></button>\n          </div>\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='ibm'\">\n        <label class=\"control-label p-col-4\">Queue Manager</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" (keypress)=\"validateSpace($event)\"\n          (input)=\"change($event)\" placeholder=\"Queue Manager Name\" class=\"w-100-p\" [(ngModel)]=\"queManager\">\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='ibm'\">\n        <label class=\"control-label p-col-4\">Channel Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" placeholder=\"Channel Name\"\n          (input)=\"change($event)\"  class=\"w-100-p\" [(ngModel)]=\"ibmChannel\">\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='ibm'\">\n        <label class=\"control-label p-col-4\">Queue Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" placeholder=\"Queue Name\" (input)=\"change($event)\"\n          class=\"w-100-p\" [(ngModel)]=\"ibmQue\"> \n        </div>\n      </div>\n      <!-- <div class=\"form-group p-col-3\" *ngIf=\"mode == '1' &&  enablekeyword=='tibco'\">\n        <label class=\"control-label p-col-4\">File Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" [disabled]=\"true\" class=\"w-100-p\"\n          (input)=\"change($event)\" [(ngModel)]=\"filename\">\n        </div>\n      </div> -->\n      <ng-container *ngIf=\"enablekeyword=='tibco'\">\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Type/Messaging</label>\n        <div class=\"p-col-8\">\n          <p-dropdown [options]=\"messagingType\" (onChange)=\"changeSourceTopic()\" [(ngModel)]=\"sourceTopic\"></p-dropdown>\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Topic/Queue Value</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" \n          class=\"w-100-p\" [(ngModel)]=\"queuename\" (input)=\"change($event)\">\n        </div>\n      </div>\n    </ng-container>\n    </div>\n  \n  <!-- -------JSource Server SSL Information------- -->\n  <p-panel styleClass=\"net-panel1\" header=\"Source Server SSL Settings\" [toggleable]=\"true\" [collapsed]=\"true\" *ngIf=\"isSourceSSL && enablekeyword == 'tibco'\">\n    <div class=\"p-grid p-align-center mb-10 pb-6\">\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Cipher</label>\n        <div class=\"p-col-8\">\n          <p-multiSelect [style]=\"{'min-width':'100%'}\" appendTo=\"body\" scrollHeight=\"90px\"\n            [options]=\"jmsCipherMultiSelect\" [(ngModel)]=\"cipher\" defaultLabel=\"Select Ciphers\"\n            selectedItemsLabel=\"{0} Ciphers Selected\"></p-multiSelect>\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Private Key File</label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"file\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Host Name </label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"sshHost\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Trusted CA</label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"trusted\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Issuer</label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"issuer\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Identity</label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"identity\">\n        </div>\n      </div>\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Password</label>\n        <div class=\"p-col-8\">\n          <input (input)=\"change($event)\" (keypress)=\"validateSpace($event)\" pInputText type=\"password\" class=\"w-100-p\"\n            [(ngModel)]=\"pwd\">\n        </div>\n      </div>\n    </div>\n  </p-panel>\n  \n  </p-panel>\n  \n  \n  \n  <!--JMS Destination Information-->\n  <p-panel styleClass=\"net-panel1 m-6\" header=\"Destination Settings\" *ngIf=\"isDest\">\n    <div class=\"p-grid p-align-center mb-10 pb-6\">\n      <div class=\"form-group p-col-12\">\n        <div class=\"p-col-12 control-label\">\n          <p-checkbox  label=\"Same as Source\" binary=\"true\"  [(ngModel)]=\"sameAs\" (onChange)=\"copySourceToDestination()\"></p-checkbox>\n        </div>\n      </div>\n\n      <div class=\"form-group p-col-3\">\n        <label *ngIf=\"enablekeyword!='kaf'\" class=\"control-label p-col-4\">Server </label>\n        <label *ngIf=\"enablekeyword=='kaf'\" class=\"control-label p-col-4\">Server</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" placeholder=\"IP/Host Name\" pInputText\n            type=\"text\" class=\"w-100-p\" [(ngModel)]=\"DesServerip\"  [disabled]=\"sameAs\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Port </label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"number\" class=\"w-100-p\"\n            [(ngModel)]=\"portdestination\" (keypress)=\"isNumCheck($event)\" [disabled]=\"sameAs\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword!='kaf'\">\n        <label class=\"control-label p-col-4\">User Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\" (input)=\"change($event)\"\n            [(ngModel)]=\"DestiUsername\" [disabled]=\"sameAs\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword!='kaf'\">\n        <label class=\"control-label p-col-4\">Password</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"password\" class=\"w-100-p\" (input)=\"change($event)\"\n            [(ngModel)]=\"DesPassword\" [disabled]=\"sameAs\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='kaf'\">\n        <label class=\"control-label p-col-4\">Connection</label>\n        <div class=\"p-col-8\">\n              <p-dropdown [options]=\"connectionTypeForkafka\"\n            [(ngModel)]=\"enableConnectionForDestination\"></p-dropdown>\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='tibco'\">\n        <label class=\"control-label p-col-4\">Type/Messaging</label>\n        <div class=\"p-col-8\">\n          <p-dropdown [options]=\"messagingType\" (onChange)=\"changeDestTopic()\" [(ngModel)]=\"enableDestTopic\"></p-dropdown>\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='kaf'\">\n        <label class=\"control-label p-col-4\">Topic</label>\n        <div class=\"p-col-8\">\n          <div class=\"ui-inputgroup\">\n            <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n              [(ngModel)]=\"topicForDestinatioonKafka\">\n            <button type=\"button\" pButton *ngIf=\"enablekeyword=='kaf' && enableConnectionForDestination != 'plaintext'\"\n              pTooltip=\"Additional Settings\" (click)=\"jmsConfigureDialogKafkaFunction('Destination')\"\n              class=\"ui-button-secondary\" icon=\"icons8  icons8-settings\"></button>\n          </div>\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='tibco'\">\n        <label class=\"control-label p-col-4\">Topic/Queue value</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" class=\"w-100-p\" (input)=\"change($event)\"\n            [(ngModel)]=\"DesQueuename\">\n        </div>\n      </div>\n      <ng-container *ngIf=\"enablekeyword=='ibm'\">\n        <div class=\"form-group p-col-3\">\n          <label class=\"control-label p-col-4\">Queue Manager</label>\n          <div class=\"p-col-8\">\n            <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" (input)=\"change($event)\"\n              placeholder=\"Queue Manager Name\" class=\"w-100-p\" [(ngModel)]=\"destqueManager\">\n          </div>\n        </div>\n        <div class=\"form-group p-col-3\">\n          <label class=\"control-label p-col-4\">Channel Name</label>\n          <div class=\"p-col-8\">\n            <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" placeholder=\"Channel Name\" class=\"w-100-p\"\n              [(ngModel)]=\"destibmChannel\" (input)=\"change($event)\">\n          </div>\n        </div>\n      </ng-container>\n      <div class=\"form-group p-col-3\" *ngIf=\"enablekeyword=='ibm'\">\n        <label class=\"control-label p-col-4\">Queue Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" placeholder=\"Queue Name\" class=\"w-100-p\"\n            (input)=\"change($event)\" [(ngModel)]=\"destibmQue\">\n        </div>\n      </div>\n    </div>\n  <!--Destination Server SSl Information-->\n  <p-panel styleClass=\"net-panel1\" header=\"Destination Server SSl Settings\" [toggleable]=\"true\" [collapsed]=\"true\" *ngIf=\"isSSLInfo && enablekeyword == 'tibco'\">\n    <div class=\"p-grid p-align-center mb-10 pb-6\">\n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Cipher</label>\n        <div class=\"p-col-8\">\n          <p-multiSelect [style]=\"{'min-width':'100%'}\" appendTo=\"body\" scrollHeight=\"90px\"\n          [options]=\"jmsCipherMultiSelect\" [(ngModel)]=\"dcipher\" defaultLabel=\"Select Ciphers\"\n          selectedItemsLabel=\"{0} Ciphers Selected\"></p-multiSelect>\n\n          <!-- <input (keypress)=\"validateSpace($event)\" pInputText type=\"text\" [disabled]=\"disableall\" class=\"w-100-p\"\n            (input)=\"change($event)\" [(ngModel)]=\"dcipher\"> -->\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Private Key File</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"dfile\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Host Name</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"dsshHost\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Trusted CA</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"dtrusted\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Issuer</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"dissuer\">\n        </div>\n  \n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Identity</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"text\" class=\"w-100-p\"\n            [(ngModel)]=\"didentity\">\n        </div>\n      </div>\n  \n      <div class=\"form-group p-col-3\">\n        <label class=\"control-label p-col-4\">Password</label>\n        <div class=\"p-col-8\">\n          <input (keypress)=\"validateSpace($event)\" (input)=\"change($event)\" pInputText type=\"password\" class=\"w-100-p\"\n            [(ngModel)]=\"dpassword\">\n        </div>\n      </div>\n    </div>\n  </p-panel>\n  \n  </p-panel>\n  \n  \n  \n  \n  </div>\n  <div class=\"bottom-footer\">\n      <!--<button pButton type=\"button\" label=\"show\" (click)=\"showConfiguration()\"></button>-->\n      <button pButton type=\"button\" class=\"mx-3 ui-button-secondary\" label=\"Cancel\" (click)=\"cancel()\"></button>\n      <div *ngIf=\"enablekeyword == 'tibco'\">\n          <button pButton type=\"button\" class=\"mx-3\" [disabled]=\"!this.jmsPermission\"\n              label=\"Save\" (click)=\"sendJmsJsonData()\"></button>\n      </div>\n  \n      <div *ngIf=\"enablekeyword == 'kaf'\">\n        <button pButton type=\"button\" class=\"mx-3\" [disabled]=\"!this.jmsPermission\"\n            label=\"Save\" (click)=\"sendkafkaJsonData()\"></button>\n      </div>\n      \n      <div *ngIf=\"enablekeyword == 'ibm'\">\n          <button pButton type=\"button\" class=\"mx-3\" [disabled]=\"!this.jmsPermission\"\n              label=\"Save\" (click)=\"sendIbmmqData()\"></button>\n      </div>\n  </div>\n  \n  <div class=\"\" *ngIf=\"isEnabledSpinner\">\n    <p-progressBar mode=\"indeterminate\"\n        [style]=\"{'position':'fixed','top':'0px','left':'0px','right':'0px','height': '4px'}\"></p-progressBar>\n    <div class=\"loader-container\"><i class=\"pi pi-spin pi-spinner\"\n            style=\"position: fixed;font-size: 35px;top: 0px;left: 0px;color: darkorange;animation-duration: .6s;\"></i>\n    </div>\n  </div>\n  \n  \n  <!--Alert  module-->\n  <p-dialog [closable]=false modal=\"modal\" [style]=\"{width: '400px'}\" appendTo=\"body\" class=\"profile-dialog\" header=\"Alert\" [(visible)]=\"isAlert\" width=\"400\" [responsive]=\"true\">\n      <p class=\"my-20\">{{alertMessage}}</p>\n      <p-footer>\n          <div class=\"p-grid p-justify-end\">\n              <button type=\"button\" class=\"ui-button-rounded px-15\" pButton (click)=\"navigate()\" label=\"OK\"></button>\n          </div>\n      </p-footer>\n  </p-dialog>\n  \n  \n  <p-dialog header=\"Alert\" [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width':'400px'}\">\n      <p class=\"my-20\">{{msg}}</p>\n      <p-footer class=\"p-grid p-justify-end\">\n          <button type=\"button\" pButton class=\"ui-button-rounded px-10\" (click)=\"display=false\" label=\"Ok\"></button>\n      </p-footer>\n  </p-dialog>\n  \n  \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=\"Yes\" rejectLabel=\"No\"></p-confirmDialog>\n  \n  \n  <p-toast key=\"msgs\"></p-toast>\n  \n  \n  <p-dialog class=\"secondary-dialog\" [style]=\"{width: '65vw'}\" header=\"Additional Settings\" [(visible)]=\"jmsConfigureDialogKafkaSource\" [modal]=\"true\" >\n      <p-accordion>\n        <p-accordionTab *ngIf=\"enableConnectionForSrc == 'ssl' || enableConnectionForSrc == 'sasl_ssl'\" header=\"SSL Settings\">\n         \n          <div class=\"w-100-p\">\n            <div class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Use Specific Ciphers\n                <span><i class=\"ml-4 icons8 icons8-info\" pTooltip=\"If Specific cipher are not selected then all supported ciphers will be used\"></i></span>\n              </div>\n              <div class=\"p-col-5\">\n                  <p-multiSelect [style]=\"{'min-width':'94%'}\" appendTo=\"body\" scrollHeight=\"90px\" [options]=\"jmsCipherMultiSelect\" [(ngModel)]=\"jmsCipherMultiSelectValueSource\" defaultLabel=\"Select Ciphers\" selectedItemsLabel = \"{0} Ciphers Selected\"></p-multiSelect>\n              </div>\n            </div>\n  \n  \n            <div class=\"p-col-5 \">\n              <p-checkbox name=\"group1\" label=\"Kafka is enforcing Client Authentication\" binary=\"true\" [(ngModel)]=\"sslToggleCheck\"></p-checkbox>\n            </div>\n            <div *ngIf=\"sslToggleCheck\" class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Certificate File</div>   \n              <div class=\"p-col-5\">\n                <input type=\"text\" [(ngModel)]=\"JMSCERTFileSource\" class=\"w-100-p\" pInputText [disabled] = \"true\" >\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Source Certificate File')\" (onSelect)=\"validateFile($event,fileUpload)\" maxFileSize=\"1000000\" pTooltip=\"Only .pem and .crt file formats are applicable.\"></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n            </div> \n            <div *ngIf=\"sslToggleCheck\"  class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Key File</div>   \n              <div class=\"p-col-5\">\n                <input type=\"text\" [(ngModel)]=\"JMSKeyFileSource\" class=\"w-100-p\" pInputText [disabled] = \"true\">\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Source Key File')\" (onSelect)=\"validateFile($event,fileUpload)\"  maxFileSize=\"1000000\"  pTooltip=\"Only .pem and .crt file formats are applicable.\" ></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n              <div class=\"p-col-1 p-grid p-justify-end\">\n                Password\n              </div>\n              <div class=\"p-col-2\">\n                <input type=\"password\" (keypress)=\"validateSpace($event)\" [(ngModel)]=\"JMSFilePWDSource\" class=\"w-100-p\" pInputText >\n              </div>\n            </div> \n            <div class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Trusted CA file</div>   \n              <div class=\"p-col-5\">\n                <input type=\"text\" [(ngModel)]=\"JMSTrustedCASource\" class=\"w-100-p\" [disabled] = \"true\" pInputText >\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Source Trusted CA File')\" (onSelect)=\"validateFile($event,fileUpload)\" maxFileSize=\"1000000\"  pTooltip=\"Only .pem and .crt file formats are applicable.\" ></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n            </div>   \n          </div>\n        </p-accordionTab>\n  \n        <p-accordionTab *ngIf=\"enableConnectionForSrc == 'sasl_plaintext' || enableConnectionForSrc == 'sasl_ssl'\" header=\"Simple Authentication Security Layer(SASL) Settings\">\n          <div class=\"p-col-6\">\n            <p-checkbox label=\"Enable SASL Authentication\" binary=\"true\" [(ngModel)]=\"useSaslAuthCheckbox\"></p-checkbox>\n          </div>\n          <div *ngIf=\"useSaslAuthCheckbox\" class=\"w-100-p p-grid p-align-center\">\n            <div class=\"p-col-1\"> User </div>\n            <div class=\"p-col-2\">\n              <input type=\"text\" [(ngModel)]=\"SSL_UserSource\" class=\"w-100-p\" pInputText >\n            </div>\n            \n            <div class=\"p-col-1 p-offset-1\">Password</div>\n            <div class=\"p-col-2\">\n              <input type=\"password\" (keypress)=\"validateSpace($event)\" [(ngModel)]=\"SSL_PwdSource\" class=\"w-100-p\" pInputText >\n            </div>\n            <div class=\"p-col-1 p-offset-1\">Mechanism</div>\n            <div class=\"p-col-2\">\n              <p-dropdown appendTo=\"body\" [options]=\"jmsMechanismDropdown\" [style]=\"{'width':'100%'}\"  [(ngModel)]=\"jmsMechanismDropdownValueSource\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n            </div>\n          </div>\n        </p-accordionTab>\n      </p-accordion>\n     <p-footer>\n      <button pButton type=\"button\" (click)=\"jmsConfigureDialogKafkaSource = false\" label=\"CANCEL\" class=\"ui-button-rounded ui-button-secondary mr-5\"></button>\n      <button pButton type=\"button\" label=\"Save\" class=\"ui-button-rounded\" (click)=\"kafkaAdvanceSettingDialogClose('Source')\"></button>\n     </p-footer>\n      \n    </p-dialog>\n  \n    <p-dialog class=\"secondary-dialog\" [style]=\"{width: '65vw'}\" header=\"Additional Settings \" [(visible)]=\"jmsConfigureDialogKafkaDestination\" [modal]=\"true\" >\n      <p-accordion>\n        <p-accordionTab *ngIf=\"enableConnectionForDestination == 'ssl' || enableConnectionForDestination == 'sasl_ssl'\" header=\"SSL Settings\">\n         \n          <div  class=\"w-100-p\">\n            <div  class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Use Specific Ciphers</div>\n              <div class=\"p-col-5\">\n                <span>\n                  <p-multiSelect [style]=\"{'min-width':'94%'}\" appendTo=\"body\" scrollHeight=\"110px\" [options]=\"jmsCipherMultiSelect\" [(ngModel)]=\"jmsCipherMultiSelectValueDestination\" defaultLabel=\"Select Ciphers\" selectedItemsLabel = \"{0} Ciphers Selected\"></p-multiSelect>\n                  <i class=\"ml-4 icons8 icons8-info\" pTooltip=\"If Specific cipher are not selected then all supported ciphers will be used\"></i>\n                </span>\n              </div>\n            </div>\n  \n            \n            <div  class=\"p-col-5\">\n              <p-checkbox name=\"group1\" label=\"Kafka is enforcing Client Authentication\" binary=\"true\" [(ngModel)]=\"sslToggleCheckdest\"></p-checkbox>\n            </div>\n            <div *ngIf=\"sslToggleCheckdest\" class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Certificate File</div>   \n              <div class=\"p-col-5\">\n                <input  type=\"text\" [(ngModel)]=\"JMSCERTFileDestination\" class=\"w-100-p\" [disabled] = \"true\" pInputText >\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Destination Certificate File')\" (onSelect)=\"validateFile($event,fileUpload)\"  maxFileSize=\"1000000\"  pTooltip=\"Only .pem and .crt file formats are applicable.\"></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n            </div> \n            <div *ngIf=\"sslToggleCheckdest\" class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Key File</div>   \n              <div class=\"p-col-5\">\n                <input  type=\"text\" [(ngModel)]=\"JMSKeyFileDestination\" class=\"w-100-p\" [disabled] = \"true\" pInputText >\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Destination Key File')\" (onSelect)=\"validateFile($event,fileUpload)\"  maxFileSize=\"1000000\"  pTooltip=\"Only .pem and .crt file formats are applicable.\"></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n              <div class=\"p-col-1 p-grid p-justify-end\">\n                Password\n              </div>\n              <div class=\"p-col-2\">\n                <input type=\"password\" (keypress)=\"validateSpace($event)\" [(ngModel)]=\"JMSFilePWDDestination\" class=\"w-100-p\" pInputText >\n              </div>\n            </div> \n            <div class=\"w-100-p p-grid p-align-center\">\n              <div class=\"p-col-2\">Trusted CA file</div>   \n              <div class=\"p-col-5\">\n                <input  type=\"text\" [(ngModel)]=\"JMSTrustedCADestination\" class=\"w-100-p\" [disabled] = \"true\" pInputText >\n              </div>\n              <div class=\"p-col-2 p-grid p-justify-center\">\n                <p-fileUpload #fileUpload mode=\"basic\" chooseLabel=\"Upload\" class=\"ui-button-rounded\" name=\"demo[]\" url=\"/ProductUI/productSummary/NetOceanWebService/uploadIbmmqFile\" (onUpload)=\"onMeassageFileUpload($event,'Destination Trusted CA File')\" (onSelect)=\"validateFile($event,fileUpload)\"  maxFileSize=\"1000000\"  pTooltip=\"Only .pem and .crt file formats are applicable.\"></p-fileUpload>\n                  <!-- <button pButton type=\"button\" label=\"Browse\" class=\"ui-button-rounded\"></button> -->\n              </div>\n            </div>   \n          </div>\n        </p-accordionTab>\n  \n        <p-accordionTab *ngIf=\"enableConnectionForDestination == 'sasl_plaintext' || enableConnectionForDestination == 'sasl_ssl'\" header=\"Simple Authentication Security Layer(SASL) Settings\">\n          <div class=\"p-col-6\">\n            <p-checkbox label=\"Enable SASL Authentication\" binary=\"true\" [(ngModel)]=\"useSaslAuthCheckboxdest\"></p-checkbox>\n          </div>\n          <div *ngIf=\"useSaslAuthCheckboxdest\" class=\"w-100-p p-grid p-align-center\">\n            <div class=\"p-col-1\"> User </div>\n            <div class=\"p-col-2\">\n              <input type=\"text\" [(ngModel)]=\"SSL_UserDestination\" class=\"w-100-p\" pInputText >\n            </div>\n            \n            <div class=\"p-col-1 p-offset-1\">Password</div>\n            <div class=\"p-col-2\">\n              <input type=\"password\" (keypress)=\"validateSpace($event)\" [(ngModel)]=\"SSL_PwdDestination\" class=\"w-100-p\" pInputText >\n            </div>\n            <div class=\"p-col-1 p-offset-1\">Mechanism</div>\n            <div class=\"p-col-2\">\n              <p-dropdown appendTo=\"body\" [options]=\"jmsMechanismDropdown\" [style]=\"{'width':'100%'}\"  [(ngModel)]=\"jmsMechanismDropdownValueDestination\" dropdownIcon=\"icons8 icons8-expand-arrow\"></p-dropdown>\n            </div>\n          </div>\n        </p-accordionTab>\n      </p-accordion>\n     <p-footer>\n      <button pButton type=\"button\" (click)=\"jmsConfigureDialogKafkaDestination = false\" label=\"CANCEL\" class=\"ui-button-rounded ui-button-secondary mr-5\"></button>\n      <button pButton type=\"button\" label=\"Save\" class=\"ui-button-rounded\" (click)=\"kafkaAdvanceSettingDialogClose('Destination')\"></button>\n     </p-footer>\n      \n    </p-dialog>\n  </div>";
    /***/
  },

  /***/
  "./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.scss":
  /*!***********************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.scss ***!
    \***********************************************************************************************************/

  /*! exports provided: default */

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

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


    __webpack_exports__["default"] = "app-netocean-manage-services .domain-row {\n  background-color: var(--background_color_12);\n  border-style: solid;\n  border-width: 1px;\n  border-radius: 2px;\n}\napp-netocean-manage-services .ui-splitbutton {\n  border-radius: 15px !important;\n  overflow: hidden;\n}";
    /***/
  },

  /***/
  "./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.ts":
  /*!*********************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.ts ***!
    \*********************************************************************************************************/

  /*! exports provided: NetoceanJmsSettingsComponent */

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

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


    __webpack_require__.d(__webpack_exports__, "NetoceanJmsSettingsComponent", function () {
      return NetoceanJmsSettingsComponent;
    });
    /* 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 _services_netocean_common_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
    /*! ../../services/netocean-common.service */
    "./src/app/pages/home/netocean/services/netocean-common.service.ts");
    /* harmony import */


    var _services_netocean_configuration_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ../../services/netocean-configuration.service */
    "./src/app/pages/home/netocean/services/netocean-configuration.service.ts");
    /* harmony import */


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


    var _services_netocean_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
    /*! ../../services/netocean-config-service */
    "./src/app/pages/home/netocean/services/netocean-config-service.ts");
    /* harmony import */


    var _services_netocean_rest_api_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
    /*! ../../services/netocean-rest-api.service */
    "./src/app/pages/home/netocean/services/netocean-rest-api.service.ts");
    /* harmony import */


    var primeng_api__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(
    /*! src/app/core/session/session.service */
    "./src/app/core/session/session.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 _services_manage_services_info_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
    /*! ../../services/manage-services-info.service */
    "./src/app/pages/home/netocean/services/manage-services-info.service.ts");
    /* harmony import */


    var src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
    /*! src/app/shared/cav-nav-bar/cav-nav-bar.service */
    "./src/app/shared/cav-nav-bar/cav-nav-bar.service.ts");
    /* harmony import */


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


    var src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
    /*! src/app/pages/tools/admin/access-control-management/constants/cav-acl-features.constants */
    "./src/app/pages/tools/admin/access-control-management/constants/cav-acl-features.constants.ts"); // import { Logger } from '../../../../../vendors/angular2-logger/core';


    var NetoceanJmsSettingsComponent = /*#__PURE__*/function () {
      function NetoceanJmsSettingsComponent(serveObj, // private log: Logger,
      _config, _manageService, _confirm, messageService, // private _cavApi: CavDataApiService,
      // private _cavConfig: CavConfigService
      _netoceanConfig, NetoceanRestApi, _router, cavNavBarService, breadcrumb, sessionService) {
        _classCallCheck(this, NetoceanJmsSettingsComponent);

        this.serveObj = serveObj;
        this._config = _config;
        this._manageService = _manageService;
        this._confirm = _confirm;
        this.messageService = messageService;
        this._netoceanConfig = _netoceanConfig;
        this.NetoceanRestApi = NetoceanRestApi;
        this._router = _router;
        this.cavNavBarService = cavNavBarService;
        this.breadcrumb = breadcrumb;
        this.sessionService = sessionService;
        this.isMode = false;
        this.enablekeyword = 'ibm';
        this.enableConnection = false;
        this.mode = '1';
        this.Tlogfilesize = '';
        this.serverip = '';
        this.port = '';
        this.managername = '';
        this.channelName = '';
        this.queuename = '';
        this.username = '';
        this.password = '';
        this.filename = 'JMS_Message.log';
        this.DesServerip = '';
        this.portdestination = '1414';
        this.DesManagername = '';
        this.DesChannelName = '';
        this.DesQueuename = '';
        this.DestiUsername = '';
        this.DesPassword = '';
        this.selectradioBox = '';
        this.sourceport = '1414';
        this.alertMessage = '';
        this.isAlert = false;
        this.disableDest = true;
        this.disableall = false;
        this.jmsfieldArray = [];
        this.ibmFieldArray = [];
        this.level = '0';
        this.jmsfile = false;
        this.ranServicefrom = '';
        this.isDest = false;
        this.msg = '';
        this.display = false;
        this.isSourceSSL = false;
        this.enableDestTopic = 'topic';
        this.sourceTopic = 'topic';
        this.trusted = '';
        this.issuer = '';
        this.identity = '';
        this.file = '';
        this.cipher = '';
        this.sshHost = '';
        this.pwd = '';
        this.dtrusted = '';
        this.dissuer = '';
        this.didentity = '';
        this.dfile = '';
        this.dcipher = '';
        this.dsshHost = '';
        this.dpassword = '';
        this.isSSLInfo = false;
        this.destTopic = '0';
        this.srcTopic = '0';
        this.msgs = [];
        this.isAppend = true;
        this.updateSourceServerIp = '';
        this.removeIndex = '';
        this.queManager = '';
        this.ibmChannel = '';
        this.ibmQue = '';
        this.destqueManager = '';
        this.destibmChannel = '';
        this.destibmQue = '';
        this.jmsType = [{
          label: 'TIBCO',
          value: 'tibco'
        }, {
          label: 'IBMMQ',
          value: 'ibm'
        }, {
          label: 'KAFKA',
          value: 'kaf'
        }];
        this.modeType = [];
        this.messagingType = [];
        this.connectionType = [];
        this.connectionTypeibm = [];
        this.tibcoData = [];
        this.topicForSrcKafka = '';
        this.topicForDestinatioonKafka = '';
        this.jmsConfigureDialogKafkaSource = false;
        this.jmsConfigureDialogKafkaDestination = false;
        this.jmsMechanismDropdown = [{
          label: 'GSSAPI',
          value: 'GSSAPI'
        }, {
          label: 'PLAIN',
          value: 'PLAIN'
        }, {
          label: 'SCRAM-SHA-256',
          value: 'SCRAM-SHA-256'
        }, {
          label: 'SCRAM-SHA-512',
          value: 'SCRAM-SHA-512'
        }, {
          label: 'OAUTHBEARER',
          value: 'OAUTHBEARER'
        }];
        this.jmsCipherMultiSelect = [];
        this.consumerGroupForSource = '';
        this.jmsCipherMultiSelectValueSource = [];
        this.JMSCERTFileSource = '';
        this.JMSKeyFileSource = '';
        this.JMSFilePWDSource = '';
        this.JMSTrustedCASource = '';
        this.SSL_UserSource = '';
        this.SSL_PwdSource = '';
        this.jmsMechanismDropdownValueSource = 'PLAIN';
        this.jmsCipherMultiSelectValueDestination = [];
        this.JMSCERTFileDestination = '';
        this.JMSKeyFileDestination = '';
        this.JMSFilePWDDestination = '';
        this.JMSTrustedCADestination = '';
        this.SSL_UserDestination = '';
        this.SSL_PwdDestination = '';
        this.enableConnectionForDestination = 'plaintext';
        this.connectionTypeForkafka = [];
        this.enableConnectionForSrc = 'plaintext';
        this.jmsMechanismDropdownValueDestination = 'PLAIN';
        this.uploadedFiles = [];
        this.sslToggleCheck = false;
        this.useSaslAuthCheckbox = false;
        this.sslToggleCheckdest = false;
        this.useSaslAuthCheckboxdest = false;
        this.supportedExtensions = ['.cert', '.pem'];
        this.productkey = "";
        this.isEnabledSpinner = false;
        this.unsavedChanges = false;
        this.jmsPermission = false;
        this.useSSLConnection = false;
        this.sameAs = false;
        this.cavNavBarService.showBreadCrumb = true;
        this.breadcrumb.addNewBreadcrumb({
          label: 'Messaging Service',
          routerLink: 'home/net-ocean/jmsSettings'
        });
      }

      return _createClass(NetoceanJmsSettingsComponent, [{
        key: "canDeactivate",
        value: function canDeactivate() {
          if (this.unsavedChanges) {
            var result = confirm('Are you sure you want to navigate? Any unsaved changes will be lost.');
            console.log(result);

            if (!result) {
              this.serveObj.confirmCommandSubject.next(this._router.url);
            }

            return result;
          } else {
            return true;
          }
        }
      }, {
        key: "change",
        value: function change(event) {
          this.unsavedChanges = true;
        }
      }, {
        key: "ngOnInit",
        value: function ngOnInit() {
          try {
            this._config.loading = true;
            this.productkey = this.sessionService.session.cctx.pk;
            this.getJmsConfigData();
            this.getHPDStatus();
            this.serveObj.getTibcoConfiguration(); // console.log('data in the operation', this.serveObj.$tibcoOperation);

            if (this.serveObj.$tibcoOperation == 'update') {
              this.fillSelectesConfiguration();
            } // this._config.getGlobalhttpSetting();

            /**connection array */
            // this.connection = [];
            // this.connection = this.connection.concat({ label: 'TCP', value: 'tcp' });
            // this.connection = this.connection.concat({ label: 'SSL', value: 'ssl' });

            /**push a mode */


            this.MODE = [];
            this.MODE = this.MODE.concat({
              label: '0',
              value: '0'
            });
            this.MODE = this.MODE.concat({
              label: '1',
              value: '1'
            });
            this.MODE = this.MODE.concat({
              label: '2',
              value: '2'
            });
            this.modeType.push({
              label: 'Consume',
              value: "1"
            });
            this.modeType.push({
              label: 'Forward',
              value: "2"
            });
            this.messagingType.push({
              label: 'Topic',
              value: "topic"
            });
            this.messagingType.push({
              label: 'Queue',
              value: "queue"
            });
            this.connectionType.push({
              label: 'TCP',
              value: "tcp"
            });
            this.connectionType.push({
              label: 'SSL',
              value: "ssl"
            });
            this.connectionTypeibm.push({
              label: 'TCP',
              value: "tcp"
            });
            this.connectionTypeForkafka.push({
              label: 'PLAINTEXT',
              value: "plaintext"
            });
            this.connectionTypeForkafka.push({
              label: 'SSL',
              value: "ssl"
            });
            this.connectionTypeForkafka.push({
              label: 'SASL_PLAINTEXT',
              value: "sasl_plaintext"
            });
            this.connectionTypeForkafka.push({
              label: 'SASL_SSL',
              value: "sasl_ssl"
            });
            this.jmsPermission = this.serveObj.getAclPermissions(src_app_pages_tools_admin_access_control_management_constants_cav_acl_features_constants__WEBPACK_IMPORTED_MODULE_13__["CAV_FEATURES"].SERVICE_VIRTUALIZATION.SUB_FEATURES.SERVICES);
          } catch (error) {
            console.error('error in oninit', error);
          }
        }
        /**destroying a component */

      }, {
        key: "ngOnDestroy",
        value: function ngOnDestroy() {
          try {
            this._config.loading = false; //this.log.debug('destroying a component');

            this.serveObj.$tibcoOperation = 'add';
            this.serveObj.$tibcoConfig = [];
            if (this.jmsSubscription != null) this.jmsSubscription.unsubscribe();
          } catch (error) {
            console.error('error in unsubscribe', error);
          }

          this.cavNavBarService.showBreadCrumb = false;
        }
        /**get a jms config data information */

      }, {
        key: "getJmsConfigData",
        value: function getJmsConfigData() {
          var _this = this;

          this.serveObj.netoceanServiceProvider$.subscribe(function (result) {
            if (_this.serveObj.action == 'JMSCONFIGURATION') {
              _this._config.loading = false;
              _this.tibcoData = result;
            }
          });
        }
        /**navigate to the template list services */

      }, {
        key: "navigate",
        value: function navigate() {
          try {
            if (this.alertMessage == 'JMS Settings Updated Successfully.' || this.alertMessage == 'JMS Settings Saved Successfully.') {
              this._router.navigate(['/home/net-ocean']);
            } else {
              this.isAlert = false;
            }
          } catch (error) {}
        }
      }, {
        key: "showAlert",
        value: function showAlert() {
          alert("Warning! Changing the type will reset all the fields!");
        }
        /**fill a selected configuration */

      }, {
        key: "fillSelectesConfiguration",
        value: function fillSelectesConfiguration() {
          try {
            this.config = [];
            this.config = this.serveObj.$tibcoConfig;
            console.log('data in the config after getting details from updation', this.config);

            if (this.config[0]['server'] == 'TIBCO') {
              this.enablekeyword = 'tibco';
            } else if (this.config[0]['server'] == 'KAFKA') {
              this.enablekeyword = 'kaf';
            } else {
              this.enablekeyword = 'ibm';
            }

            this.mode = this.config[0]['Mode'];
            this.removeIndex = this.config[0]['index'];
            /**check a ibm configurations */

            if (this.enablekeyword == 'ibm') {
              this.serverip = this.config[0]['sourceServerIP'];
              this.sourceport = this.config[0]['sourceServerPort'];
              this.queManager = this.config[0]['ibmmanager'];
              this.ibmChannel = this.config[0]['ibmchannel'];
              this.ibmQue = this.config[0]['TopQueVal'];
              this.username = this.config[0]['name'];
              this.password = this.config[0]['password'];

              if (this.mode == '2') {
                this.isDest = true;
                this.destibmChannel = this.config[0]['destchannel'];
                this.destibmQue = this.config[0]['destTQVal'];
                this.destqueManager = this.config[0]['destmanger'];
                this.DesServerip = this.config[0]['destIp'];
                this.DestiUsername = this.config[0]['destuser'];
                this.DesPassword = this.config[0]['destPass'];
              }
            } else if (this.enablekeyword == 'kaf') {
              if (this.mode == '1') {
                // if(this.config[0]['Connection'] == 'PLAINTEXT')
                // {
                //   this.config[0]['Connection'] = 'plaintext';
                // }
                // else if(this.config[0]['Connection'] == 'SSL')
                // {
                //   this.config[0]['Connection'] = 'ssl';
                // }
                // else if(this.config[0]['Connection'] == 'SASL_SSL')
                // {
                //   this.config[0]['Connection'] = 'sasl_ssl';
                // }
                // else if(this.config[0]['Connection'] == 'PLAINTEXT_SASL')
                // {
                //   this.config[0]['Connection'] = 'plaintext_sasl';
                // }
                this.enableConnectionForSrc = this.config[0]['protocol'];
                this.serverip = this.config[0]['sourceServerIP'];
                this.sourceport = this.config[0]['sourceServerPort'];
                this.topicForSrcKafka = this.config[0]['TopQueVal'];

                if (this.enableConnectionForSrc == "ssl" || this.enableConnectionForSrc == "sasl_ssl") {
                  this.getCipherList();
                  this.jmsCipherMultiSelectValueSource = [];

                  if (this.config[0]['srcciphers'].includes(':')) {
                    this.jmsCipherMultiSelectValueSource = [];
                    var arr = [];
                    arr = this.config[0]['srcciphers'].split(':');

                    for (var a in arr) this.jmsCipherMultiSelectValueSource.push(arr[a]);
                  } else {
                    this.jmsCipherMultiSelectValueSource.push(this.config[0]['srcciphers']);
                  }

                  this.JMSTrustedCASource = this.config[0]['srcssltrusted'];
                  this.JMSKeyFileSource = this.config[0]['srcsslkey'];
                  this.JMSCERTFileSource = this.config[0]['srcsslidentity'];
                  this.JMSFilePWDSource = this.config[0]['srcsslpwd'];

                  if (this.JMSKeyFileSource != '' && this.JMSCERTFileSource != '') {
                    this.sslToggleCheck = true;
                  } else {
                    this.sslToggleCheck = false;
                  }
                }

                if (this.enableConnectionForSrc == "sasl_plaintext" || this.enableConnectionForSrc == "sasl_ssl") {
                  this.SSL_UserSource = this.config[0]['srcsasluser'];
                  this.SSL_PwdSource = this.config[0]['srcsaslpwd'];
                  this.jmsMechanismDropdownValueSource = this.config[0]['srcsaslmech'];
                  if (this.SSL_UserSource != "") this.useSaslAuthCheckbox = true;
                }
              } else {
                //Source
                this.enableConnectionForSrc = this.config[0]['protocol'];
                this.serverip = this.config[0]['sourceServerIP'];
                this.sourceport = this.config[0]['sourceServerPort'];
                this.topicForSrcKafka = this.config[0]['TopQueVal'];

                if (this.enableConnectionForSrc == "ssl" || this.enableConnectionForSrc == "sasl_ssl") {
                  this.getCipherList();

                  if (this.config[0]['srcciphers'].includes(':')) {
                    this.jmsCipherMultiSelectValueSource = [];
                    var _arr = [];
                    _arr = this.config[0]['srcciphers'].split(':');

                    for (var _a in _arr) this.jmsCipherMultiSelectValueSource.push(_arr[_a]);
                  } else {
                    this.jmsCipherMultiSelectValueSource.push(this.config[0]['srcciphers']);
                  }

                  this.JMSTrustedCASource = this.config[0]['srcssltrusted'];
                  this.JMSKeyFileSource = this.config[0]['srcsslkey'];
                  this.JMSCERTFileSource = this.config[0]['srcsslidentity'];
                  this.JMSFilePWDSource = this.config[0]['srcsslpwd'];

                  if (this.JMSKeyFileSource != '' && this.JMSCERTFileSource != '') {
                    this.sslToggleCheck = true;
                  } else {
                    this.sslToggleCheck = false;
                  }
                }

                if (this.enableConnectionForSrc == "sasl_plaintext" || this.enableConnectionForSrc == "sasl_ssl") {
                  this.SSL_UserSource = this.config[0]['srcsasluser'];
                  this.SSL_PwdSource = this.config[0]['srcsaslpwd'];
                  this.jmsMechanismDropdownValueSource = this.config[0]['srcsaslmech'];
                  if (this.SSL_UserSource != "") this.useSaslAuthCheckbox = true;
                } //Destination


                this.enableConnectionForDestination = this.config[0]['destProtocol'];
                this.DesServerip = this.config[0]['destIp'];
                this.portdestination = this.config[0]['destPort'];
                this.topicForDestinatioonKafka = this.config[0]['destTQVal'];

                if (this.enableConnectionForDestination == "ssl" || this.enableConnectionForDestination == "sasl_ssl") {
                  this.getCipherList();

                  if (this.config[0]['destciphers'].includes(':')) {
                    this.jmsCipherMultiSelectValueDestination = [];
                    var _arr2 = [];
                    _arr2 = this.config[0]['destciphers'].split(':');

                    for (var _a2 in _arr2) this.jmsCipherMultiSelectValueDestination.push(_arr2[_a2]);
                  } else {
                    this.jmsCipherMultiSelectValueDestination.push(this.config[0]['destciphers']);
                  }

                  this.JMSTrustedCADestination = this.config[0]['destssltrusted'];
                  this.JMSKeyFileDestination = this.config[0]['destsslkey'];
                  this.JMSCERTFileDestination = this.config[0]['destsslidentity'];
                  this.JMSFilePWDDestination = this.config[0]['destsslpwd'];

                  if (this.JMSKeyFileDestination != '' && this.JMSCERTFileDestination != '') {
                    this.sslToggleCheckdest = true;
                  } else {
                    this.sslToggleCheckdest = false;
                  }
                }

                if (this.enableConnectionForDestination == "sasl_plaintext" || this.enableConnectionForDestination == "sasl_ssl") {
                  this.SSL_UserDestination = this.config[0]['destsasluser'];
                  this.SSL_PwdDestination = this.config[0]['destsaslpwd'];
                  this.jmsMechanismDropdownValueDestination = this.config[0]['destsaslmech'];
                  if (this.SSL_UserDestination != "") this.useSaslAuthCheckboxdest = true;
                }

                this.isDest = true;
              }
            } else {
              this.enableConnection = this.config[0]['Connection'];
              this.removeIndex = this.config[0]['index'];
              /**fill a source information */

              this.serverip = this.config[0]['sourceServerIP'];
              this.sourceport = this.config[0]['sourceServerPort'];
              this.sourceTopic = this.config[0]['TopQue'];
              this.changeSourceTopic();
              this.queuename = this.config[0]['TopQueVal'];
              this.username = this.config[0]['name'];
              this.password = this.config[0]['password'];
              this.cipher = this.config[0]['scipher'];
              this.file = this.config[0]['skey'];
              this.sshHost = this.config[0]['shost'];
              this.trusted = this.config[0]['strusted'];
              this.issuer = this.config[0]['sIssuer'];
              this.identity = this.config[0]['sIdentity'];
              this.pwd = this.config[0]['spass'];
              /**set a trace settings */
              //  this.level = config[0]['TraceLevel'];
              // this.Tlogfilesize = config[0]['fileSize'];

              /**fill a destination information */

              this.DesServerip = this.config[0]['destIp'];
              this.portdestination = this.config[0]['destPort'];
              this.enableDestTopic = this.config[0]['destTopQueue'];
              this.changeDestTopic();
              this.DesQueuename = this.config[0]['destTQVal'];
              this.DestiUsername = this.config[0]['destuser'];
              this.DesPassword = this.config[0]['destPass'];
              this.dcipher = this.config[0]['dcipher'];
              this.dfile = this.config[0]['dkey'];
              this.dsshHost = this.config[0]['dhost'];
              this.dtrusted = this.config[0]['dtrusted'];
              this.dissuer = this.config[0]['dissuer'];
              this.didentity = this.config[0]['didentity'];
              this.dpassword = this.config[0]['dpass'];
              /**for mode operation */

              this.isDest = false;
              this.isSSLInfo = false;
              this.jmsfile = false;

              if (this.mode == '1') {
                this.jmsfile = true;
              }

              if (this.mode == '2') {
                this.isDest = true;
                this.isSSLInfo = false;

                if (this.enableConnection) {
                  this.isSSLInfo = true;
                } else {
                  this.isSSLInfo = false;
                }
              }
              /*for changing the connection*/


              if (this.enableConnection) {
                this.isSourceSSL = true;

                if (this.mode == '2') {
                  this.isSSLInfo = true;
                  this.isDest = true;
                } else {
                  this.isSSLInfo = false;
                  this.isDest = false;
                }
              } else {
                if (this.mode == '2') {
                  this.isDest = true;
                } else {
                  this.isDest = false;
                }

                this.isSourceSSL = false;
                this.isSSLInfo = false;
              }
            } // console.log('value in the config', config);

          } catch (error) {
            console.error('error in fill config data', error);
          }
        }
      }, {
        key: "validateSpace",
        value: function validateSpace(event) {
          return event.charCode == 32 ? false : true;
        }
      }, {
        key: "changeConnection",
        value: function changeConnection(dest) {
          if (this.enableConnection) {
            this.sourceport = '7243';
            this.isSourceSSL = true;

            if (this.mode == '2') {
              this.portdestination = '7243';
              this.isSSLInfo = true;
              this.isDest = true;
            } else {
              this.isSSLInfo = false;
              this.isDest = false;
            }
          } else if (this.enablekeyword == "kaf") {
            if (dest != 'destination') {
              if (this.enableConnectionForSrc == "plaintext") this.sourceport = '9092';else if (this.enableConnectionForSrc == "ssl") this.sourceport = '9093';else if (this.enableConnectionForSrc == "sasl_plaintext") this.sourceport = '9094';else if (this.enableConnectionForSrc == "sasl_ssl") this.sourceport = '9095';
            } else {
              if (this.enableConnectionForDestination == "plaintext") this.portdestination = '9092';else if (this.enableConnectionForDestination == "ssl") this.portdestination = '9093';else if (this.enableConnectionForDestination == "sasl_plaintext") this.portdestination = '9094';else if (this.enableConnectionForDestination == "sasl_ssl") this.portdestination = '9095';
            }
          } else {
            this.sourceport = '7222';

            if (this.mode == '2') {
              this.portdestination = '7222';
              this.isDest = true;
            } else {
              this.isDest = false;
            }

            this.isSourceSSL = false;
            this.isSSLInfo = false;
          }
        }
      }, {
        key: "validateJmsFields",
        value: function validateJmsFields() {
          var ipPattern = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;

          if (this.enablekeyword == "kaf") {
            if (this.mode == "1") {
              if (this.serverip == '') {
                alert('Please Enter source server IP/HOSTNAME ');
                return false;
              }

              if (this.sourceport == '') {
                alert('Please Enter source Port');
                return false;
              }

              if (parseInt(this.sourceport) < 1 || parseInt(this.sourceport) > 65535) {
                alert('Please Enter Port between 1 and 65535');
                return false;
              }

              if (this.topicForSrcKafka == '') {
                alert('Please Enter the Topic');
                return false;
              }

              return true;
            } else if (this.mode == "2") {
              if (this.serverip == '') {
                alert('Please Enter source server IP/HOSTNAME ');
                return false;
              }

              if (this.sourceport == '') {
                alert('Please Enter source Port');
                return false;
              }

              if (parseInt(this.sourceport) < 1 || parseInt(this.sourceport) > 65535) {
                alert('Please Enter Port between 1 and 65535');
                return false;
              }

              if (this.topicForSrcKafka == '') {
                alert('Please Enter the Topic');
                return false;
              }

              if (this.DesServerip == '') {
                alert('Please Enter Destination server IP/HOSTNAME ');
                return false;
              }

              if (this.portdestination == '') {
                alert('Please Enter Destination Port');
                return false;
              }

              if (parseInt(this.portdestination) < 1 || parseInt(this.portdestination) > 65535) {
                alert('Please Enter Port between 1 and 65535');
                return false;
              }

              if (this.topicForDestinatioonKafka == '') {
                alert('Please Enter the Topic');
                return false;
              }

              return true;
            }
          } // if (!this.serverip.match(ipPattern)) {
          //   alert('Please enter source server ip address in correct format');
          //   return false;
          // }
          else {
            if (this.mode == '2') {
              if (this.DesServerip == '') {
                alert('Please enter jms destination server ip.');
                return false;
              } // if (!this.DesServerip.match(ipPattern)) {
              //   alert('Please enter destination server ip address in correct format.');
              //   return false;
              // }


              if (this.DesQueuename == '') {
                alert('Plese enter jms destination topic/queue name');
                return false;
              }
            }

            if (this.queuename == '') {
              alert('Plese enter jms server topic/queue name');
              return false;
            }

            return true;
          }
        }
        /**validate the ibmmq configurations */

      }, {
        key: "validateIbmmqConfig",
        value: function validateIbmmqConfig() {
          try {
            var ipPattern = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;

            if (this.serverip == '') {
              alert('Please Enter source server IP');
              return false;
            } //  if (!this.serverip.match(ipPattern)) {
            //     alert('Please enter source server ip address in correct format\n exa:- 0.0.0.0');
            //     return false;
            //  }


            if (this.sourceport == '') {
              alert('Please enter source server port');
              return false;
            }

            if (parseInt(this.sourceport) < 1 || parseInt(this.sourceport) > 65535) {
              alert('Please Enter Port between 1 and 65535');
              return false;
            }

            if (this.queManager == '') {
              alert('Please enter queue manager name');
              return false;
            }

            if (this.ibmChannel == '') {
              alert('Please enter channel name');
              return false;
            }

            if (this.ibmQue == '') {
              alert('Please enter queue name');
              return false;
            }

            if (this.mode == '2') {
              if (this.DesServerip == '') {
                alert('Please enter jms destination server ip.');
                return false;
              } // if (!this.DesServerip.match(ipPattern)) {
              //     alert('Please enter destination server ip address in correct format.\n exa:- 0.0.0.0');
              //     return false;
              // }


              if (this.portdestination == '') {
                alert('Please enter destination server port');
                return false;
              }

              if (parseInt(this.portdestination) < 1 || parseInt(this.portdestination) > 65535) {
                alert('Please Enter Port between 1 and 65535');
                return false;
              }

              if (this.destqueManager == '') {
                alert('Please enter destination server queue manager name');
                return false;
              }

              if (this.destibmChannel == '') {
                alert('Please enter destination server channel name');
                return false;
              }

              if (this.destibmQue == '') {
                alert('Please enter destination server queue name');
                return false;
              }
            }

            return true;
          } catch (error) {
            console.error('error in validate the ibmmq configurations', error);
          }
        }
      }, {
        key: "changeMode",
        value: function changeMode() {
          try {
            //this.log.debug('changing jms mode');
            // console.log('mode in jms-------------------->', this.mode);
            if (this.enablekeyword == 'kaf') {
              this.isDest = false;

              if (this.mode == "1") {
                this.sourceport = '9092';
              } else {
                this.isDest = true;
                this.portdestination = '9092';
              }
            } else {
              this.isDest = false;
              this.isSSLInfo = false;
              this.jmsfile = false;

              if (this.mode == '1') {
                // this.disableDest = true;
                this.jmsfile = true;
              } else {
                this.isDest = true;
                this.isSSLInfo = false;

                if (this.enableConnection) {
                  this.portdestination = '7243';
                  this.isSSLInfo = true;
                } else {
                  this.portdestination = '7222';
                  this.isSSLInfo = false;
                }

                if (this.enablekeyword == 'ibm') {
                  this.portdestination = '1414';
                }
              }
            }
          } catch (error) {
            console.error('error in changing jms mode', error);
          }
        }
        /**change a jms keyword informaqtion */

      }, {
        key: "changeJmsKeyword",
        value: function changeJmsKeyword() {
          try {
            //this.log.debug('changing jms keyword....');

            /**will blank all fields */
            this.Tlogfilesize = '';
            this.serverip = '';
            this.sourceport = '';
            this.managername = '';
            this.channelName = '';
            this.queuename = '';
            this.username = '';
            this.password = '';
            this.DesServerip = '';
            this.portdestination = '7222';
            this.DesManagername = '';
            this.DesChannelName = '';
            this.DesQueuename = '';
            this.DestiUsername = '';
            this.DesPassword = '';
            /**emptying the ibm fields */

            this.ibmQue = '';
            this.ibmChannel = '';
            this.queManager = '';
            this.destibmQue = '';
            this.destibmChannel = '';
            this.destqueManager = '';
            this.getCipherList();

            if (this.enablekeyword == 'none') {
              this.disableall = true;
              this.disableDest = true;
              this.sourceport = '';

              this._config.deleteJmsFields('none');
            }

            if (this.enablekeyword == 'ibm') {
              this._config.deleteJmsFields('tibco');

              this.sourceport = '1414';
              this.portdestination = '1414';

              if (this.mode == '2') {
                this.disableall = false;
                this.disableDest = false;
              } else {
                this.disableall = false;
                this.disableDest = true;
              }
            }

            if (this.enablekeyword == 'tibco') {
              this._config.deleteJmsFields('ibm');

              this.sourceport = '7222';

              if (this.mode == '2') {
                this.disableall = false;
                this.disableDest = false;
              } else {
                this.disableall = false;
                this.disableDest = true;
              }
            }

            if (this.enablekeyword == 'kaf') {
              if (this.mode == "1") this.sourceport = '9092';else this.portdestination = '9092';
            }
          } catch (error) {
            console.error('error in changing jms keyword', error);
          }
        }
        /* Function to check the value in a input box is numbery or not
          If number returns true, else false and does not allow the non numeric value to enter the input box;
          (parseInt($event.key) returns NAN (NOT A NUMBER) if alphabet added , else returns number..
        */

      }, {
        key: "isNumCheck",
        value: function isNumCheck(event) {
          if (parseInt(event.key) < 9 || parseInt(event.key) > 0 || parseInt(event.keyCode) >= 48 && parseInt(event.keyCode) <= 57) {
            return true;
          } else {
            return false;
          }
        } // Function to display the alerted message....

      }, {
        key: "showDialog",
        value: function showDialog(message) {
          try {
            this.msg = '';
            this.msg = message;
            this.display = true;
          } catch (error) {
            console.log('error in intailization component ->', error);
          }
        }
        /**send a json data for jms settings */

      }, {
        key: "sendJmsJsonData",
        value: function sendJmsJsonData() {
          var _this2 = this;

          try {
            //this.log.debug('sending a json data for the jms');
            if (this.validateJmsFields() == false) {
              return false;
            } // for(let i = 0; i < this.tibcoData.length; i++){
            //   if(this.tibcoData[i]['server'] == "TIBCO"){
            //     if(this.serverip == this.tibcoData[i]['sourceServerIP'] && this.sourceport == this.tibcoData[i]['sourceServerPort']){
            //       alert('JMS Settings already configured on same IP and Port. Please change IP or Port.');
            //       return false;
            //     }
            //   }
            // }


            var trusted = 'NULL';

            if (this.trusted != '') {
              trusted = this.trusted;
            }

            var issuer = 'NULL';

            if (this.issuer != '') {
              issuer = this.issuer;
            }

            var identity = 'NULL';

            if (this.identity != '') {
              identity = this.identity;
            }

            var file = 'NULL';

            if (this.file != '') {
              file = this.file;
            }

            var cipher = 'NULL';

            if (this.cipher != '') {
              cipher = this.cipher;
            }

            var sshHost = 'NULL';

            if (this.sshHost != '') {
              sshHost = this.sshHost;
            }

            var pwd = 'NULL';

            if (this.pwd != '') {
              pwd = this.pwd;
            }

            var dtrusted = 'NULL';

            if (this.dtrusted != '') {
              dtrusted = this.dtrusted;
            }

            var dissuer = 'NULL';

            if (this.dissuer != '') {
              dissuer = this.dissuer;
            }

            var didentity = 'NULL';

            if (this.didentity != '') {
              didentity = this.didentity;
            }

            var dfile = 'NULL';

            if (this.dfile != '') {
              dfile = this.dfile;
            }

            var dcipher = 'NULL';

            if (this.dcipher != '') {
              dcipher = this.dcipher;
            }

            var dsshHost = 'NULL';

            if (this.dsshHost != '') {
              dsshHost = this.dsshHost;
            }

            var dpassword = 'NULL';

            if (this.dpassword != '') {
              dpassword = this.dpassword;
            }

            var sendSourceIP = this.serverip;
            var destIp = this.DesServerip;

            if (this.enableConnectionForSrc == 'ssl') {
              sendSourceIP = 'ssl://' + this.serverip;

              if (this.mode == '2' && this.enableConnectionForDestination == 'ssl') {
                destIp = 'ssl://' + this.DesServerip;
              }
            }

            var jmsData = {
              'keyword': this.enablekeyword.trim(),
              'ibmMode': this.mode.trim(),
              'ibmTrace': this.Tlogfilesize.trim(),
              'ibmIP': sendSourceIP.trim(),
              'ibmPort': this.sourceport,
              'ibmManage': this.managername.trim(),
              'ibmChannel': this.channelName.trim(),
              'ibmqueue': this.queuename.trim(),
              'ibmUser': this.username.trim(),
              'ibmPass': this.password.trim(),
              'destip': destIp.trim(),
              'destPort': this.portdestination.trim(),
              'destmng': this.DesManagername.trim(),
              'destChannel': this.DesChannelName.trim(),
              'destQueue': this.DesQueuename.trim(),
              'destuser': this.DestiUsername.trim(),
              'destPass': this.DesPassword.trim(),
              'traceLevel': this.level,
              'trusted': trusted,
              'issuer': issuer,
              'identity': identity,
              'file': file,
              'cipher': cipher,
              'sshHost': sshHost,
              'pwd': pwd,
              'dtrusted': dtrusted,
              'dissuer': dissuer,
              'didentity': didentity,
              'dfile': dfile,
              'dcipher': dcipher,
              'dsshHost': dsshHost,
              'dpassword': dpassword,
              'connection': this.enableConnection,
              'srcTopic': this.srcTopic,
              'destTopic': this.destTopic,
              'isAppend': this.isAppend,
              'user': sessionStorage.getItem('sesLoginName')
            };

            if (this.serveObj.$tibcoOperation == 'update') {
              var removeKey = 'JMS_TIBCO ' + this.removeIndex;

              if (this.enableConnection) {
                removeKey = removeKey + ',' + 'TIBCO_SRC_SVR_SSL_INFO ' + this.removeIndex;

                if (this.mode == '2') {
                  removeKey = removeKey + ',' + 'TIBCO_DST_SVR_SSL_INFO ' + this.removeIndex;
                }
              } // this.serveObj.removeKeyWord(true, removeKey);


              var mode = 'false';

              if (this.serveObj.$mode == 'RTC Mode') {
                mode = 'true';
              }

              var jsonData = {
                'service': true,
                'data': removeKey,
                'isFormHpd': true,
                'isRtc': mode
              };
              var ip = this._netoceanConfig.getHostURL() + '/ProductUI/productSummary/NetOceanWebService/removeKeyWord';
              var DataSubcription = this.NetoceanRestApi.getDataFromRESTUsingPOSTReq('removeKeyWord', '', jsonData, '/ProductUI/productSummary/NetOceanWebService/').subscribe(function (result) {
                if (result['msg'] == "true") _this2._config.setJmsField(jmsData);
              }, function (error) {//this.log.debug('error in set comments ', error);
              }, function () {
                DataSubcription.unsubscribe();
              });
            } else this._config.setJmsField(jmsData); // this.messageService.clear();
            // this.messageService.add({ key: 'msgs', severity: 'info', summary: 'Message', detail: 'JMS Settings saved successfully' });
            // this._router.navigate(['/home/net-ocean/globalHttpMain/managejms']);


            if (this.serveObj.$tibcoOperation == 'update') this.alertMessage = "JMS Settings Updated Successfully.";else this.alertMessage = "JMS Settings Saved Successfully.";
            this.unsavedChanges = false;
            this.isAlert = true;
          } catch (error) {
            console.error('error in sending a json data', error);
          }
        }
        /**change a source topic */

      }, {
        key: "changeDestTopic",
        value: function changeDestTopic() {
          if (this.enableDestTopic == 'topic') {
            this.destTopic = '0';
          } else {
            this.destTopic = '1';
          }
        }
        /**change a destination topic */

      }, {
        key: "changeSourceTopic",
        value: function changeSourceTopic() {
          if (this.sourceTopic == 'topic') {
            this.srcTopic = '0';
          } else {
            this.srcTopic = '1';
          }
        }
        /**send a jms json data for tibco ssl */

      }, {
        key: "sendDataForJmsConfiguration",
        value: function sendDataForJmsConfiguration() {
          try {
            //this.log.debug('sending data for jms config');
            var enableKey = this.enablekeyword;
            var sendDataForTibco = '';
          } catch (error) {
            console.error('error in sending data for jms config.');
          }
        }
        /**saving a ibmmq data to server */

      }, {
        key: "sendIbmmqData",
        value: function sendIbmmqData() {
          var _this3 = this;

          try {
            //this.log.debug('saving a ibmmq data');
            if (this.validateIbmmqConfig() == false) {
              return;
            } // for(let i = 0; i < this.tibcoData.length; i++){
            //   if(this.tibcoData[i]['server'] == "IBMMQ"){
            //     if(this.serverip == this.tibcoData[i]['sourceServerIP'] && this.sourceport == this.tibcoData[i]['sourceServerPort']){
            //       alert('JMS Settings already configured on same IP and Port. Please change IP or Port.');
            //       return false;
            //     }
            //   }
            // }


            var no = Math.floor(Math.random() * 1000 + 1); // console.log('values in the numbers---->', no);

            var username = 'NULL';

            if (this.username != '') {
              username = this.username;
            }

            var password = 'NULL';

            if (this.password != '') {
              password = this.password;
            }

            var data = 'JMS_IBMMQ ' + no + ' ' + this.serverip + '(' + this.sourceport + ') ' + this.queManager + ' ' + this.ibmChannel + ' ' + this.ibmQue + ' ' + username + ' ' + password;

            if (this.mode == '1') {
              data = data + ' 1 ' + this.filename;
            }

            var DestiUsername = 'NULL';

            if (this.DestiUsername != '') {
              DestiUsername = this.DestiUsername;
            }

            var DesPassword = 'NULL';

            if (this.DesPassword != '') {
              DesPassword = this.DesPassword;
            }

            if (this.mode == '2') {
              data = data + ' 2 ' + this.DesServerip + '(' + this.portdestination + ') ' + this.destqueManager + ' ' + this.destibmChannel + ' ' + this.destibmQue + ' ' + DestiUsername + ' ' + DesPassword;
            }

            var isUpdate = 'false';

            if (this.serveObj.$tibcoOperation == 'update') {
              isUpdate = 'true';
            } // console.log('data in the ibmque keyword');


            var jsonData = {
              'data': data,
              'isUpdate': isUpdate,
              'key': 'JMS_IBMMQ ' + this.removeIndex,
              'user': sessionStorage.getItem('sesLoginName')
            };
            this.unsavedChanges = false;
            var url = this._netoceanConfig.getHostURL() + '/ProductUI/productSummary/NetOceanWebService/saveIbmKeyword';
            /**send a request to get a list of admin */

            this.NetoceanRestApi.getDataFromRESTUsingPOSTReq('saveIbmKeyword', '', jsonData, '/ProductUI/productSummary/NetOceanWebService/').subscribe(function (result) {
              // console.log('data in the result', result);
              if (result == undefined || result == '') {
                _this3.showDialog('Error in getting data from server.');

                return;
              } else {
                // this.messageService.clear();
                // this.messageService.add({ key: 'msgs', severity: 'info', summary: 'Message', detail: 'JMS Settings saved successfully' });
                if (_this3.serveObj.$tibcoOperation == 'update') _this3.alertMessage = "JMS Settings Updated Successfully.";else _this3.alertMessage = "JMS Settings Saved Successfully.";
                _this3.isAlert = true;
              }
            }, function (error) {
              console.log('error in progressing report', error);
            }, function () {});
          } catch (error) {
            console.error('error in sending a ibmmq data', error);
          }
        }
      }, {
        key: "jmsConfigureDialogKafkaFunction",
        value: function jmsConfigureDialogKafkaFunction(value) {
          try {
            this.jmsMechanismDropdownValueSource = 'PLAIN';
            this.jmsMechanismDropdownValueDestination = 'PLAIN';

            if (value == 'source') {
              if (this.enableConnectionForSrc == 'ssl' || this.enableConnectionForSrc == 'sasl_ssl') this.getCipherList();
              this.jmsConfigureDialogKafkaSource = true;
            }

            if (value == 'Destination') {
              if (this.enableConnectionForDestination == 'ssl' || this.enableConnectionForDestination == 'sasl_ssl') this.getCipherList();
              this.jmsConfigureDialogKafkaDestination = true;
            }
          } catch (error) {
            console.error('Error in opening jmsConfigureDialogFunction()', error);
          }
        }
      }, {
        key: "getCipherList",
        value: function getCipherList() {
          var _this4 = this;

          try {
            var url = this._netoceanConfig.getHostURL() + '/ProductUI/productSummary/NetOceanWebService/getSSLSettings';
            /**send a request to get a list of admin */

            var temp = this.NetoceanRestApi.getDataByRESTAPI('getSSLSettings', '', '/ProductUI/productSummary/NetOceanWebService/').subscribe(function (result) {
              _this4.jmsCipherMultiSelect = [];

              if (result['cipherList'].length > 0) {
                var _iterator = _createForOfIteratorHelper(result['cipherList']),
                    _step;

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

                    _this4.jmsCipherMultiSelect.push({
                      label: value,
                      value: value
                    });
                  }
                } catch (err) {
                  _iterator.e(err);
                } finally {
                  _iterator.f();
                }
              }
            }, function (error) {
              temp.unsubscribe();
            }, function () {
              if (temp) {
                temp.unsubscribe();
              }
            });
          } catch (error) {
            console.error("error in getCipherList--->>", error);
          }
        }
      }, {
        key: "sendkafkaJsonData",
        value: function sendkafkaJsonData() {
          var _this5 = this;

          try {
            //this.log.debug('sending a json data for the jms');
            if (this.validateJmsFields() == false) {
              return false;
            } // let trusted = 'NULL';
            // if (this.trusted != '') {
            //   trusted = this.trusted;
            // }
            // let issuer = 'NULL';
            // if (this.issuer != '') {
            //   issuer = this.issuer;
            // }
            // let identity = 'NULL';
            // if (this.identity != '') {
            //   identity = this.identity;
            // }
            // let file = 'NULL';
            // if (this.file != '') {
            //   file = this.file;
            // }
            // let cipher = 'NULL';
            // if (this.cipher != '') {
            //   cipher = this.cipher;
            // }
            // let sshHost = 'NULL';
            // if (this.sshHost != '') {
            //   sshHost = this.sshHost;
            // }
            // let pwd = 'NULL';
            // if (this.pwd != '') {
            //   pwd = this.pwd;
            // }
            // let dtrusted = 'NULL';
            // if (this.dtrusted != '') {
            //   dtrusted = this.dtrusted;
            // }
            // let dissuer = 'NULL';
            // if (this.dissuer != '') {
            //   dissuer = this.dissuer;
            // }
            // let didentity = 'NULL';
            // if (this.didentity != '') {
            //   didentity = this.didentity;
            // }
            // let dfile = 'NULL';
            // if (this.dfile != '') {
            //   dfile = this.dfile;
            // }
            // let dcipher = 'NULL';
            // if (this.dcipher != '') {
            //   dcipher = this.dcipher;
            // }
            // let dsshHost = 'NULL';
            // if (this.dsshHost != '') {
            //   dsshHost = this.dsshHost;
            // }
            // let dpassword = 'NULL';
            // if (this.dpassword != '') {
            //   dpassword = this.dpassword;
            // }


            console.log("value of jmsMechanismDropdownValueSource", this.jmsMechanismDropdownValueSource);
            var sendSourceIP = this.serverip + ':' + this.sourceport;
            var destIp = this.DesServerip + ':' + this.portdestination; // if (this.enableConnectionForSrc == 'ssl' || this.enableConnectionForSrc == 'sasl_ssl') {
            //   sendSourceIP = 'ssl://' + this.serverip + ':' + this.sourceport;
            //   if (this.enableConnectionForDestination == 'ssl' || this.enableConnectionForDestination == 'sasl_ssl') {
            //     destIp = 'ssl://' + this.DesServerip + ':' + this.portdestination;
            //   }
            // }

            var jmsData = {
              'keyword': this.enablekeyword.trim(),
              'mode': this.mode.trim(),
              'kafkaSourceIpPort': sendSourceIP.trim(),
              'kafkaDestinationIpPort': destIp.trim(),
              'kafkaSrcConnection': this.enableConnectionForSrc,
              'kafkaDestConnection': this.enableConnectionForDestination,
              'kafkaSrcTopic': this.topicForSrcKafka,
              'kafkaConsumerGroup': this.consumerGroupForSource,
              'kafkaSrcCiphers': this.jmsCipherMultiSelectValueSource.join(':'),
              'kafkaSrcCertificateFile': this.JMSCERTFileSource,
              'kafkaSrcKeyFile': this.JMSKeyFileSource,
              'kafkaSrcPassword': this.JMSFilePWDSource,
              'kafkaSrcTrustedCaFile': this.JMSTrustedCASource,
              'kafkaSrcSaslUser': this.SSL_UserSource,
              'kafkaSrcSaslPwd': this.SSL_PwdSource,
              'kafkaSrcSaslMechanism': this.jmsMechanismDropdownValueSource,
              'kafkaDestTopic': this.topicForDestinatioonKafka,
              'kafkaDestCiphers': this.jmsCipherMultiSelectValueDestination.join(':'),
              'kafkaDestCertificateFile': this.JMSCERTFileDestination,
              'kafkaDestKeyFile': this.JMSKeyFileDestination,
              'kafkaDestPassword': this.JMSFilePWDDestination,
              'kafkaDestTrustedCaFile': this.JMSTrustedCADestination,
              'kafkaDestSaslUser': this.SSL_UserDestination,
              'kafkaDestSaslPwd': this.SSL_PwdDestination,
              'kafkaDestSaslMechanism': this.jmsMechanismDropdownValueDestination,
              'user': sessionStorage.getItem('sesLoginName')
            };
            var removeKey = '';

            if (this.serveObj.$tibcoOperation == 'update') {
              removeKey = 'JMS_KAFKA ' + this.removeIndex;

              if (this.enableConnectionForSrc == 'ssl') {
                removeKey = removeKey + ',' + 'KAFKA_SRC_SVR_SSL_INFO ' + this.removeIndex;
              } else if (this.enableConnectionForSrc == 'plaintext_sasl') {
                removeKey = removeKey + ',' + 'KAFKA_SRC_SVR_SASL_INFO ' + this.removeIndex;
              } else if (this.enableConnectionForSrc == 'sasl_ssl') {
                removeKey = removeKey + ',' + 'KAFKA_SRC_SVR_SSL_INFO ' + this.removeIndex;
                removeKey = removeKey + ',' + 'KAFKA_SRC_SVR_SASL_INFO ' + this.removeIndex;
              }

              if (this.mode == '2') {
                if (this.enableConnectionForDestination == 'ssl') {
                  removeKey = removeKey + ',' + 'KAFKA_DST_SVR_SSL_INFO ' + this.removeIndex;
                } else if (this.enableConnectionForDestination == 'plaintext_sasl') {
                  removeKey = removeKey + ',' + 'KAFKA_DST_SVR_SASL_INFO ' + this.removeIndex;
                } else if (this.enableConnectionForDestination == 'sasl_ssl') {
                  removeKey = removeKey + ',' + 'KAFKA_DST_SVR_SSL_INFO ' + this.removeIndex;
                  removeKey = removeKey + ',' + 'KAFKA_DST_SVR_SASL_INFO ' + this.removeIndex;
                }
              } // this.serveObj.removeKeyWord(true, removeKey);


              var mode = 'false';

              if (this.serveObj.$mode == 'RTC Mode') {
                mode = 'true';
              }

              var jsonData = {
                'service': true,
                'data': removeKey,
                'isFormHpd': true,
                'isRtc': mode
              };
              var ip = this._netoceanConfig.getHostURL() + '/ProductUI/productSummary/NetOceanWebService/removeKeyWord';
              var DataSubcription = this.NetoceanRestApi.getDataFromRESTUsingPOSTReq('removeKeyWord', '', jsonData, '/ProductUI/productSummary/NetOceanWebService/').subscribe(function (result) {
                if (result['msg'] == "true") _this5._config.setJmsField(jmsData);
              }, function (error) {// this.log.debug('error in set comments ', error);
              }, function () {
                DataSubcription.unsubscribe();
              });
            } else {
              this._config.setJmsField(jmsData);
            }

            if (this.serveObj.$tibcoOperation == 'update') this.alertMessage = "JMS Settings Updated Successfully.";else this.alertMessage = "JMS Settings Saved Successfully.";
            this.unsavedChanges = false;
            this.isAlert = true;
          } catch (error) {
            console.error('error in sending a json data', error);
          }
        }
      }, {
        key: "kafkaAdvanceSettingDialogClose",
        value: function kafkaAdvanceSettingDialogClose(value) {
          try {
            if (value == 'Source') {
              this.jmsConfigureDialogKafkaSource = false;
            } else {
              this.jmsConfigureDialogKafkaDestination = false;
            }
          } catch (error) {
            console.error("Error in kafkaAdvanceSettingDialogClose()", error);
          }
        }
      }, {
        key: "onMeassageFileUpload",
        value: function onMeassageFileUpload(event, fieldName) {
          try {
            this.alertMessage = "File Uploaded Successfully";
            this.isAlert = true;
            var array;
            this.uploadedFiles = [];

            var _iterator2 = _createForOfIteratorHelper(event.files),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var file = _step2.value;
                array = file; //this.uploadedFiles.push(file);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }

            this.uploadedFiles.push(array);
            if (fieldName == 'Source Certificate File') this.JMSCERTFileSource = array["name"];else if (fieldName == 'Source Key File') this.JMSKeyFileSource = array["name"];else if (fieldName == 'Source Trusted CA File') this.JMSTrustedCASource = array["name"];else if (fieldName == 'Destination Certificate File') this.JMSCERTFileDestination = array["name"];else if (fieldName == 'Destination Key File') this.JMSKeyFileDestination = array["name"];else if (fieldName == 'Destination Trusted CA File') this.JMSTrustedCADestination = array["name"];
            this.fileUpload.clear();
          } catch (error) {// // console.error("onMeassageFileUpload ---->>>>",error);
          }
        }
      }, {
        key: "validateFile",
        value: function validateFile(event, uploader) {
          try {
            var fileName = event.files[0]['name'];
            var fileSize = event.files[0]['size'];

            if (fileName.includes(" ")) {
              uploader.remove(event, 0);
              this.messageService.clear();
              this.messageService.add({
                key: 'msgs',
                severity: 'success',
                summary: 'Message',
                detail: 'File can have space.\nPlease upload another file.'
              });
              uploader.remove(event, 0);
              return;
            }

            if (fileSize == 0) {
              this.messageService.clear();
              this.messageService.add({
                key: 'msgs',
                severity: 'success',
                summary: 'Message',
                detail: 'File size is zero.\nPlease upload another file'
              });
              uploader.remove(event, 0);
              return;
            } else if (!fileName.includes(".")) {
              this.messageService.clear();
              this.messageService.add({
                key: 'msgs',
                severity: 'success',
                summary: 'Message',
                detail: "File doesn't have any extension.\nPlease upload another file"
              });
              uploader.remove(event, 0);
              return;
            } else {
              // Extracting the file extension from file name
              var fileExtension = fileName.substring(fileName.lastIndexOf("."));

              if (!this.supportedExtensions.includes(fileExtension)) {
                this.messageService.clear();
                this.messageService.add({
                  key: 'msgs',
                  severity: 'success',
                  summary: 'Message',
                  detail: "File extension not supported.\nPlease add the extension in configuration if needed."
                });
                uploader.remove(event, 0);
                return;
              } else {
                return;
              }
            }
          } catch (error) {// // console.error("Exception occurred while file validation", error);
          }
        }
      }, {
        key: "cancel",
        value: function cancel() {
          this.breadcrumb.back();
        }
      }, {
        key: "getHPDStatus",
        value: function getHPDStatus() {
          var _this6 = this;

          this.jmsSubscription = this._manageService.activateProvider$.subscribe(function (result) {
            // if (this._manageService.action == 'restartHpd') {
            _this6.isEnabledSpinner = false; // let status = result['status'].replace(/\\n/g, "\n");
            // alert(status);
          } // }
          );
        }
      }, {
        key: "copySourceToDestination",
        value: function copySourceToDestination() {
          if (this.sameAs) {
            this.DesServerip = this.serverip;
            this.portdestination = this.sourceport;
            this.DestiUsername = this.username;
            this.DesPassword = this.password;
          } else {
            this.DesServerip = '';
            this.portdestination = '';
            this.DestiUsername = '';
            this.DesPassword = '';
          }
        }
      }]);
    }();

    NetoceanJmsSettingsComponent.ctorParameters = function () {
      return [{
        type: _services_netocean_common_service__WEBPACK_IMPORTED_MODULE_2__["NetoceanCommonService"]
      }, {
        type: _services_netocean_configuration_service__WEBPACK_IMPORTED_MODULE_3__["NetoceanConfigurationService"]
      }, {
        type: _services_manage_services_info_service__WEBPACK_IMPORTED_MODULE_10__["ManageServicesInfoService"]
      }, {
        type: primeng__WEBPACK_IMPORTED_MODULE_4__["ConfirmationService"]
      }, {
        type: primeng_api__WEBPACK_IMPORTED_MODULE_7__["MessageService"]
      }, {
        type: _services_netocean_config_service__WEBPACK_IMPORTED_MODULE_5__["NetoceanConfig"]
      }, {
        type: _services_netocean_rest_api_service__WEBPACK_IMPORTED_MODULE_6__["NetoceanRestApi"]
      }, {
        type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"]
      }, {
        type: src_app_shared_cav_nav_bar_cav_nav_bar_service__WEBPACK_IMPORTED_MODULE_11__["CavNavBarService"]
      }, {
        type: src_app_core_breadcrumb_breadcrumb_service__WEBPACK_IMPORTED_MODULE_12__["BreadcrumbService"]
      }, {
        type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_8__["SessionService"]
      }];
    };

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

  /***/
  "./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.module.ts":
  /*!******************************************************************************************************!*\
    !*** ./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.module.ts ***!
    \******************************************************************************************************/

  /*! exports provided: onMonacoLoad, NetoceanJmsSettingsModule */

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

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


    __webpack_require__.d(__webpack_exports__, "onMonacoLoad", function () {
      return onMonacoLoad;
    });
    /* harmony export (binding) */


    __webpack_require__.d(__webpack_exports__, "NetoceanJmsSettingsModule", function () {
      return NetoceanJmsSettingsModule;
    });
    /* 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 _netocean_jms_settings_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
    /*! ./netocean-jms-settings.component */
    "./src/app/pages/home/netocean/components/netocean-jms-settings/netocean-jms-settings.component.ts");
    /* harmony import */


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


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


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


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


    var _interfaces_confirmUnsavedChangesroutingguard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
    /*! ../../interfaces/confirmUnsavedChangesroutingguard */
    "./src/app/pages/home/netocean/interfaces/confirmUnsavedChangesroutingguard.ts");
    /* harmony import */


    var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
    /*! @angular/material/tooltip */
    "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tooltip.js");

    function onMonacoLoad() {
      console.log(window.monaco);
      return window.monaco;
    }

    var monacoConfig = {
      baseUrl: './assets',
      defaultOptions: {
        scrollBeyondLastLine: false
      },
      onMonacoLoad: onMonacoLoad // here monaco object will be available as window.monaco use this function to extend monaco editor functionalities.

    };
    var routes = [{
      path: '',
      component: _netocean_jms_settings_component__WEBPACK_IMPORTED_MODULE_3__["NetoceanJmsSettingsComponent"],
      canDeactivate: [_interfaces_confirmUnsavedChangesroutingguard__WEBPACK_IMPORTED_MODULE_8__["ConfirmUnsavedChangesGuard"]]
    }];

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

    NetoceanJmsSettingsModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
      declarations: [_netocean_jms_settings_component__WEBPACK_IMPORTED_MODULE_3__["NetoceanJmsSettingsComponent"]],
      imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_router__WEBPACK_IMPORTED_MODULE_7__["RouterModule"].forChild(routes), _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"], src_app_shared_help_help_module__WEBPACK_IMPORTED_MODULE_6__["HelpModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DialogModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextareaModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["AccordionModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["TooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MenuModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["CheckboxModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["DropdownModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ConfirmDialogModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["PanelModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ToastModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["MultiSelectModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["RadioButtonModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["OverlayPanelModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["BreadcrumbModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["ProgressBarModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__["MatTooltipModule"], primeng__WEBPACK_IMPORTED_MODULE_5__["InputTextModule"]],
      providers: [],
      schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]]
    })], NetoceanJmsSettingsModule);
    /***/
  }
}]);