{"version":3,"file":"app-69c8b735.d152cf98c45d962fa693.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAMA;AAAA;AAJA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;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;AAEA;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;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAiBA;AAAA;AAfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AAOA;AAEA;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;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;AAEA;AACA;AACA;AAEA;AACA;AAEA;AAEA;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;AAEA;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;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;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;AACA;AACA;AAAA;AAAA;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;AACA;AACA;AACA;AAEA;AAEA;AACA;AAOA;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;AAAA;AAAA;AAAA;AAAA;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;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAGA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC/dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAUA;AAAA;AARA;AACA;AAEA;AACA;AACA;AACA;AACA;AAyCA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AApDA;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;AAEA;AACA;AACA;AACA;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAMA;AAAA;AAJA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAUA;AAAA;AARA;AACA;AAEA;AACA;AACA;AACA;AACA;AAmDA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AA9DA;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;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAUA;AAAA;AARA;AACA;AAEA;AACA;AACA;AACA;AACA;AA6EA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AAxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;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;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAiBA;;;;;;;;;;;;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACfA;AACA;AACA;AACA;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA","sources":["webpack://HRMSPortal/./src/components/assetmanagement/currentassetlist/currentassetlist.js","webpack://HRMSPortal/./src/components/assetmanagement/myassetcomponent/myassetcomponent.js","webpack://HRMSPortal/./src/components/assetmanagement/viewassetlist/viewassetlist.js","webpack://HRMSPortal/./src/components/assetmanagement/viewcurrentassetlist/pendingAcknowledgement.js","webpack://HRMSPortal/./src/components/assetmanagement/viewmycurrentassetsrequest/viewmycurrentassetsrequest.js","webpack://HRMSPortal/./src/components/assetmanagement/withdrawrequestedassets/withdrawrequestedassets.js","webpack://HRMSPortal/./src/components/assetmanagement/currentassetlist/currentassetlist.html","webpack://HRMSPortal/./src/components/assetmanagement/myassetcomponent/myassetcomponent.html","webpack://HRMSPortal/./src/components/assetmanagement/viewassetlist/viewassetlist.html","webpack://HRMSPortal/./src/components/assetmanagement/viewcurrentassetlist/pendingAcknowledgement.html","webpack://HRMSPortal/./src/components/assetmanagement/viewmycurrentassetsrequest/viewmycurrentassetsrequest.html","webpack://HRMSPortal/./src/components/assetmanagement/withdrawrequestedassets/withdrawrequestedassets.html"],"sourcesContent":["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 { myAssetsService } from '../../../shared/services/myassetservices';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport flatpickr from \"flatpickr\";\r\nimport {ValidationControllerFactory, ValidationRules} from 'aurelia-validation';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,myAssetsService,LeavemanagementService,ValidationControllerFactory,LoginService,Router)\r\nexport class CurrentAssetList{\r\n CategoryId=constants.assetrequestworkflowcategoryid;\r\n isDragging = false;\r\n dialog;\r\n static inject = [Element];\r\n constructor(controller, ProfileService,JwtService,myAssetsService,LeavemanagementService,ValidationControllerFactory,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.myAssetsService = myAssetsService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.controllerFactory = ValidationControllerFactory.createForCurrentScope();\r\n this.loginservice = loginservice;\r\n this.router = router;\r\n\r\n ValidationRules\r\n .ensure('ToDate').displayName(\"Returned on field \").required()\r\n .on(this);\r\n }\r\n activate(viewData){\r\n this.data = viewData;\r\n this.status=this.data.status;\r\n this.AssetRequisitionId=this.data.AssetRequisitionId;\r\n this.viewAsset=this.data.AssetStatus;\r\n // console.log(viewData);\r\n }\r\n attached(){\r\n flatpickr(this.TodatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: 'd-m-Y',\r\n minDate: null,\r\n maxDate: new Date(),\r\n defaultDate: null,\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 this.myAssetsService.GetAssetReturnForm(this.empid,this.AssetRequisitionId).then(response=>{\r\n this.assetlist=response ;\r\n this.AssetDetailID=this.assetlist.AssetDetailID,\r\n this.AssetAssignmentID=this.assetlist.AssetAssignmentID\r\n //console.log(response);\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.AssetRequisitionId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n });\r\n\r\n }\r\n cancel(){\r\n this.controller.cancel();\r\n }\r\n submit(){\r\n if(this.status ==\"ISS\")\r\n {\r\n let Acknowledgementasset = {\r\n EmployeeID:this.empid,\r\n AssetRequisitionID:this.AssetRequisitionId,\r\n AssetDetailsID:this.AssetDetailID,\r\n AssetAssignmentID:this.AssetAssignmentID,\r\n };\r\n this.myAssetsService.Acknowledgementasset(Acknowledgementasset).then(() => {\r\n this.controller.ok(true);\r\n });\r\n }\r\n if(this.status ==\"ASG\")\r\n {\r\n this.controllerFactory.validate()\r\n .then(result => {\r\n if (result.valid) {\r\n let returnasset = {\r\n EmployeeID:this.empid,\r\n AssetRequisitionID:this.AssetRequisitionId,\r\n ReasonforReturn:this.Comment,\r\n ReturnedQty:this.IssuedQty,\r\n ReturnedOn:this.ToDate,\r\n AssetDetailsID:this.AssetDetailID,\r\n AssetAssignmentID:this.AssetAssignmentID,\r\n };\r\n this.myAssetsService.Returnasset(returnasset).then(() => {\r\n this.controller.ok(true);\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n}\r\n","import {inject} from 'aurelia-framework';\r\nimport { myAssetsService } from '../../../shared/services/myassetservices';\r\nimport {ValidationControllerFactory, ValidationRules,validateTrigger} from 'aurelia-validation';\r\nimport * as tinymce from 'tinymce';\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 { LeavemanagementService } from '../../../shared/services/leavemanagementservice';\r\nimport * as XLSX from \"xlsx\";\r\nimport {WithDrawRequestedAssets} from \"./../withdrawrequestedassets/withdrawrequestedassets\";\r\nimport {ViewMyCurrentAssetsrequest} from \"./../viewmycurrentassetsrequest/viewmycurrentassetsrequest\";\r\nimport {config} from \"../../../shared/services/config\";\r\nimport {constants} from \"../../../shared/services/constants\";\r\nimport {CurrentAssetList} from \"./../currentassetlist/currentassetlist\";\r\nimport {ViewAssetList} from \"./../viewassetlist/viewassetlist\";\r\nimport Scrollbar from 'smooth-scrollbar';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {PendingAcknowledgement} from '../viewcurrentassetlist/pendingAcknowledgement'\r\n\r\n@inject(myAssetsService, ValidationControllerFactory,DialogService ,JwtService, Router, App,LeavemanagementService,LoginService)\r\nexport class MyassetComponent {\r\n selectedValue = \"2\";\r\n pageSize = config.assetgrid_PazeSize;\r\n pageSize1 = config.assetgrid_PazeSize;\r\n FavoritesExist = false;\r\n differenceError = false;\r\n showSuccessMessage = false;\r\n sitemapid=constants.assetsitemapid;\r\n assetrequestionlist=constants.assetrequestionlist;\r\n WithdrawnSuccessmessages=false;\r\n AcknowledgementSuccessmessage=false;\r\n ErrorMessageShow=false;\r\n FavoritesExist1 = false;\r\n showToDateValidation = false;\r\n isButtonDisabled = false;\r\n dropdown=null;\r\n constructor(myAssetsService, controllerFactory, dialogService,JwtService, router, App,LeavemanagementService,loginservice) {\r\n this.myAssetsService = myAssetsService;\r\n this.jwtService = JwtService;\r\n this.controller = controllerFactory.createForCurrentScope();\r\n this.dialogService = dialogService;\r\n this.router = router;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.locid=this.jwtService.getLocationId();\r\n this.leavemanagementService = LeavemanagementService;\r\n this.controller.validateTrigger = validateTrigger.change;\r\n this.loginservice = loginservice;\r\n ValidationRules.customRule(\r\n 'dateError',\r\n () =>{\r\n if(this.differenceError === true){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n },\r\n '${$displayName} by should be less than required till.'\r\n );\r\n ValidationRules\r\n .ensure('ToDate').displayName(\"Required\").satisfiesRule('dateError')\r\n .ensure('dropdown').displayName(\"Required asset field\").required()\r\n .ensure('quanity').displayName(\"Requested quantity field\").required()\r\n .ensure('FromDate').displayName(\"Required by field\").required()\r\n .ensure('reason').displayName(\"Reason field\").required()\r\n .on(this);\r\n }\r\n\r\n getCurrentRouteURL() {\r\n const currentInstruction = this.router.currentInstruction;\r\n if (currentInstruction) {\r\n const routeURL = currentInstruction.fragment;\r\n const sidebarListItem = document.querySelector('.sidebar ul li.asset');\r\n if (sidebarListItem) {\r\n const subActiveItems = document.querySelectorAll('.sidebar ul li.sub-active');\r\n subActiveItems.forEach(item => item.classList.remove('sub-active'));\r\n const activeLinkItems = document.querySelectorAll('.sidebar ul li.active-link');\r\n activeLinkItems.forEach(item => item.classList.remove('active-link'));\r\n sidebarListItem.classList.add('sub-active');\r\n }\r\n const sidebarLink = document.querySelector('.sidebar ul li.asset .sidebar-sub .myassetdetails a');\r\n if (sidebarLink) {\r\n sidebarLink.classList.add('active-link');\r\n }\r\n return routeURL;\r\n }\r\n return '';\r\n }\r\n\r\n attached(){\r\n this.getCurrentRouteURL();\r\n const windowWidth = window.innerWidth;\r\n if (windowWidth <= 1280) {\r\n Scrollbar.init(document.querySelector('.disable-desktop-scroll'));\r\n Scrollbar.init(document.querySelector('.requested-asset-table'));\r\n }\r\n flatpickr(this.FromdatePicker, {\r\n closeOnSelect: true,\r\n dateFormat: 'd-m-Y',\r\n minDate: new Date(),\r\n maxDate: null,\r\n defaultDate: null,\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: new Date(),\r\n maxDate: null,\r\n defaultDate: null,\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 this.myAssetsService.GetMyAssetList(this.empid).then(data => {\r\n this.MyAssetList = data;\r\n });\r\n this.myAssetsService.GetMyAssetRequisitionList(this.empid).then(data => {\r\n this.MyAssetRequisitionList = data;\r\n });\r\n this.myAssetsService.GetAssetForDropDown().then(data => {\r\n this.MyAssetDropDown = data;\r\n });\r\n this.leavemanagementService.GetPersonFavoriteItems(this.empid,this.sitemapid)\r\n .then(data=>{\r\n this.FavoritesExist=data;\r\n });\r\n this.leavemanagementService.GetPersonFavoriteItems(this.empid,this.assetrequestionlist)\r\n .then(data=>{\r\n this.FavoritesExist1=data;\r\n });\r\n\r\n this.addToRecentItems();\r\n\r\n }\r\n updateSelectedValue(event) {\r\n this.selectedValue = event.target.value;\r\n }\r\n openFileDialog() {\r\n document.getElementById('attachments').click();\r\n }\r\n handleFileSelect(files) {\r\n const file = files[0];\r\n const maxSize = 2.5 * 1024 * 1024;\r\n if (file.size > maxSize) {\r\n this.fileMessage = 'File size should be less than 2.5 MB.';\r\n setTimeout(() => {\r\n this.fileMessage = null;\r\n }, 4000);\r\n\r\n this.removeFile();\r\n return;\r\n }\r\n else if (file.size <= maxSize) {\r\n this.file = file;\r\n let reader = new FileReader();\r\n reader.readAsDataURL(file);\r\n this.DocumentName = file.name;\r\n reader.onload = () => {\r\n this.file = reader.result;\r\n };\r\n }\r\n }\r\n removeFile() {\r\n this.file = null;\r\n this.DocumentName = '';\r\n const fileInput = document.getElementById('attachments');\r\n if (fileInput) {\r\n fileInput.value = '';\r\n }\r\n }\r\n addToFavouritesCurrentAssest(){\r\n this.leavemanagementService.AddToFavourites(this.empid,this.sitemapid).then(()=>\r\n {\r\n //this.attached();\r\n window.location.reload();\r\n });\r\n }\r\n addToFavouritesRequestedAsset(){\r\n this.leavemanagementService.AddToFavourites(this.empid,this.assetrequestionlist).then(()=>\r\n {\r\n // this.attached();\r\n window.location.reload();\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 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 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 MyRequestedAssetsActionDropdown(AssetRequisitionId) {\r\n this.dialogService.open({viewModel: WithDrawRequestedAssets, model: AssetRequisitionId})\r\n .whenClosed((feedback) => {\r\n if (!feedback.wasCancelled) {\r\n this.myAssetsService.GetMyAssetRequisitionList(this.empid).then(data => {\r\n this.MyAssetRequisitionList = data;\r\n this.Withdrawnmessages = \"Asset withdrawn successfully.\";\r\n this.WithdrawnSuccessmessages = true;\r\n setTimeout(() => {\r\n this.messages = null\r\n }, 5000);\r\n });\r\n }\r\n });\r\n }\r\n MyRequestedAssetsViewDropdown(AssetRequisitionId) {\r\n this.dialogService.open({viewModel: ViewMyCurrentAssetsrequest, model: AssetRequisitionId});\r\n }\r\n CurrentAssetsActionDialog(AssetRequisitionId,status) {\r\n this.openPopupWithCustomTitle(AssetRequisitionId, status, \"ARF\")\r\n\r\n }\r\n CurrentAssetsViewDialog(AssetRequisitionId,status,AssetStatus) {\r\n if (status==\"RET\" || status==\"AVL\") {\r\n this.dialogService.open({\r\n viewModel: ViewAssetList,\r\n model: AssetRequisitionId\r\n })\r\n }else {\r\n this.dialogService.open({\r\n viewModel: PendingAcknowledgement,\r\n model: { AssetRequisitionId, status,AssetStatus }\r\n })\r\n\r\n }\r\n }\r\n openPopupWithCustomTitle(AssetRequisitionId, status,AssetStatus) {\r\n this.dialogService.open({\r\n viewModel: CurrentAssetList,\r\n model: { AssetRequisitionId, status,AssetStatus }\r\n }).whenClosed((feedback) => {\r\n console.log(AssetRequisitionId, status,AssetStatus);\r\n if (!feedback.wasCancelled) {\r\n this.myAssetsService.GetMyAssetList(this.empid).then(data => {\r\n this.MyAssetList = data;\r\n console.log(data);\r\n if (status=='ISS'){\r\n this.AcknowledgementSuccessmessage = \"Asset received successfully.\";\r\n this.AcknowledgementSuccess = true;\r\n setTimeout(() => {\r\n this.AcknowledgementSuccess=null;\r\n }, 5000);\r\n }\r\n if (status =='ASG') {\r\n this.ReturnedSuccessmessage = \"Asset returned successfully.\";\r\n this.ReturnSuccess = true;\r\n setTimeout(() => {\r\n this.ReturnSuccess=null;\r\n }, 5000);\r\n \r\n }\r\n \r\n \r\n });\r\n }\r\n });\r\n }\r\n calculateDateDifference() {\r\n if (this.FromDate && this.ToDate) {\r\n const fromParts = this.FromDate.split('-');\r\n const toParts = this.ToDate.split('-');\r\n const fromDate = new Date(fromParts[2], fromParts[1] - 1, fromParts[0]);\r\n const toDate = new Date(toParts[2], toParts[1] - 1, toParts[0]);\r\n const differenceInTime = toDate.getTime() - fromDate.getTime();\r\n const differenceInDays = Math.ceil(differenceInTime / (1000 * 3600 * 24));\r\n const years = Math.floor(differenceInDays / 365);\r\n const months = Math.floor((differenceInDays % 365) / 30);\r\n const days = differenceInDays % 30;\r\n const formattedYears = years > 0 ? `${years} Year(s)` : '';\r\n const formattedMonths = months > 0 ? `${months} Month(s)` : '';\r\n const formattedDays = days > 0 ? `${days} Day(s)` : '';\r\n if (fromDate >= toDate) {\r\n this.differenceError = true;\r\n //this.showToDateValidation=true;\r\n }\r\n else{\r\n this.differenceError = false;\r\n this.showToDateValidation=false;\r\n }\r\n }\r\n }\r\n exportData() {\r\n const data = this.MyAssetList;\r\n const filename = 'Mycurrentassets';\r\n this.exportToExcel(data, filename);\r\n }\r\n exportToExcel(data, filename) {\r\n const requiredColumns = ['Asset', 'Asset name', 'Request date', 'Status'];\r\n const filteredData = data.map(timeoff => {\r\n return {\r\n 'Asset': timeoff.Name,\r\n 'Asset name': timeoff.AssetName,\r\n 'Request date': timeoff.RequestDate,\r\n 'Status': timeoff.StatusText,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData, { header: requiredColumns });\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 XLData() {\r\n const dataxl = this.MyAssetRequisitionList;\r\n const filenames = 'Myrequestedassets';\r\n this.exportToExcel1(dataxl, filenames);\r\n }\r\n // exportToExcelData(datas, filenames) {\r\n // const Columns = ['Requisitionno', 'Asset', 'Requestdate', 'Requestedqty','Status'];\r\n // const filteredXlData = datas.map(value => {\r\n // return {\r\n // Requisitionno: value.AssetRequisitionId,\r\n // Asset: value.Name,\r\n // Requestdate: value.RequestDate,\r\n // Requestedqty: value.RequestedQty,\r\n // Status: value.StatusText,\r\n // };\r\n // });\r\n // const worksheets = XLSX.utils.json_to_sheet(filteredXlData, { header: Columns });\r\n // const workbooks = XLSX.utils.book_new();\r\n // XLSX.utils.book_append_sheet(workbooks, worksheets, 'Sheet 1');\r\n // XLSX.writeFile(workbooks, `${filenames}.xlsx`);\r\n // }\r\n exportToExcel1(dataxl, filename) {\r\n const requiredColumns = ['Requisition no', 'Asset', 'Request date','Requested qty','Status'];\r\n const filteredData = dataxl.map(o => {\r\n return {\r\n 'Requisition no': o.AssetRequisitionId,\r\n 'Asset': o.Name,\r\n 'Request date': o.RequestDate,\r\n 'Requested qty': o.RequestedQty,\r\n 'Status': o.StatusText,\r\n };\r\n });\r\n const worksheet = XLSX.utils.json_to_sheet(filteredData);\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 resetForm(){\r\n this.controller.reset();\r\n this.assetdetails='';\r\n this.FromDate='';\r\n this.quanity ='';\r\n this.ToDate='';\r\n this.reason='';\r\n this.empid='';\r\n this.DocumentName='';\r\n this.file='';\r\n this.dropdown='';\r\n this.Comment='';\r\n }\r\n validateField(data){\r\n if(data)\r\n {\r\n this.controller.clear();\r\n\r\n }\r\n ValidationRules\r\n .ensure('ToDate').displayName(\"Required\").satisfiesRule('dateError')\r\n .ensure('dropdown').displayName(\"Required asset field\").required()\r\n .ensure('quanity').displayName(\"Requested quantity field\").required()\r\n .ensure('FromDate').displayName(\"Required by field\").required()\r\n .ensure('reason').displayName(\"Reason field\").required()\r\n .on(this.controller);\r\n }\r\n submitForm() {\r\n event.preventDefault();\r\n this.controller.validate()\r\n .then(result => {\r\n if (result.valid) {\r\n if (this.selectedValue === '1' && !this.ToDate) {\r\n this.showToDateValidation = true;\r\n } else {\r\n this.showToDateValidation = false;\r\n let assetrequest = {\r\n AssetCategoryID: this.dropdown,\r\n Description: this.assetdetails,\r\n Requiredby: this.FromDate,\r\n RequestedQunatity: this.quanity,\r\n RequiredPeriodIND: this.selectedValue,\r\n RequiredTillDate: this.ToDate,\r\n ReasonforRequest: this.reason,\r\n // ReasonforReturn: this.reasonss,\r\n EmployeeId: this.empid,\r\n DocumentName: this.DocumentName,\r\n DocumentPath: this.file,\r\n Comments: this.Comment,\r\n };\r\n this.myAssetsService.IsAssetWorkflowApproverExist(this.locid, this.dropdown).then(data => {\r\n if (data == true) {\r\n this.myAssetsService.AddAssetRequisition(assetrequest).then(data => {\r\n this.ErrorMessageShow = false;\r\n this.showSuccessMessage = true;\r\n setTimeout(() => {\r\n this.showSuccessMessage = null\r\n }, 5000);\r\n const errorElement = document.querySelector(\".scrolltoerrorsuccess\");\r\n if (errorElement){\r\n errorElement.scrollIntoView({ behavior: \"auto\", block: \"start\", inline: \"nearest\" });\r\n window.scrollBy(0, -200);\r\n }\r\n this.myAssetsService.GetMyAssetRequisitionList(this.empid).then(data => {\r\n this.MyAssetRequisitionList = data;\r\n });\r\n this.assetdetails = '';\r\n this.FromDate = '';\r\n this.quanity = '';\r\n this.selectedValue = '2';\r\n this.ToDate = '';\r\n this.reason = '';\r\n this.empid = '';\r\n this.DocumentName = '';\r\n this.file = '';\r\n this.dropdown = '';\r\n this.Comment = '';\r\n });\r\n } else {\r\n this.ErrorMessageShow = true;\r\n }\r\n });\r\n }\r\n }else{\r\n const errorElement = document.querySelector(\".scrolltoerrorsuccess\");\r\n if (errorElement) {\r\n errorElement.scrollIntoView({ behavior: \"auto\", block: \"start\", inline: \"nearest\" });\r\n window.scrollBy(0, -200);\r\n }\r\n }\r\n });\r\n }\r\n addToRecentItems(){\r\n this.leavemanagementService.AddToRecentItems(this.empid,this.sitemapid).then(data=>\r\n {\r\n // window.location.reload();\r\n\r\n });\r\n }\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 { myAssetsService } from '../../../shared/services/myassetservices';\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,ProfileService,JwtService,myAssetsService,LeavemanagementService,LoginService,Router)\r\nexport class ViewAssetList {\r\n isDragging = false;\r\n dialog;\r\n static inject = [Element];\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n CategoryId=constants.assetrequestworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,myAssetsService,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.myAssetsService = myAssetsService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.loginservice = loginservice;\r\n this.router = router;\r\n }\r\n activate(viewData){\r\n this.AssetRequisitionId = viewData;\r\n this.status=this.AssetRequisitionId.status;\r\n }\r\n attached(){\r\n this.myAssetsService.GetViewAssetRequisitionDetails(this.empid,this.AssetRequisitionId).then(data => {\r\n this.GetViewAsset = data;\r\n //console.log(data);\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.AssetRequisitionId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n });\r\n }\r\n cancel(){\r\n this.controller.cancel();\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}\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 { myAssetsService } from '../../../shared/services/myassetservices';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport flatpickr from \"flatpickr\";\r\nimport {ValidationControllerFactory, ValidationRules} from 'aurelia-validation';\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,myAssetsService,LeavemanagementService,ValidationControllerFactory,LoginService,Router)\r\nexport class PendingAcknowledgement{\r\n CategoryId=constants.assetrequestworkflowcategoryid;\r\n isDragging = false;\r\n dialog;\r\n static inject = [Element];\r\n constructor(controller, ProfileService,JwtService,myAssetsService,LeavemanagementService,ValidationControllerFactory,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.myAssetsService = myAssetsService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.controllerFactory = ValidationControllerFactory.createForCurrentScope();\r\n this.loginservice = loginservice;\r\n this.router = router;\r\n\r\n ValidationRules\r\n .ensure('ToDate').displayName(\"Return on field is \").required()\r\n .on(this);\r\n }\r\n activate(viewData){\r\n // console.log(viewData);\r\n this.data = viewData;\r\n this.popupTitle=this.data.popupTitle;\r\n this.AssetRequisitionId=this.data.AssetRequisitionId;\r\n this.viewAsset=this.data.AssetStatus;\r\n this.status=this.data.status;\r\n }\r\n attached(){\r\n this.myAssetsService.GetAssetReturnForm(this.empid,this.AssetRequisitionId).then(response=>{\r\n this.assetlist=response ;\r\n this.AssetDetailID=this.assetlist.AssetDetailID,\r\n this.AssetAssignmentID=this.assetlist.AssetAssignmentID\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.AssetRequisitionId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n });\r\n\r\n }\r\n cancel(){\r\n this.controller.cancel();\r\n }\r\n\r\n\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 { myAssetsService } from '../../../shared/services/myassetservices';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {config} from \"../../../shared/services/config\";\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,myAssetsService,LeavemanagementService,LoginService,Router)\r\nexport class ViewMyCurrentAssetsrequest {\r\n isDragging = false;\r\n dialog;\r\n static inject = [Element];\r\n pageSize = 10;\r\n topicsPageSize=10;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n CategoryId=constants.assetrequestworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,myAssetsService,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.myAssetsService = myAssetsService;\r\n this.leavemanagementService = LeavemanagementService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.loginservice = loginservice;\r\n this.router = router;\r\n }\r\n activate(viewData){\r\n this.AssetRequisitionId = viewData;\r\n }\r\n downloadFile(DocumentPath) {\r\n console.log(DocumentPath);\r\n const downloadfile = config.img_url +DocumentPath;\r\n const link = document.createElement('a');\r\n link.href = downloadfile;\r\n link.download = this.DocumentName;\r\n link.target = '_blank';\r\n link.click();\r\n }\r\n attached(){\r\n this.myAssetsService.GetAssetRequisitionDetails(this.AssetRequisitionId).then(data => {\r\n this.RequisitionDetails = data;\r\n //console.log(data);\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.AssetRequisitionId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n //console.log(data)\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n });\r\n }\r\n\r\n cancel(){\r\n this.controller.cancel();\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\r\n\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 { myAssetsService } from '../../../shared/services/myassetservices';\r\nimport {ValidationControllerFactory, ValidationRules} from 'aurelia-validation';\r\nimport {LeavemanagementService} from \"../../../shared/services/leavemanagementservice\";\r\nimport { constants } from '../../../shared/services/constants';\r\nimport {config} from \"../../../shared/services/config\";\r\nimport {LoginService} from \"../../../shared/services/loginservice\";\r\nimport {Router} from 'aurelia-router';\r\n\r\n@inject(DialogController,ProfileService,JwtService,myAssetsService,ValidationControllerFactory,LeavemanagementService,LoginService,Router)\r\nexport class WithDrawRequestedAssets {\r\n isDragging = false;\r\n dialog;\r\n static inject = [Element];\r\n pageSize = config.grid_PazeSize;\r\n topicsPageSize=config.grid_PazeSize;\r\n OnlineTopic = [];\r\n additionalcomments = [];\r\n CategoryId=constants.assetrequestworkflowcategoryid;\r\n constructor(controller, ProfileService,JwtService,myAssetsService,ValidationControllerFactory,LeavemanagementService,loginservice,router) {\r\n this.controller = controller;\r\n this.profileService = ProfileService;\r\n this.jwtService = JwtService;\r\n this.myAssetsService = myAssetsService;\r\n this.empid = this.jwtService.getEmployeeId();\r\n this.leavemanagementService = LeavemanagementService;\r\n this.loginservice = loginservice;\r\n this.router = router;\r\n this.controllerFactory = ValidationControllerFactory.createForCurrentScope();\r\n ValidationRules\r\n .ensure('Reason').required().withMessage('Comments are required.')\r\n .on(this);\r\n }\r\n attached(){\r\n this.myAssetsService.GetAssetRequisitionDetails(this.AssetRequisitionId).then(data => {\r\n this.RequisitionDetails = data;\r\n this.RequisitionDetailIND=this.RequisitionDetails.RequiredPeriodIND;\r\n });\r\n this.leavemanagementService.GetAdditionalComments(this.AssetRequisitionId,this.CategoryId)\r\n .then(data =>{\r\n this.additionalcomments = data;\r\n this.Files = this.additionalcomments.map(option => option.DocumentPath);\r\n });\r\n }\r\n activate(viewData){\r\n this.AssetRequisitionId = viewData;\r\n }\r\n openFileDialog() {\r\n document.getElementById('attachments').click();\r\n }\r\n downloadFile(DocumentPath) {\r\n const downloadfile = config.img_url +DocumentPath;\r\n const link = document.createElement('a');\r\n link.href = downloadfile;\r\n link.download = this.DocumentName;\r\n link.target = '_blank';\r\n link.click();\r\n }\r\n cancel(){\r\n this.controller.cancel();\r\n }\r\n submit(){\r\n this.controllerFactory.validate()\r\n .then(result => {\r\n if (result.valid) {\r\n const data= {\r\n EmployeeID: this.empid,\r\n Comments: this.Reason,\r\n AssetRequisitionID: this.AssetRequisitionId,\r\n DocumentName: this.DocumentName,\r\n DocumentPath: this.file,\r\n };\r\n this.myAssetsService.WithdrawnAsset(data).then(() => {\r\n this.controller.ok(true);\r\n });}\r\n else{\r\n const errorElement = document.querySelector(\".error-messages\");\r\n if (errorElement) {\r\n errorElement.scrollIntoView();\r\n }\r\n }\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}\r\n","// 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/leave-calendar-days.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\";\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/asset-icon.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"../../../images/favourite.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"../../../images/plus-square-green.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_3___ = new URL(\"../../../images/preview-open.svg\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_4___ = new URL(\"../../../images/leave-calendar-days.svg\", 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 ___HTML_LOADER_REPLACEMENT_4___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_4___);\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/leave-calendar-days.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\";\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":""}