(window.webpackJsonp=window.webpackJsonp||[]).push([[707],{1434:function(t,e,r){"use strict";r.r(e);var n={filters:{filterTipoEmpresa:function(t){return 1===t?"Concessionária":2===t?"Holding":void 0}},props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0},busy:{type:Boolean,default:function(){return!1},required:!0},fields:{type:Array,default:function(){return[]},required:!0}},data:function(){return{hover:!0,noCollapse:!0,headVariant:"light",totalRows:1,currentPage:1,perPage:10}},computed:{edit:{get:function(){return this.editCell},set:function(t){this.$emit("update:edit",t)}},del:{get:function(){return this.deleteCell},set:function(del){this.$emit("update:delete",del)}}}},o=r(42),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-row",[r("b-col",{attrs:{cols:"12"}},[r("b-card",{staticClass:"mt-3"},[r("b-row",[r("b-col",{staticClass:"pl-2",attrs:{md:"8"}},[r("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"primary"}},[r("FaIcon",{attrs:{icon:"file-pdf"}}),t._v(" "),r("span",{staticClass:"ml-1"},[t._v("Exportar")])],1),t._v(" "),r("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"primary"}},[r("FaIcon",{attrs:{icon:"file-pdf"}}),t._v(" "),r("span",{staticClass:"ml-1"},[t._v("Exportar")])],1)],1)],1),t._v(" "),r("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:t.hover,"no-border-collapse":t.noCollapse,items:t.items,fields:t.fields,"head-variant":t.headVariant,responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":"","current-page":t.currentPage,"per-page":t.perPage,busy:t.busy},on:{"row-clicked":t.editCell},scopedSlots:t._u([{key:"table-busy",fn:function(){return[r("div",{staticClass:"text-center text-primary my-2"},[r("b-spinner",{staticClass:"align-middle"}),t._v(" "),r("strong",[t._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datHorCadastro)",fn:function(e){return[t._v("\n          "+t._s(t._f("formatDateTime")(e.item.datHorCadastro))+"\n        ")]}},{key:"cell(datHorAlteracao)",fn:function(e){return[t._v("\n          "+t._s(t._f("formatDateTime")(e.item.datHorAlteracao))+"\n        ")]}},{key:"cell(tipoEmpresa)",fn:function(e){return[r("span",[t._v(t._s(t._f("filterTipoEmpresa")(e.item.tipoEmpresa)))])]}}])}),t._v(" "),t.items.length>0?r("b-row",[r("b-col",{attrs:{"align-self":"end"}},[r("div",{staticClass:"text-right"},[r("b",[t._v("Itens:")]),t._v(" "+t._s(t.items.length))])])],1):t._e(),t._v(" "),t.items.length>5?r("b-pagination",{attrs:{"total-rows":t.rows,"per-page":t.perPage,align:"center",pills:""},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=ba76aa8-1.2.11.js.map