(window.webpackJsonp=window.webpackJsonp||[]).push([[353],{1886: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"},{key:"uf",label:"UF"},{key:"codigoRodovia",label:"Código"},{key:"kmInicial",label:"KM Inicial"},{key:"kmFinal",label:"KM Final"},{key:"kmExtensao",label:"Extensão (km)",sortable:!0,sortKey:"kmExtensao",thStyle:{width:"5% !important"}},{key:"kmEquivalente",label:"KM Equivalente",sortable:!0,sortKey:"kmEquivalente",thStyle:{width:"5% !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",{staticClass:"mt-3",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[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(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=5293524-1.2.11.js.map