!(function (r) { "use strict"; function t() {} (t.prototype.generateData = function () { for (var t = [], a = 0; a < 100; a++) t.push(5e3 + 1e5 * Math.random() + 0.8 * a * a * a); return t; }), (t.prototype.init = function () { (this.dayDummyData = this.generateData()), (this.monthDummyData = this.generateData()), (this.weekDummyData = this.generateData()), (this.yearDummyData = this.generateData()), (this.dayBalanceData = []); for (var t = 0; t < 100; t++) { var a = new Date(); this.dayBalanceData.push([ a.setDate(a.getDate() + t - 100), this.dayDummyData[t], ]); } this.weekBalanceData = []; for (t = 0; t < 100; t++) { a = new Date(); this.weekBalanceData.push([ a.setDate(a.getDate() + 7 * t - 700), this.weekDummyData[t], ]); } this.monthBalanceData = []; for (t = 0; t < 100; t++) { a = new Date(); this.monthBalanceData.push([ a.setDate(a.getDate() + 30 * t - 3e3), this.monthDummyData[t], ]); } this.yearBalanceData = []; for (t = 0; t < 100; t++) { a = new Date(); this.yearBalanceData.push([ a.setDate(a.getDate() + 365 * t - 36500), this.yearDummyData[t], ]); } this.initCurrencyBTC(), this.initCurrencyCNY(), this.initCurrencyETH(), this.initDayBalance(), this.initWeekBalance(), this.initMonthBalance(), this.initYearBalance(); }), (t.prototype.initCurrencyBTC = function () { var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"], a = r("#currency-btc-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "line", height: 60, sparkline: { enabled: !0 } }, series: [{ data: [25, 33, 28, 35, 30, 40] }], stroke: { width: 2, curve: "smooth" }, markers: { size: 0 }, colors: t, tooltip: { fixed: { enabled: !1 }, x: { show: !1 }, y: { title: { formatter: function (t) { return ""; }, }, }, marker: { show: !1 }, }, }; new ApexCharts( document.querySelector("#currency-btc-chart"), e ).render(); }), (t.prototype.initCurrencyCNY = function () { var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"], a = r("#currency-cny-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "bar", height: 60, sparkline: { enabled: !0 } }, plotOptions: { bar: { columnWidth: "60%" } }, colors: t, series: [{ data: [25, 44, 12, 36, 9, 54, 25, 66, 41, 89, 63] }], labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], xaxis: { crosshairs: { width: 1 } }, tooltip: { fixed: { enabled: !1 }, x: { show: !1 }, y: { title: { formatter: function (t) { return ""; }, }, }, marker: { show: !1 }, }, }; new ApexCharts( document.querySelector("#currency-cny-chart"), e ).render(); }), (t.prototype.initCurrencyETH = function () { var t = ["#0166D2", "#0acf97", "#fa5c7c", "#ffbc00"], a = r("#currency-eth-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "line", height: 60, sparkline: { enabled: !0 } }, series: [{ data: [25, 33, 28, 35, 30, 40] }], stroke: { width: 2, curve: "smooth" }, markers: { size: 0 }, colors: t, tooltip: { fixed: { enabled: !1 }, x: { show: !1 }, y: { title: { formatter: function (t) { return ""; }, }, }, marker: { show: !1 }, }, }; new ApexCharts( document.querySelector("#currency-eth-chart"), e ).render(); }), (t.prototype.initDayBalance = function () { var t = ["#6c757d"], a = r("#day-balance-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "area", height: 350, toolbar: { show: !1 } }, colors: t, dataLabels: { enabled: !1 }, stroke: { width: 1 }, series: [{ data: this.dayBalanceData }], markers: { size: 0, style: "hollow" }, xaxis: { type: "datetime", tickAmount: 6 }, yaxis: { labels: { formatter: function (t) { return "$" + t; }, }, }, tooltip: { x: { format: "dd MMM yyyy" } }, fill: { type: "gradient", gradient: { shadeIntensity: 1, opacityFrom: 0.7, opacityTo: 0, stops: [0, 100], }, }, }; new ApexCharts( document.querySelector("#day-balance-chart"), e ).render(); }), (t.prototype.initWeekBalance = function () { var t = ["#6c757d"], a = r("#week-balance-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "area", height: 350, toolbar: { show: !1 } }, colors: t, dataLabels: { enabled: !1 }, stroke: { width: 1 }, series: [{ data: this.weekBalanceData }], markers: { size: 0, style: "hollow" }, xaxis: { type: "datetime", tickAmount: 6 }, yaxis: { labels: { formatter: function (t) { return "$" + t; }, }, }, tooltip: { x: { format: "dd MMM yyyy" } }, fill: { type: "gradient", gradient: { shadeIntensity: 1, opacityFrom: 0.7, opacityTo: 0, stops: [0, 100], }, }, }; new ApexCharts( document.querySelector("#week-balance-chart"), e ).render(); }), (t.prototype.initMonthBalance = function () { var t = ["#6c757d"], a = r("#month-balance-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "area", height: 350, toolbar: { show: !1 } }, colors: t, dataLabels: { enabled: !1 }, stroke: { width: 1 }, series: [{ data: this.monthBalanceData }], markers: { size: 0, style: "hollow" }, xaxis: { type: "datetime", tickAmount: 6 }, yaxis: { labels: { formatter: function (t) { return "$" + t; }, }, }, tooltip: { x: { format: "dd MMM yyyy" } }, fill: { type: "gradient", gradient: { shadeIntensity: 1, opacityFrom: 0.7, opacityTo: 0, stops: [0, 100], }, }, }; new ApexCharts( document.querySelector("#month-balance-chart"), e ).render(); }), (t.prototype.initYearBalance = function () { var t = ["#6c757d"], a = r("#year-balance-chart").data("colors"); a && (t = a.split(",")); var e = { chart: { type: "area", height: 350, toolbar: { show: !1 } }, colors: t, dataLabels: { enabled: !1 }, stroke: { width: 1 }, series: [{ data: this.yearBalanceData }], markers: { size: 0, style: "hollow" }, xaxis: { type: "datetime", tickAmount: 6 }, yaxis: { labels: { formatter: function (t) { return "$" + t; }, }, }, tooltip: { x: { format: "dd MMM yyyy" } }, fill: { type: "gradient", gradient: { shadeIntensity: 1, opacityFrom: 0.7, opacityTo: 0, stops: [0, 100], }, }, }; new ApexCharts( document.querySelector("#year-balance-chart"), e ).render(); }), (r.DashboardWallet = new t()), (r.DashboardWallet.Constructor = t), r.DashboardWallet.init(); })(window.jQuery);