{"version":3,"sources":["webpack:///./src/apps/dashboard/BaoWidgetsBaseComponents/BarChart.js"],"names":["reactiveProp","extends","mixins","props","chartOptions","type","Object","options","this","chartData","rerenderChart","methods","val","renderChart","e","console","log","watch"],"mappings":"0GAAA,uBAEA,MAAM,aAAEA,GAAiB,OAEV,cACbC,QAAS,OACTC,OAAQ,CAACF,GACTG,MAAO,CACLC,aAAc,CACZC,KAAMC,OACN,UACE,MAAO,KAGXC,QAAS,CACPF,KAAMC,OACN,UACE,MAAO,MAIb,UACME,KAAKC,WACPD,KAAKE,cAAcF,KAAKC,YAG5BE,QAAS,CACP,cAAeC,GACb,IACE,MAAML,EAAUC,KAAKJ,aAAeI,KAAKJ,aAAeI,KAAKD,QAC7DC,KAAKK,YAAYD,EAAKL,GACtB,MAAOO,GACPC,QAAQC,IAAIF,MAIlBG,MAAO,CACL,UAAWL,GACTJ,KAAKE,cAAcE","file":"js/BarChart.c5965bc9.js","sourcesContent":["import { Bar, mixins } from \"vue-chartjs\"\n\nconst { reactiveProp } = mixins\n\nexport default {\n extends: Bar,\n mixins: [reactiveProp],\n props: {\n chartOptions: {\n type: Object,\n default () {\n return {}\n }\n },\n options: {\n type: Object,\n default () {\n return {}\n }\n }\n },\n mounted () {\n if (this.chartData) {\n this.rerenderChart(this.chartData)\n }\n },\n methods: {\n rerenderChart (val) {\n try {\n const options = this.chartOptions ? this.chartOptions : this.options\n this.renderChart(val, options)\n } catch (e) {\n console.log(e)\n }\n }\n },\n watch: {\n chartData (val) {\n this.rerenderChart(val)\n }\n }\n}\n"],"sourceRoot":""}