"use strict";!function(e){function a(){this.$realData=[]}a.prototype.createBarChart=function(e,a,r,t,o,i){Morris.Bar({element:e,data:a,xkey:r,ykeys:t,labels:o,hideHover:"auto",resize:!0,gridLineColor:"rgba(173, 181, 189, 0.1)",barSizeRatio:.2,dataLabels:!1,barColors:i})},a.prototype.createLineChart=function(e,a,r,t,o,i,n,s,l){Morris.Line({element:e,data:a,xkey:r,ykeys:t,labels:o,fillOpacity:i,pointFillColors:n,pointStrokeColors:s,behaveLikeLine:!0,gridLineColor:"rgba(173, 181, 189, 0.1)",hideHover:"auto",resize:!0,pointSize:0,dataLabels:!1,lineColors:l})},a.prototype.createDonutChart=function(e,a,r){Morris.Donut({element:e,data:a,resize:!0,colors:r,backgroundColor:"transparent"})},a.prototype.init=function(){e("#morris-bar-example").empty(),e("#morris-line-example").empty(),e("#morris-donut-example").empty(),this.createBarChart("morris-bar-example",[{y:"January",a:75},{y:"February",a:42},{y:"March",a:75},{y:"April",a:38},{y:"May",a:19},{y:"June",a:93}],"y",["a"],["Engagement"],["#188ae2"]),this.createLineChart("morris-line-example",[{y:"2008",a:50,b:0},{y:"2009",a:75,b:50},{y:"2010",a:30,b:80},{y:"2011",a:50,b:50},{y:"2012",a:75,b:10},{y:"2013",a:50,b:40},{y:"2014",a:75,b:50},{y:"2015",a:100,b:70}],"y",["a","b"],["Receivable","Payable"],["0.9"],["#ffffff"],["#999999"],["#10c469","#188ae2"]);this.createDonutChart("morris-donut-example",[{label:"Loss",value:12000},{label:"Profit",value:30000}],["#ff8acc","#5b69bc"])},e.Dashboard1=new a,e.Dashboard1.Constructor=a}(window.jQuery),function(a){a.Dashboard1.init(),window.addEventListener("adminto.setBoxed",function(e){a.Dashboard1.init()}),window.addEventListener("adminto.setFluid",function(e){a.Dashboard1.init()})}(window.jQuery);