(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("highcharts/highmaps")); else if(typeof define === 'function' && define.amd) define(["react", "highcharts/highmaps"], factory); else if(typeof exports === 'object') exports["ReactHighmaps"] = factory(require("react"), require("highcharts/highmaps")); else root["ReactHighmaps"] = factory(root["React"], root["Highcharts"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_6__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(5); /***/ }, /* 1 */, /* 2 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var React = __webpack_require__(3); var win = typeof global === 'undefined' ? window : global; module.exports = function (chartType, Highcharts) { var displayName = 'Highcharts' + chartType; var result = React.createClass({ displayName: displayName, propTypes: { config: React.PropTypes.object.isRequired, isPureConfig: React.PropTypes.bool, neverReflow: React.PropTypes.bool, callback: React.PropTypes.func, domProps: React.PropTypes.object }, defaultProps: { callback: function callback() {}, domProps: {} }, renderChart: function renderChart(config) { var _this = this; if (!config) { throw new Error('Config must be specified for the ' + displayName + ' component'); } var chartConfig = config.chart; this.chart = new Highcharts[chartType](_extends({}, config, { chart: _extends({}, chartConfig, { renderTo: this.refs.chart }) }), this.props.callback); if (!this.props.neverReflow) { win && win.requestAnimationFrame && requestAnimationFrame(function () { _this.chart && _this.chart.options && _this.chart.reflow(); }); } }, shouldComponentUpdate: function shouldComponentUpdate(nextProps) { if (nextProps.neverReflow || nextProps.isPureConfig && this.props.config === nextProps.config) { return true; } this.renderChart(nextProps.config); return false; }, getChart: function getChart() { if (!this.chart) { throw new Error('getChart() should not be called before the component is mounted'); } return this.chart; }, componentDidMount: function componentDidMount() { this.renderChart(this.props.config); }, componentWillUnmount: function componentWillUnmount() { this.chart.destroy(); }, render: function render() { return React.createElement('div', _extends({ ref: 'chart' }, this.props.domProps)); } }); result.Highcharts = Highcharts; result.withHighcharts = function (Highcharts) { return module.exports(chartType, Highcharts); }; return result; }; /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 3 */ /***/ function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_3__; /***/ }, /* 4 */, /* 5 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; module.exports = __webpack_require__(2)('Map', __webpack_require__(6)); /***/ }, /* 6 */ /***/ function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_6__; /***/ } /******/ ]) }); ;