$(window).on("load",function(){var e="#5A8DEE",t="#39DA8A",o="#FF5B5C",a="#FDAC41",r="#00CFDD",s="#E2ECFF",i="#ffeed9",l="#828D99",n={chart:{height:40,width:40,type:"radialBar"},grid:{show:!1,padding:{left:-30,right:-30,top:0}},series:[30],colors:[t],plotOptions:{radialBar:{hollow:{size:"30%"},dataLabels:{showOn:"always",name:{show:!1},value:{show:!1}}}},fill:{type:"gradient",gradient:{shade:"light",type:"horizontal",gradientToColors:[t],opacityFrom:1,opacityTo:.8,stops:[0,70,100]}},stroke:{lineCap:"round"}};new ApexCharts(document.querySelector("#radial-success-chart"),n).render();var d={chart:{height:40,width:40,type:"radialBar"},grid:{show:!1,padding:{left:-30,right:-30,top:0}},series:[80],colors:[a],plotOptions:{radialBar:{hollow:{size:"30%"},dataLabels:{showOn:"always",name:{show:!1},value:{show:!1}}}},fill:{type:"gradient",gradient:{shade:"light",type:"horizontal",gradientToColors:[a],opacityFrom:1,opacityTo:.8,stops:[0,70,100]}},stroke:{lineCap:"round"}};new ApexCharts(document.querySelector("#radial-warning-chart"),d).render();var h={chart:{height:40,width:40,type:"radialBar"},grid:{show:!1,padding:{left:-30,right:-30,top:0}},series:[50],colors:[o],plotOptions:{radialBar:{hollow:{size:"30%"},dataLabels:{showOn:"always",name:{show:!1},value:{show:!1}}}},fill:{type:"gradient",gradient:{shade:"light",type:"horizontal",gradientToColors:[o],opacityFrom:1,opacityTo:.8,stops:[0,70,100]}},stroke:{lineCap:"round"}};new ApexCharts(document.querySelector("#radial-danger-chart"),h).render();var p={chart:{height:260,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},legend:{horizontalAlign:"right",offsetY:-10,markers:{radius:50,height:8,width:8}},dataLabels:{enabled:!1},colors:[e,s],fill:{type:"gradient",gradient:{shade:"light",type:"vertical",inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,70,100]}},series:[{name:"2019",data:[80,95,150,210,140,230,300,280,130]},{name:"2018",data:[50,70,130,180,90,180,270,220,110]}],xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:l}}},yaxis:{min:0,max:300,tickAmount:3,labels:{style:{color:l}}},legend:{show:!1},tooltip:{y:{formatter:function(e){return"$ "+e+" thousands"}}}};new ApexCharts(document.querySelector("#analytics-bar-chart"),p).render();var c={chart:{height:100,type:"line",toolbar:{show:!1}},grid:{show:!1,padding:{bottom:-20}},colors:[t],dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth"},series:[{data:[50,0,50,40,90,0,40,25,80,40,45]}],xaxis:{show:!1,labels:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};new ApexCharts(document.querySelector("#success-line-chart"),c).render();var w={chart:{width:200,type:"donut"},dataLabels:{enabled:!1},series:[80,30,60],labels:["Social","Email","Search"],stroke:{width:0,lineCap:"round"},colors:[e,r,a],plotOptions:{pie:{donut:{size:"90%",labels:{show:!0,name:{show:!0,fontSize:"15px",colors:"#596778",offsetY:20,fontFamily:"IBM Plex Sans"},value:{show:!0,fontSize:"26px",fontFamily:"Rubik",color:"#475f7b",offsetY:-20,formatter:function(e){return e}},total:{show:!0,label:"Impression",color:l,formatter:function(e){return e.globals.seriesTotals.reduce(function(e,t){return e+t},0)}}}}}},legend:{show:!1}};new ApexCharts(document.querySelector("#donut-chart"),w).render();var g={chart:{height:110,stacked:!0,type:"bar",toolbar:{show:!1},sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"20%",endingShape:"rounded"},distributed:!0},colors:[e,a],series:[{name:"New Clients",data:[75,150,225,200,35,50,150,180,50,150,240,140,75,35,60,120]},{name:"Retained Clients",data:[-100,-55,-40,-120,-70,-40,-60,-50,-70,-30,-60,-40,-50,-70,-40,-50]}],grid:{show:!1},legend:{show:!1},dataLabels:{enabled:!1},tooltip:{x:{show:!1}}};new ApexCharts(document.querySelector("#bar-negative-chart"),g).render();var u={chart:{height:40,type:"line",toolbar:{show:!1},sparkline:{enabled:!0}},grid:{show:!1,padding:{bottom:5,top:5,left:10,right:0}},colors:[e],dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth"},series:[{data:[50,100,0,60,20,30]}],fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",gradientToColors:[e],opacityFrom:0,opacityTo:.9,stops:[0,30,70,100]}},xaxis:{show:!1,labels:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};new ApexCharts(document.querySelector("#primary-line-chart"),u).render();var y={chart:{height:40,type:"line",toolbar:{show:!1},sparkline:{enabled:!0}},grid:{show:!1,padding:{bottom:5,top:5,left:10,right:0}},colors:[a],dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth"},series:[{data:[30,60,30,80,20,70]}],fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",gradientToColors:[a],opacityFrom:0,opacityTo:.9,stops:[0,30,70,100]}},xaxis:{show:!1,labels:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};new ApexCharts(document.querySelector("#warning-line-chart"),y).render();var m={chart:{height:40,width:40,type:"radialBar",sparkline:{show:!0}},grid:{show:!1,padding:{left:-30,right:-30,top:0,bottom:-70}},series:[50],colors:[e],plotOptions:{radialBar:{hollow:{size:"30%"},dataLabels:{showOn:"always",name:{show:!1},value:{show:!1}}}},stroke:{lineCap:"round"}};new ApexCharts(document.querySelector("#profit-primary-chart"),m).render();var b={chart:{height:40,width:40,type:"radialBar",sparkline:{show:!0}},grid:{show:!1,padding:{left:-30,right:-30,top:0,bottom:-70}},series:[70],colors:[r],plotOptions:{radialBar:{hollow:{size:"30%"},dataLabels:{showOn:"always",name:{show:!1},value:{show:!1}}}},stroke:{lineCap:"round"}};new ApexCharts(document.querySelector("#profit-info-chart"),b).render();var f={chart:{type:"bar",height:60,width:120,sparkline:{enabled:!0},toolbar:{show:!1}},states:{hover:{filter:"none"}},colors:[i,i,i,i,a,i],series:[{name:"Sessions",data:[3,7,5,15,9,8,12]}],grid:{show:!1,padding:{left:0,right:0}},plotOptions:{bar:{columnWidth:"80%",distributed:!0}},tooltip:{x:{show:!1}},xaxis:{type:"numeric"}};new ApexCharts(document.querySelector("#registration-chart"),f).render();var x={chart:{height:100,type:"bar",stacked:!0,toolbar:{show:!1}},grid:{show:!1,padding:{left:0,right:0,top:-20,bottom:-15}},plotOptions:{bar:{horizontal:!1,columnWidth:"20%",endingShape:"rounded"}},legend:{show:!1},dataLabels:{enabled:!1},colors:[e,s],series:[{name:"2019",data:[80,40,30,90,20,50,95]},{name:"2018",data:[20,60,70,10,80,50,5]}],xaxis:{categories:["S","M","T","W","T","F","S"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:l},offsetY:-5}},yaxis:{show:!1,floating:!0},tooltip:{x:{show:!1}}};new ApexCharts(document.querySelector("#sales-chart"),x).render();var C={chart:{height:200,type:"radialBar",sparkline:{show:!0}},grid:{show:!1},plotOptions:{radialBar:{size:100,startAngle:-135,endAngle:135,offsetY:40,hollow:{size:"60%"},track:{strokeWidth:"90%",background:"#fff"},dataLabels:{value:{offsetY:-10,color:"#475f7b",fontSize:"26px"},name:{fontSize:"15px",color:"#596778",offsetY:30}}}},colors:[o],fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[e],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{dashArray:3},series:[78],labels:["Growth"]};new ApexCharts(document.querySelector("#growth-Chart"),C).render(),$(document).on("click",".widget-todo-item input",function(){$(this).closest(".widget-todo-item").toggleClass("completed")}),dragula([document.getElementById("widget-todo-list")],{moves:function(e,t,o){return o.classList.contains("cursor-move")}})});