{"version":3,"sources":["webpack:///./src/views/end-of-contract/index.vue?9b69","webpack:///./src/views/end-of-contract/index.vue","webpack:///src/views/end-of-contract/index.vue","webpack:///./src/views/end-of-contract/index.vue?ca99","webpack:///./src/views/end-of-contract/index.vue?7e32","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":["render","_vm","this","_c","_self","staticClass","class","alertType","attrs","model","value","alert","callback","$$v","expression","_v","_s","alertMessage","scopedSlots","_u","key","fn","proxy","ref","valid","exitDate","exitMonth","exitYear","BenefitHeader","Benefits","_ref","headers","item","length","_l","benefits","index","description","amount","directives","name","rawName","multiplier","domProps","on","$event","target","composing","$set","isLoading","dialog","onReset","onSave","staticRenderFns","components","TextField","Button","ConfirmationDialog","data","terminalItemValid","search","exitReasonId","text","watch","val","Date","getMonth","toString","getFullYear","methods","openPersonnelSearchModal","$refs","personnelSearch","openModal","showAlertMessage","message","type","loadContractEmployees","_this","benefitService","endOfContract","then","result","catch","error","console","log","_this2","forEach","ben","terminalBenefitItems","terminalBen","push","salaryComponentId","EmployeeId","employee","id","$store","dispatch","CREATE_TERMINALBENEFIT","finally","reset","formData","personnelName","onBoardingDate","salary","workLocation","costCenter","mounted","component","show","title","btnTitle","loading","btnAction","stopPropagation","props","String","Boolean","computed","get","set","$emit"],"mappings":"kHAAA,W,iECAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,QAAQ,CAACA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,YAAY,QAAQC,MAAM,CACzH,cAAgC,SAAjBL,EAAIM,UACnB,gBAAkC,WAAjBN,EAAIM,WACrBC,MAAM,CAAC,OAAS,OAAO,KAAO,GAAG,YAAc,IAAIC,MAAM,CAACC,MAAOT,EAAIU,MAAOC,SAAS,SAAUC,GAAMZ,EAAIU,MA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AG,WAAW,CAACK,MAAM,CAAC,WAAa,GAAG,YAAY,OAAOC,MAAM,CAACC,MAAOT,EAAI6G,KAAMlG,SAAS,SAAUC,GAAMZ,EAAI6G,KAAKjG,GAAKC,WAAW,SAAS,CAACX,EAAG,SAAS,CAACA,EAAG,eAAe,CAACE,YAAY,wBAAwB,CAACF,EAAG,KAAK,CAACF,EAAIc,GAAGd,EAAIe,GAAGf,EAAI8G,YAAY5G,EAAG,YAAY,CAACE,YAAY,cAAcF,EAAG,iBAAiB,CAACA,EAAG,YAAYA,EAAG,SAAS,CAACE,YAAY,OAAOG,MAAM,CAAC,MAAQP,EAAI+G,SAAS,QAAU,SAAS,UAAY/G,EAAIgH,SAASrE,GAAG,CAAC,QAAU3C,EAAIiH,aAAa/G,EAAG,QAAQ,CAACK,MAAM,CAAC,MAAQ,iBAAiB,KAAO,IAAIoC,GAAG,CAAC,MAAQ,SAASC,GAAQA,EAAOsE,kBAAkBlH,EAAI6G,MAAK,KAAS,CAAC7G,EAAIc,GAAG,SAAS,IAAI,IAAI,IAErqBsC,EAAkB,G,YCmBP,GACfC,WAAA,CACAE,eAEA4D,MAAA,CACAL,MAAA,CACAnC,KAAAyC,QAEAL,SAAA,CACApC,KAAAyC,QAEAnE,OAAA,CACA0B,KAAA0C,SAEArE,UAAA,CACA2B,KAAA0C,UAGAC,SAAA,CACAT,KAAA,CACAU,IAAA,WACA,YAAAtE,QAEAuE,IAAA,SAAAvE,GACAA,GACA,KAAAwE,MAAA,WAIAT,QAAA,CACAO,IAAA,WACA,YAAAvE,WAEAwE,IAAA,SAAAxE,GACAA,GACA,KAAAyE,MAAA,YAKArD,QAAA,CACA6C,UAAA,WACA,KAAAQ,MAAA,gBC/D0W,I,YCOtWb,EAAY,eACd,EACA7G,EACAqD,GACA,EACA,KACA,KACA,MAIa,OAAAwD,E","file":"js/chunk-7854687e.754de6b8.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!./index.vue?vue&type=style&index=0&id=8540d378&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:{\n 'alert-error': _vm.alertType == 'error',\n 'alert-success': _vm.alertType == 'success',\n },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-8 ml-auto mr-auto\"},[_c('div',{staticClass:\"mb-8 mt-8 text-center\"},[_c('h1',[_vm._v(\"End of Contract\")])]),_c('v-expansion-panels',{staticClass:\"mb-5\"},[_c('v-expansion-panel',[_c('v-expansion-panel-header',{scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('v-icon',{attrs:{\"color\":\"primary\"}},[_vm._v(\" $expand \")])]},proxy:true}])},[_vm._v(\" Exit Date \")]),_c('v-expansion-panel-content',[_c('v-col',{attrs:{\"cols\":\"10\",\"offset\":\"1\"}},[_c('v-form',{ref:\"endOfContract\",model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('TextField',{attrs:{\"type\":'date',\"label\":'Exit Date'},model:{value:(_vm.exitDate),callback:function ($$v) {_vm.exitDate=$$v},expression:\"exitDate\"}})],1),_c('v-col',{staticClass:\"pr-1\",attrs:{\"cols\":\"6\"}},[_c('TextField',{attrs:{\"type\":'number',\"disable\":true,\"label\":'Exit Month'},model:{value:(_vm.exitMonth),callback:function ($$v) {_vm.exitMonth=$$v},expression:\"exitMonth\"}})],1),_c('v-col',{staticClass:\"pl-1\",attrs:{\"cols\":\"6\"}},[_c('TextField',{attrs:{\"type\":'number',\"disable\":true,\"label\":'Exit Year'},model:{value:(_vm.exitYear),callback:function ($$v) {_vm.exitYear=$$v},expression:\"exitYear\"}})],1)],1)],1)],1)],1)],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-data-table',{attrs:{\"headers\":_vm.BenefitHeader,\"items\":_vm.Benefits,\"single-expand\":false,\"item-key\":\"employee.id\",\"show-expand\":\"\"},scopedSlots:_vm._u([{key:\"expanded-item\",fn:function({headers, item }){return [_c('td',{staticClass:\"pa-0\",attrs:{\"colspan\":headers.length}},[_c('table',{staticClass:\"sub-table\"},[_c('tr',{staticClass:\"table-header\"},[_c('td',[_vm._v(\"Salary Component\")]),_c('td',[_vm._v(\"Amount\")]),_c('td',[_vm._v(\"Multiplier\")])]),_vm._l((item.benefits),function(benefits,index){return _c('tr',{key:index,staticClass:\"table-body\"},[_c('td',[_vm._v(_vm._s(benefits.description))]),_c('td',[_vm._v(_vm._s(benefits.amount))]),_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(benefits.multiplier),expression:\"benefits.multiplier\"}],staticClass:\"input\",attrs:{\"type\":\"text\"},domProps:{\"value\":(benefits.multiplier)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(benefits, \"multiplier\", $event.target.value)}}})])])})],2)])]}}])})],1)],1)],1)]),_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.isLoading},on:{\"onClick\":function($event){_vm.dialog = true}}}),_c('Button',{attrs:{\"label\":'Reset',\"btnType\":'Cancel'},on:{\"onClick\":_vm.onReset}})],1)],1),_c('ConfirmationDialog',{attrs:{\"title\":'Are you sure you want to submit?',\"isLoading\":_vm.isLoading,\"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","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!./index.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!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=8540d378&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=8540d378&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 \"8540d378\",\n null\n \n)\n\nexport default component.exports","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":""}