{"version":3,"file":"app-b4afe919.d152cf98c45d962fa693.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAGA;AAyBA;AAAA;AAvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AAKA;AAGA;AACA;AAIA;AAGA;AACA;AACA;AACA;AACA;AAIA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAEA;AAAA;AAYA;AAAA;AAGA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkBA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAcA;AAQA;AAXA;AACA;AA4EA;AACA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AA3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AAGA;AAIA;AAEA;AAEA;AAEA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAcA;AAQA;AAXA;AACA;AA4EA;AACA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AA3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AAGA;AAIA;AAEA;AAEA;AAEA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAgCA;AAQA;AAAA;AA7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAqBA;AACA;AAUA;AACA;AA+JA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AA1OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AAEA;AACA;AACA;AAGA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AAEA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AAIA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3eA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAwBA;AAQA;AAAA;AArBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsBA;AACA;AACA;AAbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AAEA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AAGA;AACA;AA1GA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AA6BA;AAQA;AAAA;AA1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAqBA;AACA;AAUA;AACA;AAmJA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AA9NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AAEA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA9bA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AA6BA;AAQA;AAAA;AA1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAqBA;AACA;AASA;AACA;AAsJA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAgBA;AACA;AACA;AACA;AACA;AACA;AAhOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AAEA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAIA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAGA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3bA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;ACxBA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://HRMSPortal/./src/components/changepassword/changepasswordcomponent.js","webpack://HRMSPortal/./src/components/confirmation/confirmationfeedbackform/confirmationfeedbackformcomponent.js","webpack://HRMSPortal/./src/components/confirmation/confirmationfeedbackformview/confirmationfeedbackformviewcomponent.js","webpack://HRMSPortal/./src/components/confirmation/confirmationreview/confirmationreviewcomponent.js","webpack://HRMSPortal/./src/components/confirmation/myperiodicreview/myperiodicreviewcomponent.js","webpack://HRMSPortal/./src/components/confirmation/peerreview/peerreviewcomponent.js","webpack://HRMSPortal/./src/components/confirmation/periodicreview/periodicreviewcomponent.js","webpack://HRMSPortal/./src/components/changepassword/changepasswordcomponent.html","webpack://HRMSPortal/./src/components/confirmation/confirmationfeedbackform/confirmationfeedbackformcomponent.html","webpack://HRMSPortal/./src/components/confirmation/confirmationfeedbackformview/confirmationfeedbackformviewcomponent.html","webpack://HRMSPortal/./src/components/confirmation/confirmationreview/confirmationreviewcomponent.html","webpack://HRMSPortal/./src/components/confirmation/myperiodicreview/myperiodicreviewcomponent.html","webpack://HRMSPortal/./src/components/confirmation/peerreview/peerreviewcomponent.html","webpack://HRMSPortal/./src/components/confirmation/periodicreview/periodicreviewcomponent.html"],"sourcesContent":["import {inject} from 'aurelia-dependency-injection';\r\nimport { EmployeeService } from '../../shared/services/employeeservice';\r\nimport {ValidationControllerFactory, ValidationRules} from 'aurelia-validation';\r\nimport {JwtService} from '../../shared/services/jwtservice';\r\nimport {Router} from 'aurelia-router';\r\nimport {LoginService} from \"../../shared/services/loginservice\";\r\n\r\n\r\n@inject(EmployeeService,ValidationControllerFactory,JwtService,Router,LoginService)\r\nexport class ChangePasswordComponent {\r\n currentPassword = '';\r\n newPassword = '';\r\n newPasswordFieldType = 'password';\r\n confirmPassword = '';\r\n errors = null;\r\n successMessage = false;\r\n showPassword = false;\r\n message;\r\n errorMessage;\r\n policy;\r\n currentError = '';\r\n newPassError = false;\r\n minLen;\r\n maxLen;\r\n upCaseIND;\r\n lowCaseIND;\r\n numIND;\r\n spcCharIND;\r\n passExpiry;\r\n wrongPassAttempts;\r\n wrongPassHrs;\r\n passConfigID;\r\n prevPass;\r\n constructor(employeeServices,controllerFactory,jwtService,router,loginservice){\r\n this.employeeServices = employeeServices;\r\n this.controller = controllerFactory.createForCurrentScope();\r\n this.jwtService = jwtService;\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n\r\n this.policy;\r\n \r\n }\r\n async attached() {\r\n const policy = await this.employeeServices.PassswordPolicy();\r\n this.minLen = policy.MinimumPasswordLength;\r\n this.maxLen = policy.MaximumPasswordLength;\r\n this.upCaseIND = policy.UpperCaseIND;\r\n this.lowCaseIND = policy.LowerCaseIND;\r\n this.numIND = policy.NumberIND;\r\n this.splCharIND = policy.SpecialCharIND;\r\n this.passExpiry = policy.PasswordExpiryDays;\r\n this.wrongPassAttempts = policy.WrongPasswordAttempts;\r\n this.wrongPassHrs = policy.WrongPasswordHours;\r\n this.passConfigID = policy.PasswordConfigurationID;\r\n this.prevPass = policy.PreviousPasswords;\r\n \r\n\r\n ValidationRules.customRule(\r\n 'passwordHistory',\r\n (value, currentPassword) => { \r\n //value !== currentPassword\r\n (newValue, _, currentPassword) => newValue !== this.currentPassword || !newValue\r\n },\r\n `\\${$displayName} must be different from the previous ${policy.PreviousPasswords} passwords.`,\r\n );\r\n\r\n\r\n ValidationRules.customRule(\r\n 'passwordAttempts',\r\n (value, obj) => {\r\n return obj.WrongPasswordAttempts <= policy.WrongPasswordAttempts;\r\n },\r\n `\\${$displayName} exceeded the maximum number of wrong password attempts (${policy.WrongPasswordAttempts}). Please try again in ${policy.WrongPasswordHours} hour(s).`,\r\n );\r\n\r\n ValidationRules.customRule(\r\n 'passwordExpiry',\r\n (value, obj) => {\r\n const today = new Date();\r\n const passwordDate = new Date(value);\r\n passwordDate.setDate(passwordDate.getDate() + policy.PasswordExpiryDays);\r\n return passwordDate >= today;\r\n },\r\n `\\${$displayName} has expired. please change your password.`,\r\n );\r\n\r\n ValidationRules.customRule(\r\n 'uppercase',\r\n (value, upcase) =>{\r\n const hasUpperCase = /[A-Z]/.test(value)\r\n if(upcase.upCaseIND === true){\r\n return hasUpperCase;\r\n }else{\r\n return true;\r\n }\r\n },\r\n 'New password must contain one Upper case.'\r\n );\r\n\r\n ValidationRules.customRule(\r\n 'lowercase',\r\n (value, lowcase) =>{\r\n const hasLowerCase = /[a-z]/.test(value);\r\n if(lowcase.lowCaseIND === true){\r\n return hasLowerCase;\r\n }else{\r\n return true;\r\n }\r\n },\r\n 'New password must contain lower uppercase.'\r\n );\r\n\r\n ValidationRules.customRule(\r\n 'number',\r\n (value, numInd) =>{\r\n const hasNumber = /\\d/.test(value)\r\n if(numInd.numIND === true){\r\n return hasNumber;\r\n }else{\r\n return true;\r\n }\r\n },\r\n 'New password must contain one number.'\r\n );\r\n\r\n\r\n ValidationRules.customRule(\r\n 'specialChar',\r\n (value, splInd) =>{\r\n const hasSpecialChar = /[!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]/.test(value)\r\n if(splInd.splCharIND === true){\r\n return hasSpecialChar;\r\n }else{\r\n return true;\r\n }\r\n },\r\n 'New password must contain one special character.'\r\n ); \r\n \r\n ValidationRules\r\n .ensure('currentPassword').required().withMessage(\"Current password is required.\")\r\n // .then().satisfiesRule('passwordAttempts',this.currentPassword)\r\n .ensure('newPassword').required().withMessage(\"New password is required.\")\r\n .minLength(this.minLen).withMessage(`New password must be at least ${this.minLen} characters.`)\r\n .maxLength(this.maxLen).withMessage(`New password must be at least ${this.maxLen} characters.`)\r\n .then()\r\n .satisfiesRule('specialChar', this.splCharIND)\r\n .then()\r\n .satisfiesRule('number', this.numIND)\r\n .then()\r\n .satisfiesRule('uppercase', this.upCaseIND)\r\n .then()\r\n .satisfiesRule('lowercase',this.lowCaseIND)\r\n // .satisfiesRule('passwordHistory',this.currentPassword)\r\n .ensure('confirmPassword').required().then().withMessage(\"Confirm password is required.\").satisfies((value, object) => value === object.newPassword).withMessage(\"Confirm password is not matching.\")\r\n .on(this);\r\n }\r\n\r\n changePassword(){ \r\n this.errors = null;\r\n this.controller.validate()\r\n .then(result => {\r\n if (result.valid) {\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.newPassError = false;\r\n const inputField = document.getElementById(\"newPassword\");\r\n inputField.style.borderColor = \"white\";\r\n var newPassData = {\r\n \"OldPassword\": this.currentPassword,\r\n \"ChangePassword\": this.newPassword,\r\n \"EmployeeId\": this.empid,\r\n };\r\n this.employeeServices.VerifyCurrentPassword(this.currentPassword,this.empid).then(response => {\r\n if(response === false){\r\n console.log(response);\r\n ValidationRules\r\n this.errorMessage = 'Please enter your current password correctly';\r\n ValidationRules\r\n .ensure('currentPassword').required()\r\n .ensure('newPassword').required()\r\n .minLength(this.minLen)\r\n .maxLength(this.maxLen)\r\n .then()\r\n .satisfiesRule('specialChar', this.splCharIND)\r\n .then()\r\n .satisfiesRule('number', this.numIND)\r\n .then()\r\n .satisfiesRule('uppercase', this.upCaseIND)\r\n .then()\r\n .satisfiesRule('lowercase',this.lowCaseIND)\r\n .ensure('confirmPassword').required()\r\n .then()\r\n .satisfies((value, object) => value === object.newPassword)\r\n .withMessage(\"Confirm Password is not matching.\")\r\n .on(this); \r\n this.currentPassword = '';\r\n setTimeout(()=>{this.errorMessage=null},3000);\r\n }else{\r\n this.employeeServices.ChangeEmployeePassword(newPassData);\r\n this.currentPassword = '';\r\n this.newPassword = '';\r\n this.confirmPassword = '';\r\n this.message = 'Password successfully changed';\r\n setTimeout(()=>{this.message=null},3000);\r\n }\r\n })\r\n .catch(promise => {\r\n promise.then(err => this.errors = err.errors)\r\n }); \r\n }\r\n })\r\n }\r\n\r\n back(){\r\n this.router.navigateToRoute('dashboard');\r\n }\r\n\r\n togglePassword() {\r\n this.newPasswordFieldType = (this.newPasswordFieldType === 'password') ? 'text' : 'password';\r\n }\r\n }\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport flatpickr from \"flatpickr\";\r\nimport { Viewtimeoffrequestcomponent } from \"../../leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class ConfirmationFeedbackFormComponent {\r\n\r\n isDropdownOpen = false;\r\n showEmployeeDropdown = false;\r\n \r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n \r\n activate(reviewData) {\r\n this.params = reviewData;\r\n this.ActionName = this.params.ActionName,\r\n this.Name = this.params.Name,\r\n this.DOJText = this.params.DOJText\r\n this.Designation=this.params.Designation,\r\n this.ReportingManagerName=this.params.ReportingManagerName,\r\n this.ExpectedStatusChangedDateText=this.params.ExpectedStatusChangedDateText\r\n this.DepartmentName=this.params.DepartmentName,\r\n this.EmployeeClassificationName=this.params.EmployeeClassificationName,\r\n this.EmployeeID=this.params.EmployeeID,\r\n this.EmployeeStatusId=this.params.EmployeeStatusId\r\n console.log(reviewData);\r\n \r\n}\r\n\r\n attached()\r\n {\r\n this.ConfirmationService.getLeaveDetails(this.EmployeeID\r\n ).then((data) => {\r\n this.getLeaveDetails = data;\r\n console.log(data);\r\n \r\n });\r\n \r\n this.ConfirmationService.getPeriodicReviewView(this.EmployeeStatusId,this.EmployeeID\r\n ).then((data) => {\r\n this.getPeriodicViewDetails = data.MyPeriodicList;\r\n console.log(data);\r\n \r\n });\r\n\r\n this.ConfirmationService.getConfirmationFeedbackView(this.EmployeeStatusId,this.EmployeeID\r\n ).then((data) => {\r\n this.getConfirmationFeedbackView = data.ConfirmationFeedbackList;\r\n console.log(data);\r\n \r\n });\r\n }\r\n\r\n toggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const isDropdownOpen = employee.showDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n if (!isDropdownOpen) {\r\n employee.showDropdown = true;\r\n employee.timeoffshowDropdown = false;\r\n document.addEventListener(\"click\", this.closeDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n closeDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeDropdown);\r\n };\r\n viewToggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const timeoffisDropdownOpen = employee.timeoffshowDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n if (!timeoffisDropdownOpen) {\r\n employee.timeoffshowDropdown = true;\r\n employee.showDropdown = false;\r\n document.addEventListener(\"click\", this.viewcloseDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n viewcloseDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.timeoffcloseDropdown);\r\n };\r\n closeEmployeetoggle() {\r\n this.filteredEmployees.forEach((item) => {\r\n item.showEmployeeDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeEmployeetoggle);\r\n }\r\n \r\n cancel(){\r\n this.router.navigateToRoute('confirmationreview');\r\n }\r\n \r\n}\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport flatpickr from \"flatpickr\";\r\nimport { Viewtimeoffrequestcomponent } from \"../../leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class ConfirmationFeedbackFormViewComponent {\r\n\r\n isDropdownOpen = false;\r\n showEmployeeDropdown = false;\r\n \r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n \r\n activate(reviewData) {\r\n this.params = reviewData;\r\n this.ActionName = this.params.ActionName,\r\n this.Name = this.params.Name,\r\n this.DOJText = this.params.DOJText\r\n this.Designation=this.params.Designation,\r\n this.ReportingManagerName=this.params.ReportingManagerName,\r\n this.ExpectedStatusChangedDateText=this.params.ExpectedStatusChangedDateText\r\n this.DepartmentName=this.params.DepartmentName,\r\n this.EmployeeClassificationName=this.params.EmployeeClassificationName,\r\n this.EmployeeID=this.params.EmployeeID,\r\n this.EmployeeStatusId=this.params.EmployeeStatusId\r\n console.log(reviewData);\r\n \r\n}\r\n\r\n attached()\r\n {\r\n this.ConfirmationService.getLeaveDetails(this.EmployeeID\r\n ).then((data) => {\r\n this.getLeaveDetails = data;\r\n console.log(data);\r\n \r\n });\r\n \r\n this.ConfirmationService.getPeriodicReviewView(this.EmployeeStatusId,this.EmployeeID\r\n ).then((data) => {\r\n this.getPeriodicViewDetails = data.MyPeriodicList;\r\n console.log(data);\r\n \r\n });\r\n\r\n this.ConfirmationService.getConfirmationFeedbackView(this.EmployeeStatusId,this.EmployeeID\r\n ).then((data) => {\r\n this.getConfirmationFeedbackView = data.ConfirmationFeedbackList;\r\n console.log(data);\r\n \r\n });\r\n }\r\n\r\n toggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const isDropdownOpen = employee.showDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n if (!isDropdownOpen) {\r\n employee.showDropdown = true;\r\n employee.timeoffshowDropdown = false;\r\n document.addEventListener(\"click\", this.closeDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n closeDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeDropdown);\r\n };\r\n viewToggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const timeoffisDropdownOpen = employee.timeoffshowDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n if (!timeoffisDropdownOpen) {\r\n employee.timeoffshowDropdown = true;\r\n employee.showDropdown = false;\r\n document.addEventListener(\"click\", this.viewcloseDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n viewcloseDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.timeoffcloseDropdown);\r\n };\r\n closeEmployeetoggle() {\r\n this.filteredEmployees.forEach((item) => {\r\n item.showEmployeeDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeEmployeetoggle);\r\n }\r\n \r\n cancel(){\r\n this.router.navigateToRoute('confirmationreview');\r\n }\r\n \r\n}\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport flatpickr from \"flatpickr\";\r\nimport { Viewtimeoffrequestcomponent } from \"../../leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class ConfirmationReviewComponent {\r\n @bindable selectedOption = \"\";\r\n isDropdownOpen = false;\r\n selectedStatus = \"ACT\";\r\n GetAllEmployeesNames = [];\r\n defaultToDate;\r\n defaultFromDate;\r\n pageSize = config.grid_PazeSize;\r\n showEmployeeDropdown = false;\r\n selectedRecordId = null;\r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId = constants.ConfirmationReviewSiteMapid;\r\n EmployeeConfirmationDetails = [];\r\n\r\n statusOptions = [\r\n { label: \"All\", value: \"All\", checked: false },\r\n { label: \"Pending with me\", value: \"PEAM\", checked: true },\r\n { label: \"Pending confirmation\", value: \"SUB\", checked: true },\r\n { label: \"Confirmed\", value: \"CNF\", checked: false },\r\n { label: \"Extended Probation\", value: \"EPP\", checked: false },\r\n { label: \"Terminated\", value: \"TER\", checked: false },\r\n ];\r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n filters = [\r\n {\r\n value: \"\",\r\n keys: [\r\n \"Name\",\r\n \"EmployeeCode\",\r\n \"EmployeeClassificationName\",\r\n \"DepartmentName\",\r\n \"PositionLevelName\",\r\n \"ReportingManagerName\",\r\n \"DOJText\",\r\n \"ExpectedStatusChangedDateText\",\r\n ],\r\n },\r\n ];\r\n async attached() {\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n const fromDate = new Date();\r\n fromDate.setMonth(fromDate.getMonth() - 12);\r\n this.FDate = fromDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.From = this.FDate;\r\n const toDate = new Date();\r\n toDate.setMonth(toDate.getMonth() + 3);\r\n this.TDate = toDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.To = this.TDate;\r\n flatpickr(this.FromdatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: fromDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.FromDate = dateStr;\r\n },\r\n });\r\n this.FromcalendarIcon.addEventListener(\"click\", () => {\r\n this.FromdatePicker._flatpickr.open();\r\n });\r\n flatpickr(this.TodatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: toDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.default = dateStr;\r\n },\r\n });\r\n this.TocalendarIcon.addEventListener(\"click\", () => {\r\n this.TodatePicker._flatpickr.open();\r\n });\r\n const selectedRadio = document.querySelector(\r\n 'input[name=\"employees\"]:checked'\r\n );\r\n this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n const selectedStatusList = this.statusOptions\r\n .filter((status) => status.checked)\r\n .map((status) => status.value);\r\n const reviewData = {\r\n Fromdate: this.From,\r\n Todate: this.To,\r\n EmployeeStatus: this.selectedValue,\r\n StatusList: selectedStatusList,\r\n LoggedInEmployeeId: this.empid,\r\n // Department: this.departmentId,\r\n };\r\n\r\n this.isLoading = true;\r\n this.ConfirmationService.getEmployeeConfirmationDetails(\r\n reviewData.LoggedInEmployeeId,\r\n reviewData.Fromdate,\r\n reviewData.Todate\r\n ).then((data) => {\r\n this.EmployeeConfirmationDetails = data.EmployeeList;\r\n console.log(data.EmployeeList);\r\n console.log(this.EmployeeConfirmationDetails.EmployeeName);\r\n this.isLoading = false;\r\n });\r\n // this.ConfirmationService.getEmployeeConfirmationDetails(reviewData).then(data=>\r\n // {\r\n // this.EmployeeConfirmationDetails = data.List;\r\n // console.log(this.EmployeeConfirmationDetails );\r\n // this.defaultToDate = this.EmployeeConfirmationDetails.Todate;\r\n // this.defaultFromDate = this.EmployeeConfirmationDetails.Fromdate;\r\n // this.isLoading = false;\r\n\r\n // });\r\n\r\n this.ConfirmationService.DepartmentDropdown(this.empid, \"ACT\").then(\r\n (data) => {\r\n this.departments = data;\r\n console.log(this.departments);\r\n }\r\n );\r\n\r\n this.ConfirmationService.EmployeeClassDropdown().then((data) => {\r\n this.employeeclasses = data;\r\n //console.log(this.employeeclasses)\r\n });\r\n\r\n this.ConfirmationService.GetAllEmployeeDetails(\"ACT\", this.empid).then(\r\n (GetAllEmployees) => {\r\n this.GetAllEmployees = GetAllEmployees;\r\n }\r\n );\r\n sessionStorage.removeItem(\"activeTab\");\r\n await this.ConfirmationService.GetPersonFavoriteItems(\r\n this.empid,\r\n this.sitemapId\r\n ).then((data1) => {\r\n this.FavoritesExist = data1;\r\n console.log(data1);\r\n console.log(this.FavoritesExist);\r\n });\r\n\r\n this.addToRecentItems();\r\n console.log(this.FavoritesExist);\r\n }\r\n selectOption(option) {\r\n this.selectedOption = option;\r\n this.isDropdownOpen = false;\r\n }\r\n selectAllChanged(event) {\r\n const isChecked = this.statusOptions[0].checked;\r\n this.statusOptions.forEach((status, index) => {\r\n if (index !== 0) {\r\n status.checked = isChecked;\r\n }\r\n });\r\n }\r\n handleCheckboxChange(event, status) {\r\n if (status.value === \"All\") {\r\n this.statusOptions.forEach((statusOption, index) => {\r\n if (index !== 0) {\r\n statusOption.checked = false;\r\n }\r\n });\r\n } else {\r\n const allChecked = this.statusOptions\r\n .slice(1)\r\n .every((statusOption) => statusOption.checked);\r\n this.statusOptions[0].checked = allChecked;\r\n }\r\n }\r\n async displayEmployeess(event) {\r\n this.showEmployeeDropdown = true;\r\n const statusVal = event.target.value;\r\n this.leavemanagementService\r\n .DepartmentDropdown(this.empid, statusVal)\r\n .then((data) => {\r\n this.departments = data;\r\n console.log(this.departments);\r\n });\r\n }\r\n\r\n employeeOutsideClick = (event) => {\r\n const dropdownContainer = document.getElementById(\"dropdown-menu\");\r\n const inputElement = document.getElementsByName(\"name\")[0];\r\n if (\r\n !dropdownContainer.contains(event.target) &&\r\n event.target !== inputElement\r\n ) {\r\n this.showEmployeeDropdown = false;\r\n this.filteredEmployees = [];\r\n document.removeEventListener(\"click\", this.employeeOutsideClick);\r\n }\r\n };\r\n toggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const isDropdownOpen = employee.showDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n if (!isDropdownOpen) {\r\n employee.showDropdown = true;\r\n employee.timeoffshowDropdown = false;\r\n document.addEventListener(\"click\", this.closeDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n closeDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeDropdown);\r\n };\r\n viewToggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const timeoffisDropdownOpen = employee.timeoffshowDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n if (!timeoffisDropdownOpen) {\r\n employee.timeoffshowDropdown = true;\r\n employee.showDropdown = false;\r\n document.addEventListener(\"click\", this.viewcloseDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n viewcloseDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.timeoffcloseDropdown);\r\n };\r\n closeEmployeetoggle() {\r\n this.filteredEmployees.forEach((item) => {\r\n item.showEmployeeDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeEmployeetoggle);\r\n }\r\n showDialog(leaveAppId, photopath) {\r\n const viewdata = {\r\n leaveId: leaveAppId,\r\n EmployeePic: photopath,\r\n };\r\n this.dialogService.open({\r\n viewModel: Viewtimeoffrequestcomponent,\r\n model: viewdata,\r\n });\r\n }\r\n cancel() {\r\n this.controller.cancel();\r\n }\r\n\r\n // Submitfeeback() {\r\n // this.router.navigateToRoute('confirmationfeedbackform');\r\n // }\r\n\r\n Submitfeeback(ActionName,Name,DOJText,Designation,ReportingManagerName,ExpectedStatusChangedDateText,DepartmentName,EmployeeClassificationName,EmployeeID,EmployeeStatusId) {\r\n const reviewData = {\r\n ActionName: ActionName,\r\n Name:Name,\r\n DOJText:DOJText,\r\n Designation:Designation,\r\n ReportingManagerName:ReportingManagerName,\r\n ExpectedStatusChangedDateText:ExpectedStatusChangedDateText,\r\n DepartmentName:DepartmentName,\r\n EmployeeClassificationName:EmployeeClassificationName,\r\n EmployeeID:EmployeeID, \r\n EmployeeStatusId:EmployeeStatusId \r\n };\r\n const queryString = new URLSearchParams(reviewData).toString();\r\n const reviewURL = `/#/confirmationfeedbackform?${queryString}`;\r\n window.location.href = reviewURL;\r\n}\r\n\r\nViewfeeback(ActionName,Name,DOJText,Designation,ReportingManagerName,ExpectedStatusChangedDateText,DepartmentName,EmployeeClassificationName,EmployeeID,EmployeeStatusId){\r\n\r\n const reviewData = {\r\n ActionName: ActionName,\r\n Name:Name,\r\n DOJText:DOJText,\r\n Designation:Designation,\r\n ReportingManagerName:ReportingManagerName,\r\n ExpectedStatusChangedDateText:ExpectedStatusChangedDateText,\r\n DepartmentName:DepartmentName,\r\n EmployeeClassificationName:EmployeeClassificationName,\r\n EmployeeID:EmployeeID, \r\n EmployeeStatusId:EmployeeStatusId \r\n};\r\nconst queryString = new URLSearchParams(reviewData).toString();\r\nconst reviewURL = `/#/confirmationfeedbackformview?${queryString}`;\r\nwindow.location.href = reviewURL;\r\n}\r\n\r\n\r\n searchEmpConfirmationDetails() {\r\n const filterOpenElements = document.querySelectorAll(\".filter-open\");\r\n filterOpenElements.forEach((element) =>\r\n element.classList.remove(\"filter-open\")\r\n );\r\n // const selectedStatusLists = this.selectedStatuses.map(status => status.value);\r\n const selectedStatusList = this.statusOptions\r\n .filter((status) => status.checked)\r\n .map((status) => status.value);\r\n\r\n const finalToDate = this.ToDate ? this.ToDate : this.defaultToDate;\r\n const finalFromDate = this.FromDate ? this.FromDate : this.defaultFromDate;\r\n console.log(finalToDate);\r\n const selectedRadio = document.querySelector(\r\n 'input[name=\"employees\"]:checked'\r\n );\r\n this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n const confirmationData = {\r\n Fromdate: finalFromDate,\r\n Todate: finalToDate,\r\n EmployeeStatus: this.selectedValue,\r\n StatusList: selectedStatusList.includes(\"All\")\r\n ? [\"All\"]\r\n : selectedStatusList.filter((status) => status !== \"All\"),\r\n DepartmentID: this.department,\r\n // EmployeeClassID: this.employeeclass,\r\n EmployeeID: this.empid,\r\n };\r\n this.isLoading = true;\r\n\r\n this.ConfirmationService.getEmployeeConfirmationList(confirmationData).then(\r\n (data) => {\r\n this.EmployeeConfirmationDetails = data.EmployeeList;\r\n this.isLoading = false;\r\n console.log(this.EmployeeConfirmationDetails);\r\n }\r\n );\r\n }\r\n exportData() {\r\n const data = this.EmployeeConfirmationDetails;\r\n const filename = \"confirmation review list\";\r\n this.exportToExcel(data, filename);\r\n }\r\n\r\n exportToExcel(data, filename) {\r\n const requiredColumns = [\r\n \"Employee name\",\r\n // \"Employee code\",\r\n // \"Employee class\",\r\n \"Department\",\r\n \"Designation\",\r\n \"Reporting manager\",\r\n \"Date of joining\",\r\n \"Due date\",\r\n \"Status\",\r\n ];\r\n const filteredData = data.map((employee) => {\r\n return {\r\n \"Employee name\": employee.Name,\r\n // \"Employee code\": employee.EmployeeCode,\r\n // \"Employee class\": employee.EmployeeClassificationName,\r\n \"Department\": employee.DepartmentName,\r\n \"Designation\": employee.Designation,\r\n \"Reporting manager\": employee.ReportingManagerName,\r\n \"Date of joining\": employee.DOJText,\r\n \"Due date\": employee.ExpectedStatusChangedDateText,\r\n Status: employee.StatusText,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData, {\r\n header: requiredColumns,\r\n });\r\n const workbook = XLSX.utils.book_new();\r\n XLSX.utils.book_append_sheet(workbook, worksheet, \"Sheet 1\");\r\n XLSX.writeFile(workbook, `${filename}.xlsx`);\r\n }\r\n\r\n filterClick() {\r\n event.preventDefault();\r\n const clickedDiv = event.target.parentNode;\r\n clickedDiv.classList.toggle(\"filter-open\");\r\n // Remove 'filter-open' class from other divs\r\n const divs = document.querySelectorAll(\".filter-open\");\r\n divs.forEach((div) => {\r\n if (div !== clickedDiv) {\r\n div.classList.remove(\"filter-open\");\r\n }\r\n });\r\n const handleOutsideClick = (event) => {\r\n if (!clickedDiv.contains(event.target)) {\r\n divs.forEach((div) => {\r\n div.classList.remove(\"filter-open\");\r\n });\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n };\r\n\r\n if (clickedDiv.classList.contains(\"filter-open\")) {\r\n document.addEventListener(\"click\", handleOutsideClick);\r\n } else {\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n }\r\n\r\n addToFavourites() {\r\n this.ConfirmationService.AddToFavourites(this.empid, this.sitemapId).then(\r\n (data) => {\r\n window.location.reload();\r\n }\r\n );\r\n }\r\n\r\n addToRecentItems() {\r\n this.ConfirmationService.AddToRecentItems(this.empid, this.sitemapId).then(\r\n (data) => {\r\n // window.location.reload();\r\n }\r\n );\r\n }\r\n resetDepartmentDropdown() {\r\n this.department = \"\"; // Reset the selected department to empty value\r\n }\r\n resetEmployesDropdown() {\r\n this.employeeclass = \"\"; // Reset the selected department to empty value\r\n }\r\n resetStatusDropdown() {\r\n this.statusOptions.forEach((status, index) => {\r\n if (index === 1 || index === 2) {\r\n status.checked = true; // Select 'Pending approval' and 'Pending with me'\r\n } else {\r\n status.checked = false; // Deselect other statuses\r\n }\r\n });\r\n\r\n // Update the selectedStatusList if needed\r\n this.selectedStatusList = this.statusOptions.filter(\r\n (status) => status.checked\r\n );\r\n console.log(\"Hii\");\r\n this.attached();\r\n //console.log(this.selectedStatusList);\r\n }\r\n removeFilter(Allstatus, status) {\r\n if (status.label === \"All\") {\r\n this.statusOptions.forEach((option) => {\r\n option.checked = false;\r\n });\r\n } else {\r\n status.checked = false;\r\n }\r\n // this.statusOptions.forEach(status => {\r\n // status.checked = false;\r\n // });\r\n }\r\n get selectedStatuses() {\r\n return this.statusOptions.filter((status) => status.checked);\r\n }\r\n resetPage() {\r\n console.log(\"Hii\");\r\n this.attached();\r\n this.selectedStatus = \"ACT\";\r\n this.resetStatusDropdown();\r\n }\r\n}\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class MyPeriodicReviewComponent {\r\n @bindable selectedOption = \"\";\r\n isDropdownOpen = false;\r\n selectedStatus = \"ACT\";\r\n GetAllEmployeesNames = [];\r\n defaultToDate;\r\n defaultFromDate;\r\n pageSize = config.grid_PazeSize;\r\n showEmployeeDropdown = false;\r\n selectedRecordId = null;\r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId = constants.MyPeriodicReviewSiteMapid;\r\n MyperiodicReviewList = [];\r\n\r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n filters = [\r\n {\r\n value: \"\",\r\n keys: [\"ReviewerEmployeeName\", \"RequestDate\", \"DueDate\", \"CreatedDT\"],\r\n },\r\n ];\r\n async attached() {\r\n this.isLoading = true;\r\n\r\n this.ConfirmationService.getMyPeriodicReviewList(this.empid).then(\r\n (data) => {\r\n this.MyperiodicReviewList = data;\r\n console.log(data);\r\n }\r\n );\r\n this.isLoading = false;\r\n\r\n await this.ConfirmationService.GetPersonFavoriteItems(\r\n this.empid,\r\n this.sitemapId\r\n ).then((data1) => {\r\n this.FavoritesExist = data1;\r\n console.log(data1);\r\n console.log(this.FavoritesExist);\r\n });\r\n\r\n this.addToRecentItems();\r\n }\r\n exportData() {\r\n const data = this.MyperiodicReviewList;\r\n const filename = \"myperiodicreview\";\r\n this.exportToExcel(data, filename);\r\n }\r\n\r\n exportToExcel(data, filename) {\r\n const requiredColumns = [\r\n \"Reviewer name\",\r\n \"Reviewer period from\",\r\n \"Reviewer period to\",\r\n \"Reviewer date\",\r\n \"Status\",\r\n ];\r\n const filteredData = data.map((employee) => {\r\n return {\r\n \"Reviewer name\": employee.ReviewerEmployeeName,\r\n \"Reviewer period from\": employee.RequestDate,\r\n \"Reviewer period to\": employee.DueDate,\r\n \"Reviewer date\": employee.CreatedDT,\r\n Status: employee.StatusCode,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData, {\r\n header: requiredColumns,\r\n });\r\n const workbook = XLSX.utils.book_new();\r\n XLSX.utils.book_append_sheet(workbook, worksheet, \"Sheet 1\");\r\n XLSX.writeFile(workbook, `${filename}.xlsx`);\r\n }\r\n\r\n addToFavourites() {\r\n this.ConfirmationService.AddToFavourites(this.empid, this.sitemapId).then(\r\n (data) => {\r\n window.location.reload();\r\n }\r\n );\r\n }\r\n\r\n addToRecentItems() {\r\n this.ConfirmationService.AddToRecentItems(this.empid, this.sitemapId).then(\r\n (data) => {\r\n // window.location.reload();\r\n }\r\n );\r\n }\r\n}\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport flatpickr from \"flatpickr\";\r\nimport { Viewtimeoffrequestcomponent } from \"../../leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class PeerReviewComponent {\r\n @bindable selectedOption = \"\";\r\n isDropdownOpen = false;\r\n selectedStatus = \"ACT\";\r\n GetAllEmployeesNames = [];\r\n defaultToDate;\r\n defaultFromDate;\r\n pageSize = config.grid_PazeSize;\r\n showEmployeeDropdown = false;\r\n selectedRecordId = null;\r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId = constants.PeerReviewSiteMapid;\r\n GetPeerReviewDetailsList=[];\r\n\r\n statusOptions = [\r\n { label: \"All\", value: \"All\", checked: false },\r\n { label: \"Pending Approval\", value: \"PEAM\", checked: true },\r\n { label: \"Submitted\", value: \"CMP\", checked: false },\r\n ];\r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n filters = [\r\n {\r\n value: \"\",\r\n keys: [\r\n \"EmployeeName\",\r\n \"EmployeeCode\",\r\n \"EmployeeClassificationName\",\r\n \"ReportingManagerName\",\r\n \"RequestDateText\",\r\n \"ReviewerPersonName\",\r\n \"PositionPositionLevelName\",\r\n \"ReviewDueDate\",\r\n ],\r\n },\r\n ];\r\n async attached() {\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n const fromDate = new Date();\r\n fromDate.setMonth(fromDate.getMonth() - 12);\r\n this.FDate = fromDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.From = this.FDate;\r\n const toDate = new Date();\r\n toDate.setMonth(toDate.getMonth() + 6);\r\n this.TDate = toDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.To = this.TDate;\r\n flatpickr(this.FromdatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: fromDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.FromDate = dateStr;\r\n },\r\n });\r\n this.FromcalendarIcon.addEventListener(\"click\", () => {\r\n this.FromdatePicker._flatpickr.open();\r\n });\r\n flatpickr(this.TodatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: toDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.default = dateStr;\r\n },\r\n });\r\n this.TocalendarIcon.addEventListener(\"click\", () => {\r\n this.TodatePicker._flatpickr.open();\r\n });\r\n const selectedRadio = document.querySelector(\r\n 'input[name=\"employees\"]:checked'\r\n );\r\n this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n const selectedStatusList = this.statusOptions\r\n .filter((status) => status.checked)\r\n .map((status) => status.value);\r\n const peerReview = {\r\n Fromdate: this.From,\r\n Todate: this.To,\r\n // EmployeeStatus: this.selectedValue,\r\n StatusList: selectedStatusList,\r\n EmployeeID: this.empid,\r\n Department: this.departmentId,\r\n };\r\n\r\n this.isLoading = true;\r\n\r\n this.ConfirmationService.getPeerReviewList(peerReview.EmployeeID,peerReview.Fromdate,peerReview.Todate).then(data=>\r\n {\r\n this.GetPeerReviewDetailsList = data.EmployeeList;\r\n // this.defaultToDate = this.EmployeeTimeOffRequests.Todate;\r\n // this.defaultFromDate = this.EmployeeTimeOffRequests.Fromdate;\r\n this.isLoading = false;\r\n });\r\n this.ConfirmationService.DepartmentDropdown(this.empid, \"ACT\").then(\r\n (data) => {\r\n this.departments = data;\r\n console.log(this.departments);\r\n }\r\n );\r\n\r\n this.ConfirmationService.EmployeeClassDropdown().then((data) => {\r\n this.employeeclasses = data;\r\n //console.log(this.employeeclasses)\r\n });\r\n\r\n this.ConfirmationService.GetAllEmployeeDetails(\"ACT\", this.empid).then(\r\n (GetAllEmployees) => {\r\n this.GetAllEmployees = GetAllEmployees;\r\n }\r\n );\r\n sessionStorage.removeItem(\"activeTab\");\r\n await this.ConfirmationService.GetPersonFavoriteItems(\r\n this.empid,\r\n this.sitemapId\r\n ).then((data1) => {\r\n this.FavoritesExist = data1;\r\n console.log(data1);\r\n console.log(this.FavoritesExist);\r\n });\r\n\r\n this.addToRecentItems();\r\n console.log(this.FavoritesExist);\r\n }\r\n selectOption(option) {\r\n this.selectedOption = option;\r\n this.isDropdownOpen = false;\r\n }\r\n selectAllChanged(event) {\r\n const isChecked = this.statusOptions[0].checked;\r\n this.statusOptions.forEach((status, index) => {\r\n if (index !== 0) {\r\n status.checked = isChecked;\r\n }\r\n });\r\n }\r\n handleCheckboxChange(event, status) {\r\n if (status.value === \"All\") {\r\n this.statusOptions.forEach((statusOption, index) => {\r\n if (index !== 0) {\r\n statusOption.checked = false;\r\n }\r\n });\r\n } else {\r\n const allChecked = this.statusOptions\r\n .slice(1)\r\n .every((statusOption) => statusOption.checked);\r\n this.statusOptions[0].checked = allChecked;\r\n }\r\n }\r\n async displayEmployeess(event) {\r\n this.showEmployeeDropdown = true;\r\n const statusVal = event.target.value;\r\n this.leavemanagementService\r\n .DepartmentDropdown(this.empid, statusVal)\r\n .then((data) => {\r\n this.departments = data;\r\n console.log(this.departments);\r\n });\r\n }\r\n\r\n employeeOutsideClick = (event) => {\r\n const dropdownContainer = document.getElementById(\"dropdown-menu\");\r\n const inputElement = document.getElementsByName(\"name\")[0];\r\n if (\r\n !dropdownContainer.contains(event.target) &&\r\n event.target !== inputElement\r\n ) {\r\n this.showEmployeeDropdown = false;\r\n this.filteredEmployees = [];\r\n document.removeEventListener(\"click\", this.employeeOutsideClick);\r\n }\r\n };\r\n toggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const isDropdownOpen = employee.showDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n if (!isDropdownOpen) {\r\n employee.showDropdown = true;\r\n employee.timeoffshowDropdown = false;\r\n document.addEventListener(\"click\", this.closeDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n closeDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeDropdown);\r\n };\r\n viewToggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const timeoffisDropdownOpen = employee.timeoffshowDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n if (!timeoffisDropdownOpen) {\r\n employee.timeoffshowDropdown = true;\r\n employee.showDropdown = false;\r\n document.addEventListener(\"click\", this.viewcloseDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n viewcloseDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.timeoffcloseDropdown);\r\n };\r\n closeEmployeetoggle() {\r\n this.filteredEmployees.forEach((item) => {\r\n item.showEmployeeDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeEmployeetoggle);\r\n }\r\n showDialog(leaveAppId, photopath) {\r\n const viewdata = {\r\n leaveId: leaveAppId,\r\n EmployeePic: photopath,\r\n };\r\n this.dialogService.open({\r\n viewModel: Viewtimeoffrequestcomponent,\r\n model: viewdata,\r\n });\r\n }\r\n cancel() {\r\n this.controller.cancel();\r\n }\r\n // ApproveShowDialog(leaveAppId,StatusCode,EmployeeId, actions,photopath) {\r\n // const approveData = {\r\n // selectedRecordId : leaveAppId,\r\n // StatusCode : StatusCode,\r\n // EmployeeId:EmployeeId,\r\n // actions:actions,\r\n // PhotoPath : photopath,\r\n // };\r\n // this.dialogService.open({viewModel: ApproveTimeOffComponent, model: approveData});\r\n // }\r\n // searchPeerReviewDetails() {\r\n // const filterOpenElements = document.querySelectorAll(\".filter-open\");\r\n // filterOpenElements.forEach((element) =>\r\n // element.classList.remove(\"filter-open\")\r\n // );\r\n // // const selectedStatusLists = this.selectedStatuses.map(status => status.value);\r\n // const selectedStatusList = this.statusOptions\r\n // .filter((status) => status.checked)\r\n // .map((status) => status.value);\r\n\r\n // const finalToDate = this.ToDate ? this.ToDate : this.defaultToDate;\r\n // const finalFromDate = this.FromDate ? this.FromDate : this.defaultFromDate;\r\n // console.log(finalToDate);\r\n // const selectedRadio = document.querySelector(\r\n // 'input[name=\"employees\"]:checked'\r\n // );\r\n // this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n // const timeoff = {\r\n // Fromdate: finalFromDate,\r\n // Todate: finalToDate,\r\n // EmployeeStatus: this.selectedValue,\r\n // StatusList: selectedStatusList.includes(\"All\")\r\n // ? [\"All\"]\r\n // : selectedStatusList.filter((status) => status !== \"All\"),\r\n // DepartmentID: this.department,\r\n // EmployeeClassID: this.employeeclass,\r\n // LoggedInEmployeeId: this.empid,\r\n // };\r\n // this.isLoading = true;\r\n\r\n // this.leavemanagementService\r\n // .GetEmployeeTimeOffRequests(timeoff)\r\n // .then((data) => {\r\n // this.EmployeeTimeOffRequests = data.List;\r\n // this.isLoading = false;\r\n // //console.log(timeoff.EmployeeName);\r\n // console.log(this.EmployeeTimeOffRequests);\r\n // });\r\n // }\r\n exportData() {\r\n const data = this.GetPeerReviewDetailsList;\r\n const filename = \"peer review list\";\r\n this.exportToExcel(data, filename);\r\n }\r\n\r\n exportToExcel(data, filename) {\r\n const requiredColumns = [\r\n \"Employee name\",\r\n \"Employee code\",\r\n \"Employee class\",\r\n \"Department\",\r\n \"Position\",\r\n \"Reporting manager\",\r\n \"Review requested by\",\r\n \"Reviewer\",\r\n \"Reviewer date\",\r\n \"Status\",\r\n ];\r\n const filteredData = data.map((peerReview) => {\r\n return {\r\n \"Employee name\": peerReview.EmployeeName,\r\n \"Employee code\": peerReview.EmployeeCode,\r\n \"Employee class\": peerReview.EmployeeClassificationName,\r\n \"Department\": peerReview.DepartmentName,\r\n \"Position\": peerReview.PositionLevelName,\r\n \"Reporting manager\": peerReview.ReportingManagerName,\r\n \"Review requested by\": peerReview.RequestDateText,\r\n \"Reviewer\": peerReview.ReviewerPersonName,\r\n \"Reviewer date\": peerReview.ReviewDueDate,\r\n \"Status\": peerReview.StatusText,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData, {\r\n header: requiredColumns,\r\n });\r\n const workbook = XLSX.utils.book_new();\r\n XLSX.utils.book_append_sheet(workbook, worksheet, \"Sheet 1\");\r\n XLSX.writeFile(workbook, `${filename}.xlsx`);\r\n }\r\n\r\n filterClick() {\r\n event.preventDefault();\r\n const clickedDiv = event.target.parentNode;\r\n clickedDiv.classList.toggle(\"filter-open\");\r\n // Remove 'filter-open' class from other divs\r\n const divs = document.querySelectorAll(\".filter-open\");\r\n divs.forEach((div) => {\r\n if (div !== clickedDiv) {\r\n div.classList.remove(\"filter-open\");\r\n }\r\n });\r\n const handleOutsideClick = (event) => {\r\n if (!clickedDiv.contains(event.target)) {\r\n divs.forEach((div) => {\r\n div.classList.remove(\"filter-open\");\r\n });\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n };\r\n\r\n if (clickedDiv.classList.contains(\"filter-open\")) {\r\n document.addEventListener(\"click\", handleOutsideClick);\r\n } else {\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n }\r\n\r\n addToFavourites() {\r\n this.ConfirmationService.AddToFavourites(this.empid, this.sitemapId).then(\r\n (data) => {\r\n window.location.reload();\r\n }\r\n );\r\n }\r\n\r\n addToRecentItems() {\r\n this.ConfirmationService.AddToRecentItems(this.empid, this.sitemapId).then(\r\n (data) => {\r\n // window.location.reload();\r\n }\r\n );\r\n }\r\n resetDepartmentDropdown() {\r\n this.department = \"\"; // Reset the selected department to empty value\r\n }\r\n resetEmployesDropdown() {\r\n this.employeeclass = \"\"; // Reset the selected department to empty value\r\n }\r\n resetStatusDropdown() {\r\n this.statusOptions.forEach((status, index) => {\r\n if (index === 1 || index === 2) {\r\n status.checked = true; // Select 'Pending approval' and 'Pending with me'\r\n } else {\r\n status.checked = false; // Deselect other statuses\r\n }\r\n });\r\n\r\n // Update the selectedStatusList if needed\r\n this.selectedStatusList = this.statusOptions.filter(\r\n (status) => status.checked\r\n );\r\n console.log(\"Hii\");\r\n this.attached();\r\n //console.log(this.selectedStatusList);\r\n }\r\n removeFilter(Allstatus, status) {\r\n if (status.label === \"All\") {\r\n this.statusOptions.forEach((option) => {\r\n option.checked = false;\r\n });\r\n } else {\r\n status.checked = false;\r\n }\r\n // this.statusOptions.forEach(status => {\r\n // status.checked = false;\r\n // });\r\n }\r\n get selectedStatuses() {\r\n return this.statusOptions.filter((status) => status.checked);\r\n }\r\n resetPage() {\r\n console.log(\"Hii\");\r\n this.attached();\r\n this.selectedStatus = \"ACT\";\r\n this.resetStatusDropdown();\r\n }\r\n}\r\n","import { inject, bindable, autoinject } from \"aurelia-framework\";\r\nimport { Router } from \"aurelia-router\";\r\nimport { App } from \"../../../app\";\r\nimport { DialogService } from \"aurelia-dialog\";\r\nimport { JwtService } from \"../../../shared/services/jwtservice\";\r\nimport flatpickr from \"flatpickr\";\r\nimport { Viewtimeoffrequestcomponent } from \"../../leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent\";\r\nimport $ from \"jquery\";\r\nimport * as XLSX from \"xlsx\";\r\nimport { config } from \"../../../shared/services/config\";\r\nimport { constants } from \"../../../shared/services/constants\";\r\nimport { LoginService } from \"../../../shared/services/loginservice\";\r\nimport { ConfirmationService } from \"../../../shared/services/confirmationservice\";\r\n\r\n@inject(\r\n DialogService,\r\n Router,\r\n App,\r\n JwtService,\r\n LoginService,\r\n ConfirmationService\r\n)\r\n@autoinject()\r\nexport class PeriodicReviewComponent {\r\n @bindable selectedOption = \"\";\r\n isDropdownOpen = false;\r\n selectedStatus = \"ACT\";\r\n GetAllEmployeesNames = [];\r\n defaultToDate;\r\n defaultFromDate;\r\n pageSize = config.grid_PazeSize;\r\n showEmployeeDropdown = false;\r\n selectedRecordId = null;\r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId = constants.PeriodicReviewSiteMapid;\r\n GetEmployeePeriodicReviewList = [];\r\n\r\n statusOptions = [\r\n { label: \"All\", value: \"All\", checked: false },\r\n { label: \"Active\", value: \"PEAM\", checked: true },\r\n { label: \"Submitted\", value: \"CMP\", checked: false },\r\n ];\r\n constructor(\r\n dialogService,\r\n router,\r\n App,\r\n JwtService,\r\n loginservice,\r\n ConfirmationService,\r\n element\r\n ) {\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.app = App;\r\n this.jwtService = JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.element = element;\r\n this.loginservice = loginservice;\r\n this.ConfirmationService = ConfirmationService;\r\n }\r\n filters = [\r\n {\r\n value: \"\",\r\n keys: [\r\n \"EmployeeName\",\r\n \"EmployeeCode\",\r\n \"EmployeeClassificationName\",\r\n \"PositionLevelName\",\r\n \"ReportingManagerName\",\r\n \"RequestDateText\",\r\n \"DueDateText\",\r\n ],\r\n },\r\n ];\r\n async attached() {\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n const fromDate = new Date();\r\n fromDate.setMonth(fromDate.getMonth() - 3);\r\n this.FDate = fromDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.From = this.FDate;\r\n const toDate = new Date();\r\n toDate.setMonth(toDate.getMonth() + 3);\r\n this.TDate = toDate.toLocaleDateString().replace(/\\//g, \"-\");\r\n this.To = this.TDate;\r\n flatpickr(this.FromdatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: fromDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.FromDate = dateStr;\r\n },\r\n });\r\n this.FromcalendarIcon.addEventListener(\"click\", () => {\r\n this.FromdatePicker._flatpickr.open();\r\n });\r\n flatpickr(this.TodatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: \"d-m-Y\",\r\n minDate: null,\r\n maxDate: null,\r\n defaultDate: toDate,\r\n enableTime: false,\r\n enableSeconds: false,\r\n time_24hr: false,\r\n minuteIncrement: 1,\r\n hourIncrement: 1,\r\n timeFormat: \"h:i K\",\r\n clickOpens: false,\r\n onClose: function (selectedDates, dateStr, instance) {\r\n this.default = dateStr;\r\n },\r\n });\r\n this.TocalendarIcon.addEventListener(\"click\", () => {\r\n this.TodatePicker._flatpickr.open();\r\n });\r\n const selectedRadio = document.querySelector(\r\n 'input[name=\"employees\"]:checked'\r\n );\r\n this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n const selectedStatusList = this.statusOptions\r\n .filter((status) => status.checked)\r\n .map((status) => status.value);\r\n const empReview = {\r\n Fromdate: this.From,\r\n Todate: this.To,\r\n EmployeeStatus: this.selectedValue,\r\n StatusList: selectedStatusList,\r\n LoggedInEmployeeId: this.empid,\r\n // Department: this.departmentId,\r\n };\r\n\r\n this.isLoading = true;\r\n\r\n this.ConfirmationService.getEmployeePeriodicReviewList(\r\n empReview.LoggedInEmployeeId,\r\n empReview.Fromdate,\r\n empReview.Todate\r\n ).then((data) => {\r\n this.GetEmployeePeriodicReviewList = data.EmployeeList;\r\n // this.defaultToDate = this.EmployeeTimeOffRequests.Todate;\r\n // this.defaultFromDate = this.EmployeeTimeOffRequests.Fromdate;\r\n this.isLoading = false;\r\n });\r\n this.ConfirmationService.DepartmentDropdown(this.empid, \"ACT\").then(\r\n (data) => {\r\n this.departments = data;\r\n console.log(this.departments);\r\n }\r\n );\r\n\r\n this.ConfirmationService.EmployeeClassDropdown().then((data) => {\r\n this.employeeclasses = data;\r\n //console.log(this.employeeclasses)\r\n });\r\n\r\n this.ConfirmationService.GetAllEmployeeDetails(\"ACT\", this.empid).then(\r\n (GetAllEmployees) => {\r\n this.GetAllEmployees = GetAllEmployees;\r\n }\r\n );\r\n sessionStorage.removeItem(\"activeTab\");\r\n await this.ConfirmationService.GetPersonFavoriteItems(\r\n this.empid,\r\n this.sitemapId\r\n ).then((data1) => {\r\n this.FavoritesExist = data1;\r\n console.log(data1);\r\n console.log(this.FavoritesExist);\r\n });\r\n\r\n this.addToRecentItems();\r\n console.log(this.FavoritesExist);\r\n }\r\n selectOption(option) {\r\n this.selectedOption = option;\r\n this.isDropdownOpen = false;\r\n }\r\n selectAllChanged(event) {\r\n const isChecked = this.statusOptions[0].checked;\r\n this.statusOptions.forEach((status, index) => {\r\n if (index !== 0) {\r\n status.checked = isChecked;\r\n }\r\n });\r\n }\r\n handleCheckboxChange(event, status) {\r\n if (status.value === \"All\") {\r\n this.statusOptions.forEach((statusOption, index) => {\r\n if (index !== 0) {\r\n statusOption.checked = false;\r\n }\r\n });\r\n } else {\r\n const allChecked = this.statusOptions\r\n .slice(1)\r\n .every((statusOption) => statusOption.checked);\r\n this.statusOptions[0].checked = allChecked;\r\n }\r\n }\r\n // async displayEmployeess(event) {\r\n // this.showEmployeeDropdown = true;\r\n // const statusVal = event.target.value;\r\n // this.leavemanagementService\r\n // .DepartmentDropdown(this.empid, statusVal)\r\n // .then((data) => {\r\n // this.departments = data;\r\n // console.log(this.departments);\r\n // });\r\n // }\r\n\r\n employeeOutsideClick = (event) => {\r\n const dropdownContainer = document.getElementById(\"dropdown-menu\");\r\n const inputElement = document.getElementsByName(\"name\")[0];\r\n if (\r\n !dropdownContainer.contains(event.target) &&\r\n event.target !== inputElement\r\n ) {\r\n this.showEmployeeDropdown = false;\r\n this.filteredEmployees = [];\r\n document.removeEventListener(\"click\", this.employeeOutsideClick);\r\n }\r\n };\r\n toggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const isDropdownOpen = employee.showDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n if (!isDropdownOpen) {\r\n employee.showDropdown = true;\r\n employee.timeoffshowDropdown = false;\r\n document.addEventListener(\"click\", this.closeDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n closeDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.showDropdown = false;\r\n item.timeoffshowDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeDropdown);\r\n };\r\n viewToggleDropdown($event, employee) {\r\n //console.log(employee);\r\n const timeoffisDropdownOpen = employee.timeoffshowDropdown;\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n if (!timeoffisDropdownOpen) {\r\n employee.timeoffshowDropdown = true;\r\n employee.showDropdown = false;\r\n document.addEventListener(\"click\", this.viewcloseDropdown);\r\n }\r\n $event.stopPropagation();\r\n }\r\n viewcloseDropdown = () => {\r\n this.$displayData.forEach((item) => {\r\n item.timeoffshowDropdown = false;\r\n item.showDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.timeoffcloseDropdown);\r\n };\r\n closeEmployeetoggle() {\r\n this.filteredEmployees.forEach((item) => {\r\n item.showEmployeeDropdown = false;\r\n });\r\n document.removeEventListener(\"click\", this.closeEmployeetoggle);\r\n }\r\n showDialog(leaveAppId, photopath) {\r\n const viewdata = {\r\n leaveId: leaveAppId,\r\n EmployeePic: photopath,\r\n };\r\n this.dialogService.open({\r\n viewModel: Viewtimeoffrequestcomponent,\r\n model: viewdata,\r\n });\r\n }\r\n cancel() {\r\n this.controller.cancel();\r\n }\r\n // ApproveShowDialog(leaveAppId,StatusCode,EmployeeId, actions,photopath) {\r\n // const approveData = {\r\n // selectedRecordId : leaveAppId,\r\n // StatusCode : StatusCode,\r\n // EmployeeId:EmployeeId,\r\n // actions:actions,\r\n // PhotoPath : photopath,\r\n // };\r\n // this.dialogService.open({viewModel: ApproveTimeOffComponent, model: approveData});\r\n // }\r\n searcPeriodicReviewDetails() {\r\n const filterOpenElements = document.querySelectorAll(\".filter-open\");\r\n filterOpenElements.forEach((element) =>\r\n element.classList.remove(\"filter-open\")\r\n );\r\n // const selectedStatusLists = this.selectedStatuses.map(status => status.value);\r\n const selectedStatusList = this.statusOptions\r\n .filter((status) => status.checked)\r\n .map((status) => status.value);\r\n\r\n const finalToDate = this.ToDate ? this.ToDate : this.defaultToDate;\r\n const finalFromDate = this.FromDate ? this.FromDate : this.defaultFromDate;\r\n console.log(finalToDate);\r\n const selectedRadio = document.querySelector(\r\n 'input[name=\"employees\"]:checked'\r\n );\r\n this.selectedValue = selectedRadio ? selectedRadio.value : \"\";\r\n const postPeriodicReview = {\r\n Fromdate: finalFromDate,\r\n Todate: finalToDate,\r\n EmployeeStatus: this.selectedValue,\r\n StatusList: selectedStatusList.includes(\"All\")\r\n ? [\"All\"]\r\n : selectedStatusList.filter((status) => status !== \"All\"),\r\n DepartmentID: this.department,\r\n // EmployeeClassID: this.employeeclass,\r\n EmployeeID: this.empid,\r\n };\r\n\r\n this.isLoading = true;\r\n this.ConfirmationService.postEmployeePeriodicReviewList(\r\n postPeriodicReview\r\n ).then((data) => {\r\n this.GetEmployeePeriodicReviewList = data.EmployeeList;\r\n this.isLoading = false;\r\n });\r\n }\r\n exportData() {\r\n const data = this.GetEmployeePeriodicReviewList;\r\n const filename = \"periodic review list\";\r\n this.exportToExcel(data, filename);\r\n }\r\n\r\n exportToExcel(data, filename) {\r\n const requiredColumns = [\r\n \"Employee name\",\r\n // \"Employee code\",\r\n // \"Employee class\",\r\n \"Department\",\r\n \"Designation\",\r\n \"Reporting manager\",\r\n \"Period from\",\r\n \"Period to\",\r\n \"Status\",\r\n ];\r\n const filteredData = data.map((periodicReview) => {\r\n return {\r\n \"Employee name\": periodicReview.EmployeeName,\r\n // \"Employee code\": periodicReview.EmployeeCode,\r\n // \"Employee class\": periodicReview.EmployeeClassificationName,\r\n Department: periodicReview.DepartmentName,\r\n \"Designation\": periodicReview.Designation,\r\n \"Reporting manager\": periodicReview.ReportingManagerName,\r\n \"Period from\": periodicReview.RequestDateText,\r\n \"Period to\": periodicReview.DueDateText,\r\n Status: periodicReview.StatusText,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData, {\r\n header: requiredColumns,\r\n });\r\n const workbook = XLSX.utils.book_new();\r\n XLSX.utils.book_append_sheet(workbook, worksheet, \"Sheet 1\");\r\n XLSX.writeFile(workbook, `${filename}.xlsx`);\r\n }\r\n\r\n filterClick() {\r\n event.preventDefault();\r\n const clickedDiv = event.target.parentNode;\r\n clickedDiv.classList.toggle(\"filter-open\");\r\n // Remove 'filter-open' class from other divs\r\n const divs = document.querySelectorAll(\".filter-open\");\r\n divs.forEach((div) => {\r\n if (div !== clickedDiv) {\r\n div.classList.remove(\"filter-open\");\r\n }\r\n });\r\n const handleOutsideClick = (event) => {\r\n if (!clickedDiv.contains(event.target)) {\r\n divs.forEach((div) => {\r\n div.classList.remove(\"filter-open\");\r\n });\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n };\r\n\r\n if (clickedDiv.classList.contains(\"filter-open\")) {\r\n document.addEventListener(\"click\", handleOutsideClick);\r\n } else {\r\n document.removeEventListener(\"click\", handleOutsideClick);\r\n }\r\n }\r\n\r\n addToFavourites() {\r\n this.ConfirmationService.AddToFavourites(this.empid, this.sitemapId).then(\r\n (data) => {\r\n window.location.reload();\r\n }\r\n );\r\n }\r\n\r\n addToRecentItems() {\r\n this.ConfirmationService.AddToRecentItems(this.empid, this.sitemapId).then(\r\n (data) => {\r\n // window.location.reload();\r\n }\r\n );\r\n }\r\n resetDepartmentDropdown() {\r\n this.department = \"\"; // Reset the selected department to empty value\r\n }\r\n resetEmployesDropdown() {\r\n this.employeeclass = \"\"; // Reset the selected department to empty value\r\n }\r\n resetStatusDropdown() {\r\n this.statusOptions.forEach((status, index) => {\r\n if (index === 1 || index === 2) {\r\n status.checked = true; // Select 'Pending approval' and 'Pending with me'\r\n } else {\r\n status.checked = false; // Deselect other statuses\r\n }\r\n });\r\n\r\n // Update the selectedStatusList if needed\r\n this.selectedStatusList = this.statusOptions.filter(\r\n (status) => status.checked\r\n );\r\n console.log(\"Hii\");\r\n this.attached();\r\n //console.log(this.selectedStatusList);\r\n }\r\n removeFilter(Allstatus, status) {\r\n if (status.label === \"All\") {\r\n this.statusOptions.forEach((option) => {\r\n option.checked = false;\r\n });\r\n } else {\r\n status.checked = false;\r\n }\r\n // this.statusOptions.forEach(status => {\r\n // status.checked = false;\r\n // });\r\n }\r\n get selectedStatuses() {\r\n return this.statusOptions.filter((status) => status.checked);\r\n }\r\n resetPage() {\r\n console.log(\"Hii\");\r\n this.attached();\r\n this.selectedStatus = \"ACT\";\r\n }\r\n}\r\n","// Module\nvar code = \"\\r\\n\\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"../../../images/leaveadmin-banner.jpg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"../../../images/favourite.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"../../../images/leave-calendar-days.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_3___ = new URL(\"../../../images/loader.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);\nvar ___HTML_LOADER_REPLACEMENT_3___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_3___);\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"../../../images/leaveadmin-banner.jpg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"../../../images/favourite.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"../../../images/loader.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"../../../images/leaveadmin-banner.jpg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"../../../images/favourite.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"../../../images/leave-calendar-days.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_3___ = new URL(\"../../../images/loader.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);\nvar ___HTML_LOADER_REPLACEMENT_3___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_3___);\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"../../../images/leaveadmin-banner.jpg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"../../../images/favourite.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"../../../images/leave-calendar-days.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_3___ = new URL(\"../../../images/loader.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);\nvar ___HTML_LOADER_REPLACEMENT_3___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_3___);\nvar code = \"\\r\\n\";\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}