victory-scatter 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.
@@ -48,7 +48,7 @@ const getBubbleSize = (datum, props) => {
48
48
  const zMin = Math.min(...zData);
49
49
  const zMax = Math.max(...zData);
50
50
  const getMaxRadius = () => {
51
- const minPadding = Math.min(...Object.values(victory_core__WEBPACK_IMPORTED_MODULE_0__.getPadding(props)));
51
+ const minPadding = Math.min(...Object.values(victory_core__WEBPACK_IMPORTED_MODULE_0__.getPadding(props.padding)));
52
52
  return Math.max(minPadding, 5); // eslint-disable-line no-magic-numbers
53
53
  };
54
54
  const maxRadius = maxBubbleSize || getMaxRadius();
@@ -213,7 +213,7 @@ const fallbackProps = {
213
213
  symbol: "circle"
214
214
  };
215
215
 
216
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
216
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
217
217
 
218
218
  /**
219
219
  * Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
@@ -4730,10 +4730,10 @@ __webpack_require__.r(__webpack_exports__);
4730
4730
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
4731
4731
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
4732
4732
  /* harmony export */ });
4733
- /* 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");
4734
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
4735
- /* 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");
4736
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
4733
+ /* 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");
4734
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
4735
+ /* 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");
4736
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
4737
4737
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
4738
4738
 
4739
4739
 
@@ -4759,7 +4759,7 @@ const isInterpolatable = function (obj) {
4759
4759
  return false;
4760
4760
  case "object":
4761
4761
  // Don't try to interpolate class instances (except Date or Array).
4762
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
4762
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
4763
4763
  case "function":
4764
4764
  // Careful! There may be extra properties on function objects that the
4765
4765
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -4819,7 +4819,7 @@ const interpolateFunction = function (a, b) {
4819
4819
  return b;
4820
4820
  }
4821
4821
  return function () {
4822
- /* eslint-disable no-invalid-this, prefer-rest-params */
4822
+ /* eslint-disable prefer-rest-params */
4823
4823
  const aval = typeof a === "function" ? a.apply(this, arguments) : a;
4824
4824
  const bval = typeof b === "function" ? b.apply(this, arguments) : b;
4825
4825
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(aval, bval)(t);
@@ -4845,7 +4845,7 @@ const interpolateObject = function (startValue, endValue) {
4845
4845
  if (typeof x === "function" || typeof y === "function") {
4846
4846
  return interpolateFunction(x, y);
4847
4847
  }
4848
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
4848
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
4849
4849
  return interpolateObject(x, y);
4850
4850
  }
4851
4851
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -4854,7 +4854,7 @@ const interpolateObject = function (startValue, endValue) {
4854
4854
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
4855
4855
  // based on "key" instead of index
4856
4856
  const keyData = val => {
4857
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
4857
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
4858
4858
  };
4859
4859
  const i = {};
4860
4860
  const c = {};
@@ -4921,7 +4921,7 @@ const victoryInterpolator = function (a, b) {
4921
4921
  if (typeof a === "function" || typeof b === "function") {
4922
4922
  return interpolateFunction(a, b);
4923
4923
  }
4924
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
4924
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
4925
4925
  // @ts-expect-error These generics are tough, but they work :)
4926
4926
  return interpolateObject(a, b);
4927
4927
  }
@@ -5097,16 +5097,15 @@ __webpack_require__.r(__webpack_exports__);
5097
5097
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
5098
5098
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
5099
5099
  /* harmony export */ });
5100
- /* 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");
5101
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5102
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5103
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5100
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5101
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5102
+ /* 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");
5103
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
5104
5104
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
5105
5105
  /* 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");
5106
5106
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
5107
5107
  /* 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");
5108
5108
  /* 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");
5109
-
5110
5109
  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); }
5111
5110
 
5112
5111
 
@@ -5114,9 +5113,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5114
5113
 
5115
5114
 
5116
5115
 
5116
+
5117
5117
  const defaultProps = {
5118
5118
  className: "VictoryContainer",
5119
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5119
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5120
5120
  portalZIndex: 99,
5121
5121
  responsive: true,
5122
5122
  role: "img"
@@ -5133,10 +5133,10 @@ function useVictoryContainer(initialProps) {
5133
5133
  height,
5134
5134
  responsive
5135
5135
  } = props;
5136
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
5136
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
5137
5137
 
5138
5138
  // Generated ID stored in ref because it needs to persist across renders
5139
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
5139
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
5140
5140
  const containerId = props.containerId ?? generatedId.current;
5141
5141
  const getIdForElement = elName => `${containerId}-${elName}`;
5142
5142
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -5195,7 +5195,7 @@ const VictoryContainer = initialProps => {
5195
5195
  containerRef,
5196
5196
  localContainerRef
5197
5197
  } = useVictoryContainer(initialProps);
5198
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
5198
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5199
5199
  if (!events?.onWheel) return;
5200
5200
  const handleWheel = e => e.preventDefault();
5201
5201
  const container = localContainerRef?.current;
@@ -5205,21 +5205,21 @@ const VictoryContainer = initialProps => {
5205
5205
  };
5206
5206
  // eslint-disable-next-line react-hooks/exhaustive-deps
5207
5207
  }, []);
5208
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5208
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5209
5209
  className: className,
5210
5210
  style: {
5211
5211
  ...style,
5212
5212
  width: responsive ? style?.width : dimensions.width,
5213
5213
  height: responsive ? style?.height : dimensions.height,
5214
- pointerEvents: "none",
5215
- touchAction: "none",
5216
- position: "relative"
5214
+ pointerEvents: style?.pointerEvents ?? "none",
5215
+ touchAction: style?.touchAction ?? "none",
5216
+ position: style?.position ?? "relative"
5217
5217
  },
5218
5218
  "data-ouia-component-id": ouiaId,
5219
5219
  "data-ouia-component-type": ouiaType,
5220
5220
  "data-ouia-safe": ouiaSafe,
5221
5221
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
5222
- }, /*#__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({
5222
+ }, /*#__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({
5223
5223
  width: width,
5224
5224
  height: height,
5225
5225
  tabIndex: tabIndex,
@@ -5232,11 +5232,11 @@ const VictoryContainer = initialProps => {
5232
5232
  ...dimensions,
5233
5233
  pointerEvents: "all"
5234
5234
  }
5235
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
5235
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
5236
5236
  id: titleId
5237
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
5237
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
5238
5238
  id: descId
5239
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5239
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5240
5240
  style: {
5241
5241
  ...dimensions,
5242
5242
  zIndex: portalZIndex,
@@ -5244,7 +5244,7 @@ const VictoryContainer = initialProps => {
5244
5244
  top: 0,
5245
5245
  left: 0
5246
5246
  }
5247
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5247
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5248
5248
  as: portalComponent,
5249
5249
  width: width,
5250
5250
  height: height,
@@ -5271,12 +5271,12 @@ __webpack_require__.r(__webpack_exports__);
5271
5271
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5272
5272
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
5273
5273
  /* harmony export */ });
5274
- /* 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");
5275
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5274
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5275
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5276
5276
  /* 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");
5277
5277
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5278
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5279
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5278
+ /* 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");
5279
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
5280
5280
  /* 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");
5281
5281
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
5282
5282
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -5287,9 +5287,9 @@ __webpack_require__.r(__webpack_exports__);
5287
5287
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
5288
5288
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
5289
5289
  /* 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");
5290
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5290
5291
 
5291
5292
 
5292
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5293
5293
 
5294
5294
 
5295
5295
 
@@ -5341,7 +5341,7 @@ const shouldUseMultilineBackgrounds = props => {
5341
5341
  backgroundStyle,
5342
5342
  backgroundPadding
5343
5343
  } = props;
5344
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
5344
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
5345
5345
  };
5346
5346
  const getStyles = (style, props) => {
5347
5347
  if (props.disableInlineStyles) {
@@ -5357,32 +5357,28 @@ const getStyles = (style, props) => {
5357
5357
  fontSize: getFontSize(baseStyles)
5358
5358
  });
5359
5359
  };
5360
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5360
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5361
5361
  };
5362
5362
  const getBackgroundStyles = (style, props) => {
5363
5363
  if (!style) {
5364
5364
  return undefined;
5365
5365
  }
5366
- 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);
5366
+ 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);
5367
5367
  };
5368
5368
  const getBackgroundPadding = props => {
5369
5369
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
5370
5370
  return props.backgroundPadding.map(backgroundPadding => {
5371
5371
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
5372
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5373
- padding
5374
- });
5372
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5375
5373
  });
5376
5374
  }
5377
5375
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
5378
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5379
- padding
5380
- });
5376
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5381
5377
  };
5382
5378
  const getLineHeight = props => {
5383
5379
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
5384
5380
  if (Array.isArray(lineHeight)) {
5385
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
5381
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
5386
5382
  }
5387
5383
  return lineHeight;
5388
5384
  };
@@ -5502,7 +5498,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
5502
5498
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
5503
5499
  y: yCoordinate
5504
5500
  };
5505
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5501
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5506
5502
  };
5507
5503
  const getInlineXOffset = (calculatedProps, textElements, index) => {
5508
5504
  const {
@@ -5572,7 +5568,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
5572
5568
  x: xCoord - padding.left,
5573
5569
  y: yCoord
5574
5570
  };
5575
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5571
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5576
5572
  });
5577
5573
  };
5578
5574
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -5703,16 +5699,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
5703
5699
  style: currentStyle,
5704
5700
  children: line
5705
5701
  };
5706
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
5702
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
5707
5703
  });
5708
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
5704
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
5709
5705
  };
5710
5706
  const defaultProps = {
5711
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
5712
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
5707
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
5708
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
5713
5709
  direction: "inherit",
5714
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
5715
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
5710
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
5711
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
5716
5712
  capHeight: 0.71,
5717
5713
  // Magic number from d3.
5718
5714
  lineHeight: 1
@@ -5749,10 +5745,10 @@ const VictoryLabel = initialProps => {
5749
5745
  if (props.backgroundStyle) {
5750
5746
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
5751
5747
  const children = [backgroundElement, label];
5752
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
5753
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
5748
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
5749
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
5754
5750
  }
5755
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
5751
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
5756
5752
  };
5757
5753
  VictoryLabel.displayName = "VictoryLabel";
5758
5754
  VictoryLabel.role = "label";
@@ -5878,12 +5874,12 @@ __webpack_require__.r(__webpack_exports__);
5878
5874
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5879
5875
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
5880
5876
  /* harmony export */ });
5881
- /* 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");
5882
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5877
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5878
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5883
5879
  /* 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");
5884
5880
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5885
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5886
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5881
+ /* 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");
5882
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
5887
5883
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
5888
5884
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
5889
5885
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -5894,14 +5890,14 @@ __webpack_require__.r(__webpack_exports__);
5894
5890
 
5895
5891
 
5896
5892
  const defaultProps = {
5897
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
5893
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
5898
5894
  };
5899
5895
  const VictoryPortal = initialProps => {
5900
5896
  const props = {
5901
5897
  ...defaultProps,
5902
5898
  ...initialProps
5903
5899
  };
5904
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
5900
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
5905
5901
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
5906
5902
  if (!portalContext) {
5907
5903
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -5919,12 +5915,12 @@ const VictoryPortal = initialProps => {
5919
5915
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
5920
5916
  key: childProps.key ?? id
5921
5917
  });
5922
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
5923
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
5918
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
5919
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5924
5920
  portalContext?.addChild(id, child);
5925
5921
  // eslint-disable-next-line react-hooks/exhaustive-deps
5926
5922
  }, [props.children]);
5927
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
5923
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5928
5924
  return () => portalContext?.removeChild(id);
5929
5925
  // eslint-disable-next-line react-hooks/exhaustive-deps
5930
5926
  }, []);
@@ -5987,10 +5983,10 @@ __webpack_require__.r(__webpack_exports__);
5987
5983
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5988
5984
  /* harmony export */ "Point": function() { return /* binding */ Point; }
5989
5985
  /* harmony export */ });
5990
- /* 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");
5991
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
5992
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5993
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5986
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5987
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5988
+ /* 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");
5989
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5994
5990
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
5995
5991
  /* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
5996
5992
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
@@ -6044,14 +6040,14 @@ const evaluateProps = props => {
6044
6040
  });
6045
6041
  };
6046
6042
  const defaultProps = {
6047
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
6043
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
6048
6044
  role: "presentation",
6049
6045
  shapeRendering: "auto"
6050
6046
  };
6051
6047
  const Point = initialProps => {
6052
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6048
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6053
6049
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__.getSafeUserProps(props);
6054
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
6050
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
6055
6051
  ...props.events,
6056
6052
  "aria-label": props.ariaLabel,
6057
6053
  d: getPath(props),
@@ -7321,22 +7317,22 @@ __webpack_require__.r(__webpack_exports__);
7321
7317
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7322
7318
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
7323
7319
  /* harmony export */ });
7324
- /* 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");
7325
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7320
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7321
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7326
7322
  /* 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");
7327
7323
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7328
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
7329
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
7324
+ /* 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");
7325
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
7326
+ /* 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");
7327
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7330
7328
  /* 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");
7331
7329
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
7332
7330
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7333
7331
  /* 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");
7334
7332
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
7335
- /* 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");
7336
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7333
+ 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); }
7337
7334
 
7338
7335
 
7339
- 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); }
7340
7336
 
7341
7337
 
7342
7338
 
@@ -7344,7 +7340,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
7344
7340
 
7345
7341
 
7346
7342
 
7347
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
7343
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
7348
7344
  static displayName = "VictoryTransition";
7349
7345
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
7350
7346
  constructor(props, context) {
@@ -7361,7 +7357,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7361
7357
  componentDidMount() {
7362
7358
  this.setState({
7363
7359
  nodesShouldLoad: true
7364
- }); // eslint-disable-line react/no-did-mount-set-state
7360
+ });
7365
7361
  }
7366
7362
  shouldComponentUpdate(nextProps) {
7367
7363
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(this.props, nextProps)) {
@@ -7387,8 +7383,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7387
7383
  nextProps
7388
7384
  };
7389
7385
  }
7390
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
7391
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
7386
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
7387
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
7392
7388
  const {
7393
7389
  nodesWillExit,
7394
7390
  nodesWillEnter,
@@ -7411,12 +7407,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7411
7407
  const childDomain = child.props && child.type.getDomain(child.props, axis);
7412
7408
  return childDomain ? memo.concat(childDomain) : memo;
7413
7409
  } else if (child.props && child.props.children) {
7414
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
7410
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
7415
7411
  }
7416
7412
  return memo;
7417
7413
  }, []);
7418
7414
  };
7419
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7415
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7420
7416
  const childProps = child.props || {};
7421
7417
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
7422
7418
  if (!childProps.children && domain) {
@@ -7449,7 +7445,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7449
7445
  render() {
7450
7446
  const props = this.pickProps();
7451
7447
  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));
7452
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7448
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7453
7449
  const transitionProps = getTransitionProps(child);
7454
7450
  this.transitionProps = transitionProps;
7455
7451
  const domain = {
@@ -7463,21 +7459,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7463
7459
  }, transitionProps, child.props);
7464
7460
  const animationWhitelist = props.animationWhitelist || [];
7465
7461
  const whitelist = animationWhitelist.concat(["clipWidth"]);
7466
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
7467
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7462
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
7463
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7468
7464
  data: propsToAnimate
7469
7465
  }), newProps => {
7470
7466
  if (child.props.groupComponent) {
7471
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
7467
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
7472
7468
  clipWidth: newProps.clipWidth || 0
7473
7469
  }) : child.props.groupComponent;
7474
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7470
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7475
7471
  animate: null,
7476
7472
  animating: true,
7477
7473
  groupComponent
7478
7474
  }, newProps, combinedProps));
7479
7475
  }
7480
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7476
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7481
7477
  animate: null,
7482
7478
  animating: true
7483
7479
  }, newProps, combinedProps));
@@ -7498,14 +7494,14 @@ __webpack_require__.r(__webpack_exports__);
7498
7494
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7499
7495
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
7500
7496
  /* harmony export */ });
7501
- /* 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");
7502
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7503
- /* 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");
7504
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
7505
- /* 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");
7506
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
7507
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
7508
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
7497
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7498
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7499
+ /* 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");
7500
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7501
+ /* 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");
7502
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
7503
+ /* 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");
7504
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
7509
7505
  /* 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");
7510
7506
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
7511
7507
  /* 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");
@@ -7575,7 +7571,7 @@ const defaultComponents = [{
7575
7571
  function addEvents(WrappedComponent, options) {
7576
7572
  if (options === void 0) {
7577
7573
  options = {};
7578
- } // eslint-disable-next-line @typescript-eslint/no-empty-interface
7574
+ } // eslint-disable-next-line @typescript-eslint/no-empty-object-type
7579
7575
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
7580
7576
  class AddEventsMixin extends WrappedComponent {
7581
7577
  constructor(props) {
@@ -7652,8 +7648,8 @@ function addEvents(WrappedComponent, options) {
7652
7648
  return {};
7653
7649
  }
7654
7650
  const getState = (key, type) => {
7655
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
7656
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
7651
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
7652
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
7657
7653
  };
7658
7654
  const components = options.components || defaultComponents;
7659
7655
  const stateChanges = components.map(component => {
@@ -7666,7 +7662,7 @@ function addEvents(WrappedComponent, options) {
7666
7662
  return stateChanges;
7667
7663
  }
7668
7664
  applyExternalMutations(props, externalMutations) {
7669
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
7665
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
7670
7666
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
7671
7667
  const compiledCallbacks = callbacks.length ? () => {
7672
7668
  callbacks.forEach(c => c());
@@ -7699,7 +7695,7 @@ function addEvents(WrappedComponent, options) {
7699
7695
  sharedEvents,
7700
7696
  externalEventMutations
7701
7697
  } = props;
7702
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
7698
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
7703
7699
  }
7704
7700
  cacheValues(obj) {
7705
7701
  Object.keys(obj).forEach(key => {
@@ -7710,10 +7706,10 @@ function addEvents(WrappedComponent, options) {
7710
7706
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
7711
7707
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
7712
7708
  const parentState = this.getEventState("parent", "parent");
7713
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
7709
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
7714
7710
  const parentPropsList = baseParentProps.parentControlledProps;
7715
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
7716
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
7711
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
7712
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
7717
7713
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
7718
7714
  }
7719
7715
  getAllEvents(props) {
@@ -7733,18 +7729,18 @@ function addEvents(WrappedComponent, options) {
7733
7729
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
7734
7730
  if (this.hasEvents) {
7735
7731
  const baseEvents = this.getEvents(this.props, type, key);
7736
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
7732
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7737
7733
  index,
7738
7734
  key: id
7739
7735
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
7740
7736
  id
7741
7737
  });
7742
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
7738
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
7743
7739
  return Object.assign({}, componentProps, {
7744
7740
  events
7745
7741
  });
7746
7742
  }
7747
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
7743
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7748
7744
  index,
7749
7745
  key: id
7750
7746
  }, currentProps, baseProps, {
@@ -7758,15 +7754,15 @@ function addEvents(WrappedComponent, options) {
7758
7754
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
7759
7755
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
7760
7756
  }
7761
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
7757
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
7762
7758
  }
7763
7759
  animateComponent(props, defaultAnimationWhitelist) {
7764
7760
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
7765
7761
  const Comp = this.constructor;
7766
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
7762
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
7767
7763
  animate: props.animate,
7768
7764
  animationWhitelist: animationWhitelist
7769
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
7765
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
7770
7766
  }
7771
7767
 
7772
7768
  // Used by `VictoryLine` and `VictoryArea`
@@ -7781,12 +7777,12 @@ function addEvents(WrappedComponent, options) {
7781
7777
  let newMemo = memo;
7782
7778
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
7783
7779
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
7784
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
7780
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
7785
7781
  }
7786
7782
  return newMemo;
7787
7783
  }, []);
7788
7784
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
7789
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
7785
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
7790
7786
  return this.renderContainer(groupComponent, children);
7791
7787
  }
7792
7788
  renderData(props, shouldRenderDatum) {
@@ -7801,14 +7797,14 @@ function addEvents(WrappedComponent, options) {
7801
7797
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
7802
7798
  const dataProps = this.getComponentProps(dataComponent, "data", index);
7803
7799
  if (shouldRenderDatum(dataProps.datum)) {
7804
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
7800
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
7805
7801
  }
7806
7802
  return validDataComponents;
7807
7803
  }, []);
7808
7804
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
7809
7805
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
7810
7806
  if (labelProps.text !== undefined && labelProps.text !== null) {
7811
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
7807
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
7812
7808
  }
7813
7809
  return undefined;
7814
7810
  }).filter(Boolean);
@@ -7914,24 +7910,24 @@ __webpack_require__.r(__webpack_exports__);
7914
7910
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
7915
7911
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
7916
7912
  /* harmony export */ });
7917
- /* 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");
7918
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
7919
- /* 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");
7920
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
7913
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7914
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7915
+ /* 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");
7916
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
7921
7917
  /* 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");
7922
7918
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
7923
- /* 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");
7924
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
7925
- /* 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");
7926
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
7927
- /* 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");
7928
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
7929
- /* 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");
7930
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
7931
- /* 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");
7932
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
7933
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
7934
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
7919
+ /* 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");
7920
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
7921
+ /* 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");
7922
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
7923
+ /* 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");
7924
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
7925
+ /* 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");
7926
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
7927
+ /* 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");
7928
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
7929
+ /* 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");
7930
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
7935
7931
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
7936
7932
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
7937
7933
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
@@ -7944,7 +7940,6 @@ __webpack_require__.r(__webpack_exports__);
7944
7940
 
7945
7941
 
7946
7942
 
7947
- /* eslint-disable no-use-before-define */
7948
7943
 
7949
7944
 
7950
7945
 
@@ -7966,7 +7961,7 @@ function getLength(data) {
7966
7961
 
7967
7962
  // Returns generated data for a given axis based on domain and sample from props
7968
7963
  function generateDataArray(props, axis) {
7969
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
7964
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
7970
7965
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
7971
7966
  const samples = props.samples || 1;
7972
7967
  const domainMax = Math.max(...domain);
@@ -7991,7 +7986,7 @@ function sortData(dataset, sortKey, sortOrder) {
7991
7986
  formattedSortKey = `_${sortKey}`;
7992
7987
  }
7993
7988
  const order = sortOrder === "ascending" ? "asc" : "desc";
7994
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
7989
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
7995
7990
  }
7996
7991
 
7997
7992
  // This method will remove data points that break certain scales. (log scale only)
@@ -8035,7 +8030,7 @@ function getEventKey(key) {
8035
8030
  return () => undefined;
8036
8031
  }
8037
8032
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
8038
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
8033
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
8039
8034
  }
8040
8035
 
8041
8036
  // Returns data with an eventKey prop added to each datum
@@ -8070,8 +8065,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8070
8065
  const isUnderMinY = underMin(minDomainY);
8071
8066
  const isOverMaxX = overMax(maxDomainX);
8072
8067
  const isOverMaxY = overMax(maxDomainY);
8073
-
8074
- // eslint-disable-next-line complexity
8075
8068
  return dataset.map(datum => {
8076
8069
  let {
8077
8070
  _x,
@@ -8096,12 +8089,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8096
8089
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
8097
8090
  // baseline and value with only baseline above max, set baseline to maxDomainY
8098
8091
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
8099
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
8092
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
8100
8093
  _x,
8101
8094
  _y,
8102
8095
  _y0,
8103
8096
  _y1
8104
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
8097
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
8105
8098
  });
8106
8099
  }
8107
8100
 
@@ -8115,7 +8108,7 @@ function createStringMap(props, axis) {
8115
8108
  const stringsFromAxes = getStringsFromAxes(props, axis);
8116
8109
  const stringsFromCategories = getStringsFromCategories(props, axis);
8117
8110
  const stringsFromData = getStringsFromData(props, axis);
8118
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8111
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8119
8112
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
8120
8113
  memo[string] = index + 1;
8121
8114
  return memo;
@@ -8182,7 +8175,6 @@ function formatData(dataset, props, expectedKeys) {
8182
8175
  };
8183
8176
  }
8184
8177
  const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
8185
- // eslint-disable-line complexity
8186
8178
  const parsedDatum = parseDatum(datum);
8187
8179
  const fallbackValues = {
8188
8180
  x: index,
@@ -8202,7 +8194,7 @@ function formatData(dataset, props, expectedKeys) {
8202
8194
  return memo;
8203
8195
  }, {});
8204
8196
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
8205
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
8197
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
8206
8198
  dataArr.push(formattedDatum);
8207
8199
  }
8208
8200
  return dataArr;
@@ -8329,7 +8321,7 @@ function isDataComponent(component) {
8329
8321
  };
8330
8322
  let role = getRole(component);
8331
8323
  if (role === "portal") {
8332
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
8324
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
8333
8325
  role = children.length ? getRole(children[0]) : "";
8334
8326
  }
8335
8327
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -8464,14 +8456,14 @@ __webpack_require__.r(__webpack_exports__);
8464
8456
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
8465
8457
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
8466
8458
  /* harmony export */ });
8467
- /* 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");
8468
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
8469
- /* 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");
8470
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
8459
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8460
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8461
+ /* 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");
8462
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
8471
8463
  /* 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");
8472
8464
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
8473
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8474
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8465
+ /* 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");
8466
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
8475
8467
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
8476
8468
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
8477
8469
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -8479,7 +8471,6 @@ __webpack_require__.r(__webpack_exports__);
8479
8471
 
8480
8472
 
8481
8473
 
8482
- /* eslint-disable no-use-before-define */
8483
8474
 
8484
8475
 
8485
8476
 
@@ -8535,8 +8526,6 @@ function getExtremeFromData(dataset, axis, type) {
8535
8526
  }, initialValue);
8536
8527
  return containsDate ? new Date(result) : result;
8537
8528
  }
8538
-
8539
- // eslint-disable-next-line max-statements
8540
8529
  function padDomain(domain, props, axis) {
8541
8530
  if (!props.domainPadding) {
8542
8531
  return domain;
@@ -8563,9 +8552,9 @@ function padDomain(domain, props, axis) {
8563
8552
  max: max.valueOf() + simplePadding.right
8564
8553
  };
8565
8554
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
8566
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
8555
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
8567
8556
  const adjust = (val, type) => {
8568
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
8557
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
8569
8558
  return coerce ? 0 : val;
8570
8559
  };
8571
8560
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -8788,7 +8777,7 @@ function getMaxFromProps(props, axis) {
8788
8777
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
8789
8778
  return props.maxDomain[axis];
8790
8779
  }
8791
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
8780
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
8792
8781
  }
8793
8782
 
8794
8783
  /**
@@ -8801,7 +8790,7 @@ function getMinFromProps(props, axis) {
8801
8790
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
8802
8791
  return props.minDomain[axis];
8803
8792
  }
8804
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
8793
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
8805
8794
  }
8806
8795
 
8807
8796
  /**
@@ -8812,7 +8801,7 @@ function getMinFromProps(props, axis) {
8812
8801
  * @returns {Array} the symmetric domain
8813
8802
  */
8814
8803
  function getSymmetricDomain(domain, values) {
8815
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
8804
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
8816
8805
  const step = processedData[1] - processedData[0];
8817
8806
  return [domain[0], domain[1] + step];
8818
8807
  }
@@ -8828,7 +8817,7 @@ function isDomainComponent(component) {
8828
8817
  };
8829
8818
  let role = getRole(component);
8830
8819
  if (role === "portal") {
8831
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
8820
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
8832
8821
  role = children.length ? getRole(children[0]) : "";
8833
8822
  }
8834
8823
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -8859,20 +8848,19 @@ __webpack_require__.r(__webpack_exports__);
8859
8848
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
8860
8849
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
8861
8850
  /* harmony export */ });
8862
- /* 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");
8863
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
8864
- /* 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");
8865
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
8866
- /* 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");
8867
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
8868
- /* 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");
8869
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
8851
+ /* 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");
8852
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
8853
+ /* 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");
8854
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
8855
+ /* 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");
8856
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
8857
+ /* 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");
8858
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
8870
8859
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8871
8860
 
8872
8861
 
8873
8862
 
8874
8863
 
8875
- /* eslint-disable no-use-before-define */
8876
8864
 
8877
8865
  const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
8878
8866
 
@@ -8920,11 +8908,10 @@ getScopedEvents) {
8920
8908
  */
8921
8909
  const getAllEvents = () => {
8922
8910
  // Mandatory usage: `getEvents.bind(this)`
8923
- /* eslint-disable no-invalid-this */
8911
+
8924
8912
  if (Array.isArray(this.componentEvents)) {
8925
8913
  return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
8926
8914
  }
8927
- /* eslint-enable no-invalid-this */
8928
8915
  return props.events;
8929
8916
  };
8930
8917
  const allEvents = getAllEvents();
@@ -8944,12 +8931,12 @@ getScopedEvents) {
8944
8931
  */
8945
8932
  // eslint-disable-next-line max-params
8946
8933
  function getScopedEvents(events, namespace, childType, baseProps) {
8947
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
8934
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
8948
8935
  return {};
8949
8936
  }
8950
8937
 
8951
8938
  // Mandatory usage: `getScopedEvents.bind(this)`
8952
- // eslint-disable-next-line no-invalid-this
8939
+
8953
8940
  const newBaseProps = baseProps || this.baseProps;
8954
8941
  // returns the original base props or base state of a given target element
8955
8942
  const getTargetProps = (identifier, type) => {
@@ -8958,7 +8945,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
8958
8945
  target,
8959
8946
  key
8960
8947
  } = identifier;
8961
- // eslint-disable-next-line no-invalid-this
8962
8948
  const baseType = type === "props" ? newBaseProps : this.state || {};
8963
8949
  const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
8964
8950
  return key === "parent" ? base.parent : base[key] && base[key][target];
@@ -8985,7 +8971,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
8985
8971
 
8986
8972
  // returns the state object with mutated props applied for a single key
8987
8973
  const getMutationObject = (key, childName) => {
8988
- // eslint-disable-next-line no-invalid-this
8989
8974
  const baseState = this.state || {};
8990
8975
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
8991
8976
  return baseState;
@@ -9058,11 +9043,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9058
9043
  // into a state mutation, and calls setState
9059
9044
  // eslint-disable-next-line max-params
9060
9045
  const onEvent = (evt, childProps, eventKey, eventName) => {
9061
- // eslint-disable-next-line no-invalid-this
9062
9046
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
9063
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
9047
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
9064
9048
  const callbacks = compileCallbacks(eventReturn);
9065
- // eslint-disable-next-line no-invalid-this
9066
9049
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
9067
9050
  }
9068
9051
  };
@@ -9092,7 +9075,7 @@ function getPartialEvents(events, eventKey, childProps) {
9092
9075
  // eslint-disable-next-line max-params
9093
9076
  function getEventState(eventKey, namespace, childType) {
9094
9077
  // Mandatory usage: `getEventState.bind(this)`
9095
- // eslint-disable-next-line no-invalid-this
9078
+
9096
9079
  const state = this.state || {};
9097
9080
  if (!childType) {
9098
9081
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
@@ -9122,7 +9105,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
9122
9105
  const childState = baseState[childName];
9123
9106
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
9124
9107
  memo[childName] = mutation ? mutation : childState;
9125
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9108
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9126
9109
  }, {});
9127
9110
  }
9128
9111
 
@@ -9158,7 +9141,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9158
9141
  } else {
9159
9142
  // use keys from both state and props so that elements not intially included in baseProps
9160
9143
  // will be used. (i.e. labels)
9161
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9144
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9162
9145
  memo[eventKey] = targets.reduce((m, target) => {
9163
9146
  const identifier = {
9164
9147
  eventKey,
@@ -9167,10 +9150,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9167
9150
  };
9168
9151
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
9169
9152
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
9170
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9153
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9171
9154
  }, {});
9172
9155
  }
9173
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9156
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9174
9157
  }, {});
9175
9158
  }
9176
9159
 
@@ -9202,11 +9185,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
9202
9185
  }
9203
9186
  // find any mutation objects that match the target
9204
9187
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
9205
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
9188
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
9206
9189
  return undefined;
9207
9190
  }
9208
9191
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
9209
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
9192
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
9210
9193
  return undefined;
9211
9194
  }
9212
9195
  return keyMutations.reduce((memo, curr) => {
@@ -9232,8 +9215,8 @@ function getGlobalEventNameFromKey(key) {
9232
9215
  const match = key.match(GLOBAL_EVENT_REGEX);
9233
9216
  return match && match[1] && match[1].toLowerCase();
9234
9217
  }
9235
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9236
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9218
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9219
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9237
9220
  const emulateReactEvent = event => Object.assign(event, {
9238
9221
  nativeEvent: event
9239
9222
  });
@@ -9274,41 +9257,45 @@ __webpack_require__.r(__webpack_exports__);
9274
9257
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
9275
9258
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
9276
9259
  /* harmony export */ });
9277
- /* 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");
9278
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9279
- /* 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");
9280
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
9281
- /* 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");
9282
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9283
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9284
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9285
-
9260
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9261
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9262
+ /* 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");
9263
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
9264
+ /* 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");
9265
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
9266
+ /* 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");
9267
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
9286
9268
 
9287
9269
 
9288
- /* eslint-disable no-use-before-define */
9289
9270
 
9290
- // Private Functions
9291
9271
 
9292
- function getCartesianRange(props, axis) {
9293
- // determine how to lay the axis and what direction positive and negative are
9294
- const vertical = axis !== "x";
9295
- const padding = getPadding(props);
9272
+ /**
9273
+ * Determine the range of a cartesian axis
9274
+ */
9275
+ function getCartesianRange(options) {
9276
+ const vertical = options.axis !== "x";
9296
9277
  if (vertical) {
9297
- return [props.height - padding.bottom, padding.top];
9278
+ return [options.height - options.padding.bottom, options.padding.top];
9298
9279
  }
9299
- return [padding.left, props.width - padding.right];
9280
+ return [options.padding.left, options.width - options.padding.right];
9300
9281
  }
9301
- function getPolarRange(props, axis) {
9302
- if (axis === "x") {
9303
- const startAngle = degreesToRadians(props.startAngle || 0);
9304
- const endAngle = degreesToRadians(props.endAngle || 360);
9282
+
9283
+ /**
9284
+ * Determine the range of a polar axis in radians
9285
+ */
9286
+ function getPolarRange(options) {
9287
+ if (options.axis === "x") {
9288
+ const startAngle = degreesToRadians(options.startAngle || 0);
9289
+ const endAngle = degreesToRadians(options.endAngle || 360);
9305
9290
  return [startAngle, endAngle];
9306
9291
  }
9307
- return [props.innerRadius || 0, getRadius(props)];
9292
+ return [options.innerRadius || 0, getRadius({
9293
+ height: options.height,
9294
+ width: options.width,
9295
+ padding: options.padding
9296
+ })];
9308
9297
  }
9309
9298
 
9310
- // Exported Functions
9311
-
9312
9299
  /**
9313
9300
  * Creates an object composed of the inverted keys and values of object.
9314
9301
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -9345,8 +9332,11 @@ function omit(originalObject, ks) {
9345
9332
  }
9346
9333
  return newObject;
9347
9334
  }
9335
+
9336
+ /**
9337
+ * Coalesce the x and y values from a data point
9338
+ */
9348
9339
  function getPoint(datum) {
9349
- const exists = val => val !== undefined;
9350
9340
  const {
9351
9341
  _x,
9352
9342
  _x1,
@@ -9357,16 +9347,20 @@ function getPoint(datum) {
9357
9347
  _y0,
9358
9348
  _voronoiY
9359
9349
  } = datum;
9360
- const defaultX = exists(_x1) ? _x1 : _x;
9361
- const defaultY = exists(_y1) ? _y1 : _y;
9350
+ const defaultX = _x1 ?? _x;
9351
+ const defaultY = _y1 ?? _y;
9362
9352
  const point = {
9363
- x: exists(_voronoiX) ? _voronoiX : defaultX,
9364
- x0: exists(_x0) ? _x0 : _x,
9365
- y: exists(_voronoiY) ? _voronoiY : defaultY,
9366
- y0: exists(_y0) ? _y0 : _y
9353
+ x: _voronoiX ?? defaultX,
9354
+ x0: _x0 ?? _x,
9355
+ y: _voronoiY ?? defaultY,
9356
+ y0: _y0 ?? _y
9367
9357
  };
9368
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
9358
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
9369
9359
  }
9360
+
9361
+ /**
9362
+ * Scale a point based on the origin, direction, and given scale function
9363
+ */
9370
9364
  function scalePoint(props, datum) {
9371
9365
  const {
9372
9366
  scale,
@@ -9389,11 +9383,11 @@ function scalePoint(props, datum) {
9389
9383
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
9390
9384
  };
9391
9385
  }
9392
- function getPadding(props, name) {
9393
- if (name === void 0) {
9394
- name = "padding";
9395
- }
9396
- const padding = props[name];
9386
+
9387
+ /**
9388
+ * Returns a padding value from a number or partial padding values
9389
+ */
9390
+ function getPadding(padding) {
9397
9391
  const paddingVal = typeof padding === "number" ? padding : 0;
9398
9392
  const paddingObj = typeof padding === "object" ? padding : {};
9399
9393
  return {
@@ -9403,6 +9397,10 @@ function getPadding(props, name) {
9403
9397
  right: paddingObj.right || paddingVal
9404
9398
  };
9405
9399
  }
9400
+
9401
+ /**
9402
+ * Returns true if the component is defined as a tooltip
9403
+ */
9406
9404
  function isTooltip(component) {
9407
9405
  const labelRole = component && component.type && component.type.role;
9408
9406
  return labelRole === "tooltip";
@@ -9417,8 +9415,8 @@ function getDefaultStyles(props, role) {
9417
9415
  return defaultStyles;
9418
9416
  }
9419
9417
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
9420
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
9421
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
9418
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
9419
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
9422
9420
  labels: labelStyle
9423
9421
  }, defaultStyles);
9424
9422
  }
@@ -9426,7 +9424,7 @@ function getStyles(style, defaultStyles) {
9426
9424
  const width = "100%";
9427
9425
  const height = "100%";
9428
9426
  if (!style) {
9429
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9427
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
9430
9428
  parent: {
9431
9429
  height,
9432
9430
  width
@@ -9442,14 +9440,18 @@ function getStyles(style, defaultStyles) {
9442
9440
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
9443
9441
  const defaultData = defaultStyles && defaultStyles.data || {};
9444
9442
  return {
9445
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
9443
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
9446
9444
  width,
9447
9445
  height
9448
9446
  }),
9449
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
9450
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
9447
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
9448
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
9451
9449
  };
9452
9450
  }
9451
+
9452
+ /**
9453
+ * Returns the value of a prop or accessor function with the given props
9454
+ */
9453
9455
  function evaluateProp(prop, props) {
9454
9456
  return isFunction(prop) ? prop(props) : prop;
9455
9457
  }
@@ -9471,19 +9473,28 @@ function degreesToRadians(degrees) {
9471
9473
  function radiansToDegrees(radians) {
9472
9474
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
9473
9475
  }
9474
- function getRadius(props) {
9476
+
9477
+ /**
9478
+ * Get the maximum radius that will fit in the container
9479
+ */
9480
+ function getRadius(options) {
9481
+ const {
9482
+ width,
9483
+ height,
9484
+ padding
9485
+ } = options;
9475
9486
  const {
9476
9487
  left,
9477
9488
  right,
9478
9489
  top,
9479
9490
  bottom
9480
- } = getPadding(props);
9481
- const {
9482
- width,
9483
- height
9484
- } = props;
9491
+ } = padding;
9485
9492
  return Math.min(width - left - right, height - top - bottom) / 2;
9486
9493
  }
9494
+
9495
+ /**
9496
+ * Returns the origin for a polar chart within the padded area
9497
+ */
9487
9498
  function getPolarOrigin(props) {
9488
9499
  const {
9489
9500
  width,
@@ -9494,7 +9505,7 @@ function getPolarOrigin(props) {
9494
9505
  bottom,
9495
9506
  left,
9496
9507
  right
9497
- } = getPadding(props);
9508
+ } = getPadding(props.padding);
9498
9509
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
9499
9510
  const offsetWidth = width / 2 + left - right;
9500
9511
  const offsetHeight = height / 2 + top - bottom;
@@ -9503,13 +9514,30 @@ function getPolarOrigin(props) {
9503
9514
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
9504
9515
  };
9505
9516
  }
9517
+
9518
+ /**
9519
+ * Determine the range of an axis based on the given props
9520
+ */
9506
9521
  function getRange(props, axis) {
9507
9522
  if (props.range && props.range[axis]) {
9508
9523
  return props.range[axis];
9509
9524
  } else if (props.range && Array.isArray(props.range)) {
9510
9525
  return props.range;
9511
9526
  }
9512
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
9527
+ return props.polar ? getPolarRange({
9528
+ axis,
9529
+ innerRadius: props.innerRadius,
9530
+ startAngle: props.startAngle,
9531
+ endAngle: props.endAngle,
9532
+ height: props.height,
9533
+ width: props.width,
9534
+ padding: getPadding(props.padding)
9535
+ }) : getCartesianRange({
9536
+ axis,
9537
+ height: props.height,
9538
+ width: props.width,
9539
+ padding: getPadding(props.padding)
9540
+ });
9513
9541
  }
9514
9542
 
9515
9543
  /**
@@ -9541,7 +9569,7 @@ function createAccessor(key) {
9541
9569
  return x => x;
9542
9570
  }
9543
9571
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
9544
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
9572
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
9545
9573
  }
9546
9574
  function modifyProps(props, fallbackProps, role) {
9547
9575
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -9550,7 +9578,7 @@ function modifyProps(props, fallbackProps, role) {
9550
9578
  const defaultObject = horizontal === undefined ? {} : {
9551
9579
  horizontal
9552
9580
  };
9553
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
9581
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
9554
9582
  }
9555
9583
 
9556
9584
  /**
@@ -9637,10 +9665,10 @@ initialMemo, combine) {
9637
9665
  const childRole = child.type && child.type.role;
9638
9666
  const childName = child.props.name || `${childRole}-${names[index]}`;
9639
9667
  if (child.props && child.props.children) {
9640
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
9641
- 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 => {
9642
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
9643
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
9668
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
9669
+ 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 => {
9670
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
9671
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
9644
9672
  });
9645
9673
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
9646
9674
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -9654,7 +9682,7 @@ initialMemo, combine) {
9654
9682
  return newMemo;
9655
9683
  }, initialMemo);
9656
9684
  };
9657
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
9685
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
9658
9686
  const childNames = validChildren.map((c, i) => i);
9659
9687
  return traverseChildren(validChildren, childNames);
9660
9688
  }
@@ -9674,10 +9702,10 @@ function isHorizontal(props) {
9674
9702
  if (memo || childProps.horizontal || !childProps.children) {
9675
9703
  return memo || childProps.horizontal;
9676
9704
  }
9677
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
9705
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
9678
9706
  }, false);
9679
9707
  };
9680
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
9708
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
9681
9709
  }
9682
9710
 
9683
9711
  /***/ }),
@@ -9750,11 +9778,11 @@ __webpack_require__.r(__webpack_exports__);
9750
9778
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
9751
9779
  /* harmony export */ "getText": function() { return /* binding */ getText; }
9752
9780
  /* harmony export */ });
9781
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9753
9782
  /* 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");
9754
9783
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
9755
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9756
9784
 
9757
- /* eslint-disable no-use-before-define */
9785
+
9758
9786
 
9759
9787
  // Private Functions
9760
9788
 
@@ -9999,11 +10027,12 @@ __webpack_require__.r(__webpack_exports__);
9999
10027
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10000
10028
  /* harmony export */ "warn": function() { return /* binding */ warn; }
10001
10029
  /* harmony export */ });
10002
- /* global console */
10030
+ /* global console process */
10003
10031
  /* eslint-disable no-console */
10004
10032
 
10005
- // TODO: Use "warning" npm module like React is switching to.
10006
10033
  function warn(message) {
10034
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10035
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
10007
10036
  if (true) {
10008
10037
  if (console && console.warn) {
10009
10038
  console.warn(message);
@@ -10208,7 +10237,6 @@ __webpack_require__.r(__webpack_exports__);
10208
10237
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
10209
10238
  /* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
10210
10239
 
10211
- /* eslint-disable no-use-before-define */
10212
10240
 
10213
10241
 
10214
10242
 
@@ -10431,13 +10459,15 @@ __webpack_require__.r(__webpack_exports__);
10431
10459
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
10432
10460
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
10433
10461
  /* harmony export */ });
10434
- /* 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");
10435
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
10436
- /* 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");
10437
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10438
-
10439
- // http://www.pearsonified.com/2012/01/characters-per-line.php
10462
+ /* 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");
10463
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
10464
+ /* 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");
10465
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
10466
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
10440
10467
  /* eslint-disable no-magic-numbers */
10468
+
10469
+
10470
+
10441
10471
  // Based on measuring specific character widths
10442
10472
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10443
10473
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -10616,7 +10646,7 @@ const convertLengthToPixels = (length, fontSize) => {
10616
10646
  };
10617
10647
  const _prepareParams = (inputStyle, index) => {
10618
10648
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
10619
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
10649
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
10620
10650
  return Object.assign({}, style, {
10621
10651
  fontFamily: style.fontFamily,
10622
10652
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -10664,7 +10694,7 @@ const _approximateDimensionsInternal = (text, style) => {
10664
10694
  height: heightWithRotate * coefficients.heightOverlapCoef
10665
10695
  };
10666
10696
  };
10667
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
10697
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
10668
10698
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
10669
10699
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
10670
10700
  element.setAttribute("width", "300");
@@ -10685,7 +10715,7 @@ const styleToKeyComponent = style => {
10685
10715
  }
10686
10716
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
10687
10717
  };
10688
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
10718
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
10689
10719
  let containerElement = _getMeasurementContainer();
10690
10720
  if (!containerElement.isConnected) {
10691
10721
  _getMeasurementContainer.cache.clear?.();
@@ -10855,12 +10885,12 @@ __webpack_require__.r(__webpack_exports__);
10855
10885
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
10856
10886
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
10857
10887
  /* harmony export */ });
10858
- /* 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");
10859
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
10888
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10889
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10860
10890
  /* 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");
10861
10891
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10862
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
10863
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
10892
+ /* 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");
10893
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
10864
10894
 
10865
10895
 
10866
10896
 
@@ -10951,13 +10981,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
10951
10981
  const getTransitionsFromChildren = (old, next) => {
10952
10982
  return old.map((child, idx) => {
10953
10983
  if (child && child.props && child.props.children && next[idx]) {
10954
- 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));
10984
+ 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));
10955
10985
  }
10956
10986
  // get Transition entering and exiting nodes
10957
10987
  return getTransition(child, next[idx]);
10958
10988
  });
10959
10989
  };
10960
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
10990
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
10961
10991
  return {
10962
10992
  nodesWillExit,
10963
10993
  nodesWillEnter,
@@ -10971,7 +11001,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
10971
11001
  };
10972
11002
  }
10973
11003
  function getInitialChildProps(animate, data) {
10974
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11004
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10975
11005
  return {
10976
11006
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
10977
11007
  };
@@ -10988,7 +11018,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
10988
11018
  data
10989
11019
  };
10990
11020
  }
10991
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11021
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10992
11022
  // If nodes need to exit, transform them with the provided onLoad.before function.
10993
11023
  const newData = data.map((datum, idx) => {
10994
11024
  return Object.assign({}, datum, before(datum, idx, data));
@@ -10999,8 +11029,6 @@ function getChildBeforeLoad(animate, child, data, cb) {
10999
11029
  clipWidth: 0
11000
11030
  };
11001
11031
  }
11002
-
11003
- // eslint-disable-next-line max-params
11004
11032
  function getChildOnLoad(animate, data, cb) {
11005
11033
  const newAnimate = Object.assign({}, animate, {
11006
11034
  onEnd: cb
@@ -11012,7 +11040,7 @@ function getChildOnLoad(animate, data, cb) {
11012
11040
  data
11013
11041
  };
11014
11042
  }
11015
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11043
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11016
11044
  // If nodes need to exit, transform them with the provided onLoad.after function.
11017
11045
  newData = data.map((datum, idx) => {
11018
11046
  return Object.assign({}, datum, after(datum, idx, data));
@@ -11023,7 +11051,7 @@ function getChildOnLoad(animate, data, cb) {
11023
11051
  };
11024
11052
  }
11025
11053
 
11026
- // eslint-disable-next-line max-params, max-len
11054
+ // eslint-disable-next-line max-params
11027
11055
  function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11028
11056
  // Whether or not _this_ child has exiting nodes, we want the exit-
11029
11057
  // transition for all children to have the same duration, delay, etc.
@@ -11034,7 +11062,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11034
11062
  // After the exit transition occurs, trigger the animations for
11035
11063
  // nodes that are neither exiting nor entering.
11036
11064
  animate.onEnd = cb;
11037
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11065
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11038
11066
  // If nodes need to exit, transform them with the provided onExit.before function.
11039
11067
  newData = data.map((datum, idx) => {
11040
11068
  const key = (datum.key || idx).toString();
@@ -11047,7 +11075,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11047
11075
  };
11048
11076
  }
11049
11077
 
11050
- // eslint-disable-next-line max-params,max-len
11078
+ // eslint-disable-next-line max-params
11051
11079
  function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11052
11080
  let newAnimate = animate;
11053
11081
  let newData = data;
@@ -11057,7 +11085,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11057
11085
  newAnimate = Object.assign({}, animate, {
11058
11086
  onEnd: cb
11059
11087
  });
11060
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11088
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11061
11089
  // We want the entering nodes to be included in the transition target
11062
11090
  // domain. However, we may not want these nodes to be displayed initially,
11063
11091
  // so perform the `onEnter.before` transformation on each node.
@@ -11072,7 +11100,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11072
11100
  };
11073
11101
  }
11074
11102
 
11075
- // eslint-disable-next-line max-params, max-len
11103
+ // eslint-disable-next-line max-params
11076
11104
  function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11077
11105
  // Whether or not _this_ child has entering nodes, we want the entering-
11078
11106
  // transition for all children to have the same duration, delay, etc.
@@ -11084,7 +11112,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11084
11112
  // domain should encompass the nodes that will now enter. So perform
11085
11113
  // the `onEnter.after` transformation on each node.
11086
11114
  newAnimate.onEnd = cb;
11087
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11115
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11088
11116
  newData = data.map((datum, idx) => {
11089
11117
  const key = getDatumKey(datum, idx);
11090
11118
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -11179,8 +11207,6 @@ function getTransitionPropsFactory(props, state, setState) {
11179
11207
  }
11180
11208
  return {};
11181
11209
  };
11182
-
11183
- // eslint-disable-next-line max-statements, complexity, max-len
11184
11210
  return function getTransitionProps(child, index) {
11185
11211
  const data = getChildData(child) || [];
11186
11212
  const animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.animate, child.props.animate);