victory-bar 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.
@@ -116,10 +116,10 @@ __webpack_require__.r(__webpack_exports__);
116
116
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
117
117
  /* harmony export */ "Bar": function() { return /* binding */ Bar; }
118
118
  /* harmony export */ });
119
- /* 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");
120
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
121
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
122
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
119
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
120
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
121
+ /* 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");
122
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
123
123
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
124
124
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
125
125
  /* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar-helper-methods */ "./bar-helper-methods.ts");
@@ -165,14 +165,14 @@ const evaluateProps = props => {
165
165
  });
166
166
  };
167
167
  const defaultProps = {
168
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Path, null),
168
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Path, null),
169
169
  role: "presentation",
170
170
  shapeRendering: "auto"
171
171
  };
172
-
172
+ const Bar = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
173
173
  // eslint-disable-next-line prefer-arrow-callback
174
- const Bar = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Bar(initialProps, ref) {
175
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
174
+ function Bar(initialProps, ref) {
175
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
176
176
  const {
177
177
  polar,
178
178
  origin,
@@ -185,7 +185,7 @@ const Bar = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
185
185
  if (!props.pathComponent) {
186
186
  return null;
187
187
  }
188
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
188
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
189
189
  ...props.events,
190
190
  "aria-label": props.ariaLabel,
191
191
  style,
@@ -280,7 +280,6 @@ const circle = (center, radius) => ({
280
280
  // Left-most point is returned as 0th element of array
281
281
  // Right-most point is returned as 1st elemennt of array
282
282
  intersection(circle1) {
283
- // eslint-disable-line max-statements
284
283
  const P0 = this.center;
285
284
  const P1 = circle1.center;
286
285
  const r0 = this.radius;
@@ -337,7 +336,8 @@ __webpack_require__.r(__webpack_exports__);
337
336
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
338
337
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/domain.js");
339
338
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/data.js");
340
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/label-helpers.js");
339
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-clip-container/victory-clip-container.js");
340
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/label-helpers.js");
341
341
 
342
342
  const getBarPosition = (props, datum) => {
343
343
  const getDefaultMin = axis => {
@@ -380,6 +380,16 @@ const getCalculatedValues = props => {
380
380
  const origin = polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_2__.getPolarOrigin(props) : undefined;
381
381
  let data = victory_core__WEBPACK_IMPORTED_MODULE_4__.getData(props);
382
382
  data = victory_core__WEBPACK_IMPORTED_MODULE_4__.formatDataFromDomain(data, domain, 0);
383
+
384
+ // when inside a zoom container, reset the _x and _y properties of each datum to the original
385
+ // x and y property values so they will not be clipped. See https://github.com/FormidableLabs/victory/pull/2970
386
+ if (props.groupComponent.type === victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryClipContainer) {
387
+ data = data.map(datum => ({
388
+ ...datum,
389
+ _x: datum.x,
390
+ _y: datum.y
391
+ }));
392
+ }
383
393
  return {
384
394
  style,
385
395
  data,
@@ -465,9 +475,9 @@ const getBaseProps = (initialProps, fallbackProps) => {
465
475
  childProps[eventKey] = {
466
476
  data: dataProps
467
477
  };
468
- const text = victory_core__WEBPACK_IMPORTED_MODULE_5__.getText(props, datum, index);
478
+ const text = victory_core__WEBPACK_IMPORTED_MODULE_6__.getText(props, datum, index);
469
479
  if (text !== undefined && text !== null || labels && (events || sharedEvents)) {
470
- childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_5__.getProps(props, index);
480
+ childProps[eventKey].labels = victory_core__WEBPACK_IMPORTED_MODULE_6__.getProps(props, index);
471
481
  }
472
482
  return childProps;
473
483
  }, initialChildProps);
@@ -602,8 +612,6 @@ const getVerticalBarPoints = (position, sign, cr) => {
602
612
  y0,
603
613
  y1
604
614
  } = position;
605
-
606
- // eslint-disable-next-line max-statements, max-len
607
615
  const getHalfPoints = side => {
608
616
  const isLeft = side === "Left";
609
617
  const signL = isLeft ? 1 : -1;
@@ -687,8 +695,6 @@ const getHorizontalBarPoints = (position, sign, cr) => {
687
695
  } = position;
688
696
  const x0 = position.x0 < position.x1 ? position.x0 : position.x1;
689
697
  const x1 = position.x0 < position.x1 ? position.x1 : position.x0;
690
-
691
- // eslint-disable-next-line max-statements, max-len
692
698
  const getHalfPoints = side => {
693
699
  const isTop = side === "top";
694
700
  const signL = isTop ? -1 : 1;
@@ -768,8 +774,6 @@ const getHorizontalBarPoints = (position, sign, cr) => {
768
774
  // eslint-disable-next-line no-magic-numbers
769
775
  bottomPoints[3], bottomPoints[2]];
770
776
  };
771
-
772
- // eslint-disable-next-line max-params
773
777
  const getVerticalBarPath = (props, width, cornerRadius) => {
774
778
  const position = getPosition(props, width);
775
779
  const sign = position.y0 > position.y1 ? 1 : -1;
@@ -777,8 +781,6 @@ const getVerticalBarPath = (props, width, cornerRadius) => {
777
781
  const points = getVerticalBarPoints(position, sign, cornerRadius);
778
782
  return mapPointsToPath(points, cornerRadius, direction);
779
783
  };
780
-
781
- // eslint-disable-next-line max-params
782
784
  const getHorizontalBarPath = (props, width, cornerRadius) => {
783
785
  const position = getPosition(props, width);
784
786
  const sign = position.x0 < position.x1 ? 1 : -1;
@@ -836,8 +838,6 @@ const getVerticalPolarBarPath = (props, cornerRadius) => {
836
838
  leftMiddle
837
839
  };
838
840
  };
839
-
840
- // eslint-disable-next-line max-statements
841
841
  const getTopPath = () => {
842
842
  const {
843
843
  topRight,
@@ -880,8 +880,6 @@ const getVerticalPolarBarPath = (props, cornerRadius) => {
880
880
  coords: subCoords[i].split(",")
881
881
  }));
882
882
  };
883
-
884
- // eslint-disable-next-line max-statements
885
883
  const getBottomPath = () => {
886
884
  const {
887
885
  bottomRight,
@@ -958,8 +956,9 @@ __webpack_require__.r(__webpack_exports__);
958
956
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/domain.js");
959
957
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/data.js");
960
958
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
961
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
962
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
959
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-clip-container/victory-clip-container.js");
960
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
961
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
963
962
 
964
963
 
965
964
 
@@ -983,7 +982,7 @@ const defaultData = [{
983
982
  y: 4
984
983
  }];
985
984
 
986
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
985
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
987
986
 
988
987
  /**
989
988
  * Draw SVG bar charts with React. VictoryBar is a composable component, so it doesn"t include axes
@@ -1047,7 +1046,9 @@ class VictoryBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
1047
1046
  return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
1048
1047
  }
1049
1048
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
1050
-
1049
+ // passed to addEvents.renderData to prevent data props with undefined _x or _y from excluding data from render.
1050
+ // used when inside of VictoryZoomContainer
1051
+ static shouldRenderDatum = () => true;
1051
1052
  // Overridden in native versions
1052
1053
  shouldAnimate() {
1053
1054
  return !!this.props.animate;
@@ -1061,12 +1062,20 @@ class VictoryBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
1061
1062
  if (this.shouldAnimate()) {
1062
1063
  return this.animateComponent(props, animationWhitelist);
1063
1064
  }
1064
- const children = this.renderData(props);
1065
+ let children;
1066
+ // when inside a zoom container (the only place VictoryClipContainer is used), all data
1067
+ // should be renderable so bars won't dissappear before they've fully exited the container's bounds
1068
+ // see https://github.com/FormidableLabs/victory/pull/2970
1069
+ if (props.groupComponent.type === victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryClipContainer) {
1070
+ children = this.renderData(props, VictoryBarBase.shouldRenderDatum);
1071
+ } else {
1072
+ children = this.renderData(props);
1073
+ }
1065
1074
  const component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
1066
- return victory_core__WEBPACK_IMPORTED_MODULE_9__.withSafeUserProps(component, props);
1075
+ return victory_core__WEBPACK_IMPORTED_MODULE_10__.withSafeUserProps(component, props);
1067
1076
  }
1068
1077
  }
1069
- const VictoryBar = (0,victory_core__WEBPACK_IMPORTED_MODULE_10__.addEvents)(VictoryBarBase);
1078
+ const VictoryBar = (0,victory_core__WEBPACK_IMPORTED_MODULE_11__.addEvents)(VictoryBarBase);
1070
1079
 
1071
1080
  /***/ }),
1072
1081
 
@@ -5537,10 +5546,10 @@ __webpack_require__.r(__webpack_exports__);
5537
5546
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
5538
5547
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
5539
5548
  /* harmony export */ });
5540
- /* 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");
5541
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
5542
- /* 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");
5543
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
5549
+ /* 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");
5550
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
5551
+ /* 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");
5552
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
5544
5553
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
5545
5554
 
5546
5555
 
@@ -5566,7 +5575,7 @@ const isInterpolatable = function (obj) {
5566
5575
  return false;
5567
5576
  case "object":
5568
5577
  // Don't try to interpolate class instances (except Date or Array).
5569
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
5578
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
5570
5579
  case "function":
5571
5580
  // Careful! There may be extra properties on function objects that the
5572
5581
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -5626,7 +5635,7 @@ const interpolateFunction = function (a, b) {
5626
5635
  return b;
5627
5636
  }
5628
5637
  return function () {
5629
- /* eslint-disable no-invalid-this, prefer-rest-params */
5638
+ /* eslint-disable prefer-rest-params */
5630
5639
  const aval = typeof a === "function" ? a.apply(this, arguments) : a;
5631
5640
  const bval = typeof b === "function" ? b.apply(this, arguments) : b;
5632
5641
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(aval, bval)(t);
@@ -5652,7 +5661,7 @@ const interpolateObject = function (startValue, endValue) {
5652
5661
  if (typeof x === "function" || typeof y === "function") {
5653
5662
  return interpolateFunction(x, y);
5654
5663
  }
5655
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
5664
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
5656
5665
  return interpolateObject(x, y);
5657
5666
  }
5658
5667
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -5661,7 +5670,7 @@ const interpolateObject = function (startValue, endValue) {
5661
5670
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
5662
5671
  // based on "key" instead of index
5663
5672
  const keyData = val => {
5664
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
5673
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
5665
5674
  };
5666
5675
  const i = {};
5667
5676
  const c = {};
@@ -5728,7 +5737,7 @@ const victoryInterpolator = function (a, b) {
5728
5737
  if (typeof a === "function" || typeof b === "function") {
5729
5738
  return interpolateFunction(a, b);
5730
5739
  }
5731
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
5740
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
5732
5741
  // @ts-expect-error These generics are tough, but they work :)
5733
5742
  return interpolateObject(a, b);
5734
5743
  }
@@ -5892,6 +5901,207 @@ const VictoryAnimation = _ref => {
5892
5901
 
5893
5902
  /***/ }),
5894
5903
 
5904
+ /***/ "../../victory-core/es/victory-clip-container/victory-clip-container.js":
5905
+ /*!******************************************************************************!*\
5906
+ !*** ../../victory-core/es/victory-clip-container/victory-clip-container.js ***!
5907
+ \******************************************************************************/
5908
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5909
+
5910
+ "use strict";
5911
+ __webpack_require__.r(__webpack_exports__);
5912
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5913
+ /* harmony export */ "VictoryClipContainer": function() { return /* binding */ VictoryClipContainer; }
5914
+ /* harmony export */ });
5915
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5916
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5917
+ /* 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");
5918
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5919
+ /* 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");
5920
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
5921
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
5922
+ /* 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");
5923
+ /* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "../../victory-core/es/victory-primitives/clip-path.js");
5924
+ /* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-primitives/circle */ "../../victory-core/es/victory-primitives/circle.js");
5925
+ /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
5926
+
5927
+
5928
+
5929
+
5930
+
5931
+
5932
+
5933
+
5934
+ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
5935
+ static displayName = "VictoryClipContainer";
5936
+ static role = "container";
5937
+ static defaultProps = {
5938
+ circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
5939
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
5940
+ clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_5__.ClipPath, null),
5941
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
5942
+ };
5943
+ constructor(props) {
5944
+ super(props);
5945
+ this.state = {
5946
+ clipId: props?.clipId
5947
+ };
5948
+ }
5949
+
5950
+ // The clipId state is used to prevent hydration mismatches between the server and client (issue #2941).
5951
+ // A better alternative would be to utilize React 18's useId hook instead of uniqueId, which would avoid needing state for this purpose.
5952
+ // However, this component currently supports React 16 at the time of writing, so this workaround is necessary.
5953
+ componentDidMount() {
5954
+ if (!this.state.clipId) {
5955
+ this.setState({
5956
+ clipId: lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-clip-")
5957
+ });
5958
+ }
5959
+ }
5960
+ calculateAttributes(props) {
5961
+ const {
5962
+ polar,
5963
+ origin,
5964
+ clipWidth = 0,
5965
+ clipHeight = 0,
5966
+ translateX = 0,
5967
+ translateY = 0
5968
+ } = props;
5969
+ const clipPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getPadding(props.clipPadding);
5970
+ const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRadius(props);
5971
+ return {
5972
+ x: (polar ? origin.x : translateX) - clipPadding.left,
5973
+ y: (polar ? origin.y : translateY) - clipPadding.top,
5974
+ width: Math.max((polar ? radius : clipWidth) + clipPadding.left + clipPadding.right, 0),
5975
+ height: Math.max((polar ? radius : clipHeight) + clipPadding.top + clipPadding.bottom, 0)
5976
+ };
5977
+ }
5978
+ renderClippedGroup(props, clipId) {
5979
+ const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__.getSafeUserProps(props);
5980
+ const {
5981
+ style,
5982
+ events,
5983
+ transform,
5984
+ children,
5985
+ className,
5986
+ groupComponent,
5987
+ tabIndex
5988
+ } = props;
5989
+ const clipComponent = this.renderClipComponent(props, clipId);
5990
+ const groupProps = Object.assign({
5991
+ className,
5992
+ style,
5993
+ transform,
5994
+ key: `clipped-group-${clipId}`,
5995
+ clipPath: `url(#${clipId})`
5996
+ }, events);
5997
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {
5998
+ ...groupProps,
5999
+ tabIndex,
6000
+ ...userProps
6001
+ }, [clipComponent, ...react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children)]);
6002
+ }
6003
+ renderGroup(props) {
6004
+ const {
6005
+ style,
6006
+ events,
6007
+ transform,
6008
+ children,
6009
+ className,
6010
+ groupComponent,
6011
+ tabIndex
6012
+ } = props;
6013
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, Object.assign({
6014
+ className,
6015
+ style,
6016
+ transform,
6017
+ "aria-label": props["aria-label"],
6018
+ tabIndex
6019
+ }, events), children);
6020
+ }
6021
+ renderClipComponent(props, clipId) {
6022
+ const {
6023
+ polar,
6024
+ origin,
6025
+ clipWidth = 0,
6026
+ clipHeight = 0,
6027
+ translateX = 0,
6028
+ translateY = 0,
6029
+ circleComponent,
6030
+ rectComponent,
6031
+ clipPathComponent
6032
+ } = props;
6033
+ const {
6034
+ top,
6035
+ bottom,
6036
+ left,
6037
+ right
6038
+ } = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getPadding(props.clipPadding);
6039
+ let child;
6040
+ if (polar) {
6041
+ const radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRadius(props);
6042
+ const circleProps = {
6043
+ r: Math.max(radius + left + right, radius + top + bottom, 0),
6044
+ cx: origin.x - left,
6045
+ cy: origin.y - top
6046
+ };
6047
+ child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(circleComponent, circleProps);
6048
+ } else {
6049
+ const rectProps = {
6050
+ x: translateX - left,
6051
+ y: translateY - top,
6052
+ width: Math.max(clipWidth + left + right, 0),
6053
+ height: Math.max(clipHeight + top + bottom, 0)
6054
+ };
6055
+ child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(rectComponent, rectProps);
6056
+ }
6057
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(clipPathComponent, Object.assign({
6058
+ key: `clip-path-${clipId}`
6059
+ }, props, {
6060
+ clipId
6061
+ }), child);
6062
+ }
6063
+ getClipValue(props, axis) {
6064
+ const clipValues = {
6065
+ x: props.clipWidth,
6066
+ y: props.clipHeight
6067
+ };
6068
+ if (clipValues[axis] !== undefined) {
6069
+ return clipValues[axis];
6070
+ }
6071
+ const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRange(props, axis);
6072
+ return range ? Math.abs(range[0] - range[1]) || undefined : undefined;
6073
+ }
6074
+ getTranslateValue(props, axis) {
6075
+ const translateValues = {
6076
+ x: props.translateX,
6077
+ y: props.translateY
6078
+ };
6079
+ if (translateValues[axis] !== undefined) {
6080
+ return translateValues[axis];
6081
+ }
6082
+ const range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.getRange(props, axis);
6083
+ return range ? Math.min(...range) : undefined;
6084
+ }
6085
+ render() {
6086
+ const clipHeight = this.getClipValue(this.props, "y");
6087
+ const clipWidth = this.getClipValue(this.props, "x");
6088
+ if (clipWidth === undefined || clipHeight === undefined) {
6089
+ return this.renderGroup(this.props);
6090
+ }
6091
+ const translateX = this.getTranslateValue(this.props, "x");
6092
+ const translateY = this.getTranslateValue(this.props, "y");
6093
+ const clipProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.props, {
6094
+ clipHeight,
6095
+ clipWidth,
6096
+ translateX,
6097
+ translateY
6098
+ });
6099
+ return this.renderClippedGroup(clipProps, this.state.clipId);
6100
+ }
6101
+ }
6102
+
6103
+ /***/ }),
6104
+
5895
6105
  /***/ "../../victory-core/es/victory-container/victory-container.js":
5896
6106
  /*!********************************************************************!*\
5897
6107
  !*** ../../victory-core/es/victory-container/victory-container.js ***!
@@ -5904,16 +6114,15 @@ __webpack_require__.r(__webpack_exports__);
5904
6114
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
5905
6115
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
5906
6116
  /* harmony export */ });
5907
- /* 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");
5908
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5909
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5910
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6117
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6118
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6119
+ /* 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");
6120
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
5911
6121
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
5912
6122
  /* 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");
5913
6123
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
5914
6124
  /* 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");
5915
6125
  /* 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");
5916
-
5917
6126
  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); }
5918
6127
 
5919
6128
 
@@ -5921,9 +6130,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5921
6130
 
5922
6131
 
5923
6132
 
6133
+
5924
6134
  const defaultProps = {
5925
6135
  className: "VictoryContainer",
5926
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
6136
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5927
6137
  portalZIndex: 99,
5928
6138
  responsive: true,
5929
6139
  role: "img"
@@ -5940,10 +6150,10 @@ function useVictoryContainer(initialProps) {
5940
6150
  height,
5941
6151
  responsive
5942
6152
  } = props;
5943
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
6153
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
5944
6154
 
5945
6155
  // Generated ID stored in ref because it needs to persist across renders
5946
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
6156
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
5947
6157
  const containerId = props.containerId ?? generatedId.current;
5948
6158
  const getIdForElement = elName => `${containerId}-${elName}`;
5949
6159
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -6002,7 +6212,7 @@ const VictoryContainer = initialProps => {
6002
6212
  containerRef,
6003
6213
  localContainerRef
6004
6214
  } = useVictoryContainer(initialProps);
6005
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
6215
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6006
6216
  if (!events?.onWheel) return;
6007
6217
  const handleWheel = e => e.preventDefault();
6008
6218
  const container = localContainerRef?.current;
@@ -6012,21 +6222,21 @@ const VictoryContainer = initialProps => {
6012
6222
  };
6013
6223
  // eslint-disable-next-line react-hooks/exhaustive-deps
6014
6224
  }, []);
6015
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
6225
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
6016
6226
  className: className,
6017
6227
  style: {
6018
6228
  ...style,
6019
6229
  width: responsive ? style?.width : dimensions.width,
6020
6230
  height: responsive ? style?.height : dimensions.height,
6021
- pointerEvents: "none",
6022
- touchAction: "none",
6023
- position: "relative"
6231
+ pointerEvents: style?.pointerEvents ?? "none",
6232
+ touchAction: style?.touchAction ?? "none",
6233
+ position: style?.position ?? "relative"
6024
6234
  },
6025
6235
  "data-ouia-component-id": ouiaId,
6026
6236
  "data-ouia-component-type": ouiaType,
6027
6237
  "data-ouia-safe": ouiaSafe,
6028
6238
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
6029
- }, /*#__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({
6239
+ }, /*#__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({
6030
6240
  width: width,
6031
6241
  height: height,
6032
6242
  tabIndex: tabIndex,
@@ -6039,11 +6249,11 @@ const VictoryContainer = initialProps => {
6039
6249
  ...dimensions,
6040
6250
  pointerEvents: "all"
6041
6251
  }
6042
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
6252
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
6043
6253
  id: titleId
6044
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
6254
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
6045
6255
  id: descId
6046
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
6256
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
6047
6257
  style: {
6048
6258
  ...dimensions,
6049
6259
  zIndex: portalZIndex,
@@ -6051,7 +6261,7 @@ const VictoryContainer = initialProps => {
6051
6261
  top: 0,
6052
6262
  left: 0
6053
6263
  }
6054
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
6264
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
6055
6265
  as: portalComponent,
6056
6266
  width: width,
6057
6267
  height: height,
@@ -6078,12 +6288,12 @@ __webpack_require__.r(__webpack_exports__);
6078
6288
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6079
6289
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
6080
6290
  /* harmony export */ });
6081
- /* 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");
6082
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
6291
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6292
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6083
6293
  /* 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");
6084
6294
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6085
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6086
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6295
+ /* 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");
6296
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
6087
6297
  /* 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");
6088
6298
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
6089
6299
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -6094,9 +6304,9 @@ __webpack_require__.r(__webpack_exports__);
6094
6304
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
6095
6305
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
6096
6306
  /* 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");
6307
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
6097
6308
 
6098
6309
 
6099
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
6100
6310
 
6101
6311
 
6102
6312
 
@@ -6148,7 +6358,7 @@ const shouldUseMultilineBackgrounds = props => {
6148
6358
  backgroundStyle,
6149
6359
  backgroundPadding
6150
6360
  } = props;
6151
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
6361
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
6152
6362
  };
6153
6363
  const getStyles = (style, props) => {
6154
6364
  if (props.disableInlineStyles) {
@@ -6164,32 +6374,28 @@ const getStyles = (style, props) => {
6164
6374
  fontSize: getFontSize(baseStyles)
6165
6375
  });
6166
6376
  };
6167
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
6377
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
6168
6378
  };
6169
6379
  const getBackgroundStyles = (style, props) => {
6170
6380
  if (!style) {
6171
6381
  return undefined;
6172
6382
  }
6173
- 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);
6383
+ 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);
6174
6384
  };
6175
6385
  const getBackgroundPadding = props => {
6176
6386
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
6177
6387
  return props.backgroundPadding.map(backgroundPadding => {
6178
6388
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
6179
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
6180
- padding
6181
- });
6389
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
6182
6390
  });
6183
6391
  }
6184
6392
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
6185
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
6186
- padding
6187
- });
6393
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
6188
6394
  };
6189
6395
  const getLineHeight = props => {
6190
6396
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
6191
6397
  if (Array.isArray(lineHeight)) {
6192
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
6398
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
6193
6399
  }
6194
6400
  return lineHeight;
6195
6401
  };
@@ -6309,7 +6515,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
6309
6515
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
6310
6516
  y: yCoordinate
6311
6517
  };
6312
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6518
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6313
6519
  };
6314
6520
  const getInlineXOffset = (calculatedProps, textElements, index) => {
6315
6521
  const {
@@ -6379,7 +6585,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
6379
6585
  x: xCoord - padding.left,
6380
6586
  y: yCoord
6381
6587
  };
6382
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6588
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6383
6589
  });
6384
6590
  };
6385
6591
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -6510,16 +6716,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
6510
6716
  style: currentStyle,
6511
6717
  children: line
6512
6718
  };
6513
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
6719
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
6514
6720
  });
6515
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
6721
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
6516
6722
  };
6517
6723
  const defaultProps = {
6518
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6519
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
6724
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6725
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6520
6726
  direction: "inherit",
6521
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6522
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6727
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6728
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6523
6729
  capHeight: 0.71,
6524
6730
  // Magic number from d3.
6525
6731
  lineHeight: 1
@@ -6556,10 +6762,10 @@ const VictoryLabel = initialProps => {
6556
6762
  if (props.backgroundStyle) {
6557
6763
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
6558
6764
  const children = [backgroundElement, label];
6559
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
6560
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6765
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
6766
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6561
6767
  }
6562
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6768
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6563
6769
  };
6564
6770
  VictoryLabel.displayName = "VictoryLabel";
6565
6771
  VictoryLabel.role = "label";
@@ -6685,12 +6891,12 @@ __webpack_require__.r(__webpack_exports__);
6685
6891
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6686
6892
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
6687
6893
  /* harmony export */ });
6688
- /* 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");
6689
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6894
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6895
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6690
6896
  /* 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");
6691
6897
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6692
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6693
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6898
+ /* 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");
6899
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
6694
6900
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6695
6901
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6696
6902
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -6701,14 +6907,14 @@ __webpack_require__.r(__webpack_exports__);
6701
6907
 
6702
6908
 
6703
6909
  const defaultProps = {
6704
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
6910
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
6705
6911
  };
6706
6912
  const VictoryPortal = initialProps => {
6707
6913
  const props = {
6708
6914
  ...defaultProps,
6709
6915
  ...initialProps
6710
6916
  };
6711
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
6917
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
6712
6918
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6713
6919
  if (!portalContext) {
6714
6920
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -6726,12 +6932,12 @@ const VictoryPortal = initialProps => {
6726
6932
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
6727
6933
  key: childProps.key ?? id
6728
6934
  });
6729
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
6730
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6935
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
6936
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6731
6937
  portalContext?.addChild(id, child);
6732
6938
  // eslint-disable-next-line react-hooks/exhaustive-deps
6733
6939
  }, [props.children]);
6734
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6940
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6735
6941
  return () => portalContext?.removeChild(id);
6736
6942
  // eslint-disable-next-line react-hooks/exhaustive-deps
6737
6943
  }, []);
@@ -6741,6 +6947,69 @@ VictoryPortal.role = "portal";
6741
6947
 
6742
6948
  /***/ }),
6743
6949
 
6950
+ /***/ "../../victory-core/es/victory-primitives/circle.js":
6951
+ /*!**********************************************************!*\
6952
+ !*** ../../victory-core/es/victory-primitives/circle.js ***!
6953
+ \**********************************************************/
6954
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6955
+
6956
+ "use strict";
6957
+ __webpack_require__.r(__webpack_exports__);
6958
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6959
+ /* harmony export */ "Circle": function() { return /* binding */ Circle; }
6960
+ /* harmony export */ });
6961
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6962
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6963
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6964
+ 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); }
6965
+
6966
+
6967
+ const Circle = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => {
6968
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars --
6969
+ * origin conflicts with the SVG element's origin attribute
6970
+ */
6971
+ const {
6972
+ desc,
6973
+ id,
6974
+ tabIndex,
6975
+ origin,
6976
+ ...rest
6977
+ } = props;
6978
+ const svgProps = {
6979
+ vectorEffect: "non-scaling-stroke",
6980
+ id: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(id, props)?.toString(),
6981
+ tabIndex: (0,_victory_util_helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp)(tabIndex, props),
6982
+ ...rest
6983
+ };
6984
+ return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({}, svgProps, {
6985
+ ref: ref
6986
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({}, svgProps, {
6987
+ ref: ref
6988
+ }));
6989
+ });
6990
+
6991
+ /***/ }),
6992
+
6993
+ /***/ "../../victory-core/es/victory-primitives/clip-path.js":
6994
+ /*!*************************************************************!*\
6995
+ !*** ../../victory-core/es/victory-primitives/clip-path.js ***!
6996
+ \*************************************************************/
6997
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6998
+
6999
+ "use strict";
7000
+ __webpack_require__.r(__webpack_exports__);
7001
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7002
+ /* harmony export */ "ClipPath": function() { return /* binding */ ClipPath; }
7003
+ /* harmony export */ });
7004
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7005
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7006
+
7007
+ const ClipPath = props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("clipPath", {
7008
+ id: props.clipId?.toString()
7009
+ }, props.children));
7010
+
7011
+ /***/ }),
7012
+
6744
7013
  /***/ "../../victory-core/es/victory-primitives/path.js":
6745
7014
  /*!********************************************************!*\
6746
7015
  !*** ../../victory-core/es/victory-primitives/path.js ***!
@@ -8035,22 +8304,22 @@ __webpack_require__.r(__webpack_exports__);
8035
8304
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8036
8305
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
8037
8306
  /* harmony export */ });
8038
- /* 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");
8039
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8307
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8308
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8040
8309
  /* 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");
8041
8310
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8042
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
8043
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
8311
+ /* 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");
8312
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
8313
+ /* 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");
8314
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8044
8315
  /* 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");
8045
8316
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
8046
8317
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
8047
8318
  /* 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");
8048
8319
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
8049
- /* 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");
8050
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8320
+ 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); }
8051
8321
 
8052
8322
 
8053
- 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); }
8054
8323
 
8055
8324
 
8056
8325
 
@@ -8058,7 +8327,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
8058
8327
 
8059
8328
 
8060
8329
 
8061
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
8330
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
8062
8331
  static displayName = "VictoryTransition";
8063
8332
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
8064
8333
  constructor(props, context) {
@@ -8075,7 +8344,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8075
8344
  componentDidMount() {
8076
8345
  this.setState({
8077
8346
  nodesShouldLoad: true
8078
- }); // eslint-disable-line react/no-did-mount-set-state
8347
+ });
8079
8348
  }
8080
8349
  shouldComponentUpdate(nextProps) {
8081
8350
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(this.props, nextProps)) {
@@ -8101,8 +8370,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8101
8370
  nextProps
8102
8371
  };
8103
8372
  }
8104
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
8105
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
8373
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8374
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
8106
8375
  const {
8107
8376
  nodesWillExit,
8108
8377
  nodesWillEnter,
@@ -8125,12 +8394,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8125
8394
  const childDomain = child.props && child.type.getDomain(child.props, axis);
8126
8395
  return childDomain ? memo.concat(childDomain) : memo;
8127
8396
  } else if (child.props && child.props.children) {
8128
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
8397
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
8129
8398
  }
8130
8399
  return memo;
8131
8400
  }, []);
8132
8401
  };
8133
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8402
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8134
8403
  const childProps = child.props || {};
8135
8404
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
8136
8405
  if (!childProps.children && domain) {
@@ -8163,7 +8432,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8163
8432
  render() {
8164
8433
  const props = this.pickProps();
8165
8434
  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));
8166
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8435
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8167
8436
  const transitionProps = getTransitionProps(child);
8168
8437
  this.transitionProps = transitionProps;
8169
8438
  const domain = {
@@ -8177,21 +8446,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8177
8446
  }, transitionProps, child.props);
8178
8447
  const animationWhitelist = props.animationWhitelist || [];
8179
8448
  const whitelist = animationWhitelist.concat(["clipWidth"]);
8180
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
8181
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8449
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
8450
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8182
8451
  data: propsToAnimate
8183
8452
  }), newProps => {
8184
8453
  if (child.props.groupComponent) {
8185
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
8454
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
8186
8455
  clipWidth: newProps.clipWidth || 0
8187
8456
  }) : child.props.groupComponent;
8188
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8457
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8189
8458
  animate: null,
8190
8459
  animating: true,
8191
8460
  groupComponent
8192
8461
  }, newProps, combinedProps));
8193
8462
  }
8194
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8463
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8195
8464
  animate: null,
8196
8465
  animating: true
8197
8466
  }, newProps, combinedProps));
@@ -8212,14 +8481,14 @@ __webpack_require__.r(__webpack_exports__);
8212
8481
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8213
8482
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
8214
8483
  /* harmony export */ });
8215
- /* 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");
8216
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8217
- /* 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");
8218
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8219
- /* 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");
8220
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8221
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8222
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8484
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8485
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8486
+ /* 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");
8487
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8488
+ /* 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");
8489
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
8490
+ /* 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");
8491
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
8223
8492
  /* 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");
8224
8493
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
8225
8494
  /* 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");
@@ -8289,7 +8558,7 @@ const defaultComponents = [{
8289
8558
  function addEvents(WrappedComponent, options) {
8290
8559
  if (options === void 0) {
8291
8560
  options = {};
8292
- } // eslint-disable-next-line @typescript-eslint/no-empty-interface
8561
+ } // eslint-disable-next-line @typescript-eslint/no-empty-object-type
8293
8562
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
8294
8563
  class AddEventsMixin extends WrappedComponent {
8295
8564
  constructor(props) {
@@ -8366,8 +8635,8 @@ function addEvents(WrappedComponent, options) {
8366
8635
  return {};
8367
8636
  }
8368
8637
  const getState = (key, type) => {
8369
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8370
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
8638
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8639
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
8371
8640
  };
8372
8641
  const components = options.components || defaultComponents;
8373
8642
  const stateChanges = components.map(component => {
@@ -8380,7 +8649,7 @@ function addEvents(WrappedComponent, options) {
8380
8649
  return stateChanges;
8381
8650
  }
8382
8651
  applyExternalMutations(props, externalMutations) {
8383
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
8652
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
8384
8653
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
8385
8654
  const compiledCallbacks = callbacks.length ? () => {
8386
8655
  callbacks.forEach(c => c());
@@ -8413,7 +8682,7 @@ function addEvents(WrappedComponent, options) {
8413
8682
  sharedEvents,
8414
8683
  externalEventMutations
8415
8684
  } = props;
8416
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8685
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8417
8686
  }
8418
8687
  cacheValues(obj) {
8419
8688
  Object.keys(obj).forEach(key => {
@@ -8424,10 +8693,10 @@ function addEvents(WrappedComponent, options) {
8424
8693
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
8425
8694
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
8426
8695
  const parentState = this.getEventState("parent", "parent");
8427
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
8696
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
8428
8697
  const parentPropsList = baseParentProps.parentControlledProps;
8429
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
8430
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
8698
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
8699
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
8431
8700
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
8432
8701
  }
8433
8702
  getAllEvents(props) {
@@ -8447,18 +8716,18 @@ function addEvents(WrappedComponent, options) {
8447
8716
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
8448
8717
  if (this.hasEvents) {
8449
8718
  const baseEvents = this.getEvents(this.props, type, key);
8450
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8719
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8451
8720
  index,
8452
8721
  key: id
8453
8722
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
8454
8723
  id
8455
8724
  });
8456
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8725
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8457
8726
  return Object.assign({}, componentProps, {
8458
8727
  events
8459
8728
  });
8460
8729
  }
8461
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8730
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8462
8731
  index,
8463
8732
  key: id
8464
8733
  }, currentProps, baseProps, {
@@ -8472,15 +8741,15 @@ function addEvents(WrappedComponent, options) {
8472
8741
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
8473
8742
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
8474
8743
  }
8475
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
8744
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
8476
8745
  }
8477
8746
  animateComponent(props, defaultAnimationWhitelist) {
8478
8747
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
8479
8748
  const Comp = this.constructor;
8480
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8749
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8481
8750
  animate: props.animate,
8482
8751
  animationWhitelist: animationWhitelist
8483
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
8752
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
8484
8753
  }
8485
8754
 
8486
8755
  // Used by `VictoryLine` and `VictoryArea`
@@ -8495,12 +8764,12 @@ function addEvents(WrappedComponent, options) {
8495
8764
  let newMemo = memo;
8496
8765
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
8497
8766
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
8498
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
8767
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
8499
8768
  }
8500
8769
  return newMemo;
8501
8770
  }, []);
8502
8771
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
8503
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8772
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8504
8773
  return this.renderContainer(groupComponent, children);
8505
8774
  }
8506
8775
  renderData(props, shouldRenderDatum) {
@@ -8515,14 +8784,14 @@ function addEvents(WrappedComponent, options) {
8515
8784
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
8516
8785
  const dataProps = this.getComponentProps(dataComponent, "data", index);
8517
8786
  if (shouldRenderDatum(dataProps.datum)) {
8518
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
8787
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
8519
8788
  }
8520
8789
  return validDataComponents;
8521
8790
  }, []);
8522
8791
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
8523
8792
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
8524
8793
  if (labelProps.text !== undefined && labelProps.text !== null) {
8525
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
8794
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
8526
8795
  }
8527
8796
  return undefined;
8528
8797
  }).filter(Boolean);
@@ -8628,24 +8897,24 @@ __webpack_require__.r(__webpack_exports__);
8628
8897
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
8629
8898
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
8630
8899
  /* harmony export */ });
8631
- /* 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");
8632
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
8633
- /* 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");
8634
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
8900
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8901
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8902
+ /* 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");
8903
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8635
8904
  /* 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");
8636
8905
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
8637
- /* 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");
8638
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
8639
- /* 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");
8640
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
8641
- /* 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");
8642
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
8643
- /* 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");
8644
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
8645
- /* 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");
8646
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
8647
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
8648
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
8906
+ /* 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");
8907
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
8908
+ /* 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");
8909
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
8910
+ /* 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");
8911
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
8912
+ /* 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");
8913
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
8914
+ /* 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");
8915
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
8916
+ /* 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");
8917
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
8649
8918
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8650
8919
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8651
8920
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
@@ -8658,7 +8927,6 @@ __webpack_require__.r(__webpack_exports__);
8658
8927
 
8659
8928
 
8660
8929
 
8661
- /* eslint-disable no-use-before-define */
8662
8930
 
8663
8931
 
8664
8932
 
@@ -8680,7 +8948,7 @@ function getLength(data) {
8680
8948
 
8681
8949
  // Returns generated data for a given axis based on domain and sample from props
8682
8950
  function generateDataArray(props, axis) {
8683
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
8951
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
8684
8952
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
8685
8953
  const samples = props.samples || 1;
8686
8954
  const domainMax = Math.max(...domain);
@@ -8705,7 +8973,7 @@ function sortData(dataset, sortKey, sortOrder) {
8705
8973
  formattedSortKey = `_${sortKey}`;
8706
8974
  }
8707
8975
  const order = sortOrder === "ascending" ? "asc" : "desc";
8708
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
8976
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
8709
8977
  }
8710
8978
 
8711
8979
  // This method will remove data points that break certain scales. (log scale only)
@@ -8749,7 +9017,7 @@ function getEventKey(key) {
8749
9017
  return () => undefined;
8750
9018
  }
8751
9019
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
8752
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
9020
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
8753
9021
  }
8754
9022
 
8755
9023
  // Returns data with an eventKey prop added to each datum
@@ -8784,8 +9052,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8784
9052
  const isUnderMinY = underMin(minDomainY);
8785
9053
  const isOverMaxX = overMax(maxDomainX);
8786
9054
  const isOverMaxY = overMax(maxDomainY);
8787
-
8788
- // eslint-disable-next-line complexity
8789
9055
  return dataset.map(datum => {
8790
9056
  let {
8791
9057
  _x,
@@ -8810,12 +9076,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8810
9076
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
8811
9077
  // baseline and value with only baseline above max, set baseline to maxDomainY
8812
9078
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
8813
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
9079
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
8814
9080
  _x,
8815
9081
  _y,
8816
9082
  _y0,
8817
9083
  _y1
8818
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
9084
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
8819
9085
  });
8820
9086
  }
8821
9087
 
@@ -8829,7 +9095,7 @@ function createStringMap(props, axis) {
8829
9095
  const stringsFromAxes = getStringsFromAxes(props, axis);
8830
9096
  const stringsFromCategories = getStringsFromCategories(props, axis);
8831
9097
  const stringsFromData = getStringsFromData(props, axis);
8832
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
9098
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8833
9099
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
8834
9100
  memo[string] = index + 1;
8835
9101
  return memo;
@@ -8896,7 +9162,6 @@ function formatData(dataset, props, expectedKeys) {
8896
9162
  };
8897
9163
  }
8898
9164
  const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
8899
- // eslint-disable-line complexity
8900
9165
  const parsedDatum = parseDatum(datum);
8901
9166
  const fallbackValues = {
8902
9167
  x: index,
@@ -8916,7 +9181,7 @@ function formatData(dataset, props, expectedKeys) {
8916
9181
  return memo;
8917
9182
  }, {});
8918
9183
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
8919
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
9184
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
8920
9185
  dataArr.push(formattedDatum);
8921
9186
  }
8922
9187
  return dataArr;
@@ -9043,7 +9308,7 @@ function isDataComponent(component) {
9043
9308
  };
9044
9309
  let role = getRole(component);
9045
9310
  if (role === "portal") {
9046
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
9311
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
9047
9312
  role = children.length ? getRole(children[0]) : "";
9048
9313
  }
9049
9314
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -9074,14 +9339,14 @@ __webpack_require__.r(__webpack_exports__);
9074
9339
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
9075
9340
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
9076
9341
  /* harmony export */ });
9077
- /* 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");
9078
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
9079
- /* 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");
9080
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
9342
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9343
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9344
+ /* 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");
9345
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
9081
9346
  /* 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");
9082
9347
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
9083
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9084
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9348
+ /* 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");
9349
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
9085
9350
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
9086
9351
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9087
9352
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -9089,7 +9354,6 @@ __webpack_require__.r(__webpack_exports__);
9089
9354
 
9090
9355
 
9091
9356
 
9092
- /* eslint-disable no-use-before-define */
9093
9357
 
9094
9358
 
9095
9359
 
@@ -9145,8 +9409,6 @@ function getExtremeFromData(dataset, axis, type) {
9145
9409
  }, initialValue);
9146
9410
  return containsDate ? new Date(result) : result;
9147
9411
  }
9148
-
9149
- // eslint-disable-next-line max-statements
9150
9412
  function padDomain(domain, props, axis) {
9151
9413
  if (!props.domainPadding) {
9152
9414
  return domain;
@@ -9173,9 +9435,9 @@ function padDomain(domain, props, axis) {
9173
9435
  max: max.valueOf() + simplePadding.right
9174
9436
  };
9175
9437
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
9176
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
9438
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
9177
9439
  const adjust = (val, type) => {
9178
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
9440
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
9179
9441
  return coerce ? 0 : val;
9180
9442
  };
9181
9443
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -9398,7 +9660,7 @@ function getMaxFromProps(props, axis) {
9398
9660
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
9399
9661
  return props.maxDomain[axis];
9400
9662
  }
9401
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
9663
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
9402
9664
  }
9403
9665
 
9404
9666
  /**
@@ -9411,7 +9673,7 @@ function getMinFromProps(props, axis) {
9411
9673
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
9412
9674
  return props.minDomain[axis];
9413
9675
  }
9414
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
9676
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
9415
9677
  }
9416
9678
 
9417
9679
  /**
@@ -9422,7 +9684,7 @@ function getMinFromProps(props, axis) {
9422
9684
  * @returns {Array} the symmetric domain
9423
9685
  */
9424
9686
  function getSymmetricDomain(domain, values) {
9425
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
9687
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
9426
9688
  const step = processedData[1] - processedData[0];
9427
9689
  return [domain[0], domain[1] + step];
9428
9690
  }
@@ -9438,7 +9700,7 @@ function isDomainComponent(component) {
9438
9700
  };
9439
9701
  let role = getRole(component);
9440
9702
  if (role === "portal") {
9441
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
9703
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
9442
9704
  role = children.length ? getRole(children[0]) : "";
9443
9705
  }
9444
9706
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -9469,20 +9731,19 @@ __webpack_require__.r(__webpack_exports__);
9469
9731
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
9470
9732
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
9471
9733
  /* harmony export */ });
9472
- /* 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");
9473
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
9474
- /* 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");
9475
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
9476
- /* 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");
9477
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
9478
- /* 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");
9479
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
9734
+ /* 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");
9735
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
9736
+ /* 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");
9737
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
9738
+ /* 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");
9739
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
9740
+ /* 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");
9741
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
9480
9742
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9481
9743
 
9482
9744
 
9483
9745
 
9484
9746
 
9485
- /* eslint-disable no-use-before-define */
9486
9747
 
9487
9748
  const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
9488
9749
 
@@ -9530,11 +9791,10 @@ getScopedEvents) {
9530
9791
  */
9531
9792
  const getAllEvents = () => {
9532
9793
  // Mandatory usage: `getEvents.bind(this)`
9533
- /* eslint-disable no-invalid-this */
9794
+
9534
9795
  if (Array.isArray(this.componentEvents)) {
9535
9796
  return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
9536
9797
  }
9537
- /* eslint-enable no-invalid-this */
9538
9798
  return props.events;
9539
9799
  };
9540
9800
  const allEvents = getAllEvents();
@@ -9554,12 +9814,12 @@ getScopedEvents) {
9554
9814
  */
9555
9815
  // eslint-disable-next-line max-params
9556
9816
  function getScopedEvents(events, namespace, childType, baseProps) {
9557
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
9817
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
9558
9818
  return {};
9559
9819
  }
9560
9820
 
9561
9821
  // Mandatory usage: `getScopedEvents.bind(this)`
9562
- // eslint-disable-next-line no-invalid-this
9822
+
9563
9823
  const newBaseProps = baseProps || this.baseProps;
9564
9824
  // returns the original base props or base state of a given target element
9565
9825
  const getTargetProps = (identifier, type) => {
@@ -9568,7 +9828,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9568
9828
  target,
9569
9829
  key
9570
9830
  } = identifier;
9571
- // eslint-disable-next-line no-invalid-this
9572
9831
  const baseType = type === "props" ? newBaseProps : this.state || {};
9573
9832
  const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
9574
9833
  return key === "parent" ? base.parent : base[key] && base[key][target];
@@ -9595,7 +9854,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9595
9854
 
9596
9855
  // returns the state object with mutated props applied for a single key
9597
9856
  const getMutationObject = (key, childName) => {
9598
- // eslint-disable-next-line no-invalid-this
9599
9857
  const baseState = this.state || {};
9600
9858
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
9601
9859
  return baseState;
@@ -9668,11 +9926,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9668
9926
  // into a state mutation, and calls setState
9669
9927
  // eslint-disable-next-line max-params
9670
9928
  const onEvent = (evt, childProps, eventKey, eventName) => {
9671
- // eslint-disable-next-line no-invalid-this
9672
9929
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
9673
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
9930
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
9674
9931
  const callbacks = compileCallbacks(eventReturn);
9675
- // eslint-disable-next-line no-invalid-this
9676
9932
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
9677
9933
  }
9678
9934
  };
@@ -9702,7 +9958,7 @@ function getPartialEvents(events, eventKey, childProps) {
9702
9958
  // eslint-disable-next-line max-params
9703
9959
  function getEventState(eventKey, namespace, childType) {
9704
9960
  // Mandatory usage: `getEventState.bind(this)`
9705
- // eslint-disable-next-line no-invalid-this
9961
+
9706
9962
  const state = this.state || {};
9707
9963
  if (!childType) {
9708
9964
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
@@ -9732,7 +9988,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
9732
9988
  const childState = baseState[childName];
9733
9989
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
9734
9990
  memo[childName] = mutation ? mutation : childState;
9735
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9991
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9736
9992
  }, {});
9737
9993
  }
9738
9994
 
@@ -9768,7 +10024,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9768
10024
  } else {
9769
10025
  // use keys from both state and props so that elements not intially included in baseProps
9770
10026
  // will be used. (i.e. labels)
9771
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
10027
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9772
10028
  memo[eventKey] = targets.reduce((m, target) => {
9773
10029
  const identifier = {
9774
10030
  eventKey,
@@ -9777,10 +10033,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9777
10033
  };
9778
10034
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
9779
10035
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
9780
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
10036
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9781
10037
  }, {});
9782
10038
  }
9783
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
10039
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9784
10040
  }, {});
9785
10041
  }
9786
10042
 
@@ -9812,11 +10068,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
9812
10068
  }
9813
10069
  // find any mutation objects that match the target
9814
10070
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
9815
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
10071
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
9816
10072
  return undefined;
9817
10073
  }
9818
10074
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
9819
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
10075
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
9820
10076
  return undefined;
9821
10077
  }
9822
10078
  return keyMutations.reduce((memo, curr) => {
@@ -9842,8 +10098,8 @@ function getGlobalEventNameFromKey(key) {
9842
10098
  const match = key.match(GLOBAL_EVENT_REGEX);
9843
10099
  return match && match[1] && match[1].toLowerCase();
9844
10100
  }
9845
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9846
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10101
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10102
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9847
10103
  const emulateReactEvent = event => Object.assign(event, {
9848
10104
  nativeEvent: event
9849
10105
  });
@@ -9884,41 +10140,45 @@ __webpack_require__.r(__webpack_exports__);
9884
10140
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
9885
10141
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
9886
10142
  /* harmony export */ });
9887
- /* 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");
9888
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9889
- /* 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");
9890
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
9891
- /* 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");
9892
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9893
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9894
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9895
-
10143
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10144
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10145
+ /* 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");
10146
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10147
+ /* 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");
10148
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
10149
+ /* 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");
10150
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
9896
10151
 
9897
10152
 
9898
- /* eslint-disable no-use-before-define */
9899
10153
 
9900
- // Private Functions
9901
10154
 
9902
- function getCartesianRange(props, axis) {
9903
- // determine how to lay the axis and what direction positive and negative are
9904
- const vertical = axis !== "x";
9905
- const padding = getPadding(props);
10155
+ /**
10156
+ * Determine the range of a cartesian axis
10157
+ */
10158
+ function getCartesianRange(options) {
10159
+ const vertical = options.axis !== "x";
9906
10160
  if (vertical) {
9907
- return [props.height - padding.bottom, padding.top];
10161
+ return [options.height - options.padding.bottom, options.padding.top];
9908
10162
  }
9909
- return [padding.left, props.width - padding.right];
10163
+ return [options.padding.left, options.width - options.padding.right];
9910
10164
  }
9911
- function getPolarRange(props, axis) {
9912
- if (axis === "x") {
9913
- const startAngle = degreesToRadians(props.startAngle || 0);
9914
- const endAngle = degreesToRadians(props.endAngle || 360);
10165
+
10166
+ /**
10167
+ * Determine the range of a polar axis in radians
10168
+ */
10169
+ function getPolarRange(options) {
10170
+ if (options.axis === "x") {
10171
+ const startAngle = degreesToRadians(options.startAngle || 0);
10172
+ const endAngle = degreesToRadians(options.endAngle || 360);
9915
10173
  return [startAngle, endAngle];
9916
10174
  }
9917
- return [props.innerRadius || 0, getRadius(props)];
10175
+ return [options.innerRadius || 0, getRadius({
10176
+ height: options.height,
10177
+ width: options.width,
10178
+ padding: options.padding
10179
+ })];
9918
10180
  }
9919
10181
 
9920
- // Exported Functions
9921
-
9922
10182
  /**
9923
10183
  * Creates an object composed of the inverted keys and values of object.
9924
10184
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -9955,8 +10215,11 @@ function omit(originalObject, ks) {
9955
10215
  }
9956
10216
  return newObject;
9957
10217
  }
10218
+
10219
+ /**
10220
+ * Coalesce the x and y values from a data point
10221
+ */
9958
10222
  function getPoint(datum) {
9959
- const exists = val => val !== undefined;
9960
10223
  const {
9961
10224
  _x,
9962
10225
  _x1,
@@ -9967,16 +10230,20 @@ function getPoint(datum) {
9967
10230
  _y0,
9968
10231
  _voronoiY
9969
10232
  } = datum;
9970
- const defaultX = exists(_x1) ? _x1 : _x;
9971
- const defaultY = exists(_y1) ? _y1 : _y;
10233
+ const defaultX = _x1 ?? _x;
10234
+ const defaultY = _y1 ?? _y;
9972
10235
  const point = {
9973
- x: exists(_voronoiX) ? _voronoiX : defaultX,
9974
- x0: exists(_x0) ? _x0 : _x,
9975
- y: exists(_voronoiY) ? _voronoiY : defaultY,
9976
- y0: exists(_y0) ? _y0 : _y
10236
+ x: _voronoiX ?? defaultX,
10237
+ x0: _x0 ?? _x,
10238
+ y: _voronoiY ?? defaultY,
10239
+ y0: _y0 ?? _y
9977
10240
  };
9978
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
10241
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
9979
10242
  }
10243
+
10244
+ /**
10245
+ * Scale a point based on the origin, direction, and given scale function
10246
+ */
9980
10247
  function scalePoint(props, datum) {
9981
10248
  const {
9982
10249
  scale,
@@ -9999,11 +10266,11 @@ function scalePoint(props, datum) {
9999
10266
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
10000
10267
  };
10001
10268
  }
10002
- function getPadding(props, name) {
10003
- if (name === void 0) {
10004
- name = "padding";
10005
- }
10006
- const padding = props[name];
10269
+
10270
+ /**
10271
+ * Returns a padding value from a number or partial padding values
10272
+ */
10273
+ function getPadding(padding) {
10007
10274
  const paddingVal = typeof padding === "number" ? padding : 0;
10008
10275
  const paddingObj = typeof padding === "object" ? padding : {};
10009
10276
  return {
@@ -10013,6 +10280,10 @@ function getPadding(props, name) {
10013
10280
  right: paddingObj.right || paddingVal
10014
10281
  };
10015
10282
  }
10283
+
10284
+ /**
10285
+ * Returns true if the component is defined as a tooltip
10286
+ */
10016
10287
  function isTooltip(component) {
10017
10288
  const labelRole = component && component.type && component.type.role;
10018
10289
  return labelRole === "tooltip";
@@ -10027,8 +10298,8 @@ function getDefaultStyles(props, role) {
10027
10298
  return defaultStyles;
10028
10299
  }
10029
10300
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
10030
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
10031
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
10301
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
10302
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
10032
10303
  labels: labelStyle
10033
10304
  }, defaultStyles);
10034
10305
  }
@@ -10036,7 +10307,7 @@ function getStyles(style, defaultStyles) {
10036
10307
  const width = "100%";
10037
10308
  const height = "100%";
10038
10309
  if (!style) {
10039
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
10310
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
10040
10311
  parent: {
10041
10312
  height,
10042
10313
  width
@@ -10052,14 +10323,18 @@ function getStyles(style, defaultStyles) {
10052
10323
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
10053
10324
  const defaultData = defaultStyles && defaultStyles.data || {};
10054
10325
  return {
10055
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
10326
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
10056
10327
  width,
10057
10328
  height
10058
10329
  }),
10059
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
10060
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
10330
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
10331
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
10061
10332
  };
10062
10333
  }
10334
+
10335
+ /**
10336
+ * Returns the value of a prop or accessor function with the given props
10337
+ */
10063
10338
  function evaluateProp(prop, props) {
10064
10339
  return isFunction(prop) ? prop(props) : prop;
10065
10340
  }
@@ -10081,19 +10356,28 @@ function degreesToRadians(degrees) {
10081
10356
  function radiansToDegrees(radians) {
10082
10357
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
10083
10358
  }
10084
- function getRadius(props) {
10359
+
10360
+ /**
10361
+ * Get the maximum radius that will fit in the container
10362
+ */
10363
+ function getRadius(options) {
10364
+ const {
10365
+ width,
10366
+ height,
10367
+ padding
10368
+ } = options;
10085
10369
  const {
10086
10370
  left,
10087
10371
  right,
10088
10372
  top,
10089
10373
  bottom
10090
- } = getPadding(props);
10091
- const {
10092
- width,
10093
- height
10094
- } = props;
10374
+ } = padding;
10095
10375
  return Math.min(width - left - right, height - top - bottom) / 2;
10096
10376
  }
10377
+
10378
+ /**
10379
+ * Returns the origin for a polar chart within the padded area
10380
+ */
10097
10381
  function getPolarOrigin(props) {
10098
10382
  const {
10099
10383
  width,
@@ -10104,7 +10388,7 @@ function getPolarOrigin(props) {
10104
10388
  bottom,
10105
10389
  left,
10106
10390
  right
10107
- } = getPadding(props);
10391
+ } = getPadding(props.padding);
10108
10392
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
10109
10393
  const offsetWidth = width / 2 + left - right;
10110
10394
  const offsetHeight = height / 2 + top - bottom;
@@ -10113,13 +10397,30 @@ function getPolarOrigin(props) {
10113
10397
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
10114
10398
  };
10115
10399
  }
10400
+
10401
+ /**
10402
+ * Determine the range of an axis based on the given props
10403
+ */
10116
10404
  function getRange(props, axis) {
10117
10405
  if (props.range && props.range[axis]) {
10118
10406
  return props.range[axis];
10119
10407
  } else if (props.range && Array.isArray(props.range)) {
10120
10408
  return props.range;
10121
10409
  }
10122
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
10410
+ return props.polar ? getPolarRange({
10411
+ axis,
10412
+ innerRadius: props.innerRadius,
10413
+ startAngle: props.startAngle,
10414
+ endAngle: props.endAngle,
10415
+ height: props.height,
10416
+ width: props.width,
10417
+ padding: getPadding(props.padding)
10418
+ }) : getCartesianRange({
10419
+ axis,
10420
+ height: props.height,
10421
+ width: props.width,
10422
+ padding: getPadding(props.padding)
10423
+ });
10123
10424
  }
10124
10425
 
10125
10426
  /**
@@ -10151,7 +10452,7 @@ function createAccessor(key) {
10151
10452
  return x => x;
10152
10453
  }
10153
10454
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
10154
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
10455
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
10155
10456
  }
10156
10457
  function modifyProps(props, fallbackProps, role) {
10157
10458
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -10160,7 +10461,7 @@ function modifyProps(props, fallbackProps, role) {
10160
10461
  const defaultObject = horizontal === undefined ? {} : {
10161
10462
  horizontal
10162
10463
  };
10163
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
10464
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
10164
10465
  }
10165
10466
 
10166
10467
  /**
@@ -10247,10 +10548,10 @@ initialMemo, combine) {
10247
10548
  const childRole = child.type && child.type.role;
10248
10549
  const childName = child.props.name || `${childRole}-${names[index]}`;
10249
10550
  if (child.props && child.props.children) {
10250
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
10251
- 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 => {
10252
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
10253
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
10551
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
10552
+ 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 => {
10553
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
10554
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
10254
10555
  });
10255
10556
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
10256
10557
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -10264,7 +10565,7 @@ initialMemo, combine) {
10264
10565
  return newMemo;
10265
10566
  }, initialMemo);
10266
10567
  };
10267
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
10568
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
10268
10569
  const childNames = validChildren.map((c, i) => i);
10269
10570
  return traverseChildren(validChildren, childNames);
10270
10571
  }
@@ -10284,10 +10585,10 @@ function isHorizontal(props) {
10284
10585
  if (memo || childProps.horizontal || !childProps.children) {
10285
10586
  return memo || childProps.horizontal;
10286
10587
  }
10287
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
10588
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
10288
10589
  }, false);
10289
10590
  };
10290
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
10591
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
10291
10592
  }
10292
10593
 
10293
10594
  /***/ }),
@@ -10360,11 +10661,11 @@ __webpack_require__.r(__webpack_exports__);
10360
10661
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
10361
10662
  /* harmony export */ "getText": function() { return /* binding */ getText; }
10362
10663
  /* harmony export */ });
10664
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10363
10665
  /* 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");
10364
10666
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
10365
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10366
10667
 
10367
- /* eslint-disable no-use-before-define */
10668
+
10368
10669
 
10369
10670
  // Private Functions
10370
10671
 
@@ -10609,11 +10910,12 @@ __webpack_require__.r(__webpack_exports__);
10609
10910
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10610
10911
  /* harmony export */ "warn": function() { return /* binding */ warn; }
10611
10912
  /* harmony export */ });
10612
- /* global console */
10913
+ /* global console process */
10613
10914
  /* eslint-disable no-console */
10614
10915
 
10615
- // TODO: Use "warning" npm module like React is switching to.
10616
10916
  function warn(message) {
10917
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10918
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
10617
10919
  if (true) {
10618
10920
  if (console && console.warn) {
10619
10921
  console.warn(message);
@@ -10684,7 +10986,6 @@ __webpack_require__.r(__webpack_exports__);
10684
10986
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
10685
10987
  /* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
10686
10988
 
10687
- /* eslint-disable no-use-before-define */
10688
10989
 
10689
10990
 
10690
10991
 
@@ -10907,13 +11208,15 @@ __webpack_require__.r(__webpack_exports__);
10907
11208
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
10908
11209
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
10909
11210
  /* harmony export */ });
10910
- /* 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");
10911
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
10912
- /* 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");
10913
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10914
-
10915
- // http://www.pearsonified.com/2012/01/characters-per-line.php
11211
+ /* 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");
11212
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
11213
+ /* 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");
11214
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
11215
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
10916
11216
  /* eslint-disable no-magic-numbers */
11217
+
11218
+
11219
+
10917
11220
  // Based on measuring specific character widths
10918
11221
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10919
11222
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -11092,7 +11395,7 @@ const convertLengthToPixels = (length, fontSize) => {
11092
11395
  };
11093
11396
  const _prepareParams = (inputStyle, index) => {
11094
11397
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
11095
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
11398
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
11096
11399
  return Object.assign({}, style, {
11097
11400
  fontFamily: style.fontFamily,
11098
11401
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -11140,7 +11443,7 @@ const _approximateDimensionsInternal = (text, style) => {
11140
11443
  height: heightWithRotate * coefficients.heightOverlapCoef
11141
11444
  };
11142
11445
  };
11143
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
11446
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
11144
11447
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
11145
11448
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
11146
11449
  element.setAttribute("width", "300");
@@ -11161,7 +11464,7 @@ const styleToKeyComponent = style => {
11161
11464
  }
11162
11465
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
11163
11466
  };
11164
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
11467
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
11165
11468
  let containerElement = _getMeasurementContainer();
11166
11469
  if (!containerElement.isConnected) {
11167
11470
  _getMeasurementContainer.cache.clear?.();
@@ -11331,12 +11634,12 @@ __webpack_require__.r(__webpack_exports__);
11331
11634
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
11332
11635
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
11333
11636
  /* harmony export */ });
11334
- /* 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");
11335
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
11637
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11638
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11336
11639
  /* 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");
11337
11640
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11338
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
11339
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
11641
+ /* 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");
11642
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
11340
11643
 
11341
11644
 
11342
11645
 
@@ -11427,13 +11730,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11427
11730
  const getTransitionsFromChildren = (old, next) => {
11428
11731
  return old.map((child, idx) => {
11429
11732
  if (child && child.props && child.props.children && next[idx]) {
11430
- 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));
11733
+ 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));
11431
11734
  }
11432
11735
  // get Transition entering and exiting nodes
11433
11736
  return getTransition(child, next[idx]);
11434
11737
  });
11435
11738
  };
11436
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
11739
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
11437
11740
  return {
11438
11741
  nodesWillExit,
11439
11742
  nodesWillEnter,
@@ -11447,7 +11750,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11447
11750
  };
11448
11751
  }
11449
11752
  function getInitialChildProps(animate, data) {
11450
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11753
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11451
11754
  return {
11452
11755
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
11453
11756
  };
@@ -11464,7 +11767,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
11464
11767
  data
11465
11768
  };
11466
11769
  }
11467
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11770
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11468
11771
  // If nodes need to exit, transform them with the provided onLoad.before function.
11469
11772
  const newData = data.map((datum, idx) => {
11470
11773
  return Object.assign({}, datum, before(datum, idx, data));
@@ -11475,8 +11778,6 @@ function getChildBeforeLoad(animate, child, data, cb) {
11475
11778
  clipWidth: 0
11476
11779
  };
11477
11780
  }
11478
-
11479
- // eslint-disable-next-line max-params
11480
11781
  function getChildOnLoad(animate, data, cb) {
11481
11782
  const newAnimate = Object.assign({}, animate, {
11482
11783
  onEnd: cb
@@ -11488,7 +11789,7 @@ function getChildOnLoad(animate, data, cb) {
11488
11789
  data
11489
11790
  };
11490
11791
  }
11491
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11792
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11492
11793
  // If nodes need to exit, transform them with the provided onLoad.after function.
11493
11794
  newData = data.map((datum, idx) => {
11494
11795
  return Object.assign({}, datum, after(datum, idx, data));
@@ -11499,7 +11800,7 @@ function getChildOnLoad(animate, data, cb) {
11499
11800
  };
11500
11801
  }
11501
11802
 
11502
- // eslint-disable-next-line max-params, max-len
11803
+ // eslint-disable-next-line max-params
11503
11804
  function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11504
11805
  // Whether or not _this_ child has exiting nodes, we want the exit-
11505
11806
  // transition for all children to have the same duration, delay, etc.
@@ -11510,7 +11811,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11510
11811
  // After the exit transition occurs, trigger the animations for
11511
11812
  // nodes that are neither exiting nor entering.
11512
11813
  animate.onEnd = cb;
11513
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11814
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11514
11815
  // If nodes need to exit, transform them with the provided onExit.before function.
11515
11816
  newData = data.map((datum, idx) => {
11516
11817
  const key = (datum.key || idx).toString();
@@ -11523,7 +11824,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11523
11824
  };
11524
11825
  }
11525
11826
 
11526
- // eslint-disable-next-line max-params,max-len
11827
+ // eslint-disable-next-line max-params
11527
11828
  function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11528
11829
  let newAnimate = animate;
11529
11830
  let newData = data;
@@ -11533,7 +11834,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11533
11834
  newAnimate = Object.assign({}, animate, {
11534
11835
  onEnd: cb
11535
11836
  });
11536
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11837
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11537
11838
  // We want the entering nodes to be included in the transition target
11538
11839
  // domain. However, we may not want these nodes to be displayed initially,
11539
11840
  // so perform the `onEnter.before` transformation on each node.
@@ -11548,7 +11849,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11548
11849
  };
11549
11850
  }
11550
11851
 
11551
- // eslint-disable-next-line max-params, max-len
11852
+ // eslint-disable-next-line max-params
11552
11853
  function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11553
11854
  // Whether or not _this_ child has entering nodes, we want the entering-
11554
11855
  // transition for all children to have the same duration, delay, etc.
@@ -11560,7 +11861,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11560
11861
  // domain should encompass the nodes that will now enter. So perform
11561
11862
  // the `onEnter.after` transformation on each node.
11562
11863
  newAnimate.onEnd = cb;
11563
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11864
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11564
11865
  newData = data.map((datum, idx) => {
11565
11866
  const key = getDatumKey(datum, idx);
11566
11867
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -11655,8 +11956,6 @@ function getTransitionPropsFactory(props, state, setState) {
11655
11956
  }
11656
11957
  return {};
11657
11958
  };
11658
-
11659
- // eslint-disable-next-line max-statements, complexity, max-len
11660
11959
  return function getTransitionProps(child, index) {
11661
11960
  const data = getChildData(child) || [];
11662
11961
  const animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.animate, child.props.animate);