(window.webpackJsonp=window.webpackJsonp||[]).push([[788],{1931:function(t,e,r){"use strict";r.r(e);r(4),r(8);var o=r(70),n=r(370),c=r(393),l=r(391);Object(o.a)([n.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}}},data:function(){return{updateCount:0}},computed:{chartOption:function(){var t=this,option={title:{text:"Geral",subtext:"OAC"},legend:{top:"bottom"},tooltip:{trigger:"item"},series:[{type:"pie",data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};return this.chartData.forEach((function(e){var r=e.classificacao,o=e.situacoes;"OAC"===r&&(void 0===o&&(o=[]),o.forEach((function(e){var r=e.tipo,o=e.contagem,n=t.getChartSerie(r);option.series[0].data.push({value:o,name:"ruim"===r.toLowerCase()?"Precário":r,itemStyle:{color:n.color}})})))})),option}},watch:{chartData:function(){this.updateCount++}}},d=r(42),component=Object(d.a)(h,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-chart",{key:t.updateCount,staticClass:"chart",attrs:{option:t.chartOption,autoresize:""},on:{click:t.handleSelect}})}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=fe9a74d-1.2.11.js.map