(window.webpackJsonp=window.webpackJsonp||[]).push([[711],{2001:function(e,n,t){"use strict";t.r(n);var o={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},busy:{type:Boolean,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"eventos",label:"Eventos"},{key:"ano0",label:"Ano 0"},{key:"ano1",label:"Ano 1"},{key:"ano2",label:"Ano 2"},{key:"ano3",label:"Ano 3"},{key:"ano4",label:"Ano 4"},{key:"ano5",label:"Ano 5"},{key:"ano6",label:"Ano 6"},{key:"ano7",label:"Ano 7"},{key:"ano8",label:"Ano 8"},{key:"ano9",label:"Ano 9"},{key:"ano10",label:"Ano 10"},{key:"ano11",label:"Ano 11"},{key:"ano12",label:"Ano 12"},{key:"ano13",label:"Ano 13"},{key:"ano14",label:"Ano 14"},{key:"ano15",label:"Ano 15"},{key:"ano16",label:"Ano 16"},{key:"ano17",label:"Ano 17"},{key:"ano18",label:"Ano 18"},{key:"ano19",label:"Ano 19"},{key:"ano20",label:"Ano 20"},{key:"ano21",label:"Ano 21"},{key:"ano22",label:"Ano 22"},{key:"ano23",label:"Ano 23"},{key:"ano24",label:"Ano 24"},{key:"ano25",label:"Ano 25"},{key:"ano26",label:"Ano 26"},{key:"ano27",label:"Ano 27"},{key:"ano28",label:"Ano 28"},{key:"ano29",label:"Ano 29"},{key:"ano30",label:"Ano 30"}],hover:!0,noCollapse:!0,headVariant:"light",totalRows:1,currentPage:1,perPage:10}},computed:{edit:{get:function(){return this.editCell},set:function(e){this.$emit("update:edit",e)}},del:{get:function(){return this.deleteCell},set:function(del){this.$emit("update:delete",del)}}}},l=t(42),component=Object(l.a)(o,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("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 eventos para exibir.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:e.busy},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[t("div",{staticClass:"text-center text-primary my-2"},[t("b-spinner",{staticClass:"align-middle"}),e._v(" "),t("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datHorCadastro)",fn:function(n){return[e._v("\n          "+e._s(e._f("formatDateTime")(n.item.datHorCadastro))+"\n        ")]}},{key:"cell(datHorAlteracao)",fn:function(n){return[e._v("\n          "+e._s(e._f("formatDateTime")(n.item.datHorAlteracao))+"\n        ")]}},{key:"cell(tipoEmpresa)",fn:function(n){return[t("span",[e._v(e._s(e._f("filterTipoEmpresa")(n.item.tipoEmpresa)))])]}}])}),e._v(" "),e.items.length>0?t("b-row",[t("b-col",{attrs:{"align-self":"end"}},[t("div",{staticClass:"text-right"},[t("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?t("b-pagination",{attrs:{"total-rows":e.rows,"per-page":e.perPage,align:"center",pills:""},model:{value:e.currentPage,callback:function(n){e.currentPage=n},expression:"currentPage"}}):e._e()],1)],1)}),[],!1,null,null,null);n.default=component.exports}}]);
//# sourceMappingURL=b943e77-1.2.11.js.map