(window.webpackJsonp=window.webpackJsonp||[]).push([[813],{890:function(t,e,o){"use strict";o.r(e);o(6),o(5),o(7),o(4),o(12),o(8),o(13);var r=o(2),c=o(78);function n(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}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={name:"Intervencao",props:{monitoracao:{type:Object,default:function(){return null}},blocked:{type:Boolean,default:function(){return!1}}},data:function(){return{acaoExecutada:[],busy:!1,fieldsAcoesExecutadas:[{key:"descricao",label:"Descrição",thStyle:{width:"65% !important"}},{key:"prazo",label:"Prazo",thStyle:{width:"35% !important"}}]}},computed:l(l({},Object(c.c)({empresa:"empresa/empresaAtual",isExterno:"usuario/isExterno"})),{},{monitoracaoData:{get:function(){return this.monitoracao},set:function(t){this.$emit("update:monitoracao",t)}},isBlockedEditAux:{get:function(){return this.blocked},set:function(t){this.$emit("update:blocked",t)}}}),methods:{lockedEdit:function(){return!1!==this.isExterno||!0!==this.isBlockedEditAux}}},f=o(42),component=Object(f.a)(d,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-card",{staticClass:"mt-3"},[o("div",{staticClass:"mt-3",attrs:{slot:"header"},slot:"header"},[o("h4",[t._v("Ações executadas")])]),t._v(" "),0===t.acaoExecutada.length?o("b-row",[o("b-col",{attrs:{md:"12"}},[o("div",[o("b-alert",{attrs:{show:"",variant:"info"}},[t._v("Não existe ação executada para essa monitoração.")])],1)])],1):t._e(),t._v(" "),1===t.acaoExecutada.length?o("div",[o("b-row",[o("b-col",{attrs:{md:"10"}},[o("b-form-group",{attrs:{label:"Descrição:"}},[o("b-form-textarea",{attrs:{disabled:t.lockedEdit(),rows:"3","max-rows":"6",maxlength:"30",placeholder:"Informe a descrição da ação executada desta monitoração."},model:{value:t.acaoExecutada[0].descricao,callback:function(e){t.$set(t.acaoExecutada[0],"descricao",e)},expression:"acaoExecutada[0].descricao"}})],1)],1),t._v(" "),o("b-col",{attrs:{md:"2"}},[o("b-form-group",{attrs:{label:"Prazo:"}},[o("b-form-input",{attrs:{id:"datCriacao",value:t.acaoExecutada[0].prazo,placeholder:"Informe o prazo",disabled:t.lockedEdit()}})],1)],1)],1)],1):t._e(),t._v(" "),t.acaoExecutada.length>1?o("div",[o("b-row",[o("b-col",{attrs:{md:"12"}},[o("b-table",{ref:"selectableTable",staticClass:"mt-3",attrs:{striped:"",stacked:"md",hover:"",items:t.acaoExecutada,fields:t.fieldsAcoesExecutadas,responsive:"sm",busy:t.busy},scopedSlots:t._u([{key:"table-busy",fn:function(){return[o("div",{staticClass:"text-center text-info my-2"},[o("b-spinner",{staticClass:"align-middle"}),t._v(" "),o("strong",[t._v("Carregando...")])],1)]},proxy:!0}],null,!1,3077067912)})],1)],1)],1):t._e()],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=97e378c-1.2.11.js.map