(window.webpackJsonp=window.webpackJsonp||[]).push([[824],{1161:function(e,t,r){"use strict";r.r(t);r(6),r(5),r(7),r(4),r(12),r(8),r(13);var o=r(2),n=r(78);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var c={data:function(){return{pesquisa:"",usuario:{},usuarios:[],fields:[{key:"nome",label:"Nome",sortable:!0},{key:"login",label:"Login",sortable:!0}],perPage:5,currentPage:1}},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},Object(n.c)({empresa:"empresa/empresaAtual",empresas:"empresa/empresas"})),mounted:function(){var e=this;this.$usuarioService.getAllByEmpresa(this.empresa.sigla).then((function(t){e.usuarios=t.data}))},methods:{confirmModal:function(){this.$emit("selectUsuario",this.usuario),this.$bvModal.hide("selecioneUsuario")},closeModal:function(){this.$bvModal.hide("selecioneUsuario")}}},m=c,d=r(42),component=Object(d.a)(m,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-modal",{attrs:{id:"selecioneUsuario",scrollable:"",centered:"","hide-header-close":"","hide-footer":""},scopedSlots:e._u([{key:"modal-header",fn:function(){return[r("div",{staticClass:"d-flex"},[r("h4",{staticClass:"ml-3 ml-4"},[e._v("Selecionar Usuário")])])]},proxy:!0}])},[e._v(" "),r("b-row",[r("b-col",[r("b-form-group",{attrs:{label:"Pesquisa"}},[r("b-form-input",{model:{value:e.pesquisa,callback:function(t){e.pesquisa=t},expression:"pesquisa"}})],1)],1)],1),e._v(" "),r("b-table",{attrs:{striped:"",hover:"",selectable:"","select-mode":"single",items:e.usuarios,fields:e.fields,"per-page":e.perPage,filter:e.pesquisa,"current-page":e.currentPage},on:{"row-clicked":function(t){e.usuario=t}}}),e._v(" "),e.usuarios.length>e.perPage?r("b-pagination",{attrs:{"total-rows":e.usuarios.length,"per-page":e.perPage,align:"center",pills:""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e(),e._v(" "),r("b-row",{staticClass:"mt-2 pt-3 border-top"},[r("b-col",{staticClass:"pl-2"},[r("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"primary",type:"submit"},on:{click:e.confirmModal}},[r("fa-icon",{attrs:{icon:"save"}}),e._v(" "),r("span",{staticClass:"ml-1"},[e._v("Confirmar")])],1),e._v(" "),r("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-primary"},on:{click:e.closeModal}},[r("fa-icon",{attrs:{icon:"times"}}),e._v(" "),r("span",{staticClass:"ml-1"},[e._v("Cancelar")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=82e2a15-1.2.11.js.map