text: function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"], {
    /***/
    "./$$_lazy_route_resource lazy recursive":
    /*!******************************************************!*\
      !*** ./$$_lazy_route_resource lazy namespace object ***!
      \******************************************************/
  
    /*! no static exports found */
  
    /***/
    function $$_lazy_route_resourceLazyRecursive(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 = "./$$_lazy_route_resource lazy recursive";
      /***/
    },
  
    /***/
    "./src/app/app-routing.module.ts":
    /*!***************************************!*\
      !*** ./src/app/app-routing.module.ts ***!
      \***************************************/
  
    /*! exports provided: AppRoutingModule */
  
    /***/
    function srcAppAppRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function () {
        return AppRoutingModule;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
      /* harmony import */
  
  
      var _components_view_posts_view_posts_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./components/view-posts/view-posts.component */
      "./src/app/components/view-posts/view-posts.component.ts");
      /* harmony import */
  
  
      var _components_add_post_add_post_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./components/add-post/add-post.component */
      "./src/app/components/add-post/add-post.component.ts");
      /* harmony import */
  
  
      var _components_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./components/home-page/home-page.component */
      "./src/app/components/home-page/home-page.component.ts");
      /* harmony import */
  
  
      var _auth_user_guard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./auth/user.guard */
      "./src/app/auth/user.guard.ts");
  
      var routes = [{
        path: 'home',
        component: _components_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_4__["HomePageComponent"]
      }, {
        path: 'addpost',
        component: _components_add_post_add_post_component__WEBPACK_IMPORTED_MODULE_3__["AddPostComponent"],
        canActivate: [_auth_user_guard__WEBPACK_IMPORTED_MODULE_5__["AuthGuardService"]]
      }, {
        path: 'viewposts',
        component: _components_view_posts_view_posts_component__WEBPACK_IMPORTED_MODULE_2__["ViewPostsComponent"],
        canActivate: [_auth_user_guard__WEBPACK_IMPORTED_MODULE_5__["AuthGuardService"]]
      }, {
        path: '',
        redirectTo: '/home',
        pathMatch: 'full'
      }];
  
      var AppRoutingModule = function AppRoutingModule() {
        _classCallCheck(this, AppRoutingModule);
      };
  
      AppRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: AppRoutingModule
      });
      AppRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function AppRoutingModule_Factory(t) {
          return new (t || AppRoutingModule)();
        },
        imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(routes)], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
      });
  
      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](AppRoutingModule, {
          imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
          exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        });
      })();
      /*@__PURE__*/
  
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppRoutingModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(routes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
          }]
        }], null, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/app.component.ts":
    /*!**********************************!*\
      !*** ./src/app/app.component.ts ***!
      \**********************************/
  
    /*! exports provided: AppComponent */
  
    /***/
    function srcAppAppComponentTs(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/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  
      var AppComponent = function AppComponent() {
        _classCallCheck(this, AppComponent);
  
        this.title = 'working-hours';
      };
  
      AppComponent.ɵfac = function AppComponent_Factory(t) {
        return new (t || AppComponent)();
      };
  
      AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: AppComponent,
        selectors: [["app-root"]],
        decls: 1,
        vars: 0,
        template: function AppComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "router-outlet");
          }
        },
        directives: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterOutlet"]],
        styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-root',
            templateUrl: './app.component.html',
            styleUrls: ['./app.component.scss']
          }]
        }], null, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/app.module.ts":
    /*!*******************************!*\
      !*** ./src/app/app.module.ts ***!
      \*******************************/
  
    /*! exports provided: AppModule */
  
    /***/
    function srcAppAppModuleTs(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/__ivy_ngcc__/fesm2015/platform-browser.js");
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _app_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./app-routing.module */
      "./src/app/app-routing.module.ts");
      /* harmony import */
  
  
      var _app_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./app.component */
      "./src/app/app.component.ts");
      /* harmony import */
  
  
      var _components_add_post_add_post_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./components/add-post/add-post.component */
      "./src/app/components/add-post/add-post.component.ts");
      /* harmony import */
  
  
      var _components_view_posts_view_posts_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./components/view-posts/view-posts.component */
      "./src/app/components/view-posts/view-posts.component.ts");
      /* harmony import */
  
  
      var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/slide-toggle */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/slide-toggle.js");
      /* harmony import */
  
  
      var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/material/card */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
      /* harmony import */
  
  
      var _services_post_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ./services/post.service */
      "./src/app/services/post.service.ts");
      /* harmony import */
  
  
      var _angular_common_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/common/http */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
      /* harmony import */
  
  
      var _change_time_pipe__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! ./change-time.pipe */
      "./src/app/change-time.pipe.ts");
      /* harmony import */
  
  
      var _components_sign_in_sign_in_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! ./components/sign-in/sign-in.component */
      "./src/app/components/sign-in/sign-in.component.ts");
      /* harmony import */
  
  
      var _components_sign_up_sign_up_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! ./components/sign-up/sign-up.component */
      "./src/app/components/sign-up/sign-up.component.ts");
      /* harmony import */
  
  
      var _components_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! ./components/home-page/home-page.component */
      "./src/app/components/home-page/home-page.component.ts");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! ./services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
      /*! @angular/forms */
      "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
      /* harmony import */
  
  
      var _angular_material_grid_list__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
      /*! @angular/material/grid-list */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/grid-list.js");
      /* harmony import */
  
  
      var _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
      /*! @angular/material/icon */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
      /* harmony import */
  
  
      var _angular_material_tabs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
      /*! @angular/material/tabs */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tabs.js");
      /* harmony import */
  
  
      var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
      /*! @angular/material/toolbar */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/toolbar.js");
      /* harmony import */
  
  
      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
      /*! @angular/material/form-field */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
      /* harmony import */
  
  
      var _angular_material_input__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
      /*! @angular/material/input */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
      /* harmony import */
  
  
      var _angular_material_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
      /*! @angular/material/button */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
      /* harmony import */
  
  
      var _angular_material_select__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
      /*! @angular/material/select */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/select.js");
      /* harmony import */
  
  
      var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
      /*! @angular/material/dialog */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
      /* harmony import */
  
  
      var _angular_material_table__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
      /*! @angular/material/table */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js");
      /* harmony import */
  
  
      var _auth_user_guard__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
      /*! ./auth/user.guard */
      "./src/app/auth/user.guard.ts");
      /* harmony import */
  
  
      var ngx_toastr__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
      /*! ngx-toastr */
      "./node_modules/ngx-toastr/__ivy_ngcc__/fesm2015/ngx-toastr.js");
      /* harmony import */
  
  
      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js");
      /* harmony import */
  
  
      var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
      /*! @fortawesome/angular-fontawesome */
      "./node_modules/@fortawesome/angular-fontawesome/__ivy_ngcc__/fesm2015/angular-fontawesome.js");
      /* harmony import */
  
  
      var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
      /*! @angular/material/tooltip */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tooltip.js");
  
      var AppModule = function AppModule() {
        _classCallCheck(this, AppModule);
      };
  
      AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: AppModule,
        bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"]]
      });
      AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function AppModule_Factory(t) {
          return new (t || AppModule)();
        },
        providers: [_services_post_service__WEBPACK_IMPORTED_MODULE_8__["PostService"], _services_user_service__WEBPACK_IMPORTED_MODULE_14__["UserService"], _auth_user_guard__WEBPACK_IMPORTED_MODULE_26__["AuthGuardService"]],
        imports: [[_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_6__["MatSlideToggleModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_28__["BrowserAnimationsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClientModule"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__["MatIconModule"], _angular_material_grid_list__WEBPACK_IMPORTED_MODULE_16__["MatGridListModule"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_18__["MatTabsModule"], _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_19__["MatToolbarModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_20__["MatFormFieldModule"], _angular_material_input__WEBPACK_IMPORTED_MODULE_21__["MatInputModule"], _angular_material_button__WEBPACK_IMPORTED_MODULE_22__["MatButtonModule"], _angular_material_select__WEBPACK_IMPORTED_MODULE_23__["MatSelectModule"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardModule"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_24__["MatDialogModule"], _angular_material_table__WEBPACK_IMPORTED_MODULE_25__["MatTableModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["ReactiveFormsModule"], ngx_toastr__WEBPACK_IMPORTED_MODULE_27__["ToastrModule"].forRoot(), _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_29__["FontAwesomeModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_30__["MatTooltipModule"]]]
      });
  
      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AppModule, {
          declarations: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"], _components_add_post_add_post_component__WEBPACK_IMPORTED_MODULE_4__["AddPostComponent"], _components_view_posts_view_posts_component__WEBPACK_IMPORTED_MODULE_5__["ViewPostsComponent"], _change_time_pipe__WEBPACK_IMPORTED_MODULE_10__["ChangeTimePipe"], _components_sign_in_sign_in_component__WEBPACK_IMPORTED_MODULE_11__["SignInComponent"], _components_sign_up_sign_up_component__WEBPACK_IMPORTED_MODULE_12__["SignUpComponent"], _components_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_13__["HomePageComponent"]],
          imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_6__["MatSlideToggleModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_28__["BrowserAnimationsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClientModule"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__["MatIconModule"], _angular_material_grid_list__WEBPACK_IMPORTED_MODULE_16__["MatGridListModule"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_18__["MatTabsModule"], _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_19__["MatToolbarModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_20__["MatFormFieldModule"], _angular_material_input__WEBPACK_IMPORTED_MODULE_21__["MatInputModule"], _angular_material_button__WEBPACK_IMPORTED_MODULE_22__["MatButtonModule"], _angular_material_select__WEBPACK_IMPORTED_MODULE_23__["MatSelectModule"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardModule"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_24__["MatDialogModule"], _angular_material_table__WEBPACK_IMPORTED_MODULE_25__["MatTableModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["ReactiveFormsModule"], ngx_toastr__WEBPACK_IMPORTED_MODULE_27__["ToastrModule"], _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_29__["FontAwesomeModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_30__["MatTooltipModule"]]
        });
      })();
      /*@__PURE__*/
  
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AppModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            declarations: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"], _components_add_post_add_post_component__WEBPACK_IMPORTED_MODULE_4__["AddPostComponent"], _components_view_posts_view_posts_component__WEBPACK_IMPORTED_MODULE_5__["ViewPostsComponent"], _change_time_pipe__WEBPACK_IMPORTED_MODULE_10__["ChangeTimePipe"], _components_sign_in_sign_in_component__WEBPACK_IMPORTED_MODULE_11__["SignInComponent"], _components_sign_up_sign_up_component__WEBPACK_IMPORTED_MODULE_12__["SignUpComponent"], _components_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_13__["HomePageComponent"]],
            imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_6__["MatSlideToggleModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_28__["BrowserAnimationsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClientModule"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__["MatIconModule"], _angular_material_grid_list__WEBPACK_IMPORTED_MODULE_16__["MatGridListModule"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_18__["MatTabsModule"], _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_19__["MatToolbarModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_20__["MatFormFieldModule"], _angular_material_input__WEBPACK_IMPORTED_MODULE_21__["MatInputModule"], _angular_material_button__WEBPACK_IMPORTED_MODULE_22__["MatButtonModule"], _angular_material_select__WEBPACK_IMPORTED_MODULE_23__["MatSelectModule"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardModule"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_24__["MatDialogModule"], _angular_material_table__WEBPACK_IMPORTED_MODULE_25__["MatTableModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["ReactiveFormsModule"], ngx_toastr__WEBPACK_IMPORTED_MODULE_27__["ToastrModule"].forRoot(), _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_29__["FontAwesomeModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_30__["MatTooltipModule"]],
            providers: [_services_post_service__WEBPACK_IMPORTED_MODULE_8__["PostService"], _services_user_service__WEBPACK_IMPORTED_MODULE_14__["UserService"], _auth_user_guard__WEBPACK_IMPORTED_MODULE_26__["AuthGuardService"]],
            bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"]]
          }]
        }], null, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/auth/user.guard.ts":
    /*!************************************!*\
      !*** ./src/app/auth/user.guard.ts ***!
      \************************************/
  
    /*! exports provided: AuthGuardService */
  
    /***/
    function srcAppAuthUserGuardTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "AuthGuardService", function () {
        return AuthGuardService;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  
      var AuthGuardService = /*#__PURE__*/function () {
        function AuthGuardService(userService, router) {
          _classCallCheck(this, AuthGuardService);
  
          this.userService = userService;
          this.router = router;
        }
  
        _createClass(AuthGuardService, [{
          key: "canActivate",
          value: function canActivate() {
            if (!this.userService.isLoggedIn()) {
              this.router.navigate(['home']);
              return false;
            }
  
            return true;
          }
        }]);
  
        return AuthGuardService;
      }();
  
      AuthGuardService.ɵfac = function AuthGuardService_Factory(t) {
        return new (t || AuthGuardService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_services_user_service__WEBPACK_IMPORTED_MODULE_1__["UserService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]));
      };
  
      AuthGuardService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: AuthGuardService,
        factory: AuthGuardService.ɵfac
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AuthGuardService, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: _services_user_service__WEBPACK_IMPORTED_MODULE_1__["UserService"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/change-time.pipe.ts":
    /*!*************************************!*\
      !*** ./src/app/change-time.pipe.ts ***!
      \*************************************/
  
    /*! exports provided: ChangeTimePipe */
  
    /***/
    function srcAppChangeTimePipeTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "ChangeTimePipe", function () {
        return ChangeTimePipe;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  
      var ChangeTimePipe = /*#__PURE__*/function () {
        function ChangeTimePipe() {
          _classCallCheck(this, ChangeTimePipe);
        }
  
        _createClass(ChangeTimePipe, [{
          key: "transform",
          value: function transform(value) {
            var newValue = Number(value);
            if (newValue == 12) return newValue.toString();
            newValue -= 12;
            return newValue.toString();
          }
        }]);
  
        return ChangeTimePipe;
      }();
  
      ChangeTimePipe.ɵfac = function ChangeTimePipe_Factory(t) {
        return new (t || ChangeTimePipe)();
      };
  
      ChangeTimePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "changeTime",
        type: ChangeTimePipe,
        pure: true
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ChangeTimePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'changeTime'
          }]
        }], null, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/components/add-post/add-post.component.ts":
    /*!***********************************************************!*\
      !*** ./src/app/components/add-post/add-post.component.ts ***!
      \***********************************************************/
  
    /*! exports provided: AddPostComponent */
  
    /***/
    function srcAppComponentsAddPostAddPostComponentTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "AddPostComponent", function () {
        return AddPostComponent;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @fortawesome/free-solid-svg-icons */
      "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
      /* harmony import */
  
  
      var _services_post_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../services/post.service */
      "./src/app/services/post.service.ts");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../../services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ngx-toastr */
      "./node_modules/ngx-toastr/__ivy_ngcc__/fesm2015/ngx-toastr.js");
      /* harmony import */
  
  
      var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/toolbar */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/toolbar.js");
      /* harmony import */
  
  
      var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/material/button */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
      /* harmony import */
  
  
      var _angular_material_card__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/material/card */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
      /* harmony import */
  
  
      var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/forms */
      "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
      /* harmony import */
  
  
      var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/common */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
      /* harmony import */
  
  
      var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/material/slide-toggle */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/slide-toggle.js");
      /* harmony import */
  
  
      var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! @fortawesome/angular-fontawesome */
      "./node_modules/@fortawesome/angular-fontawesome/__ivy_ngcc__/fesm2015/angular-fontawesome.js");
      /* harmony import */
  
  
      var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! @angular/material/tooltip */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tooltip.js");
  
      function AddPostComponent_div_13_div_6_fa_icon_7_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "fa-icon", 22);
        }
  
        if (rf & 2) {
          var ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", ctx_r7.faExclamationTriangle);
        }
      }
  
      function AddPostComponent_div_13_div_6_div_8_fa_icon_7_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "fa-icon", 22);
        }
  
        if (rf & 2) {
          var ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", ctx_r12.faExclamationTriangle);
        }
      }
  
      function AddPostComponent_div_13_div_6_div_8_Template(rf, ctx) {
        if (rf & 1) {
          var _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 17, 23);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_div_8_Template_input_ngModelChange_1_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r13.values[i_r2][1] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " - ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 17, 24);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_div_8_Template_input_ngModelChange_4_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r16.highValues[i_r2][1] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "fa-icon", 25);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddPostComponent_div_13_div_6_div_8_Template_fa_icon_click_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r18.removeHours(i_r2);
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AddPostComponent_div_13_div_6_div_8_fa_icon_7_Template, 1, 1, "fa-icon", 20);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  
          var _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
  
          var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
          var ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input2+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r8.values[i_r2][1]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input3+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r8.highValues[i_r2][1]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", ctx_r8.faTrashAlt);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (_r10.errors == null ? null : _r10.errors.pattern) && _r10.touched || (_r11.errors == null ? null : _r11.errors.pattern) && _r11.touched || !ctx_r8.checkValidEndTime(ctx_r8.values[i_r2][1], ctx_r8.highValues[i_r2][1]));
        }
      }
  
      function AddPostComponent_div_13_div_6_div_9_fa_icon_7_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "fa-icon", 22);
        }
  
        if (rf & 2) {
          var ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", ctx_r23.faExclamationTriangle);
        }
      }
  
      function AddPostComponent_div_13_div_6_div_9_Template(rf, ctx) {
        if (rf & 1) {
          var _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 17, 26);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_div_9_Template_input_ngModelChange_1_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r24.values[i_r2][2] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " - ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 17, 27);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_div_9_Template_input_ngModelChange_4_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r27.highValues[i_r2][2] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "fa-icon", 25);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddPostComponent_div_13_div_6_div_9_Template_fa_icon_click_6_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
            var ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r29.removeHours(i_r2);
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AddPostComponent_div_13_div_6_div_9_fa_icon_7_Template, 1, 1, "fa-icon", 20);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  
          var _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
  
          var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  
          var ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input4+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r9.values[i_r2][2]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input5+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r9.highValues[i_r2][2]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", ctx_r9.faTrashAlt);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (_r21.errors == null ? null : _r21.errors.pattern) && _r21.touched || (_r22.errors == null ? null : _r22.errors.pattern) && _r22.touched || !ctx_r9.checkValidEndTime(ctx_r9.values[i_r2][2], ctx_r9.highValues[i_r2][2]));
        }
      }
  
      function AddPostComponent_div_13_div_6_Template(rf, ctx) {
        if (rf & 1) {
          var _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 17, 18);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_Template_input_ngModelChange_2_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  
            var ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r32.values[i_r2][0] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " - ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 17, 19);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_div_6_Template_input_ngModelChange_5_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  
            var ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r35.highValues[i_r2][0] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AddPostComponent_div_13_div_6_fa_icon_7_Template, 1, 1, "fa-icon", 20);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, AddPostComponent_div_13_div_6_div_8_Template, 8, 6, "div", 21);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, AddPostComponent_div_13_div_6_div_9_Template, 8, 6, "div", 21);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
  
          var _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6);
  
          var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  
          var ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input0+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r3.values[i_r2][0]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "input1+", i_r2, "");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r3.highValues[i_r2][0]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (_r5.errors == null ? null : _r5.errors.pattern) && _r5.touched || (_r6.errors == null ? null : _r6.errors.pattern) && _r6.touched || !ctx_r3.checkValidEndTime(ctx_r3.values[i_r2][0], ctx_r3.highValues[i_r2][0]));
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.addMoreHours[i_r2] >= 1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.addMoreHours[i_r2] == 2);
        }
      }
  
      function AddPostComponent_div_13_div_7_Template(rf, ctx) {
        if (rf & 1) {
          var _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 28);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddPostComponent_div_13_div_7_Template_a_click_1_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40);
  
            var i_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  
            var ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r38.addHours(i_r2);
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "add hours");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      function AddPostComponent_div_13_Template(rf, ctx) {
        if (rf & 1) {
          var _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 10);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 11);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "mat-slide-toggle", 12);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AddPostComponent_div_13_Template_mat_slide_toggle_ngModelChange_5_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r42);
  
            var i_r2 = ctx.$implicit;
  
            var ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
            return ctx_r41.day[i_r2] = $event;
          });
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AddPostComponent_div_13_div_6_Template, 10, 7, "div", 13);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AddPostComponent_div_13_div_7_Template, 3, 0, "div", 14);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var i_r2 = ctx.$implicit;
  
          var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.dayName[i_r2]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "", i_r2, "+slider");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.day[i_r2]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.day[i_r2]);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.day[i_r2] && ctx_r1.addMoreHours[i_r2] < 2);
        }
      }
  
      var AddPostComponent = /*#__PURE__*/function () {
        function AddPostComponent(postService, router, userService, toastrService) {
          _classCallCheck(this, AddPostComponent);
  
          this.postService = postService;
          this.router = router;
          this.userService = userService;
          this.toastrService = toastrService;
          /* fab icons */
  
          this.faTrashAlt = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faTrashAlt"];
          this.faExclamationTriangle = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__["faExclamationTriangle"];
          this.PostArray = [];
          this.hoursString = '';
          /* number of iteration to generate components */
  
          this.boucle = [0, 1, 2, 3, 4, 5, 6];
          /* to dynamically generate the days of the week*/
  
          this.dayName = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
          this.selectedOption = ['', '', '', '', '', '', ''];
          /*array of active working days */
  
          this.day = [false, true, true, true, true, true, true];
          /* for starting hours */
  
          this.value = [];
          /* for ending hours */
  
          this.highValue = [];
          /* for extra working hours */
  
          this.values = [];
          this.highValues = [];
          /* the number of times we add extra working hours for each day */
  
          this.addMoreHours = [];
        }
  
        _createClass(AddPostComponent, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            this.initializeMatrix();
          }
          /* to intialise all the values */
  
        }, {
          key: "initializeMatrix",
          value: function initializeMatrix() {
            for (var i = 0; i < 7; i++) {
              this.addMoreHours[i] = 0;
              this.values[i] = [];
              this.highValues[i] = [];
  
              for (var j = 0; j < 3; j++) {
                this.values[i][j] = '07:00 am';
                this.highValues[i][j] = '09:00 pm';
              }
            }
          }
        }, {
          key: "onClick",
          value: function onClick() {
            var _this = this;
  
            this.addWorkingHours();
            console.log(this.PostArray);
            this.postService.createPost(this.PostArray).subscribe(function (data) {
              _this.PostArray = [];
  
              _this.showSuccess();
            }, function (err) {
              console.log(err);
            });
          }
        }, {
          key: "addWorkingHours",
          value: function addWorkingHours() {
            for (var i = 0; i < 7; i++) {
              if (this.day[i] == true) {
                this.newPost = {
                  day: this.dayName[i],
                  working_hours: []
                };
  
                if (this.addMoreHours[i] == 0) {
                  this.hoursString = this.values[i][0] + '-' + this.highValues[i][0];
                  this.newPost.working_hours.push(this.hoursString);
                  this.PostArray.push(this.newPost);
                } else if (this.addMoreHours[i] == 1) {
                  this.hoursString = this.values[i][0] + '-' + this.highValues[i][0];
                  this.newPost.working_hours.push(this.hoursString);
                  this.hoursString = this.values[i][1] + '-' + this.highValues[i][1];
                  this.newPost.working_hours.push(this.hoursString);
                  this.PostArray.push(this.newPost);
                } else {
                  this.hoursString = this.values[i][0] + '-' + this.highValues[i][0];
                  this.newPost.working_hours.push(this.hoursString);
                  this.hoursString = this.values[i][1] + '-' + this.highValues[i][1];
                  this.newPost.working_hours.push(this.hoursString);
                  this.hoursString = this.values[i][2] + '-' + this.highValues[i][2];
                  this.newPost.working_hours.push(this.hoursString);
                  this.PostArray.push(this.newPost);
                }
              }
            }
          }
        }, {
          key: "getDay",
          value: function getDay(i) {
            switch (i) {
              case 0:
                {
                  return 'sunday';
                }
  
              case 1:
                {
                  return 'monday';
                }
  
              case 2:
                {
                  return 'tuesday';
                }
  
              case 3:
                {
                  return 'wednesday';
                }
  
              case 4:
                {
                  return 'thursday';
                }
  
              case 5:
                {
                  return 'friday';
                }
  
              case 6:
                {
                  return 'saturday';
                }
            }
          }
          /* to add or remove extra hours */
  
        }, {
          key: "addHours",
          value: function addHours(param) {
            this.addMoreHours[param]++;
          }
        }, {
          key: "removeHours",
          value: function removeHours(param) {
            this.addMoreHours[param]--;
          }
          /* to make comparison between starting hours and ending ones */
  
        }, {
          key: "checkValidEndTime",
          value: function checkValidEndTime(start, end) {
            if (start.slice(6) == 'am' && end.slice(6) == 'pm') return true;else if (start.slice(6) == 'pm' && end.slice(6) == 'am') return false;else if (start.slice(0, 5) < end.slice(0, 5)) return true;else if (start.slice(0, 5) > end.slice(0, 5)) return false;
            return false;
          }
        }, {
          key: "logout",
          value: function logout() {
            this.userService.deleteToken();
            this.router.navigateByUrl('/home');
          }
        }, {
          key: "showSuccess",
          value: function showSuccess() {
            this.toastrService.success('post added successfully', 'success', {
              timeOut: 2000
            });
          }
        }]);
  
        return AddPostComponent;
      }();
  
      AddPostComponent.ɵfac = function AddPostComponent_Factory(t) {
        return new (t || AddPostComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_post_service__WEBPACK_IMPORTED_MODULE_2__["PostService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_4__["UserService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]));
      };
  
      AddPostComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: AddPostComponent,
        selectors: [["app-add-post"]],
        decls: 17,
        vars: 2,
        consts: [["color", "primary", 1, ".navbar"], [1, "spacer"], ["mat-button", "", "routerLink", "/viewposts", "routerLinkActive", "active"], ["mat-button", "", 3, "click"], [1, "container", "d-flex", "justify-content-center"], [3, "ngSubmit"], ["workingHoursForm", "ngForm"], ["class", "row align-items-center", 4, "ngFor", "ngForOf"], ["mat-button", "", "id", "submit", 3, "disabled"], [1, "row", "align-items-center"], [1, "col-3"], [1, "col-2"], ["color", "primary", 3, "ngModel", "name", "ngModelChange"], ["class", "col-5 d-flex flex-column", 4, "ngIf"], ["class", "col-2", 4, "ngIf"], [1, "col-5", "d-flex", "flex-column"], [1, "p-2"], ["type", "text", "maxlength", "8", "required", "", "pattern", "(0[0-9]|1[0-2]):[0-5][0-9] [ap]m", 3, "ngModel", "name", "ngModelChange"], ["input", "ngModel"], ["input1", "ngModel"], ["matTooltip", "time form invalid or end time > start time", "class", "p-1", "style", "color: #a94442;", 3, "icon", 4, "ngIf"], ["class", "p-2", 4, "ngIf"], ["matTooltip", "time form invalid or end time > start time", 1, "p-1", 2, "color", "#a94442", 3, "icon"], ["input2", "ngModel"], ["input3", "ngModel"], [1, "p-1", 3, "icon", "click"], ["input4", "ngModel"], ["input5", "ngModel"], ["color", "primary", 3, "click"]],
        template: function AddPostComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-toolbar", 0);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Add Working hours");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Posts");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "a", 3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddPostComponent_Template_a_click_6_listener() {
              return ctx.logout();
            });
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Logout");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "mat-card");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "mat-card-content");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "form", 5, 6);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function AddPostComponent_Template_form_ngSubmit_11_listener() {
              return ctx.onClick();
            });
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, AddPostComponent_div_13_Template, 8, 5, "div", 7);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 8);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Submit ");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "mat-card-actions");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }
  
          if (rf & 2) {
            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.boucle);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !_r0.form.valid);
          }
        },
        directives: [_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_6__["MatToolbar"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatAnchor"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkWithHref"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkActive"], _angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgForm"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCardActions"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_11__["MatSlideToggle"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["PatternValidator"], _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_12__["FaIconComponent"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_13__["MatTooltip"]],
        styles: ["mat-card[_ngcontent-%COMP%] {\n  width: 80%;\n}\n\n#submit[_ngcontent-%COMP%] {\n  width: 100%;\n  background: #e7008a;\n}\n\n#viewPosts[_ngcontent-%COMP%] {\n  background: #e7008a;\n}\n\nh1[_ngcontent-%COMP%] {\n  color: white;\n  position: absolute;\n  top: 5%;\n  left: 25%;\n  z-index: 2;\n  font-size: 30px;\n}\n\n.row[_ngcontent-%COMP%] {\n  height: 140px;\n  border: 1px solid #e7008a;\n  margin: 3px;\n  padding: 10px;\n}\n\n.container_row[_ngcontent-%COMP%] {\n  display: grid;\n}\n\n.layer1[_ngcontent-%COMP%], .layer2[_ngcontent-%COMP%] {\n  grid-column: 1;\n  grid-row: 1;\n}\n\n.layer1[_ngcontent-%COMP%] {\n  z-index: 1;\n}\n\n.layer2[_ngcontent-%COMP%] {\n  z-index: 2;\n  text-align: center;\n  margin-top: 60px;\n}\n\na[_ngcontent-%COMP%] {\n  color: white;\n  text-decoration: none;\n  cursor: pointer;\n}\n\ndiv[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  color: #ff6bff;\n}\n\nnav[_ngcontent-%COMP%] {\n  z-index: 0;\n  padding: 10px;\n}\n\nnav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] {\n  list-style-type: none;\n  float: right;\n}\n\nnav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  float: left;\n}\n\nnav[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  color: white;\n  padding: 0 30px;\n  z-index: 1;\n  cursor: pointer;\n}\n\n.navbar[_ngcontent-%COMP%] {\n  justify-content: space-between;\n}\n\nspan[_ngcontent-%COMP%] {\n  padding-right: 1rem;\n}\n\nmat-card[_ngcontent-%COMP%] {\n  margin: 30px;\n}\n\n.spacer[_ngcontent-%COMP%] {\n  flex: 1 1 auto;\n}\n\ninput[_ngcontent-%COMP%] {\n  width: 100px;\n}\n\n\n\nmat-slide-toggle[_ngcontent-%COMP%] {\n  transform: scale(1.5);\n}\n\n.ng-valid[required][_ngcontent-%COMP%], .ng-valid.required[_ngcontent-%COMP%] {\n  border-left: 5px solid #42a948;\n  \n}\n\n.ng-invalid[_ngcontent-%COMP%]:not(form) {\n  border-left: 5px solid #a94442;\n  \n}\n\nfa-icon[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZGQtcG9zdC9DOlxcVXNlcnNcXG1vaGFuXFxEZXNrdG9wXFxkb3VibGVcXHdvcmtpbmctaG91cnMvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkZC1wb3N0XFxhZGQtcG9zdC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZGQtcG9zdC9hZGQtcG9zdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFVBQUE7QUNDRjs7QURDQTtFQUNFLFdBQUE7RUFDQSxtQkFBQTtBQ0VGOztBREFBO0VBQ0UsbUJBQUE7QUNHRjs7QUREQTtFQUNFLFlBQUE7RUFDQSxrQkFBQTtFQUNBLE9BQUE7RUFDQSxTQUFBO0VBQ0EsVUFBQTtFQUNBLGVBQUE7QUNJRjs7QURGQTtFQUNFLGFBQUE7RUFDQSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxhQUFBO0FDS0Y7O0FERkE7RUFDRSxhQUFBO0FDS0Y7O0FERkE7O0VBRUUsY0FBQTtFQUNBLFdBQUE7QUNLRjs7QURGQTtFQUNFLFVBQUE7QUNLRjs7QURIQTtFQUNFLFVBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FDTUY7O0FESkE7RUFDRSxZQUFBO0VBQ0EscUJBQUE7RUFDQSxlQUFBO0FDT0Y7O0FETEE7RUFDRSxjQUFBO0FDUUY7O0FETkE7RUFDRSxVQUFBO0VBRUEsYUFBQTtBQ1FGOztBRE5BO0VBQ0UscUJBQUE7RUFDQSxZQUFBO0FDU0Y7O0FEUEE7RUFDRSxXQUFBO0FDVUY7O0FEUkE7RUFDRSxZQUFBO0VBQ0EsZUFBQTtFQUNBLFVBQUE7RUFDQSxlQUFBO0FDV0Y7O0FEVEE7RUFDRSw4QkFBQTtBQ1lGOztBRFRBO0VBQ0UsbUJBQUE7QUNZRjs7QURWQTtFQUNFLFlBQUE7QUNhRjs7QURYQTtFQUNFLGNBQUE7QUNjRjs7QURaQTtFQUNFLFlBQUE7QUNlRjs7QURaQSxvQkFBQTs7QUFDQTtFQUNFLHFCQUFBO0FDZUY7O0FEWkE7O0VBRUUsOEJBQUE7RUFBZ0MsVUFBQTtBQ2dCbEM7O0FEYkE7RUFDRSw4QkFBQTtFQUFnQyxRQUFBO0FDaUJsQzs7QURmQTtFQUNFLGVBQUE7QUNrQkYiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2FkZC1wb3N0L2FkZC1wb3N0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsibWF0LWNhcmQge1xyXG4gIHdpZHRoOiA4MCU7XHJcbn1cclxuI3N1Ym1pdCB7XHJcbiAgd2lkdGg6IDEwMCU7XHJcbiAgYmFja2dyb3VuZDogI2U3MDA4YTtcclxufVxyXG4jdmlld1Bvc3RzIHtcclxuICBiYWNrZ3JvdW5kOiAjZTcwMDhhO1xyXG59XHJcbmgxIHtcclxuICBjb2xvcjogd2hpdGU7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIHRvcDogNSU7XHJcbiAgbGVmdDogMjUlO1xyXG4gIHotaW5kZXg6IDI7XHJcbiAgZm9udC1zaXplOiAzMHB4O1xyXG59XHJcbi5yb3cge1xyXG4gIGhlaWdodDogMTQwcHg7XHJcbiAgYm9yZGVyOiAxcHggc29saWQgI2U3MDA4YTtcclxuICBtYXJnaW46IDNweDtcclxuICBwYWRkaW5nOiAxMHB4O1xyXG59XHJcblxyXG4uY29udGFpbmVyX3JvdyB7XHJcbiAgZGlzcGxheTogZ3JpZDtcclxufVxyXG5cclxuLmxheWVyMSxcclxuLmxheWVyMiB7XHJcbiAgZ3JpZC1jb2x1bW46IDE7XHJcbiAgZ3JpZC1yb3c6IDE7XHJcbn1cclxuXHJcbi5sYXllcjEge1xyXG4gIHotaW5kZXg6IDE7XHJcbn1cclxuLmxheWVyMiB7XHJcbiAgei1pbmRleDogMjtcclxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgbWFyZ2luLXRvcDogNjBweDtcclxufVxyXG5hIHtcclxuICBjb2xvcjogd2hpdGU7XHJcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xyXG4gIGN1cnNvcjogcG9pbnRlcjtcclxufVxyXG5kaXYgYSB7XHJcbiAgY29sb3I6IHJnYigyNTUsIDEwNywgMjU1KTtcclxufVxyXG5uYXYge1xyXG4gIHotaW5kZXg6IDA7XHJcblxyXG4gIHBhZGRpbmc6IDEwcHg7XHJcbn1cclxubmF2IHVsIHtcclxuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XHJcbiAgZmxvYXQ6IHJpZ2h0O1xyXG59XHJcbm5hdiB1bCBsaSB7XHJcbiAgZmxvYXQ6IGxlZnQ7XHJcbn1cclxubmF2IHVsIGxpIGEge1xyXG4gIGNvbG9yOiB3aGl0ZTtcclxuICBwYWRkaW5nOiAwIDMwcHg7XHJcbiAgei1pbmRleDogMTtcclxuICBjdXJzb3I6IHBvaW50ZXI7XHJcbn1cclxuLm5hdmJhciB7XHJcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xyXG59XHJcblxyXG5zcGFuIHtcclxuICBwYWRkaW5nLXJpZ2h0OiAxcmVtO1xyXG59XHJcbm1hdC1jYXJkIHtcclxuICBtYXJnaW46IDMwcHg7XHJcbn1cclxuLnNwYWNlciB7XHJcbiAgZmxleDogMSAxIGF1dG87XHJcbn1cclxuaW5wdXQge1xyXG4gIHdpZHRoOiAxMDBweDtcclxufVxyXG5cclxuLyptYXQgc2xpZGVyIHN0eWxlICovXHJcbm1hdC1zbGlkZS10b2dnbGUge1xyXG4gIHRyYW5zZm9ybTogc2NhbGUoMS41KTtcclxufVxyXG5cclxuLm5nLXZhbGlkW3JlcXVpcmVkXSxcclxuLm5nLXZhbGlkLnJlcXVpcmVkIHtcclxuICBib3JkZXItbGVmdDogNXB4IHNvbGlkICM0MmE5NDg7IC8qIGdyZWVuICovXHJcbn1cclxuXHJcbi5uZy1pbnZhbGlkOm5vdChmb3JtKSB7XHJcbiAgYm9yZGVyLWxlZnQ6IDVweCBzb2xpZCAjYTk0NDQyOyAvKiByZWQgKi9cclxufVxyXG5mYS1pY29uIHtcclxuICBjdXJzb3I6IHBvaW50ZXI7XHJcbn1cclxuIiwibWF0LWNhcmQge1xuICB3aWR0aDogODAlO1xufVxuXG4jc3VibWl0IHtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQ6ICNlNzAwOGE7XG59XG5cbiN2aWV3UG9zdHMge1xuICBiYWNrZ3JvdW5kOiAjZTcwMDhhO1xufVxuXG5oMSB7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDUlO1xuICBsZWZ0OiAyNSU7XG4gIHotaW5kZXg6IDI7XG4gIGZvbnQtc2l6ZTogMzBweDtcbn1cblxuLnJvdyB7XG4gIGhlaWdodDogMTQwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNlNzAwOGE7XG4gIG1hcmdpbjogM3B4O1xuICBwYWRkaW5nOiAxMHB4O1xufVxuXG4uY29udGFpbmVyX3JvdyB7XG4gIGRpc3BsYXk6IGdyaWQ7XG59XG5cbi5sYXllcjEsXG4ubGF5ZXIyIHtcbiAgZ3JpZC1jb2x1bW46IDE7XG4gIGdyaWQtcm93OiAxO1xufVxuXG4ubGF5ZXIxIHtcbiAgei1pbmRleDogMTtcbn1cblxuLmxheWVyMiB7XG4gIHotaW5kZXg6IDI7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogNjBweDtcbn1cblxuYSB7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbmRpdiBhIHtcbiAgY29sb3I6ICNmZjZiZmY7XG59XG5cbm5hdiB7XG4gIHotaW5kZXg6IDA7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbm5hdiB1bCB7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgZmxvYXQ6IHJpZ2h0O1xufVxuXG5uYXYgdWwgbGkge1xuICBmbG9hdDogbGVmdDtcbn1cblxubmF2IHVsIGxpIGEge1xuICBjb2xvcjogd2hpdGU7XG4gIHBhZGRpbmc6IDAgMzBweDtcbiAgei1pbmRleDogMTtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ubmF2YmFyIHtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG5zcGFuIHtcbiAgcGFkZGluZy1yaWdodDogMXJlbTtcbn1cblxubWF0LWNhcmQge1xuICBtYXJnaW46IDMwcHg7XG59XG5cbi5zcGFjZXIge1xuICBmbGV4OiAxIDEgYXV0bztcbn1cblxuaW5wdXQge1xuICB3aWR0aDogMTAwcHg7XG59XG5cbi8qbWF0IHNsaWRlciBzdHlsZSAqL1xubWF0LXNsaWRlLXRvZ2dsZSB7XG4gIHRyYW5zZm9ybTogc2NhbGUoMS41KTtcbn1cblxuLm5nLXZhbGlkW3JlcXVpcmVkXSxcbi5uZy12YWxpZC5yZXF1aXJlZCB7XG4gIGJvcmRlci1sZWZ0OiA1cHggc29saWQgIzQyYTk0ODtcbiAgLyogZ3JlZW4gKi9cbn1cblxuLm5nLWludmFsaWQ6bm90KGZvcm0pIHtcbiAgYm9yZGVyLWxlZnQ6IDVweCBzb2xpZCAjYTk0NDQyO1xuICAvKiByZWQgKi9cbn1cblxuZmEtaWNvbiB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn0iXX0= */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AddPostComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-add-post',
            templateUrl: './add-post.component.html',
            styleUrls: ['./add-post.component.scss']
          }]
        }], function () {
          return [{
            type: _services_post_service__WEBPACK_IMPORTED_MODULE_2__["PostService"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]
          }, {
            type: _services_user_service__WEBPACK_IMPORTED_MODULE_4__["UserService"]
          }, {
            type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/components/home-page/home-page.component.ts":
    /*!*************************************************************!*\
      !*** ./src/app/components/home-page/home-page.component.ts ***!
      \*************************************************************/
  
    /*! exports provided: HomePageComponent */
  
    /***/
    function srcAppComponentsHomePageHomePageComponentTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "HomePageComponent", function () {
        return HomePageComponent;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_material_tabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/tabs */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/tabs.js");
      /* harmony import */
  
  
      var _sign_in_sign_in_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../sign-in/sign-in.component */
      "./src/app/components/sign-in/sign-in.component.ts");
      /* harmony import */
  
  
      var _sign_up_sign_up_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../sign-up/sign-up.component */
      "./src/app/components/sign-up/sign-up.component.ts");
  
      var HomePageComponent = /*#__PURE__*/function () {
        function HomePageComponent() {
          _classCallCheck(this, HomePageComponent);
        }
  
        _createClass(HomePageComponent, [{
          key: "ngOnInit",
          value: function ngOnInit() {}
        }]);
  
        return HomePageComponent;
      }();
  
      HomePageComponent.ɵfac = function HomePageComponent_Factory(t) {
        return new (t || HomePageComponent)();
      };
  
      HomePageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: HomePageComponent,
        selectors: [["app-home-page"]],
        decls: 13,
        vars: 0,
        consts: [[1, "container_row"], [1, "layer1"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 1440 320"], ["fill", "#e7008a", "fill-opacity", "1", "d", "M0,160L80,154.7C160,149,320,139,480,122.7C640,107,800,85,960,90.7C1120,96,1280,128,1360,144L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"], [1, "layer2", "text-light"], [1, "text-center", "container"], ["mat-align-tabs", "center"], ["label", "signIn"], ["label", "signUp"]],
        template: function HomePageComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "svg", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "path", 3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h1");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "working hours");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "mat-tab-group", 6);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "mat-tab", 7);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "app-sign-in");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "mat-tab", 8);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "app-sign-up");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }
        },
        directives: [_angular_material_tabs__WEBPACK_IMPORTED_MODULE_1__["MatTabGroup"], _angular_material_tabs__WEBPACK_IMPORTED_MODULE_1__["MatTab"], _sign_in_sign_in_component__WEBPACK_IMPORTED_MODULE_2__["SignInComponent"], _sign_up_sign_up_component__WEBPACK_IMPORTED_MODULE_3__["SignUpComponent"]],
        styles: ["svg[_ngcontent-%COMP%] {\n  transform: rotate(180deg);\n}\n\n.container_row[_ngcontent-%COMP%] {\n  display: grid;\n}\n\n.layer1[_ngcontent-%COMP%], .layer2[_ngcontent-%COMP%] {\n  grid-column: 1;\n  grid-row: 1;\n}\n\n.layer1[_ngcontent-%COMP%] {\n  z-index: 1;\n}\n\n.layer2[_ngcontent-%COMP%] {\n  z-index: 2;\n  text-align: center;\n  margin-top: 60px;\n}\n\nh1[_ngcontent-%COMP%] {\n  font-size: 60px;\n}\n\n.container[_ngcontent-%COMP%] {\n  border: 1px solid #e7008a;\n  border-radius: 10px;\n  width: 50%;\n  height: 500px;\n  padding: 20px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9ob21lLXBhZ2UvQzpcXFVzZXJzXFxtb2hhblxcRGVza3RvcFxcZG91YmxlXFx3b3JraW5nLWhvdXJzL3NyY1xcYXBwXFxjb21wb25lbnRzXFxob21lLXBhZ2VcXGhvbWUtcGFnZS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9ob21lLXBhZ2UvaG9tZS1wYWdlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7QUNDRjs7QURDQTtFQUNFLGFBQUE7QUNFRjs7QURDQTs7RUFFRSxjQUFBO0VBQ0EsV0FBQTtBQ0VGOztBRENBO0VBQ0UsVUFBQTtBQ0VGOztBREFBO0VBQ0UsVUFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7QUNHRjs7QUREQTtFQUNFLGVBQUE7QUNJRjs7QURGQTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7RUFDQSxVQUFBO0VBQ0EsYUFBQTtFQUNBLGFBQUE7QUNLRiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvaG9tZS1wYWdlL2hvbWUtcGFnZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInN2ZyB7XHJcbiAgdHJhbnNmb3JtOiByb3RhdGUoMTgwZGVnKTtcclxufVxyXG4uY29udGFpbmVyX3JvdyB7XHJcbiAgZGlzcGxheTogZ3JpZDtcclxufVxyXG5cclxuLmxheWVyMSxcclxuLmxheWVyMiB7XHJcbiAgZ3JpZC1jb2x1bW46IDE7XHJcbiAgZ3JpZC1yb3c6IDE7XHJcbn1cclxuXHJcbi5sYXllcjEge1xyXG4gIHotaW5kZXg6IDE7XHJcbn1cclxuLmxheWVyMiB7XHJcbiAgei1pbmRleDogMjtcclxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgbWFyZ2luLXRvcDogNjBweDtcclxufVxyXG5oMSB7XHJcbiAgZm9udC1zaXplOiA2MHB4O1xyXG59XHJcbi5jb250YWluZXIge1xyXG4gIGJvcmRlcjogMXB4IHNvbGlkICNlNzAwOGE7XHJcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcclxuICB3aWR0aDogNTAlO1xyXG4gIGhlaWdodDogNTAwcHg7XHJcbiAgcGFkZGluZzogMjBweDtcclxufVxyXG4iLCJzdmcge1xuICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xufVxuXG4uY29udGFpbmVyX3JvdyB7XG4gIGRpc3BsYXk6IGdyaWQ7XG59XG5cbi5sYXllcjEsXG4ubGF5ZXIyIHtcbiAgZ3JpZC1jb2x1bW46IDE7XG4gIGdyaWQtcm93OiAxO1xufVxuXG4ubGF5ZXIxIHtcbiAgei1pbmRleDogMTtcbn1cblxuLmxheWVyMiB7XG4gIHotaW5kZXg6IDI7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogNjBweDtcbn1cblxuaDEge1xuICBmb250LXNpemU6IDYwcHg7XG59XG5cbi5jb250YWluZXIge1xuICBib3JkZXI6IDFweCBzb2xpZCAjZTcwMDhhO1xuICBib3JkZXItcmFkaXVzOiAxMHB4O1xuICB3aWR0aDogNTAlO1xuICBoZWlnaHQ6IDUwMHB4O1xuICBwYWRkaW5nOiAyMHB4O1xufSJdfQ== */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HomePageComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-home-page',
            templateUrl: './home-page.component.html',
            styleUrls: ['./home-page.component.scss']
          }]
        }], function () {
          return [];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/components/sign-in/sign-in.component.ts":
    /*!*********************************************************!*\
      !*** ./src/app/components/sign-in/sign-in.component.ts ***!
      \*********************************************************/
  
    /*! exports provided: SignInComponent */
  
    /***/
    function srcAppComponentsSignInSignInComponentTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "SignInComponent", function () {
        return SignInComponent;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/forms */
      "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
      /* harmony import */
  
  
      var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ngx-toastr */
      "./node_modules/ngx-toastr/__ivy_ngcc__/fesm2015/ngx-toastr.js");
      /* harmony import */
  
  
      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/form-field */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
      /* harmony import */
  
  
      var _angular_material_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/input */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
      /* harmony import */
  
  
      var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/material/button */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
      /* harmony import */
  
  
      var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/common */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  
      function SignInComponent_mat_error_11_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "check your email and password!!");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      function SignInComponent_mat_error_12_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "user not found");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      var SignInComponent = /*#__PURE__*/function () {
        function SignInComponent(userService, router, toastrService) {
          _classCallCheck(this, SignInComponent);
  
          this.userService = userService;
          this.router = router;
          this.toastrService = toastrService;
          this.profileForm = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"]({
            email: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].email]),
            password: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])
          });
        }
  
        _createClass(SignInComponent, [{
          key: "ngOnInit",
          value: function ngOnInit() {// if (this.userService.isLoggedIn()) this.router.navigate(['/addpost']);
          }
        }, {
          key: "onSubmit",
          value: function onSubmit(form) {
            var _this2 = this;
  
            this.submitted = true;
            this.userService.login(form.value).subscribe(function (res) {
              _this2.userService.setToken(res['token']);
  
              _this2.showSuccess();
  
              _this2.goToDashboard();
            }, function (err) {
              if (err.error.statusCode == 500) _this2.showUserError();else _this2.showServerError();
            });
          }
        }, {
          key: "goToDashboard",
          value: function goToDashboard() {
            this.router.navigateByUrl('/addpost');
          }
        }, {
          key: "showSuccess",
          value: function showSuccess() {
            this.toastrService.success('you have signed in successfully', 'success', {
              timeOut: 2000
            });
          }
        }, {
          key: "showServerError",
          value: function showServerError() {
            this.toastrService.error('something went wrong check your password', 'server error', {
              timeOut: 3000
            });
          }
        }, {
          key: "showUserError",
          value: function showUserError() {
            this.toastrService.error('user does not exist', 'server error', {
              timeOut: 3000
            });
          }
        }]);
  
        return SignInComponent;
      }();
  
      SignInComponent.ɵfac = function SignInComponent_Factory(t) {
        return new (t || SignInComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]));
      };
  
      SignInComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: SignInComponent,
        selectors: [["app-sign-in"]],
        decls: 13,
        vars: 3,
        consts: [[3, "formGroup", "ngSubmit"], ["placeholder", "Email", "type", "email", "matInput", "", "formControlName", "email"], ["placeholder", "Password", "type", "password", "matInput", "", "formControlName", "password"], ["mat-button", "", "color", "accent", "type", "submit"], [4, "ngIf"]],
        template: function SignInComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 0);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function SignInComponent_Template_form_ngSubmit_0_listener() {
              return ctx.onSubmit(ctx.profileForm);
            });
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-form-field");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-label");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Email");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "mat-form-field");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-label");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Password");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Submit");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SignInComponent_mat_error_11_Template, 2, 0, "mat-error", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, SignInComponent_mat_error_12_Template, 2, 0, "mat-error", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }
  
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.profileForm);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.profileForm.valid && ctx.submitted);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.serverErrorMessages);
          }
        },
        directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_6__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatError"]],
        styles: ["mat-form-field[_ngcontent-%COMP%] {\n  width: 80%;\n  padding-top: 30px;\n}\n\nbutton[_ngcontent-%COMP%] {\n  width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaWduLWluL0M6XFxVc2Vyc1xcbW9oYW5cXERlc2t0b3BcXGRvdWJsZVxcd29ya2luZy1ob3Vycy9zcmNcXGFwcFxcY29tcG9uZW50c1xcc2lnbi1pblxcc2lnbi1pbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9zaWduLWluL3NpZ24taW4uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxVQUFBO0VBQ0EsaUJBQUE7QUNDRjs7QURDQTtFQUNFLFdBQUE7QUNFRiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2lnbi1pbi9zaWduLWluLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsibWF0LWZvcm0tZmllbGQge1xyXG4gIHdpZHRoOiA4MCU7XHJcbiAgcGFkZGluZy10b3A6IDMwcHg7XHJcbn1cclxuYnV0dG9uIHtcclxuICB3aWR0aDogMTAwJTtcclxufVxyXG4iLCJtYXQtZm9ybS1maWVsZCB7XG4gIHdpZHRoOiA4MCU7XG4gIHBhZGRpbmctdG9wOiAzMHB4O1xufVxuXG5idXR0b24ge1xuICB3aWR0aDogMTAwJTtcbn0iXX0= */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SignInComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-sign-in',
            templateUrl: './sign-in.component.html',
            styleUrls: ['./sign-in.component.scss']
          }]
        }], function () {
          return [{
            type: _services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]
          }, {
            type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/components/sign-up/sign-up.component.ts":
    /*!*********************************************************!*\
      !*** ./src/app/components/sign-up/sign-up.component.ts ***!
      \*********************************************************/
  
    /*! exports provided: SignUpComponent */
  
    /***/
    function srcAppComponentsSignUpSignUpComponentTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "SignUpComponent", function () {
        return SignUpComponent;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/forms */
      "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
      /* harmony import */
  
  
      var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ngx-toastr */
      "./node_modules/ngx-toastr/__ivy_ngcc__/fesm2015/ngx-toastr.js");
      /* harmony import */
  
  
      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/form-field */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
      /* harmony import */
  
  
      var _angular_material_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/input */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
      /* harmony import */
  
  
      var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/common */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
      /* harmony import */
  
  
      var _angular_material_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/material/button */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  
      function SignUpComponent_mat_error_5_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " name required ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      function SignUpComponent_mat_error_10_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " invalid email ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      function SignUpComponent_mat_error_15_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " password required ");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      function SignUpComponent_mat_error_18_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "server error try again");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
      }
  
      var SignUpComponent = /*#__PURE__*/function () {
        function SignUpComponent(userService, router, toastrService) {
          _classCallCheck(this, SignUpComponent);
  
          this.userService = userService;
          this.router = router;
          this.toastrService = toastrService;
          this.profileForm = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"]({
            email: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].email]),
            password: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
            name: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])
          });
        }
  
        _createClass(SignUpComponent, [{
          key: "ngOnInit",
          value: function ngOnInit() {}
        }, {
          key: "onSubmit",
          value: function onSubmit(form) {
            var _this3 = this;
  
            this.submitted = true;
            this.userService.createUser(form.value).subscribe(function (data) {
              _this3.showSuccess();
  
              form.reset();
            }, function (err) {
              if (err.error.statusCode == 500) _this3.showUserError();else _this3.showServerError();
            });
          }
        }, {
          key: "showSuccess",
          value: function showSuccess() {
            this.toastrService.success('you have signed up successfully', 'success', {
              timeOut: 2000
            });
          }
        }, {
          key: "showServerError",
          value: function showServerError() {
            this.toastrService.error('something went wrong', 'server error', {
              timeOut: 3000
            });
          }
        }, {
          key: "showUserError",
          value: function showUserError() {
            this.toastrService.error('user already exists', 'server error', {
              timeOut: 3000
            });
          }
        }, {
          key: "email",
          get: function get() {
            return this.profileForm.get('email');
          }
        }, {
          key: "name",
          get: function get() {
            return this.profileForm.get('name');
          }
        }, {
          key: "password",
          get: function get() {
            return this.profileForm.get('password');
          }
        }]);
  
        return SignUpComponent;
      }();
  
      SignUpComponent.ɵfac = function SignUpComponent_Factory(t) {
        return new (t || SignUpComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]));
      };
  
      SignUpComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: SignUpComponent,
        selectors: [["app-sign-up"]],
        decls: 19,
        vars: 5,
        consts: [[3, "formGroup", "ngSubmit"], ["placeholder", "Full Name", "type", "text", "matInput", "", "formControlName", "name"], [4, "ngIf"], ["placeholder", "Email", "type", "email", "matInput", "", "formControlName", "email"], ["placeholder", "Password", "type", "password", "matInput", "", "formControlName", "password"], ["mat-button", "", "color", "accent", "type", "submit"]],
        template: function SignUpComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 0);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function SignUpComponent_Template_form_ngSubmit_0_listener() {
              return ctx.profileForm.valid && ctx.onSubmit(ctx.profileForm);
            });
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-form-field");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-label");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Full Name");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SignUpComponent_mat_error_5_Template, 2, 0, "mat-error", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-form-field");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "mat-label");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Email");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, SignUpComponent_mat_error_10_Template, 2, 0, "mat-error", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "mat-form-field");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "mat-label");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Password");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, SignUpComponent_mat_error_15_Template, 2, 0, "mat-error", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Submit");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, SignUpComponent_mat_error_18_Template, 2, 0, "mat-error", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }
  
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.profileForm);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.name.invalid && ctx.name.touched);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.email.invalid && ctx.email.touched);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.password.invalid && ctx.password.touched);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.serverErrorMessages);
          }
        },
        directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_6__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_8__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatError"]],
        styles: ["mat-form-field[_ngcontent-%COMP%] {\n  width: 80%;\n  padding-top: 30px;\n}\n\nbutton[_ngcontent-%COMP%] {\n  width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaWduLXVwL0M6XFxVc2Vyc1xcbW9oYW5cXERlc2t0b3BcXGRvdWJsZVxcd29ya2luZy1ob3Vycy9zcmNcXGFwcFxcY29tcG9uZW50c1xcc2lnbi11cFxcc2lnbi11cC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9zaWduLXVwL3NpZ24tdXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxVQUFBO0VBQ0EsaUJBQUE7QUNDRjs7QURDQTtFQUNFLFdBQUE7QUNFRiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2lnbi11cC9zaWduLXVwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsibWF0LWZvcm0tZmllbGQge1xyXG4gIHdpZHRoOiA4MCU7XHJcbiAgcGFkZGluZy10b3A6IDMwcHg7XHJcbn1cclxuYnV0dG9uIHtcclxuICB3aWR0aDogMTAwJTtcclxufVxyXG4iLCJtYXQtZm9ybS1maWVsZCB7XG4gIHdpZHRoOiA4MCU7XG4gIHBhZGRpbmctdG9wOiAzMHB4O1xufVxuXG5idXR0b24ge1xuICB3aWR0aDogMTAwJTtcbn0iXX0= */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SignUpComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-sign-up',
            templateUrl: './sign-up.component.html',
            styleUrls: ['./sign-up.component.scss']
          }]
        }], function () {
          return [{
            type: _services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]
          }, {
            type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/components/view-posts/view-posts.component.ts":
    /*!***************************************************************!*\
      !*** ./src/app/components/view-posts/view-posts.component.ts ***!
      \***************************************************************/
  
    /*! exports provided: ViewPostsComponent */
  
    /***/
    function srcAppComponentsViewPostsViewPostsComponentTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "ViewPostsComponent", function () {
        return ViewPostsComponent;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _services_post_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../services/post.service */
      "./src/app/services/post.service.ts");
      /* harmony import */
  
  
      var _services_user_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../services/user.service */
      "./src/app/services/user.service.ts");
      /* harmony import */
  
  
      var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/router */
      "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
      /* harmony import */
  
  
      var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/toolbar */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/toolbar.js");
      /* harmony import */
  
  
      var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/button */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
      /* harmony import */
  
  
      var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/common */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
      /* harmony import */
  
  
      var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/material/card */
      "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  
      function ViewPostsComponent_div_9_mat_card_content_4_p_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var hours_r5 = ctx.$implicit;
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](hours_r5);
        }
      }
  
      function ViewPostsComponent_div_9_mat_card_content_4_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card-content");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "strong");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ViewPostsComponent_div_9_mat_card_content_4_p_3_Template, 2, 1, "p", 7);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var day_r3 = ctx.$implicit;
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", day_r3.day, " :");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", day_r3.working_hours);
        }
      }
  
      function ViewPostsComponent_div_9_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 6);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card-title");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " working hours");
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewPostsComponent_div_9_mat_card_content_4_Template, 4, 2, "mat-card-content", 7);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }
  
        if (rf & 2) {
          var post_r1 = ctx.$implicit;
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", post_r1.working_hours);
        }
      }
  
      var ViewPostsComponent = /*#__PURE__*/function () {
        function ViewPostsComponent(postService, userService, router) {
          _classCallCheck(this, ViewPostsComponent);
  
          this.postService = postService;
          this.userService = userService;
          this.router = router;
        }
  
        _createClass(ViewPostsComponent, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            this.readPosts();
          }
        }, {
          key: "readPosts",
          value: function readPosts() {
            var _this4 = this;
  
            this.postService.getPosts().subscribe(function (data) {
              _this4.posts = data;
              console.log(data);
            }, function (error) {
              console.log(error);
            });
          }
        }, {
          key: "logout",
          value: function logout() {
            this.userService.deleteToken();
            this.router.navigateByUrl('/home');
          }
        }]);
  
        return ViewPostsComponent;
      }();
  
      ViewPostsComponent.ɵfac = function ViewPostsComponent_Factory(t) {
        return new (t || ViewPostsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_post_service__WEBPACK_IMPORTED_MODULE_1__["PostService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]));
      };
  
      ViewPostsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: ViewPostsComponent,
        selectors: [["app-view-posts"]],
        decls: 10,
        vars: 1,
        consts: [["color", "primary", 1, ".navbar"], [1, "spacer"], ["mat-button", "", "routerLink", "/addpost", "routerLinkActive", "active"], ["mat-button", "", 3, "click"], [1, "row", "flex-row", "container"], ["class", "col-6 postCard", 4, "ngFor", "ngForOf"], [1, "col-6", "postCard"], [4, "ngFor", "ngForOf"]],
        template: function ViewPostsComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-toolbar", 0);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Add Working hours");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 1);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 2);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "addPost");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "a", 3);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewPostsComponent_Template_a_click_6_listener() {
              return ctx.logout();
            });
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Logout");
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 4);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewPostsComponent_div_9_Template, 5, 1, "div", 5);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }
  
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
  
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.posts);
          }
        },
        directives: [_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_4__["MatToolbar"], _angular_material_button__WEBPACK_IMPORTED_MODULE_5__["MatAnchor"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkWithHref"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkActive"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardTitle"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"]],
        styles: ["mat-card[_ngcontent-%COMP%] {\n  margin: 30px;\n}\n\nimg[_ngcontent-%COMP%] {\n  border-radius: 10px;\n  width: 100px;\n}\n\nmat-card-title[_ngcontent-%COMP%] {\n  color: #f15670;\n}\n\nstrong[_ngcontent-%COMP%] {\n  color: #4a4aff;\n}\n\nmat-card[_ngcontent-%COMP%] {\n  border: 1px solid #f15670;\n}\n\n.navbar[_ngcontent-%COMP%] {\n  justify-content: space-between;\n}\n\nspan[_ngcontent-%COMP%] {\n  padding-right: 1rem;\n}\n\nmat-card[_ngcontent-%COMP%] {\n  margin: 30px;\n}\n\n.spacer[_ngcontent-%COMP%] {\n  flex: 1 1 auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy92aWV3LXBvc3RzL0M6XFxVc2Vyc1xcbW9oYW5cXERlc2t0b3BcXGRvdWJsZVxcd29ya2luZy1ob3Vycy9zcmNcXGFwcFxcY29tcG9uZW50c1xcdmlldy1wb3N0c1xcdmlldy1wb3N0cy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy92aWV3LXBvc3RzL3ZpZXctcG9zdHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxZQUFBO0FDQ0Y7O0FEQ0E7RUFDRSxtQkFBQTtFQUNBLFlBQUE7QUNFRjs7QURBQTtFQUNFLGNBQUE7QUNHRjs7QUREQTtFQUNFLGNBQUE7QUNJRjs7QURGQTtFQUNFLHlCQUFBO0FDS0Y7O0FESEE7RUFDRSw4QkFBQTtBQ01GOztBREhBO0VBQ0UsbUJBQUE7QUNNRjs7QURKQTtFQUNFLFlBQUE7QUNPRjs7QURMQTtFQUNFLGNBQUE7QUNRRiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvdmlldy1wb3N0cy92aWV3LXBvc3RzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsibWF0LWNhcmQge1xyXG4gIG1hcmdpbjogMzBweDtcclxufVxyXG5pbWcge1xyXG4gIGJvcmRlci1yYWRpdXM6IDEwcHg7XHJcbiAgd2lkdGg6IDEwMHB4O1xyXG59XHJcbm1hdC1jYXJkLXRpdGxlIHtcclxuICBjb2xvcjogcmdiKDI0MSwgODYsIDExMik7XHJcbn1cclxuc3Ryb25nIHtcclxuICBjb2xvcjogcmdiKDc0LCA3NCwgMjU1KTtcclxufVxyXG5tYXQtY2FyZCB7XHJcbiAgYm9yZGVyOiAxcHggc29saWQgcmdiKDI0MSwgODYsIDExMik7XHJcbn1cclxuLm5hdmJhciB7XHJcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xyXG59XHJcblxyXG5zcGFuIHtcclxuICBwYWRkaW5nLXJpZ2h0OiAxcmVtO1xyXG59XHJcbm1hdC1jYXJkIHtcclxuICBtYXJnaW46IDMwcHg7XHJcbn1cclxuLnNwYWNlciB7XHJcbiAgZmxleDogMSAxIGF1dG87XHJcbn1cclxuIiwibWF0LWNhcmQge1xuICBtYXJnaW46IDMwcHg7XG59XG5cbmltZyB7XG4gIGJvcmRlci1yYWRpdXM6IDEwcHg7XG4gIHdpZHRoOiAxMDBweDtcbn1cblxubWF0LWNhcmQtdGl0bGUge1xuICBjb2xvcjogI2YxNTY3MDtcbn1cblxuc3Ryb25nIHtcbiAgY29sb3I6ICM0YTRhZmY7XG59XG5cbm1hdC1jYXJkIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2YxNTY3MDtcbn1cblxuLm5hdmJhciB7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuc3BhbiB7XG4gIHBhZGRpbmctcmlnaHQ6IDFyZW07XG59XG5cbm1hdC1jYXJkIHtcbiAgbWFyZ2luOiAzMHB4O1xufVxuXG4uc3BhY2VyIHtcbiAgZmxleDogMSAxIGF1dG87XG59Il19 */"]
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewPostsComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'app-view-posts',
            templateUrl: './view-posts.component.html',
            styleUrls: ['./view-posts.component.scss']
          }]
        }], function () {
          return [{
            type: _services_post_service__WEBPACK_IMPORTED_MODULE_1__["PostService"]
          }, {
            type: _services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/services/post.service.ts":
    /*!******************************************!*\
      !*** ./src/app/services/post.service.ts ***!
      \******************************************/
  
    /*! exports provided: PostService */
  
    /***/
    function srcAppServicesPostServiceTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "PostService", function () {
        return PostService;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common/http */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  
      var PostService = /*#__PURE__*/function () {
        function PostService(http) {
          _classCallCheck(this, PostService);
  
          this.http = http;
        }
  
        _createClass(PostService, [{
          key: "createPost",
          value: function createPost(post) {
            return this.http.post('post', post);
          }
        }, {
          key: "getPosts",
          value: function getPosts() {
            return this.http.get('post');
          }
        }]);
  
        return PostService;
      }();
  
      PostService.ɵfac = function PostService_Factory(t) {
        return new (t || PostService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]));
      };
  
      PostService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: PostService,
        factory: PostService.ɵfac,
        providedIn: 'root'
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PostService, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/app/services/user.service.ts":
    /*!******************************************!*\
      !*** ./src/app/services/user.service.ts ***!
      \******************************************/
  
    /*! exports provided: UserService */
  
    /***/
    function srcAppServicesUserServiceTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";
  
      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */
  
  
      __webpack_require__.d(__webpack_exports__, "UserService", function () {
        return UserService;
      });
      /* harmony import */
  
  
      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common/http */
      "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  
      var UserService = /*#__PURE__*/function () {
        function UserService(http) {
          _classCallCheck(this, UserService);
  
          this.http = http;
          this.selectedUser = {
            email: '',
            password: '',
            id: ''
          };
          this.noAuthHeader = {
            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({
              NoAuth: 'True'
            })
          };
        }
  
        _createClass(UserService, [{
          key: "createUser",
          value: function createUser(user) {
            return this.http.post('auth/signup', user);
          }
        }, {
          key: "login",
          value: function login(authCredentials) {
            return this.http.post('auth/login', authCredentials, this.noAuthHeader);
          }
        }, {
          key: "getUserProfile",
          value: function getUserProfile() {
            return this.http.get('getuser');
          } //token field
  
        }, {
          key: "setToken",
          value: function setToken(token) {
            localStorage.setItem('token', token);
          }
        }, {
          key: "getToken",
          value: function getToken() {
            return localStorage.getItem('token');
          }
        }, {
          key: "deleteToken",
          value: function deleteToken() {
            localStorage.removeItem('token');
          }
        }, {
          key: "getUserPayload",
          value: function getUserPayload() {
            var token = this.getToken();
  
            if (token) {
              var userPayload = atob(token.split('.')[1]);
              return JSON.parse(userPayload);
            } else return null;
          }
        }, {
          key: "isLoggedIn",
          value: function isLoggedIn() {
            var userPayload = this.getUserPayload();
            if (userPayload) return userPayload.exp > Date.now() / 1000;else return false;
          }
        }]);
  
        return UserService;
      }();
  
      UserService.ɵfac = function UserService_Factory(t) {
        return new (t || UserService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]));
      };
  
      UserService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: UserService,
        factory: UserService.ɵfac,
        providedIn: 'root'
      });
      /*@__PURE__*/
  
      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UserService, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]
          }];
        }, null);
      })();
      /***/
  
    },
  
    /***/
    "./src/environments/environment.ts":
    /*!*****************************************!*\
      !*** ./src/environments/environment.ts ***!
      \*****************************************/
  
    /*! exports provided: environment */
  
    /***/
    function srcEnvironmentsEnvironmentTs(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
      };
      /*
       * For easier debugging in development mode, you can import the following file
       * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
       *
       * This import should be commented out in production mode because it will have a negative impact
       * on performance if an error is thrown.
       */
      // import 'zone.js/dist/zone-error';  // Included with Angular CLI.
  
      /***/
    },
  
    /***/
    "./src/main.ts":
    /*!*********************!*\
      !*** ./src/main.ts ***!
      \*********************/
  
    /*! no exports provided */
  
    /***/
    function srcMainTs(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/__ivy_ngcc__/fesm2015/core.js");
      /* harmony import */
  
  
      var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./environments/environment */
      "./src/environments/environment.ts");
      /* harmony import */
  
  
      var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./app/app.module */
      "./src/app/app.module.ts");
      /* harmony import */
  
  
      var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/platform-browser */
      "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  
      if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].production) {
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
      }
  
      _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__["platformBrowser"]().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])["catch"](function (err) {
        return console.error(err);
      });
      /***/
  
    },
  
    /***/
    0:
    /*!***************************!*\
      !*** multi ./src/main.ts ***!
      \***************************/
  
    /*! no static exports found */
  
    /***/
    function _(module, exports, __webpack_require__) {
      module.exports = __webpack_require__(
      /*! C:\Users\mohan\Desktop\double\working-hours\src\main.ts */
      "./src/main.ts");
      /***/
    }
  }, [[0, "runtime", "vendor"]]]);
  //# sourceMappingURL=main-es5.js.map