{"version":3,"sources":["webpack:///./src/components/User.vue","webpack:///./src/models/user.js","webpack:///src/components/User.vue","webpack:///./src/components/User.vue?5b35","webpack:///./src/components/User.vue?9347","webpack:///./src/views/EditUser.vue","webpack:///src/views/EditUser.vue","webpack:///./src/views/EditUser.vue?e596","webpack:///./src/views/EditUser.vue?09d8"],"names":["render","_vm","this","_c","_self","attrs","title","on","$event","preventDefault","submitForm","apply","arguments","name","staticStyle","staticClass","model","value","callback","$$v","expression","email","password","role","roleOptions","_v","_s","buttonLabel","id","confirmDelete","_e","showEditSpinner","hasError","errorMessage","showConfirmationModal","deleteCancel","deleteUser","showDeleteSpinner","showDeleteResults","deletedCount","deleteResultsClose","staticRenderFns","Profile","constructor","components","VueMultiselect","props","type","String","default","data","mounted","fetchRoles","loadData","methods","UserService","get","then","catch","error","$store","dispatch","roles","delete","results","count","finally","idToDelete","router","push","method","update","create","User","EntityStatusService","updated","created","component","$route","params"],"mappings":"gHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,MAAQJ,EAAIK,QAAQ,CAACH,EAAG,SAAS,CAACI,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBR,EAAIS,WAAWC,MAAM,KAAMC,cAAc,CAACT,EAAG,eAAe,CAACE,MAAM,CAAC,GAAK,aAAa,MAAQ,QAAQ,YAAY,YAAY,QAAQJ,EAAIY,KAAoB,mBAAmB,aAAa,CAACV,EAAG,MAAM,CAACW,YAAY,CAAC,QAAU,OAAO,kBAAkB,WAAW,CAACX,EAAG,eAAe,CAACY,YAAY,OAAOV,MAAM,CAAC,UAAW,EAAK,GAAK,YAAY,YAAc,mBAAmBW,MAAM,CAACC,MAAOhB,EAAIY,KAAMK,SAAS,SAAUC,GAAMlB,EAAIY,KAAKM,GAAKC,WAAW,WAAW,KAAKjB,EAAG,eAAe,CA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EAAkB,G,YCOP,GACf5B,KAAA,WACA+B,WAAA,CACA6B,cCZkV,I,YCO9UI,EAAY,eACd,EACA7E,EACAyC,GACA,EACA,KACA,KACA,MAIa,aAAAoC,E","file":"static/js/chunk-2b48855e.70368dcd.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-card',{attrs:{\"title\":_vm.title}},[_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submitForm.apply(null, arguments)}}},[_c('b-form-group',{attrs:{\"id\":\"name-group\",\"label\":\"Name:\",\"label-for\":\"user-name\",\"state\":_vm.name ? true : false,\"invalid-feedback\":\"required\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('b-form-input',{staticClass:\"w-25\",attrs:{\"required\":true,\"id\":\"user-name\",\"placeholder\":\"Enter a name...\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1)]),_c('b-form-group',{attrs:{\"id\":\"email-group\",\"label\":\"Email:\",\"label-for\":\"user-email\",\"state\":_vm.name ? true : false,\"invalid-feedback\":\"required\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('b-form-input',{staticClass:\"w-25\",attrs:{\"type\":\"email\",\"required\":true,\"id\":\"user-email\",\"placeholder\":\"Enter a email...\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}})],1)]),_c('b-form-group',{attrs:{\"id\":\"password-group\",\"label\":\"Password:\",\"label-for\":\"password\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('b-form-input',{staticClass:\"w-25\",attrs:{\"type\":\"password\",\"id\":\"password\",\"placeholder\":\"Enter password...\"},model:{value:(_vm.password),callback:function ($$v) {_vm.password=$$v},expression:\"password\"}})],1)]),_c('b-form-group',{attrs:{\"id\":\"role-group\",\"label\":\"Role:\",\"label-for\":\"lang-input\",\"state\":_vm.role ? true : false,\"invalid-feedback\":\"required\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('VueMultiselect',{staticStyle:{\"width\":\"25%\"},attrs:{\"allow-empty\":false,\"options\":_vm.roleOptions,\"multiple\":false,\"label\":\"name\",\"track-by\":\"id\",\"deselectLabel\":\"\",\"placeholder\":\"Pick a role\"},model:{value:(_vm.role),callback:function ($$v) {_vm.role=$$v},expression:\"role\"}})],1)]),_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(\" \"+_vm._s(_vm.buttonLabel)+\" \")]),(_vm.id)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.confirmDelete}},[_vm._v(\" Delete \")]):_vm._e(),(_vm.showEditSpinner)?_c('div',{staticClass:\"d-flex justify-content-center m-3\"},[_c('b-spinner',{attrs:{\"variant\":\"primary\",\"label\":\"Spinning\"}})],1):_vm._e()],1),(_vm.hasError)?_c('div',{staticStyle:{\"color\":\"red\"}},[_vm._v(_vm._s(_vm.errorMessage))]):_vm._e(),_c('b-modal',{attrs:{\"title\":\"Delete User?\",\"hide-footer\":\"\",\"hide-backdrop\":\"\"},model:{value:(_vm.showConfirmationModal),callback:function ($$v) {_vm.showConfirmationModal=$$v},expression:\"showConfirmationModal\"}},[_c('p',[_vm._v(\"Are you sure you want to delete this user and all user related content?\")]),_c('div',{staticClass:\"d-flex justify-content-end\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.deleteCancel}},[_vm._v(\" Cancel \")]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.deleteUser}},[_vm._v(\" Delete \")])],1),(_vm.showDeleteSpinner)?_c('div',{staticClass:\"d-flex justify-content-center mb-3\"},[_c('b-spinner',{attrs:{\"variant\":\"danger\",\"label\":\"Spinning\"}})],1):_vm._e()]),_c('b-modal',{attrs:{\"title\":\"User deletion results\",\"hide-footer\":\"\",\"hide-backdrop\":\"\"},model:{value:(_vm.showDeleteResults),callback:function ($$v) {_vm.showDeleteResults=$$v},expression:\"showDeleteResults\"}},[_c('p',[_vm._v(\"User \"+_vm._s(_vm.deletedCount > 1 ? \"and \" + _vm.deletedCount -1 + \"records related to user have been deleted.\" : \"has been deleted.\"))]),_c('div',{staticClass:\"d-flex justify-content-end\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.deleteResultsClose,\"close\":_vm.deleteResultsClose}},[_vm._v(\" Ok \")])],1),(_vm.showDeleteSpinner)?_c('div',{staticClass:\"d-flex justify-content-center mb-3\"},[_c('b-spinner',{attrs:{\"variant\":\"danger\",\"label\":\"Spinning\"}})],1):_vm._e()])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class Profile {\n constructor(id, name, email, password, role) {\n this.id = id;\n this.name = name;\n this.email = email;\n this.password = password;\n this.role = role;\n }\n}\n","\n\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!./User.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!./User.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./User.vue?vue&type=template&id=66b67126&\"\nimport script from \"./User.vue?vue&type=script&lang=js&\"\nexport * from \"./User.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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('user',{attrs:{\"id\":_vm.$route.params.id}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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!./EditUser.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!./EditUser.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditUser.vue?vue&type=template&id=9e58ce86&\"\nimport script from \"./EditUser.vue?vue&type=script&lang=js&\"\nexport * from \"./EditUser.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":""}