victory-box-plot 37.3.1 → 37.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,14 +24,14 @@ __webpack_require__.r(__webpack_exports__);
24
24
  /* harmony export */ "getData": function() { return /* binding */ getData; },
25
25
  /* harmony export */ "getDomain": function() { return /* binding */ getDomain; }
26
26
  /* harmony export */ });
27
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
28
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_0__);
29
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
30
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
31
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
32
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
33
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
34
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
27
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
28
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
29
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
30
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__);
31
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
32
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_2__);
33
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
34
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
35
35
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/data.js");
36
36
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/domain.js");
37
37
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
@@ -54,7 +54,7 @@ const checkProcessedData = data => {
54
54
  if (hasQuartileAttributes) {
55
55
  // check that the independent variable is distinct
56
56
  const values = data.map(d => d._x);
57
- if (!lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(values).length === values.length) {
57
+ if (!lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(values).length === values.length) {
58
58
  throw new Error(`
59
59
  data prop may only take an array of objects with a unique
60
60
  independent variable. Make sure your x values are distinct.
@@ -101,15 +101,15 @@ const processData = data => {
101
101
  const dataArray = datum[sortKey].map(d => Object.assign({}, datum, {
102
102
  [sortKey]: d
103
103
  }));
104
- const sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(dataArray, sortKey);
104
+ const sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default()(dataArray, sortKey);
105
105
  return getSummaryStatistics(sortedData);
106
106
  });
107
107
  } else {
108
108
  /* Group data by independent variable and generate summary statistics for each group */
109
- const groupedData = lodash_groupBy__WEBPACK_IMPORTED_MODULE_0___default()(data, groupKey);
109
+ const groupedData = lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default()(data, groupKey);
110
110
  return Object.keys(groupedData).map(key => {
111
111
  const datum = groupedData[key];
112
- const sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(datum, sortKey);
112
+ const sortedData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_2___default()(datum, sortKey);
113
113
  return getSummaryStatistics(sortedData);
114
114
  });
115
115
  }
@@ -163,7 +163,7 @@ const getLabelStyle = (props, styleObject, namespace) => {
163
163
  return baseStyle;
164
164
  }
165
165
  const tooltipTheme = props.theme && props.theme.tooltip || {};
166
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipTheme.style, baseStyle);
166
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, tooltipTheme.style, baseStyle);
167
167
  };
168
168
  const getStyles = function (props, styleObject) {
169
169
  if (styleObject === void 0) {
@@ -177,23 +177,23 @@ const getStyles = function (props, styleObject) {
177
177
  height: "100%",
178
178
  width: "100%"
179
179
  };
180
- const labelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.labels, getLabelStyle(props, styleObject));
181
- const boxStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.boxes, styleObject.boxes);
182
- const whiskerStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.whiskers, styleObject.whiskers);
180
+ const labelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.labels, getLabelStyle(props, styleObject));
181
+ const boxStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.boxes, styleObject.boxes);
182
+ const whiskerStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.whiskers, styleObject.whiskers);
183
183
  return {
184
184
  boxes: boxStyles,
185
185
  labels: labelStyles,
186
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.parent, styleObject.parent, parentStyles),
187
- max: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.max, styleObject.max, whiskerStyles),
188
- maxLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
189
- median: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.median, styleObject.median, whiskerStyles),
190
- medianLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
191
- min: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.min, styleObject.min, whiskerStyles),
192
- minLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
193
- q1: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.q1, styleObject.q1, boxStyles),
194
- q1Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
195
- q3: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.q3, styleObject.q3, boxStyles),
196
- q3Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
186
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.parent, styleObject.parent, parentStyles),
187
+ max: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.max, styleObject.max, whiskerStyles),
188
+ maxLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.maxLabels, getLabelStyle(props, styleObject, "max"), labelStyles),
189
+ median: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.median, styleObject.median, whiskerStyles),
190
+ medianLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.medianLabels, getLabelStyle(props, styleObject, "median"), labelStyles),
191
+ min: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.min, styleObject.min, whiskerStyles),
192
+ minLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.minLabels, getLabelStyle(props, styleObject, "min"), labelStyles),
193
+ q1: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.q1, styleObject.q1, boxStyles),
194
+ q1Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.q1Labels, getLabelStyle(props, styleObject, "q1"), labelStyles),
195
+ q3: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.q3, styleObject.q3, boxStyles),
196
+ q3Labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.q3Labels, getLabelStyle(props, styleObject, "q3"), labelStyles),
197
197
  whiskers: whiskerStyles
198
198
  };
199
199
  };
@@ -230,8 +230,6 @@ const getCalculatedValues = props => {
230
230
  boxWidth
231
231
  };
232
232
  };
233
-
234
- // eslint-disable-next-line complexity
235
233
  const getWhiskerProps = (props, type) => {
236
234
  const {
237
235
  horizontal,
@@ -408,7 +406,7 @@ const getLabelProps = (props, text, type) => {
408
406
  return labelProps;
409
407
  }
410
408
  const tooltipTheme = theme && theme.tooltip || {};
411
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_7__.omit(tooltipTheme, ["style"]));
409
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, victory_core__WEBPACK_IMPORTED_MODULE_7__.omit(tooltipTheme, ["style"]));
412
410
  };
413
411
  const getDataProps = (props, type) => {
414
412
  if (type === "median") {
@@ -597,7 +595,7 @@ const options = {
597
595
  }]
598
596
  };
599
597
 
600
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
598
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
601
599
 
602
600
  class VictoryBoxPlotBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
603
601
  static animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
@@ -5308,10 +5306,10 @@ __webpack_require__.r(__webpack_exports__);
5308
5306
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
5309
5307
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
5310
5308
  /* harmony export */ });
5311
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
5312
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
5313
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
5314
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
5309
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
5310
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
5311
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
5312
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
5315
5313
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
5316
5314
 
5317
5315
 
@@ -5337,7 +5335,7 @@ const isInterpolatable = function (obj) {
5337
5335
  return false;
5338
5336
  case "object":
5339
5337
  // Don't try to interpolate class instances (except Date or Array).
5340
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
5338
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
5341
5339
  case "function":
5342
5340
  // Careful! There may be extra properties on function objects that the
5343
5341
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -5397,7 +5395,7 @@ const interpolateFunction = function (a, b) {
5397
5395
  return b;
5398
5396
  }
5399
5397
  return function () {
5400
- /* eslint-disable no-invalid-this, prefer-rest-params */
5398
+ /* eslint-disable prefer-rest-params */
5401
5399
  const aval = typeof a === "function" ? a.apply(this, arguments) : a;
5402
5400
  const bval = typeof b === "function" ? b.apply(this, arguments) : b;
5403
5401
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(aval, bval)(t);
@@ -5423,7 +5421,7 @@ const interpolateObject = function (startValue, endValue) {
5423
5421
  if (typeof x === "function" || typeof y === "function") {
5424
5422
  return interpolateFunction(x, y);
5425
5423
  }
5426
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
5424
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
5427
5425
  return interpolateObject(x, y);
5428
5426
  }
5429
5427
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -5432,7 +5430,7 @@ const interpolateObject = function (startValue, endValue) {
5432
5430
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
5433
5431
  // based on "key" instead of index
5434
5432
  const keyData = val => {
5435
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
5433
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
5436
5434
  };
5437
5435
  const i = {};
5438
5436
  const c = {};
@@ -5499,7 +5497,7 @@ const victoryInterpolator = function (a, b) {
5499
5497
  if (typeof a === "function" || typeof b === "function") {
5500
5498
  return interpolateFunction(a, b);
5501
5499
  }
5502
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
5500
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
5503
5501
  // @ts-expect-error These generics are tough, but they work :)
5504
5502
  return interpolateObject(a, b);
5505
5503
  }
@@ -5675,16 +5673,15 @@ __webpack_require__.r(__webpack_exports__);
5675
5673
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
5676
5674
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
5677
5675
  /* harmony export */ });
5678
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
5679
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5680
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5681
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5676
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5677
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5678
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
5679
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
5682
5680
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
5683
5681
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
5684
5682
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
5685
5683
  /* harmony import */ var _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-outlet */ "../../victory-core/es/victory-portal/portal-outlet.js");
5686
5684
  /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
5687
-
5688
5685
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
5689
5686
 
5690
5687
 
@@ -5692,9 +5689,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5692
5689
 
5693
5690
 
5694
5691
 
5692
+
5695
5693
  const defaultProps = {
5696
5694
  className: "VictoryContainer",
5697
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5695
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5698
5696
  portalZIndex: 99,
5699
5697
  responsive: true,
5700
5698
  role: "img"
@@ -5711,10 +5709,10 @@ function useVictoryContainer(initialProps) {
5711
5709
  height,
5712
5710
  responsive
5713
5711
  } = props;
5714
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
5712
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
5715
5713
 
5716
5714
  // Generated ID stored in ref because it needs to persist across renders
5717
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
5715
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
5718
5716
  const containerId = props.containerId ?? generatedId.current;
5719
5717
  const getIdForElement = elName => `${containerId}-${elName}`;
5720
5718
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -5773,7 +5771,7 @@ const VictoryContainer = initialProps => {
5773
5771
  containerRef,
5774
5772
  localContainerRef
5775
5773
  } = useVictoryContainer(initialProps);
5776
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
5774
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5777
5775
  if (!events?.onWheel) return;
5778
5776
  const handleWheel = e => e.preventDefault();
5779
5777
  const container = localContainerRef?.current;
@@ -5783,21 +5781,21 @@ const VictoryContainer = initialProps => {
5783
5781
  };
5784
5782
  // eslint-disable-next-line react-hooks/exhaustive-deps
5785
5783
  }, []);
5786
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5784
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5787
5785
  className: className,
5788
5786
  style: {
5789
5787
  ...style,
5790
5788
  width: responsive ? style?.width : dimensions.width,
5791
5789
  height: responsive ? style?.height : dimensions.height,
5792
- pointerEvents: "none",
5793
- touchAction: "none",
5794
- position: "relative"
5790
+ pointerEvents: style?.pointerEvents ?? "none",
5791
+ touchAction: style?.touchAction ?? "none",
5792
+ position: style?.position ?? "relative"
5795
5793
  },
5796
5794
  "data-ouia-component-id": ouiaId,
5797
5795
  "data-ouia-component-type": ouiaType,
5798
5796
  "data-ouia-safe": ouiaSafe,
5799
5797
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
5800
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("svg", _extends({
5798
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
5801
5799
  width: width,
5802
5800
  height: height,
5803
5801
  tabIndex: tabIndex,
@@ -5810,11 +5808,11 @@ const VictoryContainer = initialProps => {
5810
5808
  ...dimensions,
5811
5809
  pointerEvents: "all"
5812
5810
  }
5813
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
5811
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
5814
5812
  id: titleId
5815
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
5813
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
5816
5814
  id: descId
5817
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5815
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5818
5816
  style: {
5819
5817
  ...dimensions,
5820
5818
  zIndex: portalZIndex,
@@ -5822,7 +5820,7 @@ const VictoryContainer = initialProps => {
5822
5820
  top: 0,
5823
5821
  left: 0
5824
5822
  }
5825
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5823
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5826
5824
  as: portalComponent,
5827
5825
  width: width,
5828
5826
  height: height,
@@ -5849,12 +5847,12 @@ __webpack_require__.r(__webpack_exports__);
5849
5847
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5850
5848
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
5851
5849
  /* harmony export */ });
5852
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5853
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5850
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5851
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5854
5852
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
5855
5853
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5856
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5857
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5854
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5855
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
5858
5856
  /* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
5859
5857
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
5860
5858
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -5865,9 +5863,9 @@ __webpack_require__.r(__webpack_exports__);
5865
5863
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
5866
5864
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
5867
5865
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
5866
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5868
5867
 
5869
5868
 
5870
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5871
5869
 
5872
5870
 
5873
5871
 
@@ -5919,7 +5917,7 @@ const shouldUseMultilineBackgrounds = props => {
5919
5917
  backgroundStyle,
5920
5918
  backgroundPadding
5921
5919
  } = props;
5922
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
5920
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
5923
5921
  };
5924
5922
  const getStyles = (style, props) => {
5925
5923
  if (props.disableInlineStyles) {
@@ -5935,32 +5933,28 @@ const getStyles = (style, props) => {
5935
5933
  fontSize: getFontSize(baseStyles)
5936
5934
  });
5937
5935
  };
5938
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5936
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5939
5937
  };
5940
5938
  const getBackgroundStyles = (style, props) => {
5941
5939
  if (!style) {
5942
5940
  return undefined;
5943
5941
  }
5944
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
5942
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
5945
5943
  };
5946
5944
  const getBackgroundPadding = props => {
5947
5945
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
5948
5946
  return props.backgroundPadding.map(backgroundPadding => {
5949
5947
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
5950
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5951
- padding
5952
- });
5948
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5953
5949
  });
5954
5950
  }
5955
5951
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
5956
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5957
- padding
5958
- });
5952
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5959
5953
  };
5960
5954
  const getLineHeight = props => {
5961
5955
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
5962
5956
  if (Array.isArray(lineHeight)) {
5963
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
5957
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
5964
5958
  }
5965
5959
  return lineHeight;
5966
5960
  };
@@ -6080,7 +6074,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
6080
6074
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
6081
6075
  y: yCoordinate
6082
6076
  };
6083
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6077
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6084
6078
  };
6085
6079
  const getInlineXOffset = (calculatedProps, textElements, index) => {
6086
6080
  const {
@@ -6150,7 +6144,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
6150
6144
  x: xCoord - padding.left,
6151
6145
  y: yCoord
6152
6146
  };
6153
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6147
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6154
6148
  });
6155
6149
  };
6156
6150
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -6281,16 +6275,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
6281
6275
  style: currentStyle,
6282
6276
  children: line
6283
6277
  };
6284
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
6278
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
6285
6279
  });
6286
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
6280
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
6287
6281
  };
6288
6282
  const defaultProps = {
6289
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6290
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
6283
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6284
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6291
6285
  direction: "inherit",
6292
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6293
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6286
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6287
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6294
6288
  capHeight: 0.71,
6295
6289
  // Magic number from d3.
6296
6290
  lineHeight: 1
@@ -6327,10 +6321,10 @@ const VictoryLabel = initialProps => {
6327
6321
  if (props.backgroundStyle) {
6328
6322
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
6329
6323
  const children = [backgroundElement, label];
6330
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
6331
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6324
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
6325
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6332
6326
  }
6333
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6327
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6334
6328
  };
6335
6329
  VictoryLabel.displayName = "VictoryLabel";
6336
6330
  VictoryLabel.role = "label";
@@ -6456,12 +6450,12 @@ __webpack_require__.r(__webpack_exports__);
6456
6450
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6457
6451
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
6458
6452
  /* harmony export */ });
6459
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
6460
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6453
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6454
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6461
6455
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6462
6456
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6463
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6464
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6457
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
6458
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
6465
6459
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6466
6460
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6467
6461
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -6472,14 +6466,14 @@ __webpack_require__.r(__webpack_exports__);
6472
6466
 
6473
6467
 
6474
6468
  const defaultProps = {
6475
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
6469
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
6476
6470
  };
6477
6471
  const VictoryPortal = initialProps => {
6478
6472
  const props = {
6479
6473
  ...defaultProps,
6480
6474
  ...initialProps
6481
6475
  };
6482
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
6476
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
6483
6477
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6484
6478
  if (!portalContext) {
6485
6479
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -6497,12 +6491,12 @@ const VictoryPortal = initialProps => {
6497
6491
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
6498
6492
  key: childProps.key ?? id
6499
6493
  });
6500
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
6501
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6494
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
6495
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6502
6496
  portalContext?.addChild(id, child);
6503
6497
  // eslint-disable-next-line react-hooks/exhaustive-deps
6504
6498
  }, [props.children]);
6505
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6499
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6506
6500
  return () => portalContext?.removeChild(id);
6507
6501
  // eslint-disable-next-line react-hooks/exhaustive-deps
6508
6502
  }, []);
@@ -6523,10 +6517,10 @@ __webpack_require__.r(__webpack_exports__);
6523
6517
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6524
6518
  /* harmony export */ "Border": function() { return /* binding */ Border; }
6525
6519
  /* harmony export */ });
6526
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6527
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6528
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6529
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6520
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6521
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6522
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6523
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6530
6524
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6531
6525
  /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
6532
6526
 
@@ -6558,13 +6552,13 @@ const evaluateProps = props => {
6558
6552
  });
6559
6553
  };
6560
6554
  const defaultProps = {
6561
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
6555
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
6562
6556
  role: "presentation",
6563
6557
  shapeRendering: "auto"
6564
6558
  };
6565
6559
  const Border = initialProps => {
6566
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6567
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
6560
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6561
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
6568
6562
  ...props.events,
6569
6563
  "aria-label": props.ariaLabel,
6570
6564
  style: props.style,
@@ -6595,10 +6589,10 @@ __webpack_require__.r(__webpack_exports__);
6595
6589
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6596
6590
  /* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
6597
6591
  /* harmony export */ });
6598
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6599
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6600
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6601
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6592
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6593
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6594
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6595
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6602
6596
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6603
6597
  /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
6604
6598
 
@@ -6630,13 +6624,13 @@ const evaluateProps = props => {
6630
6624
  });
6631
6625
  };
6632
6626
  const defaultProps = {
6633
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
6627
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
6634
6628
  role: "presentation",
6635
6629
  shapeRendering: "auto"
6636
6630
  };
6637
6631
  const LineSegment = initialProps => {
6638
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6639
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
6632
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6633
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
6640
6634
  ...props.events,
6641
6635
  "aria-label": props.ariaLabel,
6642
6636
  style: props.style,
@@ -6829,10 +6823,10 @@ __webpack_require__.r(__webpack_exports__);
6829
6823
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6830
6824
  /* harmony export */ "Whisker": function() { return /* binding */ Whisker; }
6831
6825
  /* harmony export */ });
6832
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6833
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6834
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6835
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6826
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6827
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6828
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6829
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6836
6830
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6837
6831
  /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
6838
6832
 
@@ -6862,13 +6856,13 @@ const evaluateProps = props => {
6862
6856
  });
6863
6857
  };
6864
6858
  const defaultProps = {
6865
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
6866
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
6859
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6860
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
6867
6861
  role: "presentation",
6868
6862
  shapeRendering: "auto"
6869
6863
  };
6870
6864
  const Whisker = initialProps => {
6871
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6865
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6872
6866
  const {
6873
6867
  ariaLabel,
6874
6868
  groupComponent,
@@ -6896,10 +6890,10 @@ const Whisker = initialProps => {
6896
6890
  role,
6897
6891
  shapeRendering
6898
6892
  };
6899
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {}, [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
6893
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {}, [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(lineComponent, Object.assign({
6900
6894
  key: "major-whisker",
6901
6895
  "aria-label": ariaLabel
6902
- }, baseProps, majorWhisker)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
6896
+ }, baseProps, majorWhisker)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(lineComponent, Object.assign({
6903
6897
  key: "minor-whisker",
6904
6898
  "aria-label": ariaLabel
6905
6899
  }, baseProps, minorWhisker))]);
@@ -8040,22 +8034,22 @@ __webpack_require__.r(__webpack_exports__);
8040
8034
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8041
8035
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
8042
8036
  /* harmony export */ });
8043
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8044
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8037
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8038
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8045
8039
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8046
8040
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8047
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
8048
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
8041
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8042
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
8043
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8044
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8049
8045
  /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
8050
8046
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
8051
8047
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
8052
8048
  /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
8053
8049
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
8054
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8055
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8050
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
8056
8051
 
8057
8052
 
8058
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
8059
8053
 
8060
8054
 
8061
8055
 
@@ -8063,7 +8057,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
8063
8057
 
8064
8058
 
8065
8059
 
8066
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
8060
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
8067
8061
  static displayName = "VictoryTransition";
8068
8062
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
8069
8063
  constructor(props, context) {
@@ -8080,7 +8074,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8080
8074
  componentDidMount() {
8081
8075
  this.setState({
8082
8076
  nodesShouldLoad: true
8083
- }); // eslint-disable-line react/no-did-mount-set-state
8077
+ });
8084
8078
  }
8085
8079
  shouldComponentUpdate(nextProps) {
8086
8080
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(this.props, nextProps)) {
@@ -8106,8 +8100,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8106
8100
  nextProps
8107
8101
  };
8108
8102
  }
8109
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
8110
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
8103
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8104
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
8111
8105
  const {
8112
8106
  nodesWillExit,
8113
8107
  nodesWillEnter,
@@ -8130,12 +8124,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8130
8124
  const childDomain = child.props && child.type.getDomain(child.props, axis);
8131
8125
  return childDomain ? memo.concat(childDomain) : memo;
8132
8126
  } else if (child.props && child.props.children) {
8133
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
8127
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
8134
8128
  }
8135
8129
  return memo;
8136
8130
  }, []);
8137
8131
  };
8138
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8132
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8139
8133
  const childProps = child.props || {};
8140
8134
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
8141
8135
  if (!childProps.children && domain) {
@@ -8168,7 +8162,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8168
8162
  render() {
8169
8163
  const props = this.pickProps();
8170
8164
  const getTransitionProps = this.props.animate?.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, newState => this.setState(newState));
8171
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8165
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8172
8166
  const transitionProps = getTransitionProps(child);
8173
8167
  this.transitionProps = transitionProps;
8174
8168
  const domain = {
@@ -8182,21 +8176,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8182
8176
  }, transitionProps, child.props);
8183
8177
  const animationWhitelist = props.animationWhitelist || [];
8184
8178
  const whitelist = animationWhitelist.concat(["clipWidth"]);
8185
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
8186
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8179
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
8180
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8187
8181
  data: propsToAnimate
8188
8182
  }), newProps => {
8189
8183
  if (child.props.groupComponent) {
8190
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
8184
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
8191
8185
  clipWidth: newProps.clipWidth || 0
8192
8186
  }) : child.props.groupComponent;
8193
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8187
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8194
8188
  animate: null,
8195
8189
  animating: true,
8196
8190
  groupComponent
8197
8191
  }, newProps, combinedProps));
8198
8192
  }
8199
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8193
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8200
8194
  animate: null,
8201
8195
  animating: true
8202
8196
  }, newProps, combinedProps));
@@ -8217,14 +8211,14 @@ __webpack_require__.r(__webpack_exports__);
8217
8211
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8218
8212
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
8219
8213
  /* harmony export */ });
8220
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8221
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8222
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8223
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8224
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8225
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8226
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8227
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8214
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8215
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8216
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8217
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8218
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8219
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
8220
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8221
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
8228
8222
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
8229
8223
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
8230
8224
  /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
@@ -8294,7 +8288,7 @@ const defaultComponents = [{
8294
8288
  function addEvents(WrappedComponent, options) {
8295
8289
  if (options === void 0) {
8296
8290
  options = {};
8297
- } // eslint-disable-next-line @typescript-eslint/no-empty-interface
8291
+ } // eslint-disable-next-line @typescript-eslint/no-empty-object-type
8298
8292
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
8299
8293
  class AddEventsMixin extends WrappedComponent {
8300
8294
  constructor(props) {
@@ -8371,8 +8365,8 @@ function addEvents(WrappedComponent, options) {
8371
8365
  return {};
8372
8366
  }
8373
8367
  const getState = (key, type) => {
8374
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8375
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
8368
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8369
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
8376
8370
  };
8377
8371
  const components = options.components || defaultComponents;
8378
8372
  const stateChanges = components.map(component => {
@@ -8385,7 +8379,7 @@ function addEvents(WrappedComponent, options) {
8385
8379
  return stateChanges;
8386
8380
  }
8387
8381
  applyExternalMutations(props, externalMutations) {
8388
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
8382
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
8389
8383
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
8390
8384
  const compiledCallbacks = callbacks.length ? () => {
8391
8385
  callbacks.forEach(c => c());
@@ -8418,7 +8412,7 @@ function addEvents(WrappedComponent, options) {
8418
8412
  sharedEvents,
8419
8413
  externalEventMutations
8420
8414
  } = props;
8421
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8415
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8422
8416
  }
8423
8417
  cacheValues(obj) {
8424
8418
  Object.keys(obj).forEach(key => {
@@ -8429,10 +8423,10 @@ function addEvents(WrappedComponent, options) {
8429
8423
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
8430
8424
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
8431
8425
  const parentState = this.getEventState("parent", "parent");
8432
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
8426
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
8433
8427
  const parentPropsList = baseParentProps.parentControlledProps;
8434
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
8435
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
8428
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
8429
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
8436
8430
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
8437
8431
  }
8438
8432
  getAllEvents(props) {
@@ -8452,18 +8446,18 @@ function addEvents(WrappedComponent, options) {
8452
8446
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
8453
8447
  if (this.hasEvents) {
8454
8448
  const baseEvents = this.getEvents(this.props, type, key);
8455
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8449
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8456
8450
  index,
8457
8451
  key: id
8458
8452
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
8459
8453
  id
8460
8454
  });
8461
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8455
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8462
8456
  return Object.assign({}, componentProps, {
8463
8457
  events
8464
8458
  });
8465
8459
  }
8466
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8460
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8467
8461
  index,
8468
8462
  key: id
8469
8463
  }, currentProps, baseProps, {
@@ -8477,15 +8471,15 @@ function addEvents(WrappedComponent, options) {
8477
8471
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
8478
8472
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
8479
8473
  }
8480
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
8474
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
8481
8475
  }
8482
8476
  animateComponent(props, defaultAnimationWhitelist) {
8483
8477
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
8484
8478
  const Comp = this.constructor;
8485
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8479
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8486
8480
  animate: props.animate,
8487
8481
  animationWhitelist: animationWhitelist
8488
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
8482
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
8489
8483
  }
8490
8484
 
8491
8485
  // Used by `VictoryLine` and `VictoryArea`
@@ -8500,12 +8494,12 @@ function addEvents(WrappedComponent, options) {
8500
8494
  let newMemo = memo;
8501
8495
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
8502
8496
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
8503
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
8497
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
8504
8498
  }
8505
8499
  return newMemo;
8506
8500
  }, []);
8507
8501
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
8508
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8502
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8509
8503
  return this.renderContainer(groupComponent, children);
8510
8504
  }
8511
8505
  renderData(props, shouldRenderDatum) {
@@ -8520,14 +8514,14 @@ function addEvents(WrappedComponent, options) {
8520
8514
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
8521
8515
  const dataProps = this.getComponentProps(dataComponent, "data", index);
8522
8516
  if (shouldRenderDatum(dataProps.datum)) {
8523
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
8517
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
8524
8518
  }
8525
8519
  return validDataComponents;
8526
8520
  }, []);
8527
8521
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
8528
8522
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
8529
8523
  if (labelProps.text !== undefined && labelProps.text !== null) {
8530
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
8524
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
8531
8525
  }
8532
8526
  return undefined;
8533
8527
  }).filter(Boolean);
@@ -8633,24 +8627,24 @@ __webpack_require__.r(__webpack_exports__);
8633
8627
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
8634
8628
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
8635
8629
  /* harmony export */ });
8636
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
8637
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
8638
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isUndefined */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isUndefined.js");
8639
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
8630
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8631
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8632
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8633
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8640
8634
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEqual */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js");
8641
8635
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
8642
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8643
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
8644
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
8645
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
8646
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
8647
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
8648
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
8649
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
8650
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
8651
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
8652
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
8653
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
8636
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
8637
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
8638
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isUndefined */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isUndefined.js");
8639
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
8640
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
8641
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
8642
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
8643
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
8644
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
8645
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
8646
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
8647
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
8654
8648
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8655
8649
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8656
8650
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
@@ -8663,7 +8657,6 @@ __webpack_require__.r(__webpack_exports__);
8663
8657
 
8664
8658
 
8665
8659
 
8666
- /* eslint-disable no-use-before-define */
8667
8660
 
8668
8661
 
8669
8662
 
@@ -8685,7 +8678,7 @@ function getLength(data) {
8685
8678
 
8686
8679
  // Returns generated data for a given axis based on domain and sample from props
8687
8680
  function generateDataArray(props, axis) {
8688
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
8681
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
8689
8682
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
8690
8683
  const samples = props.samples || 1;
8691
8684
  const domainMax = Math.max(...domain);
@@ -8710,7 +8703,7 @@ function sortData(dataset, sortKey, sortOrder) {
8710
8703
  formattedSortKey = `_${sortKey}`;
8711
8704
  }
8712
8705
  const order = sortOrder === "ascending" ? "asc" : "desc";
8713
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
8706
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
8714
8707
  }
8715
8708
 
8716
8709
  // This method will remove data points that break certain scales. (log scale only)
@@ -8754,7 +8747,7 @@ function getEventKey(key) {
8754
8747
  return () => undefined;
8755
8748
  }
8756
8749
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
8757
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
8750
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
8758
8751
  }
8759
8752
 
8760
8753
  // Returns data with an eventKey prop added to each datum
@@ -8789,8 +8782,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8789
8782
  const isUnderMinY = underMin(minDomainY);
8790
8783
  const isOverMaxX = overMax(maxDomainX);
8791
8784
  const isOverMaxY = overMax(maxDomainY);
8792
-
8793
- // eslint-disable-next-line complexity
8794
8785
  return dataset.map(datum => {
8795
8786
  let {
8796
8787
  _x,
@@ -8815,12 +8806,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8815
8806
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
8816
8807
  // baseline and value with only baseline above max, set baseline to maxDomainY
8817
8808
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
8818
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
8809
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
8819
8810
  _x,
8820
8811
  _y,
8821
8812
  _y0,
8822
8813
  _y1
8823
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
8814
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
8824
8815
  });
8825
8816
  }
8826
8817
 
@@ -8834,7 +8825,7 @@ function createStringMap(props, axis) {
8834
8825
  const stringsFromAxes = getStringsFromAxes(props, axis);
8835
8826
  const stringsFromCategories = getStringsFromCategories(props, axis);
8836
8827
  const stringsFromData = getStringsFromData(props, axis);
8837
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8828
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8838
8829
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
8839
8830
  memo[string] = index + 1;
8840
8831
  return memo;
@@ -8901,7 +8892,6 @@ function formatData(dataset, props, expectedKeys) {
8901
8892
  };
8902
8893
  }
8903
8894
  const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
8904
- // eslint-disable-line complexity
8905
8895
  const parsedDatum = parseDatum(datum);
8906
8896
  const fallbackValues = {
8907
8897
  x: index,
@@ -8921,7 +8911,7 @@ function formatData(dataset, props, expectedKeys) {
8921
8911
  return memo;
8922
8912
  }, {});
8923
8913
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
8924
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
8914
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
8925
8915
  dataArr.push(formattedDatum);
8926
8916
  }
8927
8917
  return dataArr;
@@ -9048,7 +9038,7 @@ function isDataComponent(component) {
9048
9038
  };
9049
9039
  let role = getRole(component);
9050
9040
  if (role === "portal") {
9051
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
9041
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
9052
9042
  role = children.length ? getRole(children[0]) : "";
9053
9043
  }
9054
9044
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -9183,14 +9173,14 @@ __webpack_require__.r(__webpack_exports__);
9183
9173
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
9184
9174
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
9185
9175
  /* harmony export */ });
9186
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isDate */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isDate.js");
9187
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
9188
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/sortedUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js");
9189
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
9176
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9177
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9178
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isDate */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isDate.js");
9179
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
9190
9180
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
9191
9181
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
9192
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9193
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9182
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/sortedUniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js");
9183
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
9194
9184
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
9195
9185
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9196
9186
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -9198,7 +9188,6 @@ __webpack_require__.r(__webpack_exports__);
9198
9188
 
9199
9189
 
9200
9190
 
9201
- /* eslint-disable no-use-before-define */
9202
9191
 
9203
9192
 
9204
9193
 
@@ -9254,8 +9243,6 @@ function getExtremeFromData(dataset, axis, type) {
9254
9243
  }, initialValue);
9255
9244
  return containsDate ? new Date(result) : result;
9256
9245
  }
9257
-
9258
- // eslint-disable-next-line max-statements
9259
9246
  function padDomain(domain, props, axis) {
9260
9247
  if (!props.domainPadding) {
9261
9248
  return domain;
@@ -9282,9 +9269,9 @@ function padDomain(domain, props, axis) {
9282
9269
  max: max.valueOf() + simplePadding.right
9283
9270
  };
9284
9271
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
9285
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
9272
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
9286
9273
  const adjust = (val, type) => {
9287
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
9274
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
9288
9275
  return coerce ? 0 : val;
9289
9276
  };
9290
9277
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -9507,7 +9494,7 @@ function getMaxFromProps(props, axis) {
9507
9494
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
9508
9495
  return props.maxDomain[axis];
9509
9496
  }
9510
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
9497
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
9511
9498
  }
9512
9499
 
9513
9500
  /**
@@ -9520,7 +9507,7 @@ function getMinFromProps(props, axis) {
9520
9507
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
9521
9508
  return props.minDomain[axis];
9522
9509
  }
9523
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
9510
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
9524
9511
  }
9525
9512
 
9526
9513
  /**
@@ -9531,7 +9518,7 @@ function getMinFromProps(props, axis) {
9531
9518
  * @returns {Array} the symmetric domain
9532
9519
  */
9533
9520
  function getSymmetricDomain(domain, values) {
9534
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
9521
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
9535
9522
  const step = processedData[1] - processedData[0];
9536
9523
  return [domain[0], domain[1] + step];
9537
9524
  }
@@ -9547,7 +9534,7 @@ function isDomainComponent(component) {
9547
9534
  };
9548
9535
  let role = getRole(component);
9549
9536
  if (role === "portal") {
9550
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
9537
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
9551
9538
  role = children.length ? getRole(children[0]) : "";
9552
9539
  }
9553
9540
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -9578,20 +9565,19 @@ __webpack_require__.r(__webpack_exports__);
9578
9565
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
9579
9566
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
9580
9567
  /* harmony export */ });
9581
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
9582
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
9583
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
9584
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
9585
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
9586
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
9587
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
9588
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
9568
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
9569
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
9570
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
9571
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
9572
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
9573
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
9574
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
9575
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
9589
9576
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9590
9577
 
9591
9578
 
9592
9579
 
9593
9580
 
9594
- /* eslint-disable no-use-before-define */
9595
9581
 
9596
9582
  const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
9597
9583
 
@@ -9639,11 +9625,10 @@ getScopedEvents) {
9639
9625
  */
9640
9626
  const getAllEvents = () => {
9641
9627
  // Mandatory usage: `getEvents.bind(this)`
9642
- /* eslint-disable no-invalid-this */
9628
+
9643
9629
  if (Array.isArray(this.componentEvents)) {
9644
9630
  return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
9645
9631
  }
9646
- /* eslint-enable no-invalid-this */
9647
9632
  return props.events;
9648
9633
  };
9649
9634
  const allEvents = getAllEvents();
@@ -9663,12 +9648,12 @@ getScopedEvents) {
9663
9648
  */
9664
9649
  // eslint-disable-next-line max-params
9665
9650
  function getScopedEvents(events, namespace, childType, baseProps) {
9666
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
9651
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
9667
9652
  return {};
9668
9653
  }
9669
9654
 
9670
9655
  // Mandatory usage: `getScopedEvents.bind(this)`
9671
- // eslint-disable-next-line no-invalid-this
9656
+
9672
9657
  const newBaseProps = baseProps || this.baseProps;
9673
9658
  // returns the original base props or base state of a given target element
9674
9659
  const getTargetProps = (identifier, type) => {
@@ -9677,7 +9662,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9677
9662
  target,
9678
9663
  key
9679
9664
  } = identifier;
9680
- // eslint-disable-next-line no-invalid-this
9681
9665
  const baseType = type === "props" ? newBaseProps : this.state || {};
9682
9666
  const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
9683
9667
  return key === "parent" ? base.parent : base[key] && base[key][target];
@@ -9704,7 +9688,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9704
9688
 
9705
9689
  // returns the state object with mutated props applied for a single key
9706
9690
  const getMutationObject = (key, childName) => {
9707
- // eslint-disable-next-line no-invalid-this
9708
9691
  const baseState = this.state || {};
9709
9692
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
9710
9693
  return baseState;
@@ -9777,11 +9760,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9777
9760
  // into a state mutation, and calls setState
9778
9761
  // eslint-disable-next-line max-params
9779
9762
  const onEvent = (evt, childProps, eventKey, eventName) => {
9780
- // eslint-disable-next-line no-invalid-this
9781
9763
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
9782
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
9764
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
9783
9765
  const callbacks = compileCallbacks(eventReturn);
9784
- // eslint-disable-next-line no-invalid-this
9785
9766
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
9786
9767
  }
9787
9768
  };
@@ -9811,7 +9792,7 @@ function getPartialEvents(events, eventKey, childProps) {
9811
9792
  // eslint-disable-next-line max-params
9812
9793
  function getEventState(eventKey, namespace, childType) {
9813
9794
  // Mandatory usage: `getEventState.bind(this)`
9814
- // eslint-disable-next-line no-invalid-this
9795
+
9815
9796
  const state = this.state || {};
9816
9797
  if (!childType) {
9817
9798
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
@@ -9841,7 +9822,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
9841
9822
  const childState = baseState[childName];
9842
9823
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
9843
9824
  memo[childName] = mutation ? mutation : childState;
9844
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9825
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9845
9826
  }, {});
9846
9827
  }
9847
9828
 
@@ -9877,7 +9858,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9877
9858
  } else {
9878
9859
  // use keys from both state and props so that elements not intially included in baseProps
9879
9860
  // will be used. (i.e. labels)
9880
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9861
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9881
9862
  memo[eventKey] = targets.reduce((m, target) => {
9882
9863
  const identifier = {
9883
9864
  eventKey,
@@ -9886,10 +9867,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9886
9867
  };
9887
9868
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
9888
9869
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
9889
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9870
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9890
9871
  }, {});
9891
9872
  }
9892
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9873
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9893
9874
  }, {});
9894
9875
  }
9895
9876
 
@@ -9921,11 +9902,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
9921
9902
  }
9922
9903
  // find any mutation objects that match the target
9923
9904
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
9924
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
9905
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
9925
9906
  return undefined;
9926
9907
  }
9927
9908
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
9928
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
9909
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
9929
9910
  return undefined;
9930
9911
  }
9931
9912
  return keyMutations.reduce((memo, curr) => {
@@ -9951,8 +9932,8 @@ function getGlobalEventNameFromKey(key) {
9951
9932
  const match = key.match(GLOBAL_EVENT_REGEX);
9952
9933
  return match && match[1] && match[1].toLowerCase();
9953
9934
  }
9954
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9955
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9935
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9936
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9956
9937
  const emulateReactEvent = event => Object.assign(event, {
9957
9938
  nativeEvent: event
9958
9939
  });
@@ -9993,41 +9974,45 @@ __webpack_require__.r(__webpack_exports__);
9993
9974
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
9994
9975
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
9995
9976
  /* harmony export */ });
9996
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
9997
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9998
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
9999
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
10000
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
10001
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
10002
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
10003
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9977
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9978
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9979
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
9980
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
9981
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
9982
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
9983
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
9984
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
10004
9985
 
10005
9986
 
10006
9987
 
10007
- /* eslint-disable no-use-before-define */
10008
9988
 
10009
- // Private Functions
10010
-
10011
- function getCartesianRange(props, axis) {
10012
- // determine how to lay the axis and what direction positive and negative are
10013
- const vertical = axis !== "x";
10014
- const padding = getPadding(props);
9989
+ /**
9990
+ * Determine the range of a cartesian axis
9991
+ */
9992
+ function getCartesianRange(options) {
9993
+ const vertical = options.axis !== "x";
10015
9994
  if (vertical) {
10016
- return [props.height - padding.bottom, padding.top];
9995
+ return [options.height - options.padding.bottom, options.padding.top];
10017
9996
  }
10018
- return [padding.left, props.width - padding.right];
9997
+ return [options.padding.left, options.width - options.padding.right];
10019
9998
  }
10020
- function getPolarRange(props, axis) {
10021
- if (axis === "x") {
10022
- const startAngle = degreesToRadians(props.startAngle || 0);
10023
- const endAngle = degreesToRadians(props.endAngle || 360);
9999
+
10000
+ /**
10001
+ * Determine the range of a polar axis in radians
10002
+ */
10003
+ function getPolarRange(options) {
10004
+ if (options.axis === "x") {
10005
+ const startAngle = degreesToRadians(options.startAngle || 0);
10006
+ const endAngle = degreesToRadians(options.endAngle || 360);
10024
10007
  return [startAngle, endAngle];
10025
10008
  }
10026
- return [props.innerRadius || 0, getRadius(props)];
10009
+ return [options.innerRadius || 0, getRadius({
10010
+ height: options.height,
10011
+ width: options.width,
10012
+ padding: options.padding
10013
+ })];
10027
10014
  }
10028
10015
 
10029
- // Exported Functions
10030
-
10031
10016
  /**
10032
10017
  * Creates an object composed of the inverted keys and values of object.
10033
10018
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -10064,8 +10049,11 @@ function omit(originalObject, ks) {
10064
10049
  }
10065
10050
  return newObject;
10066
10051
  }
10052
+
10053
+ /**
10054
+ * Coalesce the x and y values from a data point
10055
+ */
10067
10056
  function getPoint(datum) {
10068
- const exists = val => val !== undefined;
10069
10057
  const {
10070
10058
  _x,
10071
10059
  _x1,
@@ -10076,16 +10064,20 @@ function getPoint(datum) {
10076
10064
  _y0,
10077
10065
  _voronoiY
10078
10066
  } = datum;
10079
- const defaultX = exists(_x1) ? _x1 : _x;
10080
- const defaultY = exists(_y1) ? _y1 : _y;
10067
+ const defaultX = _x1 ?? _x;
10068
+ const defaultY = _y1 ?? _y;
10081
10069
  const point = {
10082
- x: exists(_voronoiX) ? _voronoiX : defaultX,
10083
- x0: exists(_x0) ? _x0 : _x,
10084
- y: exists(_voronoiY) ? _voronoiY : defaultY,
10085
- y0: exists(_y0) ? _y0 : _y
10070
+ x: _voronoiX ?? defaultX,
10071
+ x0: _x0 ?? _x,
10072
+ y: _voronoiY ?? defaultY,
10073
+ y0: _y0 ?? _y
10086
10074
  };
10087
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
10075
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
10088
10076
  }
10077
+
10078
+ /**
10079
+ * Scale a point based on the origin, direction, and given scale function
10080
+ */
10089
10081
  function scalePoint(props, datum) {
10090
10082
  const {
10091
10083
  scale,
@@ -10108,11 +10100,11 @@ function scalePoint(props, datum) {
10108
10100
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
10109
10101
  };
10110
10102
  }
10111
- function getPadding(props, name) {
10112
- if (name === void 0) {
10113
- name = "padding";
10114
- }
10115
- const padding = props[name];
10103
+
10104
+ /**
10105
+ * Returns a padding value from a number or partial padding values
10106
+ */
10107
+ function getPadding(padding) {
10116
10108
  const paddingVal = typeof padding === "number" ? padding : 0;
10117
10109
  const paddingObj = typeof padding === "object" ? padding : {};
10118
10110
  return {
@@ -10122,6 +10114,10 @@ function getPadding(props, name) {
10122
10114
  right: paddingObj.right || paddingVal
10123
10115
  };
10124
10116
  }
10117
+
10118
+ /**
10119
+ * Returns true if the component is defined as a tooltip
10120
+ */
10125
10121
  function isTooltip(component) {
10126
10122
  const labelRole = component && component.type && component.type.role;
10127
10123
  return labelRole === "tooltip";
@@ -10136,8 +10132,8 @@ function getDefaultStyles(props, role) {
10136
10132
  return defaultStyles;
10137
10133
  }
10138
10134
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
10139
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
10140
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
10135
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
10136
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
10141
10137
  labels: labelStyle
10142
10138
  }, defaultStyles);
10143
10139
  }
@@ -10145,7 +10141,7 @@ function getStyles(style, defaultStyles) {
10145
10141
  const width = "100%";
10146
10142
  const height = "100%";
10147
10143
  if (!style) {
10148
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
10144
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
10149
10145
  parent: {
10150
10146
  height,
10151
10147
  width
@@ -10161,14 +10157,18 @@ function getStyles(style, defaultStyles) {
10161
10157
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
10162
10158
  const defaultData = defaultStyles && defaultStyles.data || {};
10163
10159
  return {
10164
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
10160
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
10165
10161
  width,
10166
10162
  height
10167
10163
  }),
10168
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
10169
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
10164
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
10165
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
10170
10166
  };
10171
10167
  }
10168
+
10169
+ /**
10170
+ * Returns the value of a prop or accessor function with the given props
10171
+ */
10172
10172
  function evaluateProp(prop, props) {
10173
10173
  return isFunction(prop) ? prop(props) : prop;
10174
10174
  }
@@ -10190,19 +10190,28 @@ function degreesToRadians(degrees) {
10190
10190
  function radiansToDegrees(radians) {
10191
10191
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
10192
10192
  }
10193
- function getRadius(props) {
10193
+
10194
+ /**
10195
+ * Get the maximum radius that will fit in the container
10196
+ */
10197
+ function getRadius(options) {
10198
+ const {
10199
+ width,
10200
+ height,
10201
+ padding
10202
+ } = options;
10194
10203
  const {
10195
10204
  left,
10196
10205
  right,
10197
10206
  top,
10198
10207
  bottom
10199
- } = getPadding(props);
10200
- const {
10201
- width,
10202
- height
10203
- } = props;
10208
+ } = padding;
10204
10209
  return Math.min(width - left - right, height - top - bottom) / 2;
10205
10210
  }
10211
+
10212
+ /**
10213
+ * Returns the origin for a polar chart within the padded area
10214
+ */
10206
10215
  function getPolarOrigin(props) {
10207
10216
  const {
10208
10217
  width,
@@ -10213,7 +10222,7 @@ function getPolarOrigin(props) {
10213
10222
  bottom,
10214
10223
  left,
10215
10224
  right
10216
- } = getPadding(props);
10225
+ } = getPadding(props.padding);
10217
10226
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
10218
10227
  const offsetWidth = width / 2 + left - right;
10219
10228
  const offsetHeight = height / 2 + top - bottom;
@@ -10222,13 +10231,30 @@ function getPolarOrigin(props) {
10222
10231
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
10223
10232
  };
10224
10233
  }
10234
+
10235
+ /**
10236
+ * Determine the range of an axis based on the given props
10237
+ */
10225
10238
  function getRange(props, axis) {
10226
10239
  if (props.range && props.range[axis]) {
10227
10240
  return props.range[axis];
10228
10241
  } else if (props.range && Array.isArray(props.range)) {
10229
10242
  return props.range;
10230
10243
  }
10231
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
10244
+ return props.polar ? getPolarRange({
10245
+ axis,
10246
+ innerRadius: props.innerRadius,
10247
+ startAngle: props.startAngle,
10248
+ endAngle: props.endAngle,
10249
+ height: props.height,
10250
+ width: props.width,
10251
+ padding: getPadding(props.padding)
10252
+ }) : getCartesianRange({
10253
+ axis,
10254
+ height: props.height,
10255
+ width: props.width,
10256
+ padding: getPadding(props.padding)
10257
+ });
10232
10258
  }
10233
10259
 
10234
10260
  /**
@@ -10260,7 +10286,7 @@ function createAccessor(key) {
10260
10286
  return x => x;
10261
10287
  }
10262
10288
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
10263
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
10289
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
10264
10290
  }
10265
10291
  function modifyProps(props, fallbackProps, role) {
10266
10292
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -10269,7 +10295,7 @@ function modifyProps(props, fallbackProps, role) {
10269
10295
  const defaultObject = horizontal === undefined ? {} : {
10270
10296
  horizontal
10271
10297
  };
10272
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
10298
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
10273
10299
  }
10274
10300
 
10275
10301
  /**
@@ -10356,10 +10382,10 @@ initialMemo, combine) {
10356
10382
  const childRole = child.type && child.type.role;
10357
10383
  const childName = child.props.name || `${childRole}-${names[index]}`;
10358
10384
  if (child.props && child.props.children) {
10359
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
10360
- const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children).map(c => {
10361
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
10362
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
10385
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
10386
+ const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children).map(c => {
10387
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
10388
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
10363
10389
  });
10364
10390
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
10365
10391
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -10373,7 +10399,7 @@ initialMemo, combine) {
10373
10399
  return newMemo;
10374
10400
  }, initialMemo);
10375
10401
  };
10376
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
10402
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
10377
10403
  const childNames = validChildren.map((c, i) => i);
10378
10404
  return traverseChildren(validChildren, childNames);
10379
10405
  }
@@ -10393,10 +10419,10 @@ function isHorizontal(props) {
10393
10419
  if (memo || childProps.horizontal || !childProps.children) {
10394
10420
  return memo || childProps.horizontal;
10395
10421
  }
10396
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
10422
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
10397
10423
  }, false);
10398
10424
  };
10399
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
10425
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
10400
10426
  }
10401
10427
 
10402
10428
  /***/ }),
@@ -10469,11 +10495,11 @@ __webpack_require__.r(__webpack_exports__);
10469
10495
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
10470
10496
  /* harmony export */ "getText": function() { return /* binding */ getText; }
10471
10497
  /* harmony export */ });
10498
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10472
10499
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
10473
10500
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
10474
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10475
10501
 
10476
- /* eslint-disable no-use-before-define */
10502
+
10477
10503
 
10478
10504
  // Private Functions
10479
10505
 
@@ -10718,11 +10744,12 @@ __webpack_require__.r(__webpack_exports__);
10718
10744
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10719
10745
  /* harmony export */ "warn": function() { return /* binding */ warn; }
10720
10746
  /* harmony export */ });
10721
- /* global console */
10747
+ /* global console process */
10722
10748
  /* eslint-disable no-console */
10723
10749
 
10724
- // TODO: Use "warning" npm module like React is switching to.
10725
10750
  function warn(message) {
10751
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10752
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
10726
10753
  if (true) {
10727
10754
  if (console && console.warn) {
10728
10755
  console.warn(message);
@@ -10793,7 +10820,6 @@ __webpack_require__.r(__webpack_exports__);
10793
10820
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
10794
10821
  /* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
10795
10822
 
10796
- /* eslint-disable no-use-before-define */
10797
10823
 
10798
10824
 
10799
10825
 
@@ -11016,13 +11042,15 @@ __webpack_require__.r(__webpack_exports__);
11016
11042
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
11017
11043
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
11018
11044
  /* harmony export */ });
11019
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
11020
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
11021
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
11022
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11023
-
11024
- // http://www.pearsonified.com/2012/01/characters-per-line.php
11045
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
11046
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
11047
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
11048
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
11049
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
11025
11050
  /* eslint-disable no-magic-numbers */
11051
+
11052
+
11053
+
11026
11054
  // Based on measuring specific character widths
11027
11055
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
11028
11056
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -11201,7 +11229,7 @@ const convertLengthToPixels = (length, fontSize) => {
11201
11229
  };
11202
11230
  const _prepareParams = (inputStyle, index) => {
11203
11231
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
11204
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
11232
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
11205
11233
  return Object.assign({}, style, {
11206
11234
  fontFamily: style.fontFamily,
11207
11235
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -11249,7 +11277,7 @@ const _approximateDimensionsInternal = (text, style) => {
11249
11277
  height: heightWithRotate * coefficients.heightOverlapCoef
11250
11278
  };
11251
11279
  };
11252
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
11280
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
11253
11281
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
11254
11282
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
11255
11283
  element.setAttribute("width", "300");
@@ -11270,7 +11298,7 @@ const styleToKeyComponent = style => {
11270
11298
  }
11271
11299
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
11272
11300
  };
11273
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
11301
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
11274
11302
  let containerElement = _getMeasurementContainer();
11275
11303
  if (!containerElement.isConnected) {
11276
11304
  _getMeasurementContainer.cache.clear?.();
@@ -11440,12 +11468,12 @@ __webpack_require__.r(__webpack_exports__);
11440
11468
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
11441
11469
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
11442
11470
  /* harmony export */ });
11443
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
11444
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
11471
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11472
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11445
11473
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
11446
11474
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11447
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
11448
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
11475
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
11476
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
11449
11477
 
11450
11478
 
11451
11479
 
@@ -11536,13 +11564,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11536
11564
  const getTransitionsFromChildren = (old, next) => {
11537
11565
  return old.map((child, idx) => {
11538
11566
  if (child && child.props && child.props.children && next[idx]) {
11539
- return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(next[idx].props.children));
11567
+ return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(next[idx].props.children));
11540
11568
  }
11541
11569
  // get Transition entering and exiting nodes
11542
11570
  return getTransition(child, next[idx]);
11543
11571
  });
11544
11572
  };
11545
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
11573
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
11546
11574
  return {
11547
11575
  nodesWillExit,
11548
11576
  nodesWillEnter,
@@ -11556,7 +11584,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11556
11584
  };
11557
11585
  }
11558
11586
  function getInitialChildProps(animate, data) {
11559
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11587
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11560
11588
  return {
11561
11589
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
11562
11590
  };
@@ -11573,7 +11601,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
11573
11601
  data
11574
11602
  };
11575
11603
  }
11576
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11604
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11577
11605
  // If nodes need to exit, transform them with the provided onLoad.before function.
11578
11606
  const newData = data.map((datum, idx) => {
11579
11607
  return Object.assign({}, datum, before(datum, idx, data));
@@ -11584,8 +11612,6 @@ function getChildBeforeLoad(animate, child, data, cb) {
11584
11612
  clipWidth: 0
11585
11613
  };
11586
11614
  }
11587
-
11588
- // eslint-disable-next-line max-params
11589
11615
  function getChildOnLoad(animate, data, cb) {
11590
11616
  const newAnimate = Object.assign({}, animate, {
11591
11617
  onEnd: cb
@@ -11597,7 +11623,7 @@ function getChildOnLoad(animate, data, cb) {
11597
11623
  data
11598
11624
  };
11599
11625
  }
11600
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11626
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11601
11627
  // If nodes need to exit, transform them with the provided onLoad.after function.
11602
11628
  newData = data.map((datum, idx) => {
11603
11629
  return Object.assign({}, datum, after(datum, idx, data));
@@ -11608,7 +11634,7 @@ function getChildOnLoad(animate, data, cb) {
11608
11634
  };
11609
11635
  }
11610
11636
 
11611
- // eslint-disable-next-line max-params, max-len
11637
+ // eslint-disable-next-line max-params
11612
11638
  function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11613
11639
  // Whether or not _this_ child has exiting nodes, we want the exit-
11614
11640
  // transition for all children to have the same duration, delay, etc.
@@ -11619,7 +11645,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11619
11645
  // After the exit transition occurs, trigger the animations for
11620
11646
  // nodes that are neither exiting nor entering.
11621
11647
  animate.onEnd = cb;
11622
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11648
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11623
11649
  // If nodes need to exit, transform them with the provided onExit.before function.
11624
11650
  newData = data.map((datum, idx) => {
11625
11651
  const key = (datum.key || idx).toString();
@@ -11632,7 +11658,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11632
11658
  };
11633
11659
  }
11634
11660
 
11635
- // eslint-disable-next-line max-params,max-len
11661
+ // eslint-disable-next-line max-params
11636
11662
  function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11637
11663
  let newAnimate = animate;
11638
11664
  let newData = data;
@@ -11642,7 +11668,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11642
11668
  newAnimate = Object.assign({}, animate, {
11643
11669
  onEnd: cb
11644
11670
  });
11645
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11671
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11646
11672
  // We want the entering nodes to be included in the transition target
11647
11673
  // domain. However, we may not want these nodes to be displayed initially,
11648
11674
  // so perform the `onEnter.before` transformation on each node.
@@ -11657,7 +11683,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11657
11683
  };
11658
11684
  }
11659
11685
 
11660
- // eslint-disable-next-line max-params, max-len
11686
+ // eslint-disable-next-line max-params
11661
11687
  function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11662
11688
  // Whether or not _this_ child has entering nodes, we want the entering-
11663
11689
  // transition for all children to have the same duration, delay, etc.
@@ -11669,7 +11695,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11669
11695
  // domain should encompass the nodes that will now enter. So perform
11670
11696
  // the `onEnter.after` transformation on each node.
11671
11697
  newAnimate.onEnd = cb;
11672
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11698
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11673
11699
  newData = data.map((datum, idx) => {
11674
11700
  const key = getDatumKey(datum, idx);
11675
11701
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -11764,8 +11790,6 @@ function getTransitionPropsFactory(props, state, setState) {
11764
11790
  }
11765
11791
  return {};
11766
11792
  };
11767
-
11768
- // eslint-disable-next-line max-statements, complexity, max-len
11769
11793
  return function getTransitionProps(child, index) {
11770
11794
  const data = getChildData(child) || [];
11771
11795
  const animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.animate, child.props.animate);