/*!
 * Copyright © 2018 Splunk Inc.
 * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
 * in part without a valid written license from Splunk Inc. is PROHIBITED.
 */
module.exports =
/******/ (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] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = 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;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 48);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

module.exports = require("prop-types");

/***/ }),

/***/ 1:
/***/ (function(module, exports) {

module.exports = require("react");

/***/ }),

/***/ 10:
/***/ (function(module, exports) {

module.exports = require("@splunk/visualization-color-palettes");

/***/ }),

/***/ 11:
/***/ (function(module, exports) {

module.exports = require("@splunk/charting-bundle");

/***/ }),

/***/ 12:
/***/ (function(module, exports) {

module.exports = require("@splunk/visualizations-shared/propUtils");

/***/ }),

/***/ 13:
/***/ (function(module, exports) {

module.exports = require("@splunk/react-visualizations/common/Charting");

/***/ }),

/***/ 14:
/***/ (function(module, exports) {

module.exports = require("lodash/isArray");

/***/ }),

/***/ 15:
/***/ (function(module, exports) {

module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");

/***/ }),

/***/ 2:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return baseChartPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return baseChartDefaultProps; });
/* unused harmony export zoomableChartPropTypes */
/* unused harmony export zoomableChartDefaultProps */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return xyChartPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return xyChartDefaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return multiYChartProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return multiYChartDefaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dataChartProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return dataChartDefaultProps; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _splunk_visualization_color_palettes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
/* harmony import */ var _splunk_visualization_color_palettes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualization_color_palettes__WEBPACK_IMPORTED_MODULE_1__);



var noop = function noop() {};

var baseChartPropTypes = {
  width: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  height: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,
  backgroundColor: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  foregroundColor: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  fontColor: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  seriesColors: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]),
  fieldColors: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object]),
  legendLabels: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]),
  legendPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['right', 'left', 'top', 'bottom', 'none']),
  legendLabelOverflowMode: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisNone']),
  masterLegend: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  onPointClick: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  onLegendClick: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  resultTruncationLimit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  colorPalette: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array
};
var baseChartDefaultProps = {
  width: '100%',
  height: 250,
  style: {},
  legendPlacement: 'right',
  legendLabelOverflowMode: 'ellipsisMiddle',
  masterLegend: null,
  onPointClick: noop,
  onLegendClick: noop,
  resultTruncationLimit: 50000,
  colorPalette: _splunk_visualization_color_palettes__WEBPACK_IMPORTED_MODULE_1__["CATEGORICAL"]
};
var zoomableChartPropTypes = {
  onRangeSelect: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func
};
var zoomableChartDefaultProps = {
  onRangeSelect: noop
};
var xyChartPropTypes = {
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number])),
  xFieldName: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]))])),
  yFieldName: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]),

  /* axes */
  xAxisVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['show', 'hide']),
  yAxisVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['show', 'hide']),
  yAxisExtendsAxisRange: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  xAxisMajorLabelVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  xAxisMajorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  xAxisMaxLabelParts: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  yAxisMajorLabelVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  yAxisMajorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  yAxisMinorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  xAxisMajorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  yAxisMajorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  yAxisMajorUnit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]),
  yAxisMinorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  yAxisAbbreviation: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['none', 'auto']),
  yAxisIncludeZero: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  xAxisMax: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  yAxisMax: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  yAxisMin: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  yAxisScale: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['linear', 'log']),
  xAxisTitleText: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  yAxisTitleText: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  xAxisTitleVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['visible', 'collapsed']),
  yAxisTitleVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['visible', 'collapsed']),
  showMajorYGridLines: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  showMinorYGridLines: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool
};
var xyChartDefaultProps = {
  xAxisVisibility: 'hide',
  yAxisVisibility: 'hide',
  yAxisExtendsAxisRange: true,
  xAxisMajorLabelVisibility: 'auto',
  yAxisMajorLabelVisibility: 'auto',
  xAxisMajorTickSize: 6,
  yAxisMajorTickSize: 6,
  xAxisMaxLabelParts: 3,
  yAxisMinorTickSize: 6,
  xAxisMajorTickVisibility: 'auto',
  yAxisMajorTickVisibility: 'auto',
  yAxisMajorUnit: 'auto',
  yAxisMinorTickVisibility: 'auto',
  yAxisAbbreviation: 'none',
  yAxisIncludeZero: false,
  xAxisMax: 'auto',
  yAxisMax: 'auto',
  yAxisMin: 'auto',
  yAxisScale: 'linear',
  xAxisTitleVisibility: 'visible',
  yAxisTitleVisibility: 'visible',
  showMajorYGridLines: true,
  showMinorYGridLines: false
};
var multiYChartProps = {
  y2: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]))])),
  y2FieldName: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]),
  y2AxisMajorLabelVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  y2AxisMajorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  y2AxisMinorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  y2AxisMajorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  y2AxisMajorUnit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string]),
  y2AxisMinorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['auto', 'show', 'hide']),
  y2AxisAbbreviation: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['none', 'auto']),
  y2AxisIncludeZero: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  roundY2AxisLabelsToInteger: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  y2AxisMax: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  y2AxisMin: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]),
  y2AxisScale: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['linear', 'log']),
  y2AxisTitleText: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  y2AxisTitleVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['visible', 'collapsed']),
  showMajorY2GridLines: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  showMinorY2GridLines: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  overlayFields: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  enableY2Axis: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  y2Fields: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  y2AxisVisibility: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['show', 'hide'])
};
var multiYChartDefaultProps = {
  y2AxisMajorLabelVisibility: 'auto',
  y2AxisMajorTickSize: 6,
  y2AxisMinorTickSize: 6,
  y2AxisMajorTickVisibility: 'auto',
  y2AxisMajorUnit: 'auto',
  y2AxisMinorTickVisibility: 'auto',
  y2AxisAbbreviation: 'none',
  roundY2AxisLabelsToInteger: false,
  y2AxisIncludeZero: false,
  y2AxisMax: 'auto',
  y2AxisMin: 'auto',
  y2AxisScale: 'linear',
  y2AxisTitleVisibility: 'visible',
  showMajorY2GridLines: true,
  showMinorY2GridLines: false,
  y2AxisVisibility: 'hide',
  enableY2Axis: false
};
var dataChartProps = {
  fieldListMode: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOf(['show_hide', 'hide_show']),
  fieldShowList: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)]),
  fieldHideList: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string)])
};
var dataChartDefaultProps = {
  fieldListMode: 'hide_show'
};

/***/ }),

/***/ 3:
/***/ (function(module, exports) {

module.exports = require("@splunk/visualizations-shared/SanitizeProps");

/***/ }),

/***/ 48:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
/* harmony import */ var _splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14);
/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15);
/* harmony import */ var _splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12);
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3);
/* harmony import */ var _splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _common_props__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2);


function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);

  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    if (enumerableOnly) symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    });
    keys.push.apply(keys, symbols);
  }

  return keys;
}

function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};

    if (i % 2) {
      ownKeys(Object(source), true).forEach(function (key) {
        _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]);
      });
    } else if (Object.getOwnPropertyDescriptors) {
      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
      ownKeys(Object(source)).forEach(function (key) {
        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
      });
    }
  }

  return target;
}
/* eslint-disable react/no-unused-prop-types */













var Bubble = function Bubble(props) {
  var width = props.width,
      height = props.height,
      style = props.style,
      themeKey = props.themeKey,
      x = props.x,
      xFieldName = props.xFieldName,
      y = props.y,
      yFieldName = props.yFieldName,
      category = props.category,
      categoryFieldName = props.categoryFieldName,
      size = props.size,
      sizeFieldName = props.sizeFieldName,
      onPointClick = props.onPointClick,
      onLegendClick = props.onLegendClick,
      colorPalette = props.colorPalette;

  var chartOptions = _objectSpread({
    chart: 'bubble'
  }, Object(_splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_7__["getSimpleXMLOptionsForProps"])(lodash_omit__WEBPACK_IMPORTED_MODULE_5___default()(props, ['width', 'height', 'style', 'x', 'y', 'size', 'category', 'xFieldName', 'yFieldName', 'sizeFieldName', 'categoryFieldName', 'onPointClick', 'onLegendClick', 'colorPalette']))); // splunk charting expects certain options like 'seriesColors', 'fieldColors' etc to be a string


  var convertedChartOptions = Object(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_8__["convertPropsToString"])({
    vizProps: chartOptions,
    propNames: ['seriesColors', 'fieldColors']
  }); // copy convertedChartOptions into chartOptions

  Object.assign(chartOptions, convertedChartOptions);
  var primaryData = {};

  if (category && lodash_isArray__WEBPACK_IMPORTED_MODULE_6___default()(category) && categoryFieldName) {
    primaryData.fields = [{
      name: categoryFieldName
    }, {
      name: xFieldName
    }, {
      name: yFieldName
    }, {
      name: sizeFieldName
    }];
    primaryData.columns = [category, x, y, size];
  } else {
    primaryData.fields = [{
      name: xFieldName
    }, {
      name: yFieldName
    }, {
      name: sizeFieldName
    }];
    primaryData.columns = [x, y, size];
  }

  var chartData = _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_4___default.a.extractChartReadyData(primaryData);

  var onClick = function onClick(_ref) {
    var type = _ref.type,
        originalEvent = _ref.originalEvent,
        payload = _ref.payload;

    if (type === 'point.click') {
      onPointClick({
        type: type,
        originalEvent: originalEvent,
        payload: payload
      });
    }

    if (type === 'legend.click') {
      onLegendClick({
        type: type,
        originalEvent: originalEvent,
        payload: payload
      });
    }
  };

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_3___default.a, {
    width: width,
    height: height,
    style: style,
    themeKey: themeKey,
    options: chartOptions,
    chartData: chartData,
    onClick: onClick,
    colorPalette: colorPalette
  });
};

Bubble.propTypes = _objectSpread(_objectSpread(_objectSpread({
  themeKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
}, _common_props__WEBPACK_IMPORTED_MODULE_10__[/* baseChartPropTypes */ "b"]), _common_props__WEBPACK_IMPORTED_MODULE_10__[/* xyChartPropTypes */ "h"]), {}, {
  // bubble specific props
  xAxisExtendsAxisRange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  xAxisMajorLabelRotation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([-90, -45, 0, 90, 45]),
  xAxisMajorUnit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string]),
  xAxisAbbreviation: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['none', 'auto']),
  roundXAxisLabelsToInteger: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  xAxisMinorTickSize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  xAxisMinorTickVisibility: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['auto', 'show', 'hide']),
  xAxisIncludeZero: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  xAxisMin: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]),
  xAxisScale: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['linear', 'log']),
  bubbleMaxSize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  bubbleMinSize: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  bubbleSizeBy: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['area', 'diameter']),
  showMinorXGridLines: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
});
Bubble.defaultProps = _objectSpread(_objectSpread(_objectSpread({
  themeKey: 'prismaDark'
}, _common_props__WEBPACK_IMPORTED_MODULE_10__[/* baseChartDefaultProps */ "a"]), _common_props__WEBPACK_IMPORTED_MODULE_10__[/* xyChartDefaultProps */ "g"]), {}, {
  xAxisExtendsAxisRange: true,
  xAxisMajorLabelRotation: 0,
  xAxisMajorUnit: 'auto',
  xAxisAbbreviation: 'none',
  roundXAxisLabelsToInteger: false,
  xAxisMinorTickSize: 6,
  xAxisMinorTickVisibility: 'auto',
  xAxisIncludeZero: false,
  xAxisMin: 'auto',
  xAxisScale: 'linear',
  bubbleMaxSize: 50,
  bubbleMinSize: 10,
  bubbleSizeBy: 'area',
  showMinorXGridLines: false
});
/* harmony default export */ __webpack_exports__["default"] = (Object(_splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_9__["withSanitizedProps"])(Bubble));

/***/ }),

/***/ 6:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/defineProperty");

/***/ }),

/***/ 8:
/***/ (function(module, exports) {

module.exports = require("lodash/omit");

/***/ })

/******/ });
//# sourceMappingURL=Bubble.js.map