(window.webpackJsonp=window.webpackJsonp||[]).push([[376],{1189:function(e,t,n){"use strict";n.r(t);var r={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:"descricao",label:"Descrição",sortable:!0},{key:"sigla",label:"Sigla",sortable:!0,thStyle:{width:"20% !important"}}],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=n(42),component=Object(l.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-row",[n("b-col",{attrs:{cols:"12"}},[n("b-card",{staticClass:"mt-3"},[n("b-table",{ref:"selectableTable",staticClass:"mt-3",attrs:{striped:"",stacked:"md",hover:"",items:e.items,fields:e.fields,"select-mode":e.selectMode,"per-page":e.perPage,"current-page":e.currentPage,"sort-desc":e.sortDesc,responsive:"sm",busy:!(e.items.length>=0),selectable:"","empty-text":"Não há dados disponíveis.","show-empty":""},on:{"update:sortDesc":function(t){e.sortDesc=t},"update:sort-desc":function(t){e.sortDesc=t},"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-primary my-2"},[n("b-spinner",{staticClass:"align-middle"}),e._v(" "),n("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datInicial)",fn:function(t){return[e._v("\n          "+e._s(e._f("formatDateTime")(t.item.datInicial))+"\n        ")]}},{key:"cell(datFinal)",fn:function(t){return[e._v("\n          "+e._s(e._f("formatDateTime")(t.item.datFinal))+"\n        ")]}},{key:"cell(tipoEmpresa)",fn:function(t){return[n("span",[e._v(e._s(e._f("filterTipoEmpresa")(t.item.tipoEmpresa)))])]}}])}),e._v(" "),e.items.length>0?n("b-row",[n("b-col",{attrs:{"align-self":"end"}},[n("div",{staticClass:"text-right"},[n("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?n("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=da9c6fc-1.2.11.js.map