(window.webpackJsonp=window.webpackJsonp||[]).push([[829],{1122:function(e,t,n){"use strict";n.r(t);n(136);var r={name:"TablePaginated",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},fields:{type:Array,default:function(){return[]}},emptyText:{type:String,default:function(){return"Não há itens disponíveis"}},busy:{type:Boolean,default:function(){return!1}},filter:{type:String,default:function(){return null}},itemsPerPage:{type:Boolean,default:function(){return!0}},selectable:{type:Boolean,default:function(){return!0}},itemsPerPageMultiplier:{type:Number,default:function(){return 25}}},data:function(){return{currentPage:1,perPage:5}},computed:{pageOptions:function(){for(var e=[5],t=1;t<5;t++){5!==t*this.itemsPerPageMultiplier&&e.push(t*this.itemsPerPageMultiplier)}return e},headerVariant:function(){return""===this.$attrs.striped||this.$attrs.striped?void 0:"light"}},methods:{handleRowClicked:function(e){this.$emit("row-clicked",e)}}},l=n(42),component=Object(l.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-table",e._b({staticClass:"mt-3",staticStyle:{"overflow-x":"auto"},attrs:{responsive:"sm","show-empty":"",selectable:e.selectable,hover:!0,items:e.items,fields:e.fields,"head-variant":e.headerVariant,"empty-text":e.emptyText,"current-page":e.currentPage,"per-page":e.perPage,"busy-empty":!0,busy:e.busy,filter:e.filter},on:{"row-clicked":e.handleRowClicked},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},e._l(e.$scopedSlots,(function(t,n){return{key:n,fn:function(t){return[e._t(n,null,null,t)]}}}))],null,!0)},"b-table",e.$attrs,!1)),e._v(" "),e.items.length>0?n("b-row",{staticClass:"mb-2 justify-content-end"},[e.itemsPerPage?n("b-col",{attrs:{md:"6","align-self":"start"}},[n("b-form-group",{staticClass:"mb-0",attrs:{horizontal:"",label:"Itens por página:"}},[n("b-form-select",{staticStyle:{"max-width":"300px"},attrs:{options:e.pageOptions},model:{value:e.perPage,callback:function(t){e.perPage=t},expression:"perPage"}})],1)],1):e._e(),e._v(" "),n("b-col",{staticClass:"text-end",attrs:{md:"6","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:{align:"center",pills:"","total-rows":e.items.length,"per-page":e.perPage},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=c78cffa-1.2.11.js.map