(window.webpackJsonp=window.webpackJsonp||[]).push([[809],{871:function(e,t,r){var content=r(893);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(122).default)("466dae26",content,!0,{sourceMap:!1})},892:function(e,t,r){"use strict";r(871)},893:function(e,t,r){var o=r(121)(!1);o.push([e.i,".chart[data-v-de2e9bb6]{height:50vh}",""]),e.exports=o},899:function(e,t,r){"use strict";r.r(t);var o=r(2);r(4),r(8),r(208),r(25),r(6),r(5),r(7),r(12),r(13);function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function n(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var l={props:{chartData:{type:Array,default:function(){return[]}}},computed:{option:function(){var e=this,t={xAxis:[{type:"category",data:[]}],yAxis:[{type:"value"}],tooltip:{trigger:"item"},legend:{show:!0},series:[]};return this.chartData.forEach((function(r){var o=r.fase,c=r.situacoes;t.xAxis[0].data.push(o),c.forEach((function(r){var o=r.tipo,c=r.contagem,l=t.series.findIndex((function(s){return s.name.toLowerCase()===o.toLowerCase()}));if(-1===l){var f=e.getChartSerie(o);t.series.push(n(n({},f),{},{data:[c]}))}else t.series[l].data.push(c)}))})),t}},methods:{getChartSerie:function(e){return"aprovado"===e.toLowerCase()?{name:"Aprovado",type:"bar",stack:"situacao",color:"rgb(112, 173, 71)",emphasis:{focus:"series"},data:[]}:"reprovado"===e.toLowerCase()?{name:"Reprovado",type:"bar",stack:"situacao",color:"rgb(255, 192, 0)",emphasis:{focus:"series"},data:[]}:"nível 0"===e.toLowerCase()?{name:"Nível 0",type:"bar",stack:"situacao",color:"rgb(112, 173, 71)",emphasis:{focus:"series"},data:[]}:"nível 1"===e.toLowerCase()?{name:"Nível 1",type:"bar",stack:"situacao",color:"rgb(150, 214, 95)",emphasis:{focus:"series"},data:[]}:"nível 2"===e.toLowerCase()?{name:"Nível 2",type:"bar",stack:"situacao",color:"rgb(247, 220, 111)",emphasis:{focus:"series"},data:[]}:"nível 3"===e.toLowerCase()?{name:"Nível 3",type:"bar",stack:"situacao",color:"rgb(243, 156, 18)",emphasis:{focus:"series"},data:[]}:"r1"===e.toLowerCase()?{name:"R1",type:"bar",stack:"situacao",color:"rgb(150, 214, 95)",emphasis:{focus:"series"},data:[]}:"r2"===e.toLowerCase()?{name:"R2",type:"bar",stack:"situacao",color:"rgb(247, 220, 111)",emphasis:{focus:"series"},data:[]}:"r3"===e.toLowerCase()?{name:"R3",type:"bar",stack:"situacao",color:"rgb(243, 156, 18)",emphasis:{focus:"series"},data:[]}:"r4"===e.toLowerCase()?{name:"R4",type:"bar",stack:"situacao",color:"rgb(243, 156, 18)",emphasis:{focus:"series"},data:[]}:(console.log("Tipo não encontrado",e),{name:"Indefinido",type:"bar",stack:"situacao",color:"rgb(237, 125, 49)",emphasis:{focus:"series"},data:[]})}}},f=(r(892),r(42)),component=Object(f.a)(l,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-chart",{staticClass:"chart",attrs:{option:e.option}})}),[],!1,null,"de2e9bb6",null);t.default=component.exports}}]);
//# sourceMappingURL=08127e2-1.2.11.js.map