{"version":3,"sources":["webpack:///./src/components/Widgets/GlNetworkTraffic.vue","webpack:///src/components/Widgets/GlNetworkTraffic.vue","webpack:///./src/components/Widgets/GlNetworkTraffic.vue?ad70","webpack:///./src/components/Widgets/GlNetworkTraffic.vue?acd0","webpack:///./src/mixins/GlancesMixin.js","webpack:///./src/components/Widgets/GlNetworkTraffic.vue?b98e"],"names":["render","_vm","this","_c","_self","staticClass","attrs","chartId","staticRenderFns","mixins","WidgetMixin","GlancesMixin","ChartingMixin","components","data","computed","limit","options","endpoint","makeGlancesUrl","concat","methods","processData","trafficData","_this","preliminary","upload","download","Object","keys","forEach","keyName","upOrDown","includes","dataPoint","dataTime","getRoundedTime","timeLabels","uploadData","downloadData","startDate","date","push","timestampToTime","datasets","name","type","values","chartTitle","makeTitle","generateChart","labels","roundTo","Date","Math","round","getTime","getTimeAgo","replace","timeChartData","Chart","title","height","chartHeight","colors","truncateLegends","lineOptions","regionFill","hideDots","axisOptions","xIsSeries","xAxisMode","tooltipOptions","formatTooltipY","d","convertBytes","created","overrideUpdateInterval","component","hostname","error","apiVersion","credentials","username","password","stringifiedUser","Authorization","window","btoa","fetchData","makeRequest","then","apiPath"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,+BAA+B,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmBC,MAAM,CAAC,GAAKL,EAAIM,cAE9KC,EAAkB,G,kICUP,GACfC,OAAA,CAAAC,OAAAC,OAAAC,QACAC,WAAA,GACAC,KAAA,WACA,UAEAC,SAAA,CACAC,MAAA,WACA,YAAAC,QAAAD,OAAA,KAEAE,SAAA,WACA,YAAAC,eAAA,mBAAAC,OAAA,KAAAJ,UAGAK,QAAA,CACAC,YAAA,SAAAC,GAAA,IAAAC,EAAA,KACAC,EAAA,CACAC,OAAA,GACAC,SAAA,IAGAC,OAAAC,KAAAN,GAAAO,SAAA,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AAA,EACAC,UAAA,QAEAC,eAAA,CACAC,eAAA,SAAAC,GAAA,OAAAC,eAAAD,SAMAE,QAAA,WACA,KAAAC,uBAAA,KCjGwW,I,wBCQpWC,EAAY,eACd,EACA9E,EACAQ,GACA,EACA,KACA,WACA,MAIa,aAAAsE,E,6FClBA,QACb/D,SAAU,CAERgE,SAAQ,WAEN,OADK7E,KAAKe,QAAQ8D,UAAU7E,KAAK8E,MAAM,6CAChC9E,KAAKe,QAAQ8D,UAGtBE,WAAU,WACR,OAAO/E,KAAKe,QAAQgE,YAAc,GAGpCC,YAAW,WACT,GAAIhF,KAAKe,QAAQkE,UAAYjF,KAAKe,QAAQmE,SAAU,CAClD,IAAMC,EAAkB,GAAHjE,OAAMlB,KAAKe,QAAQkE,SAAQ,KAAA/D,OAAIlB,KAAKe,QAAQmE,UACjE,MAAO,CAAEE,cAAe,SAAFlE,OAAWmE,OAAOC,KAAKH,KAE/C,OAAO,OAGXhE,QAAS,CAGPoE,UAAS,WACPvF,KAAKwF,YAAYxF,KAAKgB,SAAUhB,KAAKgF,aAAaS,KAAKzF,KAAKoB,cAG9DH,eAAc,SAACyE,GACb,MAAO,GAAPxE,OAAUlB,KAAK6E,SAAQ,SAAA3D,OAAQlB,KAAK+E,WAAU,KAAA7D,OAAIwE,O,yDC7BxD","file":"js/chunk-ff6de53a.6191c558.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"glances-cpu-history-wrapper\"},[_c('div',{staticClass:\"gl-history-chart\",attrs:{\"id\":_vm.chartId}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-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!./GlNetworkTraffic.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-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!./GlNetworkTraffic.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./GlNetworkTraffic.vue?vue&type=template&id=0634fb5d&scoped=true\"\nimport script from \"./GlNetworkTraffic.vue?vue&type=script&lang=js\"\nexport * from \"./GlNetworkTraffic.vue?vue&type=script&lang=js\"\nimport style0 from \"./GlNetworkTraffic.vue?vue&type=style&index=0&id=0634fb5d&prod&scoped=true&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 \"0634fb5d\",\n null\n \n)\n\nexport default component.exports","/** Reusable mixin for all Glances widgets */\nexport default {\n computed: {\n /* Required, hostname (e.g. IP + port) for Glances instance */\n hostname() {\n if (!this.options.hostname) this.error('You must specify a \\'hostname\\' for Glances');\n return this.options.hostname;\n },\n /* Optionally specify the API version, defaults to V 3 */\n apiVersion() {\n return this.options.apiVersion || 4;\n },\n /* Optionally specify basic auth credentials for Glances instance */\n credentials() {\n if (this.options.username && this.options.password) {\n const stringifiedUser = `${this.options.username}:${this.options.password}`;\n return { Authorization: `Basic ${window.btoa(stringifiedUser)}` };\n }\n return null;\n },\n },\n methods: {\n /* Make the request to Glances API, and calls handler function with results\n * Requires endpoint attribute and processData method to be implemented by child */\n fetchData() {\n this.makeRequest(this.endpoint, this.credentials).then(this.processData);\n },\n /* Returns URL to Glances API endpoint */\n makeGlancesUrl(apiPath) {\n return `${this.hostname}/api/${this.apiVersion}/${apiPath}`;\n },\n },\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GlNetworkTraffic.vue?vue&type=style&index=0&id=0634fb5d&prod&scoped=true&lang=scss\""],"sourceRoot":""}