(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{

/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
  !*** ./src/$$_lazy_route_resource lazy namespace object ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncaught exception popping up in devtools
	return Promise.resolve().then(function() {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";

/***/ }),

/***/ "./src/app/app-router/app-router.module.ts":
/*!*************************************************!*\
  !*** ./src/app/app-router/app-router.module.ts ***!
  \*************************************************/
/*! exports provided: AppRouterModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRouterModule", function() { return AppRouterModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _components_l2_content_primary_container_widget_widget_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/l2/content/primary-container/widget/widget.component */ "./src/app/components/l2/content/primary-container/widget/widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_message_message_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/l2/content/primary-container/message/message.component */ "./src/app/components/l2/content/primary-container/message/message.component.ts");
/* harmony import */ var _components_l2_content_primary_container_intent_box_intent_box_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/l2/content/primary-container/intent-box/intent-box.component */ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.ts");
/* harmony import */ var _components_l2_content_command_prompt_command_prompt_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/l2/content/command-prompt/command-prompt.component */ "./src/app/components/l2/content/command-prompt/command-prompt.component.ts");
/* harmony import */ var _components_l2_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/l2/sidebar/sidebar.component */ "./src/app/components/l2/sidebar/sidebar.component.ts");
/* harmony import */ var _components_l2_content_content_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/l2/content/content.component */ "./src/app/components/l2/content/content.component.ts");
/* harmony import */ var _components_l2_content_modal_modal_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../components/l2/content/modal/modal.component */ "./src/app/components/l2/content/modal/modal.component.ts");
/* harmony import */ var _components_l2_content_primary_container_primary_container_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/l2/content/primary-container/primary-container.component */ "./src/app/components/l2/content/primary-container/primary-container.component.ts");
/* harmony import */ var _components_l2_content_primary_container_cards_cards_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/l2/content/primary-container/cards/cards.component */ "./src/app/components/l2/content/primary-container/cards/cards.component.ts");
/* harmony import */ var _components_l2_content_primary_container_cards_card_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/l2/content/primary-container/cards/card/card.component */ "./src/app/components/l2/content/primary-container/cards/card/card.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};













var appRoutes = [
    { path: '', redirectTo: '/home', pathMatch: 'full' },
    {
        path: 'home',
        children: [
            { path: '', component: _components_l2_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_7__["SidebarComponent"], outlet: 'sidebar' },
            {
                path: '',
                component: _components_l2_content_content_component__WEBPACK_IMPORTED_MODULE_8__["ContentComponent"],
                outlet: 'content',
                children: [
                    { path: '', component: _components_l2_content_command_prompt_command_prompt_component__WEBPACK_IMPORTED_MODULE_6__["CommandPromptComponent"], outlet: 'command-prompt' },
                    { path: '', component: _components_l2_content_modal_modal_component__WEBPACK_IMPORTED_MODULE_9__["ModalComponent"], outlet: 'modal' },
                    {
                        path: '',
                        component: _components_l2_content_primary_container_primary_container_component__WEBPACK_IMPORTED_MODULE_10__["PrimaryContainerComponent"],
                        outlet: 'primary-container',
                        children: [
                            {
                                path: '',
                                component: _components_l2_content_primary_container_cards_cards_component__WEBPACK_IMPORTED_MODULE_11__["CardsComponent"],
                                outlet: 'cards',
                                children: [
                                    { path: '', component: _components_l2_content_primary_container_cards_card_card_component__WEBPACK_IMPORTED_MODULE_12__["CardComponent"], outlet: 'card' },
                                ]
                            },
                            { path: '', component: _components_l2_content_primary_container_intent_box_intent_box_component__WEBPACK_IMPORTED_MODULE_5__["IntentBoxComponent"], outlet: 'intent' },
                            { path: '', component: _components_l2_content_primary_container_message_message_component__WEBPACK_IMPORTED_MODULE_4__["MessageComponent"], outlet: 'message' },
                            { path: '', component: _components_l2_content_primary_container_widget_widget_component__WEBPACK_IMPORTED_MODULE_3__["WidgetComponent"], outlet: 'widget' }
                        ]
                    }
                ]
            }
        ]
    },
    { path: 'appWidget', component: _components_l2_content_primary_container_widget_widget_component__WEBPACK_IMPORTED_MODULE_3__["WidgetComponent"] },
    { path: 'error', component: _components_l2_content_primary_container_message_message_component__WEBPACK_IMPORTED_MODULE_4__["MessageComponent"] },
    { path: 'intent', component: _components_l2_content_primary_container_intent_box_intent_box_component__WEBPACK_IMPORTED_MODULE_5__["IntentBoxComponent"] }
    // { path: 'appWidget', component: WidgetComponent }
];
var AppRouterModule = /** @class */ (function () {
    function AppRouterModule() {
    }
    AppRouterModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(appRoutes)
            ],
            exports: [
                _angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]
            ],
            declarations: []
        })
    ], AppRouterModule);
    return AppRouterModule;
}());



/***/ }),

/***/ "./src/app/app.component.css":
/*!***********************************!*\
  !*** ./src/app/app.component.css ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ".wrapper {\n    /* height: 100%; */\n    display: flex;\n    flex-direction: row;\n    align-items: stretch;\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    right: 0;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYXBwLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7SUFDSSxrQkFBa0I7SUFDbEIsYUFBYTtJQUNiLG1CQUFtQjtJQUNuQixvQkFBb0I7SUFDcEIsa0JBQWtCO0lBQ2xCLE1BQU07SUFDTixTQUFTO0lBQ1QsT0FBTztJQUNQLFFBQVE7QUFDWiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLndyYXBwZXIge1xuICAgIC8qIGhlaWdodDogMTAwJTsgKi9cbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgYWxpZ24taXRlbXM6IHN0cmV0Y2g7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogMDtcbiAgICBib3R0b206IDA7XG4gICAgbGVmdDogMDtcbiAgICByaWdodDogMDtcbn1cbiJdfQ== */"

/***/ }),

/***/ "./src/app/app.component.html":
/*!************************************!*\
  !*** ./src/app/app.component.html ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div class=\"wrapper\">\n    <router-outlet name=\"sidebar\"></router-outlet>\n    <router-outlet name=\"content\"></router-outlet>\n</div>"

/***/ }),

/***/ "./src/app/app.component.ts":
/*!**********************************!*\
  !*** ./src/app/app.component.ts ***!
  \**********************************/
/*! exports provided: AppComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _services_io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services/io/persistence-ops.service */ "./src/app/services/io/persistence-ops.service.ts");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var AppComponent = /** @class */ (function () {
    function AppComponent(persistenceOpsService, store) {
        this.persistenceOpsService = persistenceOpsService;
        this.store = store;
        this.title = 'app';
    }
    AppComponent.prototype.ngOnInit = function () {
        this.registerEvents();
    };
    AppComponent.prototype.registerEvents = function () {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__(document).ready(function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#btnFavorites').click(function () {
            });
            function hitEnter(command) {
                var commandInputField = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#command');
                if (command)
                    commandInputField.val(command);
                var e = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__["Event"]('keyup');
                e.which = 13;
                commandInputField.focus();
                commandInputField.trigger(e);
            }
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#btnFireCommand').click(function () {
                hitEnter("");
            });
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#hideInfoAlert').on('click', function () {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#intentBox').addClass('hide');
            });
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#hideSuccessAlert').on('click', function () {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#successAlert').addClass('hide');
            });
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#conversations').on('click', '.close', function () {
                var $target = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__(this).closest('.card');
                var line = $target.next();
                $target.hide('slow', function () { $target.remove(); });
                line.hide('slow', function () { line.remove(); });
            });
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#conversations').on('click', '.btn.btn-info.float-right', function () {
                var parentText = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__(this).closest('.card-text').text();
                var command = parentText.substring(0, parentText.indexOf('Repeat'));
                hitEnter(command);
            });
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#hideDangerAlert').on('click', function () {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#dangerAlert').addClass('hide');
            });
            // $('#git_bridge').on('click', () => {
            //   window.location.href = 'https://github.com/login/oauth/authorize?scope=user:email:repo&client_id=f6f649a1fe2dfea082ba';
            // });
            // const localHistory = JSON.parse(window.localStorage.getItem('currentState'));
            // window.onload = initOps();
            function initOps() {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#command').focus();
                // dom.loadConversations(helper.concatenateAndSort(localHistory));
            }
            if (window.location.href.match(/\?code=(.*)/)) {
                var code = window.location.href.match(/\?code=(.*)/)[1];
                // app.getToken(code);
            }
        });
    };
    AppComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-root',
            template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"),
            styles: [__webpack_require__(/*! ./app.component.css */ "./src/app/app.component.css")]
        }),
        __metadata("design:paramtypes", [_services_io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_1__["PersistenceOpsService"], _ngrx_store__WEBPACK_IMPORTED_MODULE_2__["Store"]])
    ], AppComponent);
    return AppComponent;
}());



/***/ }),

/***/ "./src/app/app.module.ts":
/*!*******************************!*\
  !*** ./src/app/app.module.ts ***!
  \*******************************/
/*! exports provided: AppModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _angular_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/http */ "./node_modules/@angular/http/fesm5/http.js");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
/* harmony import */ var _app_router_app_router_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-router/app-router.module */ "./src/app/app-router/app-router.module.ts");
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
/* harmony import */ var _components_l2_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/l2/sidebar/sidebar.component */ "./src/app/components/l2/sidebar/sidebar.component.ts");
/* harmony import */ var _components_l1_text_field_text_field_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/l1/text-field/text-field.component */ "./src/app/components/l1/text-field/text-field.component.ts");
/* harmony import */ var _components_l1_button_button_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/l1/button/button.component */ "./src/app/components/l1/button/button.component.ts");
/* harmony import */ var _components_l2_content_command_prompt_command_prompt_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/l2/content/command-prompt/command-prompt.component */ "./src/app/components/l2/content/command-prompt/command-prompt.component.ts");
/* harmony import */ var _components_l2_content_primary_container_primary_container_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/l2/content/primary-container/primary-container.component */ "./src/app/components/l2/content/primary-container/primary-container.component.ts");
/* harmony import */ var _components_l2_content_content_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/l2/content/content.component */ "./src/app/components/l2/content/content.component.ts");
/* harmony import */ var _components_l2_content_modal_modal_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/l2/content/modal/modal.component */ "./src/app/components/l2/content/modal/modal.component.ts");
/* harmony import */ var _components_l2_content_primary_container_message_message_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/l2/content/primary-container/message/message.component */ "./src/app/components/l2/content/primary-container/message/message.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_widget_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/widget.component */ "./src/app/components/l2/content/primary-container/widget/widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_cards_card_card_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/l2/content/primary-container/cards/card/card.component */ "./src/app/components/l2/content/primary-container/cards/card/card.component.ts");
/* harmony import */ var _components_l2_content_primary_container_intent_box_intent_box_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/l2/content/primary-container/intent-box/intent-box.component */ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.ts");
/* harmony import */ var _components_l2_content_primary_container_cards_cards_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/l2/content/primary-container/cards/cards.component */ "./src/app/components/l2/content/primary-container/cards/cards.component.ts");
/* harmony import */ var _services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./services/github/github-ops.service */ "./src/app/services/github/github-ops.service.ts");
/* harmony import */ var _services_io_json_reader_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./services/io/json-reader.service */ "./src/app/services/io/json-reader.service.ts");
/* harmony import */ var _services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var _services_recast_recast_ops_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./services/recast/recast-ops.service */ "./src/app/services/recast/recast-ops.service.ts");
/* harmony import */ var _services_io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./services/io/persistence-ops.service */ "./src/app/services/io/persistence-ops.service.ts");
/* harmony import */ var _store_cards_reducer__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./store/cards.reducer */ "./src/app/store/cards.reducer.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_add_collab_widget_add_collab_widget_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component */ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_add_issue_comment_widget_add_issue_comment_widget_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component */ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_close_issue_widget_close_issue_widget_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component */ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_create_issue_widget_create_issue_widget_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component */ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_create_repo_widget_create_repo_widget_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component */ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_display_last_comment_widget_display_last_comment_widget_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component */ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.ts");
/* harmony import */ var _components_l2_content_primary_container_widget_view_repo_widget_view_repo_widget_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component */ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
































var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            declarations: [
                _app_component__WEBPACK_IMPORTED_MODULE_6__["AppComponent"],
                _components_l2_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_7__["SidebarComponent"],
                _components_l1_text_field_text_field_component__WEBPACK_IMPORTED_MODULE_8__["TextFieldComponent"],
                _components_l1_button_button_component__WEBPACK_IMPORTED_MODULE_9__["ButtonComponent"],
                _components_l2_content_command_prompt_command_prompt_component__WEBPACK_IMPORTED_MODULE_10__["CommandPromptComponent"],
                _components_l2_content_content_component__WEBPACK_IMPORTED_MODULE_12__["ContentComponent"],
                _components_l2_content_primary_container_primary_container_component__WEBPACK_IMPORTED_MODULE_11__["PrimaryContainerComponent"],
                _components_l2_content_modal_modal_component__WEBPACK_IMPORTED_MODULE_13__["ModalComponent"],
                _components_l2_content_primary_container_message_message_component__WEBPACK_IMPORTED_MODULE_14__["MessageComponent"],
                _components_l2_content_primary_container_widget_widget_component__WEBPACK_IMPORTED_MODULE_15__["WidgetComponent"],
                _components_l2_content_primary_container_cards_card_card_component__WEBPACK_IMPORTED_MODULE_16__["CardComponent"],
                _components_l2_content_primary_container_intent_box_intent_box_component__WEBPACK_IMPORTED_MODULE_17__["IntentBoxComponent"],
                _components_l2_content_primary_container_cards_cards_component__WEBPACK_IMPORTED_MODULE_18__["CardsComponent"],
                _components_l2_content_primary_container_widget_add_collab_widget_add_collab_widget_component__WEBPACK_IMPORTED_MODULE_25__["AddCollabWidgetComponent"],
                _components_l2_content_primary_container_widget_add_issue_comment_widget_add_issue_comment_widget_component__WEBPACK_IMPORTED_MODULE_26__["AddIssueCommentWidgetComponent"],
                _components_l2_content_primary_container_widget_close_issue_widget_close_issue_widget_component__WEBPACK_IMPORTED_MODULE_27__["CloseIssueWidgetComponent"],
                _components_l2_content_primary_container_widget_create_issue_widget_create_issue_widget_component__WEBPACK_IMPORTED_MODULE_28__["CreateIssueWidgetComponent"],
                _components_l2_content_primary_container_widget_create_repo_widget_create_repo_widget_component__WEBPACK_IMPORTED_MODULE_29__["CreateRepoWidgetComponent"],
                _components_l2_content_primary_container_widget_display_last_comment_widget_display_last_comment_widget_component__WEBPACK_IMPORTED_MODULE_30__["DisplayLastCommentWidgetComponent"],
                _components_l2_content_primary_container_widget_view_repo_widget_view_repo_widget_component__WEBPACK_IMPORTED_MODULE_31__["ViewRepoWidgetComponent"]
            ],
            imports: [
                _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
                _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
                _app_router_app_router_module__WEBPACK_IMPORTED_MODULE_5__["AppRouterModule"],
                _angular_http__WEBPACK_IMPORTED_MODULE_3__["HttpModule"],
                _ngrx_store__WEBPACK_IMPORTED_MODULE_4__["StoreModule"].forRoot({ ioHistory: _store_cards_reducer__WEBPACK_IMPORTED_MODULE_24__["updateHistoryReducer"] })
            ],
            providers: [_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_21__["DomOpsService"], _services_io_json_reader_service__WEBPACK_IMPORTED_MODULE_20__["JsonReaderService"], _services_recast_recast_ops_service__WEBPACK_IMPORTED_MODULE_22__["RecastOpsService"], _services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_19__["GithubOpsService"], _services_io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_23__["PersistenceOpsService"]],
            bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_6__["AppComponent"]]
        })
    ], AppModule);
    return AppModule;
}());



/***/ }),

/***/ "./src/app/components/l1/button/button.component.html":
/*!************************************************************!*\
  !*** ./src/app/components/l1/button/button.component.html ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<p>\n  button works!\n</p>\n"

/***/ }),

/***/ "./src/app/components/l1/button/button.component.scss":
/*!************************************************************!*\
  !*** ./src/app/components/l1/button/button.component.scss ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDEvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l1/button/button.component.ts":
/*!**********************************************************!*\
  !*** ./src/app/components/l1/button/button.component.ts ***!
  \**********************************************************/
/*! exports provided: ButtonComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonComponent", function() { return ButtonComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var ButtonComponent = /** @class */ (function () {
    function ButtonComponent() {
    }
    ButtonComponent.prototype.ngOnInit = function () {
    };
    ButtonComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-button',
            template: __webpack_require__(/*! ./button.component.html */ "./src/app/components/l1/button/button.component.html"),
            styles: [__webpack_require__(/*! ./button.component.scss */ "./src/app/components/l1/button/button.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], ButtonComponent);
    return ButtonComponent;
}());



/***/ }),

/***/ "./src/app/components/l1/text-field/text-field.component.html":
/*!********************************************************************!*\
  !*** ./src/app/components/l1/text-field/text-field.component.html ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<input type=\"{{type}}\" id=\"textFieldId\" placeholder=\"{{placeHolderText}}\">"

/***/ }),

/***/ "./src/app/components/l1/text-field/text-field.component.scss":
/*!********************************************************************!*\
  !*** ./src/app/components/l1/text-field/text-field.component.scss ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDEvdGV4dC1maWVsZC90ZXh0LWZpZWxkLmNvbXBvbmVudC5zY3NzIn0= */"

/***/ }),

/***/ "./src/app/components/l1/text-field/text-field.component.ts":
/*!******************************************************************!*\
  !*** ./src/app/components/l1/text-field/text-field.component.ts ***!
  \******************************************************************/
/*! exports provided: TextFieldComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextFieldComponent", function() { return TextFieldComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var TextFieldComponent = /** @class */ (function () {
    function TextFieldComponent() {
    }
    TextFieldComponent.prototype.ngOnInit = function () {
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "textFieldId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "placeHolderText", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], TextFieldComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "maxLength", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "pattern", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], TextFieldComponent.prototype, "readOnly", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "type", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "value", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], TextFieldComponent.prototype, "classes", void 0);
    TextFieldComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-text-field',
            template: __webpack_require__(/*! ./text-field.component.html */ "./src/app/components/l1/text-field/text-field.component.html"),
            styles: [__webpack_require__(/*! ./text-field.component.scss */ "./src/app/components/l1/text-field/text-field.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], TextFieldComponent);
    return TextFieldComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/command-prompt/command-prompt.component.html":
/*!************************************************************************************!*\
  !*** ./src/app/components/l2/content/command-prompt/command-prompt.component.html ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"header\" class=\"headerprompt\" (dragend)=\"showContextMenu($event)\">\n  <!-- <div class=\"prompt listening_indicator\"> -->\n  <div class=\"prompt\">\n    <p class=\"promptext\">$_</p>\n    <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"equalizer hide\" viewBox=\"0 0 80 80\">\n        <rect class=\"bar\" transform=\"translate(13,30)\"></rect>\n        <rect class=\"bar\" transform=\"translate(25,30)\"></rect>\n        <rect class=\"bar\" transform=\"translate(37,30)\"></rect>\n        <rect class=\"bar\" transform=\"translate(49,30)\"></rect>\n        <rect class=\"bar\" transform=\"translate(61,30)\"></rect>\n    </svg>\n  </div>\n  <nav class=\"navbar navbar-expand-lg navbar-light bg-light\">\n    <div class=\"container-fluid\">\n      <input type=\"text\" class=\"form-control\" placeholder=\"What you need...\" \n            name=\"command\" id=\"command\" (keyup)=\"initiateDomOpsOnEnter($event)\" \n            (click)=\"showContextMenu($event)\" #command>\n      <!-- <div id=\"faux\" class=\"form-control\"></div> -->\n      <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\" id=\"inputSelectionContextMenu\">\n          <a class=\"dropdown-item\">Fire</a>\n          <a class=\"dropdown-item\" (click)=\"resetCommand();\">Clear</a>\n          <a class=\"dropdown-item\">Add to Favorites</a>\n        </div>\n      <div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">\n        <ul class=\"nav navbar-nav ml-auto\">\n          <li id=\"btnFavorites\" class=\"nav-item\">\n            <a class=\"nav-link\">\n              <i class=\"far fa-star\" (mouseenter)=\"toggleClass($event)\" (mouseleave)=\"toggleClass($event)\"></i>\n            </a>\n          </li>\n          <li id=\"btnClearCommand\" class=\"nav-item\" (click)=\"resetCommand();\">\n            <a class=\"nav-link\">\n              <i class=\"far fa-trash-alt\" (mouseenter)=\"toggleClass($event)\" (mouseleave)=\"toggleClass($event)\"></i>\n            </a>\n          </li>\n          <li id=\"btnFireCommand\" class=\"nav-item\">\n            <a class=\"nav-link\">\n              <i class=\"far fa-paper-plane\" (mouseenter)=\"toggleClass($event)\" (mouseleave)=\"toggleClass($event)\"></i>\n            </a>\n          </li>\n          <li id=\"btnSTTCommand\" class=\"nav-item\" (click)=\"startSpeechRecognition()\">\n            <a class=\"nav-link\">\n              <i class=\"far fa-microphone fas\"></i>\n            </a>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </nav>\n  <input type=\"hidden\" id=\"intentHidden\" value=\"createissue\">\n</div>\n"

/***/ }),

/***/ "./src/app/components/l2/content/command-prompt/command-prompt.component.scss":
/*!************************************************************************************!*\
  !*** ./src/app/components/l2/content/command-prompt/command-prompt.component.scss ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ":host {\n  height: 100%; }\n\na,\na:hover,\na:focus {\n  color: inherit;\n  text-decoration: none;\n  transition: all 0.3s;\n  cursor: pointer; }\n\n.navbar {\n  padding: 15px 10px;\n  background: #fff;\n  border: none;\n  border-radius: 0 5px 5px 0;\n  margin-bottom: 40px;\n  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); }\n\n.navbar-btn {\n  box-shadow: none;\n  outline: none !important;\n  border: none; }\n\n.line {\n  width: 100%;\n  height: 1px;\n  border-bottom: 1px dashed #ddd;\n  margin: 20px 0; }\n\ni,\nspan {\n  display: inline-block; }\n\n/* ---------------------------------------------------\n    SIDEBAR STYLE\n----------------------------------------------------- */\n\n.wrapper {\n  display: flex;\n  align-items: stretch;\n  height: 100%; }\n\n#sidebar {\n  min-width: 250px;\n  max-width: 250px;\n  background: #f39c12;\n  color: #252525;\n  transition: all 0.3s; }\n\n#sidebar.active {\n  min-width: 80px;\n  max-width: 80px;\n  text-align: center; }\n\n#sidebar.active .sidebar-header h3,\n#sidebar.active .CTAs {\n  display: none; }\n\n.sidebar-header h3 {\n  display: inline;\n  padding-left: 0.6em;\n  vertical-align: middle; }\n\n#sidebar.active .sidebar-header strong {\n  display: block; }\n\n#sidebar ul li a {\n  text-align: left; }\n\n#sidebar.active ul li a {\n  padding: 20px 10px;\n  text-align: center;\n  font-size: 0.85em; }\n\n#sidebar.active ul li a i {\n  margin-right: 0;\n  display: block;\n  font-size: 1.8em;\n  margin-bottom: 5px; }\n\n#sidebar.active ul ul a {\n  padding: 10px !important; }\n\n#sidebar.active .dropdown-toggle::after {\n  top: auto;\n  bottom: 10px;\n  right: 50%;\n  -webkit-transform: translateX(50%);\n  transform: translateX(50%); }\n\n#sidebar .sidebar-header {\n  padding: 20px;\n  background: #252525; }\n\n#sidebar .sidebar-header strong {\n  display: none;\n  font-size: 1.8em; }\n\n#sidebar ul.components {\n  padding: 20px 0;\n  border-bottom: 3px solid #252525; }\n\n#sidebar ul li a {\n  padding: 10px;\n  font-size: 1.1em;\n  display: block; }\n\n#sidebar ul li a:hover {\n  color: #7386D5;\n  background: #fff; }\n\n#sidebar ul li a i {\n  margin-right: 10px; }\n\n#sidebar ul li.active > a,\na[aria-expanded=\"true\"] {\n  color: #f39c12;\n  background: #252525; }\n\na[data-toggle=\"collapse\"] {\n  position: relative; }\n\n.collapse:not(.show) {\n  display: flex; }\n\n.dropdown-toggle::after {\n  display: block;\n  position: absolute;\n  top: 50%;\n  right: 20px;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%); }\n\nul ul a {\n  font-size: 0.9em !important;\n  padding-left: 30px !important;\n  background: white;\n  font-weight: bolder; }\n\nul.CTAs {\n  padding: 20px; }\n\nul.CTAs a {\n  text-align: center;\n  font-size: 0.9em !important;\n  display: block;\n  border-radius: 5px;\n  margin-bottom: 5px; }\n\na.download {\n  background: #fff;\n  color: #7386D5; }\n\na.article,\na.article:hover {\n  background: #6d7fcc !important;\n  color: #fff !important; }\n\n/* ---------------------------------------------------\n    CONTENT STYLE\n----------------------------------------------------- */\n\n#content {\n  width: 100%;\n  padding: 20px;\n  min-height: 100vh;\n  transition: all 0.3s; }\n\n/* ---------------------------------------------------\n    MEDIAQUERIES\n----------------------------------------------------- */\n\n@media (max-width: 768px) {\n  #header #command {\n    width: 100%; }\n  #header .prompt {\n    display: none !important; }\n  #header .navbar {\n    border-top-left-radius: .25rem;\n    border-bottom-left-radius: .25rem;\n    width: 100%;\n    margin-bottom: 20px; } }\n\n@media (min-width: 576px) {\n  .card-group > .card:first-child {\n    border-top-right-radius: .25rem;\n    border-bottom-right-radius: .25rem; }\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) {\n    border-radius: .25rem; }\n  .card-group > .card:last-child {\n    border-top-left-radius: .25rem;\n    border-bottom-left-radius: .25rem; } }\n\n/* -------------------------------------------------\nADDITIONS\n--------------------------------------------------*/\n\n.hide {\n  display: none !important; }\n\n.prompt {\n  display: flex;\n  width: 2em;\n  border-right: 1px solid #c99034;\n  background-color: #f5d38b;\n  width: 8%;\n  margin-bottom: 40px;\n  border-radius: 4px 0 0 4px; }\n\n#header .navbar {\n  width: 92%; }\n\n.promptext {\n  -webkit-animation: blinkingText 0.8s infinite;\n          animation: blinkingText 0.8s infinite;\n  color: #975f04;\n  text-align: center;\n  line-height: 2em;\n  font: 1.5em bolder;\n  margin: auto; }\n\n.good {\n  -webkit-animation: anim .3s ease-in-out;\n          animation: anim .3s ease-in-out; }\n\n.repoLink {\n  color: #000;\n  font-weight: bolder;\n  text-decoration: underline; }\n\n.headerprompt {\n  display: flex;\n  width: 100%; }\n\n.logotext {\n  color: #f39c12; }\n\nnav div.collapse li a.nav-link i.far {\n  color: #f39c12;\n  font-size: 1.8em;\n  padding: 0.2em; }\n\n#loading-img {\n  background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;\n  height: 100%;\n  z-index: 20; }\n\n.overlay {\n  background: #e9e9e9;\n  display: none;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  opacity: 0.5; }\n\n.loader {\n  border: 0px solid #f3f3f3;\n  border-radius: 50%;\n  border-top: 2px solid #3498db;\n  border-right: 2px solid #3498db;\n  width: 20px;\n  height: 20px;\n  -webkit-animation: spin 2s linear infinite;\n  /* Safari */\n  animation: spin 2s linear infinite; }\n\n.card:not(.widget) {\n  background: linear-gradient(to right, white, lightblue); }\n\n.light-red {\n  background: linear-gradient(to right, white, #dfc99a); }\n\n.featureRequest {\n  background-color: #007bff;\n  color: white;\n  font-size: 1.5em;\n  padding: 10px 20px;\n  border-radius: 30px; }\n\n#featureRequest {\n  position: fixed;\n  bottom: 2em;\n  right: 2.5em; }\n\n@-webkit-keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@-webkit-keyframes anim {\n  0% {\n    display: none;\n    opacity: 0; }\n  1% {\n    display: block;\n    opacity: 0;\n    -webkit-transform: scale(0);\n            transform: scale(0); }\n  100% {\n    opacity: 1;\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@keyframes anim {\n  0% {\n    display: none;\n    opacity: 0; }\n  1% {\n    display: block;\n    opacity: 0;\n    -webkit-transform: scale(0);\n            transform: scale(0); }\n  100% {\n    opacity: 1;\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@-webkit-keyframes blinkingText {\n  0% {\n    color: #000; }\n  49% {\n    color: transparent; }\n  50% {\n    color: transparent; }\n  99% {\n    color: transparent; }\n  100% {\n    color: #000; } }\n\n@keyframes blinkingText {\n  0% {\n    color: #000; }\n  49% {\n    color: transparent; }\n  50% {\n    color: transparent; }\n  99% {\n    color: transparent; }\n  100% {\n    color: #000; } }\n\n/* --------------------------------------------------\n  OVERRIDES\n  --------------------------------------------------*/\n\n.btn:not(.featureRequest) {\n  background-color: #f39c12;\n  color: #252525; }\n\n@media (min-width: 1024px) {\n  #header .navbar {\n    width: 96%; }\n  .prompt {\n    width: 4%; } }\n\n.navbar-form {\n  width: 88%; }\n\n.form-control {\n  padding: .6rem 1em; }\n\n.container-fluid {\n  padding-left: 0.3em; }\n\n.card-group {\n  flex-direction: column; }\n\n#command.form-control {\n  width: 87%; }\n\n#faux {\n  visibility: hidden;\n  margin-right: 0;\n  border-right: 0;\n  padding-right: 0; }\n\n.ml-auto {\n  margin-left: 0 !important; }\n\n.btn-info {\n  border-color: orange; }\n\n.btn-info:hover {\n  border-color: orange;\n  opacity: 1; }\n\n.listening_indicator {\n  background: black; }\n\n.equalizer {\n  height: 100%;\n  width: 100%;\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg); }\n\n.bar {\n  fill: #00fc00;\n  width: 7px;\n  -webkit-animation: equalize 4s 0s infinite;\n          animation: equalize 4s 0s infinite; }\n\n.bar:nth-child(1) {\n  -webkit-animation-delay: -1.9s;\n          animation-delay: -1.9s; }\n\n.bar:nth-child(2) {\n  -webkit-animation-delay: -2s;\n          animation-delay: -2s; }\n\n.bar:nth-child(3) {\n  -webkit-animation-delay: -2.3s;\n          animation-delay: -2.3s; }\n\n.bar:nth-child(4) {\n  -webkit-animation-delay: -2.4s;\n          animation-delay: -2.4s; }\n\n.bar:nth-child(5) {\n  -webkit-animation-delay: -2.1s;\n          animation-delay: -2.1s; }\n\n@-webkit-keyframes equalize {\n  0% {\n    height: 20px; }\n  4% {\n    height: 16px; }\n  8% {\n    height: 13px; }\n  12% {\n    height: 10px; }\n  16% {\n    height: 20px; }\n  20% {\n    height: 10px; }\n  24% {\n    height: 13px; }\n  28% {\n    height: 3px; }\n  32% {\n    height: 13px; }\n  36% {\n    height: 20px; }\n  40% {\n    height: 7px; }\n  44% {\n    height: 13px; }\n  48% {\n    height: 23px; }\n  52% {\n    height: 10px; }\n  56% {\n    height: 3px; }\n  60% {\n    height: 10px; }\n  64% {\n    height: 17px; }\n  68% {\n    height: 20px; }\n  72% {\n    height: 23px; }\n  76% {\n    height: 27px; }\n  80% {\n    height: 23px; }\n  84% {\n    height: 20px; }\n  88% {\n    height: 17px; }\n  92% {\n    height: 20px; }\n  96% {\n    height: 23px; }\n  100% {\n    height: 27px; } }\n\n@keyframes equalize {\n  0% {\n    height: 20px; }\n  4% {\n    height: 16px; }\n  8% {\n    height: 13px; }\n  12% {\n    height: 10px; }\n  16% {\n    height: 20px; }\n  20% {\n    height: 10px; }\n  24% {\n    height: 13px; }\n  28% {\n    height: 3px; }\n  32% {\n    height: 13px; }\n  36% {\n    height: 20px; }\n  40% {\n    height: 7px; }\n  44% {\n    height: 13px; }\n  48% {\n    height: 23px; }\n  52% {\n    height: 10px; }\n  56% {\n    height: 3px; }\n  60% {\n    height: 10px; }\n  64% {\n    height: 17px; }\n  68% {\n    height: 20px; }\n  72% {\n    height: 23px; }\n  76% {\n    height: 27px; }\n  80% {\n    height: 23px; }\n  84% {\n    height: 20px; }\n  88% {\n    height: 17px; }\n  92% {\n    height: 20px; }\n  96% {\n    height: 23px; }\n  100% {\n    height: 27px; } }\n\n/*# sourceMappingURL=data:application/json;base64,  */"

/***/ }),

/***/ "./src/app/components/l2/content/command-prompt/command-prompt.component.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/components/l2/content/command-prompt/command-prompt.component.ts ***!
  \**********************************************************************************/
/*! exports provided: CommandPromptComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommandPromptComponent", function() { return CommandPromptComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_recast_recast_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/recast/recast-ops.service */ "./src/app/services/recast/recast-ops.service.ts");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var src_app_services_cards_card_service_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/cards/card.service.js */ "./src/app/services/cards/card.service.js");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
/* harmony import */ var src_app_store_cards_actions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/store/cards.actions.js */ "./src/app/store/cards.actions.js");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../configuration/config.js */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_configuration_config_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var CommandPromptComponent = /** @class */ (function () {
    function CommandPromptComponent(recastOpsService, domOpsService, cardsService, store) {
        this.recastOpsService = recastOpsService;
        this.domOpsService = domOpsService;
        this.cardsService = cardsService;
        this.store = store;
        this.emptyCommandMessage = 'Please type a command or use "Speech" button to speak to the bot.';
    }
    CommandPromptComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.domOpsService.repeatRequested.subscribe(function (command) {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#command').val(command);
            _this.executeCommand();
        });
        this.registerSpeechHandlers();
        this.registerMouseAndKeyboardHandlers();
    };
    CommandPromptComponent.prototype.toggleClass = function (event) {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__(event.target).toggleClass('fas');
    };
    CommandPromptComponent.prototype.initiateDomOpsOnEnter = function (event) {
        var code = (event.keyCode ? event.keyCode : event.which);
        if (code === 13) {
            // this.domOpsService.hideNonCards();
            this.executeCommand();
        }
    };
    CommandPromptComponent.prototype.resetCommand = function () {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#command').val('');
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#command').focus();
    };
    CommandPromptComponent.prototype.startSpeechRecognition = function () {
        var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
        if (isChrome) {
            this.recognition.start();
        }
        else {
            // this.domOpsService.sho
        }
    };
    CommandPromptComponent.prototype.registerSpeechHandlers = function () {
        var SpeechRecognition;
        var instructions = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#command');
        try {
            // SpeechRecognition = window.SpeechRecognition || window.mozSpeechRecognition || window.msSpeechRecognition || window.webkitSpeechRecognition;
            //SpeechRecognition = '';
            // this.recognition = new SpeechRecognition();
        }
        catch (e) {
            console.error(e);
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('.no-browser-support').show();
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('.app').hide();
        }
        this.recognition.onstart = function () {
            instructions.val('Voice recognition activated. Try speaking into the microphone.');
        };
        this.recognition.onspeechend = function () {
            instructions.val('You were quiet for a while so voice recognition turned itself off.');
        };
        this.recognition.onerror = function (event) {
            if (event.error == 'no-speech') {
                instructions.val('No speech was detected. Try again.');
            }
            ;
        };
        this.recognition.onresult = function (event) {
            var noteContent = "";
            var current = event.resultIndex;
            var transcript = event.results[current][0].transcript;
            var mobileRepeatBug = (current == 1 && transcript == event.results[0][0].transcript);
            if (!mobileRepeatBug) {
                noteContent += transcript;
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#command').val(noteContent);
            }
        };
    };
    CommandPromptComponent.prototype.registerMouseAndKeyboardHandlers = function () {
        var _this = this;
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-star').hover(function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-star').toggleClass('fas');
        });
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-trash-alt').hover(function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-trash-alt').toggleClass('fas');
        });
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-paper-plane').hover(function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('#content nav div.collapse li a.nav-link i.far.fa-paper-plane').toggleClass('fas');
        });
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__('*').on('click', function (event) {
            if (!_this.contextMenuFirstDisplay) {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__("#inputSelectionContextMenu").removeClass("show").hide();
                _this.contextMenuDisplayed = false;
                event.stopPropagation();
            }
            else {
                _this.contextMenuFirstDisplay = false;
                event.stopPropagation();
            }
        });
    };
    CommandPromptComponent.prototype.executeCommand = function () {
        this.domOpsService.hideNonCards();
        var commandVal = this.command.nativeElement.value;
        if (!commandVal) {
            this.domOpsService.showEmptyCommandMessage(this.emptyCommandMessage);
        }
        else {
            var card = this.cardsService.getCommandCard(_configuration_config_js__WEBPACK_IMPORTED_MODULE_6__["intentSlugToOperations"].command.cardTitle, commandVal, {}, "command");
            var commandAction = new src_app_store_cards_actions_js__WEBPACK_IMPORTED_MODULE_5__["Command"](card);
            this.store.dispatch(commandAction);
            var text = { text: commandVal };
            var recastResponse = this.recastOpsService.getRecastResponse(commandVal, text);
            this.processRecastResponse(recastResponse);
        }
    };
    CommandPromptComponent.prototype.processRecastResponse = function (recastResponse) {
        var _this = this;
        var bodyRelevant;
        var intent = "";
        var assuredIntentFactor = 0.6;
        recastResponse.then(function (body) {
            bodyRelevant = body.results;
            var intents = bodyRelevant ? bodyRelevant.intents : "";
            if (intents) {
                if (intents.length == 1) {
                    intent = intents[0];
                }
                else if (intents.length > 1) {
                    var reducer = function (probableIntent, currIntent) { return probableIntent.confidence >= currIntent.confidence ? probableIntent : currIntent; };
                    intent = intents.reduce(reducer, intents[0]);
                }
                else {
                    _this.domOpsService.showEmptyCommandMessage("Intent is either not Identified or is not supported, please try again with a different text.");
                    return;
                }
                if (intent && intent.confidence > assuredIntentFactor) {
                    var intentSlug = intent.slug;
                    if (!Object.keys(_configuration_config_js__WEBPACK_IMPORTED_MODULE_6__["intentSlugToOperations"]).includes(intentSlug)) {
                        _this.domOpsService.showEmptyCommandMessage("Intent is either not Identified or is not supported, please try again with a different text.");
                        return;
                    }
                    // $(`#${$config.constants.hiddenIntentFieldId}`).val(intent);
                    window.localStorage.setItem(_configuration_config_js__WEBPACK_IMPORTED_MODULE_6__["constants"].hiddenIntentFieldId, intentSlug);
                    _this.domOpsService.displayIntentBox(intentSlug);
                    if (intentSlug == "resethistory") {
                        var card = _this.cardsService.getResponseCard(_configuration_config_js__WEBPACK_IMPORTED_MODULE_6__["intentSlugToOperations"].resethistory.cardTitle, _configuration_config_js__WEBPACK_IMPORTED_MODULE_6__["intentSlugToOperations"].resethistory.cardMsg, {}, "response");
                        card.insertionCounter = 0;
                        var resetHistoryResponseAction = new src_app_store_cards_actions_js__WEBPACK_IMPORTED_MODULE_5__["ClearHistory"](card);
                        _this.store.dispatch(resetHistoryResponseAction);
                        return;
                    }
                    _this.domOpsService.widgetIdentified.emit({ widget: intentSlug, bodyRelevant: bodyRelevant });
                    _this.domOpsService.populateRecastData(intentSlug, bodyRelevant);
                    // store.dispatch($config.intentSlugToOperations.addquery.action);
                }
                else {
                    _this.domOpsService.showEmptyCommandMessage("Couldn't conform with the required confidence level of the intent match, please try again.");
                }
            }
            else {
                _this.domOpsService.showEmptyCommandMessage("There seems to be an error in the Recast Response, as intents are not returned.");
                return;
            }
        });
    };
    CommandPromptComponent.prototype.showContextMenu = function (event) {
        if (this.contextMenuDisplayed == true) {
            return;
        }
        var inputField = event.target;
        if (inputField.value.length > 2 && inputField.selectionStart == 0 && inputField.selectionEnd == inputField.value.length) {
            var top = event.pageY - 10;
            var left = event.pageX - 90;
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_7__("#inputSelectionContextMenu").css({
                display: "block",
                top: top,
                left: left
            }).addClass("show");
            this.contextMenuFirstDisplay = true;
            this.contextMenuDisplayed = true;
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('command'),
        __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
    ], CommandPromptComponent.prototype, "command", void 0);
    CommandPromptComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-command-prompt',
            template: __webpack_require__(/*! ./command-prompt.component.html */ "./src/app/components/l2/content/command-prompt/command-prompt.component.html"),
            styles: [__webpack_require__(/*! ./command-prompt.component.scss */ "./src/app/components/l2/content/command-prompt/command-prompt.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_recast_recast_ops_service__WEBPACK_IMPORTED_MODULE_1__["RecastOpsService"],
            src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_2__["DomOpsService"],
            src_app_services_cards_card_service_js__WEBPACK_IMPORTED_MODULE_3__["CardService"],
            _ngrx_store__WEBPACK_IMPORTED_MODULE_4__["Store"]])
    ], CommandPromptComponent);
    return CommandPromptComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/content.component.html":
/*!**************************************************************!*\
  !*** ./src/app/components/l2/content/content.component.html ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<router-outlet name=\"command-prompt\"></router-outlet>\n<router-outlet name=\"modal\"></router-outlet>\n<router-outlet name=\"primary-container\"></router-outlet>"

/***/ }),

/***/ "./src/app/components/l2/content/content.component.scss":
/*!**************************************************************!*\
  !*** ./src/app/components/l2/content/content.component.scss ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ":host {\n  padding: 20px;\n  width: 100%; }\n\n#content {\n  min-height: 100vh;\n  transition: all 0.3s; }\n\n@media (max-width: 768px) {\n  :host {\n    padding: 10px; } }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L2NvbnRlbnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFhO0VBQ2IsV0FBVyxFQUFBOztBQUdmO0VBR0ksaUJBQWlCO0VBQ2pCLG9CQUFvQixFQUFBOztBQUd4QjtFQUNJO0lBQ0ksYUFBYSxFQUFBLEVBQ2hCIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L2NvbnRlbnQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyI6aG9zdCB7XG4gICAgcGFkZGluZzogMjBweDtcbiAgICB3aWR0aDogMTAwJTtcbn1cblxuI2NvbnRlbnQge1xuICAgIC8vIHdpZHRoOiAxMDAlO1xuICAgIC8vIHBhZGRpbmc6IDIwcHg7XG4gICAgbWluLWhlaWdodDogMTAwdmg7XG4gICAgdHJhbnNpdGlvbjogYWxsIDAuM3M7XG59XG5cbkBtZWRpYShtYXgtd2lkdGg6IDc2OHB4KSB7XG4gICAgOmhvc3Qge1xuICAgICAgICBwYWRkaW5nOiAxMHB4O1xuICAgIH1cbn0iXX0= */"

/***/ }),

/***/ "./src/app/components/l2/content/content.component.ts":
/*!************************************************************!*\
  !*** ./src/app/components/l2/content/content.component.ts ***!
  \************************************************************/
/*! exports provided: ContentComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentComponent", function() { return ContentComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var src_app_services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var ContentComponent = /** @class */ (function () {
    function ContentComponent(dom, helper) {
        this.dom = dom;
        this.helper = helper;
    }
    ContentComponent.prototype.ngOnInit = function () {
        var localHistory = JSON.parse(window.localStorage.getItem('currentState'));
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__('#command').focus();
        // $("#conversations").empty();
        // const historyAll = this.helper.concatenateAndSort(store.getState());
        // this.dom.loadConversations(this.helper.concatenateAndSort(localHistory));
    };
    ContentComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-content',
            template: __webpack_require__(/*! ./content.component.html */ "./src/app/components/l2/content/content.component.html"),
            styles: [__webpack_require__(/*! ./content.component.scss */ "./src/app/components/l2/content/content.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"], src_app_services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__["HelperServiceService"]])
    ], ContentComponent);
    return ContentComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/modal/modal.component.html":
/*!******************************************************************!*\
  !*** ./src/app/components/l2/content/modal/modal.component.html ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div class=\"modal\" id=\"submitConfirm\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n  <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n      <div class=\"modal-content\">\n          <div class=\"modal-header\">\n              <h5 class=\"modal-title\" id=\"exampleModalCenterTitle\">Confirm!</h5>\n              <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                  <span aria-hidden=\"true\">&times;</span>\n              </button>\n          </div>\n          <div class=\"modal-body\">\n              Are you sure you want to submit?\n          </div>\n          <div class=\"modal-footer\">\n              <button type=\"button\" class=\"btn btn-secondary\" id=\"btnCancelConfirm\" data-dismiss=\"modal\">Cancel</button>\n              <button id=\"submitGitData\" type=\"button\" data-dimsiss=\"modal\" class=\"btn btn-primary\" (click)=\"submitGitData()\">Submit</button>\n          </div>\n      </div>\n  </div>\n</div>\n<div class=\"modal fade\" \n  id=\"emptyCommandMessageModal\" \n  tabindex=\"-1\" \n  role=\"dialog\" \n  aria-labelledby=\"emptyCommandMessageModalTitle\"\n  aria-hidden=\"true\"\n  [hidden]=\"isHidden\">\n  <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n    <div class=\"modal-content\">\n      <div class=\"modal-header\">\n        <h5 class=\"modal-title\" id=\"emptyCommandMessageModalTitle\">No Command!</h5>\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n          <span aria-hidden=\"true\">&times;</span>\n        </button>\n      </div>\n      <div id=\"randomModal\" class=\"modal-body\">\n        Please type some relevant words in the command box.\n      </div>\n      <div class=\"modal-footer\">\n        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">OK</button>\n      </div>\n    </div>\n  </div>\n</div>\n<button style=\"display: none\" id=\"emptyCommandMsgDisplayer\" type=\"submit\" data-toggle=\"modal\" data-target=\"#emptyCommandMessageModal\"></button>\n\n\n"

/***/ }),

/***/ "./src/app/components/l2/content/modal/modal.component.scss":
/*!******************************************************************!*\
  !*** ./src/app/components/l2/content/modal/modal.component.scss ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9tb2RhbC9tb2RhbC5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/modal/modal.component.ts":
/*!****************************************************************!*\
  !*** ./src/app/components/l2/content/modal/modal.component.ts ***!
  \****************************************************************/
/*! exports provided: ModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModalComponent", function() { return ModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var src_app_services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/github/github-ops.service */ "./src/app/services/github/github-ops.service.ts");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../configuration/config */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_configuration_config__WEBPACK_IMPORTED_MODULE_3__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var ModalComponent = /** @class */ (function () {
    function ModalComponent(domOpsService, githubService) {
        this.domOpsService = domOpsService;
        this.githubService = githubService;
        this.isHidden = true;
    }
    ModalComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.domOpsService.commandPromptEnteredEmpty.subscribe(function () {
            _this.isHidden = false;
        });
    };
    ModalComponent.prototype.submitGitData = function () {
        var intent = window.localStorage.getItem(_configuration_config__WEBPACK_IMPORTED_MODULE_3__["constants"].hiddenIntentFieldId);
        if (intent) {
            this.githubService.gitOperationIdentified.emit(_configuration_config__WEBPACK_IMPORTED_MODULE_3__["intentSlugToOperations"][intent].githubOperation);
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], ModalComponent.prototype, "isHidden", void 0);
    ModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-modal',
            template: __webpack_require__(/*! ./modal.component.html */ "./src/app/components/l2/content/modal/modal.component.html"),
            styles: [__webpack_require__(/*! ./modal.component.scss */ "./src/app/components/l2/content/modal/modal.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"],
            src_app_services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_2__["GithubOpsService"]])
    ], ModalComponent);
    return ModalComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/card/card.component.html":
/*!****************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/card/card.component.html ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div class=\"card {{card.cardStyle}}\">\n  <div class=\"card-body\">\n    <h5 class=\"card-title\">\n      {{card.cardTitle}}\n      <a class=\"btn btn-danger float-right close\" id=\"btnRemove\">Remove</a>\n      <a \n        *ngIf=\"card.type=='command'\"\n        class=\"btn btn-info float-right\" \n        role=\"button\"\n        id=\"btnRepeatCommand{{card.insertionCounter}}\"\n        (click)=\"repeatCommand()\">Repeat</a>\n    </h5>\n    <p class=\"card-text\" id=\"card-content\">\n      {{card.cardContent}}\n    </p>\n  </div>\n  <div class=\"card-footer\"><small class=\"text-muted\">{{displayTime}}</small></div>\n</div>\n<div class=\"line\"></div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/card/card.component.scss":
/*!****************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/card/card.component.scss ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ".line {\n  width: 100%;\n  height: 1px;\n  border-bottom: 1px dashed #ddd;\n  margin: 10px 0; }\n\n.card {\n  width: 80%;\n  border-radius: 15px; }\n\n.command-card {\n  background: linear-gradient(to right, white, #dfc99a);\n  left: 20%; }\n\n.command-card:after {\n    content: '';\n    position: absolute;\n    left: 0;\n    top: 50%;\n    width: 0;\n    height: 0;\n    border: 33px solid transparent;\n    border-right-color: white;\n    border-left: 0;\n    border-bottom: 0;\n    margin-top: -16.5px;\n    margin-left: -33px; }\n\n.response-card {\n  background: linear-gradient(to right, white, lightblue); }\n\n.response-card:after {\n    content: '';\n    position: absolute;\n    right: 0;\n    top: 50%;\n    width: 0;\n    height: 0;\n    border: 33px solid transparent;\n    border-left-color: lightblue;\n    border-right: 0;\n    border-bottom: 0;\n    margin-top: -16.5px;\n    margin-right: -33px; }\n\n.btn.btn-info.float-right, .btn.btn-danger.float-right {\n  color: #252525 !important;\n  background-color: transparent;\n  border-color: #252525;\n  margin-right: 30px; }\n\n.btn.btn-info.float-right:hover, .btn.btn-danger.float-right:hover {\n    background-color: #252525 !important;\n    color: #fff !important; }\n\n.close:not(:disabled):not(.disabled):hover {\n  opacity: 1; }\n\n.close {\n  font-size: 16px;\n  font-weight: 400;\n  line-height: 1.5em;\n  text-shadow: unset;\n  opacity: unset; }\n\na#btnRemove, a[id^='btnRepeatCommand'] {\n  display: none; }\n\n@media (min-width: 768px) {\n  a#btnRemove, a[id^='btnRepeatCommand'] {\n    display: block; }\n  .card {\n    border-radius: 35px; }\n  .line {\n    margin: 20px 0; } }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL2NhcmRzL2NhcmQvY2FyZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRQTtFQUNJLFdBQVc7RUFDWCxXQUFXO0VBQ1gsOEJBQThCO0VBQzlCLGNBQWMsRUFBQTs7QUFHbEI7RUFDSSxVQUFVO0VBQ1YsbUJBQW1CLEVBQUE7O0FBR3ZCO0VBQ0kscURBQXFEO0VBQ3JELFNBQVMsRUFBQTs7QUFGYjtJQUlRLFdBQVc7SUFDWCxrQkFBa0I7SUFDbEIsT0FBTztJQUNQLFFBQVE7SUFDUixRQUFRO0lBQ1IsU0FBUztJQUNULDhCQUE4QjtJQUM5Qix5QkFBeUI7SUFDekIsY0FBYztJQUNkLGdCQUFnQjtJQUNoQixtQkFBbUI7SUFDbkIsa0JBQWtCLEVBQUE7O0FBSTFCO0VBQ0ksdURBQXVELEVBQUE7O0FBRDNEO0lBR1EsV0FBVztJQUNYLGtCQUFrQjtJQUNsQixRQUFRO0lBQ1IsUUFBUTtJQUNSLFFBQVE7SUFDUixTQUFTO0lBQ1QsOEJBQThCO0lBQzlCLDRCQUE0QjtJQUM1QixlQUFlO0lBQ2YsZ0JBQWdCO0lBQ2hCLG1CQUFtQjtJQUNuQixtQkFBbUIsRUFBQTs7QUFJM0I7RUFHWSx5QkFBeUI7RUFDekIsNkJBQTZCO0VBQzdCLHFCQUFxQjtFQUNyQixrQkFBa0IsRUFBQTs7QUFOOUI7SUFRZ0Isb0NBQW1DO0lBQ25DLHNCQUFxQixFQUFBOztBQU1yQztFQUNJLFVBQVUsRUFBQTs7QUFJZDtFQUNJLGVBQWU7RUFDZixnQkFBZ0I7RUFDaEIsa0JBQWtCO0VBQ2xCLGtCQUFrQjtFQUNsQixjQUFjLEVBQUE7O0FBR2xCO0VBQ0ksYUFBYSxFQUFBOztBQUdqQjtFQUNJO0lBQ0ksY0FBYyxFQUFBO0VBRWxCO0lBQ0ksbUJBQW1CLEVBQUE7RUFFdkI7SUFDSSxjQUFjLEVBQUEsRUFDakIiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2wyL2NvbnRlbnQvcHJpbWFyeS1jb250YWluZXIvY2FyZHMvY2FyZC9jYXJkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gaDUge1xuLy8gICAgIGZvbnQtc2l6ZTogMWVtO1xuLy8gfVxuXG4vLyBwIHtcbi8vICAgICBmb250LXNpemU6IDAuN2VtO1xuLy8gfVxuXG4ubGluZSB7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgaGVpZ2h0OiAxcHg7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IGRhc2hlZCAjZGRkO1xuICAgIG1hcmdpbjogMTBweCAwO1xufVxuXG4uY2FyZCB7XG4gICAgd2lkdGg6IDgwJTtcbiAgICBib3JkZXItcmFkaXVzOiAxNXB4O1xufVxuXG4uY29tbWFuZC1jYXJkIHtcbiAgICBiYWNrZ3JvdW5kOiBsaW5lYXItZ3JhZGllbnQodG8gcmlnaHQsIHdoaXRlLCAjZGZjOTlhKTtcbiAgICBsZWZ0OiAyMCU7XG4gICAgJjphZnRlciB7XG4gICAgICAgIGNvbnRlbnQ6ICcnO1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGxlZnQ6IDA7XG4gICAgICAgIHRvcDogNTAlO1xuICAgICAgICB3aWR0aDogMDtcbiAgICAgICAgaGVpZ2h0OiAwO1xuICAgICAgICBib3JkZXI6IDMzcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICAgIGJvcmRlci1yaWdodC1jb2xvcjogd2hpdGU7XG4gICAgICAgIGJvcmRlci1sZWZ0OiAwO1xuICAgICAgICBib3JkZXItYm90dG9tOiAwO1xuICAgICAgICBtYXJnaW4tdG9wOiAtMTYuNXB4O1xuICAgICAgICBtYXJnaW4tbGVmdDogLTMzcHg7XG4gICAgfVxufVxuXG4ucmVzcG9uc2UtY2FyZCB7XG4gICAgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KHRvIHJpZ2h0LCB3aGl0ZSwgbGlnaHRibHVlKTtcbiAgICAmOmFmdGVyIHtcbiAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgIHRvcDogNTAlO1xuICAgICAgICB3aWR0aDogMDtcbiAgICAgICAgaGVpZ2h0OiAwO1xuICAgICAgICBib3JkZXI6IDMzcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgICAgIGJvcmRlci1sZWZ0LWNvbG9yOiBsaWdodGJsdWU7XG4gICAgICAgIGJvcmRlci1yaWdodDogMDtcbiAgICAgICAgYm9yZGVyLWJvdHRvbTogMDtcbiAgICAgICAgbWFyZ2luLXRvcDogLTE2LjVweDtcbiAgICAgICAgbWFyZ2luLXJpZ2h0OiAtMzNweDtcbiAgICB9XG59XG5cbi5idG4ge1xuICAgICYuYnRuLWluZm8sICYuYnRuLWRhbmdlciB7XG4gICAgICAgICYuZmxvYXQtcmlnaHQge1xuICAgICAgICAgICAgY29sb3I6ICMyNTI1MjUgIWltcG9ydGFudDtcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgYm9yZGVyLWNvbG9yOiAjMjUyNTI1O1xuICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAzMHB4O1xuICAgICAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzI1MjUyNSFpbXBvcnRhbnQ7XG4gICAgICAgICAgICAgICAgY29sb3I6ICNmZmYhaW1wb3J0YW50XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi5jbG9zZTpub3QoOmRpc2FibGVkKTpub3QoLmRpc2FibGVkKTpob3ZlciB7XG4gICAgb3BhY2l0eTogMTtcbn1cblxuLy8gT1ZFUlJJREVcbi5jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG4gICAgbGluZS1oZWlnaHQ6IDEuNWVtO1xuICAgIHRleHQtc2hhZG93OiB1bnNldDtcbiAgICBvcGFjaXR5OiB1bnNldDtcbn1cblxuYSNidG5SZW1vdmUsIGFbaWRePSdidG5SZXBlYXRDb21tYW5kJ10ge1xuICAgIGRpc3BsYXk6IG5vbmU7XG59XG5cbkBtZWRpYShtaW4td2lkdGg6IDc2OHB4KSB7XG4gICAgYSNidG5SZW1vdmUsIGFbaWRePSdidG5SZXBlYXRDb21tYW5kJ10ge1xuICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICB9XG4gICAgLmNhcmQge1xuICAgICAgICBib3JkZXItcmFkaXVzOiAzNXB4O1xuICAgIH1cbiAgICAubGluZSB7XG4gICAgICAgIG1hcmdpbjogMjBweCAwO1xuICAgIH1cbn0iXX0= */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/card/card.component.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/card/card.component.ts ***!
  \**************************************************************************************/
/*! exports provided: CardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardComponent", function() { return CardComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var src_app_services_cards_card_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/cards/card.service */ "./src/app/services/cards/card.service.ts");
/* harmony import */ var _card_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./card.model */ "./src/app/components/l2/content/primary-container/cards/card/card.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var CardComponent = /** @class */ (function () {
    function CardComponent(cardService, domOpsService) {
        this.cardService = cardService;
        this.domOpsService = domOpsService;
    }
    // ngOnInit() {
    //   setInterval(() => {
    //     this.displayTime = this.cardService.getDisplayTime(this.card.timestamp)
    //   }, 1000)
    // }
    // updateDisplayTime() {
    //   this.displayTime = this.cardService.getDisplayTime(this.card.timestamp);
    // }
    CardComponent.prototype.ngOnInit = function () {
        this.updateDisplayTime();
    };
    CardComponent.prototype.updateDisplayTime = function () {
        var _this = this;
        // console.log("tracking run " + this.card.insertionCounter + " " + this.displayTime);
        this.displayTime = this.cardService.getDisplayTime(this.card.timestamp);
        var updateInterval = 1000;
        if (this.displayTime.includes('minutes')) {
            updateInterval = updateInterval * 60;
        }
        else if (this.displayTime.includes('hours')) {
            updateInterval = updateInterval * 60 * 60;
        }
        else if (this.displayTime.includes('days')) {
            updateInterval = updateInterval * 60 * 60 * 24;
        }
        setTimeout(function () {
            _this.updateDisplayTime();
        }, updateInterval);
    };
    CardComponent.prototype.repeatCommand = function () {
        this.domOpsService.repeatCommand(this.card);
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _card_model__WEBPACK_IMPORTED_MODULE_3__["Card"])
    ], CardComponent.prototype, "card", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], CardComponent.prototype, "displayTime", void 0);
    CardComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-card',
            template: __webpack_require__(/*! ./card.component.html */ "./src/app/components/l2/content/primary-container/cards/card/card.component.html"),
            styles: [__webpack_require__(/*! ./card.component.scss */ "./src/app/components/l2/content/primary-container/cards/card/card.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_cards_card_service__WEBPACK_IMPORTED_MODULE_2__["CardService"],
            src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"]])
    ], CardComponent);
    return CardComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/card/card.model.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/card/card.model.ts ***!
  \**********************************************************************************/
/*! exports provided: Card */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return Card; });
var Card = /** @class */ (function () {
    function Card(cardTitle, cardContent, data, type, timestamp, cardStyle) {
        this.cardTitle = cardTitle;
        this.cardContent = cardContent;
        this.data = data;
        this.type = type;
        this.timestamp = timestamp;
        this.cardStyle = cardStyle;
    }
    return Card;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/cards.component.html":
/*!************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/cards.component.html ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div \n    class=\"card-group\" \n    id=\"conversations\">\n    <app-card \n        [card]=\"card\"\n        *ngFor=\"let card of cards;\"\n        [ngStyle]=\"{'display': 'contents'}\">\n    </app-card>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/cards.component.scss":
/*!************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/cards.component.scss ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "@media (min-width: 576px) {\n  .card-group > .card:first-child {\n    border-top-right-radius: .25rem;\n    border-bottom-right-radius: .25rem; }\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) {\n    border-radius: .25rem; }\n  .card-group > .card:last-child {\n    border-top-left-radius: .25rem;\n    border-bottom-left-radius: .25rem; } }\n\n.card-group {\n  flex-direction: column; }\n\n#conversations {\n  margin-left: 3em; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL2NhcmRzL2NhcmRzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0k7SUFDSSwrQkFBK0I7SUFDL0Isa0NBQWtDLEVBQUE7RUFFdEM7SUFDSSxxQkFBcUIsRUFBQTtFQUV6QjtJQUNJLDhCQUE4QjtJQUM5QixpQ0FBaUMsRUFBQSxFQUNwQzs7QUFHTDtFQUNJLHNCQUFxQixFQUFBOztBQUd6QjtFQUNJLGdCQUFnQixFQUFBIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL2NhcmRzL2NhcmRzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiQG1lZGlhKG1pbi13aWR0aDogNTc2cHgpIHtcbiAgICAuY2FyZC1ncm91cD4uY2FyZDpmaXJzdC1jaGlsZCB7XG4gICAgICAgIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiAuMjVyZW07XG4gICAgICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAuMjVyZW07XG4gICAgfVxuICAgIC5jYXJkLWdyb3VwPi5jYXJkOm5vdCg6Zmlyc3QtY2hpbGQpOm5vdCg6bGFzdC1jaGlsZCk6bm90KDpvbmx5LWNoaWxkKSB7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IC4yNXJlbTtcbiAgICB9XG4gICAgLmNhcmQtZ3JvdXA+LmNhcmQ6bGFzdC1jaGlsZCB7XG4gICAgICAgIGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IC4yNXJlbTtcbiAgICAgICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogLjI1cmVtO1xuICAgIH1cbn1cblxuLmNhcmQtZ3JvdXAge1xuICAgIGZsZXgtZGlyZWN0aW9uOmNvbHVtbjtcbn1cblxuI2NvbnZlcnNhdGlvbnMge1xuICAgIG1hcmdpbi1sZWZ0OiAzZW07XG59Il19 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/cards/cards.component.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/cards/cards.component.ts ***!
  \**********************************************************************************/
/*! exports provided: CardsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardsComponent", function() { return CardsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var CardsComponent = /** @class */ (function () {
    function CardsComponent(store, helper) {
        this.store = store;
        this.helper = helper;
    }
    CardsComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.cardsState = this.store.select('ioHistory');
        this.cardsState.subscribe(function (cards) {
            _this.cards = _this.helper.concatenateAndSort(cards);
        });
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"])
    ], CardsComponent.prototype, "cardsState", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], CardsComponent.prototype, "cards", void 0);
    CardsComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-cards',
            template: __webpack_require__(/*! ./cards.component.html */ "./src/app/components/l2/content/primary-container/cards/cards.component.html"),
            styles: [__webpack_require__(/*! ./cards.component.scss */ "./src/app/components/l2/content/primary-container/cards/cards.component.scss")]
        }),
        __metadata("design:paramtypes", [_ngrx_store__WEBPACK_IMPORTED_MODULE_2__["Store"], src_app_services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__["HelperServiceService"]])
    ], CardsComponent);
    return CardsComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.html":
/*!**********************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/intent-box/intent-box.component.html ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div \n  class=\"alert alert-info alert-dismissible hide good\" \n  id=\"intentBox\" \n  role=\"alert\"\n  [hidden]=\"isHidden\"\n  #intentBox>\n    <button \n      type=\"button\" \n      id=\"hideInfoAlert\" \n      class=\"close\" \n      aria-label=\"Close\"\n      (click)=\"hideParent($event)\">\n        <span aria-hidden=\"true\">&times;</span>\n    </button>\n    <strong>I understand you intend to: &nbsp;&nbsp;</strong>\n    <span id=\"intentName\"></span>&nbsp;&nbsp;If not, please choose the correct option:\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.scss":
/*!**********************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/intent-box/intent-box.component.scss ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ".good {\n  -webkit-animation: anim .3s ease-in-out;\n          animation: anim .3s ease-in-out; }\n\n.hide {\n  display: none !important; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL2ludGVudC1ib3gvaW50ZW50LWJveC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHVDQUErQjtVQUEvQiwrQkFBK0IsRUFBQTs7QUFHbkM7RUFDSSx3QkFBd0IsRUFBQSIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci9pbnRlbnQtYm94L2ludGVudC1ib3guY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZ29vZCB7XG4gICAgYW5pbWF0aW9uOiBhbmltIC4zcyBlYXNlLWluLW91dDtcbn1cblxuLmhpZGUge1xuICAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDtcbn0iXX0= */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/intent-box/intent-box.component.ts ***!
  \********************************************************************************************/
/*! exports provided: IntentBoxComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntentBoxComponent", function() { return IntentBoxComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var IntentBoxComponent = /** @class */ (function () {
    function IntentBoxComponent(domOpsService) {
        this.domOpsService = domOpsService;
        this.isHidden = true;
    }
    IntentBoxComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.domOpsService.commandPromptEnteredWithValue.subscribe(function () {
            _this.isHidden = true;
        });
        this.domOpsService.intentIdentified.subscribe(function () {
            _this.isHidden = false;
        });
    };
    IntentBoxComponent.prototype.hideParent = function (event) {
        this.intentBox.nativeElement.classList.add('hide');
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], IntentBoxComponent.prototype, "isHidden", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('intentBox'),
        __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
    ], IntentBoxComponent.prototype, "intentBox", void 0);
    IntentBoxComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-intent-box',
            template: __webpack_require__(/*! ./intent-box.component.html */ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.html"),
            styles: [__webpack_require__(/*! ./intent-box.component.scss */ "./src/app/components/l2/content/primary-container/intent-box/intent-box.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"]])
    ], IntentBoxComponent);
    return IntentBoxComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/message/message.component.html":
/*!****************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/message/message.component.html ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div class=\"alert alert-success alert-dismissible fade show hide good\" id=\"successAlert\" role=\"alert\" [hidden]=\"true\" #successTemplate>\n    <strong>Success! </strong>\n    <span id=\"op-msg\"> Repository Added!</span>\n    <button type=\"button\" id=\"hideSuccessAlert\" class=\"close\" aria-label=\"Close\" (click)=\"hideMessage(successTemplate);\">\n        <span aria-hidden=\"true\">&times;</span>\n    </button>\n</div>\n<div class=\"alert alert-danger alert-dismissible hide good\" id=\"dangerAlert\" role=\"alert\" [hidden]=\"true\" #errorTemplate>\n    <strong>Oh snap!</strong> \n    <span> Change a few things up and try submitting again.</span>\n    <button type=\"button\" id=\"hideDangerAlert\" class=\"close\" aria-label=\"Close\" (click)=\"hideMessage(errorTemplate);\">\n        <span aria-hidden=\"true\">&times;</span>\n    </button>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/message/message.component.scss":
/*!****************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/message/message.component.scss ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ".good {\n  -webkit-animation: anim .3s ease-in-out;\n          animation: anim .3s ease-in-out; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL21lc3NhZ2UvbWVzc2FnZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHVDQUErQjtVQUEvQiwrQkFBK0IsRUFBQSIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci9tZXNzYWdlL21lc3NhZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZ29vZCB7XG4gICAgYW5pbWF0aW9uOiBhbmltIC4zcyBlYXNlLWluLW91dDtcbn0iXX0= */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/message/message.component.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/message/message.component.ts ***!
  \**************************************************************************************/
/*! exports provided: MessageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageComponent", function() { return MessageComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var MessageComponent = /** @class */ (function () {
    function MessageComponent(domOpsService) {
        this.domOpsService = domOpsService;
        this.isHidden = true;
    }
    MessageComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.domOpsService.commandPromptEnteredWithValue.subscribe(function () {
            _this.isHidden = true;
        });
    };
    MessageComponent.prototype.hideMessage = function (template) {
        template.hidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], MessageComponent.prototype, "isHidden", void 0);
    MessageComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-message',
            template: __webpack_require__(/*! ./message.component.html */ "./src/app/components/l2/content/primary-container/message/message.component.html"),
            styles: [__webpack_require__(/*! ./message.component.scss */ "./src/app/components/l2/content/primary-container/message/message.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"]])
    ], MessageComponent);
    return MessageComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/primary-container.component.html":
/*!******************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/primary-container.component.html ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<router-outlet name=\"intent\"></router-outlet>\n<router-outlet name=\"message\"></router-outlet>\n<router-outlet name=\"widget\"></router-outlet>\n<router-outlet name=\"cards\"></router-outlet>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/primary-container.component.scss":
/*!******************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/primary-container.component.scss ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci9wcmltYXJ5LWNvbnRhaW5lci5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/primary-container.component.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/primary-container.component.ts ***!
  \****************************************************************************************/
/*! exports provided: PrimaryContainerComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrimaryContainerComponent", function() { return PrimaryContainerComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var PrimaryContainerComponent = /** @class */ (function () {
    function PrimaryContainerComponent() {
    }
    PrimaryContainerComponent.prototype.ngOnInit = function () {
    };
    PrimaryContainerComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-primary-container',
            template: __webpack_require__(/*! ./primary-container.component.html */ "./src/app/components/l2/content/primary-container/primary-container.component.html"),
            styles: [__webpack_require__(/*! ./primary-container.component.scss */ "./src/app/components/l2/content/primary-container/primary-container.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], PrimaryContainerComponent);
    return PrimaryContainerComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.html":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.html ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"addcollab\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <!-- <img class=\"card-img-top\" src=\"...\" alt=\"Card image cap\"> -->\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">Create Collaborator</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"collaboratorName\">Collaborator Name</label>\n                  <input type=\"text\" class=\"form-control\" id=\"collaboratorName\" placeholder=\"Collaborator ID\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"repoForCollab\">Repository Name</label>\n                  <input type=\"text\" class=\"form-control\" id=\"repoForCollab\" placeholder=\"Repository To Add collaborator on ....\">\n              </div>\n          </div>\n          <div class=\"form-group\">\n              <label for=\"comment\">Comment:</label>\n              <textarea class=\"form-control\" rows=\"3\" id=\"comment\"></textarea>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitAddCollab\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.scss":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.scss ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvYWRkLWNvbGxhYi13aWRnZXQvYWRkLWNvbGxhYi13aWRnZXQuY29tcG9uZW50LnNjc3MifQ== */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: AddCollabWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCollabWidgetComponent", function() { return AddCollabWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var AddCollabWidgetComponent = /** @class */ (function () {
    function AddCollabWidgetComponent() {
    }
    AddCollabWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
        // console.log('add collab on init fired');
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], AddCollabWidgetComponent.prototype, "isHidden", void 0);
    AddCollabWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-add-collab-widget',
            template: __webpack_require__(/*! ./add-collab-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.html"),
            styles: [__webpack_require__(/*! ./add-collab-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], AddCollabWidgetComponent);
    return AddCollabWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.html":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.html ***!
  \*********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"addissuecomment\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <!-- <img class=\"card-img-top\" src=\"...\" alt=\"Card image cap\"> -->\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">Add Comment</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"repoForIssueComment\">Repository Name</label>\n                  <input type=\"text\" class=\"form-control\" id=\"repoForIssueComment\" placeholder=\"Repository Name....\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"issueNumber\">Issue Number</label>\n                  <input type=\"text\" class=\"form-control\" id=\"issueNumber\" placeholder=\"Issue To Comment On...\">\n              </div>\n          </div>\n          <div class=\"form-group\">\n              <label for=\"issueComment\">Comment:</label>\n              <textarea class=\"form-control\" rows=\"3\" id=\"issueComment\"></textarea>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitAddComment\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.scss":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.scss ***!
  \*********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvYWRkLWlzc3VlLWNvbW1lbnQtd2lkZ2V0L2FkZC1pc3N1ZS1jb21tZW50LXdpZGdldC5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: AddIssueCommentWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddIssueCommentWidgetComponent", function() { return AddIssueCommentWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var AddIssueCommentWidgetComponent = /** @class */ (function () {
    function AddIssueCommentWidgetComponent() {
    }
    AddIssueCommentWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], AddIssueCommentWidgetComponent.prototype, "isHidden", void 0);
    AddIssueCommentWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-add-issue-comment-widget',
            template: __webpack_require__(/*! ./add-issue-comment-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.html"),
            styles: [__webpack_require__(/*! ./add-issue-comment-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], AddIssueCommentWidgetComponent);
    return AddIssueCommentWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.html":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.html ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"closeissue\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">Close Issue</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"repoForIssueClose\">Repository Name</label>\n                  <input type=\"text\" class=\"form-control\" id=\"repoForIssueClose\" placeholder=\"Repository Name....\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"issueNumerToClose\">Issue To Close</label>\n                  <input type=\"text\" class=\"form-control\" id=\"issueNumerToClose\" placeholder=\"Specify issue number...\">\n              </div>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitCloseIssue\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.scss":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.scss ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvY2xvc2UtaXNzdWUtd2lkZ2V0L2Nsb3NlLWlzc3VlLXdpZGdldC5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: CloseIssueWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloseIssueWidgetComponent", function() { return CloseIssueWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var CloseIssueWidgetComponent = /** @class */ (function () {
    function CloseIssueWidgetComponent() {
    }
    CloseIssueWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], CloseIssueWidgetComponent.prototype, "isHidden", void 0);
    CloseIssueWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-close-issue-widget',
            template: __webpack_require__(/*! ./close-issue-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.html"),
            styles: [__webpack_require__(/*! ./close-issue-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], CloseIssueWidgetComponent);
    return CloseIssueWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.html":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.html ***!
  \***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"createissue\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <!-- <img class=\"card-img-top\" src=\"...\" alt=\"Card image cap\"> -->\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">Create Issue</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"issueTitle\">Issue Title</label>\n                  <input type=\"text\" class=\"form-control\" id=\"issueTitle\" placeholder=\"Issue title\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"issueRepository\">Issue Repository</label>\n                  <input type=\"text\" class=\"form-control\" id=\"issueRepository\" placeholder=\"Issue's Repository here\">\n              </div>\n          </div>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"assignees\">Assignees</label>\n                  <input type=\"text\" class=\"form-control\" id=\"assignees\" placeholder=\"Comma Separated user IDs...\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"labels\">Issue Labels</label>\n                  <input type=\"text\" class=\"form-control\" id=\"labels\" placeholder=\"Comma Separated Labels...\">\n              </div>\n          </div>\n          <div class=\"form-group\">\n              <label for=\"description\">Issue Description:</label>\n              <textarea class=\"form-control\" rows=\"3\" id=\"description\"></textarea>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitConfirm\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.scss":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.scss ***!
  \***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvY3JlYXRlLWlzc3VlLXdpZGdldC9jcmVhdGUtaXNzdWUtd2lkZ2V0LmNvbXBvbmVudC5zY3NzIn0= */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: CreateIssueWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateIssueWidgetComponent", function() { return CreateIssueWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var CreateIssueWidgetComponent = /** @class */ (function () {
    function CreateIssueWidgetComponent() {
    }
    CreateIssueWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], CreateIssueWidgetComponent.prototype, "isHidden", void 0);
    CreateIssueWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-create-issue-widget',
            template: __webpack_require__(/*! ./create-issue-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.html"),
            styles: [__webpack_require__(/*! ./create-issue-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], CreateIssueWidgetComponent);
    return CreateIssueWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.html":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.html ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div \n  id=\"createrepo\" \n  [ngClass]=\"{'card widget good': true, 'hide': isHidden}\"\n  [hidden]=\"isHidden\"\n  #widget>\n    <div class=\"card-body\">\n        <div class=\"card-title\">Create Repository</div>\n        <form>\n            <div class=\"form-row\">\n                <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                    <label for=\"repositoryName\">Repository Name</label>\n                    <input type=\"text\" id=\"repositoryName\" placeholder=\"Repository Name... \" class=\"form-control\">\n                </div>\n                <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                    <label for=\"homePageURL\">Home Page URL</label>\n                    <input type=\"text\" id=\"homePageURL\" placeholder=\"Home Page URL... \" class=\"form-control\">\n                </div>\n            </div>\n            <div class=\"form-row\">\n                <div class=\"form-group col-md-3 col-sm-3 col-lg-3 col-xs-3 mb-3\">\n                    <div class=\"form-check form-check-inline\">\n                        <input type=\"checkbox\" id=\"privateRepoChk\" value=\"Option 1\" class=\"form-check-input\">\n                        <label for=\"privateRepoChk\" class=\"form-check-label\">Private</label>\n                    </div>\n                </div>\n                <div class=\"form-group col-md-4 col-sm-4 col-lg-4 col-xs-4 mb-3\">\n                    <div class=\"form-check form-check-inline\">\n                        <input type=\"checkbox\" id=\"issuesChk\" value=\"Option 2\" class=\"form-check-input\">\n                        <label for=\"issuesChk\" class=\"form-check-label\">Allow Adding Issues?</label>\n                    </div>\n                </div>\n                <div class=\"form-group col-md-4 col-sm-4 col-lg-4 col-xs-4 mb-3\">\n                    <div class=\"form-check form-check-inline\">\n                        <input type=\"checkbox\" id=\"wikiChk\" value=\"Option 3\" class=\"form-check-input\">\n                        <label for=\"wikiChk\" class=\"form-check-label\">Add Wiki?</label>\n                    </div>\n                </div>\n            </div>\n            <div class=\"form-group\">\n                <label for=\"description\">Add some Description for this repository:</label>\n                <textarea rows=\"3\" class=\"form-control\" id=\"description\"></textarea>\n            </div>\n            <button type=\"button\" data-toggle=\"modal\" data-target=\"#submitConfirm\" id=\"submitForm\" class=\"btn btn-primary\">Submit</button>\n        </form>\n    </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.scss":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.scss ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvY3JlYXRlLXJlcG8td2lkZ2V0L2NyZWF0ZS1yZXBvLXdpZGdldC5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: CreateRepoWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRepoWidgetComponent", function() { return CreateRepoWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var CreateRepoWidgetComponent = /** @class */ (function () {
    function CreateRepoWidgetComponent() {
    }
    CreateRepoWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], CreateRepoWidgetComponent.prototype, "isHidden", void 0);
    CreateRepoWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-create-repo-widget',
            template: __webpack_require__(/*! ./create-repo-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.html"),
            styles: [__webpack_require__(/*! ./create-repo-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], CreateRepoWidgetComponent);
    return CreateRepoWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.html":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.html ***!
  \***************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"displaylastcomment\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">Display Last Comment</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"repoForCommentView\">Repository Name</label>\n                  <input type=\"text\" class=\"form-control\" id=\"repoForCommentView\" placeholder=\"Repository Name....\">\n              </div>\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <label for=\"issueNumberForCommentView\">Issue To Close</label>\n                  <input type=\"text\" class=\"form-control\" id=\"issueNumberForCommentView\" placeholder=\"Specify issue number...\">\n              </div>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitCommentView\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.scss":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.scss ***!
  \***************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvZGlzcGxheS1sYXN0LWNvbW1lbnQtd2lkZ2V0L2Rpc3BsYXktbGFzdC1jb21tZW50LXdpZGdldC5jb21wb25lbnQuc2NzcyJ9 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: DisplayLastCommentWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayLastCommentWidgetComponent", function() { return DisplayLastCommentWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var DisplayLastCommentWidgetComponent = /** @class */ (function () {
    function DisplayLastCommentWidgetComponent() {
    }
    DisplayLastCommentWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DisplayLastCommentWidgetComponent.prototype, "isHidden", void 0);
    DisplayLastCommentWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-display-last-comment-widget',
            template: __webpack_require__(/*! ./display-last-comment-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.html"),
            styles: [__webpack_require__(/*! ./display-last-comment-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], DisplayLastCommentWidgetComponent);
    return DisplayLastCommentWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.html":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.html ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<div id=\"viewrepos\" class=\"card hide widget good\" [hidden]=\"isHidden\">\n  <div class=\"card-body\">\n      <h5 class=\"card-title\">View Repositories</h5>\n      <form>\n          <div class=\"form-row\">\n              <div class=\"form-group col-md-6 col-sm-6 col-lg-6 col-xs-6 mb-3\">\n                  <p>View Repositories for the user mohiit1502?</p>\n              </div>\n          </div>\n          <button class=\"btn btn-primary\" type=\"button\" data-toggle=\"modal\" data-dismiss=\"modal\" id=\"btnSubmitViewRepo\" data-target=\"#submitConfirm\">Submit</button>\n      </form>\n  </div>\n</div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.scss":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.scss ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbDIvY29udGVudC9wcmltYXJ5LWNvbnRhaW5lci93aWRnZXQvdmlldy1yZXBvLXdpZGdldC92aWV3LXJlcG8td2lkZ2V0LmNvbXBvbmVudC5zY3NzIn0= */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.ts ***!
  \***************************************************************************************************************/
/*! exports provided: ViewRepoWidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewRepoWidgetComponent", function() { return ViewRepoWidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var ViewRepoWidgetComponent = /** @class */ (function () {
    function ViewRepoWidgetComponent() {
    }
    ViewRepoWidgetComponent.prototype.ngOnInit = function () {
        this.isHidden = true;
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], ViewRepoWidgetComponent.prototype, "isHidden", void 0);
    ViewRepoWidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-view-repo-widget',
            template: __webpack_require__(/*! ./view-repo-widget.component.html */ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.html"),
            styles: [__webpack_require__(/*! ./view-repo-widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], ViewRepoWidgetComponent);
    return ViewRepoWidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/widget.component.html":
/*!**************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/widget.component.html ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<app-add-collab-widget></app-add-collab-widget>\n<app-add-issue-comment-widget></app-add-issue-comment-widget>\n<app-close-issue-widget></app-close-issue-widget>\n<app-create-issue-widget></app-create-issue-widget>\n<app-create-repo-widget></app-create-repo-widget>\n<app-display-last-comment-widget></app-display-last-comment-widget>\n<app-view-repo-widget></app-view-repo-widget>\n<div class=\"line hide\" id=\"underWidgetLine\" #underWidgetLine></div>"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/widget.component.scss":
/*!**************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/widget.component.scss ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ".line {\n  width: 100%;\n  height: 1px;\n  border-bottom: 1px dashed #ddd;\n  margin: 20px 0; }\n\n.hide {\n  display: none; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3ZhYXN1L1Byb2plY3RzL01pY3JvYm90L01pY3JvYm90LXYyL3NyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL3dpZGdldC93aWRnZXQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFXO0VBQ1gsV0FBVztFQUNYLDhCQUE4QjtFQUM5QixjQUFjLEVBQUE7O0FBR2hCO0VBQ0UsYUFBYSxFQUFBIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9sMi9jb250ZW50L3ByaW1hcnktY29udGFpbmVyL3dpZGdldC93aWRnZXQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubGluZSB7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDFweDtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IGRhc2hlZCAjZGRkO1xuICBtYXJnaW46IDIwcHggMDtcbn1cblxuLmhpZGUge1xuICBkaXNwbGF5OiBub25lO1xufVxuIl19 */"

/***/ }),

/***/ "./src/app/components/l2/content/primary-container/widget/widget.component.ts":
/*!************************************************************************************!*\
  !*** ./src/app/components/l2/content/primary-container/widget/widget.component.ts ***!
  \************************************************************************************/
/*! exports provided: WidgetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WidgetComponent", function() { return WidgetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var src_app_services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/github/github-ops.service */ "./src/app/services/github/github-ops.service.ts");
/* harmony import */ var src_app_services_cards_card_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/cards/card.service */ "./src/app/services/cards/card.service.ts");
/* harmony import */ var src_app_store_cards_actions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/store/cards.actions */ "./src/app/store/cards.actions.ts");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
/* harmony import */ var _add_collab_widget_add_collab_widget_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./add-collab-widget/add-collab-widget.component */ "./src/app/components/l2/content/primary-container/widget/add-collab-widget/add-collab-widget.component.ts");
/* harmony import */ var _add_issue_comment_widget_add_issue_comment_widget_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./add-issue-comment-widget/add-issue-comment-widget.component */ "./src/app/components/l2/content/primary-container/widget/add-issue-comment-widget/add-issue-comment-widget.component.ts");
/* harmony import */ var _create_repo_widget_create_repo_widget_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./create-repo-widget/create-repo-widget.component */ "./src/app/components/l2/content/primary-container/widget/create-repo-widget/create-repo-widget.component.ts");
/* harmony import */ var _close_issue_widget_close_issue_widget_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./close-issue-widget/close-issue-widget.component */ "./src/app/components/l2/content/primary-container/widget/close-issue-widget/close-issue-widget.component.ts");
/* harmony import */ var _create_issue_widget_create_issue_widget_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./create-issue-widget/create-issue-widget.component */ "./src/app/components/l2/content/primary-container/widget/create-issue-widget/create-issue-widget.component.ts");
/* harmony import */ var _display_last_comment_widget_display_last_comment_widget_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./display-last-comment-widget/display-last-comment-widget.component */ "./src/app/components/l2/content/primary-container/widget/display-last-comment-widget/display-last-comment-widget.component.ts");
/* harmony import */ var _view_repo_widget_view_repo_widget_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./view-repo-widget/view-repo-widget.component */ "./src/app/components/l2/content/primary-container/widget/view-repo-widget/view-repo-widget.component.ts");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../configuration/config */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_configuration_config__WEBPACK_IMPORTED_MODULE_13__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};














var WidgetComponent = /** @class */ (function () {
    function WidgetComponent(domOpsService, githubService, cardsService, store) {
        this.domOpsService = domOpsService;
        this.githubService = githubService;
        this.cardsService = cardsService;
        this.store = store;
    }
    WidgetComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.intentmap = {
            'createrepo': this.createRepoWidgetComponent,
            'createissue': this.createIssueWidgetComponent,
            'closeissue': this.closeIssueWidgetComponent,
            'addissuecomment': this.addIssueCommentWidgetComponent,
            'displaylastcomment': this.displayLastCommentWidgetComponent,
            'addcollab': this.addCollabWidgetComponent,
            'viewrepos': this.viewRepoWidgetComponent,
        };
        this.domOpsService.commandPromptEnteredWithValue.subscribe(function () {
            Object.keys(_this.intentmap).forEach(function (key) {
                _this.intentmap[key].isHidden = true;
            });
            _this.underWidgetLine.nativeElement.classList.add('hide');
        });
        this.domOpsService.widgetIdentified.subscribe(function (intent) {
            _this.intentmap[intent.widget].isHidden = false;
            _this.underWidgetLine.nativeElement.classList.remove('hide');
            // this.domOpsService.populateRecastData(intent.widget.slug, );
        });
        this.githubService.gitOperationIdentified.subscribe(function (gitOperation) {
            var data = _this.domOpsService.getDataFromFormAsJSON();
            var intent = window.localStorage.getItem(_configuration_config__WEBPACK_IMPORTED_MODULE_13__["constants"].hiddenIntentFieldId);
            data.intent = intent;
            _this.githubService[gitOperation](data);
            var card = _this.cardsService.getResponseCard(_configuration_config__WEBPACK_IMPORTED_MODULE_13__["intentSlugToOperations"][intent].successMessage, "", data, "response");
            var commandAction = new src_app_store_cards_actions__WEBPACK_IMPORTED_MODULE_4__["Command"](card);
            _this.store.dispatch(commandAction);
        });
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('widget'),
        __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
    ], WidgetComponent.prototype, "widget", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('underWidgetLine'),
        __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
    ], WidgetComponent.prototype, "underWidgetLine", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_add_collab_widget_add_collab_widget_component__WEBPACK_IMPORTED_MODULE_6__["AddCollabWidgetComponent"]),
        __metadata("design:type", _add_collab_widget_add_collab_widget_component__WEBPACK_IMPORTED_MODULE_6__["AddCollabWidgetComponent"])
    ], WidgetComponent.prototype, "addCollabWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_add_issue_comment_widget_add_issue_comment_widget_component__WEBPACK_IMPORTED_MODULE_7__["AddIssueCommentWidgetComponent"]),
        __metadata("design:type", _add_issue_comment_widget_add_issue_comment_widget_component__WEBPACK_IMPORTED_MODULE_7__["AddIssueCommentWidgetComponent"])
    ], WidgetComponent.prototype, "addIssueCommentWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_close_issue_widget_close_issue_widget_component__WEBPACK_IMPORTED_MODULE_9__["CloseIssueWidgetComponent"]),
        __metadata("design:type", _close_issue_widget_close_issue_widget_component__WEBPACK_IMPORTED_MODULE_9__["CloseIssueWidgetComponent"])
    ], WidgetComponent.prototype, "closeIssueWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_create_issue_widget_create_issue_widget_component__WEBPACK_IMPORTED_MODULE_10__["CreateIssueWidgetComponent"]),
        __metadata("design:type", _create_issue_widget_create_issue_widget_component__WEBPACK_IMPORTED_MODULE_10__["CreateIssueWidgetComponent"])
    ], WidgetComponent.prototype, "createIssueWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_create_repo_widget_create_repo_widget_component__WEBPACK_IMPORTED_MODULE_8__["CreateRepoWidgetComponent"]),
        __metadata("design:type", _create_repo_widget_create_repo_widget_component__WEBPACK_IMPORTED_MODULE_8__["CreateRepoWidgetComponent"])
    ], WidgetComponent.prototype, "createRepoWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_display_last_comment_widget_display_last_comment_widget_component__WEBPACK_IMPORTED_MODULE_11__["DisplayLastCommentWidgetComponent"]),
        __metadata("design:type", _display_last_comment_widget_display_last_comment_widget_component__WEBPACK_IMPORTED_MODULE_11__["DisplayLastCommentWidgetComponent"])
    ], WidgetComponent.prototype, "displayLastCommentWidgetComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_view_repo_widget_view_repo_widget_component__WEBPACK_IMPORTED_MODULE_12__["ViewRepoWidgetComponent"]),
        __metadata("design:type", _view_repo_widget_view_repo_widget_component__WEBPACK_IMPORTED_MODULE_12__["ViewRepoWidgetComponent"])
    ], WidgetComponent.prototype, "viewRepoWidgetComponent", void 0);
    WidgetComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-widget',
            template: __webpack_require__(/*! ./widget.component.html */ "./src/app/components/l2/content/primary-container/widget/widget.component.html"),
            styles: [__webpack_require__(/*! ./widget.component.scss */ "./src/app/components/l2/content/primary-container/widget/widget.component.scss")]
        }),
        __metadata("design:paramtypes", [src_app_services_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"],
            src_app_services_github_github_ops_service__WEBPACK_IMPORTED_MODULE_2__["GithubOpsService"],
            src_app_services_cards_card_service__WEBPACK_IMPORTED_MODULE_3__["CardService"],
            _ngrx_store__WEBPACK_IMPORTED_MODULE_5__["Store"]])
    ], WidgetComponent);
    return WidgetComponent;
}());



/***/ }),

/***/ "./src/app/components/l2/sidebar/sidebar.component.html":
/*!**************************************************************!*\
  !*** ./src/app/components/l2/sidebar/sidebar.component.html ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = "<nav id=\"sidebar\" class=\"active\">\n  <span class=\"triangle animation\" id=\"pullOutButton\"></span>\n  <div class=\"sidebar-header\">\n    <button type=\"button\" id=\"sidebarCollapse\" class=\"btn btn-info\">\n      <i class=\"fas fa-align-justify\"></i>\n    </button>\n    <h3 class=\"logotext\">Microbot</h3>\n    <!-- <strong>MB</strong> -->\n  </div>\n\n  <ul class=\"list-unstyled components\">\n    <li class=\"active\">\n      <!-- data-toggle=\"collapse\"  -->\n      <a href=\"#homeSubmenu\">\n        <i class=\"fas fa-home\"></i>\n        <span class=\"hideable hide\">Home</span>\n      </a>\n    </li>\n    <li>\n      <a href=\"#\">\n        <i class=\"fas fa-briefcase\"></i>\n        <span class=\"hideable hide\">About</span>\n      </a>\n      <a href=\"#pageSubmenu\" data-toggle=\"collapse\" aria-expanded=\"false\" class=\"dropdown-toggle\">\n        <i class=\"fas fa-copy\"></i>\n        <span class=\"hideable hide\">Tasks</span>\n      </a>\n      <ul class=\"collapse list-unstyled\" id=\"pageSubmenu\">\n        <li>\n          <a href=\"#\">Repo</a>\n        </li>\n        <li>\n          <a href=\"#\">Issues</a>\n        </li>\n        <li>\n          <a href=\"#\">Admin</a>\n        </li>\n      </ul>\n    </li>\n    <li>\n      <a href=\"#\">\n        <i class=\"fas fa-image\"></i>\n        <span class=\"hideable hide\">Favorites</span>\n      </a>\n    </li>\n    <li>\n      <a href=\"#\">\n        <i class=\"fas fa-question\"></i>\n        <span class=\"hideable hide\">FAQ</span>\n      </a>\n    </li>\n    <li>\n      <a href=\"#\">\n        <i class=\"fas fa-paper-plane\"></i>\n        <span class=\"hideable hide\">Contact</span>\n      </a>\n    </li>\n    <li>\n        <a href=\"#\">\n          <i class=\"fas fa-cogs\"></i>\n          <span class=\"hideable hide\">Settings</span>\n        </a>\n      </li>\n  </ul>\n\n  <!-- <ul class=\"list-unstyled CTAs\">\n      <li>\n          <a href=\"https://bootstrapious.com/tutorial/files/sidebar.zip\" class=\"download\">Download source</a>\n      </li>\n      <li>\n          <a href=\"https://bootstrapious.com/p/bootstrap-sidebar\" class=\"article\">Back to article</a>\n      </li>\n  </ul> -->\n</nav>\n"

/***/ }),

/***/ "./src/app/components/l2/sidebar/sidebar.component.scss":
/*!**************************************************************!*\
  !*** ./src/app/components/l2/sidebar/sidebar.component.scss ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = ":host {\n  height: 100%; }\n\na,\na:hover,\na:focus {\n  color: inherit;\n  text-decoration: none;\n  transition: all 0.3s; }\n\n.navbar {\n  padding: 15px 10px;\n  background: #fff;\n  border: none;\n  border-radius: 0 5px 5px 0;\n  margin-bottom: 40px;\n  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); }\n\n.navbar-btn {\n  box-shadow: none;\n  outline: none !important;\n  border: none; }\n\n.line {\n  width: 100%;\n  height: 1px;\n  border-bottom: 1px dashed #ddd;\n  margin: 20px 0; }\n\ni,\nspan {\n  display: inline-block; }\n\n/* ---------------------------------------------------\n    SIDEBAR STYLE\n----------------------------------------------------- */\n\n#sidebar {\n  min-width: 250px;\n  max-width: 250px;\n  background: #f39c12;\n  color: #252525;\n  transition: all 0.3s;\n  height: 100%;\n  position: fixed;\n  z-index: 10;\n  left: -255px; }\n\n#sidebar .triangle {\n    position: absolute;\n    background-color: #f39c12;\n    opacity: 0.8;\n    text-align: left;\n    left: 6em;\n    top: 50%;\n    cursor: pointer; }\n\n#sidebar .triangle:before {\n      content: '';\n      width: 20px;\n      height: 50px;\n      -webkit-transform: skewY(25deg);\n              transform: skewY(25deg);\n      background-color: #f39c12;\n      position: absolute;\n      top: 40px;\n      border-radius: 8px; }\n\n#sidebar .triangle:after {\n      content: '';\n      width: 20px;\n      height: 50px;\n      -webkit-transform: skewY(155deg);\n              transform: skewY(155deg);\n      background-color: #f39c12;\n      position: absolute;\n      top: 60px;\n      border-radius: 8px; }\n\n#sidebar .triangle.animation {\n      animation: pulse 2s infinite;\n      -ms-animation: pulse 2s infinite;\n      -moz-animation: pulse 2s infinite;\n      -webkit-animation: pulse 2s infinite; }\n\n#sidebar.active {\n    min-width: 80px;\n    max-width: 80px;\n    text-align: center;\n    left: -85px; }\n\n#sidebar.active .sidebar-header h3, #sidebar.active .CTAs {\n      display: none; }\n\n@-webkit-keyframes pulse {\n  from {\n    background-color: #f39c12;\n    box-shadow: 0 0 9px rgba(255, 255, 255, 0.5); }\n  50% {\n    background-color: rgba(255, 255, 255, 0.5);\n    box-shadow: 0 0 18px #f39c12; }\n  to {\n    background-color: #f39c12;\n    box-shadow: 0 0 9px rgba(255, 255, 255, 0.5); } }\n\n@keyframes pulse {\n  from {\n    background-color: #f39c12;\n    box-shadow: 0 0 9px rgba(255, 255, 255, 0.5); }\n  50% {\n    background-color: rgba(255, 255, 255, 0.5);\n    box-shadow: 0 0 18px #f39c12; }\n  to {\n    background-color: #f39c12;\n    box-shadow: 0 0 9px rgba(255, 255, 255, 0.5); } }\n\n.sidebar-header h3 {\n  display: inline;\n  padding-left: 0.6em;\n  vertical-align: middle; }\n\n#sidebar.active .sidebar-header strong {\n  display: block; }\n\n#sidebar ul li a {\n  text-align: left; }\n\n#sidebar.active ul li a {\n  padding: 20px 10px;\n  text-align: center;\n  font-size: 0.85em; }\n\n#sidebar.active ul li a i {\n  margin-right: 0;\n  display: block;\n  font-size: 1.8em;\n  margin-bottom: 5px; }\n\n#sidebar.active ul ul a {\n  padding: 10px !important; }\n\n#sidebar.active .dropdown-toggle::after {\n  top: auto;\n  bottom: 10px;\n  right: 50%;\n  -webkit-transform: translateX(50%);\n  transform: translateX(50%); }\n\n#sidebar .sidebar-header {\n  padding: 20px;\n  background: #252525; }\n\n#sidebar .sidebar-header strong {\n  display: none;\n  font-size: 1.8em; }\n\n#sidebar ul.components {\n  padding: 20px 0;\n  border-bottom: 3px solid #252525; }\n\n#sidebar ul li a {\n  padding: 10px;\n  font-size: 1.1em;\n  display: block; }\n\n#sidebar ul li a:hover {\n  color: #7386D5;\n  background: #fff; }\n\n#sidebar ul li a i {\n  margin-right: 10px; }\n\n#sidebar ul li.active > a,\na[aria-expanded=\"true\"] {\n  color: #f39c12;\n  background: #252525; }\n\na[data-toggle=\"collapse\"] {\n  position: relative; }\n\n.dropdown-toggle::after {\n  display: block;\n  position: absolute;\n  top: 50%;\n  right: 20px;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%); }\n\nul ul a {\n  font-size: 0.9em !important;\n  padding-left: 30px !important;\n  background: white;\n  font-weight: bolder; }\n\nul.CTAs {\n  padding: 20px; }\n\nul.CTAs a {\n  text-align: center;\n  font-size: 0.9em !important;\n  display: block;\n  border-radius: 5px;\n  margin-bottom: 5px; }\n\na.download {\n  background: #fff;\n  color: #7386D5; }\n\na.article,\na.article:hover {\n  background: #6d7fcc !important;\n  color: #fff !important; }\n\n/* ---------------------------------------------------\n    CONTENT STYLE\n----------------------------------------------------- */\n\n#content {\n  width: 100%;\n  padding: 20px;\n  min-height: 100vh;\n  transition: all 0.3s; }\n\n/* ---------------------------------------------------\n    MEDIAQUERIES\n----------------------------------------------------- */\n\n@media (max-width: 768px) {\n  #sidebar {\n    min-width: 80px;\n    max-width: 80px;\n    text-align: center;\n    margin-left: -80px !important; }\n  .dropdown-toggle::after {\n    top: auto;\n    bottom: 10px;\n    right: 50%;\n    -webkit-transform: translateX(50%);\n    transform: translateX(50%); }\n  #sidebar.active {\n    margin-left: 0 !important; }\n  #sidebar .sidebar-header h3,\n  #sidebar .CTAs {\n    display: none; }\n  #sidebar .sidebar-header strong {\n    display: block; }\n  #sidebar ul li a {\n    padding: 20px 10px; }\n  #sidebar ul li a span {\n    font-size: 0.85em; }\n  #sidebar ul li a i {\n    margin-right: 0;\n    display: block; }\n  #sidebar ul ul a {\n    padding: 10px !important; }\n  #sidebar ul li a i {\n    font-size: 1.3em; }\n  #sidebar {\n    margin-left: 0; }\n  #sidebarCollapse span {\n    display: none; }\n  .text-muted {\n    color: #bcb !important; } }\n\n@media (min-width: 576px) {\n  .card-group > .card:first-child {\n    border-top-right-radius: .25rem;\n    border-bottom-right-radius: .25rem; }\n  .card-group > .card:not(:first-child):not(:last-child):not(:only-child) {\n    border-radius: .25rem; }\n  .card-group > .card:last-child {\n    border-top-left-radius: .25rem;\n    border-bottom-left-radius: .25rem; } }\n\n/* -------------------------------------------------\nADDITIONS\n--------------------------------------------------*/\n\n.hide {\n  display: none; }\n\n.prompt {\n  display: flex;\n  width: 2em;\n  border-right: 1px solid #c99034;\n  background-color: #f5d38b;\n  width: 4%;\n  margin-bottom: 40px;\n  border-radius: 4px 0 0 4px; }\n\n.promptext {\n  -webkit-animation: blinkingText 0.8s infinite;\n          animation: blinkingText 0.8s infinite;\n  color: #975f04;\n  text-align: center;\n  line-height: 2em;\n  font: 1.5em bolder;\n  margin: auto; }\n\n.good {\n  -webkit-animation: anim .3s ease-in-out;\n          animation: anim .3s ease-in-out; }\n\n.repoLink {\n  color: #000;\n  font-weight: bolder;\n  text-decoration: underline; }\n\n.headerprompt {\n  display: flex;\n  width: 100%; }\n\n.logotext {\n  color: #f39c12; }\n\n#content nav div.collapse li a.nav-link i.far {\n  color: #f39c12;\n  font-size: 1.8em;\n  padding: 0.2em; }\n\n#loading-img {\n  background: url(http://preloaders.net/preloaders/360/Velocity.gif) center center no-repeat;\n  height: 100%;\n  z-index: 20; }\n\n.overlay {\n  background: #e9e9e9;\n  display: none;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  opacity: 0.5; }\n\n.loader {\n  border: 0px solid #f3f3f3;\n  border-radius: 50%;\n  border-top: 2px solid #3498db;\n  border-right: 2px solid #3498db;\n  width: 20px;\n  height: 20px;\n  -webkit-animation: spin 2s linear infinite;\n  /* Safari */\n  animation: spin 2s linear infinite; }\n\n.card:not(.widget) {\n  background: linear-gradient(to right, white, lightblue); }\n\n.light-red {\n  background: linear-gradient(to right, white, #dfc99a); }\n\n.featureRequest {\n  background-color: #007bff;\n  color: white;\n  font-size: 1.5em;\n  padding: 10px 20px;\n  border-radius: 30px; }\n\n#featureRequest {\n  position: fixed;\n  bottom: 2em;\n  right: 2.5em; }\n\n@-webkit-keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@keyframes spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@-webkit-keyframes anim {\n  0% {\n    display: none;\n    opacity: 0; }\n  1% {\n    display: block;\n    opacity: 0;\n    -webkit-transform: scale(0);\n            transform: scale(0); }\n  100% {\n    opacity: 1;\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@keyframes anim {\n  0% {\n    display: none;\n    opacity: 0; }\n  1% {\n    display: block;\n    opacity: 0;\n    -webkit-transform: scale(0);\n            transform: scale(0); }\n  100% {\n    opacity: 1;\n    -webkit-transform: scale(1);\n            transform: scale(1); } }\n\n@-webkit-keyframes blinkingText {\n  0% {\n    color: #000; }\n  49% {\n    color: transparent; }\n  50% {\n    color: transparent; }\n  99% {\n    color: transparent; }\n  100% {\n    color: #000; } }\n\n@keyframes blinkingText {\n  0% {\n    color: #000; }\n  49% {\n    color: transparent; }\n  50% {\n    color: transparent; }\n  99% {\n    color: transparent; }\n  100% {\n    color: #000; } }\n\n/* --------------------------------------------------\n  OVERRIDES\n  --------------------------------------------------*/\n\n.btn:not(.featureRequest) {\n  background-color: #f39c12;\n  color: #252525; }\n\n#content #header .navbar {\n  width: 96%; }\n\n.navbar-form {\n  width: 88%; }\n\n.form-control {\n  padding: .6rem 1em; }\n\n.container-fluid {\n  padding-left: 0.3em; }\n\n.card-group {\n  flex-direction: column; }\n\n#command.form-control {\n  width: 87%; }\n\n.ml-auto {\n  margin-left: 0 !important; }\n\n.btn-info {\n  border-color: orange; }\n\n.btn-info:hover {\n  border-color: orange;\n  opacity: 1; }\n\n/*# sourceMappingURL=data:application/json;base64,  */"

/***/ }),

/***/ "./src/app/components/l2/sidebar/sidebar.component.ts":
/*!************************************************************!*\
  !*** ./src/app/components/l2/sidebar/sidebar.component.ts ***!
  \************************************************************/
/*! exports provided: SidebarComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SidebarComponent", function() { return SidebarComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var SidebarComponent = /** @class */ (function () {
    function SidebarComponent() {
    }
    SidebarComponent.prototype.ngOnInit = function () {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebarCollapse').on('click', function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar').toggleClass('active');
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('.hideable').toggleClass('hide');
        });
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar.active > span').on('click', function () {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar').css('transform', 'translateX(85px)');
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar').css('box-shadow', 'rgb(224, 151, 32) 10px 10px 30px');
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('.triangle').removeClass('animation');
        });
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('*').on('click', function (e) {
            //       console.log(e.target);
            e.stopPropagation();
            if (e.target.id !== 'pullOutButton' && e.target.id !== 'sidebar') {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar').css('transform', 'translateX(0px)');
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('#sidebar').css('box-shadow', '');
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_1__('.triangle').addClass('animation');
            }
        });
    };
    SidebarComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-sidebar',
            template: __webpack_require__(/*! ./sidebar.component.html */ "./src/app/components/l2/sidebar/sidebar.component.html"),
            styles: [__webpack_require__(/*! ./sidebar.component.scss */ "./src/app/components/l2/sidebar/sidebar.component.scss")]
        }),
        __metadata("design:paramtypes", [])
    ], SidebarComponent);
    return SidebarComponent;
}());



/***/ }),

/***/ "./src/app/configuration/config.js":
/*!*****************************************!*\
  !*** ./src/app/configuration/config.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {
  gitToken: '96ead73c54cbbf023a73ee57af145b205d460851',
  recasttoken: '26021d055040a9d9f1ad48476efab4a0',
  intentSlugToOperations: {
    command: {
      cardTitle: 'You Said'
    },
    createrepo: {
      requestMethod: 'post',
      intentMessage: 'Create a Repository in Github',
      getDataOperation: 'getCreateRepoJson',
      githubOperation: 'createRepository',
      showWidgetOperation: 'showCreateRepoWidget',
      populateDataOperation: 'populateCreateRepoData',
      successMessage: 'Repository Added!',
      cardMsg: 'Requested Repository has been added and is available at ',
      cardDataUrl: 'html_url',
      cardDataName: 'name',
      action: { type: 'ADD_REPO' },
      response_action: { type: 'ADD_REPO_RESPONSE' },
    },
    createissue: {
      requestMethod: 'post',
      intentMessage: 'Raise an issue in Github',
      getDataOperation: 'getCreateIssueJson',
      githubOperation: 'createIssue',
      showWidgetOperation: 'showCreateIssueWidget',
      populateDataOperation: 'populateCreateIssueData',
      successMessage: 'Issue Created!',
      cardMsg: 'Issue Created as requested, issue details available at ',
      cardDataUrl: 'html_url',
      cardDataName: 'title',
      action: { type: 'ADD_ISSUE' },
      response_action: { type: 'ADD_ISSUE_RESPONSE' },
    },
    closeissue: {
      requestMethod: 'post',
      intentMessage: 'Close an issue in Github',
      getDataOperation: 'getCloseIssueJson',
      githubOperation: 'closeIssue',
      showWidgetOperation: 'showCloseIssueWidget',
      populateDataOperation: 'populateCloseIssueData',
      successMessage: 'Issue Closed!',
      cardMsg: 'Issue Closed as requested, closed issue available at: ',
      cardDataUrl: 'html_url',
      cardDataName: 'title',
      action: { type: 'CLOSE_ISSUE' },
      response_action: { type: 'CLOSE_ISSUE_RESPONSE' },
    },
    addissuecomment: {
      requestMethod: 'post',
      intentMessage: 'Add a comment on an issue in Github',
      getDataOperation: 'getAddCommentJson',
      githubOperation: 'addIssueComment',
      showWidgetOperation: 'showAddCommentWidget',
      populateDataOperation: 'populateAddCommentData',
      successMessage: 'Comment Added!',
      cardMsg: 'Comment Added as Requested, view here: ',
      cardDataUrl: 'html_url',
      cardDataName: 'title',
      action: { type: 'ADD_COMMENT' },
      response_action: { type: 'ADD_ISSUE_COMMENT_RESPONSE' },
    },
    displaylastcomment: {
      requestMethod: 'get',
      intentMessage: 'Display last comment of an issue in Github',
      getDataOperation: 'getDisplayCommentJson',
      githubOperation: 'displayLastComment',
      showWidgetOperation: 'showDisplayCommentWidget',
      populateDataOperation: 'populateDisplayCommentData',
      successMessage: 'Comment Retrieved!',
      cardMsg: 'Please find requested comment below: ',
      cardDataUrl: 'html_url',
      cardDataName: 'title',
      action: { type: 'SHOW_LAST_COMMENT' },
      response_action: { type: 'SHOW_LAST_COMMENT_RESPONSE' },
    },
    addcollab: {
      requestMethod: 'post',
      intentMessage: 'Add a collaborator',
      getDataOperation: 'getAddCollaboratorJson',
      githubOperation: 'addCollaborator',
      showWidgetOperation: 'showAddCollaboratorWidget',
      populateDataOperation: 'populateAddCollaboratorData',
      successMessage: 'Collaborator Added!',
      cardMsg: 'Collaborator added, details available at ',
      cardDataUrl: 'html_url',
      cardDataName: 'invitee,login',
      action: { type: 'ADD_COLLAB' },
      response_action: { type: 'ADD_COLLAB_RESPONSE' },
    },
    viewrepos: {
      requestMethod: 'get',
      intentMessage: 'View Repositories for current user',
      getDataOperation: 'getViewRepositoryJson',
      githubOperation: 'viewRepositories',
      showWidgetOperation: 'showViewRepoWidget',
      populateDataOperation: 'populateViewRepoData',
      successMessage: 'Showing repositories',
      cardMsg: 'Repository Details available below: ',
      cardDataUrl: 'html_url',
      cardDataName: 'invitee,login',
      action: { type: 'VIEW_REPO' },
      response_action: { type: 'VIEW_REPO_RESPONSE' },
    },
    resethistory: {
      requestMethod: 'purge',
      intentMessage: 'Clear all Operations History',
      successMessage: 'Purged!',
      cardTitle: 'Operation Completed',
      cardMsg: 'Purged history of all Operations and Commands!',
      action: { type: 'CLEAR_HISTORY' },
      response_action: { type: 'CLEAR_HISTORY_RESPONSE' },
    },
    addquery: {
      action: { type: 'ADD_QUERY' },
    },
  },
  constants: {
    hiddenIntentFieldId: 'intentHidden',
  },
};


/***/ }),

/***/ "./src/app/services/cards/card.service.js":
/*!************************************************!*\
  !*** ./src/app/services/cards/card.service.js ***!
  \************************************************/
/*! exports provided: CardService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardService", function() { return CardService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/components/l2/content/primary-container/cards/card/card.model */ "./src/app/components/l2/content/primary-container/cards/card/card.model.ts");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var CardService = /** @class */ (function () {
    function CardService(domOpsService, helperService) {
        this.domOpsService = domOpsService;
        this.helperService = helperService;
        this.cards = [];
    }
    CardService.prototype.renderCards = function () {
        var localHistory = JSON.parse('{"createrepo":[],"createissue":[],"closeissue":[],"addissuecomment":[],"displaylastcomment":[],"addcollab":[],"viewrepos":[],"queries":[{"command":"create repo","type":"command","insertionCounter":1},{"command":"create repo","type":"command","insertionCounter":2}],"messages":[],"insertionCounter":2}');
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__("#conversations").empty();
        // const historyAll = this.helper.concatenateAndSort(this.store.select('ioHistory'));
        var historyAll = this.helperService.concatenateAndSort(localHistory);
        this.domOpsService.loadConversations(historyAll);
    };
    CardService.prototype.getCommandCard = function (cardTitle, cardContent, data, type) {
        return new src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__["Card"](cardTitle, cardContent, data, type, Date.now() / 1000, 'command-card');
    };
    CardService.prototype.getResponseCard = function (cardTitle, cardContent, data, type) {
        return new src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__["Card"](cardTitle, cardContent, data, type, Date.now() / 1000, 'response-card');
    };
    CardService.prototype.getDisplayTime = function (timestamp) {
        var start = timestamp;
        var current = Date.now() / 1000;
        var difference = current - start;
        var days = Math.floor(difference / 86400);
        var hours = Math.floor((difference - (days * 86400)) / 3600);
        var minutes = Math.floor((difference - (days * 86400) - (hours * 3600)) / 60);
        var secs = Math.floor((difference - (days * 86400) - (hours * 3600) - (minutes * 60)));
        var displayTime = "";
        if (days != 0) {
            displayTime = displayTime + days + " days ago";
            if (days == 1) {
                return 'Yesterday';
            }
            else {
                return displayTime;
            }
        }
        if (hours != 0) {
            displayTime = displayTime + hours + " hours ago";
            if (hours == 1) {
                return 'an hour ago';
            }
            else {
                return displayTime;
            }
        }
        if (minutes != 0) {
            displayTime = displayTime + minutes + " minutes ago";
            if (minutes == 1) {
                return 'a minute ago';
            }
            else {
                return displayTime;
            }
        }
        displayTime = displayTime + secs + " seconds ago";
        return displayTime;
    };
    CardService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"], _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__["HelperServiceService"]])
    ], CardService);
    return CardService;
}());

//# sourceMappingURL=card.service.js.map

/***/ }),

/***/ "./src/app/services/cards/card.service.ts":
/*!************************************************!*\
  !*** ./src/app/services/cards/card.service.ts ***!
  \************************************************/
/*! exports provided: CardService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardService", function() { return CardService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/components/l2/content/primary-container/cards/card/card.model */ "./src/app/components/l2/content/primary-container/cards/card/card.model.ts");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var CardService = /** @class */ (function () {
    function CardService(domOpsService, helperService) {
        this.domOpsService = domOpsService;
        this.helperService = helperService;
        this.cards = [];
    }
    CardService.prototype.renderCards = function () {
        var localHistory = JSON.parse('{"createrepo":[],"createissue":[],"closeissue":[],"addissuecomment":[],"displaylastcomment":[],"addcollab":[],"viewrepos":[],"queries":[{"command":"create repo","type":"command","insertionCounter":1},{"command":"create repo","type":"command","insertionCounter":2}],"messages":[],"insertionCounter":2}');
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_4__("#conversations").empty();
        // const historyAll = this.helper.concatenateAndSort(this.store.select('ioHistory'));
        var historyAll = this.helperService.concatenateAndSort(localHistory);
        this.domOpsService.loadConversations(historyAll);
    };
    CardService.prototype.getCommandCard = function (cardTitle, cardContent, data, type) {
        return new src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__["Card"](cardTitle, cardContent, data, type, Date.now() / 1000, 'command-card');
    };
    CardService.prototype.getResponseCard = function (cardTitle, cardContent, data, type) {
        return new src_app_components_l2_content_primary_container_cards_card_card_model__WEBPACK_IMPORTED_MODULE_3__["Card"](cardTitle, cardContent, data, type, Date.now() / 1000, 'response-card');
    };
    CardService.prototype.getDisplayTime = function (timestamp) {
        var start = timestamp;
        var current = Date.now() / 1000;
        var difference = current - start;
        var days = Math.floor(difference / 86400);
        var hours = Math.floor((difference - (days * 86400)) / 3600);
        var minutes = Math.floor((difference - (days * 86400) - (hours * 3600)) / 60);
        var secs = Math.floor((difference - (days * 86400) - (hours * 3600) - (minutes * 60)));
        var displayTime = "";
        if (days != 0) {
            displayTime = displayTime + days + " days ago";
            if (days == 1) {
                return 'Yesterday';
            }
            else {
                return displayTime;
            }
        }
        if (hours != 0) {
            displayTime = displayTime + hours + " hours ago";
            if (hours == 1) {
                return 'an hour ago';
            }
            else {
                return displayTime;
            }
        }
        if (minutes != 0) {
            displayTime = displayTime + minutes + " minutes ago";
            if (minutes == 1) {
                return 'a minute ago';
            }
            else {
                return displayTime;
            }
        }
        displayTime = displayTime + secs + " seconds ago";
        return displayTime;
    };
    CardService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_1__["DomOpsService"], _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_2__["HelperServiceService"]])
    ], CardService);
    return CardService;
}());



/***/ }),

/***/ "./src/app/services/dom/dom-ops.service.js":
/*!*************************************************!*\
  !*** ./src/app/services/dom/dom-ops.service.js ***!
  \*************************************************/
/*! exports provided: DomOpsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomOpsService", function() { return DomOpsService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../configuration/config.js */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var DomOpsService = /** @class */ (function () {
    function DomOpsService(helper) {
        this.helper = helper;
        this.createRepoWidgetCreated = false;
        this.commandCardCounter = 1;
        this.widgets = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#widgets");
        this.commandPromptEnteredWithValue = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.commandPromptEnteredEmpty = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.intentIdentified = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.widgetIdentified = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.repeatRequested = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    DomOpsService.prototype.displayIntentBox = function (intent) {
        var intentBox = document.getElementById("intentBox");
        if (!this.isVisible(intentBox)) {
            intentBox.classList.remove("hide");
            this.intentIdentified.emit();
        }
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#intentName").text(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].intentMessage + " [slug: " + intent + "].");
    };
    DomOpsService.prototype.showEmptyCommandMessage = function (message) {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#randomModal").text(message);
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#emptyCommandMsgDisplayer").click();
        this.commandPromptEnteredEmpty.emit();
    };
    DomOpsService.prototype.populateRecastData = function (widgetName, recastResponse) {
        var operation = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][widgetName].populateDataOperation;
        if (typeof this[operation] === "function") {
            this[operation](recastResponse);
        }
    };
    DomOpsService.prototype.populateCreateRepoData = function (recastResponse) {
        var repoNameTextField = document.getElementById("repositoryName");
        if (repoNameTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            repoNameTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateCreateIssueData = function (recastResponse) {
        var issueTitleTextField = document.getElementById("issueTitle");
        var issueRepositoryTextField = document.getElementById("issueRepository");
        if (issueTitleTextField && recastResponse && recastResponse.entities.issue_title && recastResponse.entities.issue_title.length > 0
            && recastResponse.entities.issue_title["0"].value) {
            var issueTitle = recastResponse.entities.issue_title["0"].value;
            issueTitleTextField.value = issueTitle;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateCloseIssueData = function (recastResponse) {
        var issueNumberTextField = document.getElementById("issueNumerToClose");
        var issueRepositoryTextField = document.getElementById("repoForIssueClose");
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateAddCollaboratorData = function (recastResponse) {
        var collaboratorNameTextField = document.getElementById("collaboratorName");
        var repoForCollabTextField = document.getElementById("repoForCollab");
        if (collaboratorNameTextField && recastResponse && recastResponse.entities.git_collaborator && recastResponse.entities.git_collaborator.length > 0
            && recastResponse.entities.git_collaborator["0"].value) {
            var collaboratorName = recastResponse.entities.git_collaborator["0"].value;
            collaboratorNameTextField.value = collaboratorName;
        }
        if (repoForCollabTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            repoForCollabTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateAddCommentData = function (recastResponse) {
        var repoForIssueCommentTextField = document.getElementById("repoForIssueComment");
        var issueNumberTextField = document.getElementById("issueNumber");
        var issueCommentTextArea = document.getElementById("issueComment");
        if (repoForIssueCommentTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoForIssueComment = recastResponse.entities["git-repository"]["0"].value;
            repoForIssueCommentTextField.value = repoForIssueComment;
        }
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueCommentTextArea && recastResponse && recastResponse.entities.issue_comment && recastResponse.entities.issue_comment.length > 0
            && recastResponse.entities.issue_comment["0"].value) {
            var issueComment = recastResponse.entities.issue_comment["0"].value;
            issueCommentTextArea.value = issueComment;
        }
    };
    DomOpsService.prototype.populateDisplayCommentData = function (recastResponse) {
        var issueNumberTextField = document.getElementById("issueNumberForCommentView");
        var issueRepositoryTextField = document.getElementById("repoForCommentView");
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.isVisible = function (element) {
        return element ? !element.classList.contains("hide") : false;
    };
    DomOpsService.prototype.getDataFromFormAsJSON = function () {
        var data = {};
        // const intent = $(`#${$config.constants.hiddenIntentFieldId}`).val();
        var intent = window.localStorage.getItem(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId);
        var requestMethod = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].requestMethod;
        if (intent) {
            var operation = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].getDataOperation;
            if (typeof this[operation] === "function") {
                data = this[operation]();
            }
        }
        return data;
    };
    DomOpsService.prototype.getCreateRepoJson = function () {
        var data = {};
        var request = {};
        if (this.isVisible(document.getElementById("createrepo"))) {
            request.name = document.getElementById("repositoryName").value;
            request.description = document.getElementById("description").value;
            request.homepage = document.getElementById("homePageURL").value;
            request.private = document.getElementById("privateRepoChk").checked;
            request.has_issues = document.getElementById("issuesChk").checked;
            request.has_wiki = document.getElementById("wikiChk").checked;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getCreateIssueJson = function () {
        var data = {};
        data.urlParams = {};
        var request = {};
        if (this.isVisible(document.getElementById("createissue"))) {
            request.title = document.getElementById("issueTitle").value;
            request.body = document.getElementById("description").value;
            request.assignees = document.getElementById("assignees").value ? document.getElementById("assignees").value.split(",") : [];
            request.labels = document.getElementById("labels").value ? document.getElementById("labels").value.split(",") : [];
            data.urlParams.repoName = document.getElementById("issueRepository").value;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getCloseIssueJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("closeissue"))) {
            data.urlParams.issueId = document.getElementById("issueNumerToClose").value;
            data.urlParams.repoName = document.getElementById("repoForIssueClose").value;
        }
        return data;
    };
    DomOpsService.prototype.getAddCollaboratorJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("addcollab"))) {
            data.urlParams.collaborator = document.getElementById("collaboratorName").value;
            data.urlParams.repoName = document.getElementById("repoForCollab").value;
        }
        return data;
    };
    DomOpsService.prototype.getAddCommentJson = function () {
        var data = {};
        data.urlParams = {};
        var request = {};
        if (this.isVisible(document.getElementById("addissuecomment"))) {
            request.body = document.getElementById("issueComment").value;
            data.urlParams.issueId = document.getElementById("issueNumber").value;
            data.urlParams.repoName = document.getElementById("repoForIssueComment").value;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getDisplayCommentJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("displaylastcomment"))) {
            data.urlParams.issueId = document.getElementById("issueNumberForCommentView").value;
            data.urlParams.repoName = document.getElementById("repoForCommentView").value;
        }
        return data;
    };
    DomOpsService.prototype.addGitOperationHistory = function (data) {
        var intent = data.intent;
        // const intent = "createrepo";
        var requestMethod = "";
        if (intent) {
            requestMethod = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].requestMethod;
        }
        var conversations = document.getElementById("conversations");
        var table;
        var comment;
        // Create Elements
        var card = document.createElement("div");
        var cardBody = document.createElement("div");
        var cardTitle = document.createElement("h5");
        var closeAnchor = document.createElement("a");
        var closeHeader = document.createElement("h6");
        var cardText = document.createElement("p");
        var cardFooter = document.createElement("div");
        var textMuted = document.createElement("small");
        var underCardLine = document.createElement("div");
        // Add Attributes
        card.classList.add("card");
        cardBody.classList.add("card-body");
        cardTitle.classList.add("card-title");
        closeAnchor.classList.add("close");
        // closeAnchor.setAttribute('href', '#');
        cardText.classList.add("card-text");
        cardFooter.classList.add("card-footer");
        textMuted.classList.add("text-muted");
        underCardLine.classList.add("line");
        // Add content
        closeHeader.innerHTML = "x";
        // const x = this.display_ct(0, textMuted);
        if (data.type === "command") {
            // Add content
            cardTitle.innerHTML = "You Said";
            cardText.innerHTML = data.command;
            card.classList.add("light-red");
            var repeat = document.createElement("a");
            repeat.classList.add("btn", "btn-info", "float-right");
            repeat.setAttribute("role", "button");
            repeat.setAttribute("href", "#");
            repeat.setAttribute("id", "btnRepeatCommand" + data.insertionCounter);
            repeat.innerHTML = "Repeat";
            cardText.appendChild(repeat);
        }
        else if (data.type === "response") {
            // Add content
            cardTitle.innerHTML = "Server Responded As..";
            if (requestMethod == "post") {
                cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg + "<a class='repoLink' href='" + data[_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardDataUrl] + "'>" + this.getVariable(data, _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardDataName) + "</a>";
            }
            else if (requestMethod == "get") {
                cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg;
                if (data && data.length && data.length > 0) {
                    if (intent === "viewrepos") {
                        table = this.createRepoTable(data);
                    }
                    else if (intent === "displaylastcomment") {
                        comment = this.createCommentBody(data);
                    }
                }
            }
            else if (requestMethod == "purge") {
                cardTitle.innerHTML = "Operation Completed!";
                cardText.innerHTML = data.command;
            }
        }
        else if (data.type = 'widget') {
            cardTitle.innerHTML = "Operation recorded with below data, click submit to repeat.";
            cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg;
            if (data && data.length && data.length > 0) {
                if (intent === "viewrepos") {
                    table = this.createRepoTable(data);
                }
                else if (intent === "displaylastcomment") {
                    comment = this.createCommentBody(data);
                }
            }
        }
        else {
            cardTitle.innerHTML = "Server Responded As..";
            cardText.innerHTML = "Operation failed with status: " + data.status;
        }
        // Associations
        closeAnchor.appendChild(closeHeader);
        cardTitle.appendChild(closeAnchor);
        cardBody.appendChild(cardTitle);
        cardBody.appendChild(cardText);
        if (comment) {
            cardBody.appendChild(comment);
        }
        cardFooter.appendChild(textMuted);
        card.appendChild(cardBody);
        if (table) {
            card.appendChild(table);
        }
        card.appendChild(cardFooter);
        conversations.insertBefore(underCardLine, conversations.firstChild);
        conversations.insertBefore(card, conversations.firstChild);
    };
    DomOpsService.prototype.getVariable = function (data, commaSeparatedValue) {
        var arr = commaSeparatedValue.split(",");
        for (var i = 0; i < arr.length; i++) {
            data = data[arr[i]];
        }
        return data;
    };
    // Create table of repositories ==================================================================================================
    DomOpsService.prototype.createRepoTable = function (data) {
        // Create Elements
        var table = document.createElement("table");
        var thead = document.createElement("thead");
        var tr_head = document.createElement("tr");
        var th_1 = document.createElement("th");
        var th_2 = document.createElement("th");
        var th_3 = document.createElement("th");
        var th_4 = document.createElement("th");
        var th_5 = document.createElement("th");
        var th_6 = document.createElement("th");
        var th_7 = document.createElement("th");
        // Add Attributes
        table.classList.add("table", "tabled-bordered", "table-striped", "table-hover");
        thead.classList.add("thead-dark");
        th_1.setAttribute("scope", "col");
        th_2.setAttribute("scope", "col");
        th_3.setAttribute("scope", "col");
        th_4.setAttribute("scope", "col");
        th_5.setAttribute("scope", "col");
        th_6.setAttribute("scope", "col");
        th_7.setAttribute("scope", "col");
        // Add Inner HTML
        th_1.innerHTML = "#";
        th_2.innerHTML = "Repository Name";
        th_3.innerHTML = "Repository ID";
        th_4.innerHTML = "Created On";
        th_5.innerHTML = "Created By";
        th_6.innerHTML = "View Raw";
        th_7.innerHTML = "Delete Repository";
        // Associations
        tr_head.appendChild(th_1);
        tr_head.appendChild(th_2);
        tr_head.appendChild(th_3);
        tr_head.appendChild(th_4);
        tr_head.appendChild(th_5);
        tr_head.appendChild(th_6);
        tr_head.appendChild(th_7);
        thead.appendChild(tr_head);
        table.appendChild(thead);
        for (var i = 0; i < data.length; i++) {
            var currentRepo = data[i];
            // Create Elements
            var tbody = document.createElement("tbody");
            var tr_body = document.createElement("tr");
            var th_vertical = document.createElement("th");
            var td_1 = document.createElement("td");
            var td_2 = document.createElement("td");
            var td_3 = document.createElement("td");
            var td_4 = document.createElement("td");
            var td_5 = document.createElement("td");
            var td_6 = document.createElement("td");
            // Add Attributes
            th_vertical.setAttribute("scope", "row");
            tr_body.setAttribute("id", "repoRow" + i);
            // Add Inner HTML
            th_vertical.innerHTML = i + 1 + "";
            td_1.innerHTML = currentRepo.name;
            td_2.innerHTML = "<a href='" + currentRepo.html_url + "' class='repoLink'>" + currentRepo.id + "</a>";
            td_3.innerHTML = currentRepo.created_at;
            td_4.innerHTML = "<a href='" + currentRepo.owner.html_url + "' class='btn btn-info'>" + currentRepo.owner.login + "</a>";
            td_5.innerHTML = "<a href='" + currentRepo.url + "' class='btn btn-info'>View</a>";
            td_6.innerHTML = "<a href='" + currentRepo.owner.html_url + "' class='btn btn-danger'>Delete</a>";
            // Associations
            tr_body.appendChild(th_vertical);
            tr_body.appendChild(td_1);
            tr_body.appendChild(td_2);
            tr_body.appendChild(td_3);
            tr_body.appendChild(td_4);
            tr_body.appendChild(td_5);
            tr_body.appendChild(td_6);
            tbody.appendChild(tr_body);
            table.appendChild(tbody);
        }
        return table;
    };
    DomOpsService.prototype.loadConversations = function (historyAll) {
        var _this = this;
        if (historyAll) {
            historyAll.forEach(function (element) {
                _this.addGitOperationHistory(element);
            });
        }
    };
    DomOpsService.prototype.createCommentBody = function (data) {
        var commentPara = document.createElement("p");
        var lastComment = this.helper.getLatestComment(data);
        commentPara.classList.add("card-text");
        commentPara.innerHTML = "<strong style='color:black'>COMMENT:</strong> <i>" + lastComment + "</i>";
        return commentPara;
    };
    DomOpsService.prototype.concealCodeInUrl = function () {
        var location = new Location();
        location.href = "http://localhost:8080";
        window.location = location;
    };
    DomOpsService.prototype.toggleModals = function (response) {
        var self = this;
        var promise = response.json();
        var intent = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#" + _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId).val();
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#submitConfirm").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#btnCancelConfirm").click();
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__(".modal-backdrop").removeClass("modal-backdrop");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#underWidgetLine").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#intentBox").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#widgets").children().addClass("hide");
        if (response && response.status && (response.status === 201 || response.status === 200 || response.status === 204)) {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#successAlert").removeClass("hide");
            promise.then(function (body) {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#op-msg").text(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].successMessage);
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#successAlert").removeClass("hide");
                var action = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].response_action;
                body.intent = intent;
                action.payload = body;
                // this.store.dispatch(action);
                // self.addGitOperationHistory(body, 'response');
            });
        }
        else {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#dangerAlert").removeClass("hide");
            // self.addGitOperationHistory(response.status);
        }
        // clear intent
        // $(`#${$config.constants.hiddenIntentFieldId}`).val("");
        window.localStorage.setItem(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId, "");
    };
    // V2
    DomOpsService.prototype.repeatCommand = function (card) {
        var command = card.cardContent;
        this.repeatRequested.emit(command);
    };
    // Angular Specific code here
    DomOpsService.prototype.hideNonCards = function () {
        this.commandPromptEnteredWithValue.emit();
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "commandPromptEnteredWithValue", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "commandPromptEnteredEmpty", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "intentIdentified", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "widgetIdentified", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "repeatRequested", void 0);
    DomOpsService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__["HelperServiceService"]])
    ], DomOpsService);
    return DomOpsService;
}());

"";
//# sourceMappingURL=dom-ops.service.js.map

/***/ }),

/***/ "./src/app/services/dom/dom-ops.service.ts":
/*!*************************************************!*\
  !*** ./src/app/services/dom/dom-ops.service.ts ***!
  \*************************************************/
/*! exports provided: DomOpsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomOpsService", function() { return DomOpsService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../configuration/config.js */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var DomOpsService = /** @class */ (function () {
    function DomOpsService(helper) {
        this.helper = helper;
        this.createRepoWidgetCreated = false;
        this.commandCardCounter = 1;
        this.widgets = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#widgets");
        this.commandPromptEnteredWithValue = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.commandPromptEnteredEmpty = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.intentIdentified = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.widgetIdentified = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.repeatRequested = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    DomOpsService.prototype.displayIntentBox = function (intent) {
        var intentBox = document.getElementById("intentBox");
        if (!this.isVisible(intentBox)) {
            intentBox.classList.remove("hide");
            this.intentIdentified.emit();
        }
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#intentName").text(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].intentMessage + " [slug: " + intent + "].");
    };
    DomOpsService.prototype.showEmptyCommandMessage = function (message) {
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#randomModal").text(message);
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#emptyCommandMsgDisplayer").click();
        this.commandPromptEnteredEmpty.emit();
    };
    DomOpsService.prototype.populateRecastData = function (widgetName, recastResponse) {
        var operation = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][widgetName].populateDataOperation;
        if (typeof this[operation] === "function") {
            this[operation](recastResponse);
        }
    };
    DomOpsService.prototype.populateCreateRepoData = function (recastResponse) {
        var repoNameTextField = document.getElementById("repositoryName");
        if (repoNameTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            repoNameTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateCreateIssueData = function (recastResponse) {
        var issueTitleTextField = document.getElementById("issueTitle");
        var issueRepositoryTextField = document.getElementById("issueRepository");
        if (issueTitleTextField && recastResponse && recastResponse.entities.issue_title && recastResponse.entities.issue_title.length > 0
            && recastResponse.entities.issue_title["0"].value) {
            var issueTitle = recastResponse.entities.issue_title["0"].value;
            issueTitleTextField.value = issueTitle;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateCloseIssueData = function (recastResponse) {
        var issueNumberTextField = document.getElementById("issueNumerToClose");
        var issueRepositoryTextField = document.getElementById("repoForIssueClose");
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateAddCollaboratorData = function (recastResponse) {
        var collaboratorNameTextField = document.getElementById("collaboratorName");
        var repoForCollabTextField = document.getElementById("repoForCollab");
        if (collaboratorNameTextField && recastResponse && recastResponse.entities.git_collaborator && recastResponse.entities.git_collaborator.length > 0
            && recastResponse.entities.git_collaborator["0"].value) {
            var collaboratorName = recastResponse.entities.git_collaborator["0"].value;
            collaboratorNameTextField.value = collaboratorName;
        }
        if (repoForCollabTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            repoForCollabTextField.value = repoName;
        }
    };
    DomOpsService.prototype.populateAddCommentData = function (recastResponse) {
        var repoForIssueCommentTextField = document.getElementById("repoForIssueComment");
        var issueNumberTextField = document.getElementById("issueNumber");
        var issueCommentTextArea = document.getElementById("issueComment");
        if (repoForIssueCommentTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoForIssueComment = recastResponse.entities["git-repository"]["0"].value;
            repoForIssueCommentTextField.value = repoForIssueComment;
        }
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueCommentTextArea && recastResponse && recastResponse.entities.issue_comment && recastResponse.entities.issue_comment.length > 0
            && recastResponse.entities.issue_comment["0"].value) {
            var issueComment = recastResponse.entities.issue_comment["0"].value;
            issueCommentTextArea.value = issueComment;
        }
    };
    DomOpsService.prototype.populateDisplayCommentData = function (recastResponse) {
        var issueNumberTextField = document.getElementById("issueNumberForCommentView");
        var issueRepositoryTextField = document.getElementById("repoForCommentView");
        if (issueNumberTextField && recastResponse && recastResponse.entities.issue_id && recastResponse.entities.issue_id.length > 0
            && recastResponse.entities.issue_id["0"].value) {
            var issueNumber = recastResponse.entities.issue_id["0"].value;
            issueNumberTextField.value = issueNumber;
        }
        if (issueRepositoryTextField && recastResponse && recastResponse.entities["git-repository"] && recastResponse.entities["git-repository"].length > 0
            && recastResponse.entities["git-repository"]["0"].value) {
            var repoName = recastResponse.entities["git-repository"]["0"].value;
            issueRepositoryTextField.value = repoName;
        }
    };
    DomOpsService.prototype.isVisible = function (element) {
        return element ? !element.classList.contains("hide") : false;
    };
    DomOpsService.prototype.getDataFromFormAsJSON = function () {
        var data = {};
        // const intent = $(`#${$config.constants.hiddenIntentFieldId}`).val();
        var intent = window.localStorage.getItem(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId);
        var requestMethod = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].requestMethod;
        if (intent) {
            var operation = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].getDataOperation;
            if (typeof this[operation] === "function") {
                data = this[operation]();
            }
        }
        return data;
    };
    DomOpsService.prototype.getCreateRepoJson = function () {
        var data = {};
        var request = {};
        if (this.isVisible(document.getElementById("createrepo"))) {
            request.name = document.getElementById("repositoryName").value;
            request.description = document.getElementById("description").value;
            request.homepage = document.getElementById("homePageURL").value;
            request.private = document.getElementById("privateRepoChk").checked;
            request.has_issues = document.getElementById("issuesChk").checked;
            request.has_wiki = document.getElementById("wikiChk").checked;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getCreateIssueJson = function () {
        var data = {};
        data.urlParams = {};
        var request = {};
        if (this.isVisible(document.getElementById("createissue"))) {
            request.title = document.getElementById("issueTitle").value;
            request.body = document.getElementById("description").value;
            request.assignees = document.getElementById("assignees").value ? document.getElementById("assignees").value.split(",") : [];
            request.labels = document.getElementById("labels").value ? document.getElementById("labels").value.split(",") : [];
            data.urlParams.repoName = document.getElementById("issueRepository").value;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getCloseIssueJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("closeissue"))) {
            data.urlParams.issueId = document.getElementById("issueNumerToClose").value;
            data.urlParams.repoName = document.getElementById("repoForIssueClose").value;
        }
        return data;
    };
    DomOpsService.prototype.getAddCollaboratorJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("addcollab"))) {
            data.urlParams.collaborator = document.getElementById("collaboratorName").value;
            data.urlParams.repoName = document.getElementById("repoForCollab").value;
        }
        return data;
    };
    DomOpsService.prototype.getAddCommentJson = function () {
        var data = {};
        data.urlParams = {};
        var request = {};
        if (this.isVisible(document.getElementById("addissuecomment"))) {
            request.body = document.getElementById("issueComment").value;
            data.urlParams.issueId = document.getElementById("issueNumber").value;
            data.urlParams.repoName = document.getElementById("repoForIssueComment").value;
        }
        data.request = request;
        return data;
    };
    DomOpsService.prototype.getDisplayCommentJson = function () {
        var data = {};
        data.urlParams = {};
        if (this.isVisible(document.getElementById("displaylastcomment"))) {
            data.urlParams.issueId = document.getElementById("issueNumberForCommentView").value;
            data.urlParams.repoName = document.getElementById("repoForCommentView").value;
        }
        return data;
    };
    DomOpsService.prototype.addGitOperationHistory = function (data) {
        var intent = data.intent;
        // const intent = "createrepo";
        var requestMethod = "";
        if (intent) {
            requestMethod = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].requestMethod;
        }
        var conversations = document.getElementById("conversations");
        var table;
        var comment;
        // Create Elements
        var card = document.createElement("div");
        var cardBody = document.createElement("div");
        var cardTitle = document.createElement("h5");
        var closeAnchor = document.createElement("a");
        var closeHeader = document.createElement("h6");
        var cardText = document.createElement("p");
        var cardFooter = document.createElement("div");
        var textMuted = document.createElement("small");
        var underCardLine = document.createElement("div");
        // Add Attributes
        card.classList.add("card");
        cardBody.classList.add("card-body");
        cardTitle.classList.add("card-title");
        closeAnchor.classList.add("close");
        // closeAnchor.setAttribute('href', '#');
        cardText.classList.add("card-text");
        cardFooter.classList.add("card-footer");
        textMuted.classList.add("text-muted");
        underCardLine.classList.add("line");
        // Add content
        closeHeader.innerHTML = "x";
        // const x = this.display_ct(0, textMuted);
        if (data.type === "command") {
            // Add content
            cardTitle.innerHTML = "You Said";
            cardText.innerHTML = data.command;
            card.classList.add("light-red");
            var repeat = document.createElement("a");
            repeat.classList.add("btn", "btn-info", "float-right");
            repeat.setAttribute("role", "button");
            repeat.setAttribute("href", "#");
            repeat.setAttribute("id", "btnRepeatCommand" + data.insertionCounter);
            repeat.innerHTML = "Repeat";
            cardText.appendChild(repeat);
        }
        else if (data.type === "response") {
            // Add content
            cardTitle.innerHTML = "Server Responded As..";
            if (requestMethod == "post") {
                cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg + "<a class='repoLink' href='" + data[_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardDataUrl] + "'>" + this.getVariable(data, _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardDataName) + "</a>";
            }
            else if (requestMethod == "get") {
                cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg;
                if (data && data.length && data.length > 0) {
                    if (intent === "viewrepos") {
                        table = this.createRepoTable(data);
                    }
                    else if (intent === "displaylastcomment") {
                        comment = this.createCommentBody(data);
                    }
                }
            }
            else if (requestMethod == "purge") {
                cardTitle.innerHTML = "Operation Completed!";
                cardText.innerHTML = data.command;
            }
        }
        else if (data.type = 'widget') {
            cardTitle.innerHTML = "Operation recorded with below data, click submit to repeat.";
            cardText.innerHTML = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].cardMsg;
            if (data && data.length && data.length > 0) {
                if (intent === "viewrepos") {
                    table = this.createRepoTable(data);
                }
                else if (intent === "displaylastcomment") {
                    comment = this.createCommentBody(data);
                }
            }
        }
        else {
            cardTitle.innerHTML = "Server Responded As..";
            cardText.innerHTML = "Operation failed with status: " + data.status;
        }
        // Associations
        closeAnchor.appendChild(closeHeader);
        cardTitle.appendChild(closeAnchor);
        cardBody.appendChild(cardTitle);
        cardBody.appendChild(cardText);
        if (comment) {
            cardBody.appendChild(comment);
        }
        cardFooter.appendChild(textMuted);
        card.appendChild(cardBody);
        if (table) {
            card.appendChild(table);
        }
        card.appendChild(cardFooter);
        conversations.insertBefore(underCardLine, conversations.firstChild);
        conversations.insertBefore(card, conversations.firstChild);
    };
    DomOpsService.prototype.getVariable = function (data, commaSeparatedValue) {
        var arr = commaSeparatedValue.split(",");
        for (var i = 0; i < arr.length; i++) {
            data = data[arr[i]];
        }
        return data;
    };
    // Create table of repositories ==================================================================================================
    DomOpsService.prototype.createRepoTable = function (data) {
        // Create Elements
        var table = document.createElement("table");
        var thead = document.createElement("thead");
        var tr_head = document.createElement("tr");
        var th_1 = document.createElement("th");
        var th_2 = document.createElement("th");
        var th_3 = document.createElement("th");
        var th_4 = document.createElement("th");
        var th_5 = document.createElement("th");
        var th_6 = document.createElement("th");
        var th_7 = document.createElement("th");
        // Add Attributes
        table.classList.add("table", "tabled-bordered", "table-striped", "table-hover");
        thead.classList.add("thead-dark");
        th_1.setAttribute("scope", "col");
        th_2.setAttribute("scope", "col");
        th_3.setAttribute("scope", "col");
        th_4.setAttribute("scope", "col");
        th_5.setAttribute("scope", "col");
        th_6.setAttribute("scope", "col");
        th_7.setAttribute("scope", "col");
        // Add Inner HTML
        th_1.innerHTML = "#";
        th_2.innerHTML = "Repository Name";
        th_3.innerHTML = "Repository ID";
        th_4.innerHTML = "Created On";
        th_5.innerHTML = "Created By";
        th_6.innerHTML = "View Raw";
        th_7.innerHTML = "Delete Repository";
        // Associations
        tr_head.appendChild(th_1);
        tr_head.appendChild(th_2);
        tr_head.appendChild(th_3);
        tr_head.appendChild(th_4);
        tr_head.appendChild(th_5);
        tr_head.appendChild(th_6);
        tr_head.appendChild(th_7);
        thead.appendChild(tr_head);
        table.appendChild(thead);
        for (var i = 0; i < data.length; i++) {
            var currentRepo = data[i];
            // Create Elements
            var tbody = document.createElement("tbody");
            var tr_body = document.createElement("tr");
            var th_vertical = document.createElement("th");
            var td_1 = document.createElement("td");
            var td_2 = document.createElement("td");
            var td_3 = document.createElement("td");
            var td_4 = document.createElement("td");
            var td_5 = document.createElement("td");
            var td_6 = document.createElement("td");
            // Add Attributes
            th_vertical.setAttribute("scope", "row");
            tr_body.setAttribute("id", "repoRow" + i);
            // Add Inner HTML
            th_vertical.innerHTML = i + 1 + "";
            td_1.innerHTML = currentRepo.name;
            td_2.innerHTML = "<a href='" + currentRepo.html_url + "' class='repoLink'>" + currentRepo.id + "</a>";
            td_3.innerHTML = currentRepo.created_at;
            td_4.innerHTML = "<a href='" + currentRepo.owner.html_url + "' class='btn btn-info'>" + currentRepo.owner.login + "</a>";
            td_5.innerHTML = "<a href='" + currentRepo.url + "' class='btn btn-info'>View</a>";
            td_6.innerHTML = "<a href='" + currentRepo.owner.html_url + "' class='btn btn-danger'>Delete</a>";
            // Associations
            tr_body.appendChild(th_vertical);
            tr_body.appendChild(td_1);
            tr_body.appendChild(td_2);
            tr_body.appendChild(td_3);
            tr_body.appendChild(td_4);
            tr_body.appendChild(td_5);
            tr_body.appendChild(td_6);
            tbody.appendChild(tr_body);
            table.appendChild(tbody);
        }
        return table;
    };
    DomOpsService.prototype.loadConversations = function (historyAll) {
        var _this = this;
        if (historyAll) {
            historyAll.forEach(function (element) {
                _this.addGitOperationHistory(element);
            });
        }
    };
    DomOpsService.prototype.createCommentBody = function (data) {
        var commentPara = document.createElement("p");
        var lastComment = this.helper.getLatestComment(data);
        commentPara.classList.add("card-text");
        commentPara.innerHTML = "<strong style='color:black'>COMMENT:</strong> <i>" + lastComment + "</i>";
        return commentPara;
    };
    DomOpsService.prototype.concealCodeInUrl = function () {
        var location = new Location();
        location.href = "http://localhost:8080";
        window.location = location;
    };
    DomOpsService.prototype.toggleModals = function (response) {
        var self = this;
        var promise = response.json();
        var intent = node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#" + _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId).val();
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#submitConfirm").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#btnCancelConfirm").click();
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__(".modal-backdrop").removeClass("modal-backdrop");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#underWidgetLine").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#intentBox").addClass("hide");
        node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#widgets").children().addClass("hide");
        if (response && response.status && (response.status === 201 || response.status === 200 || response.status === 204)) {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#successAlert").removeClass("hide");
            promise.then(function (body) {
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#op-msg").text(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].successMessage);
                node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#successAlert").removeClass("hide");
                var action = _configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["intentSlugToOperations"][intent].response_action;
                body.intent = intent;
                action.payload = body;
                // this.store.dispatch(action);
                // self.addGitOperationHistory(body, 'response');
            });
        }
        else {
            node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__("#dangerAlert").removeClass("hide");
            // self.addGitOperationHistory(response.status);
        }
        // clear intent
        // $(`#${$config.constants.hiddenIntentFieldId}`).val("");
        window.localStorage.setItem(_configuration_config_js__WEBPACK_IMPORTED_MODULE_2__["constants"].hiddenIntentFieldId, "");
    };
    // V2
    DomOpsService.prototype.repeatCommand = function (card) {
        var command = card.cardContent;
        this.repeatRequested.emit(command);
    };
    // Angular Specific code here
    DomOpsService.prototype.hideNonCards = function () {
        this.commandPromptEnteredWithValue.emit();
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "commandPromptEnteredWithValue", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "commandPromptEnteredEmpty", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "intentIdentified", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "widgetIdentified", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DomOpsService.prototype, "repeatRequested", void 0);
    DomOpsService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__["HelperServiceService"]])
    ], DomOpsService);
    return DomOpsService;
}());

"";


/***/ }),

/***/ "./src/app/services/github/github-ops.service.ts":
/*!*******************************************************!*\
  !*** ./src/app/services/github/github-ops.service.ts ***!
  \*******************************************************/
/*! exports provided: GithubOpsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GithubOpsService", function() { return GithubOpsService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../io/persistence-ops.service */ "./src/app/services/io/persistence-ops.service.ts");
/* harmony import */ var _dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom/dom-ops.service */ "./src/app/services/dom/dom-ops.service.ts");
/* harmony import */ var _node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/jquery/dist/jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var _node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../configuration/config */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_configuration_config__WEBPACK_IMPORTED_MODULE_4__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var GithubOpsService = /** @class */ (function () {
    function GithubOpsService(persistenceOpsService, domOpsService) {
        this.persistenceOpsService = persistenceOpsService;
        this.domOpsService = domOpsService;
        this.authorizationToken = "token " + _configuration_config__WEBPACK_IMPORTED_MODULE_4__["gitToken"];
        this.gitOperationIdentified = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    GithubOpsService.prototype.getToken = function (code) {
        var _this = this;
        var token = "";
        // let self = this;
        _node_modules_jquery_dist_jquery__WEBPACK_IMPORTED_MODULE_3__["getJSON"]("https://micobot.herokuapp.com/authenticate/" + code, function (data) {
            console.log(data.token);
            token = data.token;
            // set cookie here
            _this.persistenceOpsService.setCookie("gitToken", token, 30);
            // self.authorizationToken = "token " + persistentOps.getCookie('gitToken');
            _this.domOpsService.concealCodeInUrl();
        });
        return token;
    };
    GithubOpsService.prototype.getCurrentUser = function () {
        var _this = this;
        var repositories = "";
        var url = "https://api.github.com/user/";
        fetch(url, {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
            },
        })
            .then(function (response) {
            response.json().then(function (body) {
                repositories = body;
                console.log(repositories);
                return repositories;
            });
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
        return repositories;
    };
    GithubOpsService.prototype.authenticate = function () {
    };
    GithubOpsService.prototype.viewRepositories = function () {
        var _this = this;
        var repositories = "";
        var url = "https://api.github.com/user/repos";
        fetch(url, {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) {
            // response.json().then(function(body){
            //     repositories = body;
            //     console.log(repositories);
            //     return repositories;
            // });
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
        return repositories;
    };
    GithubOpsService.prototype.createRepository = function (requestData) {
        var _this = this;
        var requestJson = requestData.request;
        // this.store.dispatch($config.intentSlugToOperations.createrepo.action);
        var url = "https://api.github.com/user/repos";
        // const responsePromise = "";
        fetch(url, {
            method: "POST",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(requestJson),
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.updateRepository = function (updateRepoJson, repoName) {
        repoName = "Hello-World3";
        var url = "https://api.github.com/repos/mohiit1502/" + repoName;
        fetch(url, {
            method: "PATCH",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(updateRepoJson),
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.deleteRepository = function (repoName) {
        repoName = "Hello-World2";
        var url = "https://api.github.com/repos/mohiit1502/" + repoName;
        fetch(url, {
            method: "DELETE",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.createIssue = function (newIssueJson, repoName) {
        var _this = this;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues";
        fetch(url, {
            method: "POST",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(newIssueJson),
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.updateIssue = function (updateIssueJson, repoName, issueNumber) {
        repoName = "stack_route_prj7";
        issueNumber = 2;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueNumber;
        fetch(url, {
            method: "PATCH",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(updateIssueJson),
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.closeIssue = function (closeIssueJson, repoName, issueNumber) {
        var _this = this;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueNumber;
        fetch(url, {
            method: "PATCH",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(closeIssueJson),
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.reopenIssue = function (reopenIssueJson, repoName, issueNumber) {
        repoName = "stack_route_prj7";
        issueNumber = 2;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueNumber;
        fetch(url, {
            method: "PATCH",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(reopenIssueJson),
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.displayIssue = function (repoName, issueNumber) {
        repoName = "stack_route_prj7";
        issueNumber = 2;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueNumber;
        var issues = "";
        fetch(url, {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) {
            response.json().then(function (body) {
                issues = body;
                console.log(issues);
                return issues;
            });
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
        return issues;
    };
    GithubOpsService.prototype.addIssueComment = function (commentBodyJson, repoName, issueId) {
        var _this = this;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueId + "/comments";
        fetch(url, {
            method: "POST",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
            body: JSON.stringify(commentBodyJson),
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.displayLastComment = function (repoName, issueNumber) {
        var _this = this;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/" + issueNumber + "/comments";
        var comments = [];
        var latestComment = "";
        fetch(url, {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
            // response.json().then(function(body){
            //     comments = body;
            //     latestComment = githubHelper.getLatestComment(comments);
            //     console.log(comments);
            //     console.log(latestComment);
            // });
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.displayIssuesForUser = function () {
        var url = "https://api.github.com/user/issues";
        fetch(url, {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.displayIssuesOnRepo = function () {
        var repoName = "stack_route_prj7";
        var issueNumber = 2;
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/issues/";
        fetch(url, {
            method: "PATCH",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.addCollaborator = function (repoName, collaborator) {
        var _this = this;
        repoName = "stack_route_prj7";
        collaborator = "swat1508";
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/collaborators/" + collaborator;
        fetch(url, {
            method: "PUT",
            headers: {
                "Content-Type": "application/json",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) {
            _this.domOpsService.toggleModals(response);
        })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.removeCollaborator = function (repoName, collaborator) {
        repoName = "stack_route_prj7";
        collaborator = "swat1508";
        var url = "https://api.github.com/repos/mohiit1502/" + repoName + "/collaborators/" + collaborator;
        fetch(url, {
            method: "DELETE",
            headers: {
                "Content-Type": "application/json",
                Authorization: this.authorizationToken,
            },
        })
            .then(function (response) { return response.json(); })
            .catch(function (error) { return console.error("Fetch Error =\n", error); });
    };
    GithubOpsService.prototype.createUser = function (newuserJson) {
    };
    GithubOpsService.prototype.updateUser = function (updateUserJson) {
    };
    GithubOpsService.prototype.deleteUser = function (userId) {
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], GithubOpsService.prototype, "gitOperationIdentified", void 0);
    GithubOpsService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_io_persistence_ops_service__WEBPACK_IMPORTED_MODULE_1__["PersistenceOpsService"], _dom_dom_ops_service__WEBPACK_IMPORTED_MODULE_2__["DomOpsService"]])
    ], GithubOpsService);
    return GithubOpsService;
}());



/***/ }),

/***/ "./src/app/services/helpers/helper-service.service.js":
/*!************************************************************!*\
  !*** ./src/app/services/helpers/helper-service.service.js ***!
  \************************************************************/
/*! exports provided: HelperServiceService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HelperServiceService", function() { return HelperServiceService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var HelperServiceService = /** @class */ (function () {
    function HelperServiceService() {
    }
    HelperServiceService.prototype.getLatestComment = function (comments) {
        if (comments && comments.length > 0) {
            return comments[comments.length - 1].body;
        }
    };
    HelperServiceService.prototype.compareByProperty = function (property) {
        return function (a, b) {
            if (a[property] > b[property])
                return -1;
            if (a[property] < b[property])
                return 1;
            return 0;
        };
    };
    HelperServiceService.prototype.clone = function (obj) {
        if (obj == null || typeof obj !== "object")
            return obj;
        var copy = Object.assign({}, obj);
        return copy;
    };
    HelperServiceService.prototype.concatenateAndSort = function (history) {
        // let counter = 1;
        var historyAll = [];
        for (var property in history) {
            if (history.hasOwnProperty(property) && Array.isArray(history[property])) {
                historyAll = historyAll.concat(history[property]);
            }
        }
        historyAll.sort(this.compareByProperty("insertionCounter"));
        return historyAll;
    };
    HelperServiceService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], HelperServiceService);
    return HelperServiceService;
}());

//# sourceMappingURL=helper-service.service.js.map

/***/ }),

/***/ "./src/app/services/helpers/helper-service.service.ts":
/*!************************************************************!*\
  !*** ./src/app/services/helpers/helper-service.service.ts ***!
  \************************************************************/
/*! exports provided: HelperServiceService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HelperServiceService", function() { return HelperServiceService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var HelperServiceService = /** @class */ (function () {
    function HelperServiceService() {
    }
    HelperServiceService.prototype.getLatestComment = function (comments) {
        if (comments && comments.length > 0) {
            return comments[comments.length - 1].body;
        }
    };
    HelperServiceService.prototype.compareByProperty = function (property) {
        return function (a, b) {
            if (a[property] > b[property])
                return -1;
            if (a[property] < b[property])
                return 1;
            return 0;
        };
    };
    HelperServiceService.prototype.clone = function (obj) {
        if (obj == null || typeof obj !== "object")
            return obj;
        var copy = Object.assign({}, obj);
        return copy;
    };
    HelperServiceService.prototype.concatenateAndSort = function (history) {
        // let counter = 1;
        var historyAll = [];
        for (var property in history) {
            if (history.hasOwnProperty(property) && Array.isArray(history[property])) {
                historyAll = historyAll.concat(history[property]);
            }
        }
        historyAll.sort(this.compareByProperty("insertionCounter"));
        return historyAll;
    };
    HelperServiceService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], HelperServiceService);
    return HelperServiceService;
}());



/***/ }),

/***/ "./src/app/services/io/json-reader.service.ts":
/*!****************************************************!*\
  !*** ./src/app/services/io/json-reader.service.ts ***!
  \****************************************************/
/*! exports provided: JsonReaderService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonReaderService", function() { return JsonReaderService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var JsonReaderService = /** @class */ (function () {
    function JsonReaderService() {
    }
    JsonReaderService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], JsonReaderService);
    return JsonReaderService;
}());



/***/ }),

/***/ "./src/app/services/io/persistence-ops.service.ts":
/*!********************************************************!*\
  !*** ./src/app/services/io/persistence-ops.service.ts ***!
  \********************************************************/
/*! exports provided: PersistenceOpsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersistenceOpsService", function() { return PersistenceOpsService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _helpers_helper_service_service_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/helper-service.service.js */ "./src/app/services/helpers/helper-service.service.js");
/* harmony import */ var _dom_dom_ops_service_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom/dom-ops.service.js */ "./src/app/services/dom/dom-ops.service.js");
/* harmony import */ var _ngrx_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngrx/store */ "./node_modules/@ngrx/store/fesm5/store.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var PersistenceOpsService = /** @class */ (function () {
    function PersistenceOpsService(helper, dom, store) {
        this.helper = helper;
        this.dom = dom;
        this.store = store;
    }
    PersistenceOpsService.prototype.setCookie = function (cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
        var expires = "expires=" + d.toUTCString();
        document.cookie = cname + " =" + cvalue + ";" + expires + ";path=/";
    };
    PersistenceOpsService.prototype.getCookie = function (cname) {
        var name = cname + "=";
        var decodedCookie = decodeURIComponent(document.cookie);
        var ca = decodedCookie.split(";");
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) == " ") {
                c = c.substring(1);
            }
            if (c.indexOf(name) == 0) {
                return c.substring(name.length, c.length);
            }
        }
        return "";
    };
    PersistenceOpsService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_helpers_helper_service_service_js__WEBPACK_IMPORTED_MODULE_1__["HelperServiceService"], _dom_dom_ops_service_js__WEBPACK_IMPORTED_MODULE_2__["DomOpsService"], _ngrx_store__WEBPACK_IMPORTED_MODULE_3__["Store"]])
    ], PersistenceOpsService);
    return PersistenceOpsService;
}());



/***/ }),

/***/ "./src/app/services/recast/recast-ops.service.ts":
/*!*******************************************************!*\
  !*** ./src/app/services/recast/recast-ops.service.ts ***!
  \*******************************************************/
/*! exports provided: RecastOpsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecastOpsService", function() { return RecastOpsService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../configuration/config */ "./src/app/configuration/config.js");
/* harmony import */ var _configuration_config__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_configuration_config__WEBPACK_IMPORTED_MODULE_1__);
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var RecastOpsService = /** @class */ (function () {
    // store: any = PersistenceOpsService.store;
    function RecastOpsService() {
        this.recastToken = _configuration_config__WEBPACK_IMPORTED_MODULE_1__["recasttoken"];
        this.requestUrl = "https://api.recast.ai/v2/request";
    }
    RecastOpsService.prototype.getRecastResponse = function (command, text) {
        var url = this.requestUrl + "?text=" + command;
        var requestInit = {
            method: "POST",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
                Authorization: "Token " + this.recastToken,
            },
            data: text,
        };
        return new Promise(function (resolve, reject) {
            fetch(url, requestInit)
                .then(function (response) {
                resolve(response.json());
            })
                .catch(function (error) {
                // console.error("Fetch Error =\n", error);
                reject(error.json());
            });
            // resolve({results: {intents: [{slug: 'createrepo', confidence: 0.7}]}});
        });
    };
    RecastOpsService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], RecastOpsService);
    return RecastOpsService;
}());



/***/ }),

/***/ "./src/app/store/cards.actions.js":
/*!****************************************!*\
  !*** ./src/app/store/cards.actions.js ***!
  \****************************************/
/*! exports provided: ADD_REPO_RESPONSE, ADD_ISSUE_RESPONSE, ADD_COLLAB_RESPONSE, ADD_COMMENT_RESPONSE, CLOSE_ISSUE_RESPONSE, SHOW_LAST_COMMENT_RESPONSE, VIEW_REPO_RESPONSE, COMMAND, CLEAR_HISTORY, AddRepoResponse, AddIssueResponse, AddCollabResponse, AddCommentResponse, CloseIssueResponse, ShowLastCommentResponse, ViewRepoResponse, Command, ClearHistory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_REPO_RESPONSE", function() { return ADD_REPO_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_ISSUE_RESPONSE", function() { return ADD_ISSUE_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_COLLAB_RESPONSE", function() { return ADD_COLLAB_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_COMMENT_RESPONSE", function() { return ADD_COMMENT_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSE_ISSUE_RESPONSE", function() { return CLOSE_ISSUE_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_LAST_COMMENT_RESPONSE", function() { return SHOW_LAST_COMMENT_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VIEW_REPO_RESPONSE", function() { return VIEW_REPO_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMAND", function() { return COMMAND; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLEAR_HISTORY", function() { return CLEAR_HISTORY; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddRepoResponse", function() { return AddRepoResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddIssueResponse", function() { return AddIssueResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCollabResponse", function() { return AddCollabResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCommentResponse", function() { return AddCommentResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloseIssueResponse", function() { return CloseIssueResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowLastCommentResponse", function() { return ShowLastCommentResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewRepoResponse", function() { return ViewRepoResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClearHistory", function() { return ClearHistory; });
var ADD_REPO_RESPONSE = "ADD_REPO_RESPONSE";
var ADD_ISSUE_RESPONSE = "ADD_ISSUE_RESPONSE";
var ADD_COLLAB_RESPONSE = "ADD_COLLAB_RESPONSE";
var ADD_COMMENT_RESPONSE = "CLOSE_ISSUE_RESPONSE";
var CLOSE_ISSUE_RESPONSE = "CLOSE_ISSUE_RESPONSE";
var SHOW_LAST_COMMENT_RESPONSE = "SHOW_LAST_COMMENT_RESPONSE";
var VIEW_REPO_RESPONSE = "VIEW_REPO_RESPONSE";
var COMMAND = "COMMAND";
var CLEAR_HISTORY = "CLEAR_HISTORY";
var AddRepoResponse = /** @class */ (function () {
    function AddRepoResponse() {
        this.type = ADD_REPO_RESPONSE;
    }
    return AddRepoResponse;
}());

var AddIssueResponse = /** @class */ (function () {
    function AddIssueResponse(payload) {
        this.payload = payload;
        this.type = ADD_ISSUE_RESPONSE;
    }
    return AddIssueResponse;
}());

var AddCollabResponse = /** @class */ (function () {
    function AddCollabResponse(payload) {
        this.payload = payload;
        this.type = ADD_COLLAB_RESPONSE;
    }
    return AddCollabResponse;
}());

var AddCommentResponse = /** @class */ (function () {
    function AddCommentResponse(payload) {
        this.payload = payload;
        this.type = ADD_COMMENT_RESPONSE;
    }
    return AddCommentResponse;
}());

var CloseIssueResponse = /** @class */ (function () {
    function CloseIssueResponse(payload) {
        this.payload = payload;
        this.type = CLOSE_ISSUE_RESPONSE;
    }
    return CloseIssueResponse;
}());

var ShowLastCommentResponse = /** @class */ (function () {
    function ShowLastCommentResponse(payload) {
        this.payload = payload;
        this.type = SHOW_LAST_COMMENT_RESPONSE;
    }
    return ShowLastCommentResponse;
}());

var ViewRepoResponse = /** @class */ (function () {
    function ViewRepoResponse(payload) {
        this.payload = payload;
        this.type = VIEW_REPO_RESPONSE;
    }
    return ViewRepoResponse;
}());

var Command = /** @class */ (function () {
    function Command(payload) {
        this.payload = payload;
        this.type = COMMAND;
    }
    return Command;
}());

var ClearHistory = /** @class */ (function () {
    function ClearHistory(payload) {
        this.payload = payload;
        this.type = CLEAR_HISTORY;
    }
    return ClearHistory;
}());

//# sourceMappingURL=cards.actions.js.map

/***/ }),

/***/ "./src/app/store/cards.actions.ts":
/*!****************************************!*\
  !*** ./src/app/store/cards.actions.ts ***!
  \****************************************/
/*! exports provided: ADD_REPO_RESPONSE, ADD_ISSUE_RESPONSE, ADD_COLLAB_RESPONSE, ADD_COMMENT_RESPONSE, CLOSE_ISSUE_RESPONSE, SHOW_LAST_COMMENT_RESPONSE, VIEW_REPO_RESPONSE, COMMAND, CLEAR_HISTORY, AddRepoResponse, AddIssueResponse, AddCollabResponse, AddCommentResponse, CloseIssueResponse, ShowLastCommentResponse, ViewRepoResponse, Command, ClearHistory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_REPO_RESPONSE", function() { return ADD_REPO_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_ISSUE_RESPONSE", function() { return ADD_ISSUE_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_COLLAB_RESPONSE", function() { return ADD_COLLAB_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADD_COMMENT_RESPONSE", function() { return ADD_COMMENT_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSE_ISSUE_RESPONSE", function() { return CLOSE_ISSUE_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_LAST_COMMENT_RESPONSE", function() { return SHOW_LAST_COMMENT_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VIEW_REPO_RESPONSE", function() { return VIEW_REPO_RESPONSE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMAND", function() { return COMMAND; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLEAR_HISTORY", function() { return CLEAR_HISTORY; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddRepoResponse", function() { return AddRepoResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddIssueResponse", function() { return AddIssueResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCollabResponse", function() { return AddCollabResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddCommentResponse", function() { return AddCommentResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloseIssueResponse", function() { return CloseIssueResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowLastCommentResponse", function() { return ShowLastCommentResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewRepoResponse", function() { return ViewRepoResponse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClearHistory", function() { return ClearHistory; });
var ADD_REPO_RESPONSE = "ADD_REPO_RESPONSE";
var ADD_ISSUE_RESPONSE = "ADD_ISSUE_RESPONSE";
var ADD_COLLAB_RESPONSE = "ADD_COLLAB_RESPONSE";
var ADD_COMMENT_RESPONSE = "CLOSE_ISSUE_RESPONSE";
var CLOSE_ISSUE_RESPONSE = "CLOSE_ISSUE_RESPONSE";
var SHOW_LAST_COMMENT_RESPONSE = "SHOW_LAST_COMMENT_RESPONSE";
var VIEW_REPO_RESPONSE = "VIEW_REPO_RESPONSE";
var COMMAND = "COMMAND";
var CLEAR_HISTORY = "CLEAR_HISTORY";
var AddRepoResponse = /** @class */ (function () {
    function AddRepoResponse() {
        this.type = ADD_REPO_RESPONSE;
    }
    return AddRepoResponse;
}());

var AddIssueResponse = /** @class */ (function () {
    function AddIssueResponse(payload) {
        this.payload = payload;
        this.type = ADD_ISSUE_RESPONSE;
    }
    return AddIssueResponse;
}());

var AddCollabResponse = /** @class */ (function () {
    function AddCollabResponse(payload) {
        this.payload = payload;
        this.type = ADD_COLLAB_RESPONSE;
    }
    return AddCollabResponse;
}());

var AddCommentResponse = /** @class */ (function () {
    function AddCommentResponse(payload) {
        this.payload = payload;
        this.type = ADD_COMMENT_RESPONSE;
    }
    return AddCommentResponse;
}());

var CloseIssueResponse = /** @class */ (function () {
    function CloseIssueResponse(payload) {
        this.payload = payload;
        this.type = CLOSE_ISSUE_RESPONSE;
    }
    return CloseIssueResponse;
}());

var ShowLastCommentResponse = /** @class */ (function () {
    function ShowLastCommentResponse(payload) {
        this.payload = payload;
        this.type = SHOW_LAST_COMMENT_RESPONSE;
    }
    return ShowLastCommentResponse;
}());

var ViewRepoResponse = /** @class */ (function () {
    function ViewRepoResponse(payload) {
        this.payload = payload;
        this.type = VIEW_REPO_RESPONSE;
    }
    return ViewRepoResponse;
}());

var Command = /** @class */ (function () {
    function Command(payload) {
        this.payload = payload;
        this.type = COMMAND;
    }
    return Command;
}());

var ClearHistory = /** @class */ (function () {
    function ClearHistory(payload) {
        this.payload = payload;
        this.type = CLEAR_HISTORY;
    }
    return ClearHistory;
}());



/***/ }),

/***/ "./src/app/store/cards.reducer.ts":
/*!****************************************!*\
  !*** ./src/app/store/cards.reducer.ts ***!
  \****************************************/
/*! exports provided: initialState, updateHistoryReducer */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initialState", function() { return initialState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateHistoryReducer", function() { return updateHistoryReducer; });
/* harmony import */ var _cards_actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cards.actions */ "./src/app/store/cards.actions.ts");
/* harmony import */ var _services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/helpers/helper-service.service */ "./src/app/services/helpers/helper-service.service.ts");


var helper = new _services_helpers_helper_service_service__WEBPACK_IMPORTED_MODULE_1__["HelperServiceService"]();
var initialState = {
    responses: [],
    // createrepo: [],
    // createissue: [],
    // closeissue: [],
    // addissuecomment: [],
    // displaylastcomment: [],
    // addcollab: [],
    // viewrepos: [],
    queries: [],
    messages: [],
    insertionCounter: 0,
};
function updateHistoryReducer(currentState, action) {
    if (currentState === void 0) { currentState = initialState; }
    var nextState = getCardsFromState(currentState);
    var card;
    var response = {};
    switch (action.type) {
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["ADD_REPO_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["ADD_ISSUE_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["ADD_COLLAB_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["ADD_COMMENT_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["CLOSE_ISSUE_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["SHOW_LAST_COMMENT_RESPONSE"]:
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["VIEW_REPO_RESPONSE"]:
            response = action.payload;
            nextState = getCardsFromState(currentState);
            card = response;
            card.type = "response";
            // card.action = action.type;
            card.insertionCounter = ++nextState.insertionCounter;
            if (nextState.messages) {
                nextState.messages = nextState.messages.concat([card]);
            }
            else {
                nextState.messages = [card];
            }
            window.localStorage.setItem("currentState", JSON.stringify(nextState));
            return nextState;
        // case "ADD_REPO":
        // case "ADD_COLLAB":
        // case "ADD_ISSUE":
        // case "ADD_COMMENT":
        // case "CLOSE_ISSUE":
        // case "SHOW_LAST_COMMENT":
        // case "VIEW_REPO":
        //     response = action.payload;
        //     nextState = window.localStorage.getItem('currentState') ? JSON.parse(window.localStorage.getItem('currentState')) : currentState;
        //     card = response;
        //     card.type = 'widget';
        //     card.insertionCounter = ++nextState.insertionCounter;
        //     if (response.intent) {
        //         let intent = response.intent;
        //         if (nextState[intent]) {
        //             nextState[intent] = [...nextState[intent], card];
        //         } else {
        //             nextState[intent] = [card];
        //         }
        //     }
        //     window.localStorage.setItem('currentState', JSON.stringify(nextState));
        //     return nextState;
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["COMMAND"]:
            nextState = getCardsFromState(currentState);
            card = action.payload;
            card.insertionCounter = ++nextState.insertionCounter;
            if (nextState.queries) {
                nextState.queries = nextState.queries.concat([card]);
            }
            else {
                nextState.queries = [card];
            }
            window.localStorage.setItem("currentState", JSON.stringify(nextState));
            return nextState;
        case _cards_actions__WEBPACK_IMPORTED_MODULE_0__["CLEAR_HISTORY"]:
            nextState = helper.clone(initialState);
            // card.command = $config.intentSlugToOperations.resethistory.cardMsg;
            card = action.payload;
            // card.message = $config.intentSlugToOperations.resethistory.cardMsg;
            // card.type = "response";
            // card.insertionCounter = 0;
            // card.intent = $(`#${$config.constants.hiddenIntentFieldId}`).val();
            // card.intent = window.localStorage.getItem('intent');
            nextState.messages = [card];
            window.localStorage.setItem("currentState", JSON.stringify(nextState));
            return nextState;
        default:
            return nextState;
    }
}
function getCardsFromState(currentState) {
    var cards = window.localStorage.getItem("currentState") ? JSON.parse(window.localStorage.getItem("currentState")) : currentState;
    if (cards && !cards.hasOwnProperty('insertionCounter')) {
        cards = initialState;
    }
    // console.log("Cards from reducer function : " + JSON.stringify(cards));
    return cards;
}


/***/ }),

/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
  !*** ./src/environments/environment.ts ***!
  \*****************************************/
/*! exports provided: environment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
var environment = {
    production: false
};
/*
 * In development mode, to ignore zone related error stack frames such as
 * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
 * import the following file, but please comment it out in production mode
 * because it will have performance impact when throw error
 */
// import 'zone.js/dist/zone-error';  // Included with Angular CLI.


/***/ }),

/***/ "./src/main.ts":
/*!*********************!*\
  !*** ./src/main.ts ***!
  \*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");




if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
    .catch(function (err) { return console.log(err); });


/***/ }),

/***/ 0:
/*!***************************!*\
  !*** multi ./src/main.ts ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /home/vaasu/Projects/Microbot/Microbot-v2/src/main.ts */"./src/main.ts");


/***/ })

},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map