!function(r){"use strict";function e(){this.$body=r("body"),this.charts=[]}e.prototype.initCharts=function(){window.Apex={chart:{parentHeightOffset:0,toolbar:{show:!1}},grid:{padding:{left:0,right:0}},colors:["#96CA50","#17a497","#fa5c7c","#ffbc00"]};var e=["#96CA50","#17a497","#fa5c7c","#ffbc00"],a=r("#revenue-chart").data("colors"),t={series:[{name:"Revenue",type:"area",data:[440,505,414,671,227,413,201,352,752,320,257,160]},{name:"Sales",type:"bar",data:[23,42,35,27,43,22,17,31,22,22,12,16]}],chart:{height:335,type:"line",offsetY:0},stroke:{width:[2,1]},plotOptions:{bar:{columnWidth:"25%"}},colors:e=a?a.split(","):e,dataLabels:{enabled:!0,enabledOnSeries:[1]},labels:["01 Jan 2001","02 Jan 2001","03 Jan 2001","04 Jan 2001","05 Jan 2001","06 Jan 2001","07 Jan 2001","08 Jan 2001","09 Jan 2001","10 Jan 2001","11 Jan 2001","12 Jan 2001"],xaxis:{type:"datetime"},legend:{offsetY:7},grid:{padding:{bottom:5}},fill:{type:"gradient",gradient:{shade:"light",type:"horizontal",shadeIntensity:.25,gradientToColors:void 0,inverseColors:!0,opacityFrom:0,opacityTo:.75,stops:[0,0,0]}},yaxis:[{title:{text:"Net Revenue"}},{opposite:!0,title:{text:"Number of Sales"}}]},e=(new ApexCharts(document.querySelector("#revenue-chart"),t).render(),["#96CA50","#17a497","#fa5c7c","#ffbc00"]),t={chart:{height:367,type:"radialBar"},plotOptions:{radialBar:{startAngle:-135,endAngle:135,dataLabels:{name:{fontSize:"14px",color:void 0,offsetY:100},value:{offsetY:55,fontSize:"24px",color:void 0,formatter:function(e){return e+"%"}}},track:{background:"rgba(170,184,197, 0.2)",margin:0}}},fill:{gradient:{enabled:!0,shade:"dark",shadeIntensity:.2,inverseColors:!1,opacityFrom:1,opacityTo:1,stops:[0,50,65,91]}},stroke:{dashArray:4},colors:e=(a=r("#average-sales").data("colors"))?a.split(","):e,series:[67],labels:["Returning Customer"],responsive:[{breakpoint:380,options:{chart:{height:180}}}],grid:{padding:{top:0,right:0,bottom:0,left:0}}},e=(new ApexCharts(document.querySelector("#average-sales"),t).render(),["#96CA50","#17a497","#fa5c7c","#ffbc00"]),t={chart:{height:320,type:"bar"},plotOptions:{bar:{horizontal:!0}},colors:e=(a=r("#country-chart").data("colors"))?a.split(","):e,dataLabels:{enabled:!1},series:[{name:"Orders",data:[90,75,60,50,45,36,28,20,15,12]}],xaxis:{categories:["India","China","United States","Japan","France","Italy","Netherlands","United Kingdom","Canada","South Korea"],axisBorder:{show:!1},labels:{formatter:function(e){return e+"%"}}},grid:{strokeDashArray:[5]}};new ApexCharts(document.querySelector("#country-chart"),t).render()},e.prototype.initMaps=function(){0<r("#world-map-markers").length&&r("#world-map-markers").vectorMap({map:"world_mill_en",normalizeFunction:"polynomial",hoverOpacity:.7,hoverColor:!1,regionStyle:{initial:{fill:"rgba(145,166,189,.25)"}},markerStyle:{initial:{r:9,fill:"#96CA50","fill-opacity":.9,stroke:"#fff","stroke-width":7,"stroke-opacity":.4},hover:{stroke:"#fff","fill-opacity":1,"stroke-width":1.5}},backgroundColor:"transparent",markers:[{latLng:[40.71,-74],name:"New York"},{latLng:[37.77,-122.41],name:"San Francisco"},{latLng:[-33.86,151.2],name:"Sydney"},{latLng:[1.3,103.8],name:"Singapore"}],zoomOnScroll:!1})},e.prototype.init=function(){r("#dash-daterange").daterangepicker({singleDatePicker:!0}),this.initCharts(),this.initMaps()},r.Dashboard=new e,r.Dashboard.Constructor=e}(window.jQuery),function(a){"use strict";a(document).ready(function(e){a.Dashboard.init()})}(window.jQuery);