"use strict";function getChartColorsArray(t){if(null!==document.getElementById(t)){var e=document.getElementById(t).getAttribute("data-colors");return(e=JSON.parse(e)).map((function(t){var e=t.replace(" ","");if(-1===e.indexOf(",")){var r=getComputedStyle(document.documentElement).getPropertyValue(e);return r||e}var o=t.split(",");if(2==o.length){var a=getComputedStyle(document.documentElement).getPropertyValue(o[0]);return a="rgba("+a+","+o[1]+")"}return e}))}}$((function(){var t="rtl"===$("html").attr("dir")?"right":"left";$("#hospitalSchedule").datepicker({orientation:t,todayHighlight:!0})}));var patientsStatusColors=getChartColorsArray("patientsStatus");if(patientsStatusColors){var options={chart:{type:"line",height:130,toolbar:{show:!1},zoom:{enabled:!1},dropShadow:{enabled:!0,top:6,left:2,blur:2,color:"#000",opacity:.2}},series:[{name:"Booked",data:[15,30,15,30,15,50,20]},{name:"Completed",data:[10,40,10,20,5,30,15]},{name:"Cancelled",data:[25,15,35,5,28,12,23]}],xaxis:{categories:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],labels:{show:!1},axisBorder:{show:!1},axisTicks:{show:!1}},yaxis:{min:0,show:!1},stroke:{curve:"smooth",width:2},markers:{show:!1},tooltip:{shared:!0,y:{formatter:t=>`${t} Patients`}},colors:patientsStatusColors,grid:{borderColor:"#f1f1f1",row:{opacity:0},strokeDashArray:4,padding:{top:-25,bottom:-10,left:10,right:10}},legend:{show:!1}},teamProductivityChart=new ApexCharts(document.querySelector("#patientsStatus"),options);teamProductivityChart.render()}var appointmentsChartColors=getChartColorsArray("appointmentsChart");if(appointmentsChartColors){var optionsCircle4={chart:{type:"radialBar",height:240,width:330},plotOptions:{radialBar:{size:void 0,inverseOrder:!0,hollow:{margin:5,size:"48%",background:"transparent"},track:{show:!1,margin:8},startAngle:-180,endAngle:180}},stroke:{lineCap:"round"},series:[71,63,77],labels:["Today","Weekly","Monthly"],legend:{show:!0,floating:!0,position:"right",offsetX:30,offsetY:145},colors:appointmentsChartColors,grid:{padding:{top:-20,left:-50,bottom:-20}}},chartCircle4=new ApexCharts(document.querySelector("#appointmentsChart"),optionsCircle4);chartCircle4.render()}var colors=getChartColorsArray("financialChart"),chart=(options={series:[{name:"Pipeline Value",data:[305e3,392e3,325e3,35e4,25e4,355e3,27e4,305e3]}],chart:{type:"area",height:142,sparkline:{enabled:!0}},stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{shadeIntensity:.3,opacityFrom:.5,opacityTo:.1,stops:[0,100]}},colors:colors,tooltip:{enabled:!0,theme:"dark",y:{formatter:function(t){return"$"+t.toLocaleString()}}}},new ApexCharts(document.querySelector("#financialChart"),options));chart.render();