{"version":3,"sources":["webpack:///./node_modules/core-js/internals/same-value.js","webpack:///./src/views/timesheet/UploadTimesheet.vue?f3b1","webpack:///./src/views/timesheet/UploadTimesheet.vue","webpack:///src/views/timesheet/UploadTimesheet.vue","webpack:///./src/views/timesheet/UploadTimesheet.vue?9007","webpack:///./src/views/timesheet/UploadTimesheet.vue?577e","webpack:///./node_modules/core-js/modules/es.string.search.js","webpack:///./src/components/ui/confirmationDialog.vue","webpack:///src/components/ui/confirmationDialog.vue","webpack:///./src/components/ui/confirmationDialog.vue?0e04","webpack:///./src/components/ui/confirmationDialog.vue?dbad"],"names":["module","exports","Object","is","x","y","render","_vm","this","_c","_self","staticClass","class","alertType","attrs","model","value","alert","callback","$$v","expression","_v","_s","alertMessage","ref","valid","salaryCycles","on","selectedCycle","formData","salaryCycle","$set","fileChange","creating","uploadFile","timeSheets","length","scopedSlots","_u","key","fn","_l","headers","item","headerName","timesheet","employeeId","$event","removePersonnel","name","timesheetItems","index","timesheetItemDate","show","directives","rawName","hoursWorked","domProps","updateWorkHour","target","composing","_e","type","proxy","isTimesheet","dialog","onReset","onSave","staticRenderFns","components","SelectField","Button","ConfirmationDialog","props","data","selectedPersonnel","requestId","personnel","search","personnelSearch","requestType","selected","uploadedTimesheets","searching","searchHeaders","text","personnelHeaders","glutenfree","timesheetFile","methods","files","reader","FileReader","salaryCycleId","id","that","readAsBinaryString","onload","e","result","workbook","XLXS","read","SheetNames","forEach","sheet","rowData","utils","sheet_to_row_object_array","Sheets","newTimesheets","newTimesheetItems","header","workHour","dateString","isNaN","push","date","isRegular","isOvertime","isShift","newTimesheet","prNumber","Name","salaryPeriodId","error","fileUpload","showAlertMessage","message","_this","$store","dispatch","UPLOAD_TIMESHEET","then","res","catch","generateTimesheet","_this2","payload","finally","selectPersonnel","salaryData","dateArr","prevDate","moment","startDate","format","nextDate","endDate","start","Date","end","newDate","setDate","getDate","createTimesheetTable","timeSheetJson","_this3","PRNumber","EmployeeName","openPersonnelSearchModal","$refs","openModal","filter","timeSheet","closePersonnelSearchModal","closeModal","salarycomponent","reset","personnelSearchFunction","_this4","employeeService","searchPersonnel","mounted","_this5","salaryPeriodService","getOpenSalaryPeriod","component","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","requireObjectCoercible","sameValue","toString","getMethod","regExpExec","SEARCH","nativeSearch","maybeCallNative","regexp","O","searcher","undefined","RegExp","string","rx","S","done","previousLastIndex","lastIndex","title","btnTitle","loading","btnAction","stopPropagation","String","Boolean","isLoading","computed","get","set","$emit"],"mappings":"kHAIAA,EAAOC,QAAUC,OAAOC,IAAM,SAAYC,EAAGC,GAE3C,OAAOD,IAAMC,EAAU,IAAND,GAAW,EAAIA,IAAM,EAAIC,EAAID,IAAMA,GAAKC,IAAMA,I,oCCNjE,W,yDCAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,YAAY,QAAQC,MAAM,CAAC,cAA6B,SAAfL,EAAIM,UAAoB,gBAA+B,WAAfN,EAAIM,WAAsBC,MAAM,CAAC,KAAO,GAAG,YAAc,GAAG,OAAS,QAAQC,MAAM,CAACC,MAAOT,EAAIU,MAAOC,SAAS,SAAUC,GAAMZ,EAAIU,MAAME,GAAKC,WAAW,UAAU,CAACb,EAAIc,GAAG,IAAId,EAAIe,GAAGf,EAAIgB,cAAc,QAAQ,GAAGd,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAACF,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,KAAK,CAACF,EAAIc,GAAG,wBAAwBZ,EAAG,SAAS,CAACe,IAAI,kBAAkBT,MAAM,CAACC,MAAOT,EAAIkB,MAAOP,SAAS,SAAUC,GAAMZ,EAAIkB,MAAMN,GAAKC,WAAW,UAAU,CAACX,EAAG,QAAQ,CAACK,MAAM,CAAC,aAAa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AAA,CACAE,eAEAE,MAAA,CACAgI,MAAA,CACA3I,KAAAgJ,QAEAJ,SAAA,CACA5I,KAAAgJ,QAEA7I,OAAA,CACAH,KAAAiJ,SAEAC,UAAA,CACAlJ,KAAAiJ,UAGAE,SAAA,CACA5J,KAAA,CACA6J,IAAA,WACA,YAAAjJ,QAEAkJ,IAAA,SAAAlJ,GACAA,GACA,KAAAmJ,MAAA,WAIAT,QAAA,CACAO,IAAA,WACA,YAAAF,WAEAG,IAAA,SAAAH,GACAA,GACA,KAAAI,MAAA,YAKA3H,QAAA,CACAmH,UAAA,WACA,KAAAQ,MAAA,gBC/D0W,I,YCOtWnC,EAAY,eACd,EACA3K,EACA8D,GACA,EACA,KACA,KACA,MAIa,OAAA6G,E","file":"js/chunk-c13fa848.e04f59fc.js","sourcesContent":["'use strict';\n// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;\n};\n","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!./UploadTimesheet.vue?vue&type=style&index=0&id=ce27087c&prod&scoped=true&lang=css\"","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(\"Upload 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('v-file-input',{attrs:{\"show-size\":\"\",\"outlined\":\"\",\"dense\":\"\",\"accept\":\".xls, .xlsx\",\"label\":\"Select a file\"},on:{\"change\":_vm.fileChange}})],1),_c('v-col',{staticClass:\"d-flex justify-end\",attrs:{\"cols\":\"12\"}},[_c('Button',{attrs:{\"label\":'Upload Timesheet',\"btnType\":'Submit',\"isLoading\":_vm.creating},on:{\"onClick\":_vm.uploadFile}})],1)],1)],1)],1)]),(_vm.timeSheets.length > 0)?_c('div',{staticClass:\"scroll row\"},[_c('div',{staticClass:\"col-md-11 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',[_c('div',{staticClass:\"actionBtn\"},[_c('v-icon',{attrs:{\"color\":\"red\",\"small\":\"\"},on:{\"click\":function($event){return _vm.removePersonnel(timesheet)}}},[_vm._v(\"mdi-delete\")]),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(timesheet.name))])],1)]),_vm._l((timesheet.timesheetItems),function(item,index){return _c('td',{key:item.timesheetItemDate},[(timesheet.timesheetItems[index].show === true)?_c('span',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(timesheet.timesheetItems[index].hoursWorked),expression:\"timesheet.timesheetItems[index].hoursWorked\"}],staticClass:\"hour-input\",attrs:{\"type\":\"Number\",\"min\":\"0\",\"max\":\"timesheet.rotationHours\",\"value\":\"timesheet.timesheetItems[index].rotationHours\"},domProps:{\"value\":(timesheet.timesheetItems[index].hoursWorked)},on:{\"blur\":_vm.updateWorkHour,\"input\":function($event){if($event.target.composing)return;_vm.$set(timesheet.timesheetItems[index], \"hoursWorked\", $event.target.value)}}})]):_vm._e(),(timesheet.timesheetItems[index].show === false)?_c('span',{staticClass:\"offday\"},[_c('b',[_vm._v(_vm._s(timesheet.timesheetItems[index].type))])]):_vm._e()])})],2)}),0)]},proxy:true}],null,false,1366188055)})],1)]):_vm._e(),(_vm.timeSheets.length > 0)?_c('v-row',[_c('v-col',{staticClass:\"d-flex justify-end\",attrs:{\"cols\":\"11 mt-5\"}},[_c('Button',{staticClass:\"mr-4\",attrs:{\"label\":'Submit',\"btnType\":'Submit',\"disabled\":!_vm.valid,\"isLoading\":_vm.isTimesheet},on:{\"onClick\":function($event){_vm.dialog = true}}}),_c('Button',{attrs:{\"label\":'Reset',\"btnType\":'Cancel'},on:{\"onClick\":_vm.onReset}})],1)],1):_vm._e(),_c('ConfirmationDialog',{attrs:{\"title\":'Are you sure you want to submit?',\"isLoading\":_vm.isTimesheet,\"dialog\":_vm.dialog,\"btnTitle\":'Yes'},on:{\"close\":function($event){_vm.dialog = false},\"btnAction\":_vm.onSave}})],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!./UploadTimesheet.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!./UploadTimesheet.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UploadTimesheet.vue?vue&type=template&id=ce27087c&scoped=true\"\nimport script from \"./UploadTimesheet.vue?vue&type=script&lang=js\"\nexport * from \"./UploadTimesheet.vue?vue&type=script&lang=js\"\nimport style0 from \"./UploadTimesheet.vue?vue&type=style&index=0&id=ce27087c&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 \"ce27087c\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.es/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);\n return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@search\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeSearch, rx, S);\n\n if (res.done) return res.value;\n\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline text-center\"},[_c('h3',[_vm._v(_vm._s(_vm.title))])]),_c('v-divider',{staticClass:\"mx-4 mb-5\"}),_c('v-card-actions',[_c('v-spacer'),_c('Button',{staticClass:\"mr-4\",attrs:{\"label\":_vm.btnTitle,\"btnType\":'Submit',\"isLoading\":_vm.loading},on:{\"onClick\":_vm.btnAction}}),_c('v-btn',{attrs:{\"color\":\"green darken-1\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.show=false}}},[_vm._v(\"No\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./confirmationDialog.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!./confirmationDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./confirmationDialog.vue?vue&type=template&id=72eed400\"\nimport script from \"./confirmationDialog.vue?vue&type=script&lang=js\"\nexport * from \"./confirmationDialog.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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}