!function(r){"use strict";function t(){this.$body=r("body"),this.$chatInput=r(".chat-input"),this.$chatList=r(".conversation-list"),this.$chatSendBtn=r(".chat-send"),this.$chatForm=r("#chat-form")}t.prototype.save=function(){var t=this.$chatInput.val(),e=moment().format("h:mm");return""==t?(this.$chatInput.focus(),!1):(r('
  • male'+e+'
    Shreyu

    '+t+"

  • ").appendTo(".conversation-list"),this.$chatInput.focus(),this.$chatList.animate({scrollTop:this.$chatList.prop("scrollHeight")},1e3),!0)},t.prototype.init=function(){var e=this;e.$chatInput.keypress(function(t){if(13==t.which)return e.save(),!1}),e.$chatForm.on("submit",function(t){return t.preventDefault(),e.save(),e.$chatForm.removeClass("was-validated"),e.$chatInput.val(""),!1})},r.ChatApp=new t,r.ChatApp.Constructor=t}(window.jQuery),function(n){"use strict";function t(){}t.prototype.initCharts=function(){var t={chart:{type:"area",height:45,width:90,sparkline:{enabled:!0}},series:[{data:[25,66,41,85,63,25,44,12,36,9,54]}],stroke:{width:2,curve:"smooth"},markers:{size:0},colors:["#5369f8"],tooltip:{fixed:{enabled:!(window.Apex={chart:{parentHeightOffset:0,toolbar:{show:!1}},grid:{padding:{left:0,right:0}},colors:["#5369f8","#43d39e","#f77e53","#ffbe0b"],tooltip:{theme:"dark",x:{show:!1}}})},x:{show:!1},y:{title:{formatter:function(t){return""}}},marker:{show:!1}},fill:{type:"gradient",gradient:{type:"vertical",shadeIntensity:1,inverseColors:!1,opacityFrom:.45,opacityTo:.05,stops:[45,100]}}};new ApexCharts(document.querySelector("#today-revenue-chart"),t).render(),new ApexCharts(document.querySelector("#today-product-sold-chart"),n.extend({},t,{colors:["#f77e53"]})).render(),new ApexCharts(document.querySelector("#today-new-customer-chart"),n.extend({},t,{colors:["#43d39e"]})).render(),new ApexCharts(document.querySelector("#today-new-visitors-chart"),n.extend({},t,{colors:["#ffbe0b"]})).render();for(var e=[],r=1;r<=10;r++)e.push("2018-09-"+r);t={chart:{type:"area",height:160,sparkline:{enabled:!0}},stroke:{width:3,curve:"smooth"},fill:{opacity:.2},series:[{name:"Data",data:[47,45,54,38,56,24,65,31,37,39]}],xaxis:{type:"datetime"},yaxis:{min:0},colors:["#5369f8"],labels:e,title:{text:"21,000",offsetX:5,offsetY:10,margin:0,style:{fontSize:"24px"}},subtitle:{text:"Visits",offsetX:5,offsetY:45,margin:0,style:{fontSize:"16px"}}};new ApexCharts(document.querySelector("#traffic-chart"),t).render();var i=n.extend({},t.title,{text:"1100"}),a=n.extend({},t.subtitle,{text:"Customers"});new ApexCharts(document.querySelector("#customers-chart"),n.extend({},t,{colors:["#43d39e"],title:i,subtitle:a})).render();var o=n.extend({},t.title,{text:"$201,200"}),s=n.extend({},t.subtitle,{text:"Revenue"});new ApexCharts(document.querySelector("#revenue-chart"),n.extend({},t,{colors:["#f77e53"],title:o,subtitle:s})).render()},t.prototype.init=function(){this.initCharts(),n("#calendar-widget").flatpickr({inline:!0,shorthandCurrentMonth:!0}),n.ChatApp.init()},n.WidgetsPage=new t,n.WidgetsPage.Constructor=t}(window.jQuery),function(){"use strict";window.jQuery.WidgetsPage.init()}();