(window.webpackJsonp=window.webpackJsonp||[]).push([[343],{959:function(t,e,r){"use strict";r.r(e);r(11),r(10),r(5),r(12),r(13);var o=r(1),n=(r(4),r(8),r(65)),c=r(365),l=r(385),f=r(382);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function O(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}Object(n.a)([c.a,l.a,f.a]);var d={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:"Geral"},legend:{top:"bottom"},tooltip:{trigger:"item"},series:[{type:"pie",data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},e=function(t){return JSON.parse(JSON.stringify(t))},r={optionAC:e(O(O({},option),{},{title:O(O({},option.title),{},{subtext:"AC"})})),optionOC:e(O(O({},option),{},{title:O(O({},option.title),{},{subtext:"OC"})}))};return this.chartData.forEach((function(e){var o=e.classificacao;e.situacoes.forEach((function(e){var n=e.tipo,c=e.contagem,l=t.getChartSerie(n);r["option"+o]&&r["option"+o].series[0].data.push({name:n,value:c,itemStyle:O({},l)})}))})),console.log(r.optionOC.series[0].data),O({},r)}}},v=r(37),component=Object(v.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-card",[r("b-row",[r("b-col",[0===t.chartOption.optionOC.series[0].data||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.optionAC,autoresize:""},on:{click:function(e){return t.handleSelect("acesso")}}})],1),t._v(" "),r("b-col",[0===t.chartOption.optionOC.series[0].data||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.optionOC,autoresize:""},on:{click:function(e){return t.handleSelect("ocupacao")}}})],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=0418238-1.2.10.js.map