{"version":3,"sources":["webpack:///./src/mixins/GlancesMixin.js","webpack:///./src/components/Widgets/GlLoadHistory.vue?9ac4","webpack:///src/components/Widgets/GlLoadHistory.vue","webpack:///./src/components/Widgets/GlLoadHistory.vue?cd13","webpack:///./src/components/Widgets/GlLoadHistory.vue","webpack:///./src/components/Widgets/GlLoadHistory.vue?662f"],"names":["computed","hostname","this","options","error","apiVersion","credentials","username","password","stringifiedUser","Authorization","window","btoa","methods","fetchData","makeRequest","endpoint","then","processData","makeGlancesUrl","apiPath","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","chartId","staticRenderFns","mixins","components","data","limit","loadData","labels","min1","min5","min15","name","type","values","datasets","makeTitle","system","generateChart","timeChartData","chartTitle","title","height","colors","truncateLegends","lineOptions","regionFill","hideDots","axisOptions","xIsSeries","xAxisMode","tooltipOptions","formatTooltipY","created","component"],"mappings":"2LACe,QACbA,SAAU,CAERC,SAFQ,WAIN,OADKC,KAAKC,QAAQF,UAAUC,KAAKE,MAAM,6CAChCF,KAAKC,QAAQF,UAGtBI,WAPQ,WAQN,OAAOH,KAAKC,QAAQE,YAAc,GAGpCC,YAXQ,WAYN,GAAIJ,KAAKC,QAAQI,UAAYL,KAAKC,QAAQK,SAAU,CAClD,IAAMC,EAAkB,GAAH,OAAMP,KAAKC,QAAQI,SAAnB,YAA+BL,KAAKC,QAAQK,UACjE,MAAO,CAAEE,cAAe,SAAF,OAAWC,OAAOC,KAAKH,KAE/C,OAAO,OAGXI,QAAS,CAGPC,UAHO,WAILZ,KAAKa,YAAYb,KAAKc,SAAUd,KAAKI,aAAaW,KAAKf,KAAKgB,cAG9DC,eAPO,SAOQC,GACb,MAAO,GAAP,OAAUlB,KAAKD,SAAf,gBAA+BC,KAAKG,WAApC,YAAkDe,O,yCC7BxD,IAAIC,EAAS,WAAa,IAAIC,EAAIpB,KAASqB,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,EAAG,MAAM,CAACE,YAAY,mBAAmBC,MAAM,CAAC,GAAKN,EAAIO,cAC5MC,EAAkB,G,0FCWP,GACfC,8BACAC,cACAC,KAHA,WAIA,UAEAjC,UACAkC,MADA,WAEA,gCAEAlB,SAJA,WAKA,iEAGAH,SACAK,YADA,SACAiB,GACA,SACA,KACA,KACA,KACAA,4BACAC,6BACAC,gBAEAF,4BACAG,gBAEAH,6BACAI,gBAGA,6BACA,GACA,CAAAC,gBAAAC,WAAAC,UACA,CAAAF,iBAAAC,WAAAC,UACA,CAAAF,kBAAAC,WAAAC,WAEA,oBAAAN,SAAAO,YAAA,IAEAC,UAzBA,SAyBAC,GACA,kFAEAC,cA5BA,SA4BAC,EAAAC,GACA,gDACAC,QACAhB,OACAQ,kBACAS,wBACAC,wBACAC,mBACAC,aACAC,aACAC,YAEAC,aACAC,aACAC,kBAEAC,gBACAC,2BAAA,sCAOAC,QAlEA,WAmEA,iCC/EsW,I,wBCQlWC,EAAY,eACd,EACAzC,EACAS,GACA,EACA,KACA,WACA,MAIa,aAAAgC,E,2CCnBf","file":"js/chunk-3190e50d.80a3eea1.js","sourcesContent":["/** 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 || 3;\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"glances-load-history-wrapper\"},[_c('div',{staticClass:\"gl-history-chart\",attrs:{\"id\":_vm.chartId}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./GlLoadHistory.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!./GlLoadHistory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GlLoadHistory.vue?vue&type=template&id=0856ff36&scoped=true&\"\nimport script from \"./GlLoadHistory.vue?vue&type=script&lang=js&\"\nexport * from \"./GlLoadHistory.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GlLoadHistory.vue?vue&type=style&index=0&id=0856ff36&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 \"0856ff36\",\n null\n \n)\n\nexport default component.exports","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!./GlLoadHistory.vue?vue&type=style&index=0&id=0856ff36&scoped=true&lang=scss&\""],"sourceRoot":""}