(function(){let o,t,s,n;isDarkStyle?(o=config.colors_dark.cardColor,n=config.colors_dark.textMuted,s=config.colors_dark.bodyColor,t=config.colors_dark.headingColor):(o=config.colors.cardColor,n=config.colors.textMuted,s=config.colors.bodyColor,t=config.colors.headingColor);function p(e,a,r){return{chart:{height:r=="true"?58:55,width:r=="true"?58:45,type:"radialBar"},plotOptions:{radialBar:{hollow:{size:r=="true"?"50%":"25%"},dataLabels:{show:r=="true",value:{offsetY:-10,fontSize:"15px",fontWeight:500,fontFamily:"Public Sans",color:t}},track:{background:config.colors_label.secondary}}},stroke:{lineCap:"round"},colors:[e],grid:{padding:{top:r=="true"?-12:-15,bottom:r=="true"?-17:-15,left:r=="true"?-17:-5,right:-15}},series:[a],labels:r=="true"?[""]:["Progress"]}}const c=document.querySelectorAll(".chart-progress");c&&c.forEach(function(e){const a=config.colors[e.dataset.color],r=e.dataset.series,h=e.dataset.progress_variant?e.dataset.progress_variant:"false",b=p(a,r,h);new ApexCharts(e,b).render()});const i=document.querySelector("#orderStatisticsChart"),g={chart:{height:145,width:110,type:"donut"},labels:["Electronic","Sports","Decor","Fashion"],series:[50,85,25,40],colors:[config.colors.success,config.colors.primary,config.colors.secondary,config.colors.info],stroke:{width:5,colors:[o]},dataLabels:{enabled:!1,formatter:function(e,a){return parseInt(e)+"%"}},legend:{show:!1},grid:{padding:{top:0,bottom:0,right:15}},plotOptions:{pie:{donut:{size:"75%",labels:{show:!0,value:{fontSize:"18px",fontFamily:"Public Sans",fontWeight:500,color:t,offsetY:-17,formatter:function(e){return parseInt(e)+"%"}},name:{offsetY:17,fontFamily:"Public Sans"},total:{show:!0,fontSize:"13px",color:s,label:"Weekly",formatter:function(e){return"38%"}}}}}},states:{active:{filter:{type:"none"}}}};typeof i!==void 0&&i!==null&&new ApexCharts(i,g).render();const l=document.querySelector("#reportBarChart"),y={chart:{height:200,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{barHeight:"60%",columnWidth:"60%",startingShape:"rounded",endingShape:"rounded",borderRadius:4,distributed:!0}},grid:{show:!1,padding:{top:-20,bottom:0,left:-10,right:-10}},colors:[config.colors_label.primary,config.colors_label.primary,config.colors_label.primary,config.colors_label.primary,config.colors.primary,config.colors_label.primary,config.colors_label.primary],dataLabels:{enabled:!1},series:[{data:[40,95,60,45,90,50,75]}],legend:{show:!1},xaxis:{categories:["Mo","Tu","We","Th","Fr","Sa","Su"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:n,fontSize:"13px"}}},yaxis:{labels:{show:!1}}};typeof l!==void 0&&l!==null&&new ApexCharts(l,y).render();const m=document.querySelector("#conversionRateChart"),C={chart:{height:80,width:140,type:"line",toolbar:{show:!1},dropShadow:{enabled:!0,top:10,left:5,blur:3,color:config.colors.primary,opacity:.15},sparkline:{enabled:!0}},markers:{size:6,colors:"transparent",strokeColors:"transparent",strokeWidth:4,discrete:[{fillColor:o,seriesIndex:0,dataPointIndex:3,strokeColor:config.colors.primary,strokeWidth:4,size:6,radius:2}],hover:{size:7}},grid:{show:!1,padding:{right:8}},colors:[config.colors.primary],dataLabels:{enabled:!1},stroke:{width:5,curve:"smooth"},series:[{data:[137,210,160,245]}],xaxis:{show:!1,lines:{show:!1},labels:{show:!1},axisBorder:{show:!1}},yaxis:{show:!1}};new ApexCharts(m,C).render();const d=document.querySelector(".credit-card-payment"),f=document.querySelector(".expiry-date-payment"),u=document.querySelectorAll(".cvv-code-payment");d&&new Cleave(d,{creditCard:!0,onCreditCardTypeChanged:function(e){e!=""&&e!="unknown"?document.querySelector(".card-payment-type").innerHTML='<img src="'+assetsPath+"img/icons/payments/"+e+'-cc.png" class="cc-icon-image" height="20"/>':document.querySelector(".card-payment-type").innerHTML=""}}),f&&new Cleave(f,{date:!0,delimiter:"/",datePattern:["m","y"]}),u&&u.forEach(function(e){new Cleave(e,{numeral:!0,numeralPositiveOnly:!0})})})();
