(window.webpackJsonp=window.webpackJsonp||[]).push([[701,653],{1071:function(t,e,n){"use strict";n.r(e);var r={props:{options:{type:Array,default:function(){return[]}},active:{type:Array,required:!0}},computed:{actives:{get:function(){return this.active},set:function(t){this.$emit("update:active",t)}}},methods:{cancelModal:function(){this.$bvModal.hide("configurarColunasModal")},clean:function(){this.monitoracao=null,this.filtro={}}}},o=n(42),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:"configurarColunasModal","hide-footer":"",title:"Configurar colunas",scrollable:"",centered:""}},[n("b-form-group",[n("b-form-checkbox-group",{staticStyle:{"column-count":"3"},attrs:{switches:"",stacked:""},model:{value:t.actives,callback:function(e){t.actives=e},expression:"actives"}},t._l(t.options,(function(option){return n("b-form-checkbox",{key:option.key,attrs:{value:option}},[t._v("\n          "+t._s(option.label)+"\n        ")])})),1)],1),t._v(" "),n("b-row",[n("b-col",[n("b-button",{staticClass:"ml-auto",attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.cancelModal()}}},[n("FaIcon",{staticClass:"mr-1",attrs:{icon:"times"}}),t._v(" "),n("span",[t._v("Cancelar")])],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},1437:function(t,e,n){"use strict";n.r(e);n(6),n(5),n(7),n(4),n(12),n(8),n(13);var r=n(63),o=n(2);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var c={components:{ConfigurarColunasModal:n(1071).default},props:{fields:{type:Array,default:function(){return[]},required:!0},items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:null},showConfigurarColunas:{type:Boolean,default:function(){return!1}},config:{type:Object,default:function(){return{}}}},data:function(){return{totalRows:1,currentPage:1,perPage:this.config.perPage||5,fieldsActive:[]}},computed:{rows:function(){return this.items.length},tableConfig:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({headVariant:"light",items:this.items,fields:this.fields,noCollapse:!0,hover:!1,"show-empty":!0,selectable:!0,"empty-text":"Não há dados disponíveis.",editCell:this.editCell||function(){}},this.config)}},mounted:function(){this.totalRows=this.items.length,this.fieldsActive=Object(r.a)(this.tableConfig.fields)}},f=c,d=n(42),component=Object(d.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-row",[n("ConfigurarColunasModal",{attrs:{options:t.tableConfig.fields,active:t.fieldsActive},on:{"update:active":function(e){t.fieldsActive=e}}}),t._v(" "),n("b-col",{attrs:{cols:"12"}},[n("b-card",{staticClass:"mt-3"},[t.showConfigurarColunas?n("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.$bvModal.show("configurarColunasModal")}}},[n("FaIcon",{attrs:{icon:"gear"}}),t._v(" Configurar\n        ")],1):t._e(),t._v(" "),n("b-table",t._b({staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{fields:t.fieldsActive,responsive:"sm","current-page":t.currentPage,"per-page":t.perPage,busy:!(t.tableConfig.items.length>=0),hover:null!==t.editCell||t.tableConfig.hover||!!t.tableConfig["select-mode"]},on:{"row-clicked":t.tableConfig.editCell},scopedSlots:t._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-primary my-2"},[n("b-spinner",{staticClass:"align-middle"}),t._v(" "),n("strong",[t._v("Carregando...")])],1)]},proxy:!0}])},"b-table",t.tableConfig,!1)),t._v(" "),t.items.length>0?n("b-row",[n("b-col",{attrs:{"align-self":"end"}},[n("div",{staticClass:"text-right"},[n("b",[t._v("Itens:")]),t._v(" "+t._s(t.items.length))])])],1):t._e(),t._v(" "),t.items.length>5?n("b-pagination",{attrs:{"total-rows":t.rows,"per-page":t.perPage,align:"center",pills:""},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=352705c-1.2.11.js.map