{"version":3,"file":"app-6cb72908.d152cf98c45d962fa693.bundle.js","mappings":";;;;;;;;;;;;;;AAAA;AAEA;AAMA;AAAA;AAJA;AACA;AA8BA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AAvCA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAiBA;AA/CA;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AAAA;AAPA;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;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;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;;;;;;;;;;;;;;;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;;AAEA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAWA;AAAA;AATA;AACA;AACA;AACA;AAEA;AACA;AAIA;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;AAEA;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;AAGA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAQA;AAAA;AANA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;;AASA;AAAA;AARA;AACA;AACA;AACA;AAEA;AAIA;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;AAEA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAWA;AAAA;AATA;AACA;AACA;AACA;AAEA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;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;AAGA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAWA;AAAA;AATA;AACA;AACA;AACA;AAEA;AACA;AAIA;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;AAEA;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;AAGA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACxGA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA","sources":["webpack://HRMSPortal/./src/components/leavemanagement/useralertpopup/noofdaysconfirmation.js","webpack://HRMSPortal/./src/components/leavemanagement/viewapplytimeoffpopup/viewapplytimeoffpopup.js","webpack://HRMSPortal/./src/components/leavemanagement/viewemployeetimeoffdetails/viewemployeetimeoffdetailscomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/viewemptimeoffrequestpopup/viewemptimeoffrequestpopupcomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/viewkraprsettings/viewkraprsettingscomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/viewmytimeoffsummary/viewmytimeoffsummarycomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/viewtimeoffadjustment/viewtimeoffadjustmentcomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent.js","webpack://HRMSPortal/./src/components/leavemanagement/useralertpopup/noofdaysconfirmation.html","webpack://HRMSPortal/./src/components/leavemanagement/viewapplytimeoffpopup/viewapplytimeoffpopup.html","webpack://HRMSPortal/./src/components/leavemanagement/viewemployeetimeoffdetails/viewemployeetimeoffdetailscomponent.html","webpack://HRMSPortal/./src/components/leavemanagement/viewemptimeoffrequestpopup/viewemptimeoffrequestpopupcomponent.html","webpack://HRMSPortal/./src/components/leavemanagement/viewkraprsettings/viewkraprsettingscomponent.html","webpack://HRMSPortal/./src/components/leavemanagement/viewmytimeoffsummary/viewmytimeoffsummarycomponent.html","webpack://HRMSPortal/./src/components/leavemanagement/viewtimeoffadjustment/viewtimeoffadjustmentcomponent.html","webpack://HRMSPortal/./src/components/leavemanagement/viewtimeoffrequest/viewtimeoffrequestcomponent.html"],"sourcesContent":["import { DialogController } from 'aurelia-dialog';\r\n\r\nexport class ConfirmationModal {\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n\r\n\r\n constructor(dialogController,element) {\r\n this.dialogController = dialogController;\r\n this.element = element;\r\n\r\n }\r\n activate(message) {\r\n this.message = message;\r\n }\r\n Yes() {\r\n this.dialogController.ok();\r\n }\r\n No() {\r\n this.dialogController.cancel();\r\n }\r\n\r\n startDragging(event) {\r\n if (event.button === 0) {\r\n this.isDragging = true;\r\n this.offsetX = event.clientX - this.dialogElement.getBoundingClientRect().left;\r\n this.offsetY = event.clientY - this.dialogElement.getBoundingClientRect().top;\r\n\r\n window.addEventListener('mousemove', this.drag);\r\n window.addEventListener('mouseup', this.stopDragging);\r\n }\r\n }\r\n\r\n drag = (event) => {\r\n if (this.isDragging) {\r\n const x = event.clientX - this.offsetX;\r\n const y = event.clientY - this.offsetY;\r\n\r\n this.dialogElement.style.left = `${x}px`;\r\n this.dialogElement.style.top = `${y}px`;\r\n }\r\n }\r\n\r\n stopDragging = () => {\r\n this.isDragging = false;\r\n window.removeEventListener('mousemove', this.drag);\r\n window.removeEventListener('mouseup', this.stopDragging);\r\n }\r\n}","import {inject } from 'aurelia-framework';\r\nimport { DialogController } from 'aurelia-dialog';\r\nimport { ProfileService } from '../../../shared/services/profielservice';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport {config} from \"../../../shared/services/config\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {HeaderService} from '../../../shared/services/headerservice';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n@inject(DialogController,ProfileService,JwtService,LeavemanagementService,HeaderService,LoginService,Router)\r\nexport class ViewApplyTimeOffPopup {\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n CategoryId=constants.leaveworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,LeavemanagementService,headerservice,loginservice,router,element) {\r\n this.headerservice = headerservice;\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n this.element = element;\r\n }\r\n activate(viewData){\r\n this.leavemanagement = viewData.LeaveApplicationID;\r\n this.LeaveApplicationIDS=viewData.split(',');\r\n const firstValue =this.LeaveApplicationIDS[0];\r\n this.LeaveApplicationID=firstValue;\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.LeaveApplicationID = this.LeaveApplicationIDFromSave;\r\n }\r\n if(viewData> 1){\r\n this.message = \"Time off applied successfully\"\r\n }\r\n }\r\n downloadFile() {\r\n const downloadUrl = config.img_url+ this.Files;\r\n const link = document.createElement('a');\r\n link.href = downloadUrl;\r\n link.target = '_blank';\r\n link.download = downloadUrl;\r\n link.click();\r\n }\r\n attached(){\r\n this.leavemanagementService.GetLeaveApplicationDetails(this.LeaveApplicationID).then(data=>\r\n {\r\n this.timeoffRequest=data;\r\n });\r\n this.leavemanagementService.GetMultiuLeaveApplicationDetails(this.LeaveApplicationIDS).then(data=>\r\n {\r\n this.MultiutimeoffRequest=data;\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.LeaveApplicationID,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n if ( this.additionalcomments.map(option => option.DocumentPath)) {\r\n this.file = this.additionalcomments.map(option => option.DocumentPath);\r\n this.DocumentName = this.additionalcomments.map(option => option.DocumentPath);\r\n }\r\n });\r\n this.headerservice.dynamicHeader(this.empid)\r\n .then(data => {\r\n this.employeedetails = data;\r\n this.userPhoto=config.img_url + data.PhotoPath;\r\n this.designation = data.Designation;\r\n });\r\n }\r\n dateSort(a, b, sortOrder) {\r\n let date1 = new Date(a.registered);\r\n let date2 = new Date(b.registered);\r\n if (date1 === date2) {\r\n return 0;\r\n }\r\n if (date1 > date2) {\r\n return 1 * sortOrder;\r\n }\r\n return -1 * sortOrder;\r\n }\r\n nameLength(row) {\r\n return row.Type.length;\r\n }\r\n cancel(){\r\n this.controller.cancel();\r\n this.router.navigatetoroute('employeetimeoffdetails');\r\n }\r\n}\r\n","import { DialogController } from 'aurelia-dialog';\r\nimport {inject} from 'aurelia-framework';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport {config} from \"../../../shared/services/config\";\r\n@inject(DialogController,LeavemanagementService,JwtService)\r\nexport class ViewEmployeeTimeOffDetailsComponent {\r\n static inject = [DialogController,Element];\r\n \r\n pageSize = config.grid_PazeSize;\r\n // isLoading = false;\r\n constructor(dialogController,LeavemanagementService,JwtService,element) {\r\n this.dialogController = dialogController;\r\n this.element = element;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.jwtService= JwtService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n\r\n }\r\n activate(modeldata) {\r\n\r\n this.statuscode = modeldata.headerText;\r\n this.LeaveTypeID = modeldata.leaveData.LeaveTypeId;\r\n this.EmployeeID=modeldata.leaveData.EmployeeId;\r\n this.Year=modeldata.leaveData.Year;\r\n \r\n\r\n }\r\n attached(){\r\n // this.isLoading = true;\r\n this.leavemanagementService.ViewEmployeeTimeOffgrid(this.statuscode,this.EmployeeID,this.LeaveTypeID,this.Year)\r\n .then(data => {\r\n this.GridData = data.List;\r\n // this.isLoading = false;\r\n \r\n\r\n })\r\n }\r\n\r\n cancel() {\r\n this.dialogController.cancel();\r\n }\r\n\r\n}","import {inject } from 'aurelia-framework';\r\nimport {DialogController, DialogService} from 'aurelia-dialog';\r\nimport { ProfileService } from '../../../shared/services/profielservice';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport {config} from \"../../../shared/services/config\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,LeavemanagementService,LoginService,Router)\r\nexport class ViewEmpTimeOffRequestPopupComponent {\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n\r\n CategoryId=constants.leaveworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n\r\n }\r\n activate(viewData){\r\n this.LeaveApplicationIDFromSave = viewData.viewdata;\r\n this.LeaveApplicationIDFromView = viewData.leaveId;\r\n this.EmployeePic = viewData.PhotoPath;\r\n this.LeaveApplicationID=viewData.selectedRecordId;\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.LeaveApplicationID = this.LeaveApplicationIDFromSave;\r\n }\r\n if(this.LeaveApplicationIDFromView > 1){\r\n this.LeaveApplicationID = this.LeaveApplicationIDFromView;\r\n }\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.message = \"Time off applied successfully\"\r\n }\r\n }\r\n downloadFile() {\r\n const downloadUrl = config.img_url+ this.Files;\r\n const link = document.createElement('a');\r\n link.href = downloadUrl;\r\n link.target = '_blank';\r\n link.download = downloadUrl;\r\n link.click();\r\n }\r\n async bind() {\r\n setTimeout(()=>{\r\n Scrollbar.init(document.querySelector('.viewtimeoff-pop-scrollbar'));\r\n },1000);\r\n this.userPhoto = config.img_url + this.EmployeePic;\r\n }\r\n attached(){\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n this.leavemanagementService.GetLeaveApplicationDetails(this.LeaveApplicationID).then(data=>\r\n {\r\n this.timeoffRequest=data;\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.LeaveApplicationID,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n if ( this.additionalcomments.map(option => option.DocumentPath)) {\r\n this.file = this.additionalcomments.map(option => option.DocumentPath);\r\n this.DocumentName = this.additionalcomments.map(option => option.DocumentPath);\r\n }\r\n });\r\n }\r\n RefreshProfileImage(data){\r\n this.userPhotoElement = document.querySelector('.rounded-full.dropdown.inline-block');\r\n this.userPhotoElement.src = data;\r\n }\r\n dateSort(a, b, sortOrder) {\r\n let date1 = new Date(a.registered);\r\n let date2 = new Date(b.registered);\r\n if (date1 === date2) {\r\n return 0;\r\n }\r\n if (date1 > date2) {\r\n return 1 * sortOrder;\r\n }\r\n return -1 * sortOrder;\r\n }\r\n nameLength(row) {\r\n return row.Type.length;\r\n }\r\n \r\n\r\n Cancel(){\r\n this.controller.cancel();\r\n this.router.navigateToRoute('mytimeoffdetails');\r\n }\r\n}\r\n","import {inject,bindingMode,bindable } from 'aurelia-framework';\r\nimport flatpickr from \"flatpickr\";\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport { DialogController } from 'aurelia-dialog';\r\nimport {DialogService} from 'aurelia-dialog';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { Viewtimeoffrequestcomponent } from '../viewtimeoffrequest/viewtimeoffrequestcomponent';\r\nimport * as XLSX from 'xlsx';\r\nimport {config} from '../../../shared/services/config';\r\nimport {ApproveTimeOffComponent} from \"../approvetimeoff/approvetimeoffcomponent\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport { LoginService } from '../../../shared/services/loginservice';\r\nimport { PerformanceMangemantService } from '../../../shared/services/performancereviewservice';\r\nimport {Router} from 'aurelia-router';\r\nimport {ValidationControllerFactory, ValidationRules} from 'aurelia-validation';\r\n\r\n\r\n@inject(DialogController,JwtService,LeavemanagementService,PerformanceMangemantService,ValidationControllerFactory,DialogService,Router,LoginService)\r\nexport class Addtimeoffadjustmentcomponent{\r\n pageSize = config.grid_PazeSize;\r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId=constants.mytimeoffdetailssitemapid;\r\n controllerFactory;\r\n\r\n constructor(controller,JwtService,LeavemanagementService,PerformanceMangemantService,DialogService,loginservice,router){\r\n this.controller = controller;\r\n this.jwtService= JwtService;\r\n this.dialogService = DialogService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.leavemanagementService = LeavemanagementService;\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n this.performaceService =PerformanceMangemantService;\r\n }\r\n \r\n async attached(){\r\n const windowWidth = window.innerWidth;\r\n if (windowWidth <= 1280) {\r\n Scrollbar.init(document.querySelector('.disable-desktop-scroll'));\r\n } \r\n \r\n this.PeriodID =1;\r\n this.performaceService.ViewKRAPRSettings(this.PeriodID).then(data => {\r\n this.filteredEmployeesSummery = data;\r\n this.isLoading = false;\r\n console.log(this.filteredEmployeesSummery );\r\n });\r\n\r\n }\r\n}","import {inject,bindingMode,bindable } from 'aurelia-framework';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport { DialogController } from 'aurelia-dialog';\r\nimport {DialogService} from 'aurelia-dialog';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { constants} from '../../../shared/services/constants';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,JwtService,LeavemanagementService,DialogService,LoginService,Router)\r\nexport class ViewMyTimeoffSummaryComponent{\r\n //LeaveType = \"\";\r\n leaveViewList = []; \r\n isLoading = false;\r\n FavoritesExist = false;\r\n sitemapId=constants.mytimeoffsummarysitemapid;\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n\r\n constructor(controller,JwtService,LeavemanagementService,DialogService,loginservice,router){\r\n this.controller = controller;\r\n this.jwtService= JwtService;\r\n this.dialogService = DialogService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.leavemanagementService = LeavemanagementService;\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n }\r\n activate(viewData){\r\n this.LeaveTypeId =viewData ;\r\n }\r\n attached(){\r\n this.isLoading = true;\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n this.leavemanagementService.GetMyTimeOffSummaryByLeaveTypeId(this.empid,this.LeaveTypeId).then(data=>\r\n {\r\n this.LeaveTypeName=data.LeaveTypeName;\r\n this.LeaveCreditDays=data.LeaveCreditDays;\r\n this.LeaveAppliedDays=data.LeaveAppliedDays;\r\n this.ScheduleBalance=data.ScheduleBalance;\r\n this.LeaveBalanceDays=data.LeaveBalanceDays;\r\n this.Pendingforapproval=data.Pendingforapproval;\r\n this.ApprovedLossofPay=data.ApprovedLossofPay;\r\n this.Nooflopspending=data.Nooflopspending;\r\n this.CanceledLeaves=data.CanceledLeaves;\r\n this.isLoading = false;\r\n });\r\n }\r\n \r\n cancel(){\r\n this.controller.cancel();\r\n }\r\n \r\n}\r\n","import {inject } from 'aurelia-framework';\r\nimport {DialogController, DialogService} from 'aurelia-dialog';\r\nimport { ProfileService } from '../../../shared/services/profielservice';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport {config} from \"../../../shared/services/config\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,LeavemanagementService,LoginService,Router)\r\nexport class Viewtimeoffadjustmentcomponent {\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n\r\n CategoryId=constants.CreditLeaveApprovalWorkflowCategoryId;\r\n constructor(controller, ProfileService,JwtService,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n\r\n }\r\n activate(viewData){\r\n console.log(viewData);\r\n this.LeaveApplicationIDFromSave = viewData.viewdata;\r\n // this.LeaveApplicationIDFromView = viewData.leaveId;\r\n // this.EmployeePic = viewData.PhotoPath;\r\n this.LeaveCreditId=viewData.LeaveCreditId;\r\n this.LeaveTypid=viewData.LeaveTypeID;\r\n this.EmployeeID=viewData.EmployeeId;\r\n this.Type =viewData.Type;\r\n this.DepartmentName =viewData.DepartmentName;\r\n this.EmployeeName =viewData.EmployeeName;\r\n this.SendMailIND = this.showCertificationFields,\r\n this.DateOfJoining=viewData.DateOfJoining;\r\n console.log( this.EmployeeName);\r\n // if(this.LeaveApplicationIDFromSave > 1){\r\n // this.LeaveApplicationID = this.LeaveApplicationIDFromSave;\r\n // }\r\n // if(this.LeaveApplicationIDFromView > 1){\r\n // this.LeaveApplicationID = this.LeaveApplicationIDFromView;\r\n // }\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.message = \"Time off applied successfully\"\r\n }\r\n }\r\n downloadFile() {\r\n const downloadUrl = config.img_url+ this.Files;\r\n const link = document.createElement('a');\r\n link.href = downloadUrl;\r\n link.target = '_blank';\r\n link.download = downloadUrl;\r\n link.click();\r\n }\r\n async bind() {\r\n setTimeout(()=>{\r\n Scrollbar.init(document.querySelector('.viewtimeoff-pop-scrollbar'));\r\n },1000);\r\n this.userPhoto = config.img_url + this.EmployeePic;\r\n }\r\n attached(){\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n console.log(this.LeaveCreditId,this.LeaveTypid,this.EmployeeID);\r\n this.leavemanagementService.GetLeaveCreditsEditView(this.LeaveCreditId,this.LeaveTypid,this.EmployeeID).then(data=>\r\n {\r\n this.timeoffRequest=data;\r\n console.log(this.timeoffRequest);\r\n });\r\n\r\n\r\n this.leavemanagementService.GetAdditionalComments(this.LeaveCreditId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n console.log(this.additionalcomments);\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n if ( this.additionalcomments.map(option => option.DocumentPath)) {\r\n this.file = this.additionalcomments.map(option => option.DocumentPath);\r\n this.DocumentName = this.additionalcomments.map(option => option.DocumentPath);\r\n }\r\n });\r\n }\r\n RefreshProfileImage(data){\r\n this.userPhotoElement = document.querySelector('.rounded-full.dropdown.inline-block');\r\n this.userPhotoElement.src = data;\r\n }\r\n dateSort(a, b, sortOrder) {\r\n let date1 = new Date(a.registered);\r\n let date2 = new Date(b.registered);\r\n if (date1 === date2) {\r\n return 0;\r\n }\r\n if (date1 > date2) {\r\n return 1 * sortOrder;\r\n }\r\n return -1 * sortOrder;\r\n }\r\n nameLength(row) {\r\n return row.Type.length;\r\n }\r\n \r\n\r\n cancel(){\r\n this.controller.cancel();\r\n }\r\n}\r\n","import {inject } from 'aurelia-framework';\r\nimport {DialogController, DialogService} from 'aurelia-dialog';\r\nimport { ProfileService } from '../../../shared/services/profielservice';\r\nimport { JwtService } from '../../../shared/services/jwtservice';\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport {config} from \"../../../shared/services/config\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,LeavemanagementService,LoginService,Router)\r\nexport class Viewtimeoffrequestcomponent {\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n static inject = [DialogController,Element];\r\n isDragging = false;\r\n dialog;\r\n\r\n CategoryId=constants.leaveworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.router = router;\r\n this.loginservice = loginservice;\r\n\r\n }\r\n activate(viewData){\r\n this.LeaveApplicationIDFromSave = viewData.viewdata;\r\n this.LeaveApplicationIDFromView = viewData.leaveId;\r\n this.EmployeePic = viewData.PhotoPath;\r\n this.LeaveApplicationID=viewData.selectedRecordId;\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.LeaveApplicationID = this.LeaveApplicationIDFromSave;\r\n }\r\n if(this.LeaveApplicationIDFromView > 1){\r\n this.LeaveApplicationID = this.LeaveApplicationIDFromView;\r\n }\r\n if(this.LeaveApplicationIDFromSave > 1){\r\n this.message = \"Time off applied successfully\"\r\n }\r\n }\r\n downloadFile() {\r\n const downloadUrl = config.img_url+ this.Files;\r\n const link = document.createElement('a');\r\n link.href = downloadUrl;\r\n link.target = '_blank';\r\n link.download = downloadUrl;\r\n link.click();\r\n }\r\n async bind() {\r\n setTimeout(()=>{\r\n Scrollbar.init(document.querySelector('.viewtimeoff-pop-scrollbar'));\r\n },1000);\r\n this.userPhoto = config.img_url + this.EmployeePic;\r\n }\r\n attached(){\r\n // if(this.jwtService.getToken() === undefined){\r\n // this.loginservice.purgeAuth();\r\n // this.router.navigateToRoute('login')\r\n // }\r\n this.leavemanagementService.GetLeaveApplicationDetails(this.LeaveApplicationID).then(data=>\r\n {\r\n this.timeoffRequest=data;\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.LeaveApplicationID,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n if ( this.additionalcomments.map(option => option.DocumentPath)) {\r\n this.file = this.additionalcomments.map(option => option.DocumentPath);\r\n this.DocumentName = this.additionalcomments.map(option => option.DocumentPath);\r\n }\r\n });\r\n }\r\n RefreshProfileImage(data){\r\n this.userPhotoElement = document.querySelector('.rounded-full.dropdown.inline-block');\r\n this.userPhotoElement.src = data;\r\n }\r\n dateSort(a, b, sortOrder) {\r\n let date1 = new Date(a.registered);\r\n let date2 = new Date(b.registered);\r\n if (date1 === date2) {\r\n return 0;\r\n }\r\n if (date1 > date2) {\r\n return 1 * sortOrder;\r\n }\r\n return -1 * sortOrder;\r\n }\r\n nameLength(row) {\r\n return row.Type.length;\r\n }\r\n \r\n\r\n Cancel(){\r\n this.controller.cancel();\r\n this.router.navigateToRoute('employeetimeoffdetails');\r\n }\r\n}\r\n","// 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/loader.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\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/palmtree.svg\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"\\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;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}