{"version":3,"sources":["webpack:///./src/views/unionMember/add.vue","webpack:///src/views/unionMember/add.vue","webpack:///./src/views/unionMember/add.vue?a369","webpack:///./src/views/unionMember/add.vue?ba12","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/components/ui/confirmationDialog.vue","webpack:///src/components/ui/confirmationDialog.vue","webpack:///./src/components/ui/confirmationDialog.vue?0e04","webpack:///./src/components/ui/confirmationDialog.vue?dbad","webpack:///./src/views/unionMember/add.vue?98dc"],"names":["render","_vm","this","_c","_self","staticClass","class","alertType","attrs","model","value","alert","callback","$$v","expression","_v","_s","alertMessage","unionMembers","formData","unionMember","$set","_l","salaryComponents","item","index","key","id","description","frequency","on","$event","valueInputed","values","amountLabel","isLoading","dialog","reset","save","staticRenderFns","components","SelectField","Button","ConfirmationDialog","data","jobTitle","salaryComponent1","value1","salaryComponent2","value2","salaryComponent3","value3","jobTitles","selected","methods","showAlertMessage","message","type","loadUnionMembers","_this","unionMemberService","getAllUnionMembers","then","result","catch","error","console","log","valueData","i","length","splice","push","_this2","forEach","sel","createUnionAllowance","finally","mounted","_this3","jobTitleService","getAllJobTitles","items","salaryComponentService","getAllUnionAllowance","component","itemText","itemValue","returnObject","label","validate","v","$emit","onChange","props","Array","required","String","default","Boolean","event","show","title","btnTitle","loading","btnAction","stopPropagation","computed","get","set"],"mappings":"8LAAIA,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,OAAS,OAAO,KAAO,GAAG,YAAc,IAAIC,MAAM,CAACC,MAAOT,EAAIU,MAAOC,SAAS,SAAUC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,EAAIe,GAAGf,EAAIqG,YAAYnG,EAAG,YAAY,CAACE,YAAY,cAAcF,EAAG,iBAAiB,CAACA,EAAG,YAAYA,EAAG,SAAS,CAACE,YAAY,OAAOG,MAAM,CAAC,MAAQP,EAAIsG,SAAS,QAAU,SAAS,UAAYtG,EAAIuG,SAAS1E,GAAG,CAAC,QAAU7B,EAAIwG,aAAatG,EAAG,QAAQ,CAACK,MAAM,CAAC,MAAQ,iBAAiB,KAAO,IAAIsB,GAAG,CAAC,MAAQ,SAASC,GAAQA,EAAO2E,kBAAkBzG,EAAIoG,MAAK,KAAS,CAACpG,EAAIc,GAAG,SAAS,IAAI,IAAI,IAErqBwB,EAAkB,G,YCmBP,GACfC,WAAA,CACAE,eAEAoD,MAAA,CACAQ,MAAA,CACA7C,KAAAwC,QAEAM,SAAA,CACA9C,KAAAwC,QAEA7D,OAAA,CACAqB,KAAA0C,SAEAhE,UAAA,CACAsB,KAAA0C,UAGAQ,SAAA,CACAN,KAAA,CACAO,IAAA,WACA,YAAAxE,QAEAyE,IAAA,SAAAzE,GACAA,GACA,KAAAwD,MAAA,WAIAY,QAAA,CACAI,IAAA,WACA,YAAAzE,WAEA0E,IAAA,SAAA1E,GACAA,GACA,KAAAyD,MAAA,YAKAtC,QAAA,CACAmD,UAAA,WACA,KAAAb,MAAA,gBC/D0W,I,YCOtWP,EAAY,eACd,EACArF,EACAuC,GACA,EACA,KACA,KACA,MAIa,OAAA8C,E,6CClBf","file":"js/chunk-75851f51.92cf8bf3.js","sourcesContent":["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-6 ml-auto mr-auto\"},[_c('div',{staticClass:\"mb-8 mt-8 text-center\"},[_c('h1',[_vm._v(\"Configure Allowances\")])]),_c('div',[_c('SelectField',{attrs:{\"items\":_vm.unionMembers,\"label\":'Representation Status',\"itemText\":'name',\"itemValue\":'id'},model:{value:(_vm.formData.unionMember),callback:function ($$v) {_vm.$set(_vm.formData, \"unionMember\", $$v)},expression:\"formData.unionMember\"}})],1),_c('div',[_c('v-simple-table',[[_c('thead',[_c('tr',[_c('th',{staticClass:\"text-left\"},[_vm._v(\" Salary component \")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\" Frequency \")]),_c('th',{staticClass:\"text-left\"},[_vm._v(\" Amount / Rate \")])])]),_c('tbody',_vm._l((_vm.salaryComponents),function(item,index){return _c('tr',{key:item.id},[_c('td',[_vm._v(\" \"+_vm._s(item.description)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.frequency)+\" \")]),_c('td',[_c('v-text-field',{staticClass:\"mt-4\",attrs:{\"type\":\"number\",\"value\":\"0\",\"outlined\":\"\",\"hide-details\":\"\",\"dense\":\"\"},on:{\"blur\":function($event){return _vm.valueInputed(item,_vm.formData.values[index])}},model:{value:(_vm.formData.values[index]),callback:function ($$v) {_vm.$set(_vm.formData.values, index, $$v)},expression:\"formData.values[index]\"}}),_c('p',{staticClass:\"hint\"},[_vm._v(_vm._s(item.amountLabel))])],1)])}),0)]],2),_c('v-row',{staticClass:\"mt-5\"},[_c('v-col',{staticClass:\"d-flex justify-end\"},[_c('Button',{staticClass:\"mr-2\",attrs:{\"btnType\":'Submit',\"label\":'Submit',\"isLoading\":_vm.isLoading},on:{\"onClick\":function($event){_vm.dialog = true}}}),_c('Button',{attrs:{\"btnType\":'Cancel',\"label\":'Reset'},on:{\"onClick\":_vm.reset}})],1)],1)],1)])]),_c('ConfirmationDialog',{attrs:{\"title\":'Are you sure you want to submit?',\"dialog\":_vm.dialog,\"btnTitle\":'Yes'},on:{\"close\":function($event){_vm.dialog = false},\"btnAction\":_vm.save}})],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!./add.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!./add.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./add.vue?vue&type=template&id=ba604664&scoped=true\"\nimport script from \"./add.vue?vue&type=script&lang=js\"\nexport * from \"./add.vue?vue&type=script&lang=js\"\nimport style0 from \"./add.vue?vue&type=style&index=0&id=ba604664&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 \"ba604664\",\n null\n \n)\n\nexport default component.exports","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-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","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!./add.vue?vue&type=style&index=0&id=ba604664&prod&scoped=true&lang=css\""],"sourceRoot":""}