{"version":3,"sources":["webpack:///./src/components/channel-selector/index.vue?be37","webpack:///./src/screens/private/bot-detailed/analytic/analytic.vue?2bbe","webpack:///./src/components/modals/chart-colors-selector/chartColorsSelector.vue?187a","webpack:///./src/screens/private/bot-detailed/analytic/analytic.vue?e401","webpack:///./src/helper/defaultCharts.js","webpack:///./src/components/channel-selector/index.vue?a5ab","webpack:///./src/components/channel-selector/scripts.js","webpack:///./src/components/channel-selector/scripts.js?9341","webpack:///./src/components/channel-selector/index.vue","webpack:///./src/components/modals/chart-colors-selector/chartColorsSelector.vue?a95d","webpack:///./src/components/modals/chart-colors-selector/chartColorsSelector.js","webpack:///./src/components/modals/chart-colors-selector/chartColorsSelector.js?759f","webpack:///./src/components/modals/chart-colors-selector/chartColorsSelector.vue","webpack:///./src/screens/private/bot-detailed/analytic/analytic.js","webpack:///./src/screens/private/bot-detailed/analytic/analytic.js?30fc","webpack:///./src/screens/private/bot-detailed/analytic/analytic.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","isLoading","_e","_v","_s","$t","directives","name","rawName","value","content","offset","expression","modifiers","attrs","class","checkFiltersInView","datePickerData","on","data","staticStyle","defaultCharts","graphicSelected","dataType","setSelectedCondition","translateFilter","filterIntentions","setSelectedListIterations","filter","isFilterChannel","nameFilter","key","default","multSelected","setSelectedListLength","$event","chartColorsSelectorModal","chartColorConfig","saveChartColor","domProps","description","notSeries","newGraphics","_l","graphics","chart","index","header","type","horizontal","width","series","labels","legends","isTotal","chartOptions","xaxis","categories","Object","keys","graphicsTotal","length","staticRenderFns","DefaultCharts","types","title","id","titleDescription","style","cssVars","channels","channel","enabled","toggleChannel","label","concat","components","SvgLoader","color","computed","mapGetters","cssValues","getterSelectedBot","botColor","enabledChannelsList","enabledChannels","channelsList","reduce","methods","channelIndex","$emit","component","setChartColors","onCloseModal","closeModal","chartColor","switchRankColor","isDefaultColorsConfig","resetInitialColors","model","applyColorsToAllCharts","callback","$$v","ColorsPalette","ModalStructure","props","defaultColors","Array","MaxColors","slice","required","defaultColorsConfig","isEqual","mounted","setDefaultColors","colors","selected","$set","rankPosition","switched","cloneDeep","CustomDatePicker","ExportAndPrinting","SelectMenu","Loading","ChannelSelector","ChartColorsSelector","startDate","Date","listSelected","listMultSelected","infoGraphics","isInitial","openChartColorsSelector","selectedChannels","auxGraphicsFilter","context","hasIncomingEventsGraphic","graphicsTranslate","forEach","element","orderBy","watch","selectAnalytic","created","document","scrollingElement","offsetWidth","window","addEventListener","checkSizePage","getChartColorConfigCache","mapActions","addToast","ADD_TOAST_MESSAGE","innerWidth","find","item","clearAll","time","setTimeout","getAnalyticUsersInteractedBot","clearTimeout","getAnalyticTotalInteractions","getGraphics","prototype","hasOwnProperty","call","params","idBot","endDate","actionAnalyticUsageMetrics","then","res","checkInfoCall","catch","text","finally","hasSeries","entries","createdGraphic","push","moment","format","$getterFormatDate","isData","charOptionsLine","logo","logoChannel","customIcon","createdGraphicTotal","getSuccess","getWarning","zoom","toolbar","show","legend","dataLabels","stroke","curve","grid","yaxis","lines","fill","gradient","opacityFrom","opacityTo","markers","size","strokeColor","strokeWidth","rotate","tooltip","theme","serieDonut","reducer","accumulator","currentValue","charOptionsTotal","responsive","breakpoint","options","position","normalizeChannelName","replace","toLowerCase","basePath","getChartData","chartName","botId","actionGetChartData","err","console","error","localStorage","getItem","setItem","JSON","stringify","colorsConfig","chartsColorsConfig","parse","updatedData","chartColorCacheConfig","setSelectedQtdData","qtdData","getAnalyticPopularIntentions","getAnalyticPopularExpressions","getAnalyticBotActiveTime","getAnalyticLowAssertiveness","getAnalyticUnknownExpressions","mountParams","page","pageCount","ordinationType","ordinationField","actionAnalyticPopularIntentions","response","amount_intentions","mountedGraphics","customLabelsSeries","getError","actionAnalyticPopularExpressions","actionAnalyticBotActiveTime","values","includes","dates","split","total","toFixed","hours","listLabels","filterChannels","actionAnalyticUsersInteractedBot","createdFilterChannels","actionAnalyticTotalInteractions","actionAnalyticLowAssertivenessExpressions","actionAnalyticUnknownExpressions","labelsSeries","listSeries","sort","a","b","legendTxt","showLegends","seriesChannel","isBar","graphic","translateGraphics","filterTranslate"],"mappings":"4GAAA,W,6DCAA,W,yDCAA,W,gECAA,IAAIA,EAAS,WACX,IAAIC,EAAIC,KACJC,EAAGF,EAAIG,eACPC,EAAGJ,EAAIK,MAAMD,IAAIF,EAErB,OAAOE,EAAG,UAAW,CACnBE,YAAa,+BACZ,CAACN,EAAIO,UAAYH,EAAG,UAAW,CAChCE,YAAa,YACVN,EAAIQ,KAAMJ,EAAG,UAAW,CAC3BE,YAAa,2BACZ,CAACF,EAAG,MAAO,CACZE,YAAa,iBACZ,CAACF,EAAG,MAAO,CACZE,YAAa,mBACZ,CAACF,EAAG,KAAM,CAACJ,EAAIS,GAAGT,EAAIU,GAAGV,EAAIW,GAAG,wBAAyBP,EAAG,MAAO,CACpEE,YAAa,oBACZ,CAACF,EAAG,SAAU,CACfQ,WAAY,CAAC,CACXC,KAAM,UACNC,QAAS,iBACTC,MAAO,CACLC,QAAShB,EAAIW,GAAG,qCAChBM,OAAQ,IAEVC,WAAY,mEACZC,UAAW,CACT,MAAQ,KAGZb,YAAa,gBACZ,CAACF,EAAG,YAAa,CAClBgB,MAAO,CACL,IAAO,yBACP,MAAS,WAER,OAAQhB,EAAG,QAAS,CAACA,EAAG,QAAS,CACpCiB,MAAO,CACL,kCAAmCrB,EAAIsB,sBAEzCF,MAAO,CACL,KAAQ,SAET,CAAChB,EAAG,OAAQ,CACbE,YAAa,2BACZ,CAACN,EAAIS,GAAG,IAAMT,EAAIU,GAAGV,EAAIW,GAAG,0BAA4B,OAAQP,EAAG,mBAAoB,CACxFgB,MAAO,CACL,aAAcpB,EAAIO,UAClB,cAAeP,EAAIuB,gBAErBC,GAAI,CACF,SAAY,SAAkBC,GAC5B,OAAOzB,EAAIuB,eAAiBE,OAG7B,GAAIrB,EAAG,QAAS,CACnBiB,MAAO,CACL,kCAAmCrB,EAAIsB,sBAEzCF,MAAO,CACL,KAAQ,SAET,CAAChB,E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9BgB,EAAQ5O,OAASmO,EAAeA,EAAaC,WAAatB,EAAS9M,OAAO,EAAK8E,cAAc9G,KAAK,GAAGqP,OACrGuB,EAAQ1O,QAAUA,IAdlB0O,EAAQ/O,KAAO6G,EACfkI,EAAQ7O,MAAQ,IAChB+M,EAAS9M,OAAOwF,SAAQ,SAAAkB,GACtBkI,EAAQ3O,OAAOiI,KAAKxB,EAAKtJ,SAE3B0P,EAAS9M,OAAOwF,SAAQ,SAAAkB,GACtBkI,EAAQ5O,OAAOkI,KAAKxB,EAAK+G,MAAM,OAEjCmB,EAAQ1O,QAAUA,GAQpB,EAAKT,SAASyI,KAAK0G,OAGvBhG,WArxBO,WAsxBLpM,KAAKM,WAAY,EACjBN,KAAK8J,SAAS,CACZuB,KAAMrL,KAAKU,GAAG,0BACd2C,KAAM,aAGVqN,SA5xBO,WA6xBL1Q,KAAKiD,SAAW,GAChBjD,KAAKM,WAAY,EACjBN,KAAK8J,SAAS,CACZuB,KAAMrL,KAAKU,GAAG,gCACd2C,KAAM,YAGVgJ,WApyBO,WAqyBLrM,KAAKM,WAAY,EACjBN,KAAK8J,SAAS,CACZuB,KAAMrL,KAAKU,GAAG,wCACd2C,KAAM,aAGVgP,kBA3yBO,SA2yBYpP,GAAU,WACrB8F,EAAoBlB,uBAAU5E,GAIpC,OAHA8F,EAAkBC,SAAQ,SAAAC,GACxBA,EAAQ3E,MAAQ,EAAK5D,GAAGuI,EAAQ3E,UAE3ByE,GAETjH,gBAlzBO,SAkzBUG,GAAQ,WACjBqQ,EAAkBzK,uBAAU5F,GAIlC,OAHAqQ,EAAgBtJ,SAAQ,SAAAC,GACtBA,EAAQrI,KAAO,EAAKF,GAAGuI,EAAQrI,SAE1B0R,MC75B4U,ICQrV,G,UAAY,eACd,EACAxS,EACAqE,GACA,EACA,KACA,KACA,OAIa,e","file":"js/analytic.b59797b7.js","sourcesContent":["export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=scss&\"","export * from \"-!../../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analytic.vue?vue&type=style&index=0&lang=scss&\"","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chartColorsSelector.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {\n var _vm=this;\n var _h=_vm.$createElement;\n var _c=_vm._self._c||_h;\n\n return _c('section', {\n staticClass: \"page-analytic internal-page\"\n }, [_vm.isLoading ? _c('loading', {\n staticClass: \"loading\"\n }) : _vm._e(), _c('section', {\n staticClass: \"internal-generic-header\"\n }, [_c('div', {\n staticClass: \"search-header\"\n }, [_c('div', {\n staticClass: \"container-title\"\n }, [_c('h6', [_vm._v(_vm._s(_vm.$t('analytic.title')))])]), _c('div', {\n staticClass: \"container-search\"\n }, [_c('button', {\n directives: [{\n name: \"tooltip\",\n rawName: \"v-tooltip.auto\",\n value: {\n content: _vm.$t('analytic.tooltip.analysisDisplays'),\n offset: 10\n },\n expression: \"{ content: $t('analytic.tooltip.analysisDisplays'), offset: 10 }\",\n modifiers: {\n \"auto\": true\n }\n }],\n staticClass: \"btn-question\"\n }, [_c('svgLoader', {\n attrs: {\n \"src\": \"/img/icon-question.svg\",\n \"color\": \"#000\"\n }\n })], 1)])]), _c('v-row', [_c('v-col', {\n class: {\n 'd-flex align-items align-center': _vm.checkFiltersInView()\n },\n attrs: {\n \"cols\": \"auto\"\n }\n }, [_c('span', {\n staticClass: \"mr-2 text-select-period\"\n }, [_vm._v(\" \" + _vm._s(_vm.$t('analytic.selectPeriod')) + \" \")]), _c('customDatePicker', {\n attrs: {\n \"is-loading\": _vm.isLoading,\n \"date-to-set\": _vm.datePickerData\n },\n on: {\n \"callback\": function callback(data) {\n return _vm.datePickerData = data;\n }\n }\n })], 1), _c('v-col', {\n class: {\n 'd-flex align-items align-center': _vm.checkFiltersInView()\n },\n attrs: {\n \"cols\": \"auto\"\n }\n }, [_c('span', {\n staticClass: \"mr-2 text-select-period\"\n }, [_vm._v(\" \" + _vm._s(_vm.$t('analytic.selectDataType')) + \" \")]), _c('p-select', {\n staticStyle: {\n \"width\": \"250px\"\n },\n attrs: {\n \"item-text\": \"title\",\n \"item-value\": \"dataType\",\n \"items\": _vm.defaultCharts,\n \"height\": 28,\n \"set-selected\": _vm.graphicSelected.dataType,\n \"disabled\": _vm.isLoading\n },\n on: {\n \"selected\": _vm.setSelectedCondition\n }\n })], 1), _vm.graphicSelected.dataType === 'total_interactions' ? _c('v-col', {\n class: {\n 'd-flex align-items align-center': _vm.checkFiltersInView()\n },\n attrs: {\n \"cols\": \"auto\"\n }\n }, [_c('span', {\n staticClass: \"mr-2 text-select-period\"\n }, [_vm._v(\" \" + _vm._s(_vm.$t('analytic.filterBy')) + \" \")]), _c('p-select', {\n staticStyle: {\n \"width\": \"200px\"\n },\n attrs: {\n \"item-text\": \"name\",\n \"item-value\": \"id\",\n \"items\": _vm.translateFilter(_vm.graphicSelected.filterIntentions),\n \"height\": 28,\n \"set-selected\": 1,\n \"disabled\": _vm.isLoading\n },\n on: {\n \"selected\": _vm.setSelectedListIterations\n }\n })], 1) : _vm._e(), _vm.graphicSelected.filter && _vm.isFilterChannel ? _c('v-col', {\n class: {\n 'd-flex align-items align-center': _vm.checkFiltersInView()\n },\n attrs: {\n \"cols\": \"auto\"\n }\n }, [_c('span', {\n staticClass: \"mr-2 text-select-period\"\n }, [_vm._v(\" \" + _vm._s(_vm.$t(_vm.graphicSelected.nameFilter)) + \": \")]), _c('p-select', {\n key: _vm.graphicSelected.dataType,\n staticStyle: {\n \"max-width\": \"230px\"\n },\n attrs: {\n \"item-text\": \"name\",\n \"item-value\": \"id\",\n \"items\": _vm.translateFilter(_vm.graphicSelected.filter),\n \"height\": 28,\n \"set-selected\": _vm.graphicSelected.default,\n \"disabled\": _vm.isLoading,\n \"mult-selected\": _vm.graphicSelected.multSelected,\n \"mult-selected-fast\": true\n },\n on: {\n \"selected\": _vm.setSelectedListLength\n }\n })], 1) : _vm._e()], 1), _c('div', {\n staticClass: \"container-actions-header\"\n }, [_c('div', {\n staticClass: \"container-select-info\"\n }, [_c('v-btn', {\n directives: [{\n name: \"tooltip\",\n rawName: \"v-tooltip.bottom\",\n value: {\n content: _vm.$t('analytic.tooltip.customizeChartColors'),\n offset: 10\n },\n expression: \"{ content: $t('analytic.tooltip.customizeChartColors'), offset: 10 }\",\n modifiers: {\n \"bottom\": true\n }\n }],\n staticClass: \"chart-colors-selector-button\",\n staticStyle: {\n \"top\": \"-47px\"\n },\n attrs: {\n \"fab\": \"\",\n \"small\": \"\",\n \"outlined\": \"\",\n \"color\": \"#333\",\n \"absolute\": \"\",\n \"ripple\": false\n },\n on: {\n \"click\": function click($event) {\n _vm.chartColorsSelectorModal = true;\n }\n }\n }, [_c('v-icon', {\n attrs: {\n \"color\": \"#333\"\n }\n }, [_vm._v(\" mdi-palette \")])], 1), _vm.chartColorsSelectorModal ? _c('chart-colors-selector', {\n attrs: {\n \"default-colors\": _vm.chartColorConfig\n },\n on: {\n \"change\": _vm.saveChartColor,\n \"close\": function close($event) {\n _vm.chartColorsSelectorModal = false;\n }\n }\n }) : _vm._e()], 1), _c('div', {\n staticClass: \"legend\"\n }, [_c('span', {\n staticClass: \"legend-text\",\n domProps: {\n \"innerHTML\": _vm._s(_vm.$t(_vm.graphicSelected.description))\n }\n })])])], 1), _c('section', {\n staticClass: \"wrapper-analytic\"\n }, [_vm.notSeries && !_vm.newGraphics && !_vm.isLoading ? _c('section', [_c('span', {\n staticClass: \"text mt-16\"\n }, [_vm._v(_vm._s(_vm.$t('analytic.noData')))])]) : _vm._e(), (!_vm.notSeries || _vm.newGraphics) && !_vm.isLoading ? _c('section', [!_vm.newGraphics ? _c('div', {\n staticClass: \"charts-content\"\n }, [_vm._l(_vm.graphics, function (chart, index) {\n return _c('v-flex', {\n key: index,\n staticClass: \"chart-container\",\n attrs: {\n \"row\": \"\",\n \"justify-space-around\": \"\",\n \"align-center\": \"\"\n }\n }, [_c('p-chart', {\n attrs: {\n \"type\": \"area\",\n \"width\": 600,\n \"header\": chart.header,\n \"series\": chart.series,\n \"labels\": chart.chartOptions.xaxis.categories,\n \"colors\": [_vm.chartColorConfig[index]]\n }\n })], 1);\n }), Object.keys(_vm.graphicsTotal).length && _vm.graphicsTotal.chartOptions ? _c('v-flex', {\n staticClass: \"chart-container\",\n attrs: {\n \"row\": \"\",\n \"justify-space-around\": \"\",\n \"align-center\": \"\"\n }\n }, [_c('p-chart', {\n attrs: {\n \"type\": \"donut\",\n \"width\": 600,\n \"is-total\": _vm.graphicsTotal.isTotal,\n \"header\": _vm.graphicsTotal.header,\n \"series\": _vm.graphicsTotal.series,\n \"labels\": _vm.graphicsTotal.chartOptions.labels,\n \"colors\": _vm.chartColorConfig\n }\n })], 1) : _vm._e()], 2) : _c('div', {\n staticClass: \"charts-content\"\n }, _vm._l(_vm.graphics, function (chart, index) {\n return _c('p-chart', {\n key: index,\n attrs: {\n \"header\": chart.header,\n \"type\": chart.type,\n \"horizontal\": chart.horizontal,\n \"width\": chart.width,\n \"series\": chart.series,\n \"labels\": chart.labels,\n \"colors\": _vm.chartColorConfig,\n \"legends\": chart.legends,\n \"is-total\": chart.isTotal\n }\n });\n }), 1)]) : _vm._e()])], 1);\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","const DefaultCharts = [\n // {\n // types: ['bar', 'donut'],\n // dataType: 'conversations',\n // title: 'analytic.conversations.title',\n // description: 'analytic.conversations.description'\n // },\n {\n types: ['bar', 'donut'],\n dataType: 'incoming_events',\n title: 'analytic.incomingEvents.title',\n description: 'analytic.incomingEvents.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'incoming_interactions_total',\n title: 'analytic.incomingInteractionsTotal.title',\n description: 'analytic.incomingInteractionsTotal.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'incoming_messages',\n title: 'analytic.incomingMessages.title',\n description: 'analytic.incomingMessages.description'\n },\n // {\n // types: ['bar', 'donut'],\n // dataType: 'interactions_total',\n // title: 'analytic.interactionsTotal.title',\n // description: 'analytic.interactionsTotal.description'\n // },\n {\n types: ['bar', 'donut'],\n dataType: 'outgoing_attendance_replies',\n title: 'analytic.outgoingAttendanceReplies.title',\n description: 'analytic.outgoingAttendanceReplies.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'outgoing_bot_replies',\n title: 'analytic.outgoingBotReplies.title',\n description: 'analytic.outgoingBotReplies.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'outgoing_broadcast_messages',\n title: 'analytic.outgoingBroadcastMessages.title',\n description: 'analytic.outgoingBroadcastMessages.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'outgoing_interactions_total',\n title: 'analytic.outgoingInteractionsTotal.title',\n description: 'analytic.outgoingInteractionsTotal.description'\n },\n {\n types: ['bar', 'donut'],\n dataType: 'transshipment',\n title: 'analytic.transshipment.title',\n description: 'analytic.transshipment.description'\n },\n // {\n // types: ['bar', 'donut'],\n // dataType: 'users',\n // title: 'analytic.users.title',\n // description: 'analytic.users.description'\n // },\n {\n types: ['bar', 'donut'],\n dataType: 'popular_intentions',\n title: 'analytic.popularIntentions.title',\n description: 'analytic.popularIntentions.description',\n default: 1,\n nameFilter: 'analytic.popularIntentions.nameFilter',\n filter: [\n {\n id: 1,\n name: 'Top 10'\n },\n {\n id: 2,\n name: 'Top 20'\n }\n ]\n },\n {\n types: ['bar', 'donut'],\n dataType: 'popular_expressions',\n title: 'analytic.popularExpressions.title',\n description: 'analytic.popularExpressions.description',\n default: 1,\n nameFilter: 'analytic.popularExpressions.nameFilter',\n filter: [\n {\n id: 1,\n name: 'Top 10'\n },\n {\n id: 2,\n name: 'Top 20'\n }\n ]\n },\n {\n types: ['area', 'donut'],\n dataType: 'low_assertiveness',\n title: 'analytic.lowAssertiveness.title',\n description: 'analytic.lowAssertiveness.description'\n },\n {\n types: ['area', 'donut'],\n dataType: 'users_interacted_bot',\n title: 'analytic.usersInteractedBot.title',\n description: 'analytic.usersInteractedBot.description',\n default: [1],\n nameFilter: 'analytic.usersInteractedBot.nameFilter',\n multSelected: true,\n filter: []\n },\n {\n types: ['area', 'donut'],\n dataType: 'bot_uptime',\n title: 'analytic.botUptime.title',\n description: 'analytic.botUptime.description'\n },\n {\n types: ['area', 'donut'],\n dataType: 'total_interactions',\n title: 'analytic.totalInteractionsGraphic.title',\n description: 'analytic.totalInteractionsGraphic.description',\n default: [1],\n nameFilter: 'analytic.totalInteractionsGraphic.nameFilter',\n multSelected: true,\n filter: [],\n filterIntentions: [\n {\n id: 1,\n name: 'analytic.totalInteractionsGraphic.optionAll'\n },\n {\n id: 2,\n name: 'analytic.totalInteractionsGraphic.optionBot'\n },\n {\n id: 3,\n name: 'analytic.totalInteractionsGraphic.optionAttendance'\n }\n ]\n },\n {\n types: ['area', 'donut'],\n dataType: 'unknown_expressions',\n title: 'analytic.unknownExpressions.title',\n description: 'analytic.unknownExpressions.description',\n titleDescription: 'analytic.unknownExpressions.titleDescription'\n }\n]\n\nexport { DefaultCharts }\n","var render = function () {\n var _vm=this;\n var _h=_vm.$createElement;\n var _c=_vm._self._c||_h;\n\n return _c('div', {\n staticClass: \"channel-selector-container\",\n style: _vm.cssVars\n }, [_c('div', {\n staticClass: \"selector-options\"\n }, _vm._l(_vm.channels, function (channel, index) {\n return _c('div', {\n key: channel.name,\n staticClass: \"channel-option\",\n class: {\n 'checked': channel.enabled\n },\n on: {\n \"click\": function click($event) {\n return _vm.toggleChannel(index);\n }\n }\n }, [_c('div', {\n staticClass: \"channel-toggle-area\",\n class: channel.label\n }, [_c('div', {\n staticClass: \"channel-toggle-icon\"\n })]), _c('label', {\n attrs: {\n \"for\": channel.label\n }\n }, [_c('div', {\n staticClass: \"channel-icon\",\n class: channel.label\n }, [_c('svg-loader', {\n attrs: {\n \"src\": \"/img/channels/\".concat(channel.label, \".svg\"),\n \"color\": \"#fff\"\n }\n })], 1), _c('span', [_vm._v(_vm._s(channel.name))])])]);\n }), 0)]);\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex'\nimport SvgLoader from '@/components/svg-loader/index.vue'\n\nexport default {\n name: 'ChannelSelector',\n\n components: { SvgLoader },\n\n // props: {\n // channels: {\n // type: Array,\n // required: true,\n // default: () => []\n // }\n // },\n\n data: () => ({\n channels: [\n {\n name: 'PeopleChat',\n label: 'peoplechat',\n color: '#ea542d',\n enabled: true\n },\n {\n name: 'WhatsApp',\n label: 'whatsapp',\n color: '#24cd63',\n enabled: true\n },\n {\n name: 'Facebook',\n label: 'facebook',\n color: '#3a5895',\n enabled: true\n },\n {\n name: 'Workplace',\n label: 'workplace',\n color: '#282828',\n enabled: true\n },\n {\n name: 'Outros',\n label: 'default',\n color: '#282828',\n enabled: true\n }\n ]\n }),\n\n computed: {\n ...mapGetters(['getterSelectedBot']),\n\n cssVars () {\n const cssValues = {\n '--botColor': this.getterSelectedBot.botColor\n }\n return cssValues\n },\n\n enabledChannelsList () {\n const enabledChannels = this.channels.filter(channel => channel.enabled)\n const channelsList = enabledChannels.reduce((channels, channel) => channels.concat(channel.label), [])\n return channelsList\n }\n },\n\n methods: {\n toggleChannel (channelIndex) {\n this.channels[channelIndex].enabled = !this.channels[channelIndex].enabled\n this.$emit('change', this.enabledChannelsList)\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./scripts.js?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./scripts.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=31d43c3e&\"\nimport script from \"./scripts.js?vue&type=script&lang=js&\"\nexport * from \"./scripts.js?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\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","var render = function () {\n var _vm=this;\n var _h=_vm.$createElement;\n var _c=_vm._self._c||_h;\n\n return _c('modal-structure', {\n staticClass: \"chart-colors-selector\",\n attrs: {\n \"on-click\": function onClick() {\n return _vm.setChartColors();\n },\n \"on-close\": _vm.onCloseModal,\n \"bot-color\": _vm.getterSelectedBot.botColor,\n \"is-loading\": _vm.isLoading,\n \"width\": \"594\",\n \"title\": _vm.$t('analytic.chartColorsSelector.title'),\n \"button-text\": _vm.$t('analytic.chartColorsSelector.textButton')\n },\n on: {\n \"callback\": function callback($event) {\n return _vm.closeModal();\n }\n }\n }, [_c('v-layout', {\n attrs: {\n \"mb-6\": \"\",\n \"mt-8\": \"\"\n }\n }, [_c('colors-palette', {\n attrs: {\n \"multi-selector\": \"\",\n \"chart-ranking-list\": _vm.chartColor\n },\n on: {\n \"switchColor\": function switchColor(data) {\n return _vm.switchRankColor(data);\n }\n }\n })], 1), _c('v-layout', {\n attrs: {\n \"align-center\": \"\",\n \"justify-center\": \"\"\n }\n }, [_c('v-btn', {\n class: {\n 'disabled': _vm.isDefaultColorsConfig\n },\n attrs: {\n \"text\": \"\",\n \"outlined\": \"\",\n \"ripple\": false\n },\n on: {\n \"click\": function click($event) {\n return _vm.resetInitialColors();\n }\n }\n }, [_c('span', {\n staticClass: \"reset-initial-colors\"\n }, [_vm._v(_vm._s(_vm.$t('analytic.chartColorsSelector.reset')))])])], 1), _c('v-layout', {\n attrs: {\n \"align-center\": \"\",\n \"justify-center\": \"\",\n \"my-2\": \"\"\n }\n }, [_c('v-checkbox', {\n attrs: {\n \"color\": _vm.getterSelectedBot.botColor,\n \"label\": _vm.$t('analytic.chartColorsSelector.applyAll')\n },\n model: {\n value: _vm.applyColorsToAllCharts,\n callback: function callback($$v) {\n _vm.applyColorsToAllCharts = $$v;\n },\n expression: \"applyColorsToAllCharts\"\n }\n })], 1)], 1);\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapGetters } from 'vuex'\nimport { isEqual, cloneDeep } from 'lodash'\nimport { MaxColors } from '@/helper/colorsPalette'\nimport ColorsPalette from '@/components/colors-palette/index.vue'\nimport ModalStructure from '@/components/modals/modal-structure/modalStructure.vue'\n\nexport default {\n name: 'ChartColorsSelector',\n components: {\n ColorsPalette,\n ModalStructure\n },\n props: {\n defaultColors: {\n type: Array,\n default: MaxColors.slice(0, 20),\n required: false\n }\n },\n data: () => ({\n isLoading: false,\n onCloseModal: false,\n applyColorsToAllCharts: false,\n chartColor: []\n }),\n computed: {\n ...mapGetters(['getterSelectedBot']),\n isDefaultColorsConfig () {\n const defaultColorsConfig = isEqual(this.chartColor, MaxColors.slice(0, 20))\n return defaultColorsConfig\n }\n },\n mounted () {\n this.setDefaultColors()\n },\n methods: {\n setChartColors () {\n const data = {\n colors: this.chartColor,\n applyColorsToAllCharts: this.applyColorsToAllCharts\n }\n this.$emit('change', data)\n this.onCloseModal = true\n },\n closeModal () {\n this.$emit('close')\n },\n switchRankColor (data) {\n if (data.selected) {\n this.$set(this.chartColor, data.selected.rankPosition, data.selected.color)\n }\n this.$set(this.chartColor, data.switched.rankPosition, data.switched.color)\n },\n resetInitialColors () {\n this.chartColor = MaxColors.slice(0, 20)\n },\n setDefaultColors () {\n this.chartColor = cloneDeep(this.defaultColors)\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./chartColorsSelector.js?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./chartColorsSelector.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./chartColorsSelector.vue?vue&type=template&id=0f3d4bd4&\"\nimport script from \"./chartColorsSelector.js?vue&type=script&lang=js&\"\nexport * from \"./chartColorsSelector.js?vue&type=script&lang=js&\"\nimport style0 from \"./chartColorsSelector.vue?vue&type=style&index=0&lang=scss&\"\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 moment from 'moment'\nimport { mapActions, mapGetters } from 'vuex'\nimport { ADD_TOAST_MESSAGE } from 'vuex-toast'\nimport { cloneDeep, orderBy } from 'lodash'\nimport { MaxColors } from '@/helper/colorsPalette'\nimport { DefaultCharts } from '@/helper/defaultCharts'\nimport Loading from '@/components/loading/index.vue'\nimport {\n SvgLoader,\n CustomDatePicker,\n ExportAndPrinting,\n SelectMenu\n} from '@/components'\nimport ChannelSelector from '@/components/channel-selector/index.vue'\nimport ChartColorsSelector from '@/components/modals/chart-colors-selector/chartColorsSelector.vue'\n\nexport default {\n components: {\n SvgLoader,\n CustomDatePicker,\n ExportAndPrinting,\n SelectMenu,\n Loading,\n ChannelSelector,\n ChartColorsSelector\n },\n data () {\n return {\n datePickerData: { startDate: new Date() },\n graphics: [],\n graphicsTotal: {},\n graphicSelected: {},\n listSelected: 1,\n listMultSelected: [1],\n colors: [\n '#007bff',\n '#ffc107',\n '#fd7e14',\n '#6f42c1',\n '#dc3545',\n '#28a745',\n '#17a2b8',\n '#20c997',\n '#e83e8c',\n '#6610f2',\n '#ed7555',\n '#4b71f0'\n ],\n infoGraphics: [],\n isLoading: false,\n isInitial: true,\n notSeries: false,\n openChartColorsSelector: false,\n chartColorsSelectorModal: false,\n selectedChannels: [],\n chartColorConfig: MaxColors.slice(0, 20),\n newGraphics: false,\n width: 1000,\n isFilterChannel: false,\n auxGraphicsFilter: [],\n context: '',\n hasIncomingEventsGraphic: false\n }\n },\n computed: {\n ...mapGetters([\n 'getterSelectedBot',\n 'getterAllInteractionChannel',\n 'getterAllAverageInteractionChannel',\n 'getterAllUserPerDay',\n 'getterAllUsersChannel',\n 'getterAllUsersIntent',\n 'getterAllIDK',\n '$getterFormatDate'\n ]),\n defaultCharts () {\n const graphicsTranslate = cloneDeep(DefaultCharts)\n graphicsTranslate.forEach(element => {\n element.title = this.$t(element.title)\n })\n return orderBy(graphicsTranslate, ['title', 'asc'])\n }\n },\n watch: {\n datePickerData () {\n this.isLoading = true\n this.isInitial = true\n this.selectAnalytic()\n }\n },\n created () {\n [this.graphicSelected] = this.defaultCharts\n this.isLoading = true\n this.width = document.scrollingElement.offsetWidth\n this.setDefaultColors()\n },\n mounted () {\n window.addEventListener('resize', () => {\n this.checkSizePage()\n })\n this.getChartColorConfigCache(this.graphicSelected.dataType)\n },\n methods: {\n ...mapActions({\n addToast: ADD_TOAST_MESSAGE\n }),\n ...mapActions([\n 'actionAnalyticUsageMetrics',\n 'actionGetChartData',\n 'actionAnalyticPopularIntentions',\n 'actionAnalyticPopularExpressions',\n 'actionAnalyticBotActiveTime',\n 'actionAnalyticUsersInteractedBot',\n 'actionAnalyticTotalInteractions',\n 'actionAnalyticLowAssertivenessExpressions',\n 'actionAnalyticUnknownExpressions'\n ]),\n checkSizePage () {\n this.width = window.innerWidth\n },\n checkFiltersInView () {\n if (this.graphicSelected.dataType === 'total_interactions') {\n return this.width > 1751\n }\n return this.width > (this.graphicSelected.filter ? 1451 : 1095)\n },\n setSelectedCondition (value) {\n if (!this.isLoading) {\n this.isLoading = true\n this.graphicSelected = this.defaultCharts.find(item => item.dataType === value)\n this.clearAll()\n this.selectAnalytic()\n }\n },\n clearAll () {\n this.listSelected = 1\n this.listMultSelected = [1]\n this.auxGraphicsFilter = []\n this.isFilterChannel = false\n },\n setSelectedListLength (value) {\n if (!this.isLoading) {\n if (this.graphicSelected.multSelected) {\n this.listMultSelected = value\n } else {\n this.listSelected = value\n }\n if (this.graphicSelected.dataType === 'users_interacted_bot') {\n const time = setTimeout(() => {\n this.isLoading = true\n this.getAnalyticUsersInteractedBot(true)\n clearTimeout(time)\n }, 100)\n } else if (this.graphicSelected.dataType === 'total_interactions') {\n const time = setTimeout(() => {\n this.isLoading = true\n this.getAnalyticTotalInteractions(true)\n clearTimeout(time)\n }, 100)\n } else {\n this.isLoading = true\n this.selectAnalytic()\n }\n }\n },\n setSelectedListIterations (value) {\n if (!this.isLoading) {\n this.clearAll()\n this.graphicSelected.filter = [{ id: 1, name: this.$t('analytic.all') }]\n this.isLoading = true\n switch (value) {\n case 2:\n this.context = 'bot'\n break\n case 3:\n this.context = 'talk'\n break\n default:\n this.context = ''\n break\n }\n this.getAnalyticTotalInteractions()\n }\n },\n getGraphics () {\n if (!Object.prototype.hasOwnProperty.call(this.datePickerData, 'startDate') || !Object.prototype.hasOwnProperty.call(this.datePickerData, 'endDate')) {\n return\n }\n\n this.isLoading = true\n const params = {\n idBot: this.getterSelectedBot.idBot,\n startDate: this.datePickerData.startDate,\n endDate: this.datePickerData.endDate\n }\n this.actionAnalyticUsageMetrics(params)\n .then(res => {\n if (res && res.data && res.data.data) {\n this.checkInfoCall(res.data.data)\n } else {\n this.notSeries = true\n }\n })\n .catch(() => {\n this.notSeries = true\n this.addToast({\n text: this.$t('analytic.toast.errorFetching'),\n type: 'danger'\n })\n })\n .finally(() => {\n this.isInitial = false\n this.isLoading = false\n })\n },\n checkInfoCall (data) {\n let hasSeries = false\n Object.entries(data).forEach(item => {\n if (item[1].series.length) {\n hasSeries = true\n }\n })\n if (hasSeries) {\n this.infoGraphics = []\n this.infoGraphics = data\n this.notSeries = false\n this.createdGraphic()\n } else {\n this.infoGraphics = []\n this.notSeries = true\n }\n },\n createdGraphic () {\n if (this.infoGraphics[this.graphicSelected.dataType]) {\n this.graphics = []\n this.graphicsTotal = {}\n const label = []\n this.infoGraphics[this.graphicSelected.dataType].labels.forEach(item => {\n label.push(moment(item).format(this.$getterFormatDate))\n })\n let isData = false\n this.infoGraphics[this.graphicSelected.dataType].series.forEach((item, index) => {\n item.data.forEach(data => {\n if (!isData && data) {\n isData = true\n }\n })\n this.graphics.push({\n series: [\n {\n name: item.name,\n data: item.data\n }\n ],\n name: item.name,\n chartOptions: this.charOptionsLine(label, this.colors[index]),\n logo: this.logoChannel(item.name),\n header: {\n title: item.name,\n customIcon: this.logoChannel(item.name)\n }\n })\n })\n const time = setTimeout(() => {\n if (isData) {\n this.createdGraphicTotal()\n this.getSuccess()\n this.notSeries = false\n } else {\n this.notSeries = true\n this.getWarning()\n }\n clearTimeout(time)\n }, 300)\n } else {\n this.getWarning()\n }\n },\n charOptionsLine (label, color) {\n return {\n chart: {\n zoom: {\n enabled: false\n },\n toolbar: {\n show: false\n }\n },\n colors: [color],\n legend: {\n show: false\n },\n dataLabels: {\n enabled: false\n },\n stroke: {\n curve: 'smooth',\n width: 3\n },\n grid: {\n yaxis: {\n lines: {\n show: false\n }\n }\n },\n fill: {\n gradient: {\n enabled: true,\n opacityFrom: 0.55,\n opacityTo: 0\n }\n },\n markers: {\n size: 4,\n colors: ['#ffffff'],\n strokeColor: '#dddddd',\n strokeWidth: 2\n },\n xaxis: {\n type: 'date',\n categories: label,\n labels: {\n rotate: -45\n }\n },\n tooltip: {\n theme: 'dark'\n }\n }\n },\n createdGraphicTotal () {\n const serieDonut = []\n const label = []\n const reducer = (accumulator, currentValue) => accumulator + currentValue\n this.graphics.forEach(item => {\n serieDonut.push(item.series[0].data.reduce(reducer))\n label.push(item.series[0].name)\n })\n this.graphicsTotal = {\n series: serieDonut,\n isTotal: this.hasIncomingEventsGraphic,\n chartOptions: this.charOptionsTotal(label),\n header: {\n title: this.hasIncomingEventsGraphic ? this.$t('analytic.totalEvasions') : this.$t('analytic.totalInteractions')\n }\n }\n },\n charOptionsTotal (label) {\n return {\n labels: label,\n colors: this.colors,\n responsive: [{\n breakpoint: 680,\n options: {\n chart: {\n width: 400\n },\n legend: {\n position: 'bottom'\n }\n }\n }]\n }\n },\n logoChannel (name) {\n const normalizeChannelName = name.replace(/([^\\w]+|\\s+)/g, '').toLowerCase()\n const basePath = '/img/channels'\n\n switch (normalizeChannelName) {\n case 'peoplechat':\n return `${basePath}/peoplechat.svg`\n case 'workplace':\n return `${basePath}/workplace.svg`\n case 'email':\n case 'chatapiemail':\n return `${basePath}/email.svg`\n case 'cortana':\n case 'chatapicortana':\n return `${basePath}/cortana.svg`\n case 'telegram':\n case 'chatapitelegram':\n return `${basePath}/telegram.svg`\n case 'twilio':\n case 'twillio':\n case 'chatapitwilio':\n case 'chatapitwillio':\n return `${basePath}/twilio.svg`\n case 'facebook':\n case 'facebookpages':\n case 'chatapifacebook':\n return `${basePath}/facebook.svg`\n case 'skype':\n case 'skypebusiness':\n case 'chatapiskype':\n return `${basePath}/skype.svg`\n case 'msteams':\n case 'microsoftteams':\n case 'chatapimsteams':\n return `${basePath}/teams.svg`\n case 'whatsapp':\n case 'chatapiwhatsapp':\n return `${basePath}/whatsapp.svg`\n default:\n return `${basePath}/default.svg`\n }\n },\n getChartData () {\n const data = {\n chartName: this.graphicSelected.dataType,\n botId: this.getterSelectedBot.idBot,\n startDate: this.datePickerData.startDate,\n endDate: this.datePickerData.endDate\n }\n\n this.actionGetChartData(data)\n .catch(err => console.error(err))\n },\n setDefaultColors () {\n const data = {}\n if (!localStorage.getItem('charts_colors_config')) {\n DefaultCharts.forEach(chart => {\n data[chart.dataType] = this.chartColorConfig\n })\n\n localStorage.setItem('charts_colors_config', JSON.stringify(data))\n }\n },\n saveChartColor (colorsConfig) {\n let data = {}\n\n if (colorsConfig.applyColorsToAllCharts) {\n DefaultCharts.forEach(chart => {\n data[chart.dataType] = colorsConfig.colors\n })\n } else {\n const chartsColorsConfig = localStorage.getItem('charts_colors_config')\n\n if (chartsColorsConfig) {\n data = JSON.parse(chartsColorsConfig)\n }\n\n data[this.graphicSelected.dataType] = colorsConfig.colors\n }\n\n const updatedData = JSON.stringify(data)\n localStorage.setItem('charts_colors_config', updatedData)\n this.chartColorConfig = colorsConfig.colors\n },\n getChartColorConfigCache (chartName) {\n const chartsColorsConfig = localStorage.getItem('charts_colors_config')\n\n if (chartsColorsConfig) {\n const chartColorCacheConfig = JSON.parse(chartsColorsConfig)[chartName]\n\n if (chartColorCacheConfig) {\n this.chartColorConfig = chartColorCacheConfig\n }\n }\n },\n setSelectedQtdData (item) {\n this.qtdData = item\n this.selectAnalytic()\n },\n selectAnalytic () {\n this.getChartColorConfigCache(this.graphicSelected.dataType)\n switch (this.graphicSelected.dataType) {\n case 'popular_intentions':\n this.isFilterChannel = true\n this.newGraphics = true\n this.getAnalyticPopularIntentions()\n break\n case 'popular_expressions':\n this.isFilterChannel = true\n this.newGraphics = true\n this.getAnalyticPopularExpressions()\n break\n case 'bot_uptime':\n this.newGraphics = true\n this.getAnalyticBotActiveTime()\n break\n case 'users_interacted_bot':\n this.listMultSelected = [1]\n this.graphicSelected.filter = [{ id: 1, name: this.$t('analytic.all') }]\n this.newGraphics = true\n this.getAnalyticUsersInteractedBot()\n break\n case 'total_interactions':\n this.listMultSelected = [1]\n this.graphicSelected.filter = [{ id: 1, name: this.$t('analytic.all') }]\n this.newGraphics = true\n this.getAnalyticTotalInteractions()\n break\n case 'low_assertiveness':\n this.newGraphics = true\n this.getAnalyticLowAssertiveness()\n break\n case 'unknown_expressions':\n this.newGraphics = true\n this.getAnalyticUnknownExpressions()\n break\n default:\n this.hasIncomingEventsGraphic = this.graphicSelected.dataType === 'incoming_events'\n this.newGraphics = false\n if (this.isInitial) {\n this.getGraphics()\n } else {\n this.isLoading = true\n this.createdGraphic()\n }\n break\n }\n },\n mountParams () {\n return {\n botId: this.getterSelectedBot.idBot,\n ...this.datePickerData,\n page: 1,\n pageCount: this.listSelected * 10,\n ordinationType: 'desc',\n ordinationField: 'count'\n }\n },\n getAnalyticPopularIntentions () {\n this.actionAnalyticPopularIntentions(this.mountParams())\n .then(response => {\n this.notSeries = !response.series.length\n this.newGraphics = !!response.series.length\n const legends = [\n {\n text: this.$t('analytic.totalIntentionsRegisteredBot'),\n value: response.amount_intentions\n }\n ]\n this.mountedGraphics(response, legends, true, this.customLabelsSeries(response))\n // eslint-disable-next-line no-unused-expressions\n response.series.length ? this.getSuccess() : this.getWarning()\n })\n .catch(() => {\n this.getError()\n })\n },\n getAnalyticPopularExpressions () {\n this.actionAnalyticPopularExpressions(this.mountParams())\n .then(response => {\n this.notSeries = !response.series.length\n this.newGraphics = !!response.series.length\n this.mountedGraphics(response, [], true, this.customLabelsSeries(response))\n // eslint-disable-next-line no-unused-expressions\n response.series.length ? this.getSuccess() : this.getWarning()\n })\n .catch(() => {\n this.getError()\n })\n },\n getAnalyticBotActiveTime () {\n const params = this.mountParams()\n params.ordinationField = 'date'\n params.ordinationType = 'asc'\n\n this.actionAnalyticBotActiveTime(params)\n .then(response => {\n const legends = []\n const labels = []\n const series = []\n let isData = false\n response.labels[0].values.forEach(item => {\n if (item.includes('_')) {\n const dates = item.split('_')\n labels.push(`${moment(dates[0]).format('MM/YYYY')}`)\n } else {\n labels.push(moment(item).format(this.$getterFormatDate))\n }\n })\n response.series.forEach(item => {\n if (item.name === 'active_time') {\n item.name = this.$t('analytic.withInteraction')\n legends.push(\n {\n text: this.$t('analytic.totalInteractivityBot'),\n value: item.total[0].toFixed(0)\n }\n )\n } else {\n item.name = this.$t('analytic.noInteraction')\n legends.push(\n {\n text: this.$t('analytic.totalNoInteractivityBot'),\n value: item.total[0].toFixed(0)\n }\n )\n }\n if (!isData && item.total[0]) {\n isData = true\n }\n const values = []\n item.data[0].values.forEach(hours => {\n values.push(hours.toFixed(0))\n })\n series.push({ data: [{ values }], name: item.name, total: [+item.total[0].toFixed(0)] })\n })\n if (isData) {\n this.mountedGraphics({ series, labels: response.labels }, [], true, { listLabels: labels })\n this.getSuccess()\n } else {\n this.notSeries = true\n this.newGraphics = false\n this.getWarning()\n }\n })\n .catch(() => {\n this.getError()\n })\n },\n getAnalyticUsersInteractedBot (isFilterChannel) {\n if (isFilterChannel) {\n this.filterChannels(this.$t('analytic.totalUsersInteractedBot'))\n } else {\n this.isFilterChannel = false\n const params = this.mountParams()\n params.pageCount = 20\n params.ordinationField = 'date'\n params.ordinationType = 'asc'\n\n this.actionAnalyticUsersInteractedBot(params)\n .then(response => {\n this.auxGraphicsFilter = response\n this.createdFilterChannels()\n this.filterChannels(this.$t('analytic.totalUsersInteractedBot'))\n })\n .catch(() => {\n this.getError()\n })\n const time = setTimeout(() => {\n this.isFilterChannel = true\n clearTimeout(time)\n }, 10)\n }\n },\n getAnalyticTotalInteractions (isFilterChannel) {\n if (isFilterChannel) {\n this.filterChannels(this.$t('analytic.totalBotInteractions'), false, true)\n } else {\n this.isFilterChannel = false\n const params = {\n botId: this.getterSelectedBot.idBot,\n ...this.datePickerData,\n context: this.context\n }\n this.actionAnalyticTotalInteractions(params)\n .then(response => {\n this.auxGraphicsFilter = response\n this.createdFilterChannels()\n this.filterChannels(this.$t('analytic.totalBotInteractions'), false, true)\n })\n .catch(() => {\n this.getError()\n })\n const time = setTimeout(() => {\n this.isFilterChannel = true\n clearTimeout(time)\n }, 10)\n }\n },\n getAnalyticLowAssertiveness () {\n const params = this.mountParams()\n params.pageCount = 20\n params.ordinationField = 'expression'\n params.ordinationType = 'asc'\n\n this.actionAnalyticLowAssertivenessExpressions(params)\n .then(response => {\n const legends = []\n const labels = []\n let isData = false\n response.labels[0].values.forEach(item => {\n if (item.includes('_')) {\n const dates = item.split('_')\n labels.push(`${moment(dates[0]).format('MM/YYYY')}`)\n } else {\n labels.push(moment(item).format(this.$getterFormatDate))\n }\n })\n response.series.forEach(item => {\n if (item.name === 'expressions_above_50_percent') {\n item.name = this.$t('analytic.greaterThan')\n legends.push(\n {\n text: this.$t('analytic.totalExpressionsGreaterThan'),\n value: item.total[0]\n }\n )\n } else {\n item.name = this.$t('analytic.lessThan')\n legends.push(\n {\n text: this.$t('analytic.totalExpressionsLessThan'),\n value: item.total[0]\n }\n )\n }\n if (!isData && item.total[0]) {\n isData = true\n }\n })\n if (isData) {\n this.mountedGraphics(response, [], true, { listLabels: labels })\n this.getSuccess()\n } else {\n this.notSeries = true\n this.newGraphics = false\n this.getWarning()\n }\n })\n .catch(() => {\n this.getError()\n })\n },\n getAnalyticUnknownExpressions () {\n const params = {\n botId: this.getterSelectedBot.idBot,\n ...this.datePickerData\n }\n\n this.actionAnalyticUnknownExpressions(params)\n .then(response => {\n const labels = []\n let isData = false\n response.labels[0].values.forEach(item => {\n if (item.includes('_')) {\n const dates = item.split('_')\n labels.push(`${moment(dates[0]).format('MM/YYYY')}`)\n } else {\n labels.push(moment(item).format(this.$getterFormatDate))\n }\n })\n response.series.forEach(item => {\n if (item.name === 'unknown_expressions_registered') {\n item.name = this.$t('analytic.unknownExpressions.unknownExpressionsRegistered')\n } else if (item.name === 'unknown_expressions_unregistered') {\n item.name = this.$t('analytic.unknownExpressions.unknownExpressionsUnregistered')\n }\n if (!isData && item.total[0]) {\n isData = true\n }\n })\n if (isData) {\n this.mountedGraphics(response, [], true, { listLabels: labels })\n this.getSuccess()\n } else {\n this.notSeries = true\n this.newGraphics = false\n this.getWarning()\n }\n })\n .catch(() => {\n this.getError()\n })\n },\n customLabelsSeries (response) {\n const labelsSeries = {\n listLabels: [],\n listSeries: []\n }\n response.series.sort((a, b) => {\n if (a.total[0] > b.total[0]) {\n return -1\n }\n if (a.total[0] < b.total[0]) {\n return 1\n }\n return 0\n })\n response.series.forEach(item => {\n labelsSeries.listLabels.push(item.name)\n labelsSeries.listSeries.push(item.total[0])\n })\n return labelsSeries\n },\n createdFilterChannels () {\n this.auxGraphicsFilter.series.forEach((item, index) => {\n this.graphicSelected.filter.push({ id: index + 2, name: item.name })\n })\n },\n filterChannels (legendTxt, showLegends = true, isTotal = false) {\n const labels = []\n let isData = false\n\n this.auxGraphicsFilter.labels[0].values.forEach(item => {\n if (item.includes('_')) {\n const dates = item.split('_')\n labels.push(`${moment(dates[0]).format('MM/YYYY')}`)\n } else {\n labels.push(moment(item).format(this.$getterFormatDate))\n }\n })\n let seriesChannel = []\n if (this.listMultSelected.includes(1)) {\n seriesChannel = this.auxGraphicsFilter.series\n } else {\n this.auxGraphicsFilter.series.forEach(item => {\n this.graphicSelected.filter.forEach(channel => {\n if (this.listMultSelected.includes(channel.id) && channel.name === item.name) {\n seriesChannel.push(item)\n }\n })\n })\n }\n let total = 0\n seriesChannel.forEach(item => {\n total += item.total[0]\n if (!isData && item.total[0]) {\n isData = true\n }\n })\n const legends = !showLegends ? [] : [\n {\n text: legendTxt,\n value: total\n }\n ]\n if (isData) {\n this.mountedGraphics({ series: seriesChannel, labels: this.auxGraphicsFilter.labels }, legends, isTotal, { listLabels: labels })\n const time = setTimeout(() => {\n this.getSuccess()\n clearTimeout(time)\n }, 100)\n this.notSeries = false\n this.newGraphics = true\n } else {\n this.notSeries = true\n this.newGraphics = false\n this.getWarning()\n }\n },\n mountedGraphics (response, legends, total, labelsSeries) {\n this.graphics = []\n let isBar = false\n this.graphicSelected.types.forEach(item => {\n const graphic = {\n type: '',\n width: 0,\n isTotal: total,\n horizontal: false,\n header: {\n title: this.$t(this.graphicSelected.titleDescription || this.graphicSelected.title)\n },\n series: [],\n labels: [],\n colors: this.chartColorConfig,\n legends: []\n }\n if (item === 'area') {\n graphic.type = response.labels[0].values[0].includes('_') ? 'bar' : item\n graphic.width = 900\n graphic.labels = labelsSeries ? labelsSeries.listLabels : response.labels[0].values\n response.series.forEach(item => {\n graphic.series.push({\n name: item.name,\n data: item.data[0].values\n })\n })\n } else if (item === 'bar') {\n isBar = true\n graphic.type = item\n graphic.horizontal = true\n graphic.width = 900\n graphic.labels = labelsSeries.listLabels\n graphic.series = [{\n data: labelsSeries.listSeries\n }]\n } else if (item === 'donut' && !isBar) {\n graphic.type = item\n graphic.width = 700\n response.series.forEach(item => {\n graphic.labels.push(item.name)\n })\n response.series.forEach(item => {\n graphic.series.push(item.total[0])\n })\n graphic.legends = legends\n } else {\n graphic.type = item\n graphic.width = 700\n graphic.labels = labelsSeries.listLabels\n graphic.series = labelsSeries ? labelsSeries.listSeries : response.series[this.listSelected].data[0].values\n graphic.legends = legends\n }\n this.graphics.push(graphic)\n })\n },\n getSuccess () {\n this.isLoading = false\n this.addToast({\n text: this.$t('analytic.toast.success'),\n type: 'success'\n })\n },\n getError () {\n this.graphics = []\n this.isLoading = false\n this.addToast({\n text: this.$t('analytic.toast.errorFetching'),\n type: 'danger'\n })\n },\n getWarning () {\n this.isLoading = false\n this.addToast({\n text: this.$t('analytic.toast.noInformationSelected'),\n type: 'warning'\n })\n },\n translateGraphics (graphics) {\n const graphicsTranslate = cloneDeep(graphics)\n graphicsTranslate.forEach(element => {\n element.title = this.$t(element.title)\n })\n return graphicsTranslate\n },\n translateFilter (filter) {\n const filterTranslate = cloneDeep(filter)\n filterTranslate.forEach(element => {\n element.name = this.$t(element.name)\n })\n return filterTranslate\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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./analytic.js?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/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--14-0!./analytic.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./analytic.vue?vue&type=template&id=14befaee&lang=html&\"\nimport script from \"./analytic.js?vue&type=script&lang=js&\"\nexport * from \"./analytic.js?vue&type=script&lang=js&\"\nimport style0 from \"./analytic.vue?vue&type=style&index=0&lang=scss&\"\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":""}