{"version":3,"sources":["webpack:///./src/dashboard/feedback/FeedbackOverview.vue","webpack:///src/dashboard/feedback/FeedbackOverview.vue","webpack:///./src/dashboard/feedback/FeedbackOverview.vue?fda4","webpack:///./src/dashboard/feedback/FeedbackOverview.vue?13e9","webpack:///./src/dashboard/utils.js","webpack:///./src/components/StatWidget.vue","webpack:///src/components/StatWidget.vue","webpack:///./src/components/StatWidget.vue?0ee7","webpack:///./src/components/StatWidget.vue?1056"],"names":["staticClass","attrs","_vm","_c","staticRenderFns","name","components","DashboardCard","StatWidget","data","loading","serviceFeedbackData","incidentFeedbackData","created","fetchServiceFeedbackData","fetchIncidentFeedbackData","methods","filterOptions","itemsPerPage","response","ServiceFeedbackApi","getAll","error","console","IncidentFeedbackApi","copyView","store","$store","$copyText","window","location","then","commit","text","root","color","computed","chartOptions","type","height","stacked","animations","enabled","serviceSeries","allRatings","forEach","items","value","push","rating","series","DashboardUtils","createCountedSeriesData","Set","serviceHoursSeries","hours","serviceIdSeries","service","id","incidentSeries","categoryData","Object","keys","totalResponseHours","length","total","Number","averageIncidentScore","scoreMapping","totalScore","averageOncallScore","incidentSentiment","averageScore","oncallSentiment","incidentSentimentIcon","oncallSentimentIcon","component","itemKey","allKeys","key","grouping","typeCounts","map","groupBy","item","at","y","x","found","find","currentType","mergeWith","objValue","srcValue","isArray","concat","defaultColorTheme","_s","render","props","supTitle","String","default","subTitle","title","icon","iconColor"],"mappings":"2LAAuG,W,IAAiB,OAAE,EAAK,QAAU,G,OAAO,EAAC,Q,MAAM,CAAI,MAAO,GAAE,oBAAiBA,UAAY,CAAuBC,MAAM,CAAC,IAAM,GAAG,KAAM,KAAY,WAAE,YAAY,uBAAEA,MAAM,CAAC,IAAO,GAAQ,OAAG,KAAC,KAAqB,WAAE,MAAK,CAAUA,MAAM,QAAU,IAAIC,MAAO,a,CAAwE,SAAQ,C,MAAC,CAAS,UAAiBD,GAAK,GAAC,0D,MAAM,CAAI,IAAM,GAAG,KAAO,KAAK,CAACE,EAA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C,SAAA,CACA9D,KAAA+D,OACAC,QAAA,IAEAC,SAAA,CACAjE,KAAA+D,OACAC,QAAA,IAEAE,MAAA,CACAlE,KAAA,CAAA4B,OAAAmC,QACAC,QAAA,IAEAG,KAAA,CACAnE,KAAA+D,OACAC,QAAA,IAEAI,UAAA,CACApE,KAAA+D,OACAC,QAAA,IAEAnE,MAAA,CACAG,KAAA+D,OACAC,QAAA,KAIA7F,OACA,WC7DmV,I,YCO/UmE,EAAY,eACd,EACA,EACAxE,GACA,EACA,KACA,KACA,MAIa,OAAAwE,E","file":"static/js/chunk-6a37a30c.58e9d3c3.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-container',{attrs:{\"fluid\":\"\",\"grid-list-xl\":\"\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{staticClass:\"d-flex justify-start\",attrs:{\"lg6\":\"\",\"sm6\":\"\",\"xs12\":\"\"}},[_c('v-btn',{attrs:{\"color\":\"info\"},on:{\"click\":_vm.copyView}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-share\")]),_vm._v(\" Share View \")],1)],1)],1),_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"lg3\":\"\",\"sm6\":\"\",\"xs12\":\"\"}},[_c('stat-widget',{attrs:{\"icon\":\"watch_later\",\"title\":_vm._f(\"toNumberString\")(_vm.totalResponseHours),\"sup-title\":\"Response hours while On-Call\",\"icon-color\":\"indigo accent-2\"}})],1),_c('v-flex',{attrs:{\"lg3\":\"\",\"sm6\":\"\",\"xs12\":\"\"}},[_c('stat-widget',{attrs:{\"icon\":_vm.oncallSentimentIcon,\"title\":_vm.oncallSentiment,\"sup-title\":\"On-Call Sentiment\",\"icon-color\":\"deep-orange\"}})],1),_c('v-flex',{attrs:{\"lg3\":\"\",\"sm6\":\"\",\"xs12\":\"\"}},[_c('stat-widget',{attrs:{\"icon\":_vm.incidentSentimentIcon,\"title\":_vm.incidentSentiment,\"sup-title\":\"BAO Sentiment\",\"icon-color\":\"success\"}})],1),_c('v-flex',{attrs:{\"lg12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('dashboard-card',{attrs:{\"loading\":_vm.loading,\"type\":\"bar\",\"options\":_vm.chartOptions,\"series\":_vm.serviceSeries,\"title\":\"On-Call Feedback Ratings\"}})],1),_c('v-flex',{attrs:{\"lg12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('dashboard-card',{attrs:{\"loading\":_vm.loading,\"type\":\"bar\",\"options\":_vm.chartOptions,\"series\":_vm.incidentSeries,\"title\":\"BAO Feedback Ratings\"}})],1),_c('v-flex',{attrs:{\"lg12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('dashboard-card',{attrs:{\"loading\":_vm.loading,\"type\":\"bar\",\"options\":_vm.chartOptions,\"series\":_vm.serviceHoursSeries,\"title\":\"On-Call Service Feedback Hours\"}})],1),_c('v-flex',{attrs:{\"lg12\":\"\",\"sm12\":\"\",\"xs12\":\"\"}},[_c('dashboard-card',{attrs:{\"loading\":_vm.loading,\"type\":\"bar\",\"options\":_vm.chartOptions,\"series\":_vm.serviceIdSeries,\"title\":\"On-Call Service Feedback by Services\"}})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n \n \n \n \n \n \n \n \n mdi-share Share View \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackOverview.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackOverview.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FeedbackOverview.vue?vue&type=template&id=24a122a6\"\nimport script from \"./FeedbackOverview.vue?vue&type=script&lang=js\"\nexport * from \"./FeedbackOverview.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { at, groupBy, isArray, mergeWith, forEach, map, find } from \"lodash\"\n\nexport default {\n createCountedSeriesData(items, itemKey, allKeys) {\n let series = []\n forEach(items, function (value, key) {\n let grouping = key\n let typeCounts = map(\n groupBy(value, function (item) {\n return at(item, itemKey)\n }),\n function (value, key) {\n return { name: key, data: [{ y: value.length, x: grouping, items: value }] }\n }\n )\n\n // fill in any missing gaps\n if (allKeys) {\n forEach(allKeys, function (type) {\n let found = find(typeCounts, { name: type })\n if (!found) {\n typeCounts.push({ name: type, data: [{ y: 0, x: grouping, items: [] }] })\n }\n })\n }\n\n if (series.length) {\n series = forEach(series, function (value) {\n let currentType = find(typeCounts, { name: value.name })\n return mergeWith(value, currentType, function (objValue, srcValue) {\n if (isArray(objValue)) {\n return objValue.concat(srcValue)\n }\n })\n })\n } else {\n series = typeCounts\n }\n })\n\n // sort\n //series = sortBy(series, function(obj) {\n // return types.indexOf(obj.name)\n //})\n return series\n },\n defaultColorTheme() {\n return [\n \"#008FFB\",\n \"#00E396\",\n \"#FEB019\",\n \"#FF4560\",\n \"#775DD0\",\n \"#1565C0\",\n \"#4ECDC4\",\n \"#D4526E\",\n \"#2B908F\",\n \"#2E294E\",\n ]\n },\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',{staticClass:\"widget-card\",attrs:{\"outlined\":\"\",\"elevation\":\"0\"}},[_c('v-card-text',{staticClass:\"pa-0\"},[_c('v-container',{staticClass:\"pa-0\"},[_c('div',{staticClass:\"layout row ma-0\"},[_c('div',{staticClass:\"sm4 xs4 flex\"},[_c('div',{staticClass:\"layout column ma-0 justify-center align-center\"},[_c('v-icon',{attrs:{\"color\":_vm.iconColor,\"size\":\"76px\"}},[_vm._v(\" \"+_vm._s(_vm.icon)+\" \")])],1)]),_c('div',{staticClass:\"layout column ma-0 justify-center\"},[_c('span',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.subTitle))]),_c('div',{staticClass:\"headline\"},[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_c('span',{staticClass:\"caption\"},[_vm._v(_vm._s(_vm.supTitle))])])])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n \n \n \n \n
\n
\n \n {{ icon }}\n \n
\n
\n
\n
{{ subTitle }}\n
\n {{ title }}\n
\n
{{ supTitle }}\n
\n
\n \n \n \n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StatWidget.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StatWidget.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./StatWidget.vue?vue&type=template&id=022e2dc8\"\nimport script from \"./StatWidget.vue?vue&type=script&lang=js\"\nexport * from \"./StatWidget.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}