{"version":3,"sources":["webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./app/javascript/pages/organization_dashboards/attendance-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","organizationDashboardAttendanceGraphs","lazyLoadedElement","i","tab","dataset","attendanceTypeTrendsChart","document","getElementById","attendanceTypeDataDiv","Chart","getChart","attendanceTypeData","JSON","parse","attrs","chartTile","title","yAxisTitle","y_axis_label","displayLegend","datasets","length","type","data","options","responsive","plugins","legend","display","position","text","font","size","scales","x","time","parser","tooltipFormat","unit","displayFormats","millisecond","second","minute","hour","day","week","month","quarter","year","ticks","autoSkip","maxTicksLimit","y","beginAtZero","stepSize","precision","setTimeout","value","toDataURL","attendanceTrendsChart","attendanceDataDiv","attendanceData","stacked","attendanceEntireTrendsChart","attendanceEntireDataDiv","attendanceEntireData","attendanceEntireLabels","attendanceEntireDataTotal","push","maintainAspectRatio","layout","padding","top","right","bottom","left","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","_date","override","_id","formats","format","isValid","valueOf","_format","add","amount","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,OA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AnF,EAAO,IAAOA,GAED,YAATG,GACFgF,EAAUC,KAAKC,MAAMD,KAAKH,IAAIG,KAAKJ,IAAI,EAAGG,GAAU,IAC7CnF,EAAKsF,WAAWH,GAASD,QAAQ,OAAOP,WAG1C3E,EAAKkF,QAAQ/E,GAAMwE,WAE5BY,MAAO,SAAevF,EAAMG,GAC1B,OAAO,IAAOH,GAAMuF,MAAMpF,GAAMwE,YAEhC","file":"js/52-16e52db732ca7aa9a449.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\nconst organizationDashboardAttendanceGraphs = (lazyLoadedElement) => {\n const { tab } = lazyLoadedElement.dataset;\n let i;\n\n if (tab === 'overview') {\n // Overview charts\n const attendanceTrendsChart = document.getElementById('attendance-thirty-trends');\n const attendanceDataDiv = document.getElementById('attendance-thirty-data');\n if (attendanceDataDiv) {\n if (!Chart.getChart(attendanceTrendsChart)) {\n const attendanceData = JSON.parse(attendanceDataDiv.dataset.attrs);\n const attendanceTrends = new Chart(attendanceTrendsChart, {\n type: 'bar',\n data: attendanceData,\n options: {\n scales: {\n x: {\n stacked: true,\n type: 'time',\n time: {\n parser: 'YYYY-MM-DD',\n tooltipFormat: 'll',\n unit: 'day',\n displayFormats: {\n millisecond: 'MM/DD/YYYY',\n second: 'MM/DD/YYYY',\n minute: 'MM/DD/YYYY',\n hour: 'MM/DD/YYYY',\n day: 'MM/DD/YYYY',\n week: 'MM/DD/YYYY',\n month: 'MM/DD/YYYY',\n quarter: 'MM/DD/YYYY',\n year: 'MM/DD/YYYY',\n },\n },\n ticks: {\n autoSkip: true,\n maxTicksLimit: 20,\n },\n },\n y: {\n stacked: true,\n beginAtZero: true,\n ticks: {\n stepSize: 1,\n precision: 0,\n },\n title: {\n display: true,\n text: 'Number of sessions',\n font: {\n size: 16,\n },\n },\n },\n },\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Attendance over the past 30 days',\n font: {\n size: 24,\n },\n },\n },\n },\n });\n\n // we want to allow the canvas to finish rendering before we get the base 64 image\n setTimeout(() => {\n const printCanvasValue = document.getElementById('overview_bar_data');\n printCanvasValue.value = `${attendanceTrendsChart.toDataURL('image/png')}`;\n }, 500);\n }\n }\n\n const attendanceEntireTrendsChart = document.getElementById('attendance-entire-trends');\n const attendanceEntireDataDiv = document.getElementById('attendance-entire-data');\n if (attendanceEntireDataDiv) {\n if (!Chart.getChart(attendanceEntireTrendsChart)) {\n const attendanceEntireData = JSON.parse(attendanceEntireDataDiv.dataset.attrs);\n const attendanceEntireLabels = [];\n const attendanceEntireDataTotal = [];\n\n for (i = 0; i < attendanceEntireData.length; i += 1) {\n const data = attendanceEntireData[i];\n attendanceEntireLabels.push(data[0]);\n attendanceEntireDataTotal.push(data[1]);\n }\n\n const attendanceEntireTrends = new Chart(attendanceEntireTrendsChart, {\n type: 'pie',\n data: attendanceEntireData,\n options: {\n responsive: true,\n maintainAspectRatio: false,\n layout: {\n padding: {\n top: 0,\n right: 20,\n bottom: 20,\n left: 20,\n },\n },\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Attendance over the history of the organization',\n font: {\n size: 24,\n },\n },\n },\n },\n });\n\n // we want to allow the canvas to finish rendering before we get the base 64 image\n setTimeout(() => {\n const printCanvasValue = document.getElementById('overview_pie_data');\n printCanvasValue.value = `${attendanceEntireTrendsChart.toDataURL('image/png')}`;\n }, 500);\n }\n }\n\n return;\n }\n\n // all other chart tabs\n const attendanceTypeTrendsChart = document.getElementById(`${tab}-attendance-type-trends`);\n const attendanceTypeDataDiv = document.getElementById(`${tab}-attendance-type-data`);\n if (attendanceTypeDataDiv) {\n if (!Chart.getChart(attendanceTypeTrendsChart)) {\n const attendanceTypeData = JSON.parse(attendanceTypeDataDiv.dataset.attrs);\n const chartTile = attendanceTypeDataDiv.dataset.title;\n const yAxisTitle = attendanceTypeData.y_axis_label;\n const displayLegend = attendanceTypeData.datasets.length > 1;\n\n const attendanceTypeTrends = new Chart(attendanceTypeTrendsChart, {\n type: 'line',\n data: attendanceTypeData,\n options: {\n responsive: true,\n plugins: {\n legend: {\n display: displayLegend,\n position: 'top',\n },\n title: {\n display: true,\n text: chartTile,\n font: {\n size: 24,\n },\n },\n },\n scales: {\n x: {\n type: 'time',\n time: {\n parser: 'YYYY-MM-DD',\n tooltipFormat: 'll',\n unit: 'day',\n displayFormats: {\n millisecond: 'MM/DD/YYYY',\n second: 'MM/DD/YYYY',\n minute: 'MM/DD/YYYY',\n hour: 'MM/DD/YYYY',\n day: 'MM/DD/YYYY',\n week: 'MM/DD/YYYY',\n month: 'MM/DD/YYYY',\n quarter: 'MM/DD/YYYY',\n year: 'MM/DD/YYYY',\n },\n },\n ticks: {\n autoSkip: true,\n maxTicksLimit: 20,\n },\n },\n y: {\n beginAtZero: true,\n ticks: {\n stepSize: 1,\n precision: 0,\n },\n title: {\n display: true,\n text: yAxisTitle,\n font: {\n size: 16,\n },\n },\n },\n },\n },\n });\n\n // we want to allow the canvas to finish rendering before we get the base 64 image\n setTimeout(() => {\n const printCanvasValue = document.getElementById(`${tab}_canvas_image_data`);\n printCanvasValue.value = `${attendanceTypeTrendsChart.toDataURL('image/png')}`;\n }, 500);\n }\n }\n};\n\nexport default organizationDashboardAttendanceGraphs;\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":""}