victory-errorbar 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.
@@ -22,20 +22,19 @@ __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
23
  /* harmony export */ "ErrorBar": function() { return /* binding */ ErrorBar; }
24
24
  /* harmony export */ });
25
- /* 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");
26
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
27
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
28
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
25
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
26
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
27
+ /* 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");
28
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
29
29
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
30
30
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line.js");
31
31
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
32
32
 
33
- /* eslint-disable max-statements */
34
33
 
35
34
 
36
35
  const renderBorder = (props, error, type) => {
37
36
  const vertical = type === "right" || type === "left";
38
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
37
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
39
38
  ...props.events,
40
39
  role: props.role,
41
40
  shapeRendering: props.shapeRendering,
@@ -52,7 +51,7 @@ const renderBorder = (props, error, type) => {
52
51
  };
53
52
  const renderCross = (props, error, type) => {
54
53
  const vertical = type === "top" || type === "bottom";
55
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
54
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
56
55
  ...props.events,
57
56
  role: props.role,
58
57
  shapeRendering: props.shapeRendering,
@@ -127,16 +126,16 @@ const evaluateProps = props => {
127
126
 
128
127
  // ErrorProps for calculateError
129
128
 
130
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
129
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
131
130
 
132
131
  const defaultProps = {
133
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
134
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Line, null),
132
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
133
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Line, null),
135
134
  role: "presentation",
136
135
  shapeRendering: "auto"
137
136
  };
138
137
  const ErrorBar = initialProps => {
139
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
138
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
140
139
  const {
141
140
  groupComponent
142
141
  } = props;
@@ -147,7 +146,7 @@ const ErrorBar = initialProps => {
147
146
  } = props;
148
147
  const error = calculateError(props);
149
148
  const children = [error.right ? renderBorder(props, error, "right") : null, error.left ? renderBorder(props, error, "left") : null, error.bottom ? renderBorder(props, error, "bottom") : null, error.top ? renderBorder(props, error, "top") : null, error.right ? renderCross(props, error, "right") : null, error.left ? renderCross(props, error, "left") : null, error.bottom ? renderCross(props, error, "bottom") : null, error.top ? renderCross(props, error, "top") : null].filter(Boolean);
150
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {
149
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {
151
150
  tabIndex,
152
151
  "aria-label": ariaLabel,
153
152
  ...userProps
@@ -459,7 +458,7 @@ const defaultData = [{
459
458
  errorY: 0.4
460
459
  }];
461
460
 
462
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
461
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
463
462
 
464
463
  class VictoryErrorBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
465
464
  static animationWhitelist = ["data", "domain", "height", "padding", "samples", "style", "width", "errorX", "errorY", "borderWidth"];
@@ -5144,10 +5143,10 @@ __webpack_require__.r(__webpack_exports__);
5144
5143
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
5145
5144
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
5146
5145
  /* harmony export */ });
5147
- /* 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");
5148
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
5149
- /* 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");
5150
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
5146
+ /* 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");
5147
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
5148
+ /* 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");
5149
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
5151
5150
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
5152
5151
 
5153
5152
 
@@ -5173,7 +5172,7 @@ const isInterpolatable = function (obj) {
5173
5172
  return false;
5174
5173
  case "object":
5175
5174
  // Don't try to interpolate class instances (except Date or Array).
5176
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
5175
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
5177
5176
  case "function":
5178
5177
  // Careful! There may be extra properties on function objects that the
5179
5178
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -5233,7 +5232,7 @@ const interpolateFunction = function (a, b) {
5233
5232
  return b;
5234
5233
  }
5235
5234
  return function () {
5236
- /* eslint-disable no-invalid-this, prefer-rest-params */
5235
+ /* eslint-disable prefer-rest-params */
5237
5236
  const aval = typeof a === "function" ? a.apply(this, arguments) : a;
5238
5237
  const bval = typeof b === "function" ? b.apply(this, arguments) : b;
5239
5238
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(aval, bval)(t);
@@ -5259,7 +5258,7 @@ const interpolateObject = function (startValue, endValue) {
5259
5258
  if (typeof x === "function" || typeof y === "function") {
5260
5259
  return interpolateFunction(x, y);
5261
5260
  }
5262
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
5261
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
5263
5262
  return interpolateObject(x, y);
5264
5263
  }
5265
5264
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -5268,7 +5267,7 @@ const interpolateObject = function (startValue, endValue) {
5268
5267
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
5269
5268
  // based on "key" instead of index
5270
5269
  const keyData = val => {
5271
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
5270
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
5272
5271
  };
5273
5272
  const i = {};
5274
5273
  const c = {};
@@ -5335,7 +5334,7 @@ const victoryInterpolator = function (a, b) {
5335
5334
  if (typeof a === "function" || typeof b === "function") {
5336
5335
  return interpolateFunction(a, b);
5337
5336
  }
5338
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
5337
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
5339
5338
  // @ts-expect-error These generics are tough, but they work :)
5340
5339
  return interpolateObject(a, b);
5341
5340
  }
@@ -5511,16 +5510,15 @@ __webpack_require__.r(__webpack_exports__);
5511
5510
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
5512
5511
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
5513
5512
  /* harmony export */ });
5514
- /* 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");
5515
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5516
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5517
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5513
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5514
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5515
+ /* 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");
5516
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
5518
5517
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
5519
5518
  /* 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");
5520
5519
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
5521
5520
  /* 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");
5522
5521
  /* 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");
5523
-
5524
5522
  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); }
5525
5523
 
5526
5524
 
@@ -5528,9 +5526,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5528
5526
 
5529
5527
 
5530
5528
 
5529
+
5531
5530
  const defaultProps = {
5532
5531
  className: "VictoryContainer",
5533
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5532
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5534
5533
  portalZIndex: 99,
5535
5534
  responsive: true,
5536
5535
  role: "img"
@@ -5547,10 +5546,10 @@ function useVictoryContainer(initialProps) {
5547
5546
  height,
5548
5547
  responsive
5549
5548
  } = props;
5550
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
5549
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
5551
5550
 
5552
5551
  // Generated ID stored in ref because it needs to persist across renders
5553
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
5552
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
5554
5553
  const containerId = props.containerId ?? generatedId.current;
5555
5554
  const getIdForElement = elName => `${containerId}-${elName}`;
5556
5555
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -5609,7 +5608,7 @@ const VictoryContainer = initialProps => {
5609
5608
  containerRef,
5610
5609
  localContainerRef
5611
5610
  } = useVictoryContainer(initialProps);
5612
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
5611
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5613
5612
  if (!events?.onWheel) return;
5614
5613
  const handleWheel = e => e.preventDefault();
5615
5614
  const container = localContainerRef?.current;
@@ -5619,21 +5618,21 @@ const VictoryContainer = initialProps => {
5619
5618
  };
5620
5619
  // eslint-disable-next-line react-hooks/exhaustive-deps
5621
5620
  }, []);
5622
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5621
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5623
5622
  className: className,
5624
5623
  style: {
5625
5624
  ...style,
5626
5625
  width: responsive ? style?.width : dimensions.width,
5627
5626
  height: responsive ? style?.height : dimensions.height,
5628
- pointerEvents: "none",
5629
- touchAction: "none",
5630
- position: "relative"
5627
+ pointerEvents: style?.pointerEvents ?? "none",
5628
+ touchAction: style?.touchAction ?? "none",
5629
+ position: style?.position ?? "relative"
5631
5630
  },
5632
5631
  "data-ouia-component-id": ouiaId,
5633
5632
  "data-ouia-component-type": ouiaType,
5634
5633
  "data-ouia-safe": ouiaSafe,
5635
5634
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
5636
- }, /*#__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({
5635
+ }, /*#__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({
5637
5636
  width: width,
5638
5637
  height: height,
5639
5638
  tabIndex: tabIndex,
@@ -5646,11 +5645,11 @@ const VictoryContainer = initialProps => {
5646
5645
  ...dimensions,
5647
5646
  pointerEvents: "all"
5648
5647
  }
5649
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
5648
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
5650
5649
  id: titleId
5651
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
5650
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
5652
5651
  id: descId
5653
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5652
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5654
5653
  style: {
5655
5654
  ...dimensions,
5656
5655
  zIndex: portalZIndex,
@@ -5658,7 +5657,7 @@ const VictoryContainer = initialProps => {
5658
5657
  top: 0,
5659
5658
  left: 0
5660
5659
  }
5661
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5660
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5662
5661
  as: portalComponent,
5663
5662
  width: width,
5664
5663
  height: height,
@@ -5685,12 +5684,12 @@ __webpack_require__.r(__webpack_exports__);
5685
5684
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5686
5685
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
5687
5686
  /* harmony export */ });
5688
- /* 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");
5689
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5687
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5688
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5690
5689
  /* 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");
5691
5690
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5692
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5693
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5691
+ /* 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");
5692
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
5694
5693
  /* 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");
5695
5694
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
5696
5695
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -5701,9 +5700,9 @@ __webpack_require__.r(__webpack_exports__);
5701
5700
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
5702
5701
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
5703
5702
  /* 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");
5703
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5704
5704
 
5705
5705
 
5706
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5707
5706
 
5708
5707
 
5709
5708
 
@@ -5755,7 +5754,7 @@ const shouldUseMultilineBackgrounds = props => {
5755
5754
  backgroundStyle,
5756
5755
  backgroundPadding
5757
5756
  } = props;
5758
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
5757
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
5759
5758
  };
5760
5759
  const getStyles = (style, props) => {
5761
5760
  if (props.disableInlineStyles) {
@@ -5771,32 +5770,28 @@ const getStyles = (style, props) => {
5771
5770
  fontSize: getFontSize(baseStyles)
5772
5771
  });
5773
5772
  };
5774
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5773
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5775
5774
  };
5776
5775
  const getBackgroundStyles = (style, props) => {
5777
5776
  if (!style) {
5778
5777
  return undefined;
5779
5778
  }
5780
- 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);
5779
+ 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);
5781
5780
  };
5782
5781
  const getBackgroundPadding = props => {
5783
5782
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
5784
5783
  return props.backgroundPadding.map(backgroundPadding => {
5785
5784
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
5786
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5787
- padding
5788
- });
5785
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5789
5786
  });
5790
5787
  }
5791
5788
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
5792
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5793
- padding
5794
- });
5789
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5795
5790
  };
5796
5791
  const getLineHeight = props => {
5797
5792
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
5798
5793
  if (Array.isArray(lineHeight)) {
5799
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
5794
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
5800
5795
  }
5801
5796
  return lineHeight;
5802
5797
  };
@@ -5916,7 +5911,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
5916
5911
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
5917
5912
  y: yCoordinate
5918
5913
  };
5919
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5914
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5920
5915
  };
5921
5916
  const getInlineXOffset = (calculatedProps, textElements, index) => {
5922
5917
  const {
@@ -5986,7 +5981,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
5986
5981
  x: xCoord - padding.left,
5987
5982
  y: yCoord
5988
5983
  };
5989
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5984
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5990
5985
  });
5991
5986
  };
5992
5987
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -6117,16 +6112,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
6117
6112
  style: currentStyle,
6118
6113
  children: line
6119
6114
  };
6120
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
6115
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
6121
6116
  });
6122
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
6117
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
6123
6118
  };
6124
6119
  const defaultProps = {
6125
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6126
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
6120
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6121
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6127
6122
  direction: "inherit",
6128
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6129
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6123
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6124
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6130
6125
  capHeight: 0.71,
6131
6126
  // Magic number from d3.
6132
6127
  lineHeight: 1
@@ -6163,10 +6158,10 @@ const VictoryLabel = initialProps => {
6163
6158
  if (props.backgroundStyle) {
6164
6159
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
6165
6160
  const children = [backgroundElement, label];
6166
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
6167
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6161
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
6162
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6168
6163
  }
6169
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6164
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6170
6165
  };
6171
6166
  VictoryLabel.displayName = "VictoryLabel";
6172
6167
  VictoryLabel.role = "label";
@@ -6292,12 +6287,12 @@ __webpack_require__.r(__webpack_exports__);
6292
6287
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6293
6288
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
6294
6289
  /* harmony export */ });
6295
- /* 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");
6296
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6290
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6291
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6297
6292
  /* 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");
6298
6293
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6299
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6300
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6294
+ /* 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");
6295
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
6301
6296
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6302
6297
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6303
6298
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -6308,14 +6303,14 @@ __webpack_require__.r(__webpack_exports__);
6308
6303
 
6309
6304
 
6310
6305
  const defaultProps = {
6311
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
6306
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
6312
6307
  };
6313
6308
  const VictoryPortal = initialProps => {
6314
6309
  const props = {
6315
6310
  ...defaultProps,
6316
6311
  ...initialProps
6317
6312
  };
6318
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
6313
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
6319
6314
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6320
6315
  if (!portalContext) {
6321
6316
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -6333,12 +6328,12 @@ const VictoryPortal = initialProps => {
6333
6328
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
6334
6329
  key: childProps.key ?? id
6335
6330
  });
6336
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
6337
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6331
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
6332
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6338
6333
  portalContext?.addChild(id, child);
6339
6334
  // eslint-disable-next-line react-hooks/exhaustive-deps
6340
6335
  }, [props.children]);
6341
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6336
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6342
6337
  return () => portalContext?.removeChild(id);
6343
6338
  // eslint-disable-next-line react-hooks/exhaustive-deps
6344
6339
  }, []);
@@ -7643,22 +7638,22 @@ __webpack_require__.r(__webpack_exports__);
7643
7638
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7644
7639
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
7645
7640
  /* harmony export */ });
7646
- /* 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");
7647
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7641
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7642
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7648
7643
  /* 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");
7649
7644
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7650
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
7651
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
7645
+ /* 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");
7646
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
7647
+ /* 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");
7648
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7652
7649
  /* 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");
7653
7650
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
7654
7651
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7655
7652
  /* 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");
7656
7653
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
7657
- /* 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");
7658
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7654
+ 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); }
7659
7655
 
7660
7656
 
7661
- 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); }
7662
7657
 
7663
7658
 
7664
7659
 
@@ -7666,7 +7661,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
7666
7661
 
7667
7662
 
7668
7663
 
7669
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
7664
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
7670
7665
  static displayName = "VictoryTransition";
7671
7666
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
7672
7667
  constructor(props, context) {
@@ -7683,7 +7678,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7683
7678
  componentDidMount() {
7684
7679
  this.setState({
7685
7680
  nodesShouldLoad: true
7686
- }); // eslint-disable-line react/no-did-mount-set-state
7681
+ });
7687
7682
  }
7688
7683
  shouldComponentUpdate(nextProps) {
7689
7684
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(this.props, nextProps)) {
@@ -7709,8 +7704,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7709
7704
  nextProps
7710
7705
  };
7711
7706
  }
7712
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
7713
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
7707
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
7708
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
7714
7709
  const {
7715
7710
  nodesWillExit,
7716
7711
  nodesWillEnter,
@@ -7733,12 +7728,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7733
7728
  const childDomain = child.props && child.type.getDomain(child.props, axis);
7734
7729
  return childDomain ? memo.concat(childDomain) : memo;
7735
7730
  } else if (child.props && child.props.children) {
7736
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
7731
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
7737
7732
  }
7738
7733
  return memo;
7739
7734
  }, []);
7740
7735
  };
7741
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7736
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7742
7737
  const childProps = child.props || {};
7743
7738
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
7744
7739
  if (!childProps.children && domain) {
@@ -7771,7 +7766,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7771
7766
  render() {
7772
7767
  const props = this.pickProps();
7773
7768
  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));
7774
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7769
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7775
7770
  const transitionProps = getTransitionProps(child);
7776
7771
  this.transitionProps = transitionProps;
7777
7772
  const domain = {
@@ -7785,21 +7780,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7785
7780
  }, transitionProps, child.props);
7786
7781
  const animationWhitelist = props.animationWhitelist || [];
7787
7782
  const whitelist = animationWhitelist.concat(["clipWidth"]);
7788
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
7789
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7783
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
7784
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7790
7785
  data: propsToAnimate
7791
7786
  }), newProps => {
7792
7787
  if (child.props.groupComponent) {
7793
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
7788
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
7794
7789
  clipWidth: newProps.clipWidth || 0
7795
7790
  }) : child.props.groupComponent;
7796
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7791
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7797
7792
  animate: null,
7798
7793
  animating: true,
7799
7794
  groupComponent
7800
7795
  }, newProps, combinedProps));
7801
7796
  }
7802
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7797
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7803
7798
  animate: null,
7804
7799
  animating: true
7805
7800
  }, newProps, combinedProps));
@@ -7820,14 +7815,14 @@ __webpack_require__.r(__webpack_exports__);
7820
7815
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7821
7816
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
7822
7817
  /* harmony export */ });
7823
- /* 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");
7824
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7825
- /* 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");
7826
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
7827
- /* 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");
7828
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
7829
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
7830
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
7818
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7819
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7820
+ /* 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");
7821
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7822
+ /* 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");
7823
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
7824
+ /* 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");
7825
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
7831
7826
  /* 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");
7832
7827
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
7833
7828
  /* 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");
@@ -7897,7 +7892,7 @@ const defaultComponents = [{
7897
7892
  function addEvents(WrappedComponent, options) {
7898
7893
  if (options === void 0) {
7899
7894
  options = {};
7900
- } // eslint-disable-next-line @typescript-eslint/no-empty-interface
7895
+ } // eslint-disable-next-line @typescript-eslint/no-empty-object-type
7901
7896
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
7902
7897
  class AddEventsMixin extends WrappedComponent {
7903
7898
  constructor(props) {
@@ -7974,8 +7969,8 @@ function addEvents(WrappedComponent, options) {
7974
7969
  return {};
7975
7970
  }
7976
7971
  const getState = (key, type) => {
7977
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
7978
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
7972
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
7973
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
7979
7974
  };
7980
7975
  const components = options.components || defaultComponents;
7981
7976
  const stateChanges = components.map(component => {
@@ -7988,7 +7983,7 @@ function addEvents(WrappedComponent, options) {
7988
7983
  return stateChanges;
7989
7984
  }
7990
7985
  applyExternalMutations(props, externalMutations) {
7991
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
7986
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
7992
7987
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
7993
7988
  const compiledCallbacks = callbacks.length ? () => {
7994
7989
  callbacks.forEach(c => c());
@@ -8021,7 +8016,7 @@ function addEvents(WrappedComponent, options) {
8021
8016
  sharedEvents,
8022
8017
  externalEventMutations
8023
8018
  } = props;
8024
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8019
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8025
8020
  }
8026
8021
  cacheValues(obj) {
8027
8022
  Object.keys(obj).forEach(key => {
@@ -8032,10 +8027,10 @@ function addEvents(WrappedComponent, options) {
8032
8027
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
8033
8028
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
8034
8029
  const parentState = this.getEventState("parent", "parent");
8035
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
8030
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
8036
8031
  const parentPropsList = baseParentProps.parentControlledProps;
8037
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
8038
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
8032
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
8033
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
8039
8034
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
8040
8035
  }
8041
8036
  getAllEvents(props) {
@@ -8055,18 +8050,18 @@ function addEvents(WrappedComponent, options) {
8055
8050
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
8056
8051
  if (this.hasEvents) {
8057
8052
  const baseEvents = this.getEvents(this.props, type, key);
8058
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8053
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8059
8054
  index,
8060
8055
  key: id
8061
8056
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
8062
8057
  id
8063
8058
  });
8064
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8059
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8065
8060
  return Object.assign({}, componentProps, {
8066
8061
  events
8067
8062
  });
8068
8063
  }
8069
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8064
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8070
8065
  index,
8071
8066
  key: id
8072
8067
  }, currentProps, baseProps, {
@@ -8080,15 +8075,15 @@ function addEvents(WrappedComponent, options) {
8080
8075
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
8081
8076
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
8082
8077
  }
8083
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
8078
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
8084
8079
  }
8085
8080
  animateComponent(props, defaultAnimationWhitelist) {
8086
8081
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
8087
8082
  const Comp = this.constructor;
8088
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8083
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8089
8084
  animate: props.animate,
8090
8085
  animationWhitelist: animationWhitelist
8091
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
8086
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
8092
8087
  }
8093
8088
 
8094
8089
  // Used by `VictoryLine` and `VictoryArea`
@@ -8103,12 +8098,12 @@ function addEvents(WrappedComponent, options) {
8103
8098
  let newMemo = memo;
8104
8099
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
8105
8100
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
8106
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
8101
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
8107
8102
  }
8108
8103
  return newMemo;
8109
8104
  }, []);
8110
8105
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
8111
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8106
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8112
8107
  return this.renderContainer(groupComponent, children);
8113
8108
  }
8114
8109
  renderData(props, shouldRenderDatum) {
@@ -8123,14 +8118,14 @@ function addEvents(WrappedComponent, options) {
8123
8118
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
8124
8119
  const dataProps = this.getComponentProps(dataComponent, "data", index);
8125
8120
  if (shouldRenderDatum(dataProps.datum)) {
8126
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
8121
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
8127
8122
  }
8128
8123
  return validDataComponents;
8129
8124
  }, []);
8130
8125
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
8131
8126
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
8132
8127
  if (labelProps.text !== undefined && labelProps.text !== null) {
8133
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
8128
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
8134
8129
  }
8135
8130
  return undefined;
8136
8131
  }).filter(Boolean);
@@ -8236,24 +8231,24 @@ __webpack_require__.r(__webpack_exports__);
8236
8231
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
8237
8232
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
8238
8233
  /* harmony export */ });
8239
- /* 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");
8240
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
8241
- /* 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");
8242
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
8234
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8235
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8236
+ /* 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");
8237
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8243
8238
  /* 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");
8244
8239
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
8245
- /* 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");
8246
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
8247
- /* 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");
8248
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
8249
- /* 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");
8250
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
8251
- /* 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");
8252
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
8253
- /* 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");
8254
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
8255
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
8256
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
8240
+ /* 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");
8241
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
8242
+ /* 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");
8243
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
8244
+ /* 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");
8245
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
8246
+ /* 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");
8247
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
8248
+ /* 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");
8249
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
8250
+ /* 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");
8251
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
8257
8252
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8258
8253
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8259
8254
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
@@ -8266,7 +8261,6 @@ __webpack_require__.r(__webpack_exports__);
8266
8261
 
8267
8262
 
8268
8263
 
8269
- /* eslint-disable no-use-before-define */
8270
8264
 
8271
8265
 
8272
8266
 
@@ -8288,7 +8282,7 @@ function getLength(data) {
8288
8282
 
8289
8283
  // Returns generated data for a given axis based on domain and sample from props
8290
8284
  function generateDataArray(props, axis) {
8291
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
8285
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
8292
8286
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
8293
8287
  const samples = props.samples || 1;
8294
8288
  const domainMax = Math.max(...domain);
@@ -8313,7 +8307,7 @@ function sortData(dataset, sortKey, sortOrder) {
8313
8307
  formattedSortKey = `_${sortKey}`;
8314
8308
  }
8315
8309
  const order = sortOrder === "ascending" ? "asc" : "desc";
8316
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
8310
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
8317
8311
  }
8318
8312
 
8319
8313
  // This method will remove data points that break certain scales. (log scale only)
@@ -8357,7 +8351,7 @@ function getEventKey(key) {
8357
8351
  return () => undefined;
8358
8352
  }
8359
8353
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
8360
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
8354
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
8361
8355
  }
8362
8356
 
8363
8357
  // Returns data with an eventKey prop added to each datum
@@ -8392,8 +8386,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8392
8386
  const isUnderMinY = underMin(minDomainY);
8393
8387
  const isOverMaxX = overMax(maxDomainX);
8394
8388
  const isOverMaxY = overMax(maxDomainY);
8395
-
8396
- // eslint-disable-next-line complexity
8397
8389
  return dataset.map(datum => {
8398
8390
  let {
8399
8391
  _x,
@@ -8418,12 +8410,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
8418
8410
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
8419
8411
  // baseline and value with only baseline above max, set baseline to maxDomainY
8420
8412
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
8421
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
8413
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
8422
8414
  _x,
8423
8415
  _y,
8424
8416
  _y0,
8425
8417
  _y1
8426
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
8418
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
8427
8419
  });
8428
8420
  }
8429
8421
 
@@ -8437,7 +8429,7 @@ function createStringMap(props, axis) {
8437
8429
  const stringsFromAxes = getStringsFromAxes(props, axis);
8438
8430
  const stringsFromCategories = getStringsFromCategories(props, axis);
8439
8431
  const stringsFromData = getStringsFromData(props, axis);
8440
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8432
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
8441
8433
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
8442
8434
  memo[string] = index + 1;
8443
8435
  return memo;
@@ -8504,7 +8496,6 @@ function formatData(dataset, props, expectedKeys) {
8504
8496
  };
8505
8497
  }
8506
8498
  const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
8507
- // eslint-disable-line complexity
8508
8499
  const parsedDatum = parseDatum(datum);
8509
8500
  const fallbackValues = {
8510
8501
  x: index,
@@ -8524,7 +8515,7 @@ function formatData(dataset, props, expectedKeys) {
8524
8515
  return memo;
8525
8516
  }, {});
8526
8517
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
8527
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
8518
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
8528
8519
  dataArr.push(formattedDatum);
8529
8520
  }
8530
8521
  return dataArr;
@@ -8651,7 +8642,7 @@ function isDataComponent(component) {
8651
8642
  };
8652
8643
  let role = getRole(component);
8653
8644
  if (role === "portal") {
8654
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
8645
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
8655
8646
  role = children.length ? getRole(children[0]) : "";
8656
8647
  }
8657
8648
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -8786,14 +8777,14 @@ __webpack_require__.r(__webpack_exports__);
8786
8777
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
8787
8778
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
8788
8779
  /* harmony export */ });
8789
- /* 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");
8790
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
8791
- /* 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");
8792
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
8780
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8781
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8782
+ /* 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");
8783
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
8793
8784
  /* 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");
8794
8785
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
8795
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8796
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8786
+ /* 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");
8787
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
8797
8788
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
8798
8789
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
8799
8790
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -8801,7 +8792,6 @@ __webpack_require__.r(__webpack_exports__);
8801
8792
 
8802
8793
 
8803
8794
 
8804
- /* eslint-disable no-use-before-define */
8805
8795
 
8806
8796
 
8807
8797
 
@@ -8857,8 +8847,6 @@ function getExtremeFromData(dataset, axis, type) {
8857
8847
  }, initialValue);
8858
8848
  return containsDate ? new Date(result) : result;
8859
8849
  }
8860
-
8861
- // eslint-disable-next-line max-statements
8862
8850
  function padDomain(domain, props, axis) {
8863
8851
  if (!props.domainPadding) {
8864
8852
  return domain;
@@ -8885,9 +8873,9 @@ function padDomain(domain, props, axis) {
8885
8873
  max: max.valueOf() + simplePadding.right
8886
8874
  };
8887
8875
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
8888
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
8876
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
8889
8877
  const adjust = (val, type) => {
8890
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
8878
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
8891
8879
  return coerce ? 0 : val;
8892
8880
  };
8893
8881
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -9110,7 +9098,7 @@ function getMaxFromProps(props, axis) {
9110
9098
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
9111
9099
  return props.maxDomain[axis];
9112
9100
  }
9113
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
9101
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
9114
9102
  }
9115
9103
 
9116
9104
  /**
@@ -9123,7 +9111,7 @@ function getMinFromProps(props, axis) {
9123
9111
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
9124
9112
  return props.minDomain[axis];
9125
9113
  }
9126
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
9114
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
9127
9115
  }
9128
9116
 
9129
9117
  /**
@@ -9134,7 +9122,7 @@ function getMinFromProps(props, axis) {
9134
9122
  * @returns {Array} the symmetric domain
9135
9123
  */
9136
9124
  function getSymmetricDomain(domain, values) {
9137
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
9125
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
9138
9126
  const step = processedData[1] - processedData[0];
9139
9127
  return [domain[0], domain[1] + step];
9140
9128
  }
@@ -9150,7 +9138,7 @@ function isDomainComponent(component) {
9150
9138
  };
9151
9139
  let role = getRole(component);
9152
9140
  if (role === "portal") {
9153
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
9141
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
9154
9142
  role = children.length ? getRole(children[0]) : "";
9155
9143
  }
9156
9144
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -9181,20 +9169,19 @@ __webpack_require__.r(__webpack_exports__);
9181
9169
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
9182
9170
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
9183
9171
  /* harmony export */ });
9184
- /* 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");
9185
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
9186
- /* 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");
9187
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
9188
- /* 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");
9189
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
9190
- /* 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");
9191
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
9172
+ /* 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");
9173
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
9174
+ /* 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");
9175
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
9176
+ /* 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");
9177
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
9178
+ /* 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");
9179
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
9192
9180
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9193
9181
 
9194
9182
 
9195
9183
 
9196
9184
 
9197
- /* eslint-disable no-use-before-define */
9198
9185
 
9199
9186
  const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
9200
9187
 
@@ -9242,11 +9229,10 @@ getScopedEvents) {
9242
9229
  */
9243
9230
  const getAllEvents = () => {
9244
9231
  // Mandatory usage: `getEvents.bind(this)`
9245
- /* eslint-disable no-invalid-this */
9232
+
9246
9233
  if (Array.isArray(this.componentEvents)) {
9247
9234
  return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
9248
9235
  }
9249
- /* eslint-enable no-invalid-this */
9250
9236
  return props.events;
9251
9237
  };
9252
9238
  const allEvents = getAllEvents();
@@ -9266,12 +9252,12 @@ getScopedEvents) {
9266
9252
  */
9267
9253
  // eslint-disable-next-line max-params
9268
9254
  function getScopedEvents(events, namespace, childType, baseProps) {
9269
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
9255
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
9270
9256
  return {};
9271
9257
  }
9272
9258
 
9273
9259
  // Mandatory usage: `getScopedEvents.bind(this)`
9274
- // eslint-disable-next-line no-invalid-this
9260
+
9275
9261
  const newBaseProps = baseProps || this.baseProps;
9276
9262
  // returns the original base props or base state of a given target element
9277
9263
  const getTargetProps = (identifier, type) => {
@@ -9280,7 +9266,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9280
9266
  target,
9281
9267
  key
9282
9268
  } = identifier;
9283
- // eslint-disable-next-line no-invalid-this
9284
9269
  const baseType = type === "props" ? newBaseProps : this.state || {};
9285
9270
  const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
9286
9271
  return key === "parent" ? base.parent : base[key] && base[key][target];
@@ -9307,7 +9292,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9307
9292
 
9308
9293
  // returns the state object with mutated props applied for a single key
9309
9294
  const getMutationObject = (key, childName) => {
9310
- // eslint-disable-next-line no-invalid-this
9311
9295
  const baseState = this.state || {};
9312
9296
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
9313
9297
  return baseState;
@@ -9380,11 +9364,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
9380
9364
  // into a state mutation, and calls setState
9381
9365
  // eslint-disable-next-line max-params
9382
9366
  const onEvent = (evt, childProps, eventKey, eventName) => {
9383
- // eslint-disable-next-line no-invalid-this
9384
9367
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
9385
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
9368
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
9386
9369
  const callbacks = compileCallbacks(eventReturn);
9387
- // eslint-disable-next-line no-invalid-this
9388
9370
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
9389
9371
  }
9390
9372
  };
@@ -9414,7 +9396,7 @@ function getPartialEvents(events, eventKey, childProps) {
9414
9396
  // eslint-disable-next-line max-params
9415
9397
  function getEventState(eventKey, namespace, childType) {
9416
9398
  // Mandatory usage: `getEventState.bind(this)`
9417
- // eslint-disable-next-line no-invalid-this
9399
+
9418
9400
  const state = this.state || {};
9419
9401
  if (!childType) {
9420
9402
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
@@ -9444,7 +9426,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
9444
9426
  const childState = baseState[childName];
9445
9427
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
9446
9428
  memo[childName] = mutation ? mutation : childState;
9447
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9429
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9448
9430
  }, {});
9449
9431
  }
9450
9432
 
@@ -9480,7 +9462,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9480
9462
  } else {
9481
9463
  // use keys from both state and props so that elements not intially included in baseProps
9482
9464
  // will be used. (i.e. labels)
9483
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9465
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
9484
9466
  memo[eventKey] = targets.reduce((m, target) => {
9485
9467
  const identifier = {
9486
9468
  eventKey,
@@ -9489,10 +9471,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
9489
9471
  };
9490
9472
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
9491
9473
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
9492
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9474
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9493
9475
  }, {});
9494
9476
  }
9495
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
9477
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
9496
9478
  }, {});
9497
9479
  }
9498
9480
 
@@ -9524,11 +9506,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
9524
9506
  }
9525
9507
  // find any mutation objects that match the target
9526
9508
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
9527
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
9509
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
9528
9510
  return undefined;
9529
9511
  }
9530
9512
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
9531
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
9513
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
9532
9514
  return undefined;
9533
9515
  }
9534
9516
  return keyMutations.reduce((memo, curr) => {
@@ -9554,8 +9536,8 @@ function getGlobalEventNameFromKey(key) {
9554
9536
  const match = key.match(GLOBAL_EVENT_REGEX);
9555
9537
  return match && match[1] && match[1].toLowerCase();
9556
9538
  }
9557
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9558
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9539
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9540
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
9559
9541
  const emulateReactEvent = event => Object.assign(event, {
9560
9542
  nativeEvent: event
9561
9543
  });
@@ -9596,41 +9578,45 @@ __webpack_require__.r(__webpack_exports__);
9596
9578
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
9597
9579
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
9598
9580
  /* harmony export */ });
9599
- /* 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");
9600
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9601
- /* 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");
9602
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
9603
- /* 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");
9604
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9605
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9606
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9607
-
9581
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9582
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9583
+ /* 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");
9584
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
9585
+ /* 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");
9586
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
9587
+ /* 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");
9588
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
9608
9589
 
9609
9590
 
9610
- /* eslint-disable no-use-before-define */
9611
9591
 
9612
- // Private Functions
9613
9592
 
9614
- function getCartesianRange(props, axis) {
9615
- // determine how to lay the axis and what direction positive and negative are
9616
- const vertical = axis !== "x";
9617
- const padding = getPadding(props);
9593
+ /**
9594
+ * Determine the range of a cartesian axis
9595
+ */
9596
+ function getCartesianRange(options) {
9597
+ const vertical = options.axis !== "x";
9618
9598
  if (vertical) {
9619
- return [props.height - padding.bottom, padding.top];
9599
+ return [options.height - options.padding.bottom, options.padding.top];
9620
9600
  }
9621
- return [padding.left, props.width - padding.right];
9601
+ return [options.padding.left, options.width - options.padding.right];
9622
9602
  }
9623
- function getPolarRange(props, axis) {
9624
- if (axis === "x") {
9625
- const startAngle = degreesToRadians(props.startAngle || 0);
9626
- const endAngle = degreesToRadians(props.endAngle || 360);
9603
+
9604
+ /**
9605
+ * Determine the range of a polar axis in radians
9606
+ */
9607
+ function getPolarRange(options) {
9608
+ if (options.axis === "x") {
9609
+ const startAngle = degreesToRadians(options.startAngle || 0);
9610
+ const endAngle = degreesToRadians(options.endAngle || 360);
9627
9611
  return [startAngle, endAngle];
9628
9612
  }
9629
- return [props.innerRadius || 0, getRadius(props)];
9613
+ return [options.innerRadius || 0, getRadius({
9614
+ height: options.height,
9615
+ width: options.width,
9616
+ padding: options.padding
9617
+ })];
9630
9618
  }
9631
9619
 
9632
- // Exported Functions
9633
-
9634
9620
  /**
9635
9621
  * Creates an object composed of the inverted keys and values of object.
9636
9622
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -9667,8 +9653,11 @@ function omit(originalObject, ks) {
9667
9653
  }
9668
9654
  return newObject;
9669
9655
  }
9656
+
9657
+ /**
9658
+ * Coalesce the x and y values from a data point
9659
+ */
9670
9660
  function getPoint(datum) {
9671
- const exists = val => val !== undefined;
9672
9661
  const {
9673
9662
  _x,
9674
9663
  _x1,
@@ -9679,16 +9668,20 @@ function getPoint(datum) {
9679
9668
  _y0,
9680
9669
  _voronoiY
9681
9670
  } = datum;
9682
- const defaultX = exists(_x1) ? _x1 : _x;
9683
- const defaultY = exists(_y1) ? _y1 : _y;
9671
+ const defaultX = _x1 ?? _x;
9672
+ const defaultY = _y1 ?? _y;
9684
9673
  const point = {
9685
- x: exists(_voronoiX) ? _voronoiX : defaultX,
9686
- x0: exists(_x0) ? _x0 : _x,
9687
- y: exists(_voronoiY) ? _voronoiY : defaultY,
9688
- y0: exists(_y0) ? _y0 : _y
9674
+ x: _voronoiX ?? defaultX,
9675
+ x0: _x0 ?? _x,
9676
+ y: _voronoiY ?? defaultY,
9677
+ y0: _y0 ?? _y
9689
9678
  };
9690
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
9679
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
9691
9680
  }
9681
+
9682
+ /**
9683
+ * Scale a point based on the origin, direction, and given scale function
9684
+ */
9692
9685
  function scalePoint(props, datum) {
9693
9686
  const {
9694
9687
  scale,
@@ -9711,11 +9704,11 @@ function scalePoint(props, datum) {
9711
9704
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
9712
9705
  };
9713
9706
  }
9714
- function getPadding(props, name) {
9715
- if (name === void 0) {
9716
- name = "padding";
9717
- }
9718
- const padding = props[name];
9707
+
9708
+ /**
9709
+ * Returns a padding value from a number or partial padding values
9710
+ */
9711
+ function getPadding(padding) {
9719
9712
  const paddingVal = typeof padding === "number" ? padding : 0;
9720
9713
  const paddingObj = typeof padding === "object" ? padding : {};
9721
9714
  return {
@@ -9725,6 +9718,10 @@ function getPadding(props, name) {
9725
9718
  right: paddingObj.right || paddingVal
9726
9719
  };
9727
9720
  }
9721
+
9722
+ /**
9723
+ * Returns true if the component is defined as a tooltip
9724
+ */
9728
9725
  function isTooltip(component) {
9729
9726
  const labelRole = component && component.type && component.type.role;
9730
9727
  return labelRole === "tooltip";
@@ -9739,8 +9736,8 @@ function getDefaultStyles(props, role) {
9739
9736
  return defaultStyles;
9740
9737
  }
9741
9738
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
9742
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
9743
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
9739
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
9740
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
9744
9741
  labels: labelStyle
9745
9742
  }, defaultStyles);
9746
9743
  }
@@ -9748,7 +9745,7 @@ function getStyles(style, defaultStyles) {
9748
9745
  const width = "100%";
9749
9746
  const height = "100%";
9750
9747
  if (!style) {
9751
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9748
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
9752
9749
  parent: {
9753
9750
  height,
9754
9751
  width
@@ -9764,14 +9761,18 @@ function getStyles(style, defaultStyles) {
9764
9761
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
9765
9762
  const defaultData = defaultStyles && defaultStyles.data || {};
9766
9763
  return {
9767
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
9764
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
9768
9765
  width,
9769
9766
  height
9770
9767
  }),
9771
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
9772
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
9768
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
9769
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
9773
9770
  };
9774
9771
  }
9772
+
9773
+ /**
9774
+ * Returns the value of a prop or accessor function with the given props
9775
+ */
9775
9776
  function evaluateProp(prop, props) {
9776
9777
  return isFunction(prop) ? prop(props) : prop;
9777
9778
  }
@@ -9793,19 +9794,28 @@ function degreesToRadians(degrees) {
9793
9794
  function radiansToDegrees(radians) {
9794
9795
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
9795
9796
  }
9796
- function getRadius(props) {
9797
+
9798
+ /**
9799
+ * Get the maximum radius that will fit in the container
9800
+ */
9801
+ function getRadius(options) {
9802
+ const {
9803
+ width,
9804
+ height,
9805
+ padding
9806
+ } = options;
9797
9807
  const {
9798
9808
  left,
9799
9809
  right,
9800
9810
  top,
9801
9811
  bottom
9802
- } = getPadding(props);
9803
- const {
9804
- width,
9805
- height
9806
- } = props;
9812
+ } = padding;
9807
9813
  return Math.min(width - left - right, height - top - bottom) / 2;
9808
9814
  }
9815
+
9816
+ /**
9817
+ * Returns the origin for a polar chart within the padded area
9818
+ */
9809
9819
  function getPolarOrigin(props) {
9810
9820
  const {
9811
9821
  width,
@@ -9816,7 +9826,7 @@ function getPolarOrigin(props) {
9816
9826
  bottom,
9817
9827
  left,
9818
9828
  right
9819
- } = getPadding(props);
9829
+ } = getPadding(props.padding);
9820
9830
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
9821
9831
  const offsetWidth = width / 2 + left - right;
9822
9832
  const offsetHeight = height / 2 + top - bottom;
@@ -9825,13 +9835,30 @@ function getPolarOrigin(props) {
9825
9835
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
9826
9836
  };
9827
9837
  }
9838
+
9839
+ /**
9840
+ * Determine the range of an axis based on the given props
9841
+ */
9828
9842
  function getRange(props, axis) {
9829
9843
  if (props.range && props.range[axis]) {
9830
9844
  return props.range[axis];
9831
9845
  } else if (props.range && Array.isArray(props.range)) {
9832
9846
  return props.range;
9833
9847
  }
9834
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
9848
+ return props.polar ? getPolarRange({
9849
+ axis,
9850
+ innerRadius: props.innerRadius,
9851
+ startAngle: props.startAngle,
9852
+ endAngle: props.endAngle,
9853
+ height: props.height,
9854
+ width: props.width,
9855
+ padding: getPadding(props.padding)
9856
+ }) : getCartesianRange({
9857
+ axis,
9858
+ height: props.height,
9859
+ width: props.width,
9860
+ padding: getPadding(props.padding)
9861
+ });
9835
9862
  }
9836
9863
 
9837
9864
  /**
@@ -9863,7 +9890,7 @@ function createAccessor(key) {
9863
9890
  return x => x;
9864
9891
  }
9865
9892
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
9866
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
9893
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
9867
9894
  }
9868
9895
  function modifyProps(props, fallbackProps, role) {
9869
9896
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -9872,7 +9899,7 @@ function modifyProps(props, fallbackProps, role) {
9872
9899
  const defaultObject = horizontal === undefined ? {} : {
9873
9900
  horizontal
9874
9901
  };
9875
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
9902
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
9876
9903
  }
9877
9904
 
9878
9905
  /**
@@ -9959,10 +9986,10 @@ initialMemo, combine) {
9959
9986
  const childRole = child.type && child.type.role;
9960
9987
  const childName = child.props.name || `${childRole}-${names[index]}`;
9961
9988
  if (child.props && child.props.children) {
9962
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
9963
- 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 => {
9964
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
9965
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
9989
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
9990
+ 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 => {
9991
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
9992
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
9966
9993
  });
9967
9994
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
9968
9995
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -9976,7 +10003,7 @@ initialMemo, combine) {
9976
10003
  return newMemo;
9977
10004
  }, initialMemo);
9978
10005
  };
9979
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
10006
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
9980
10007
  const childNames = validChildren.map((c, i) => i);
9981
10008
  return traverseChildren(validChildren, childNames);
9982
10009
  }
@@ -9996,10 +10023,10 @@ function isHorizontal(props) {
9996
10023
  if (memo || childProps.horizontal || !childProps.children) {
9997
10024
  return memo || childProps.horizontal;
9998
10025
  }
9999
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
10026
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
10000
10027
  }, false);
10001
10028
  };
10002
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
10029
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
10003
10030
  }
10004
10031
 
10005
10032
  /***/ }),
@@ -10072,11 +10099,11 @@ __webpack_require__.r(__webpack_exports__);
10072
10099
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
10073
10100
  /* harmony export */ "getText": function() { return /* binding */ getText; }
10074
10101
  /* harmony export */ });
10102
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10075
10103
  /* 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");
10076
10104
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
10077
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10078
10105
 
10079
- /* eslint-disable no-use-before-define */
10106
+
10080
10107
 
10081
10108
  // Private Functions
10082
10109
 
@@ -10321,11 +10348,12 @@ __webpack_require__.r(__webpack_exports__);
10321
10348
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10322
10349
  /* harmony export */ "warn": function() { return /* binding */ warn; }
10323
10350
  /* harmony export */ });
10324
- /* global console */
10351
+ /* global console process */
10325
10352
  /* eslint-disable no-console */
10326
10353
 
10327
- // TODO: Use "warning" npm module like React is switching to.
10328
10354
  function warn(message) {
10355
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10356
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
10329
10357
  if (true) {
10330
10358
  if (console && console.warn) {
10331
10359
  console.warn(message);
@@ -10396,7 +10424,6 @@ __webpack_require__.r(__webpack_exports__);
10396
10424
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
10397
10425
  /* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
10398
10426
 
10399
- /* eslint-disable no-use-before-define */
10400
10427
 
10401
10428
 
10402
10429
 
@@ -10619,13 +10646,15 @@ __webpack_require__.r(__webpack_exports__);
10619
10646
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
10620
10647
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
10621
10648
  /* harmony export */ });
10622
- /* 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");
10623
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
10624
- /* 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");
10625
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10626
-
10627
- // http://www.pearsonified.com/2012/01/characters-per-line.php
10649
+ /* 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");
10650
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
10651
+ /* 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");
10652
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
10653
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
10628
10654
  /* eslint-disable no-magic-numbers */
10655
+
10656
+
10657
+
10629
10658
  // Based on measuring specific character widths
10630
10659
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10631
10660
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -10804,7 +10833,7 @@ const convertLengthToPixels = (length, fontSize) => {
10804
10833
  };
10805
10834
  const _prepareParams = (inputStyle, index) => {
10806
10835
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
10807
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
10836
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
10808
10837
  return Object.assign({}, style, {
10809
10838
  fontFamily: style.fontFamily,
10810
10839
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -10852,7 +10881,7 @@ const _approximateDimensionsInternal = (text, style) => {
10852
10881
  height: heightWithRotate * coefficients.heightOverlapCoef
10853
10882
  };
10854
10883
  };
10855
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
10884
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
10856
10885
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
10857
10886
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
10858
10887
  element.setAttribute("width", "300");
@@ -10873,7 +10902,7 @@ const styleToKeyComponent = style => {
10873
10902
  }
10874
10903
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
10875
10904
  };
10876
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
10905
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
10877
10906
  let containerElement = _getMeasurementContainer();
10878
10907
  if (!containerElement.isConnected) {
10879
10908
  _getMeasurementContainer.cache.clear?.();
@@ -11043,12 +11072,12 @@ __webpack_require__.r(__webpack_exports__);
11043
11072
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
11044
11073
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
11045
11074
  /* harmony export */ });
11046
- /* 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");
11047
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
11075
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11076
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11048
11077
  /* 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");
11049
11078
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11050
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
11051
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
11079
+ /* 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");
11080
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
11052
11081
 
11053
11082
 
11054
11083
 
@@ -11139,13 +11168,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11139
11168
  const getTransitionsFromChildren = (old, next) => {
11140
11169
  return old.map((child, idx) => {
11141
11170
  if (child && child.props && child.props.children && next[idx]) {
11142
- 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));
11171
+ 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));
11143
11172
  }
11144
11173
  // get Transition entering and exiting nodes
11145
11174
  return getTransition(child, next[idx]);
11146
11175
  });
11147
11176
  };
11148
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
11177
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
11149
11178
  return {
11150
11179
  nodesWillExit,
11151
11180
  nodesWillEnter,
@@ -11159,7 +11188,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
11159
11188
  };
11160
11189
  }
11161
11190
  function getInitialChildProps(animate, data) {
11162
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11191
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11163
11192
  return {
11164
11193
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
11165
11194
  };
@@ -11176,7 +11205,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
11176
11205
  data
11177
11206
  };
11178
11207
  }
11179
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11208
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11180
11209
  // If nodes need to exit, transform them with the provided onLoad.before function.
11181
11210
  const newData = data.map((datum, idx) => {
11182
11211
  return Object.assign({}, datum, before(datum, idx, data));
@@ -11187,8 +11216,6 @@ function getChildBeforeLoad(animate, child, data, cb) {
11187
11216
  clipWidth: 0
11188
11217
  };
11189
11218
  }
11190
-
11191
- // eslint-disable-next-line max-params
11192
11219
  function getChildOnLoad(animate, data, cb) {
11193
11220
  const newAnimate = Object.assign({}, animate, {
11194
11221
  onEnd: cb
@@ -11200,7 +11227,7 @@ function getChildOnLoad(animate, data, cb) {
11200
11227
  data
11201
11228
  };
11202
11229
  }
11203
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11230
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11204
11231
  // If nodes need to exit, transform them with the provided onLoad.after function.
11205
11232
  newData = data.map((datum, idx) => {
11206
11233
  return Object.assign({}, datum, after(datum, idx, data));
@@ -11211,7 +11238,7 @@ function getChildOnLoad(animate, data, cb) {
11211
11238
  };
11212
11239
  }
11213
11240
 
11214
- // eslint-disable-next-line max-params, max-len
11241
+ // eslint-disable-next-line max-params
11215
11242
  function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11216
11243
  // Whether or not _this_ child has exiting nodes, we want the exit-
11217
11244
  // transition for all children to have the same duration, delay, etc.
@@ -11222,7 +11249,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11222
11249
  // After the exit transition occurs, trigger the animations for
11223
11250
  // nodes that are neither exiting nor entering.
11224
11251
  animate.onEnd = cb;
11225
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11252
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11226
11253
  // If nodes need to exit, transform them with the provided onExit.before function.
11227
11254
  newData = data.map((datum, idx) => {
11228
11255
  const key = (datum.key || idx).toString();
@@ -11235,7 +11262,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
11235
11262
  };
11236
11263
  }
11237
11264
 
11238
- // eslint-disable-next-line max-params,max-len
11265
+ // eslint-disable-next-line max-params
11239
11266
  function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11240
11267
  let newAnimate = animate;
11241
11268
  let newData = data;
@@ -11245,7 +11272,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11245
11272
  newAnimate = Object.assign({}, animate, {
11246
11273
  onEnd: cb
11247
11274
  });
11248
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11275
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11249
11276
  // We want the entering nodes to be included in the transition target
11250
11277
  // domain. However, we may not want these nodes to be displayed initially,
11251
11278
  // so perform the `onEnter.before` transformation on each node.
@@ -11260,7 +11287,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
11260
11287
  };
11261
11288
  }
11262
11289
 
11263
- // eslint-disable-next-line max-params, max-len
11290
+ // eslint-disable-next-line max-params
11264
11291
  function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11265
11292
  // Whether or not _this_ child has entering nodes, we want the entering-
11266
11293
  // transition for all children to have the same duration, delay, etc.
@@ -11272,7 +11299,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
11272
11299
  // domain should encompass the nodes that will now enter. So perform
11273
11300
  // the `onEnter.after` transformation on each node.
11274
11301
  newAnimate.onEnd = cb;
11275
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
11302
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
11276
11303
  newData = data.map((datum, idx) => {
11277
11304
  const key = getDatumKey(datum, idx);
11278
11305
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -11367,8 +11394,6 @@ function getTransitionPropsFactory(props, state, setState) {
11367
11394
  }
11368
11395
  return {};
11369
11396
  };
11370
-
11371
- // eslint-disable-next-line max-statements, complexity, max-len
11372
11397
  return function getTransitionProps(child, index) {
11373
11398
  const data = getChildData(child) || [];
11374
11399
  const animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.animate, child.props.animate);