!function(e){"use strict";var t=function(){this.$body=e("body"),this.charts=[]};t.prototype.respChart=function(t,r,a,o){var n=Chart.controllers.bar.prototype.draw;Chart.controllers.bar=Chart.controllers.bar.extend({draw:function(){n.apply(this,arguments);var e=this.chart.chart.ctx,t=e.fill;e.fill=function(){e.save(),e.shadowColor="rgba(0,0,0,0.01)",e.shadowBlur=20,e.shadowOffsetX=4,e.shadowOffsetY=5,t.apply(this,arguments),e.restore()}}});var i=t.get(0).getContext("2d"),s=e(t).parent();return function(){var n;switch(t.attr("width",e(s).width()),r){case"Line":n=new Chart(i,{type:"line",data:a,options:o});break;case"Doughnut":n=new Chart(i,{type:"doughnut",data:a,options:o});break;case"Pie":n=new Chart(i,{type:"pie",data:a,options:o});break;case"Bar":n=new Chart(i,{type:"bar",data:a,options:o});break;case"Radar":n=new Chart(i,{type:"radar",data:a,options:o});break;case"PolarArea":n=new Chart(i,{data:a,type:"polarArea",options:o})}return n}()},t.prototype.initCharts=function(){if(e("#high-performing-product").length>0){var t=document.getElementById("high-performing-product").getContext("2d").createLinearGradient(0,500,0,150);t.addColorStop(0,"#fa5c7c"),t.addColorStop(1,"#727cf5");var r={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Orders",backgroundColor:t,borderColor:t,hoverBackgroundColor:t,hoverBorderColor:t,data:[65,59,80,81,56,89,40,32,65,59,80,81]},{label:"Revenue",backgroundColor:"#e3eaef",borderColor:"#e3eaef",hoverBackgroundColor:"#e3eaef",hoverBorderColor:"#e3eaef",data:[89,40,32,65,59,80,81,56,89,40,65,59]}]};[].push(this.respChart(e("#high-performing-product"),"Bar",r,{maintainAspectRatio:!1,legend:{display:!1},scales:{yAxes:[{gridLines:{display:!1},stacked:!1,ticks:{stepSize:20}}],xAxes:[{barPercentage:.7,categoryPercentage:.5,stacked:!1,gridLines:{color:"rgba(0,0,0,0.01)"}}]}}))}},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(),e(window).on("resize",function(r){e.each(t.charts,function(e,t){try{t.destroy()}catch(e){}}),t.charts=t.initCharts()})},e.Profile=new t,e.Profile.Constructor=t}(window.jQuery),function(e){"use strict";e.Profile.init()}(window.jQuery);