(window.webpackJsonp=window.webpackJsonp||[]).push([[821],{861:function(t,e,n){"use strict";n.r(e);var o=n(63),c=(n(166),{props:{options:{type:Array,default:function(){return[]}},active:{type:Array,required:!0},modalName:{type:String,default:function(){return""},required:!0}},data:function(){return{activesAux:[]}},computed:{actives:{get:function(){return this.active},set:function(t){this.$emit("update:active",t)}}},mounted:function(){var t=this;this.$root.$on("bv::modal::show",(function(e,n){n===t.modalName&&(t.activesAux=Object(o.a)(t.actives))}))},methods:{cancelModal:function(){this.$bvModal.hide(this.modalName)},save:function(){this.activesAux.sort((function(a,b){return a.id>b.id?1:a.id<b.id?-1:0})),this.actives=Object(o.a)(this.activesAux),this.$bvModal.hide(this.modalName)}}}),r=n(42),component=Object(r.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:t.modalName,title:"Configurar colunas",scrollable:"",centered:""},scopedSlots:t._u([{key:"modal-footer",fn:function(){return[n("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.save()}}},[n("fa-icon",{attrs:{icon:"save"}}),t._v(" "),n("span",{staticClass:"ml-1"},[t._v("Salvar")])],1),t._v(" "),n("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(e){return t.cancelModal()}}},[n("fa-icon",{attrs:{icon:"times"}}),t._v(" "),n("span",{staticClass:"ml-1"},[t._v("Cancelar")])],1)]},proxy:!0}])},[n("b-form-group",[n("b-form-checkbox-group",{staticStyle:{"column-count":"3"},attrs:{stacked:""},model:{value:t.activesAux,callback:function(e){t.activesAux=e},expression:"activesAux"}},t._l(t.options,(function(option){return n("b-form-checkbox",{key:option.id,attrs:{value:option}},[t._v("\n        "+t._s(option.label)+"\n      ")])})),1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=5cb1a23-1.2.11.js.map