{"version":3,"sources":["webpack:///./src/components/usuario/Usuarios.vue?6bd8","webpack:///src/components/usuario/Usuarios.vue","webpack:///./src/components/usuario/Usuarios.vue?6c5a","webpack:///./src/components/usuario/Usuarios.vue?000f","webpack:///./src/components/usuario/Usuarios.vue?aa47"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","timeout","snackbar","top","right","color","model","value","callback","$$v","$set","expression","_v","_s","text","row","wrap","md5","xs12","label","on","keyup","$event","_k","keyCode","key","filtrar","filtro","md4","staticClass","md3","staticStyle","margin-top","dark","click","title","formTitle","valid","btnAddColor","btnRefreshColor","isValid","loadingSave","close","emailErrorMessages","originalEmail","save","formName","loaderName","service","newContent","formataUsuarioParaEnvio","getService","itemName","closeFunction","refresh","initialize","userFormDialog","slot","ref","rules","nameRules","editedItem","loading","loadingEmailValidation","emailRules","error-messages","input","debounceValidation","valorAtual","valorDoCampoOriginal","nomeDoArrayDeErros","nomeDoLoader","servico","mensagemDeErro404","mensagemDeErro409","items","papeis","content","roleRules","item-text","item-value","multiple","chips","return-object","filter","papel","nome","length","todosOsDepartamentos","loadingDepartments","departmentRules","msgDepartamentoNaoEncontrado","_e","ripple","toggleAllDepartments","centrosDeCustosQuePodeAprovarPedidos","getLodash","users","headers","headerUserTable","hide-actions","loadingUsers","scopedSlots","_u","fn","props","item","email","map","join","centroDeCusto","bottom","small","getDadosUsuario","id","height","indeterminate","justify-center","quantidadeDeItens","totalPages","pagination","staticRenderFns","Usuariosvue_type_script_lang_js_","components","AppCardCrud","mixins","crudMixin","debounceMixin","data","page","editedIndex","defaultItem","name","role","department","lodash_get_default","sortable","align","width","ativo","watch","pagination.page","val","indexOf","$store","dispatch","concat","computed","Object","objectSpread","vuex_esm","state","methods","_getDadosUsuario","asyncToGenerator","regenerator_default","a","mark","_callee","idDoUsuario","_this","_context","prev","next","axios_default","method","url","responseType","Authorization","loggedUser","token","Accept","Content-Type","then","usuario","editItem","stop","_x","apply","arguments","_this2","$nextTick","slice","_initialize","_callee2","_context2","itemCopiado","lodash_clonedeep_default","objParaEnvio","push","formatarCentroDeCustoParaTabela","undefined","created","usuario_Usuariosvue_type_script_lang_js_","component","componentNormalizer","options","__file","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Usuarios_vue_vue_type_style_index_0_id_8dcf6e10_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Usuarios_vue_vue_type_style_index_0_id_8dcf6e10_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n"],"mappings":"qHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAAA,EAAA,cAAkCE,OAAOC,QAAAP,EAAAQ,SAAAD,QAAAE,IAAA,GAAAC,MAAA,GAAAC,MAAA,WAAqEC,OAAQC,MAAAb,EAAAQ,SAAA,MAAAM,SAAA,SAAAC,GAAoDf,EAAAgB,KAAAhB,EAAAQ,SAAA,QAAAO,IAAqCE,WAAA,oBAA8BjB,EAAAkB,GAAAlB,EAAAmB,GAAAnB,EAAAQ,SAAAY,SAAAhB,EAAA,aAAAA,EAAA,YAAqEE,OAAOe,IAAA,GAAAC,KAAA,MAAoBlB,EAAA,UAAeE,OAAOiB,IAAA,GAAA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AgC,OAAAgF,MACAhH,KAAA6H,WAAAS,KACAtI,KAAA6H,WAAAS,KAAA,EACAtI,KAAA6E,QAAA,wBAAA0E,OAAA5D,EAAA,WAAA4D,OAAAvC,GACAhH,KAAAqJ,OAAAC,SAAA,OACAlG,WAAA,eACAC,QAAA,GAAAkG,OAAAvJ,KAAA6E,SACApB,SAAA,WAGAF,wBA3DA,WA4DA,IAAAwI,EAAAC,IAAAhM,KAAAkE,YACA+H,GACA1E,GAAAwE,EAAAxE,GACA5B,KAAAoG,EAAApG,KACAqB,MAAA+E,EAAA/E,MACA/B,UACAkC,cAAA4E,EAAA5E,cACAf,yCAcA,OAXA2F,EAAA9G,OAAAgC,IAAA,SAAAvB,GACAuG,EAAAhH,OAAAiH,MACA3E,GAAA7B,EAAA6B,OAIAwE,EAAA3F,qCAAAa,IAAA,SAAAE,GACA8E,EAAA7F,qCAAA8F,MACA3E,GAAAJ,EAAAI,OAGA0E,GAEAE,gCAnFA,WAmFA,IAAAhB,EAAAK,UAAA5F,OAAA,QAAAwG,IAAAZ,UAAA,GAAAA,UAAA,MACA,OACAL,EAAAlG,OACAQ,OAAA,SAAAC,GACA,gBAAAA,EAAAC,OAEAF,OAAA,SAAAC,GACA,oBAAAA,EAAAC,OACAC,OAAA,EAEA,GAAA2D,OAAA4B,EAAA/E,qCACAuF,MAAA,KACA1E,IAAA,SAAAE,GAAA,OAAAA,EAAAxB,OACAuB,KAAA,MAHA,OAKA,WAIAmF,QAnNA,WAoNArM,KAAA4D,eCzZwS0I,EAAA,0BCQxSC,EAAgB9C,OAAA+C,EAAA,KAAA/C,CACd6C,EACAxM,EACAgI,GACF,EACA,KACA,WACA,MAIAyE,EAAAE,QAAAC,OAAA,eACeC,EAAA,WAAAJ,+CCpBf,IAAAK,EAAAC,EAAA,QAAAC,EAAAD,EAAAE,EAAAH,GAAsfE,EAAG","file":"js/chunk-598d.f168711d.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-snackbar',{attrs:{\"timeout\":_vm.snackbar.timeout,\"top\":\"\",\"right\":\"\",\"color\":\"success\"},model:{value:(_vm.snackbar.ativo),callback:function ($$v) {_vm.$set(_vm.snackbar, \"ativo\", $$v)},expression:\"snackbar.ativo\"}},[_vm._v(_vm._s(_vm.snackbar.text))]),_c('v-content',[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"md5\":\"\",\"xs12\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"Nome\"},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.filtrar($event)}},model:{value:(_vm.filtro.nome),callback:function ($$v) {_vm.$set(_vm.filtro, \"nome\", $$v)},expression:\"filtro.nome\"}})],1),_c('v-flex',{attrs:{\"md4\":\"\",\"xs12\":\"\"}},[_c('v-text-field',{attrs:{\"label\":\"Email\"},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.filtrar($event)}},model:{value:(_vm.filtro.email),callback:function ($$v) {_vm.$set(_vm.filtro, \"email\", $$v)},expression:\"filtro.email\"}})],1),_c('v-flex',{staticClass:\"text-xs-center\",attrs:{\"md3\":\"\",\"xs12\":\"\"}},[_c('v-btn',{staticStyle:{\"margin-top\":\"15px\"},attrs:{\"color\":\"#005ca3\",\"dark\":\"\"},on:{\"click\":_vm.filtrar}},[_vm._v(\"Filtrar\")])],1)],1)],1),_c('app-card-crud',{attrs:{\"title\":\"Usuários\",\"formTitle\":_vm.formTitle,\"valid\":false,\"btnAddColor\":\"#ff0d7b\",\"btnRefreshColor\":\"#607D8B\",\"isValid\":_vm.isValid,\"loadingSave\":_vm.loadingSave},on:{\"close\":function () {\n _vm.emailErrorMessages = [];\n _vm.originalEmail = null\n _vm.close('userFormDialog', 'formUser')\n },\"save\":function () {\n _vm.save({\n formName: 'formUser',\n loaderName: 'loadingUsers',\n service: '/usuarios',\n newContent: _vm.formataUsuarioParaEnvio(),\n getService: '/usuarios',\n itemName: 'users',\n closeFunction: function () { _vm.close('userFormDialog', 'formUser') }\n })\n },\"refresh\":_vm.initialize},model:{value:(_vm.userFormDialog),callback:function ($$v) {_vm.userFormDialog=$$v},expression:\"userFormDialog\"}},[_c('template',{slot:\"form\"},[_c('v-form',{ref:\"formUser\",model:{value:(_vm.isValid),callback:function ($$v) {_vm.isValid=$$v},expression:\"isValid\"}},[_c('v-text-field',{attrs:{\"label\":\"Nome\",\"rules\":_vm.nameRules},model:{value:(_vm.editedItem.nome),callback:function ($$v) {_vm.$set(_vm.editedItem, \"nome\", $$v)},expression:\"editedItem.nome\"}}),_c('v-text-field',{attrs:{\"label\":\"E-mail\",\"loading\":_vm.loadingEmailValidation,\"rules\":_vm.emailRules,\"error-messages\":_vm.emailErrorMessages},on:{\"input\":function($event){_vm.debounceValidation({\n valorAtual: $event,\n valorDoCampoOriginal: _vm.originalEmail,\n nomeDoArrayDeErros: 'emailErrorMessages',\n nomeDoLoader: 'loadingEmailValidation',\n servico: '/usuarios/email/',\n mensagemDeErro404: 'Nenhum usuário registrado com este e-mail.',\n mensagemDeErro409: 'Já existe um usuário cadastrado com este e-mail.'\n })}},model:{value:(_vm.editedItem.email),callback:function ($$v) {_vm.$set(_vm.editedItem, \"email\", $$v)},expression:\"editedItem.email\"}}),_c('v-autocomplete',{attrs:{\"label\":\"Selecione os papeis\",\"items\":_vm.papeis.content,\"rules\":_vm.roleRules,\"item-text\":\"nome\",\"item-value\":\"id\",\"multiple\":\"\",\"chips\":\"\",\"return-object\":\"\"},model:{value:(_vm.editedItem.papeis),callback:function ($$v) {_vm.$set(_vm.editedItem, \"papeis\", $$v)},expression:\"editedItem.papeis\"}},[_c('template',{slot:\"no-data\"},[_c('div',{staticClass:\"noDataSlot\"},[_vm._v(\"Nenhum papel cadastrado.\")])])],2),(_vm.editedItem.papeis.filter(function (papel) {\n return papel.nome !== 'ADMIN'\n }).length > 0)?_c('v-autocomplete',{attrs:{\"label\":\"Selecione o centro de custo que o usuário pertence\",\"items\":_vm.todosOsDepartamentos.content,\"loading\":_vm.loadingDepartments,\"rules\":_vm.departmentRules,\"item-text\":\"nome\",\"item-value\":\"id\",\"return-object\":\"\"},model:{value:(_vm.editedItem.centroDeCusto),callback:function ($$v) {_vm.$set(_vm.editedItem, \"centroDeCusto\", $$v)},expression:\"editedItem.centroDeCusto\"}},[_c('template',{slot:\"no-data\"},[_c('div',{staticClass:\"noDataSlot\"},[_vm._v(_vm._s(_vm.msgDepartamentoNaoEncontrado))])])],2):_vm._e(),(_vm.editedItem.papeis.filter(function (papel) {\n return papel.nome === 'APROVADOR'\n }).length > 0)?_c('v-autocomplete',{attrs:{\"label\":\"Selecione os centros de custo que o usuário pode aprovar\",\"items\":_vm.todosOsDepartamentos.content,\"loading\":_vm.loadingDepartments,\"chips\":\"\",\"item-text\":\"nome\",\"item-value\":\"id\",\"return-object\":\"\",\"multiple\":\"\"},model:{value:(_vm.editedItem.centrosDeCustosQuePodeAprovarPedidos),callback:function ($$v) {_vm.$set(_vm.editedItem, \"centrosDeCustosQuePodeAprovarPedidos\", $$v)},expression:\"editedItem.centrosDeCustosQuePodeAprovarPedidos\"}},[(_vm.todosOsDepartamentos.content && _vm.todosOsDepartamentos.content.length > 0)?_c('v-list-tile',{attrs:{\"slot\":\"prepend-item\",\"ripple\":\"\"},on:{\"click\":_vm.toggleAllDepartments},slot:\"prepend-item\"},[_c('v-list-tile-action',[_c('v-icon',{attrs:{\"color\":_vm.editedItem.centrosDeCustosQuePodeAprovarPedidos.length > 0 ? 'indigo darken-4' : ''}},[_vm._v(_vm._s(_vm.editedItem.centrosDeCustosQuePodeAprovarPedidos.length === _vm.getLodash(_vm.todosOsDepartamentos, 'content', []).length ? 'check_box' : 'check_box_outline_blank'))])],1),_c('v-list-tile-title',[_vm._v(\"Selecionar todos os departamentos\")])],1):_vm._e(),_c('template',{slot:\"no-data\"},[_c('div',{staticClass:\"noDataSlot\"},[_vm._v(_vm._s(_vm.msgDepartamentoNaoEncontrado))])])],2):_vm._e()],1)],1),_c('template',{slot:\"table\"},[_c('v-data-table',{staticClass:\"headerColor\",attrs:{\"items\":_vm.users.content,\"headers\":_vm.headerUserTable,\"hide-actions\":\"\",\"loading\":_vm.loadingUsers},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('td',[_vm._v(_vm._s(props.item.nome))]),_c('td',[_vm._v(_vm._s(props.item.email))]),_c('td',[_vm._v(_vm._s(props.item.papeis.map(function (papel) { return papel.nome; }).join(', ')))]),_c('td',[_vm._v(_vm._s(_vm.getLodash(props.item.centroDeCusto, 'nome', null) !== null ? props.item.centroDeCusto.nome : 'Nenhum'))]),_c('td',{staticClass:\"justify-center layout px-0\"},[_c('v-tooltip',{staticClass:\"paddingTooltip\",attrs:{\"bottom\":\"\"}},[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"slot\":\"activator\",\"small\":\"\"},on:{\"click\":function () {\n _vm.originalEmail = props.item.email;\n _vm.getDadosUsuario(props.item.id);\n \n }},slot:\"activator\"},[_vm._v(\"edit\")]),_c('span',[_vm._v(\"Editar\")])],1)],1)]}}])},[_c('v-progress-linear',{attrs:{\"slot\":\"progress\",\"color\":\"blue\",\"height\":\"5\",\"indeterminate\":\"\"},slot:\"progress\"}),(_vm.loadingUsers)?_c('template',{slot:\"no-data\"},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\",\"justify-center\":\"\"}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"blue\"}})],1)],1):_c('template',{slot:\"no-data\"},[_c('div',{staticClass:\"text-xs-center\"},[_vm._v(\"Não há usuários cadastrados.\")])])],2),(_vm.quantidadeDeItens > 0)?_c('div',{staticClass:\"text-xs-center pt-2\"},[_c('v-pagination',{attrs:{\"length\":_vm.users.totalPages},model:{value:(_vm.pagination.page),callback:function ($$v) {_vm.$set(_vm.pagination, \"page\", $$v)},expression:\"pagination.page\"}})],1):_vm._e()],1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n {{ snackbar.text }}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Filtrar\r\n \r\n \r\n \r\n\r\n {\r\n emailErrorMessages = [];\r\n originalEmail = null\r\n close('userFormDialog', 'formUser')\r\n }\"\r\n @save=\"() => {\r\n save({\r\n formName: 'formUser',\r\n loaderName: 'loadingUsers',\r\n service: '/usuarios',\r\n newContent: formataUsuarioParaEnvio(),\r\n getService: '/usuarios',\r\n itemName: 'users',\r\n closeFunction: () => { close('userFormDialog', 'formUser') }\r\n })\r\n }\"\r\n @refresh=\"initialize\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n Nenhum papel cadastrado.\r\n \r\n \r\n {\r\n return papel.nome !== 'ADMIN'\r\n }).length > 0\"\r\n label=\"Selecione o centro de custo que o usuário pertence\"\r\n :items=\"todosOsDepartamentos.content\"\r\n v-model=\"editedItem.centroDeCusto\"\r\n :loading=\"loadingDepartments\"\r\n :rules=\"departmentRules\"\r\n item-text=\"nome\"\r\n item-value=\"id\"\r\n return-object\r\n >\r\n \r\n {{msgDepartamentoNaoEncontrado}}\r\n \r\n \r\n {\r\n return papel.nome === 'APROVADOR'\r\n }).length > 0\"\r\n label=\"Selecione os centros de custo que o usuário pode aprovar\"\r\n :items=\"todosOsDepartamentos.content\"\r\n v-model=\"editedItem.centrosDeCustosQuePodeAprovarPedidos\"\r\n :loading=\"loadingDepartments\"\r\n chips\r\n item-text=\"nome\"\r\n item-value=\"id\"\r\n return-object\r\n multiple\r\n >\r\n 0\"\r\n >\r\n \r\n 0 ? 'indigo darken-4' : ''\"\r\n >{{ editedItem.centrosDeCustosQuePodeAprovarPedidos.length === getLodash(todosOsDepartamentos, 'content', []).length ? 'check_box' : 'check_box_outline_blank'}}\r\n \r\n Selecionar todos os departamentos\r\n \r\n \r\n {{msgDepartamentoNaoEncontrado}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ props.item.nome }}\r\n {{ props.item.email }}\r\n {{ props.item.papeis.map(papel => papel.nome).join(', ') }}\r\n {{ getLodash(props.item.centroDeCusto, 'nome', null) !== null ? props.item.centroDeCusto.nome : 'Nenhum' }}\r\n \r\n \r\n {\r\n originalEmail = props.item.email;\r\n getDadosUsuario(props.item.id);\r\n \r\n }\"\r\n >edit\r\n Editar\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Não há usuários cadastrados.\r\n \r\n \r\n 0\">\r\n \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--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Usuarios.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Usuarios.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Usuarios.vue?vue&type=template&id=8dcf6e10&scoped=true&\"\nimport script from \"./Usuarios.vue?vue&type=script&lang=js&\"\nexport * from \"./Usuarios.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Usuarios.vue?vue&type=style&index=0&id=8dcf6e10&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 \"8dcf6e10\",\n null\n \n)\n\ncomponent.options.__file = \"Usuarios.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Usuarios.vue?vue&type=style&index=0&id=8dcf6e10&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Usuarios.vue?vue&type=style&index=0&id=8dcf6e10&scoped=true&lang=css&\""],"sourceRoot":""}