(window.webpackJsonp=window.webpackJsonp||[]).push([[397],{2213:function(e,t,o){"use strict";o.r(t);var r={name:"CardInformacao",props:{correspondencia:{type:Object,default:function(){},required:!0}},computed:{correspondenciaAux:{get:function(){return this.correspondencia},set:function(e){this.$emit("update:correspondencia",e)}}},methods:{getPrioridadeDesc:function(){var text="";return 0===this.correspondenciaAux.prioridade?text="Critica":1===this.correspondenciaAux.prioridade?text="Alta":2===this.correspondenciaAux.prioridade?text="Média":3===this.correspondenciaAux.prioridade&&(text="Baixa"),text}}},c=o(42),component=Object(c.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("b-card",{staticClass:"position-fixed mr-4",attrs:{"border-variant":"primary",header:"Primary","header-bg-variant":"primary","header-text-variant":"white"}},[o("div",{staticClass:"d-flex justify-content-center",attrs:{slot:"header"},slot:"header"},[o("h5",{staticClass:"mt-2 font-weight-bold"},[e._v("Informações")])]),e._v(" "),o("b-row",[o("b-col",{attrs:{cols:"12"}},[o("div",{staticClass:"d-flex justify-content-center"},[o("h5",[e._v(e._s(e.correspondenciaAux.statusDesc))])])]),e._v(" "),o("b-col",{attrs:{cols:"12"}},[o("b-row",[o("b-col",{attrs:{cols:"5"}},[o("div",{staticClass:"d-flex justify-content-start"},[o("label",[e._v("Aprovação: ")])])]),e._v(" "),o("b-col",{attrs:{cols:"7"}},[o("div",{staticClass:"d-flex justify-content-end"},[0!==e.correspondenciaAux.status?o("label",[e._v("\n              "+e._s(e.correspondenciaAux.statusDesc)+"\n            ")]):o("label",[e._v("\n              "+e._s(e.correspondenciaAux.statusAprovacaoDesc)+"\n            ")])])])],1),e._v(" "),e.correspondenciaAux.status>=2?o("b-row",[o("b-col",{attrs:{cols:"7"}},[o("label",[e._v("Prazo Ofício: ")])]),e._v(" "),o("b-col",{attrs:{cols:"5"}},[o("div",{staticClass:"d-flex justify-content-end"},[o("label",[e._v(" "+e._s(e.correspondenciaAux.prazo)+" dias")])])]),e._v(" "),o("b-col",{attrs:{cols:"8"}},[o("label",[e._v("Prioridade: ")])]),e._v(" "),o("b-col",{attrs:{cols:"4"}},[o("div",{staticClass:"d-flex justify-content-end"},[o("label",[e._v(" "+e._s(e.getPrioridadeDesc())+" ")])])])],1):e._e(),e._v(" "),o("b-row",[o("b-col",[o("div",{staticClass:"d-flex justify-content-center"},[0===e.correspondenciaAux.status?o("b-button",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:"Encerrar",expression:"'Encerrar'",modifiers:{hover:!0,top:!0}}],staticClass:"my-2 ml-2 rounded",attrs:{variant:"outline-danger",size:"sm",type:"submit"},on:{click:function(t){return e.$bvModal.show("encerramento")}}},[o("fa-icon",{attrs:{icon:"envelope-circle-check"}})],1):3===e.correspondenciaAux.status?o("b-button",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:"Reabrir",expression:"'Reabrir'",modifiers:{hover:!0,top:!0}}],staticClass:"my-2 ml-2 rounded",attrs:{variant:"outline-secondary",size:"sm",type:"submit"}},[o("fa-icon",{attrs:{icon:"envelope-open-text"}})],1):o("b-button",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:"Protocolar",expression:"'Protocolar'",modifiers:{hover:!0,top:!0}}],staticClass:"my-2 ml-2 rounded",attrs:{variant:"primary",size:"sm",type:"submit"}},[o("fa-icon",{attrs:{icon:"envelopes-bulk"}})],1)],1)])],1),e._v(" "),void 0!==e.correspondenciaAux.datHorProtocolo?o("b-row",[o("b-col",{attrs:{cols:"4"}},[o("label",[e._v("Protocolado: ")])]),e._v(" "),o("b-col",{attrs:{cols:"8"}},[o("div",{staticClass:"d-flex justify-content-end"},[o("label",[e._v(" "+e._s(e._f("formatDate")(e.correspondenciaAux.datResposta)))])])]),e._v(" "),o("b-col",{attrs:{cols:"7"}},[o("label",[e._v("Prazo (enc.): ")])]),e._v(" "),o("b-col",{attrs:{cols:"5"}},[o("div",{staticClass:"d-flex justify-content-end"},[o("label",[e._v(" "+e._s(e.correspondenciaAux.prazo)+" dias")])])])],1):e._e(),e._v(" "),3===e.correspondenciaAux.status||5===e.correspondenciaAux.status?o("b-row",[o("b-col",{attrs:{cols:"4"}},[o("label",[e._v("Encerrado: ")])]),e._v(" "),o("b-col",{attrs:{cols:"8"}},[o("div",{staticClass:"d-flex justify-content-end"},[o("label",[e._v("\n              "+e._s(e._f("formatDate")(e.correspondenciaAux.datHorEncerramento)))])])])],1):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=87624a3-1.2.11.js.map