(window.webpackJsonp=window.webpackJsonp||[]).push([[342],{958:function(t,e,r){"use strict";r.r(e);r(4),r(8),r(203),r(38);var n=r(65),o=r(365),c=r(385),l=r(382);Object(n.a)([o.a,c.a,l.a]);var h={props:{chartData:{type:Array,required:!0},getChartSerie:{type:Function,required:!0},handleSelect:{type:Function,default:function(){return null}}},computed:{chartOption:function(){var t=this,option={title:{text:"Evolução Anual"},tooltip:{trigger:"item"},legend:{top:"bottom"},xAxis:[{type:"category",data:[]}],yAxis:[{type:"value"}],series:[]};return this.chartData.forEach((function(e){var r=e.ano,n=e.situacoes;option.xAxis[0].data.push(r),void 0===n&&(n=[]),n.forEach((function(e){var r=e.tipo,n=e.contagem,o=option.series.findIndex((function(s){return s.name.toLowerCase()===r.toLowerCase()}));if(-1===o){var c=t.getChartSerie(r);c.data.push(n),option.series.push(c)}else option.series[o].data.push(n)}))})),option}}},d=r(37),component=Object(d.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-card",[0===t.chartData.length?r("b-alert",{attrs:{show:"",variant:"info"}},[r("fa-icon",{staticClass:"mr-1",staticStyle:{"font-size":"1.2rem"},attrs:{icon:"circle-info"}}),t._v(" "),r("span",[t._v(" Não há dados para o filtro informado. ")])],1):t._e(),t._v(" "),r("v-chart",{staticClass:"chart",attrs:{option:t.chartOption,autoresize:""},on:{click:t.handleSelect}})],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=5cc96fd-1.2.10.js.map