(window.webpackJsonp=window.webpackJsonp||[]).push([[748],{2e3:function(e,t,n){"use strict";n.r(t);n(7),n(4);var r={props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0},filter:{type:String,default:function(){return""},required:!0},busy:{type:Boolean,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"nome",label:"Nome",thStyle:"padding-inline: 3.5rem"},{key:"descricao",label:"Descrição",thStyle:"padding-inline: 3.5rem"},{key:"tipo",label:"Tipo",thStyle:"padding-inline: 2.5rem"},{key:"grupo",label:"Grupo",thStyle:"padding-inline: 2.5rem"},{key:"nivelSobreposicao",label:"Nível",thStyle:"padding-inline: 1rem"},{key:"ativo",label:"Ativo",thStyle:"padding-inline: 1rem"},{key:"visivel",label:"Visível por padrão",thStyle:"padding-inline: 1rem"}],hover:!0,noCollapse:!0,headVariant:"light",totalRows:1,currentPage:1,perPage:10}},computed:{rows:function(){return this.items.length},edit:{get:function(){return this.editCell},set:function(e){this.$emit("update:edit",e)}},filterAux:{get:function(){return this.filter},set:function(filter){this.$emit("update:filter",filter)}}}},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",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 disponíveis.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:e.busy,filter:e.filterAux},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(tipo)",fn:function(t){return[1===t.item.tipo?n("span",[e._v("XYZ")]):e._e(),e._v(" "),2===t.item.tipo?n("span",[e._v("WMS")]):e._e()]}},{key:"cell(ativo)",fn:function(t){return[!0===t.item.ativo?n("fa-icon",{attrs:{icon:"check"}}):e._e()]}},{key:"cell(visivel)",fn:function(t){return[!0===t.item.visivel?n("fa-icon",{attrs:{icon:"check"}}):e._e()]}}])}),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=b3b322a-1.2.11.js.map