(window.webpackJsonp=window.webpackJsonp||[]).push([[383],{905:function(t,e,o){"use strict";o.r(e);o(11),o(10),o(5),o(4),o(12),o(8),o(13);var n=o(1),r=o(74),c=o(392);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var m={name:"ModalAnexo",props:{integracoesExternas:{type:Array,default:function(){return[]}},busyIntegracoes:{type:Boolean,default:function(){return!1}}},data:function(){return{integracaoExterna:{},modulosDisponviveis:c.a}},computed: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(n.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}({},Object(r.c)({empresa:"empresa/empresaAtual"})),mounted:function(){var t=this;this.$root.$on("bv::modal::show",(function(e,o){"modalIntegracao"===o&&(t.integracaoExterna={})}))},methods:{cancelModalIntegracao:function(){this.integracaoExterna={},this.$bvModal.hide("modalIntegracao")},saveAnexo:function(){}}},f=m,d=o(37),component=Object(d.a)(f,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-modal",{attrs:{id:"modalIntegracao",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:"user-check"}}),t._v(" "),o("h4",{staticClass:"ml-3 mt-3"},[t._v("Adicionar integração")])],1)]},proxy:!0}])},[t._v(" "),o("b-row",[o("b-col",{attrs:{cols:"6"}},[o("b-form-group",{attrs:{label:"Módulo: "}},[o("b-form-select",{scopedSlots:t._u([{key:"first",fn:function(){return[o("b-form-select-option",{attrs:{value:void 0}},[t._v("\n              Selecione...\n            ")])]},proxy:!0}]),model:{value:t.integracaoExterna.modulo,callback:function(e){t.$set(t.integracaoExterna,"modulo",e)},expression:"integracaoExterna.modulo"}},[t._v(" "),t._l(t.modulosDisponviveis,(function(e,n){return o("b-form-select-option",{key:n,attrs:{value:e.id}},[t._v("\n            "+t._s(e.nameAux)+"\n          ")])}))],2)],1)],1),t._v(" "),o("b-col",{attrs:{cols:"6"}},[o("b-form-group",{attrs:{label:"Nome sistema/integração: "}},[o("b-form-input",{attrs:{type:"text"},model:{value:t.integracaoExterna.sistema,callback:function(e){t.$set(t.integracaoExterna,"sistema",e)},expression:"integracaoExterna.sistema"}})],1)],1),t._v(" "),o("b-col",{attrs:{cols:"6"}},[o("b-form-group",{attrs:{label:"Referência/nome campo: "}},[o("b-form-input",{attrs:{type:"text"},model:{value:t.integracaoExterna.nomeCampo,callback:function(e){t.$set(t.integracaoExterna,"nomeCampo",e)},expression:"integracaoExterna.nomeCampo"}})],1)],1),t._v(" "),o("b-col",{attrs:{cols:"6"}},[o("b-form-group",{attrs:{label:"Rótulo/Texto campo: "}},[o("b-form-input",{attrs:{type:"text"},model:{value:t.integracaoExterna.nomeCampo,callback:function(e){t.$set(t.integracaoExterna,"nomeCampo",e)},expression:"integracaoExterna.nomeCampo"}})],1)],1),t._v(" "),o("b-col",{staticClass:"pl-2",attrs:{md:"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:function(e){return t.cancelModalIntegracao()}}},[o("fa-icon",{attrs:{icon:"times"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Cancelar")])],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=4a7c134-1.2.10.js.map