{"version":3,"sources":["webpack:///./src/views/reports/Personnel.vue?c48a","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/reports/Personnel.vue","webpack:///src/views/reports/Personnel.vue","webpack:///./src/views/reports/Personnel.vue?ecf6","webpack:///./src/views/reports/Personnel.vue?c9c5"],"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","contractEmployers","contractEmployerChange","contractEmployerId","downloadFormat","onSelectedFormat","formData","selectedFormat","$set","onDownload","isLoading","headers","employeeList","searchPersonnel","scopedSlots","_u","key","fn","_ref","item","_f","lastModifiedDate","_ref2","firstName","lastName","middleName","components","SelectField","Button","search","userRole","appRoles","name","id","personnel","valid","isSavingUser","allLoading","text","computed","showAlertMessage","message","_this","setTimeout","edit","$router","push","concat","openDeleteModal","$refs","deleteModal","toggleModal","resetForm","cancel","modal","editModal","_this2","employeeService","getEmployeesByEmployerId","then","result","catch","getAllEmployee","_this3","getAllEmployees","mounted","_this4","Roles","userService","getCurrentUser","roleName","contractEmployerService","getAllContractEmployers","unshift"],"mappings":"kHAAA,W,oCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,WAAW,CAACE,MAAM,CAAC,MAAQJ,EAAIK,MAAM,YAAYL,EAAIM,SAAS,aAAaN,EAAIO,UAAU,MAAQ,GAAG,SAAW,GAAG,gBAAgBP,EAAIQ,aAAa,MAAQR,EAAIS,MAAM,MAAQT,EAAIU,SAAW,CAAC,SAAAC,GAAC,QAAMA,GAAK,qBAAsB,IAAIC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,M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AA2B,GAAA,IAEAoB,OAAA,SAAAC,GACA,cAAAA,GACA,KAAAL,MAAAM,UAAAJ,cAEA,gBAAAG,GACA,KAAAL,MAAAC,YAAAC,eAGAjD,uBAAA,SAAAiB,GAAA,IAAAqC,EAAA,KACA,KAAA5C,aAAA,GACA,KAAAF,WAAA,EACA,KAAAS,EAIAsC,OAAAC,yBAAAvC,GAAAwC,MAAA,SAAAC,GACAJ,EAAA5C,aAAAgD,EAAA3E,KAAAnB,MACA0F,EAAA9C,WAAA,KACAmD,OAAA,WACAL,EAAA9C,WAAA,KAPA,KAAAoD,kBAUAA,eAAA,eAAAC,EAAA,KACAN,OAAAO,kBAAAL,MAAA,SAAAC,GACAG,EAAAnD,aAAAgD,EAAA3E,KAAAnB,MACAiG,EAAArD,WAAA,KACAmD,OAAA,WACAE,EAAArD,WAAA,MAGAL,iBAAA,SAAAZ,GACA,KAAAc,eAAAd,EAAAwC,IAEAxB,WAAA,cAIAwD,QAAA,eAAAC,EAAA,KACA,KAAAxD,WAAA,EACA,KAAAqB,SAAAoC,OAEAC,OAAAC,iBAAAV,MAAA,SAAAC,GACAM,EAAApC,SAAA8B,EAAA3E,KAAAqF,YAGAC,OAAAC,0BAAAb,MAAA,SAAAC,GACAM,EAAAjE,kBAAA2D,EAAA3E,KAAAnB,MACAoG,EAAAjE,kBAAAwE,QAAA,uBAGA,KAAAX,mBCpPiW,I,wBCQ7V1E,EAAY,eACd,EACA5B,EACAiB,GACA,EACA,KACA,WACA,MAIa,aAAAW,E","file":"js/chunk-2f00491a.aa1216a2.js","sourcesContent":["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!./Personnel.vue?vue&type=style&index=0&id=71a5dedf&prod&scoped=true&lang=css\"","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 !!v || 'Item is required'] : []\"\r\n @input=\"$emit('input', $event)\"\r\n @change=\"onChange\"\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!./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:{\"border\":\"left\",\"dark\":\"\",\"dismissible\":\"\"},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-12 ml-auto mr-auto\"},[_c('v-container',[_c('div',{staticClass:\"mb-8 mt-8 text-center\"},[_c('h1',[_vm._v(\"List of Personnel\")])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6\"},[_c('SelectField',{attrs:{\"items\":_vm.contractEmployers,\"label\":'Contractor Employer',\"itemText\":'name',\"itemValue\":'id'},on:{\"onChange\":_vm.contractEmployerChange},model:{value:(_vm.contractEmployerId),callback:function ($$v) {_vm.contractEmployerId=$$v},expression:\"contractEmployerId\"}})],1),_c('div',{staticClass:\"col-md-6\"},[_c('div',{staticClass:\"export-container\"},[_c('SelectField',{attrs:{\"items\":_vm.downloadFormat,\"label\":'Download Format',\"itemText\":'name',\"itemValue\":'id',\"returnObject\":true},on:{\"input\":_vm.onSelectedFormat},model:{value:(_vm.formData.selectedFormat),callback:function ($$v) {_vm.$set(_vm.formData, \"selectedFormat\", $$v)},expression:\"formData.selectedFormat\"}}),_c('Button',{attrs:{\"label\":'Download',\"btnType\":'Submit'},on:{\"onClick\":_vm.onDownload}})],1)])]),_c('v-data-table',{attrs:{\"loading-text\":\"Loading personnel. Please wait....\",\"loading\":_vm.isLoading,\"headers\":_vm.headers,\"items\":_vm.employeeList,\"search\":_vm.searchPersonnel,\"item-key\":\"id\"},scopedSlots:_vm._u([{key:\"item.lastModifiedDate\",fn:function({ item }){return [_vm._v(\" \"+_vm._s(_vm._f(\"formatDate\")(item.lastModifiedDate))+\" \")]}},{key:\"item.firstName\",fn:function({ item }){return [_c('span',[_vm._v(_vm._s(item.firstName)+\", \"+_vm._s(item.lastName)+\" \"+_vm._s(item.middleName))])]}}])})],1)],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n{{alertMessage}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n List of Personnel\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{item.lastModifiedDate | formatDate}}\r\n \r\n \r\n {{ item.firstName }}, {{ item.lastName }} {{ item.middleName}}\r\n \r\n \r\n \r\n \r\n \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!./Personnel.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!./Personnel.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Personnel.vue?vue&type=template&id=71a5dedf&scoped=true\"\nimport script from \"./Personnel.vue?vue&type=script&lang=js\"\nexport * from \"./Personnel.vue?vue&type=script&lang=js\"\nimport style0 from \"./Personnel.vue?vue&type=style&index=0&id=71a5dedf&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 \"71a5dedf\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}