!function(r){"use strict";var t=function(){this.$body=r("body"),this.charts=[]};t.prototype.respChart=function(t,e,a,s){Chart.defaults.global.defaultFontColor="#8391a2",Chart.defaults.scale.gridLines.color="#8391a2";var o=t.get(0).getContext("2d"),n=r(t).parent();return function(){var i;switch(t.attr("width",r(n).width()),e){case"Line":i=new Chart(o,{type:"line",data:a,options:s});break;case"Doughnut":i=new Chart(o,{type:"doughnut",data:a,options:s})}return i}()},t.prototype.initCharts=function(){var t=[];return 0<r("#task-area-chart").length&&t.push(this.respChart(r("#task-area-chart"),"Line",{labels:["Order 1","Order 2","Order 3","Order 4","Order 5","Order 6","Order 7","Order 8","Order 9","Order 10","Order 11","Order 12","Order 13","Order 14","Order 15","Order 16","Order 17","Order 18","Order 19","Order 20","Order 21","Order 22","Order 23","Order 24"],datasets:[{label:"This year",backgroundColor:"rgba(114, 124, 245, 0.3)",borderColor:"#248afd",data:[16,44,32,48,72,60,84,64,78,50,68,34,26,44,32,48,72,60,74,52,62,50,32,22]}]},{maintainAspectRatio:!1,legend:{display:!1},tooltips:{intersect:!1},hover:{intersect:!0},plugins:{filler:{propagate:!1}},scales:{xAxes:[{reverse:!0,gridLines:{color:"rgba(0,0,0,0.05)"}}],yAxes:[{ticks:{stepSize:10,display:!1},min:10,max:100,display:!0,borderDash:[5,5],gridLines:{color:"rgba(0,0,0,0)",fontColor:"#fff"}}]}})),0<r("#project-status-chart").length&&t.push(this.respChart(r("#project-status-chart"),"Doughnut",{labels:["Completed","In-progress","Behind"],datasets:[{data:[64,26,10],backgroundColor:["#0acf97","#248afd","#fa5c7c"],borderColor:"transparent",borderWidth:"3"}]},{maintainAspectRatio:!1,cutoutPercentage:80,legend:{display:!1}})),t},t.prototype.init=function(){var t=this;Chart.defaults.global.defaultFontFamily='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',t.charts=this.initCharts(),r(window).on("resize",function(e){r.each(t.charts,function(r,t){try{t.destroy()}catch(r){}}),t.charts=t.initCharts()})},r.ChartJs=new t,r.ChartJs.Constructor=t}(window.jQuery),function(r){"use strict";window.jQuery.ChartJs.init()}();