{"version":3,"sources":["webpack:///./src/components/ui/form/SelectField.vue","webpack:///src/components/ui/form/SelectField.vue","webpack:///./src/components/ui/form/SelectField.vue?1f28","webpack:///./src/components/ui/form/SelectField.vue?8450","webpack:///./src/views/timesheet/Download.vue","webpack:///src/views/timesheet/Download.vue","webpack:///./src/views/timesheet/Download.vue?e2cd","webpack:///./src/views/timesheet/Download.vue?eb0f","webpack:///./src/views/timesheet/Download.vue?6b81"],"names":["render","_vm","this","_c","_self","attrs","items","itemText","itemValue","returnObject","label","validate","v","on","$event","$emit","onChange","staticRenderFns","props","type","Array","required","String","default","Boolean","data","methods","event","component","staticClass","class","alertType","model","value","alert","callback","$$v","expression","_v","_s","alertMessage","ref","valid","salaryCycles","selectedCycle","formData","salaryCycle","$set","rotations","selectedRotation","rotation","timeSheets","length","scopedSlots","_u","key","fn","_l","headers","item","headerName","timesheet","employeeId","name","timesheetItems","index","timesheetItemDate","show","hoursWorked","_e","proxy","showDownload","isTimesheet","onDownload","components","Button","SelectField","selectedPersonnel","requestId","personnel","search","personnelSearch","requestType","selected","serverTimeSheets","searching","creating","showAlertMessage","message","_this","timesheetService","downloadTimesheet","then","result","now","moment","format","fileName","concat","url","window","URL","createObjectURL","Blob","link","document","createElement","href","setAttribute","body","appendChild","click","catch","error","console","log","_this2","undefined","filterTimesheet","id","createTimesheetTable","_this3","salaryData","_this4","dateArr","prevDate","startDate","nextDate","endDate","start","Date","end","push","date","newDate","setDate","getDate","newTimesheets","forEach","newTimesheetItems","header","timeSheetItem","find","Object","assign","timesheetId","isRegular","isOvertime","isShift","names","employee","firstName","lastName","newTimesheet","prnumber","salaryPeriodId","rotationHours","onReset","$refs","salarycomponent","reset","mounted","_this5","salaryPeriodService","getOpenSalaryPeriod","rotationService","getAllRotation"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,WAAW,CAACE,MAAM,CAAC,MAAQJ,EAAIK,M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AxD,KAAAsF,EACAK,SAAA7F,EAAAyF,SAAAI,SACA5F,WAAAD,EAAAC,WACA6F,eAAAhC,EAAA9E,SAAAC,YAAAyE,GACAvD,eAAA2E,EACAiB,cAAA,GAGAjC,EAAApD,cAAA,EACAkE,EAAAL,KAAAqB,MAGA,KAAAtG,WAAAsF,IAGAoB,QAAA,WACA,KAAAC,MAAAC,gBAAAC,UAGAC,QAAA,eAAAC,EAAA,KACAC,OAAAC,sBAAAxE,MAAA,SAAAC,GACAqE,EAAAvH,aAAAkD,EAAApE,QACAuF,OAAA,SAAAC,GACAC,QAAAC,IAAAF,MAGAoD,OAAAC,iBAAA1E,MAAA,SAAAC,GACAqE,EAAAlH,UAAA6C,EAAApE,KAAAnB,WC1OgW,I,wBCQ5VsB,EAAY,eACd,EACA5B,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAW,E,kECnBf","file":"js/chunk-2aeb287b.bc395535.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-select',{attrs:{\"items\":_vm.items,\"item-text\":_vm.itemText,\"item-value\":_vm.itemValue,\"dense\":\"\",\"outlined\":\"\",\"return-object\":_vm.returnObject,\"label\":_vm.label,\"rules\":_vm.validate ? [v => !!v || 'Item is required'] : []},on:{\"input\":function($event){return _vm.$emit('input', $event)},\"change\":_vm.onChange}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectField.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectField.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectField.vue?vue&type=template&id=39a72acb&scoped=true\"\nimport script from \"./SelectField.vue?vue&type=script&lang=js\"\nexport * from \"./SelectField.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"39a72acb\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-app',[_c('div',[_c('v-alert',{staticClass:\"alert\",class:{'alert-error':_vm.alertType=='error', 'alert-success':_vm.alertType=='success'},attrs:{\"dark\":\"\",\"dismissible\":\"\",\"border\":\"left\"},model:{value:(_vm.alert),callback:function ($$v) {_vm.alert=$$v},expression:\"alert\"}},[_vm._v(\" \"+_vm._s(_vm.alertMessage)+\" \")])],1),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6 ml-auto mr-auto\"},[_c('div',{staticClass:\"mb-8 mt-8 text-center\"},[_c('h1',[_vm._v(\"Download Timesheet\")])]),_c('v-form',{ref:\"salarycomponent\",model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('SelectField',{attrs:{\"items\":_vm.salaryCycles,\"label\":'Salary Cycle',\"itemText\":'description',\"itemValue\":'id',\"returnObject\":true},on:{\"input\":_vm.selectedCycle},model:{value:(_vm.formData.salaryCycle),callback:function ($$v) {_vm.$set(_vm.formData, \"salaryCycle\", $$v)},expression:\"formData.salaryCycle\"}})],1),_c('v-col',[_c('SelectField',{attrs:{\"items\":_vm.rotations,\"label\":'Rotation',\"itemText\":'name',\"itemValue\":'id',\"returnObject\":true},on:{\"input\":_vm.selectedRotation},model:{value:(_vm.formData.rotation),callback:function ($$v) {_vm.$set(_vm.formData, \"rotation\", $$v)},expression:\"formData.rotation\"}})],1)],1)],1)],1)]),(_vm.timeSheets.length > 0 )?_c('div',{staticClass:\"scroll row\"},[_c('div',{staticClass:\"col-md-10 col-sm-12 ml-auto mr-auto\"},[_c('v-simple-table',{scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('thead',[_c('tr',[_c('th',[_vm._v(\"Personnel\")]),_vm._l((_vm.headers),function(item){return _c('th',{key:item.headerName},[_vm._v(_vm._s(item.headerName))])})],2)]),_c('tbody',_vm._l((_vm.timeSheets),function(timesheet){return _c('tr',{key:timesheet.employeeId},[_c('td',[_vm._v(\" \"+_vm._s(timesheet.name)+\" \")]),_vm._l((timesheet.timesheetItems),function(item,index){return _c('td',{key:item.timesheetItemDate},[(timesheet.timesheetItems[index].show === true)?_c('span',[_c('span',[_vm._v(_vm._s(timesheet.timesheetItems[index].hoursWorked))])]):_vm._e(),(timesheet.timesheetItems[index].show === false)?_c('span',[_c('b',[_vm._v(_vm._s(timesheet.timesheetItems[index].type))])]):_vm._e()])})],2)}),0)]},proxy:true}],null,false,3461433138)})],1)]):_vm._e(),(_vm.showDownload)?_c('v-row',[_c('v-col',{staticClass:\"col-md-11 col-sm-12 mt-5 d-flex justify-end\"},[_c('Button',{attrs:{\"label\":'Download',\"btnType\":'Submit',\"isLoading\":_vm.isTimesheet},on:{\"onClick\":_vm.onDownload}})],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Download.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Download.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Download.vue?vue&type=template&id=7dc0b2ca&scoped=true\"\nimport script from \"./Download.vue?vue&type=script&lang=js\"\nexport * from \"./Download.vue?vue&type=script&lang=js\"\nimport style0 from \"./Download.vue?vue&type=style&index=0&id=7dc0b2ca&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7dc0b2ca\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Download.vue?vue&type=style&index=0&id=7dc0b2ca&prod&scoped=true&lang=css\""],"sourceRoot":""}