$(window).on("load",(function(){new PerfectScrollbar("#recent-buyers, #new-orders",{wheelPropagation:!0});Morris.Bar.prototype.fillForSeries=function(e){return"0-#fff-#f00:20-#000"},Morris.Bar({element:"monthly-sales",data:[{month:"Jan",sales:1835},{month:"Feb",sales:2356},{month:"Mar",sales:1459},{month:"Apr",sales:1289},{month:"May",sales:1647},{month:"Jun",sales:2156},{month:"Jul",sales:1835},{month:"Aug",sales:2356},{month:"Sep",sales:1459},{month:"Oct",sales:1289},{month:"Nov",sales:1647},{month:"Dec",sales:2156}],xkey:"month",ykeys:["sales"],labels:["Sales"],barGap:4,barSizeRatio:.3,gridTextColor:"#bfbfbf",gridLineColor:"#E4E7ED",numLines:5,gridtextSize:14,resize:!0,barColors:["#FF394F"],hideHover:"auto"})})),function(e,t,a){"use strict";var n,s,i,o,r,l,h,c;n=function(e,t,a){var n=new Chartist.Line("#"+e,{labels:t,series:[a]},{lineSmooth:Chartist.Interpolation.simple({divisor:2}),fullWidth:!0,chartPadding:{right:25},series:{"series-1":{showArea:!1}},axisX:{showGrid:!1},axisY:{labelInterpolationFnc:function(e){return e/1e3+"K"},scaleMinSpace:40},plugins:[Chartist.plugins.tooltip()],low:0,showPoint:!1,height:300});n.on("created",(function(t){var a=t.svg.querySelector("defs")||t.svg.elem("defs"),n=(t.svg.width(),t.svg.height(),a.elem("filter",{x:0,y:"-10%",id:"shadow"+e},"",!0));return n.elem("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"24",result:"offsetBlur"}),n.elem("feOffset",{dx:"0",dy:"32"}),n.elem("feBlend",{in:"SourceGraphic",mode:"multiply"}),a.elem("linearGradient",{id:e+"-gradient",x1:0,y1:0,x2:1,y2:0}).elem("stop",{offset:0,"stop-color":"rgba(22, 141, 238, 1)"}).parent().elem("stop",{offset:1,"stop-color":"rgba(98, 188, 246, 1)"}),a})).on("draw",(function(t){"line"===t.type?t.element.attr({filter:"url(#shadow"+e+")"}):"point"===t.type&&new Chartist.Svg(t.element._node.parentNode).elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y,class:"ct-point-content"}),"line"!==t.type&&"area"!=t.type||t.element.animate({d:{begin:1e3*t.index,dur:1e3,from:t.path.clone().scale(1,0).translate(0,t.chartRect.height()).stringify(),to:t.path.clone().stringify(),easing:Chartist.Svg.Easing.easeOutQuint}})}))},s=["1st","2nd","3rd","4th","5th","6th","7th","8th"],i={name:"series-1",data:[0,4500,2600,6100,2600,6500,3200,6800]},o=["W1","W2","W4","W5","W6","W7","W8"],r={name:"series-1",data:[77e3,18e3,61e3,26e3,58e3,32e3,7e4,45e3]},l=["AUG","SEP","OTC","NOV","DEC","JAN","FEB"],h={name:"series-1",data:[1e5,5e5,3e5,7e5,1e5,2e5,7e5,5e4]},(c=function(e){switch((e||a("#ecommerceChartView .chart-action").find(".active")).attr("href")){case"#scoreLineToDay":n("scoreLineToDay",s,i);break;case"#scoreLineToWeek":n("scoreLineToWeek",o,r);break;case"#scoreLineToMonth":n("scoreLineToMonth",l,h)}})(),a(".chart-action li a").on("click",(function(){c(a(this))})),new Chartist.Line("#cost-revenue",{labels:[1,2,3,4,5,6,7,8,9,10],series:[[{meta:"Revenue",value:5},{meta:"Revenue",value:3},{meta:"Revenue",value:6},{meta:"Revenue",value:3},{meta:"Revenue",value:8},{meta:"Revenue",value:5},{meta:"Revenue",value:8},{meta:"Revenue",value:12},{meta:"Revenue",value:7},{meta:"Revenue",value:14}]]},{low:0,high:18,fullWidth:!0,showArea:!0,showPoint:!0,showLabel:!1,axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0},chartPadding:0,plugins:[Chartist.plugins.tooltip()]}).on("draw",(function(e){if("area"===e.type&&e.element.attr({style:"fill: #28D094; fill-opacity: 0.2"}),"line"===e.type&&e.element.attr({style:"fill: transparent; stroke: #28D094; stroke-width: 4px;"}),"point"===e.type){var t=new Chartist.Svg("circle",{cx:[e.x],cy:[e.y],r:[7]},"ct-area-circle");e.element.replace(t)}}))}(window,document,jQuery);