(window.webpackJsonp=window.webpackJsonp||[]).push([[351],{1338:function(e,t,r){"use strict";r.r(t);var n={filters:{filterTipoEmpresa:function(e){return 1===e?"Concessionária":2===e?"Holding":void 0}},props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"nome",label:"Nome",sortable:!0},{key:"email",label:"Email"},{key:"website",label:"Site"},{key:"datHorCadastro",label:"Data Cadastro"},{key:"datHorAlteracao",label:"Data Alteração"}],hover:!0,headVariant:"light",noCollapse:!0,totalRows:1,currentPage:1,perPage:10}},computed:{rows:function(){return this.items.length}},mounted:function(){this.totalRows=this.items.length}},l=r(42),component=Object(l.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-row",[r("b-col",{attrs:{cols:"12"}},[r("b-card",{staticClass:"mt-3"},[r("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:e.hover,"no-border-collapse":e.noCollapse,items:e.items,fields:e.fields,"head-variant":e.headVariant,responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:!(e.items.length>=0)},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[r("div",{staticClass:"text-center text-primary my-2"},[r("b-spinner",{staticClass:"align-middle"}),e._v(" "),r("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datHorCadastro)",fn:function(t){return[e._v("\n          "+e._s(e._f("formatDateTime")(t.item.datHorCadastro))+"\n        ")]}},{key:"cell(datHorAlteracao)",fn:function(t){return[e._v("\n          "+e._s(e._f("formatDateTime")(t.item.datHorAlteracao))+"\n        ")]}},{key:"cell(tipoEmpresa)",fn:function(t){return[r("span",[e._v(e._s(e._f("filterTipoEmpresa")(t.item.tipoEmpresa)))])]}}])}),e._v(" "),e.items.length>0?r("b-row",[r("b-col",{attrs:{"align-self":"end"}},[r("div",{staticClass:"text-right"},[r("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?r("b-pagination",{attrs:{"total-rows":e.rows,"per-page":e.perPage,align:"center",pills:""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=e82e1ef-1.2.11.js.map