"use strict";var KTWidgets={init:function(){var e,t,a,o,s,r,i,l,n,c,d,h;!function(){var e,t,a,o=document.querySelectorAll(".mixed-widget-10-chart"),s=KTUtil.getCssVariableValue("--bs-gray-500"),r=KTUtil.getCssVariableValue("--bs-gray-200"),i=KTUtil.getCssVariableValue("--bs-gray-300");[].slice.call(o).map((function(o){e=o.getAttribute("data-kt-color"),t=parseInt(KTUtil.css(o,"height")),a=KTUtil.getCssVariableValue("--bs-"+e),new ApexCharts(o,{series:[{name:"เยี่ยมชม",data:[5680,5089,3093,3310,4341,6009,9025,7881,7279,5043,0,0,]},{name:"เยี่ยมชม",data:[5126,3966,4730,3867,3047,2153,1964,1570,2907,3613,3790,5912]}],chart:{fontFamily:"inherit",type:"bar",height:t,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:["50%"],borderRadius:4}},legend:{show:!1},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},xaxis:{categories:["ม.ค.","ก.พ","มี.ค","เม.ย","พ.ค","มิ.ย","ก.ค","ส.ค","ก.ย","ต.ค","พ.ย","ธ.ค"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:s,fontSize:"12px"}}},yaxis:{y:0,offsetX:0,offsetY:0,labels:{style:{colors:s,fontSize:"12px"}}},fill:{type:"solid"},states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"none",value:0}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"none",value:0}}},tooltip:{style:{fontSize:"12px"},y:{formatter:function(e){return""+e+" ครั้ง"}}},colors:[a,i],grid:{padding:{top:10},borderColor:r,strokeDashArray:4,yaxis:{lines:{show:!0}}}}).render()}))}(),function(){var e=document.querySelectorAll(".mixed-widget-17-chart");[].slice.call(e).map((function(e){var t=parseInt(KTUtil.css(e,"height"));if(e){var a=e.getAttribute("data-kt-chart-color"),o={labels:["เยี่ยมชมทั้งหมด"],series:[272275],chart:{fontFamily:"inherit",height:t,type:"radialBar",offsetY:0},plotOptions:{radialBar:{startAngle:-90,endAngle:90,hollow:{margin:0,size:"55%"},dataLabels:{showOn:"always",name:{show:!0,fontSize:"12px",fontWeight:"700",offsetY:-5,color:KTUtil.getCssVariableValue("--bs-gray-500")},value:{color:KTUtil.getCssVariableValue("--bs-gray-900"),fontSize:"24px",fontWeight:"600",offsetY:-40,show:!0,formatter:function(e){return"272,275"}}},track:{background:KTUtil.getCssVariableValue("--bs-gray-300"),strokeWidth:"100%"}}},colors:[KTUtil.getCssVariableValue("--bs-"+a)],stroke:{lineCap:"round"}};new ApexCharts(e,o).render()}}))}(),function(){var e=document.getElementById("kt_charts_widget_energ"),t=parseInt(KTUtil.css(e,"height")),a=KTUtil.getCssVariableValue("--bs-gray-500"),o=KTUtil.getCssVariableValue("--bs-gray-200"),s=KTUtil.getCssVariableValue("--bs-warning"),r=KTUtil.getCssVariableValue("--bs-gray-300");e&&new ApexCharts(e,{series:[{name:"ปีนี้",data:[710139.5,791866.4,744529.2,775068.9,1105649.3,1281002.6,1310674.0,2553703.6,2163990.9,0,0,0,]},{name:"ปีก่อน",data:[422198.2,665469.7,708262.1,641279.8,1085270.9,846486.0,1302393.2,1088956.0,1242861.5,855083.5,1044026.0,793592.0,]}],chart:{fontFamily:"inherit",type:"bar",height:t,toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:["30%"],borderRadius:4}},legend:{show:!1},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},xaxis:{categories:['ม.ค.','ก.พ','มี.ค','เม.ย','พ.ค','มิ.ย','ก.ค','ส.ค','ก.ย','ต.ค','พ.ย','ธ.ค'],axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:a,fontSize:"12px"}}},yaxis:{labels:{style:{colors:a,fontSize:"12px"}}},fill:{opacity:1},states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"none",value:0}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"none",value:0}}},tooltip:{style:{fontSize:"12px"},y:{formatter:function(e){return""+e+" บาท"}}},colors:[s,r],grid:{borderColor:o,strokeDashArray:4,yaxis:{lines:{show:!0}}}}).render()}(),function(){if("undefined"!=typeof FullCalendar&&document.querySelector("#kt_calendar_widget_1")){var e=moment().startOf("day"),t=e.format("YYYY-MM"),a=e.clone().subtract(1,"day").format("YYYY-MM-DD"),o=e.format("YYYY-MM-DD"),s=e.clone().add(1,"day").format("YYYY-MM-DD"),r=document.getElementById("kt_calendar_widget_1");new FullCalendar.Calendar(r,{headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},height:800,contentHeight:780,aspectRatio:3,nowIndicator:!0,now:o+"T09:25:00",views:{dayGridMonth:{buttonText:"month"},timeGridWeek:{buttonText:"week"},timeGridDay:{buttonText:"day"}},initialView:"dayGridMonth",initialDate:o,editable:!0,dayMaxEvents:!0,navLinks:!0,events:[{title:"All Day Event",start:t+"-01",description:"Toto lorem ipsum dolor sit incid idunt ut",className:"fc-event-danger fc-event-solid-warning"},{title:"Reporting",start:t+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:t+"-14",className:"fc-event-success"},{title:"Company Trip",start:t+"-02",description:"Lorem ipsum dolor sit tempor incid",end:t+"-03",className:"fc-event-primary"},{title:"ICT Expo 2017 - Product Release",start:t+"-03",description:"Lorem ipsum dolor sit tempor inci",end:t+"-05",className:"fc-event-light fc-event-solid-primary"},{title:"Dinner",start:t+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:t+"-10"},{id:999,title:"Repeating Event",start:t+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"fc-event-danger"},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:t+"-16T16:00:00"},{title:"Conference",start:a,end:s,description:"Lorem ipsum dolor eius mod tempor labore",className:"fc-event-primary"},{title:"Meeting",start:o+"T10:30:00",end:o+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:o+"T12:00:00",className:"fc-event-info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:o+"T14:30:00",className:"fc-event-warning",description:"Lorem ipsum conse ctetur adipi scing"},{title:"Happy Hour",start:o+"T17:30:00",className:"fc-event-info",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:s+"T05:00:00",className:"fc-event-solid-danger fc-event-light",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:s+"T07:00:00",className:"fc-event-primary",description:"Lorem ipsum dolor sit amet, scing"},{title:"Click for Google",url:"http://google.com/",start:t+"-28",className:"fc-event-solid-info fc-event-light",description:"Lorem ipsum dolor sit amet, labore"}]}).render()}}()}};"undefined"!=typeof module&&(module.exports=KTWidgets),KTUtil.onDOMContentLoaded((function(){KTWidgets.init()}));