{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"./footer.service\";\nimport * as i2 from \"../services/routerService\";\nimport * as i3 from \"@angular/common\";\n\nfunction FooterComponent_img_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 12);\n }\n}\n\nfunction FooterComponent_img_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 13);\n }\n}\n\nfunction FooterComponent_img_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 14);\n }\n}\n\nfunction FooterComponent_img_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 15);\n }\n}\n\nfunction FooterComponent_img_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 16);\n }\n}\n\nfunction FooterComponent_img_10_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 17);\n }\n}\n\nfunction FooterComponent_img_12_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 18);\n }\n}\n\nfunction FooterComponent_img_13_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 19);\n }\n}\n\nfunction FooterComponent_img_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 20);\n }\n}\n\nfunction FooterComponent_img_16_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"img\", 21);\n }\n}\n\nexport let FooterComponent = /*#__PURE__*/(() => {\n class FooterComponent {\n constructor(footerService, routerService) {\n this.footerService = footerService;\n this.routerService = routerService; // thumbArr:Array = ['footer_home.png', 'footer_leave.png', 'footer_flexi.png', 'footer_ODFPNR.png', 'footer_attendance.png'];\n //resetArr:Array = ['footer_home.png', 'footer_leave.png', 'footer_flexi.png', 'footer_ODFPNR.png', 'footer_attendance.png'];\n\n this.basePath = 'assets/images/';\n this.previousSelectedItem = '';\n this.selectedItemObject = {\n home: false,\n leave: false,\n flexi: false,\n odf: false,\n attendance: false\n };\n }\n\n ngOnInit() {}\n\n selectedItem(selectedItem) {\n if (this.previousSelectedItem.length > 0) {\n this.selectedItemObject[this.previousSelectedItem] = false;\n }\n\n switch (selectedItem) {\n case 'home':\n this.selectedItemObject.home = true;\n break;\n\n case 'leave':\n this.selectedItemObject.leave = true;\n break;\n\n case 'flexi':\n this.selectedItemObject.flexi = true;\n break;\n\n case 'odf':\n this.selectedItemObject.odf = true;\n break;\n\n case 'attendance':\n this.selectedItemObject.attendance = true;\n break;\n\n default:\n this.selectedItemObject.home = true;\n }\n\n this.footerService.saveSelectedScreen(selectedItem);\n this.routerService.navigate('dashboard');\n this.previousSelectedItem = selectedItem;\n }\n\n }\n\n FooterComponent.ɵfac = function FooterComponent_Factory(t) {\n return new (t || FooterComponent)(i0.ɵɵdirectiveInject(i1.FooterService), i0.ɵɵdirectiveInject(i2.RouterService));\n };\n\n FooterComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: FooterComponent,\n selectors: [[\"app-footer\"]],\n decls: 17,\n vars: 10,\n consts: [[\"id\", \"footer\", 1, \"common-footer\", \"font-body-xsmall\"], [1, \"sub-card\", 3, \"click\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_home.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_home_clicked.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_leave.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_leave_clicked.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_flexi.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_flexi_clicked.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_ODFPNR.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_ODFPNR_clicked.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_attendance.png\", 4, \"ngIf\"], [\"class\", \"footer-icons\", \"src\", \"assets/images/footer_attendance_clicked.png\", 4, \"ngIf\"], [\"src\", \"assets/images/footer_home.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_home_clicked.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_leave.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_leave_clicked.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_flexi.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_flexi_clicked.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_ODFPNR.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_ODFPNR_clicked.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_attendance.png\", 1, \"footer-icons\"], [\"src\", \"assets/images/footer_attendance_clicked.png\", 1, \"footer-icons\"]],\n template: function FooterComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"footer\", 0);\n i0.ɵɵelementStart(1, \"ul\");\n i0.ɵɵelementStart(2, \"li\", 1);\n i0.ɵɵlistener(\"click\", function FooterComponent_Template_li_click_2_listener() {\n return ctx.selectedItem(\"home\");\n });\n i0.ɵɵtemplate(3, FooterComponent_img_3_Template, 1, 0, \"img\", 2);\n i0.ɵɵtemplate(4, FooterComponent_img_4_Template, 1, 0, \"img\", 3);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(5, \"li\", 1);\n i0.ɵɵlistener(\"click\", function FooterComponent_Template_li_click_5_listener() {\n return ctx.selectedItem(\"leave\");\n });\n i0.ɵɵtemplate(6, FooterComponent_img_6_Template, 1, 0, \"img\", 4);\n i0.ɵɵtemplate(7, FooterComponent_img_7_Template, 1, 0, \"img\", 5);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(8, \"li\", 1);\n i0.ɵɵlistener(\"click\", function FooterComponent_Template_li_click_8_listener() {\n return ctx.selectedItem(\"flexi\");\n });\n i0.ɵɵtemplate(9, FooterComponent_img_9_Template, 1, 0, \"img\", 6);\n i0.ɵɵtemplate(10, FooterComponent_img_10_Template, 1, 0, \"img\", 7);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(11, \"li\", 1);\n i0.ɵɵlistener(\"click\", function FooterComponent_Template_li_click_11_listener() {\n return ctx.selectedItem(\"odf\");\n });\n i0.ɵɵtemplate(12, FooterComponent_img_12_Template, 1, 0, \"img\", 8);\n i0.ɵɵtemplate(13, FooterComponent_img_13_Template, 1, 0, \"img\", 9);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(14, \"li\", 1);\n i0.ɵɵlistener(\"click\", function FooterComponent_Template_li_click_14_listener() {\n return ctx.selectedItem(\"attendance\");\n });\n i0.ɵɵtemplate(15, FooterComponent_img_15_Template, 1, 0, \"img\", 10);\n i0.ɵɵtemplate(16, FooterComponent_img_16_Template, 1, 0, \"img\", 11);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemObject.home);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.selectedItemObject.home);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemObject.leave);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.selectedItemObject.leave);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemObject.flexi);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.selectedItemObject.flexi);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemObject.odf);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.selectedItemObject.odf);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemObject.attendance);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.selectedItemObject.attendance);\n }\n },\n directives: [i3.NgIf],\n styles: [\"var[_ngcontent-%COMP%] resource[_ngcontent-%COMP%]{}(function()[_ngcontent-%COMP%] {var __webpack_modules__ = ({112: (function() {throw new Error('Module build failed (from ./node_modules/sass-loader/dist/cjs.js):nSassError: expected \\\":\\\".n \\\\2577n52 \\\\2502 $clr-blackn \\\\2502 ^n \\\\2575n src/styles/variables/colors.scss 52:11 @importn src/styles/variables/index.scss 2:9 @importn src/styles.scss 1:9 @importn src/app/shared/footer/footer.component.scss 1:9 root stylesheet');})}); var __webpack_exports__ = {}; __webpack_modules__[112](); resource = __webpack_exports__;})()[_ngcontent-%COMP%]{}\"]\n });\n return FooterComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}