(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{927:function(t,e,o){"use strict";o.r(e);var l={props:{saveFile:{type:Function,required:!0}},data:function(){return{file:null}},methods:{cancelModal:function(){this.$bvModal.hide("modalFile")},handleSave:function(){var t=this;this.saveFile({arquivos:[this.file]}).then((function(){t.$bvModal.hide("modalFile")})).catch((function(e){t.$notifyApiError(e,"Erro ao salvar arquivo")}))}}},n=o(42),component=Object(n.a)(l,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-modal",{attrs:{id:"modalFile",centered:"","hide-header-close":"","hide-footer":""},scopedSlots:t._u([{key:"modal-title",fn:function(){return[o("div",{staticClass:"d-flex"},[o("fa-icon",{staticStyle:{"font-size":"1.5rem","margin-top":"15px"},attrs:{icon:"file"}}),t._v(" "),o("h4",{staticClass:"ml-3 mt-3"},[t._v("Adicionar arquivo")])],1)]},proxy:!0}])},[t._v(" "),o("b-form",{on:{submit:function(e){return e.stopPropagation(),e.preventDefault(),t.handleSave.apply(null,arguments)}}},[o("b-row",[o("b-col",{attrs:{cols:"12"}},[o("b-form-group",{attrs:{label:"Arquivo"}},[o("b-form-file",{attrs:{name:"anexo",placeholder:"Escolha um arquivo ou solte-o aqui...","drop-placeholder":"Solte o arquivo aqui...","browse-text":"Escolher"},model:{value:t.file,callback:function(e){t.file=e},expression:"file"}})],1)],1),t._v(" "),o("b-col",{attrs:{cols:"12"}},[o("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"success",type:"submit"}},[o("fa-icon",{attrs:{icon:"save"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Salvar")])],1),t._v(" "),o("b-button",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-secondary"},on:{click:t.cancelModal}},[o("fa-icon",{attrs:{icon:"times"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Cancelar")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=b78912b-1.2.11.js.map