text: !function(a,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("fusioncharts")):"function"==typeof define&&define.amd?define(["fusioncharts"],e):"object"==typeof exports?exports.VueFusionCharts=e(require("fusioncharts")):a.VueFusionCharts=e(a.FusionCharts)}(this,function(a){return function(a){function e(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return a[s].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t={};return e.m=a,e.c=t,e.i=function(a){return a},e.d=function(a,t,s){e.o(a,t)||Object.defineProperty(a,t,{configurable:!1,enumerable:!0,get:s})},e.n=function(a){var t=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(t,"a",t),t},e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},e.p="",e(e.s=2)}([function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r=t(4),g=function(a){return a&&a.__esModule?a:{default:a}}(r),n=t(3),i=t(1),o=i.optionsMap,d=i.props;e.default=function(a){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return t&&t.forEach&&t.forEach(function(e){(0,n.addDep)(a,g.default,e)}),{name:"fusioncharts",template:"<div></div>",render:function(a){return this.containerID="fc-"+this._uid,a("div",{attrs:{id:this.containerID}})},props:d,methods:{attachListeners:function(){var a=this;this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})},createEvents:function(){var a=this,e={events:{}};return this.$listeners&&"object"===s(this.$listeners)&&Object.keys(this.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e},setLastOptions:function(a){this._oldOptions=Object.assign({},a)},getLastOptions:function(){return this._oldOptions},getOptions:function(){var a={},e=this;for(var t in o)void 0!==e[t]&&null!==e[t]&&(a[o[t]]=e[t]);return Object.assign(Object.assign({},e.options),a)},renderChart:function(){var e=this,t=e.getOptions(),s=e.chartObj;t.renderAt=this.containerID,e.setLastOptions(t),s&&s.dispose&&s.dispose();var r=this.createEvents();t.events=Object.assign({},t.events,r.events);var g=t.dataSource||t.datasource;(0,n.checkIfDataTableExists)(g)?this.prevDataSource=(0,n.cloneDataSource)(g,"diff"):this.prevDataSource=(0,n.cloneDataSource)(g,"clone"),e.chartObj=s=new a(t),s.render()},updateChart:function(){var a=this,e=a.getOptions(),t=a.getLastOptions(),s=a.chartObj;e.width!==t.width||e.height!==t.height?s&&s.resizeTo(e.width,e.height):e.type!==t.type?s.chartType(e.type):(0,n.checkIfDataTableExists)(e.dataSource)||s.setChartData(e.dataSource,e.dataFormat),a.setLastOptions(e)}},watch:{type:function(){this.chartObj.chartType(this.type)},width:function(){this.chartObj.resizeTo(this.width,this.height)},height:function(){this.chartObj.resizeTo(this.width,this.height)},options:{handler:function(){this.updateChart()},deep:!0},dataSource:{handler:function(){(0,n.checkIfDataTableExists)(this.dataSource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},datasource:{handler:function(){(0,n.checkIfDataTableExists)(this.datasource)||this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)},deep:!0},"datasource.data":{handler:function(a,e){if(a!==e){if(this.datasource&&this.datasource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),n=(new t.DataStore).createDataTable(s,r),i=Object.assign({},this.datasource||this.dataSource);return i.data=n,this.chartObj.setChartData(i,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1},"dataSource.data":{handler:function(a,e){if(a!==e){if(this.dataSource&&this.dataSource.series){var t=g.default||window.FusionCharts,s=JSON.parse(JSON.stringify(a._data)),r=JSON.parse(JSON.stringify(a._schema)),n=(new t.DataStore).createDataTable(s,r),i=Object.assign({},this.datasource||this.dataSource);return i.data=n,this.chartObj.setChartData(i,this.dataFormat||this.dataformat),null}this.chartObj.setChartData(this.datasource||this.dataSource,this.dataFormat||this.dataformat)}},deep:!1}},deactivated:function(){this.chartObj&&this.chartObj.dispose()},beforeDestroy:function(){this.chartObj&&this.chartObj.dispose()},mounted:function(){this.renderChart()},ready:function(){this.renderChart()},beforeUpdate:function(){var a=JSON.stringify(this.prevDataSource),e=this.datasource||this.dataSource||this.options.dataSource;a!==JSON.stringify((0,n.cloneDataSource)(e,"diff"))&&(this.prevDataSource=(0,n.cloneDataSource)(e,"diff"),this.chartObj.setChartData(e,this.dataFormat||this.dataformat))}}},a.exports=e.default},function(a,e,t){"use strict";var s={type:"type",id:"id",width:"width",height:"height",dataFormat:"dataFormat",dataSource:"dataSource",events:"events",link:"link",showDataLoadingMessage:"showDataLoadingMessage",showChartLoadingMessage:"showChartLoadingMessage",baseChartMessageFont:"baseChartMessageFont",baseChartMessageFontSize:"baseChartMessageFontSize",baseChartMessageColor:"baseChartMessageColor",dataLoadStartMessage:"dataLoadStartMessage",dataLoadErrorMessage:"dataLoadErrorMessage",dataInvalidMessage:"dataInvalidMessage",dataEmptyMessage:"dataEmptyMessage",typeNotSupportedMessage:"typeNotSupportedMessage",loadMessage:"loadMessage",renderErrorMessage:"renderErrorMessage",containerBackgroundColor:"containerBackgroundColor",containerBackgroundOpacity:"containerBackgroundOpacity",containerClassName:"containerClassName",baseChartMessageImageHAlign:"baseChartMessageImageHAlign",baseChartMessageImageVAlign:"baseChartMessageImageVAlign",baseChartMessageImageAlpha:"baseChartMessageImageAlpha",baseChartMessageImageScale:"baseChartMessageImageScale",typeNotSupportedMessageImageHAlign:"typeNotSupportedMessageImageHAlign",typeNotSupportedMessageImageVAlign:"typeNotSupportedMessageImageVAlign",typeNotSupportedMessageImageAlpha:"typeNotSupportedMessageImageAlpha",typeNotSupportedMessageImageScale:"typeNotSupportedMessageImageScale",dataLoadErrorMessageImageHAlign:"dataLoadErrorMessageImageHAlign",dataLoadErrorMessageImageVAlign:"dataLoadErrorMessageImageVAlign",dataLoadErrorMessageImageAlpha:"dataLoadErrorMessageImageAlpha",dataLoadErrorMessageImageScale:"dataLoadErrorMessageImageScale",dataLoadStartMessageImageHAlign:"dataLoadStartMessageImageHAlign",dataLoadStartMessageImageVAlign:"dataLoadStartMessageImageVAlign",dataLoadStartMessageImageAlpha:"dataLoadStartMessageImageAlpha",dataLoadStartMessageImageScale:"dataLoadStartMessageImageScale",dataInvalidMessageImageHAlign:"dataInvalidMessageImageHAlign",dataInvalidMessageImageVAlign:"dataInvalidMessageImageVAlign",dataInvalidMessageImageAlpha:"dataInvalidMessageImageAlpha",dataInvalidMessageImageScale:"dataInvalidMessageImageScale",dataEmptyMessageImageHAlign:"dataEmptyMessageImageHAlign",dataEmptyMessageImageVAlign:"dataEmptyMessageImageVAlign",dataEmptyMessageImageAlpha:"dataEmptyMessageImageAlpha",dataEmptyMessageImageScale:"dataEmptyMessageImageScale",renderErrorMessageImageHAlign:"renderErrorMessageImageHAlign",renderErrorMessageImageVAlign:"renderErrorMessageImageVAlign",renderErrorMessageImageAlpha:"renderErrorMessageImageAlpha",renderErrorMessageImageScale:"renderErrorMessageImageScale",loadMessageImageHAlign:"loadMessageImageHAlign",loadMessageImageVAlign:"loadMessageImageVAlign",loadMessageImageAlpha:"loadMessageImageAlpha",loadMessageImageScale:"loadMessageImageScale",dataformat:"dataFormat",datasource:"dataSource",showdataloadingmessage:"showDataLoadingMessage",showchartloadingmessage:"showChartLoadingMessage",basechartmessagefont:"baseChartMessageFont",basechartmessagefontsize:"baseChartMessageFontSize",basechartmessagecolor:"baseChartMessageColor",dataloadstartmessage:"dataLoadStartMessage",dataloaderrormessage:"dataLoadErrorMessage",datainvalidmessage:"dataInvalidMessage",dataemptymessage:"dataEmptyMessage",typenotsupportedmessage:"typeNotSupportedMessage",loadmessage:"loadMessage",rendererrormessage:"renderErrorMessage",containerbackgroundcolor:"containerBackgroundColor",containerbackgroundopacity:"containerBackgroundOpacity",containerclassname:"containerClassName",basechartmessageimagehalign:"baseChartMessageImageHAlign",basechartmessageimagevalign:"baseChartMessageImageVAlign",basechartmessageimagealpha:"baseChartMessageImageAlpha",basechartmessageimagescale:"baseChartMessageImageScale",typenotsupportedmessageimagehalign:"typeNotSupportedMessageImageHAlign",typenotsupportedmessageimagevalign:"typeNotSupportedMessageImageVAlign",typenotsupportedmessageimagealpha:"typeNotSupportedMessageImageAlpha",typenotsupportedmessageimagescale:"typeNotSupportedMessageImageScale",dataloaderrormessageimagehalign:"dataLoadErrorMessageImageHAlign",dataloaderrormessageimagevalign:"dataLoadErrorMessageImageVAlign",dataloaderrormessageimagealpha:"dataLoadErrorMessageImageAlpha",dataloaderrormessageimagescale:"dataLoadErrorMessageImageScale",dataloadstartmessageimagehalign:"dataLoadStartMessageImageHAlign",dataloadstartmessageimagevalign:"dataLoadStartMessageImageVAlign",dataloadstartmessageimagealpha:"dataLoadStartMessageImageAlpha",dataloadstartmessageimagescale:"dataLoadStartMessageImageScale",datainvalidmessageimagehalign:"dataInvalidMessageImageHAlign",datainvalidmessageimagevalign:"dataInvalidMessageImageVAlign",datainvalidmessageimagealpha:"dataInvalidMessageImageAlpha",datainvalidmessageimagescale:"dataInvalidMessageImageScale",dataemptymessageimagehalign:"dataEmptyMessageImageHAlign",dataemptymessageimagevalign:"dataEmptyMessageImageVAlign",dataemptymessageimagealpha:"dataEmptyMessageImageAlpha",dataemptymessageimagescale:"dataEmptyMessageImageScale",rendererrormessageimagehalign:"renderErrorMessageImageHAlign",rendererrormessageimagevalign:"renderErrorMessageImageVAlign",rendererrormessageimagealpha:"renderErrorMessageImageAlpha",rendererrormessageimagescale:"renderErrorMessageImageScale",loadmessageimagehalign:"loadMessageImageHAlign",loadmessageimagevalign:"loadMessageImageVAlign",loadmessageimagealpha:"loadMessageImageAlpha",loadmessageimagescale:"loadMessageImageScale"},r={options:Object,type:String,id:String,width:"",height:"",dataFormat:String,dataSource:"",events:Object,link:Object,showDataLoadingMessage:Boolean,showChartLoadingMessage:Boolean,baseChartMessageFont:String,baseChartMessageFontSize:String,baseChartMessageColor:String,dataLoadStartMessage:String,dataLoadErrorMessage:String,dataInvalidMessage:String,dataEmptyMessage:String,typeNotSupportedMessage:String,loadMessage:String,renderErrorMessage:String,containerBackgroundColor:String,containerBackgroundOpacity:Number,containerClassName:String,baseChartMessageImageHAlign:String,baseChartMessageImageVAlign:String,baseChartMessageImageAlpha:Number,baseChartMessageImageScale:Number,typeNotSupportedMessageImageHAlign:String,typeNotSupportedMessageImageVAlign:String,typeNotSupportedMessageImageAlpha:Number,typeNotSupportedMessageImageScale:Number,dataLoadErrorMessageImageHAlign:String,dataLoadErrorMessageImageVAlign:String,dataLoadErrorMessageImageAlpha:Number,dataLoadErrorMessageImageScale:Number,dataLoadStartMessageImageHAlign:String,dataLoadStartMessageImageVAlign:String,dataLoadStartMessageImageAlpha:Number,dataLoadStartMessageImageScale:Number,dataInvalidMessageImageHAlign:String,dataInvalidMessageImageVAlign:String,dataInvalidMessageImageAlpha:Number,dataInvalidMessageImageScale:Number,dataEmptyMessageImageHAlign:String,dataEmptyMessageImageVAlign:String,dataEmptyMessageImageAlpha:Number,dataEmptyMessageImageScale:Number,renderErrorMessageImageHAlign:String,renderErrorMessageImageVAlign:String,renderErrorMessageImageAlpha:Number,renderErrorMessageImageScale:Number,loadMessageImageHAlign:String,loadMessageImageVAlign:String,loadMessageImageAlpha:Number,loadMessageImageScale:Number,dataformat:String,datasource:"",showdataloadingmessage:Boolean,showchartloadingmessage:Boolean,basechartmessagefont:String,basechartmessagefontsize:String,basechartmessagecolor:String,dataloadstartmessage:String,dataloaderrormessage:String,datainvalidmessage:String,dataemptymessage:String,typenotsupportedmessage:String,loadmessage:String,rendererrormessage:String,containerbackgroundcolor:String,containerbackgroundopacity:Number,containerclassname:String,basechartmessageimagehalign:String,basechartmessageimagevalign:String,basechartmessageimagealpha:Number,basechartmessageimagescale:Number,typenotsupportedmessageimagehalign:String,typenotsupportedmessageimagevalign:String,typenotsupportedmessageimagealpha:Number,typenotsupportedmessageimagescale:Number,dataloaderrormessageimagehalign:String,dataloaderrormessageimagevalign:String,dataloaderrormessageimagealpha:Number,dataloaderrormessageimagescale:Number,dataloadstartmessageimagehalign:String,dataloadstartmessageimagevalign:String,dataloadstartmessageimagealpha:Number,dataloadstartmessageimagescale:Number,datainvalidmessageimagehalign:String,datainvalidmessageimagevalign:String,datainvalidmessageimagealpha:Number,datainvalidmessageimagescale:Number,dataemptymessageimagehalign:String,dataemptymessageimagevalign:String,dataemptymessageimagealpha:Number,dataemptymessageimagescale:Number,rendererrormessageimagehalign:String,rendererrormessageimagevalign:String,rendererrormessageimagealpha:Number,rendererrormessageimagescale:Number,loadmessageimagehalign:String,loadmessageimagevalign:String,loadmessageimagealpha:Number,loadmessageimagescale:Number};a.exports={optionsMap:s,props:r}},function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=t(0),r=function(a){return a&&a.__esModule?a:{default:a}}(s),g=function(a,e){for(var t=arguments.length,s=Array(t>2?t-2:0),g=2;g<t;g++)s[g-2]=arguments[g];var n=r.default.apply(void 0,[e].concat(s));a.component(n.name,n)};e.default=g,a.exports=e.default},function(a,e,t){"use strict";function s(a){return!!(a&&a.data&&a.data._dataStore)}function r(a){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"clone",t=void 0===a?"undefined":c(a);if("string"===t||"number"===t||"function"===t||"boolean"===t)return a;if(null===a||void 0===a)return a;if(Array.isArray(a)){for(var s=[],g=0;g<a.length;g++)s.push(r(a[g]));return s}if("object"===(void 0===a?"undefined":c(a))){var n={};for(var i in a)"data"!==i?n[i]=r(a[i]):a[i]&&a[i]._dataStore&&"clone"===e?n[i]=a[i]:a[i]&&a[i]._dataStore&&"diff"===e?n[i]="-":n[i]=r(a[i]);return n}}function g(a){a.$listeners&&"object"===c(a.$listeners)&&Object.keys(a.$listeners).forEach(function(e){a.chartObj.addEventListener(e,function(t){a.$emit(e,t)})})}function n(a){var e={events:{}};return a.$listeners&&"object"===c(a.$listeners)&&Object.keys(a.$listeners).forEach(function(t){e.events[t]=function(e){a.$emit(t,e)}}),e}function i(a,e){e._oldOptions=Object.assign({},a)}function o(a){return a._oldOptions}function d(a,e){var t={},s=a;for(var r in e)void 0!==s[r]&&null!==s[r]&&(t[e[r]]=s[r]);return Object.assign(Object.assign({},s.options),t)}function m(a,e){var t=a,s=t.getOptions(),r=t.chartObj;s.renderAt=this.containerID,t.setLastOptions(s),r&&r.dispose&&r.dispose();var g=this.createEvents();s.events=Object.assign({},s.events,g.events),t.chartObj=r=new e(s),r.render()}function l(a){var e=a,t=e.getOptions(),r=e.getLastOptions(),g=e.chartObj;t.width!==r.width||t.height!==r.height?g&&g.resizeTo(t.width,t.height):t.type!==r.type?g.chartType(t.type):s(t.dataSource)||g.setChartData(t.dataSource,t.dataFormat),e.setLastOptions(t)}Object.defineProperty(e,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};e.checkIfDataTableExists=s,e.cloneDataSource=r,e.attachListeners=g,e.createEvents=n,e.setLastOptions=i,e.getLastOptions=o,e.getOptions=d,e.renderChart=m,e.updateChart=l;e.addDep=function(a,e,t){a?t.getName&&t.getType||t.name&&t.type?a.addDep(t):t(a):t(e)}},function(e,t){e.exports=a}])});