{"version":3,"sources":["webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./app/javascript/pages/organization_dashboards/organization-dashboard-graphs.js","webpack:///./node_modules/chart.js/auto/auto.js","webpack:///./node_modules/chartjs-adapter-moment/dist/chartjs-adapter-moment.esm.js"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","organizationDashboardGraphs","i","clinicalDocumentationDashboard","document","getElementById","alertsDashboard","keyMetricsDashboard","visitNotesTrendsChart","visitNotesDataDiv","visitNotesData","JSON","parse","dataset","attrs","visitNotesLabels","visitNotesDataTotal","length","data","push","Chart","type","labels","datasets","label","backgroundColor","borderColor","borderWidth","options","responsive","interaction","intersect","mode","axis","plugins","tooltip","position","legend","display","scales","y","ticks","callback","value","toLocaleString","evaluationsTrendsChart","evaluationsDataDiv","evaluationsData","evaluationsLabels","evaluationsDataTotal","assessmentsTrendsChart","assessmentsDataDiv","assessmentsData","assessmentsLabels","assessmentsDataTotal","pocsTrendsChart","pocsDataDiv","pocsData","pocsLabels","pocsDataTotal","progressReportsTrendsChart","progressReportsDataDiv","progressReportsData","progressReportsLabels","progressReportsDataTotal","schoolPlansTrendsChart","schoolPlansDataDiv","schoolPlansData","schoolPlansLabels","schoolPlansDataTotal","dischargesTrendsChart","dischargesDataDiv","dischargesData","dischargesLabels","dischargesDataTotal","patientsTrendsChart","patientsDataDiv","patientsData","patientsLabels","patientsDataTotal","visitsTrendsChart","visitsDataDiv","visitsData","visitsLabels","visitsDataTotal","revenueTrendsChart","revenueDataDiv","revenueData","revenueLabels","revenueDataTotal","overdueTrendsChart","overdueDataDiv","overdueData","overdueLabels","overdueDataTotal","comingdueTrendsChart","comingdueDataDiv","comingdueData","comingdueLabels","comingdueDataTotal","missingTrendsChart","missingDataDiv","missingData","missingLabels","missingDataTotal","problemTrendsChart","problemDataDiv","problemData","problemLabels","problemDataTotal","otherTrendsChart","otherDataDiv","otherData","otherLabels","otherDataTotal","arr","_arrayLikeToArray","len","arr2","Array","register","apply","isArray","_arrayWithoutHoles","iter","Symbol","iterator","from","_iterableToArray","minLen","n","prototype","toString","call","slice","constructor","name","test","_unsupportedIterableToArray","TypeError","_nonIterableSpread","FORMATS","datetime","millisecond","second","minute","hour","day","week","month","quarter","year","_date","override","_id","formats","format","isValid","valueOf","time","_format","add","amount","unit","diff","max","min","startOf","weekday","Math","trunc","isoWeekday","endOf"],"mappings":"+EAAA,IAAIA,EAAM,CACT,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,UAAW,IACX,O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AAKH,GAC5B,OAAO,IAAOE,GAAKD,KAAK,IAAOE,GAAMH,IAEvCI,QAAS,SAAiBR,EAAMI,EAAMK,GAGpC,OAFAT,EAAO,IAAOA,GAED,YAATI,GACFK,EAAUC,KAAKC,MAAMD,KAAKH,IAAIG,KAAKJ,IAAI,EAAGG,GAAU,IAC7CT,EAAKY,WAAWH,GAASD,QAAQ,OAAOT,WAG1CC,EAAKQ,QAAQJ,GAAML,WAE5Bc,MAAO,SAAeb,EAAMI,GAC1B,OAAO,IAAOJ,GAAMa,MAAMT,GAAML,YAEhC","file":"js/53-87b2c5479e1136bb15cb.chunk.js","sourcesContent":["var map = {\n\t\"./af\": 731,\n\t\"./af.js\": 731,\n\t\"./ar\": 732,\n\t\"./ar-dz\": 733,\n\t\"./ar-dz.js\": 733,\n\t\"./ar-kw\": 734,\n\t\"./ar-kw.js\": 734,\n\t\"./ar-ly\": 735,\n\t\"./ar-ly.js\": 735,\n\t\"./ar-ma\": 736,\n\t\"./ar-ma.js\": 736,\n\t\"./ar-sa\": 737,\n\t\"./ar-sa.js\": 737,\n\t\"./ar-tn\": 738,\n\t\"./ar-tn.js\": 738,\n\t\"./ar.js\": 732,\n\t\"./az\": 739,\n\t\"./az.js\": 739,\n\t\"./be\": 740,\n\t\"./be.js\": 740,\n\t\"./bg\": 741,\n\t\"./bg.js\": 741,\n\t\"./bm\": 742,\n\t\"./bm.js\": 742,\n\t\"./bn\": 743,\n\t\"./bn-bd\": 744,\n\t\"./bn-bd.js\": 744,\n\t\"./bn.js\": 743,\n\t\"./bo\": 745,\n\t\"./bo.js\": 745,\n\t\"./br\": 746,\n\t\"./br.js\": 746,\n\t\"./bs\": 747,\n\t\"./bs.js\": 747,\n\t\"./ca\": 748,\n\t\"./ca.js\": 748,\n\t\"./cs\": 749,\n\t\"./cs.js\": 749,\n\t\"./cv\": 750,\n\t\"./cv.js\": 750,\n\t\"./cy\": 751,\n\t\"./cy.js\": 751,\n\t\"./da\": 752,\n\t\"./da.js\": 752,\n\t\"./de\": 753,\n\t\"./de-at\": 754,\n\t\"./de-at.js\": 754,\n\t\"./de-ch\": 755,\n\t\"./de-ch.js\": 755,\n\t\"./de.js\": 753,\n\t\"./dv\": 756,\n\t\"./dv.js\": 756,\n\t\"./el\": 757,\n\t\"./el.js\": 757,\n\t\"./en-au\": 758,\n\t\"./en-au.js\": 758,\n\t\"./en-ca\": 759,\n\t\"./en-ca.js\": 759,\n\t\"./en-gb\": 760,\n\t\"./en-gb.js\": 760,\n\t\"./en-ie\": 761,\n\t\"./en-ie.js\": 761,\n\t\"./en-il\": 762,\n\t\"./en-il.js\": 762,\n\t\"./en-in\": 763,\n\t\"./en-in.js\": 763,\n\t\"./en-nz\": 764,\n\t\"./en-nz.js\": 764,\n\t\"./en-sg\": 765,\n\t\"./en-sg.js\": 765,\n\t\"./eo\": 766,\n\t\"./eo.js\": 766,\n\t\"./es\": 767,\n\t\"./es-do\": 768,\n\t\"./es-do.js\": 768,\n\t\"./es-mx\": 769,\n\t\"./es-mx.js\": 769,\n\t\"./es-us\": 770,\n\t\"./es-us.js\": 770,\n\t\"./es.js\": 767,\n\t\"./et\": 771,\n\t\"./et.js\": 771,\n\t\"./eu\": 772,\n\t\"./eu.js\": 772,\n\t\"./fa\": 773,\n\t\"./fa.js\": 773,\n\t\"./fi\": 774,\n\t\"./fi.js\": 774,\n\t\"./fil\": 775,\n\t\"./fil.js\": 775,\n\t\"./fo\": 776,\n\t\"./fo.js\": 776,\n\t\"./fr\": 777,\n\t\"./fr-ca\": 778,\n\t\"./fr-ca.js\": 778,\n\t\"./fr-ch\": 779,\n\t\"./fr-ch.js\": 779,\n\t\"./fr.js\": 777,\n\t\"./fy\": 780,\n\t\"./fy.js\": 780,\n\t\"./ga\": 781,\n\t\"./ga.js\": 781,\n\t\"./gd\": 782,\n\t\"./gd.js\": 782,\n\t\"./gl\": 783,\n\t\"./gl.js\": 783,\n\t\"./gom-deva\": 784,\n\t\"./gom-deva.js\": 784,\n\t\"./gom-latn\": 785,\n\t\"./gom-latn.js\": 785,\n\t\"./gu\": 786,\n\t\"./gu.js\": 786,\n\t\"./he\": 787,\n\t\"./he.js\": 787,\n\t\"./hi\": 788,\n\t\"./hi.js\": 788,\n\t\"./hr\": 789,\n\t\"./hr.js\": 789,\n\t\"./hu\": 790,\n\t\"./hu.js\": 790,\n\t\"./hy-am\": 791,\n\t\"./hy-am.js\": 791,\n\t\"./id\": 792,\n\t\"./id.js\": 792,\n\t\"./is\": 793,\n\t\"./is.js\": 793,\n\t\"./it\": 794,\n\t\"./it-ch\": 795,\n\t\"./it-ch.js\": 795,\n\t\"./it.js\": 794,\n\t\"./ja\": 796,\n\t\"./ja.js\": 796,\n\t\"./jv\": 797,\n\t\"./jv.js\": 797,\n\t\"./ka\": 798,\n\t\"./ka.js\": 798,\n\t\"./kk\": 799,\n\t\"./kk.js\": 799,\n\t\"./km\": 800,\n\t\"./km.js\": 800,\n\t\"./kn\": 801,\n\t\"./kn.js\": 801,\n\t\"./ko\": 802,\n\t\"./ko.js\": 802,\n\t\"./ku\": 803,\n\t\"./ku.js\": 803,\n\t\"./ky\": 804,\n\t\"./ky.js\": 804,\n\t\"./lb\": 805,\n\t\"./lb.js\": 805,\n\t\"./lo\": 806,\n\t\"./lo.js\": 806,\n\t\"./lt\": 807,\n\t\"./lt.js\": 807,\n\t\"./lv\": 808,\n\t\"./lv.js\": 808,\n\t\"./me\": 809,\n\t\"./me.js\": 809,\n\t\"./mi\": 810,\n\t\"./mi.js\": 810,\n\t\"./mk\": 811,\n\t\"./mk.js\": 811,\n\t\"./ml\": 812,\n\t\"./ml.js\": 812,\n\t\"./mn\": 813,\n\t\"./mn.js\": 813,\n\t\"./mr\": 814,\n\t\"./mr.js\": 814,\n\t\"./ms\": 815,\n\t\"./ms-my\": 816,\n\t\"./ms-my.js\": 816,\n\t\"./ms.js\": 815,\n\t\"./mt\": 817,\n\t\"./mt.js\": 817,\n\t\"./my\": 818,\n\t\"./my.js\": 818,\n\t\"./nb\": 819,\n\t\"./nb.js\": 819,\n\t\"./ne\": 820,\n\t\"./ne.js\": 820,\n\t\"./nl\": 821,\n\t\"./nl-be\": 822,\n\t\"./nl-be.js\": 822,\n\t\"./nl.js\": 821,\n\t\"./nn\": 823,\n\t\"./nn.js\": 823,\n\t\"./oc-lnc\": 824,\n\t\"./oc-lnc.js\": 824,\n\t\"./pa-in\": 825,\n\t\"./pa-in.js\": 825,\n\t\"./pl\": 826,\n\t\"./pl.js\": 826,\n\t\"./pt\": 827,\n\t\"./pt-br\": 828,\n\t\"./pt-br.js\": 828,\n\t\"./pt.js\": 827,\n\t\"./ro\": 829,\n\t\"./ro.js\": 829,\n\t\"./ru\": 830,\n\t\"./ru.js\": 830,\n\t\"./sd\": 831,\n\t\"./sd.js\": 831,\n\t\"./se\": 832,\n\t\"./se.js\": 832,\n\t\"./si\": 833,\n\t\"./si.js\": 833,\n\t\"./sk\": 834,\n\t\"./sk.js\": 834,\n\t\"./sl\": 835,\n\t\"./sl.js\": 835,\n\t\"./sq\": 836,\n\t\"./sq.js\": 836,\n\t\"./sr\": 837,\n\t\"./sr-cyrl\": 838,\n\t\"./sr-cyrl.js\": 838,\n\t\"./sr.js\": 837,\n\t\"./ss\": 839,\n\t\"./ss.js\": 839,\n\t\"./sv\": 840,\n\t\"./sv.js\": 840,\n\t\"./sw\": 841,\n\t\"./sw.js\": 841,\n\t\"./ta\": 842,\n\t\"./ta.js\": 842,\n\t\"./te\": 843,\n\t\"./te.js\": 843,\n\t\"./tet\": 844,\n\t\"./tet.js\": 844,\n\t\"./tg\": 845,\n\t\"./tg.js\": 845,\n\t\"./th\": 846,\n\t\"./th.js\": 846,\n\t\"./tk\": 847,\n\t\"./tk.js\": 847,\n\t\"./tl-ph\": 848,\n\t\"./tl-ph.js\": 848,\n\t\"./tlh\": 849,\n\t\"./tlh.js\": 849,\n\t\"./tr\": 850,\n\t\"./tr.js\": 850,\n\t\"./tzl\": 851,\n\t\"./tzl.js\": 851,\n\t\"./tzm\": 852,\n\t\"./tzm-latn\": 853,\n\t\"./tzm-latn.js\": 853,\n\t\"./tzm.js\": 852,\n\t\"./ug-cn\": 854,\n\t\"./ug-cn.js\": 854,\n\t\"./uk\": 855,\n\t\"./uk.js\": 855,\n\t\"./ur\": 856,\n\t\"./ur.js\": 856,\n\t\"./uz\": 857,\n\t\"./uz-latn\": 858,\n\t\"./uz-latn.js\": 858,\n\t\"./uz.js\": 857,\n\t\"./vi\": 859,\n\t\"./vi.js\": 859,\n\t\"./x-pseudo\": 860,\n\t\"./x-pseudo.js\": 860,\n\t\"./yo\": 861,\n\t\"./yo.js\": 861,\n\t\"./zh-cn\": 862,\n\t\"./zh-cn.js\": 862,\n\t\"./zh-hk\": 863,\n\t\"./zh-hk.js\": 863,\n\t\"./zh-mo\": 864,\n\t\"./zh-mo.js\": 864,\n\t\"./zh-tw\": 865,\n\t\"./zh-tw.js\": 865\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1047;","import Chart from 'chart.js/auto';\nimport 'chartjs-adapter-moment';\n\n// Alerts, key metrics, clinical documentation dashboards\nconst organizationDashboardGraphs = () => {\n const clinicalDocumentationDashboard = document.getElementById('clinical-documentation-dashboard');\n const alertsDashboard = document.getElementById('alerts-dashboard');\n const keyMetricsDashboard = document.getElementById('key-metrics-dashboard');\n let i;\n if (clinicalDocumentationDashboard) {\n const visitNotesTrendsChart = document.getElementById('visit-notes-trends');\n const visitNotesDataDiv = document.getElementById('visit-notes-data');\n if (visitNotesDataDiv) {\n const visitNotesData = JSON.parse(visitNotesDataDiv.dataset.attrs);\n const visitNotesLabels = [];\n const visitNotesDataTotal = [];\n\n for (i = 0; i < visitNotesData.length; i += 1) {\n const data = visitNotesData[i];\n visitNotesLabels.push(data[0]);\n visitNotesDataTotal.push(data[1]);\n }\n\n const visitNotesTrends = new Chart(visitNotesTrendsChart, {\n type: 'bar',\n data: {\n labels: visitNotesLabels,\n datasets: [\n {\n label: 'Visit Notes',\n data: visitNotesDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const evaluationsTrendsChart = document.getElementById('evaluations-trends');\n const evaluationsDataDiv = document.getElementById('evaluations-data');\n if (evaluationsDataDiv) {\n const evaluationsData = JSON.parse(evaluationsDataDiv.dataset.attrs);\n const evaluationsLabels = [];\n const evaluationsDataTotal = [];\n\n for (i = 0; i < evaluationsData.length; i += 1) {\n const data = evaluationsData[i];\n evaluationsLabels.push(data[0]);\n evaluationsDataTotal.push(data[1]);\n }\n\n const evaluationsTrends = new Chart(evaluationsTrendsChart, {\n type: 'bar',\n data: {\n labels: evaluationsLabels,\n datasets: [\n {\n label: 'Evaluations',\n data: evaluationsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const assessmentsTrendsChart = document.getElementById('assessments-trends');\n const assessmentsDataDiv = document.getElementById('assessments-data');\n if (assessmentsDataDiv) {\n const assessmentsData = JSON.parse(assessmentsDataDiv.dataset.attrs);\n const assessmentsLabels = [];\n const assessmentsDataTotal = [];\n\n for (i = 0; i < assessmentsData.length; i += 1) {\n const data = assessmentsData[i];\n assessmentsLabels.push(data[0]);\n assessmentsDataTotal.push(data[1]);\n }\n\n const assessmentsTrends = new Chart(assessmentsTrendsChart, {\n type: 'bar',\n data: {\n labels: assessmentsLabels,\n datasets: [\n {\n label: 'Assessments',\n data: assessmentsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const pocsTrendsChart = document.getElementById('pocs-trends');\n const pocsDataDiv = document.getElementById('pocs-data');\n if (pocsDataDiv) {\n const pocsData = JSON.parse(pocsDataDiv.dataset.attrs);\n const pocsLabels = [];\n const pocsDataTotal = [];\n\n for (i = 0; i < pocsData.length; i += 1) {\n const data = pocsData[i];\n pocsLabels.push(data[0]);\n pocsDataTotal.push(data[1]);\n }\n\n const pocsTrends = new Chart(pocsTrendsChart, {\n type: 'bar',\n data: {\n labels: pocsLabels,\n datasets: [\n {\n label: 'POCs',\n data: pocsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const progressReportsTrendsChart = document.getElementById('progress-reports-trends');\n const progressReportsDataDiv = document.getElementById('progress-reports-data');\n if (progressReportsDataDiv) {\n const progressReportsData = JSON.parse(progressReportsDataDiv.dataset.attrs);\n const progressReportsLabels = [];\n const progressReportsDataTotal = [];\n\n for (i = 0; i < progressReportsData.length; i += 1) {\n const data = progressReportsData[i];\n progressReportsLabels.push(data[0]);\n progressReportsDataTotal.push(data[1]);\n }\n\n const progressReportsTrends = new Chart(progressReportsTrendsChart, {\n type: 'bar',\n data: {\n labels: progressReportsLabels,\n datasets: [\n {\n label: 'Progress Reports',\n data: progressReportsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const schoolPlansTrendsChart = document.getElementById('school-plans-trends');\n const schoolPlansDataDiv = document.getElementById('school-plans-data');\n if (schoolPlansDataDiv) {\n const schoolPlansData = JSON.parse(schoolPlansDataDiv.dataset.attrs);\n const schoolPlansLabels = [];\n const schoolPlansDataTotal = [];\n\n for (i = 0; i < schoolPlansData.length; i += 1) {\n const data = schoolPlansData[i];\n schoolPlansLabels.push(data[0]);\n schoolPlansDataTotal.push(data[1]);\n }\n\n const schoolPlansTrends = new Chart(schoolPlansTrendsChart, {\n type: 'bar',\n data: {\n labels: schoolPlansLabels,\n datasets: [\n {\n label: 'School plans',\n data: schoolPlansDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const dischargesTrendsChart = document.getElementById('discharges-trends');\n const dischargesDataDiv = document.getElementById('discharges-data');\n if (dischargesDataDiv) {\n const dischargesData = JSON.parse(dischargesDataDiv.dataset.attrs);\n const dischargesLabels = [];\n const dischargesDataTotal = [];\n\n for (i = 0; i < dischargesData.length; i += 1) {\n const data = dischargesData[i];\n dischargesLabels.push(data[0]);\n dischargesDataTotal.push(data[1]);\n }\n\n const dischargesTrends = new Chart(dischargesTrendsChart, {\n type: 'bar',\n data: {\n labels: dischargesLabels,\n datasets: [\n {\n label: 'Discharges',\n data: dischargesDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n } else if (keyMetricsDashboard) {\n const patientsTrendsChart = document.getElementById('patients-trends');\n const patientsDataDiv = document.getElementById('patients-data');\n if (patientsDataDiv) {\n const patientsData = JSON.parse(patientsDataDiv.dataset.attrs);\n const patientsLabels = [];\n const patientsDataTotal = [];\n\n for (i = 0; i < patientsData.length; i += 1) {\n const data = patientsData[i];\n patientsLabels.push(data[0]);\n patientsDataTotal.push(data[1]);\n }\n\n const patientsTrends = new Chart(patientsTrendsChart, {\n type: 'bar',\n data: {\n labels: patientsLabels,\n datasets: [\n {\n label: 'Patients',\n data: patientsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const visitsTrendsChart = document.getElementById('visits-trends');\n const visitsDataDiv = document.getElementById('visits-data');\n if (visitsDataDiv) {\n const visitsData = JSON.parse(visitsDataDiv.dataset.attrs);\n const visitsLabels = [];\n const visitsDataTotal = [];\n\n for (i = 0; i < visitsData.length; i += 1) {\n const data = visitsData[i];\n visitsLabels.push(data[0]);\n visitsDataTotal.push(data[1]);\n }\n\n const visitsTrends = new Chart(visitsTrendsChart, {\n type: 'bar',\n data: {\n labels: visitsLabels,\n datasets: [\n {\n label: 'Visits',\n data: visitsDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const revenueTrendsChart = document.getElementById('revenue-trends');\n const revenueDataDiv = document.getElementById('revenue-data');\n if (revenueDataDiv) {\n const revenueData = JSON.parse(revenueDataDiv.dataset.attrs);\n const revenueLabels = [];\n const revenueDataTotal = [];\n\n for (i = 0; i < revenueData.length; i += 1) {\n const data = revenueData[i];\n revenueLabels.push(data[0]);\n revenueDataTotal.push(data[1]);\n }\n\n const revenueTrends = new Chart(revenueTrendsChart, {\n type: 'bar',\n data: {\n labels: revenueLabels,\n datasets: [\n {\n label: 'Revenue',\n data: revenueDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n } else if (alertsDashboard) {\n const overdueTrendsChart = document.getElementById('overdue-alerts-trends');\n const overdueDataDiv = document.getElementById('overdue-alerts-data');\n if (overdueDataDiv) {\n const overdueData = JSON.parse(overdueDataDiv.dataset.attrs);\n const overdueLabels = [];\n const overdueDataTotal = [];\n\n for (i = 0; i < overdueData.length; i += 1) {\n const data = overdueData[i];\n overdueLabels.push(data[0]);\n overdueDataTotal.push(data[1]);\n }\n\n const overdueTrends = new Chart(overdueTrendsChart, {\n type: 'bar',\n data: {\n labels: overdueLabels,\n datasets: [\n {\n label: 'Overdue Alerts',\n data: overdueDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const comingdueTrendsChart = document.getElementById('coming-due-alerts-trends');\n const comingdueDataDiv = document.getElementById('coming-due-alerts-data');\n if (comingdueDataDiv) {\n const comingdueData = JSON.parse(comingdueDataDiv.dataset.attrs);\n const comingdueLabels = [];\n const comingdueDataTotal = [];\n\n for (i = 0; i < comingdueData.length; i += 1) {\n const data = comingdueData[i];\n comingdueLabels.push(data[0]);\n comingdueDataTotal.push(data[1]);\n }\n\n const comingdueTrends = new Chart(comingdueTrendsChart, {\n type: 'bar',\n data: {\n labels: comingdueLabels,\n datasets: [\n {\n label: 'Coming Due Alerts',\n data: comingdueDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const missingTrendsChart = document.getElementById('missing-alerts-trends');\n const missingDataDiv = document.getElementById('missing-alerts-data');\n if (missingDataDiv) {\n const missingData = JSON.parse(missingDataDiv.dataset.attrs);\n const missingLabels = [];\n const missingDataTotal = [];\n\n for (i = 0; i < missingData.length; i += 1) {\n const data = missingData[i];\n missingLabels.push(data[0]);\n missingDataTotal.push(data[1]);\n }\n\n const missingTrends = new Chart(missingTrendsChart, {\n type: 'bar',\n data: {\n labels: missingLabels,\n datasets: [\n {\n label: 'Other Alerts',\n data: missingDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const problemTrendsChart = document.getElementById('problem-alerts-trends');\n const problemDataDiv = document.getElementById('problem-alerts-data');\n if (problemDataDiv) {\n const problemData = JSON.parse(problemDataDiv.dataset.attrs);\n const problemLabels = [];\n const problemDataTotal = [];\n\n for (i = 0; i < problemData.length; i += 1) {\n const data = problemData[i];\n problemLabels.push(data[0]);\n problemDataTotal.push(data[1]);\n }\n\n const problemTrends = new Chart(problemTrendsChart, {\n type: 'bar',\n data: {\n labels: problemLabels,\n datasets: [\n {\n label: 'Problem Alerts',\n data: problemDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n\n const otherTrendsChart = document.getElementById('other-alerts-trends');\n const otherDataDiv = document.getElementById('other-alerts-data');\n if (otherDataDiv) {\n const otherData = JSON.parse(otherDataDiv.dataset.attrs);\n const otherLabels = [];\n const otherDataTotal = [];\n\n for (i = 0; i < otherData.length; i += 1) {\n const data = otherData[i];\n otherLabels.push(data[0]);\n otherDataTotal.push(data[1]);\n }\n\n const otherTrends = new Chart(otherTrendsChart, {\n type: 'bar',\n data: {\n labels: otherLabels,\n datasets: [\n {\n label: 'Missing Alerts',\n data: otherDataTotal,\n backgroundColor: 'rgba(41, 72, 160, 0.8)',\n borderColor: 'rgba(255, 99, 132, 1)',\n borderWidth: 1,\n },\n ],\n },\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n mode: 'index',\n axis: 'x',\n },\n plugins: {\n tooltip: {\n position: 'nearest',\n },\n legend: {\n display: false,\n },\n },\n scales: {\n y: {\n ticks: {\n callback: function(value) {\n return value.toLocaleString();\n }\n },\n },\n },\n },\n });\n }\n }\n};\n\nexport default organizationDashboardGraphs;\n","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport { Chart, registerables } from '../dist/chart.js';\nChart.register.apply(Chart, _toConsumableArray(registerables));\nexport * from '../dist/chart.js';\nexport default Chart;","/*!\n * chartjs-adapter-moment v1.0.1\n * https://www.chartjs.org\n * (c) 2022 chartjs-adapter-moment Contributors\n * Released under the MIT license\n */\nimport moment from 'moment';\nimport { _adapters } from 'chart.js';\nvar FORMATS = {\n datetime: 'MMM D, YYYY, h:mm:ss a',\n millisecond: 'h:mm:ss.SSS a',\n second: 'h:mm:ss a',\n minute: 'h:mm a',\n hour: 'hA',\n day: 'MMM D',\n week: 'll',\n month: 'MMM YYYY',\n quarter: '[Q]Q - YYYY',\n year: 'YYYY'\n};\n\n_adapters._date.override(typeof moment === 'function' ? {\n _id: 'moment',\n // DEBUG ONLY\n formats: function formats() {\n return FORMATS;\n },\n parse: function parse(value, format) {\n if (typeof value === 'string' && typeof format === 'string') {\n value = moment(value, format);\n } else if (!(value instanceof moment)) {\n value = moment(value);\n }\n\n return value.isValid() ? value.valueOf() : null;\n },\n format: function format(time, _format) {\n return moment(time).format(_format);\n },\n add: function add(time, amount, unit) {\n return moment(time).add(amount, unit).valueOf();\n },\n diff: function diff(max, min, unit) {\n return moment(max).diff(moment(min), unit);\n },\n startOf: function startOf(time, unit, weekday) {\n time = moment(time);\n\n if (unit === 'isoWeek') {\n weekday = Math.trunc(Math.min(Math.max(0, weekday), 6));\n return time.isoWeekday(weekday).startOf('day').valueOf();\n }\n\n return time.startOf(unit).valueOf();\n },\n endOf: function endOf(time, unit) {\n return moment(time).endOf(unit).valueOf();\n }\n} : {});"],"sourceRoot":""}