chess/public/assets/js/pages/widgets.min.js

1 line
51 KiB
JavaScript
Raw Permalink Normal View History

2024-08-29 03:56:32 +00:00
"use strict";var KTWidgets=function(){var t=function(t){var e=KTUtil.getById(t);KTUtil.on(e,"thead th .checkbox > input","change",function(t){for(var o=KTUtil.findAll(e,"tbody td .checkbox > input"),s=0,a=o.length;s<a;s++)o[s].checked=this.checked})};return{init:function(){var e,o;!function(){if(0!=$("#kt_dashboard_daterangepicker").length){var t=$("#kt_dashboard_daterangepicker"),e=moment(),o=moment();t.daterangepicker({direction:KTUtil.isRTL(),startDate:e,endDate:o,opens:"left",applyClass:"btn-primary",cancelClass:"btn-light-primary",ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]}},s),s(e,o,"")}function s(t,e,o){var s="",a="";e-t<100||"Today"==o?(s="Today:",a=t.format("MMM D")):"Yesterday"==o?(s="Yesterday:",a=t.format("MMM D")):a=t.format("MMM D")+" - "+e.format("MMM D"),$("#kt_dashboard_daterangepicker_date").html(a),$("#kt_dashboard_daterangepicker_title").html(s)}}(),function(){var t=document.getElementById("kt_stats_widget_7_chart");if(t){var e={series:[{name:"Net Profit",data:[30,45,32,70,40]}],chart:{type:"area",height:150,toolbar:{show:!1},zoom:{enabled:!1},sparkline:{enabled:!0}},plotOptions:{},legend:{show:!1},dataLabels:{enabled:!1},fill:{type:"solid",opacity:1},stroke:{curve:"smooth",show:!0,width:3,colors:[KTApp.getSettings().colors.theme.base.success]},xaxis:{categories:["Feb","Mar","Apr","May","Jun","Jul"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{show:!1,style:{colors:KTApp.getSettings().colors.gray["gray-500"],fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}},crosshairs:{show:!1,position:"front",stroke:{color:KTApp.getSettings().colors.gray["gray-300"],width:1,dashArray:3}},tooltip:{enabled:!0,formatter:void 0,offsetY:0,style:{fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}}},yaxis:{labels:{show:!1,style:{colors:KTApp.getSettings().colors.gray["gray-500"],fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}}},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",fontFamily:KTApp.getSettings()["font-family"]},y:{formatter:function(t){return"$"+t+" thousands"}}},colors:[KTApp.getSettings().colors.theme.light.success],markers:{colors:[KTApp.getSettings().colors.theme.light.success],strokeColor:[KTApp.getSettings().colors.theme.base.success],strokeWidth:3}};new ApexCharts(t,e).render()}}(),function(){var t=document.getElementById("kt_stats_widget_8_chart");if(t){var e={series:[{name:"Net Profit",data:[30,45,32,70,40]}],chart:{type:"area",height:150,toolbar:{show:!1},zoom:{enabled:!1},sparkline:{enabled:!0}},plotOptions:{},legend:{show:!1},dataLabels:{enabled:!1},fill:{type:"solid",opacity:1},stroke:{curve:"smooth",show:!0,width:3,colors:[KTApp.getSettings().colors.theme.base.danger]},xaxis:{categories:["Feb","Mar","Apr","May","Jun"],axisBorder:{show:!1},axisTicks:{show:!1},labels:{show:!1,style:{colors:KTApp.getSettings().colors.gray["gray-500"],fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}},crosshairs:{show:!1,position:"front",stroke:{color:KTApp.getSettings().colors.gray["gray-300"],width:1,dashArray:3}},tooltip:{enabled:!0,formatter:void 0,offsetY:0,style:{fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}}},yaxis:{labels:{show:!1,style:{colors:KTApp.getSettings().colors.gray["gray-500"],fontSize:"12px",fontFamily:KTApp.getSettings()["font-family"]}}},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",fontFamily:KTApp.getSettings()["font-family"]},y:{formatter:function(t){return"$"+t+" thousands"}}},colors:[KTApp.getSettings().color