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,KAAK,GAG9B,OAFA+B,EAAeC,YAAYL,EAAME,EAAa,EAAG,GACjDE,EAAeE,SAAS,EAAG,EAAG,EAAG,GAC1BF,EAAeG,SACxB,C,oFC7BA,IAAAV,EAAA5B,EAAA,kBAASuC,EAAQC,GAAmV,OAAtOD,EAArD,mBAAXE,QAAoD,iBAApBA,OAAOC,SAAmC,SAAiBF,GAAO,cAAcA,CAAK,EAAsB,SAAiBA,GAAO,OAAOA,GAAyB,mBAAXC,QAAyBD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAAK,EAAYD,EAAQC,EAAM,CAkC1W,SAAAK,EAAgBC,IAC7B,EAAAlB,EAAArB,SAAa,EAAGsB,WAChB,IAAIkB,EAASC,OAAOJ,UAAUK,SAASC,KAAKJ,GAE5C,OAAIA,aAAoB1C,MAA8B,WAAtBmC,EAAQO,IAAqC,kBAAXC,EAEzD,IAAI3C,KAAK0C,EAASK,WACI,iBAAbL,GAAoC,oBAAXC,EAClC,IAAI3C,KAAK0C,IAES,iBAAbA,GAAoC,oBAAXC,GAAoD,oBAAZK,UAE3EA,QAAQC,KAAK,sNAEbD,QAAQC,MAAK,IAAIC,OAAQC,QAGpB,IAAInD,KAAKoD,KAEpB,C,sCCrDe,SAAAC,EAAsBC,EAAUC,GAC7C,GAAIA,EAAKlD,OAASiD,EAChB,MAAM,IAAIE,UAAUF,EAAW,aAAeA,EAAW,EAAI,IAAM,IAAM,uBAAyBC,EAAKlD,OAAS,WAEpH,C","sources":["admin-panel/src/views/overview.js","node_modules/date-fns/esm/getDaysInMonth/index.js","node_modules/date-fns/esm/toDate/index.js","node_modules/date-fns/esm/_lib/requiredArgs/index.js"],"sourcesContent":["import * as React from \"react\";\nimport {Link} from \"react-router-dom\";\nimport {getDaysInMonth} from \"date-fns\";\n\nexport default function Overview(props) {\n\n const today = new Date();\n const numDays = getDaysInMonth(today);\n\n let colors = [ '#ff4444', '#ffbb33', '#00C851', '#33b5e5' ];\n while (colors.length < numDays) {\n colors = colors.concat(colors);\n }\n\n let data = new Array(numDays).fill(0);\n let visitorCount = 0;\n /*\n for (let date in this.state.visitors) {\n if (this.state.visitors.hasOwnProperty(date)) {\n let day = parseInt(date.split(\"/\")[2]) - 1;\n if (day >= 0 && day < numDays) {\n let count = parseInt(this.state.visitors[date]);\n data[day] = count;\n visitorCount += count;\n }\n }\n }\n */\n\n let labels = Array.from(Array(numDays), (_, i) => i + 1);\n let chartOptions = {};\n let chartData = {\n labels: labels,\n datasets: [{\n label: 'Unique Visitors ' + format(today, \"MMMM\"),\n borderWidth: 1,\n data: data,\n backgroundColor: colors,\n }]\n };\n\n /*\n let loadAvg = this.state.server.load_avg;\n if (Array.isArray(this.state.server.load_avg)) {\n loadAvg = this.state.server.load_avg.join(\" \");\n }\n */\n\n return <>\n <div className={\"content-header\"}>\n <div className={\"container-fluid\"}>\n <div className={\"row mb-2\"}>\n <div className={\"col-sm-6\"}>\n <h1 className={\"m-0 text-dark\"}>Dashboard</h1>\n </div>\n <div className={\"col-sm-6\"}>\n <ol className={\"breadcrumb float-sm-right\"}>\n <li className={\"breadcrumb-item\"}><Link to={\"/admin/dashboard\"}>Home</Link></li>\n <li className=\"breadcrumb-item active\">Dashboard</li>\n </ol>\n </div>\n