{"version":3,"sources":["webpack:///./src/components/UI/Charts/Doughnut.vue","webpack:///src/components/UI/Charts/Doughnut.vue","webpack:///./src/components/UI/Charts/Doughnut.vue?0a32","webpack:///./src/components/UI/Charts/Doughnut.vue?e945","webpack:///./src/components/UI/Charts/Doughnut.vue?dbaa"],"names":["render","_vm","this","_c","_self","ref","staticRenderFns","Chart","register","ArcElement","DoughnutController","CategoryScale","LinearScale","Decimation","Legend","Title","Tooltip","props","chartdata","type","Object","default","options","data","chartBar","watch","deep","handler","val","update","mounted","$refs","beforeDestroy","destroy","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,IAAI,oBAE1FC,EAAkB,G,YCgBtBC,OAAAC,SACAC,OACAC,OACAC,OACAC,OACAC,OACAC,OACAC,OACAC,QAGe,OACfC,MAAA,CACAC,UAAA,CACAC,KAAAC,OACAC,QAAA,MAEAC,QAAA,CACAH,KAAAC,OACAC,QAAA,OAIAE,KAAA,WACA,OACAC,SAAA,OAIAC,MAAA,CACA,WACAC,MAAA,EACAC,QAAA,SAAAC,GACA,KAAAJ,SAAAD,KAAAK,EACA,KAAAJ,SAAAK,YAKAC,QAAA,WACA,KAAAN,SAAA,IAAAjB,OAAA,KAAAwB,MAAA,iBACAZ,KAAA,WACAI,KAAA,KAAAL,UACAI,QAAA,KAAAA,WAIAU,cAAA,WACA,KAAAR,SAAAS,YClE+W,I,wBCQ3WC,EAAY,eACd,EACAlC,EACAM,GACA,EACA,KACA,WACA,MAIa,aAAA4B,E,2CCnBf","file":"js/chunk-784a7767.js?id=9e43067e27de83c6ff73","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('canvas',{ref:\"chartWrapper\"})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <canvas ref=\"chartWrapper\"></canvas>\n  </div>\n</template>\n\n<script>\nimport {\n  Chart,\n  ArcElement,\n  DoughnutController,\n  CategoryScale,\n  LinearScale,\n  Decimation,\n  Legend,\n  Title,\n  Tooltip\n} from 'chart.js'\nChart.register(\n  ArcElement,\n  DoughnutController,\n  CategoryScale,\n  LinearScale,\n  Decimation,\n  Legend,\n  Title,\n  Tooltip\n)\n\nexport default {\n  props: {\n    chartdata: {\n      type: Object,\n      default: null,\n    },\n    options: {\n      type: Object,\n      default: null,\n    },\n  },\n\n  data() {\n    return {\n      chartBar: null,\n    }\n  },\n\n  watch: {\n    'chartdata': {\n      deep: true,\n      handler: function(val) {\n        this.chartBar.data = val\n        this.chartBar.update();\n      }\n    }\n  },\n\n  mounted() {\n    this.chartBar = new Chart(this.$refs['chartWrapper'], {\n      type: 'doughnut',\n      data: this.chartdata,\n      options: this.options\n    })\n  },\n\n  beforeDestroy() {\n    this.chartBar.destroy();\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\ncanvas {\n  width: 100% !important;\n}\n</style>","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!./Doughnut.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!./Doughnut.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Doughnut.vue?vue&type=template&id=c7f9f4c4&scoped=true\"\nimport script from \"./Doughnut.vue?vue&type=script&lang=js\"\nexport * from \"./Doughnut.vue?vue&type=script&lang=js\"\nimport style0 from \"./Doughnut.vue?vue&type=style&index=0&id=c7f9f4c4&prod&lang=scss&scoped=true\"\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  \"c7f9f4c4\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../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!./Doughnut.vue?vue&type=style&index=0&id=c7f9f4c4&prod&lang=scss&scoped=true\""],"sourceRoot":""}