/*!
 * 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 = 49);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {

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

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

module.exports = require("react");

/***/ }),
/* 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");

/***/ }),
/* 4 */
/***/ (function(module, exports) {

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

/***/ }),
/* 5 */
/***/ (function(module, exports) {

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

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

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

/***/ }),
/* 7 */,
/* 8 */
/***/ (function(module, exports) {

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

/***/ }),
/* 9 */
/***/ (function(module, exports) {

module.exports = require("@splunk/react-visualizations/utils/seriesUtils");

/***/ }),
/* 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");

/***/ }),
/* 16 */,
/* 17 */,
/* 18 */
/***/ (function(module, exports) {

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

/***/ }),
/* 19 */,
/* 20 */,
/* 21 */,
/* 22 */,
/* 23 */,
/* 24 */,
/* 25 */,
/* 26 */,
/* 27 */,
/* 28 */,
/* 29 */,
/* 30 */,
/* 31 */,
/* 32 */,
/* 33 */,
/* 34 */,
/* 35 */,
/* 36 */,
/* 37 */,
/* 38 */,
/* 39 */,
/* 40 */,
/* 41 */,
/* 42 */,
/* 43 */,
/* 44 */,
/* 45 */,
/* 46 */,
/* 47 */,
/* 48 */,
/* 49 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13);
/* harmony import */ var _splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9);
/* harmony import */ var _splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11);
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(14);
/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(18);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(15);
/* harmony import */ var _splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(12);
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3);
/* harmony import */ var _splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _common_props__WEBPACK_IMPORTED_MODULE_14__ = __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_1___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;
}














var Column = function Column(_ref) {
  var props = _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _ref);

  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,
      y2 = props.y2,
      y2FieldName = props.y2FieldName,
      annotationX = props.annotationX,
      annotationLabel = props.annotationLabel,
      annotationColor = props.annotationColor,
      onPointClick = props.onPointClick,
      onPointMouseOver = props.onPointMouseOver,
      onPointMouseOut = props.onPointMouseOut,
      onLegendClick = props.onLegendClick,
      onRangeSelect = props.onRangeSelect,
      colorPalette = props.colorPalette,
      columnGrouping = props.columnGrouping,
      stackMode = props.stackMode,
      visualizationApiRef = props.visualizationApiRef; // when columnGrouping is set to overlay also set the columnFillOpacity
  // this overwrites columnFillOpacity defaultProp value but will be removed
  // once we decide to expose columnFillOpacity.
  // stackMode has precedence over columnGrouping. only apply when stackMode=default

  var columnGroupingOptions = columnGrouping === 'overlay' && stackMode === 'default' ? {
    columnGrouping: 'overlay',
    columnFillOpacity: 0.3
  } : {};

  var chartOptions = _objectSpread(_objectSpread({
    chart: 'column'
  }, Object(_splunk_visualizations_shared_simpleXMLOptions__WEBPACK_IMPORTED_MODULE_11__["getSimpleXMLOptionsForProps"])(lodash_omit__WEBPACK_IMPORTED_MODULE_8___default()(props, ['width', 'height', 'style', 'x', 'y', 'y2', 'annotationX', 'annotationLabel', 'annotationColor', 'xFieldName', 'yFieldName', 'y2FieldName', 'colorPalette', 'onPointClick', 'onPointMouseOver', 'onPointMouseOut', 'onLegendClick']))), columnGroupingOptions); // splunk charting expects certain options like 'seriesColors', 'fieldColors' etc to be a string


  var convertedChartOptions = Object(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_12__["convertPropsToString"])({
    vizProps: chartOptions,
    propNames: ['seriesColors', 'data.fieldShowList', 'data.fieldHideList', 'legend.labels', 'fieldColors']
  }); // copy convertedChartOptions into chartOptions

  Object.assign(chartOptions, convertedChartOptions);
  var primaryData = {};
  primaryData.fields = [{
    name: xFieldName
  }].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__["toArrayForSeries"])(y, yFieldName).map(function (name) {
    return {
      name: name
    };
  })));
  primaryData.columns = [x].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__["toArrayForSeries"])(y, y)));

  if (y2 && lodash_isArray__WEBPACK_IMPORTED_MODULE_9___default()(y2) && y2FieldName) {
    chartOptions['axisY2.enabled'] = true;
    chartOptions['axisY2.fields'] = Object(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__["isMultiSeriesData"])(y2) ? y2FieldName.join(',') : y2FieldName;
    primaryData.fields = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(primaryData.fields), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__["toArrayForSeries"])(y2, y2FieldName).map(function (name) {
      return {
        name: name
      };
    })));
    primaryData.columns = [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(primaryData.columns), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Object(_splunk_react_visualizations_utils_seriesUtils__WEBPACK_IMPORTED_MODULE_6__["toArrayForSeries"])(y2, y2)));
  }

  var chartingAnnotations = annotationX && annotationX.length ? annotationX.map(function (timestamp, i) {
    return {
      color: annotationColor && annotationColor[i],
      label: annotationLabel && annotationLabel[i],
      time: timestamp
    };
  }) : [];
  var chartData = !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_10___default()(primaryData) ? _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_7___default.a.extractChartReadyData(_objectSpread(_objectSpread({}, primaryData), {}, {
    annotations: chartingAnnotations
  })) : null;

  var onClick = function onClick(_ref2) {
    var type = _ref2.type,
        originalEvent = _ref2.originalEvent,
        payload = _ref2.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_3___default.a.createElement(_splunk_react_visualizations_common_Charting__WEBPACK_IMPORTED_MODULE_5___default.a, {
    width: width,
    height: height,
    style: style,
    themeKey: themeKey,
    chartData: chartData,
    options: chartOptions,
    onClick: onClick,
    onPointMouseOver: onPointMouseOver,
    onPointMouseOut: onPointMouseOut,
    onSelect: onRangeSelect,
    colorPalette: colorPalette,
    visualizationApiRef: visualizationApiRef
  });
};

Column.propTypes = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
  themeKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string
}, _common_props__WEBPACK_IMPORTED_MODULE_14__[/* baseChartPropTypes */ "b"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* xyChartPropTypes */ "h"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* multiYChartProps */ "f"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* dataChartProps */ "d"]), {}, {
  // column specific props
  annotationX: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string),
  annotationLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string),
  annotationColor: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string),
  xAxisMajorLabelRotation: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf([-90, -45, 0, 90, 45]),
  showMajorXGridLines: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  splitSeries: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  allowIndependentYRanges: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  showDataLabels: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['none', 'all', 'minmax']),
  stackMode: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['default', 'stacked', 'stacked100']),
  columnSpacing: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,
  seriesSpacing: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,
  columnGrouping: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['default', 'overlay']),
  // Following props are internal.
  columnFillOpacity: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,
  lineWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number,
  // temporarily column specific props
  // @TODO(pwied): move to common/props when all viz should support
  showTooltip: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  onPointMouseOver: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  onPointMouseOut: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  visualizationApiRef: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
});
Column.defaultProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
  themeKey: 'prismaDark'
}, _common_props__WEBPACK_IMPORTED_MODULE_14__[/* baseChartDefaultProps */ "a"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* xyChartDefaultProps */ "g"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* multiYChartDefaultProps */ "e"]), _common_props__WEBPACK_IMPORTED_MODULE_14__[/* dataChartDefaultProps */ "c"]), {}, {
  xAxisMajorLabelRotation: 0,
  showMajorXGridLines: false,
  splitSeries: false,
  allowIndependentYRanges: false,
  showDataLabels: 'none',
  stackMode: 'default',
  columnGrouping: 'default',
  // Following props are internal.
  columnFillOpacity: 1,
  lineWidth: 2,
  // temporarily column specific props
  // @TODO(pwied): move to common/props when all viz should support
  showTooltip: true,
  onPointMouseOver: function onPointMouseOver() {},
  onPointMouseOut: function onPointMouseOut() {},
  visualizationApiRef: function visualizationApiRef() {}
});
/* harmony default export */ __webpack_exports__["default"] = (Object(_splunk_visualizations_shared_SanitizeProps__WEBPACK_IMPORTED_MODULE_13__["withSanitizedProps"])(Column));

/***/ })
/******/ ]);
//# sourceMappingURL=Column.js.map