victory-chart 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.
@@ -25,16 +25,14 @@ __webpack_require__.r(__webpack_exports__);
25
25
  /* harmony export */ "getChildComponents": function() { return /* binding */ getChildComponents; },
26
26
  /* harmony export */ "getChildren": function() { return /* binding */ getChildren; }
27
27
  /* harmony export */ });
28
- /* 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");
29
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
30
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
31
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
28
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
29
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
32
30
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/axis.js");
33
31
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
34
32
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/wrapper.js");
35
33
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/scale.js");
36
-
37
- /* eslint-disable no-use-before-define */
34
+ /* 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");
35
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
38
36
 
39
37
 
40
38
 
@@ -81,7 +79,7 @@ function getBackgroundWithProps(props, calculatedProps) {
81
79
  key: `${parentName}-background`,
82
80
  width
83
81
  };
84
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(backgroundElement, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, backgroundElement.props, backgroundProps));
82
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundElement, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundElement.props, backgroundProps));
85
83
  }
86
84
  function getChildProps(child, props, calculatedProps) {
87
85
  const axisChild = victory_core__WEBPACK_IMPORTED_MODULE_2__.findAxisComponents([child]);
@@ -108,7 +106,7 @@ function getChildProps(child, props, calculatedProps) {
108
106
  function getStyles(props) {
109
107
  const styleProps = props.style && props.style.parent;
110
108
  return {
111
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, styleProps, {
109
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, styleProps, {
112
110
  height: "100%",
113
111
  width: "100%",
114
112
  userSelect: "none"
@@ -146,7 +144,7 @@ function getCalculatedProps(initialProps, childComponents) {
146
144
  y: baseScale.y.domain(domain.y).range(horizontal ? range.x : range.y)
147
145
  };
148
146
  const origin = polar ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getPolarOrigin(props) : victory_core__WEBPACK_IMPORTED_MODULE_2__.getOrigin(domain);
149
- const padding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props);
147
+ const padding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props.padding);
150
148
  return {
151
149
  categories,
152
150
  domain,
@@ -174,14 +172,14 @@ function getChildren(props, childComponents, calculatedProps) {
174
172
  horizontal
175
173
  } = newCalculatedProps;
176
174
  const parentName = props.name || "chart";
177
- return children.filter((react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement)).map((child, index) => {
175
+ return children.filter((react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement)).map((child, index) => {
178
176
  const role = child.type && child.type.role;
179
- const style = Array.isArray(child.props.style) ? child.props.style : lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, child.props.style, {
177
+ const style = Array.isArray(child.props.style) ? child.props.style : lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props.style, {
180
178
  parent: baseStyle
181
179
  });
182
180
  const childProps = getChildProps(child, props, newCalculatedProps);
183
181
  const name = child.props.name || `${parentName}-${role}-${index}`;
184
- const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
182
+ const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
185
183
  horizontal,
186
184
  height,
187
185
  polar,
@@ -194,11 +192,11 @@ function getChildren(props, childComponents, calculatedProps) {
194
192
  key: `${name}-key-${index}`,
195
193
  standalone: false
196
194
  }, childProps);
197
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(child, newProps);
195
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, newProps);
198
196
  });
199
197
  }
200
198
  const getChildComponents = (props, defaultAxes) => {
201
- let childComponents = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children);
199
+ let childComponents = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
202
200
  if (childComponents.length === 0) {
203
201
  childComponents.push(defaultAxes.independent, defaultAxes.dependent);
204
202
  } else {
@@ -213,7 +211,7 @@ const getChildComponents = (props, defaultAxes) => {
213
211
  return childComponents;
214
212
  };
215
213
  const getDomain = (props, axis, childComponents) => {
216
- const children = childComponents || react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children);
214
+ const children = childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
217
215
  const domain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomain(props, axis, children);
218
216
  const axisComponent = victory_core__WEBPACK_IMPORTED_MODULE_2__.getAxisComponent(children, axis);
219
217
  const invertDomain = axisComponent && axisComponent.props && axisComponent.props.invertAxis;
@@ -247,12 +245,12 @@ __webpack_require__.r(__webpack_exports__);
247
245
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
248
246
  /* harmony export */ "VictoryChart": function() { return /* binding */ VictoryChart; }
249
247
  /* harmony export */ });
250
- /* 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");
251
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
248
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
249
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
252
250
  /* 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");
253
251
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
254
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
255
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
252
+ /* 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");
253
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
256
254
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/background.js");
257
255
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
258
256
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
@@ -282,26 +280,26 @@ const fallbackProps = {
282
280
  padding: 50
283
281
  };
284
282
  const defaultProps = {
285
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Background, null),
286
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
283
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Background, null),
284
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
287
285
  defaultAxes: {
288
- independent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_axis__WEBPACK_IMPORTED_MODULE_6__.VictoryAxis, null),
289
- dependent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_axis__WEBPACK_IMPORTED_MODULE_6__.VictoryAxis, {
286
+ independent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_axis__WEBPACK_IMPORTED_MODULE_6__.VictoryAxis, null),
287
+ dependent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_axis__WEBPACK_IMPORTED_MODULE_6__.VictoryAxis, {
290
288
  dependentAxis: true
291
289
  })
292
290
  },
293
291
  defaultPolarAxes: {
294
- independent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_7__.VictoryPolarAxis, null),
295
- dependent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_7__.VictoryPolarAxis, {
292
+ independent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_7__.VictoryPolarAxis, null),
293
+ dependent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_7__.VictoryPolarAxis, {
296
294
  dependentAxis: true
297
295
  })
298
296
  },
299
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
297
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
300
298
  standalone: true,
301
299
  theme: victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryTheme.grayscale
302
300
  };
303
301
  const VictoryChartImpl = initialProps => {
304
- const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps), [initialProps]);
302
+ const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps), [initialProps]);
305
303
  const role = "chart";
306
304
  const {
307
305
  getAnimationProps,
@@ -325,8 +323,8 @@ const VictoryChartImpl = initialProps => {
325
323
  title
326
324
  } = modifiedProps;
327
325
  const axes = props.polar ? modifiedProps.defaultPolarAxes : modifiedProps.defaultAxes;
328
- const childComponents = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getChildComponents)(modifiedProps, axes), [modifiedProps, axes]);
329
- const calculatedProps = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getCalculatedProps)(modifiedProps, childComponents), [modifiedProps, childComponents]);
326
+ const childComponents = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getChildComponents)(modifiedProps, axes), [modifiedProps, axes]);
327
+ const calculatedProps = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getCalculatedProps)(modifiedProps, childComponents), [modifiedProps, childComponents]);
330
328
  const {
331
329
  domain,
332
330
  scale,
@@ -334,13 +332,13 @@ const VictoryChartImpl = initialProps => {
334
332
  origin,
335
333
  horizontal
336
334
  } = calculatedProps;
337
- const newChildren = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => {
335
+ const newChildren = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => {
338
336
  const children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getChildren)(props, childComponents, calculatedProps);
339
337
  const mappedChildren = children.map((child, index) => {
340
338
  const childProps = Object.assign({
341
339
  animate: getAnimationProps(props, child, index)
342
340
  }, child.props);
343
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, childProps);
341
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, childProps);
344
342
  });
345
343
  if (props.style && props.style.background) {
346
344
  const backgroundComponent = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getBackgroundWithProps)(props, calculatedProps);
@@ -348,7 +346,7 @@ const VictoryChartImpl = initialProps => {
348
346
  }
349
347
  return mappedChildren;
350
348
  }, [getAnimationProps, childComponents, props, calculatedProps]);
351
- const containerProps = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => {
349
+ const containerProps = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => {
352
350
  if (standalone) {
353
351
  return {
354
352
  desc,
@@ -368,18 +366,18 @@ const VictoryChartImpl = initialProps => {
368
366
  }
369
367
  return {};
370
368
  }, [desc, domain, height, horizontal, name, origin, polar, scale, standalone, style, title, theme, width]);
371
- const container = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => {
369
+ const container = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => {
372
370
  if (standalone) {
373
371
  const defaultContainerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, containerProps, victory_core__WEBPACK_IMPORTED_MODULE_12__.getSafeUserProps(propsWithDefaults));
374
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(containerComponent, defaultContainerProps);
372
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(containerComponent, defaultContainerProps);
375
373
  }
376
374
  return groupComponent;
377
375
  }, [groupComponent, standalone, containerComponent, containerProps, propsWithDefaults]);
378
- const events = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => {
376
+ const events = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => {
379
377
  return victory_core__WEBPACK_IMPORTED_MODULE_13__.getAllEvents(props);
380
378
  }, [props]);
381
379
  const previousProps = victory_core__WEBPACK_IMPORTED_MODULE_14__.usePreviousProps(propsWithDefaults);
382
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
380
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
383
381
  // This is called before dismount to keep state in sync
384
382
  return () => {
385
383
  if (propsWithDefaults.animate) {
@@ -387,17 +385,17 @@ const VictoryChartImpl = initialProps => {
387
385
  }
388
386
  };
389
387
  }, [setAnimationState, previousProps, propsWithDefaults]);
390
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
391
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_15__.VictorySharedEvents, {
388
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(events)) {
389
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_15__.VictorySharedEvents, {
392
390
  container: container,
393
391
  eventKey: eventKey,
394
392
  events: events,
395
393
  externalEventMutations: externalEventMutations
396
394
  }, newChildren);
397
395
  }
398
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(container, container.props, newChildren);
396
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(container, container.props, newChildren);
399
397
  };
400
- const VictoryChart = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(VictoryChartImpl, (react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()));
398
+ const VictoryChart = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VictoryChartImpl, (react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()));
401
399
  VictoryChart.displayName = "VictoryChart";
402
400
  // @ts-expect-error FIXME: Does this "expectedComponents" do anything?
403
401
  VictoryChart.expectedComponents = ["groupComponent", "containerComponent"];
@@ -5406,8 +5404,6 @@ const isEqual = (a, b) => {
5406
5404
  }
5407
5405
  return a === b;
5408
5406
  };
5409
-
5410
- // eslint-disable-next-line complexity
5411
5407
  const getOffset = (props, calculatedValues) => {
5412
5408
  const {
5413
5409
  scale,
@@ -5450,8 +5446,6 @@ const getOffset = (props, calculatedValues) => {
5450
5446
  y: offsetY
5451
5447
  };
5452
5448
  };
5453
-
5454
- // eslint-disable-next-line complexity
5455
5449
  const getHorizontalOffset = (props, calculatedValues) => {
5456
5450
  const {
5457
5451
  scale,
@@ -5592,12 +5586,10 @@ const getOrientation = props => {
5592
5586
  };
5593
5587
  return props.dependentAxis ? defaultOrientations.dependent : defaultOrientations.independent;
5594
5588
  };
5595
-
5596
- // eslint-disable-next-line complexity
5597
5589
  const getCalculatedValues = props => {
5598
5590
  const defaultStyles = getStyleObject(props);
5599
5591
  const style = getStyles(props, defaultStyles);
5600
- const padding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props);
5592
+ const padding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props.padding);
5601
5593
  const labelPadding = getLabelPadding(props, style);
5602
5594
  const stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_1__.stringTicks(props) ? props.tickValues : undefined;
5603
5595
  const axis = victory_core__WEBPACK_IMPORTED_MODULE_1__.getAxis(props);
@@ -5720,7 +5712,6 @@ const getBaseProps = (initialProps, fallbackProps) => {
5720
5712
  [otherAxis]: props.scale[otherAxis]
5721
5713
  } : undefined
5722
5714
  };
5723
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
5724
5715
  return ticks.reduce((childProps, tickValue, index) => {
5725
5716
  const tick = stringTicks ? stringTicks[index] : tickValue;
5726
5717
  const text = tickFormat(tickValue, index, ticks);
@@ -5767,10 +5758,10 @@ __webpack_require__.r(__webpack_exports__);
5767
5758
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5768
5759
  /* harmony export */ "VictoryAxis": function() { return /* binding */ VictoryAxis; }
5769
5760
  /* harmony export */ });
5770
- /* 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");
5771
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5772
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5773
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5761
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5762
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5763
+ /* 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");
5764
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
5774
5765
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
5775
5766
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
5776
5767
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
@@ -5808,9 +5799,9 @@ const options = {
5808
5799
  }]
5809
5800
  };
5810
5801
 
5811
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
5802
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
5812
5803
 
5813
- class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Component) {
5804
+ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
5814
5805
  static animationWhitelist = ["style", "domain", "range", "tickCount", "tickValues", "offsetX", "offsetY", "padding", "width", "height"];
5815
5806
  static displayName = "VictoryAxis";
5816
5807
  static role = "axis";
@@ -5823,15 +5814,15 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
5823
5814
  }
5824
5815
  };
5825
5816
  static defaultProps = {
5826
- axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5827
- axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
5828
- tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
5829
- tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5830
- gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5817
+ axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5818
+ axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
5819
+ tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
5820
+ tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5821
+ gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
5831
5822
  standalone: true,
5832
5823
  theme: victory_core__WEBPACK_IMPORTED_MODULE_4__.VictoryTheme.grayscale,
5833
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
5834
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", {
5824
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
5825
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
5835
5826
  role: "presentation"
5836
5827
  }),
5837
5828
  fixLabelOverlap: false
@@ -5850,7 +5841,7 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
5850
5841
  axisComponent
5851
5842
  } = props;
5852
5843
  const axisProps = this.getComponentProps(axisComponent, "axis", 0);
5853
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(axisComponent, axisProps);
5844
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(axisComponent, axisProps);
5854
5845
  }
5855
5846
  renderLabel(props) {
5856
5847
  const {
@@ -5861,7 +5852,7 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
5861
5852
  return null;
5862
5853
  }
5863
5854
  const axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0);
5864
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(axisLabelComponent, axisLabelProps);
5855
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(axisLabelComponent, axisLabelProps);
5865
5856
  }
5866
5857
  renderGridAndTicks(props) {
5867
5858
  const {
@@ -5876,19 +5867,19 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
5876
5867
  events = {}
5877
5868
  } = componentProps;
5878
5869
  const visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0;
5879
- return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events);
5870
+ return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(events);
5880
5871
  };
5881
5872
  return this.dataKeys.map((key, index) => {
5882
5873
  const tickProps = this.getComponentProps(tickComponent, "ticks", index);
5883
- const BaseTickComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(tickComponent, tickProps);
5874
+ const BaseTickComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tickComponent, tickProps);
5884
5875
  const TickComponent = shouldRender(BaseTickComponent.props) ? BaseTickComponent : undefined;
5885
5876
  const gridProps = this.getComponentProps(gridComponent, "grid", index);
5886
- const BaseGridComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(gridComponent, gridProps);
5877
+ const BaseGridComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(gridComponent, gridProps);
5887
5878
  const GridComponent = shouldRender(BaseGridComponent.props) ? BaseGridComponent : undefined;
5888
5879
  const tickLabelProps = this.getComponentProps(tickLabelComponent, "tickLabels", index);
5889
- const TickLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(tickLabelComponent, tickLabelProps);
5880
+ const TickLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tickLabelComponent, tickLabelProps);
5890
5881
  const children = [GridComponent, TickComponent, TickLabel].filter(Boolean);
5891
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.groupComponent, {
5882
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {
5892
5883
  key: `${name}-tick-group-${key}`
5893
5884
  }, children);
5894
5885
  });
@@ -5944,8 +5935,8 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
5944
5935
  const gridAndTicks = this.renderGridAndTicks(props);
5945
5936
  const modifiedGridAndTicks = props.fixLabelOverlap ? this.fixLabelOverlap(gridAndTicks, props) : gridAndTicks;
5946
5937
  const children = [this.renderLine(props), this.renderLabel(props), ...modifiedGridAndTicks];
5947
- const container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.containerComponent, userProps);
5948
- return props.standalone ? this.renderContainer(container, children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.groupComponent, userProps, children);
5938
+ const container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.containerComponent, userProps);
5939
+ return props.standalone ? this.renderContainer(container, children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, userProps, children);
5949
5940
  }
5950
5941
  }
5951
5942
  const VictoryAxis = (0,victory_core__WEBPACK_IMPORTED_MODULE_10__.addEvents)(VictoryAxisBase, options);
@@ -5968,10 +5959,10 @@ __webpack_require__.r(__webpack_exports__);
5968
5959
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
5969
5960
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
5970
5961
  /* harmony export */ });
5971
- /* 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");
5972
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
5973
- /* 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");
5974
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
5962
+ /* 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");
5963
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
5964
+ /* 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");
5965
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
5975
5966
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
5976
5967
 
5977
5968
 
@@ -5997,7 +5988,7 @@ const isInterpolatable = function (obj) {
5997
5988
  return false;
5998
5989
  case "object":
5999
5990
  // Don't try to interpolate class instances (except Date or Array).
6000
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
5991
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
6001
5992
  case "function":
6002
5993
  // Careful! There may be extra properties on function objects that the
6003
5994
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -6057,7 +6048,7 @@ const interpolateFunction = function (a, b) {
6057
6048
  return b;
6058
6049
  }
6059
6050
  return function () {
6060
- /* eslint-disable no-invalid-this, prefer-rest-params */
6051
+ /* eslint-disable prefer-rest-params */
6061
6052
  const aval = typeof a === "function" ? a.apply(this, arguments) : a;
6062
6053
  const bval = typeof b === "function" ? b.apply(this, arguments) : b;
6063
6054
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(aval, bval)(t);
@@ -6083,7 +6074,7 @@ const interpolateObject = function (startValue, endValue) {
6083
6074
  if (typeof x === "function" || typeof y === "function") {
6084
6075
  return interpolateFunction(x, y);
6085
6076
  }
6086
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
6077
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
6087
6078
  return interpolateObject(x, y);
6088
6079
  }
6089
6080
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -6092,7 +6083,7 @@ const interpolateObject = function (startValue, endValue) {
6092
6083
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
6093
6084
  // based on "key" instead of index
6094
6085
  const keyData = val => {
6095
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
6086
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
6096
6087
  };
6097
6088
  const i = {};
6098
6089
  const c = {};
@@ -6159,7 +6150,7 @@ const victoryInterpolator = function (a, b) {
6159
6150
  if (typeof a === "function" || typeof b === "function") {
6160
6151
  return interpolateFunction(a, b);
6161
6152
  }
6162
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
6153
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
6163
6154
  // @ts-expect-error These generics are tough, but they work :)
6164
6155
  return interpolateObject(a, b);
6165
6156
  }
@@ -6335,16 +6326,15 @@ __webpack_require__.r(__webpack_exports__);
6335
6326
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
6336
6327
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
6337
6328
  /* harmony export */ });
6338
- /* 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");
6339
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6340
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6341
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6329
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6330
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6331
+ /* 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");
6332
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
6342
6333
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
6343
6334
  /* 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");
6344
6335
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
6345
6336
  /* 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");
6346
6337
  /* 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");
6347
-
6348
6338
  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); }
6349
6339
 
6350
6340
 
@@ -6352,9 +6342,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
6352
6342
 
6353
6343
 
6354
6344
 
6345
+
6355
6346
  const defaultProps = {
6356
6347
  className: "VictoryContainer",
6357
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
6348
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
6358
6349
  portalZIndex: 99,
6359
6350
  responsive: true,
6360
6351
  role: "img"
@@ -6371,10 +6362,10 @@ function useVictoryContainer(initialProps) {
6371
6362
  height,
6372
6363
  responsive
6373
6364
  } = props;
6374
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
6365
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
6375
6366
 
6376
6367
  // Generated ID stored in ref because it needs to persist across renders
6377
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
6368
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
6378
6369
  const containerId = props.containerId ?? generatedId.current;
6379
6370
  const getIdForElement = elName => `${containerId}-${elName}`;
6380
6371
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -6433,7 +6424,7 @@ const VictoryContainer = initialProps => {
6433
6424
  containerRef,
6434
6425
  localContainerRef
6435
6426
  } = useVictoryContainer(initialProps);
6436
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
6427
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6437
6428
  if (!events?.onWheel) return;
6438
6429
  const handleWheel = e => e.preventDefault();
6439
6430
  const container = localContainerRef?.current;
@@ -6443,21 +6434,21 @@ const VictoryContainer = initialProps => {
6443
6434
  };
6444
6435
  // eslint-disable-next-line react-hooks/exhaustive-deps
6445
6436
  }, []);
6446
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
6437
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
6447
6438
  className: className,
6448
6439
  style: {
6449
6440
  ...style,
6450
6441
  width: responsive ? style?.width : dimensions.width,
6451
6442
  height: responsive ? style?.height : dimensions.height,
6452
- pointerEvents: "none",
6453
- touchAction: "none",
6454
- position: "relative"
6443
+ pointerEvents: style?.pointerEvents ?? "none",
6444
+ touchAction: style?.touchAction ?? "none",
6445
+ position: style?.position ?? "relative"
6455
6446
  },
6456
6447
  "data-ouia-component-id": ouiaId,
6457
6448
  "data-ouia-component-type": ouiaType,
6458
6449
  "data-ouia-safe": ouiaSafe,
6459
6450
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
6460
- }, /*#__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({
6451
+ }, /*#__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({
6461
6452
  width: width,
6462
6453
  height: height,
6463
6454
  tabIndex: tabIndex,
@@ -6470,11 +6461,11 @@ const VictoryContainer = initialProps => {
6470
6461
  ...dimensions,
6471
6462
  pointerEvents: "all"
6472
6463
  }
6473
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
6464
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
6474
6465
  id: titleId
6475
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
6466
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
6476
6467
  id: descId
6477
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
6468
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
6478
6469
  style: {
6479
6470
  ...dimensions,
6480
6471
  zIndex: portalZIndex,
@@ -6482,7 +6473,7 @@ const VictoryContainer = initialProps => {
6482
6473
  top: 0,
6483
6474
  left: 0
6484
6475
  }
6485
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
6476
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
6486
6477
  as: portalComponent,
6487
6478
  width: width,
6488
6479
  height: height,
@@ -6509,12 +6500,12 @@ __webpack_require__.r(__webpack_exports__);
6509
6500
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6510
6501
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
6511
6502
  /* harmony export */ });
6512
- /* 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");
6513
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
6503
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6504
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6514
6505
  /* 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");
6515
6506
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6516
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6517
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6507
+ /* 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");
6508
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
6518
6509
  /* 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");
6519
6510
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
6520
6511
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -6525,9 +6516,9 @@ __webpack_require__.r(__webpack_exports__);
6525
6516
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
6526
6517
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
6527
6518
  /* 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");
6519
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
6528
6520
 
6529
6521
 
6530
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
6531
6522
 
6532
6523
 
6533
6524
 
@@ -6579,7 +6570,7 @@ const shouldUseMultilineBackgrounds = props => {
6579
6570
  backgroundStyle,
6580
6571
  backgroundPadding
6581
6572
  } = props;
6582
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
6573
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
6583
6574
  };
6584
6575
  const getStyles = (style, props) => {
6585
6576
  if (props.disableInlineStyles) {
@@ -6595,32 +6586,28 @@ const getStyles = (style, props) => {
6595
6586
  fontSize: getFontSize(baseStyles)
6596
6587
  });
6597
6588
  };
6598
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
6589
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
6599
6590
  };
6600
6591
  const getBackgroundStyles = (style, props) => {
6601
6592
  if (!style) {
6602
6593
  return undefined;
6603
6594
  }
6604
- 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);
6595
+ 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);
6605
6596
  };
6606
6597
  const getBackgroundPadding = props => {
6607
6598
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
6608
6599
  return props.backgroundPadding.map(backgroundPadding => {
6609
6600
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
6610
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
6611
- padding
6612
- });
6601
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
6613
6602
  });
6614
6603
  }
6615
6604
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
6616
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
6617
- padding
6618
- });
6605
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
6619
6606
  };
6620
6607
  const getLineHeight = props => {
6621
6608
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
6622
6609
  if (Array.isArray(lineHeight)) {
6623
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
6610
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
6624
6611
  }
6625
6612
  return lineHeight;
6626
6613
  };
@@ -6740,7 +6727,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
6740
6727
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
6741
6728
  y: yCoordinate
6742
6729
  };
6743
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6730
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6744
6731
  };
6745
6732
  const getInlineXOffset = (calculatedProps, textElements, index) => {
6746
6733
  const {
@@ -6810,7 +6797,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
6810
6797
  x: xCoord - padding.left,
6811
6798
  y: yCoord
6812
6799
  };
6813
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6800
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
6814
6801
  });
6815
6802
  };
6816
6803
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -6941,16 +6928,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
6941
6928
  style: currentStyle,
6942
6929
  children: line
6943
6930
  };
6944
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
6931
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
6945
6932
  });
6946
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
6933
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
6947
6934
  };
6948
6935
  const defaultProps = {
6949
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6950
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
6936
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6937
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6951
6938
  direction: "inherit",
6952
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6953
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6939
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6940
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6954
6941
  capHeight: 0.71,
6955
6942
  // Magic number from d3.
6956
6943
  lineHeight: 1
@@ -6987,10 +6974,10 @@ const VictoryLabel = initialProps => {
6987
6974
  if (props.backgroundStyle) {
6988
6975
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
6989
6976
  const children = [backgroundElement, label];
6990
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
6991
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6977
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
6978
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6992
6979
  }
6993
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6980
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6994
6981
  };
6995
6982
  VictoryLabel.displayName = "VictoryLabel";
6996
6983
  VictoryLabel.role = "label";
@@ -7116,12 +7103,12 @@ __webpack_require__.r(__webpack_exports__);
7116
7103
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7117
7104
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
7118
7105
  /* harmony export */ });
7119
- /* 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");
7120
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
7106
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7107
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7121
7108
  /* 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");
7122
7109
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7123
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
7124
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
7110
+ /* 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");
7111
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
7125
7112
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
7126
7113
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7127
7114
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -7132,14 +7119,14 @@ __webpack_require__.r(__webpack_exports__);
7132
7119
 
7133
7120
 
7134
7121
  const defaultProps = {
7135
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
7122
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
7136
7123
  };
7137
7124
  const VictoryPortal = initialProps => {
7138
7125
  const props = {
7139
7126
  ...defaultProps,
7140
7127
  ...initialProps
7141
7128
  };
7142
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
7129
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
7143
7130
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
7144
7131
  if (!portalContext) {
7145
7132
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -7157,12 +7144,12 @@ const VictoryPortal = initialProps => {
7157
7144
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
7158
7145
  key: childProps.key ?? id
7159
7146
  });
7160
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
7161
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
7147
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
7148
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
7162
7149
  portalContext?.addChild(id, child);
7163
7150
  // eslint-disable-next-line react-hooks/exhaustive-deps
7164
7151
  }, [props.children]);
7165
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
7152
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
7166
7153
  return () => portalContext?.removeChild(id);
7167
7154
  // eslint-disable-next-line react-hooks/exhaustive-deps
7168
7155
  }, []);
@@ -7183,17 +7170,17 @@ __webpack_require__.r(__webpack_exports__);
7183
7170
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7184
7171
  /* harmony export */ "Arc": function() { return /* binding */ Arc; }
7185
7172
  /* harmony export */ });
7186
- /* 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");
7187
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
7188
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
7189
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
7173
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7174
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7175
+ /* 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");
7176
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7190
7177
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7191
7178
  /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
7192
-
7193
7179
  /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/
7194
7180
 
7195
7181
 
7196
7182
 
7183
+
7197
7184
  const getArcPath = props => {
7198
7185
  const {
7199
7186
  cx,
@@ -7245,13 +7232,13 @@ const evaluateProps = props => {
7245
7232
  });
7246
7233
  };
7247
7234
  const defaultProps = {
7248
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_3__.Path, null),
7235
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_path__WEBPACK_IMPORTED_MODULE_3__.Path, null),
7249
7236
  role: "presentation",
7250
7237
  shapeRendering: "auto"
7251
7238
  };
7252
7239
  const Arc = initialProps => {
7253
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
7254
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
7240
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
7241
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
7255
7242
  ...props.events,
7256
7243
  "aria-label": props.ariaLabel,
7257
7244
  d: getArcPath(props),
@@ -7279,10 +7266,10 @@ __webpack_require__.r(__webpack_exports__);
7279
7266
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7280
7267
  /* harmony export */ "Background": function() { return /* binding */ Background; }
7281
7268
  /* harmony export */ });
7282
- /* 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");
7283
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
7284
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
7285
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
7269
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7270
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7271
+ /* 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");
7272
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7286
7273
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7287
7274
  /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
7288
7275
  /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./circle */ "../../victory-core/es/victory-primitives/circle.js");
@@ -7302,14 +7289,14 @@ const evaluateProps = props => {
7302
7289
  });
7303
7290
  };
7304
7291
  const defaultProps = {
7305
- circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
7306
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
7292
+ circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
7293
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
7307
7294
  role: "presentation",
7308
7295
  shapeRendering: "auto"
7309
7296
  };
7310
7297
  const Background = initialProps => {
7311
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
7312
- return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.circleComponent, {
7298
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
7299
+ return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.circleComponent, {
7313
7300
  ...props.events,
7314
7301
  style: props.style,
7315
7302
  role: props.role,
@@ -7318,7 +7305,7 @@ const Background = initialProps => {
7318
7305
  cy: props.y,
7319
7306
  r: props.height,
7320
7307
  className: props.className
7321
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
7308
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
7322
7309
  ...props.events,
7323
7310
  style: props.style,
7324
7311
  role: props.role,
@@ -7389,10 +7376,10 @@ __webpack_require__.r(__webpack_exports__);
7389
7376
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7390
7377
  /* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
7391
7378
  /* harmony export */ });
7392
- /* 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");
7393
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
7394
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
7395
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
7379
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7380
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7381
+ /* 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");
7382
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7396
7383
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7397
7384
  /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
7398
7385
 
@@ -7424,13 +7411,13 @@ const evaluateProps = props => {
7424
7411
  });
7425
7412
  };
7426
7413
  const defaultProps = {
7427
- lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
7414
+ lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
7428
7415
  role: "presentation",
7429
7416
  shapeRendering: "auto"
7430
7417
  };
7431
7418
  const LineSegment = initialProps => {
7432
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
7433
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
7419
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
7420
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
7434
7421
  ...props.events,
7435
7422
  "aria-label": props.ariaLabel,
7436
7423
  style: props.style,
@@ -8787,22 +8774,22 @@ __webpack_require__.r(__webpack_exports__);
8787
8774
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8788
8775
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
8789
8776
  /* harmony export */ });
8790
- /* 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");
8791
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8777
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8778
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8792
8779
  /* 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");
8793
8780
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8794
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
8795
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
8781
+ /* 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");
8782
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
8783
+ /* 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");
8784
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8796
8785
  /* 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");
8797
8786
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
8798
8787
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
8799
8788
  /* 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");
8800
8789
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
8801
- /* 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");
8802
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
8790
+ 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); }
8803
8791
 
8804
8792
 
8805
- 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); }
8806
8793
 
8807
8794
 
8808
8795
 
@@ -8810,7 +8797,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
8810
8797
 
8811
8798
 
8812
8799
 
8813
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
8800
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
8814
8801
  static displayName = "VictoryTransition";
8815
8802
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
8816
8803
  constructor(props, context) {
@@ -8827,7 +8814,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8827
8814
  componentDidMount() {
8828
8815
  this.setState({
8829
8816
  nodesShouldLoad: true
8830
- }); // eslint-disable-line react/no-did-mount-set-state
8817
+ });
8831
8818
  }
8832
8819
  shouldComponentUpdate(nextProps) {
8833
8820
  if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(this.props, nextProps)) {
@@ -8853,8 +8840,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8853
8840
  nextProps
8854
8841
  };
8855
8842
  }
8856
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
8857
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
8843
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
8844
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
8858
8845
  const {
8859
8846
  nodesWillExit,
8860
8847
  nodesWillEnter,
@@ -8877,12 +8864,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8877
8864
  const childDomain = child.props && child.type.getDomain(child.props, axis);
8878
8865
  return childDomain ? memo.concat(childDomain) : memo;
8879
8866
  } else if (child.props && child.props.children) {
8880
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
8867
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
8881
8868
  }
8882
8869
  return memo;
8883
8870
  }, []);
8884
8871
  };
8885
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8872
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8886
8873
  const childProps = child.props || {};
8887
8874
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
8888
8875
  if (!childProps.children && domain) {
@@ -8915,7 +8902,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8915
8902
  render() {
8916
8903
  const props = this.pickProps();
8917
8904
  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));
8918
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
8905
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
8919
8906
  const transitionProps = getTransitionProps(child);
8920
8907
  this.transitionProps = transitionProps;
8921
8908
  const domain = {
@@ -8929,21 +8916,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
8929
8916
  }, transitionProps, child.props);
8930
8917
  const animationWhitelist = props.animationWhitelist || [];
8931
8918
  const whitelist = animationWhitelist.concat(["clipWidth"]);
8932
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
8933
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8919
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
8920
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
8934
8921
  data: propsToAnimate
8935
8922
  }), newProps => {
8936
8923
  if (child.props.groupComponent) {
8937
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
8924
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
8938
8925
  clipWidth: newProps.clipWidth || 0
8939
8926
  }) : child.props.groupComponent;
8940
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8927
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8941
8928
  animate: null,
8942
8929
  animating: true,
8943
8930
  groupComponent
8944
8931
  }, newProps, combinedProps));
8945
8932
  }
8946
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8933
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8947
8934
  animate: null,
8948
8935
  animating: true
8949
8936
  }, newProps, combinedProps));
@@ -8964,14 +8951,14 @@ __webpack_require__.r(__webpack_exports__);
8964
8951
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8965
8952
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
8966
8953
  /* harmony export */ });
8967
- /* 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");
8968
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8969
- /* 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");
8970
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
8971
- /* 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");
8972
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8973
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8974
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8954
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8955
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8956
+ /* 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");
8957
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8958
+ /* 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");
8959
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
8960
+ /* 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");
8961
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
8975
8962
  /* 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");
8976
8963
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
8977
8964
  /* 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");
@@ -9041,7 +9028,7 @@ const defaultComponents = [{
9041
9028
  function addEvents(WrappedComponent, options) {
9042
9029
  if (options === void 0) {
9043
9030
  options = {};
9044
- } // eslint-disable-next-line @typescript-eslint/no-empty-interface
9031
+ } // eslint-disable-next-line @typescript-eslint/no-empty-object-type
9045
9032
  // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
9046
9033
  class AddEventsMixin extends WrappedComponent {
9047
9034
  constructor(props) {
@@ -9118,8 +9105,8 @@ function addEvents(WrappedComponent, options) {
9118
9105
  return {};
9119
9106
  }
9120
9107
  const getState = (key, type) => {
9121
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
9122
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
9108
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
9109
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
9123
9110
  };
9124
9111
  const components = options.components || defaultComponents;
9125
9112
  const stateChanges = components.map(component => {
@@ -9132,7 +9119,7 @@ function addEvents(WrappedComponent, options) {
9132
9119
  return stateChanges;
9133
9120
  }
9134
9121
  applyExternalMutations(props, externalMutations) {
9135
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
9122
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
9136
9123
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
9137
9124
  const compiledCallbacks = callbacks.length ? () => {
9138
9125
  callbacks.forEach(c => c());
@@ -9165,7 +9152,7 @@ function addEvents(WrappedComponent, options) {
9165
9152
  sharedEvents,
9166
9153
  externalEventMutations
9167
9154
  } = props;
9168
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
9155
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
9169
9156
  }
9170
9157
  cacheValues(obj) {
9171
9158
  Object.keys(obj).forEach(key => {
@@ -9176,10 +9163,10 @@ function addEvents(WrappedComponent, options) {
9176
9163
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
9177
9164
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
9178
9165
  const parentState = this.getEventState("parent", "parent");
9179
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
9166
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
9180
9167
  const parentPropsList = baseParentProps.parentControlledProps;
9181
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
9182
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
9168
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
9169
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
9183
9170
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
9184
9171
  }
9185
9172
  getAllEvents(props) {
@@ -9199,18 +9186,18 @@ function addEvents(WrappedComponent, options) {
9199
9186
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
9200
9187
  if (this.hasEvents) {
9201
9188
  const baseEvents = this.getEvents(this.props, type, key);
9202
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9189
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
9203
9190
  index,
9204
9191
  key: id
9205
9192
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
9206
9193
  id
9207
9194
  });
9208
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
9195
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
9209
9196
  return Object.assign({}, componentProps, {
9210
9197
  events
9211
9198
  });
9212
9199
  }
9213
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9200
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
9214
9201
  index,
9215
9202
  key: id
9216
9203
  }, currentProps, baseProps, {
@@ -9224,15 +9211,15 @@ function addEvents(WrappedComponent, options) {
9224
9211
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
9225
9212
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
9226
9213
  }
9227
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
9214
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
9228
9215
  }
9229
9216
  animateComponent(props, defaultAnimationWhitelist) {
9230
9217
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
9231
9218
  const Comp = this.constructor;
9232
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
9219
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
9233
9220
  animate: props.animate,
9234
9221
  animationWhitelist: animationWhitelist
9235
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
9222
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
9236
9223
  }
9237
9224
 
9238
9225
  // Used by `VictoryLine` and `VictoryArea`
@@ -9247,12 +9234,12 @@ function addEvents(WrappedComponent, options) {
9247
9234
  let newMemo = memo;
9248
9235
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
9249
9236
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
9250
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
9237
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
9251
9238
  }
9252
9239
  return newMemo;
9253
9240
  }, []);
9254
9241
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
9255
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
9242
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
9256
9243
  return this.renderContainer(groupComponent, children);
9257
9244
  }
9258
9245
  renderData(props, shouldRenderDatum) {
@@ -9267,14 +9254,14 @@ function addEvents(WrappedComponent, options) {
9267
9254
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
9268
9255
  const dataProps = this.getComponentProps(dataComponent, "data", index);
9269
9256
  if (shouldRenderDatum(dataProps.datum)) {
9270
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
9257
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
9271
9258
  }
9272
9259
  return validDataComponents;
9273
9260
  }, []);
9274
9261
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
9275
9262
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
9276
9263
  if (labelProps.text !== undefined && labelProps.text !== null) {
9277
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
9264
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
9278
9265
  }
9279
9266
  return undefined;
9280
9267
  }).filter(Boolean);
@@ -9310,16 +9297,16 @@ __webpack_require__.r(__webpack_exports__);
9310
9297
  /* harmony export */ "modifyProps": function() { return /* binding */ modifyProps; },
9311
9298
  /* harmony export */ "stringTicks": function() { return /* binding */ stringTicks; }
9312
9299
  /* harmony export */ });
9313
- /* 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");
9314
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
9315
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
9316
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
9300
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9301
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9302
+ /* 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");
9303
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
9317
9304
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
9318
9305
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_2__);
9319
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
9320
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
9321
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
9322
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
9306
+ /* 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");
9307
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
9308
+ /* 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");
9309
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
9323
9310
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
9324
9311
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
9325
9312
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -9366,7 +9353,7 @@ function findAxisComponents(childComponents, predicate) {
9366
9353
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
9367
9354
  return memo.concat(child);
9368
9355
  } else if (child.props && child.props.children) {
9369
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
9356
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
9370
9357
  }
9371
9358
  return memo;
9372
9359
  }, []);
@@ -9404,7 +9391,7 @@ function getAxisComponentsWithParent(childComponents, type) {
9404
9391
  if (child.type && child.type.role === "axis" && matchesType(child)) {
9405
9392
  return memo.concat(child);
9406
9393
  } else if (child.props && child.props.children) {
9407
- const childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children));
9394
+ const childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children));
9408
9395
  return childAxis.length > 0 ? memo.concat(child) : memo;
9409
9396
  }
9410
9397
  return memo;
@@ -9463,7 +9450,7 @@ function getDefaultTickFormat(props) {
9463
9450
  return stringTicks(props) ? (x, index) => tickValues[index] : fallbackFormat;
9464
9451
  }
9465
9452
  const invertedStringMap = stringMap && _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
9466
- const tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(Object.values(stringMap), n => n);
9453
+ const tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(Object.values(stringMap), n => n);
9467
9454
  const dataNames = tickValueArray.map(tick => invertedStringMap[tick]);
9468
9455
  // string ticks should have one tick of padding at the beginning
9469
9456
  const dataTicks = ["", ...dataNames, ""];
@@ -9500,14 +9487,14 @@ function getTickArray(props) {
9500
9487
  if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickValues)) {
9501
9488
  ticks = stringMap ? tickValues.map(tick => stringMap[tick]) : _helpers__WEBPACK_IMPORTED_MODULE_6__.range(1, tickValues.length + 1);
9502
9489
  }
9503
- const tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ticks) : getTicksFromFormat();
9490
+ const tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(ticks) : getTicksFromFormat();
9504
9491
  const buildTickArray = arr => {
9505
9492
  const newTickArray = [];
9506
9493
  const domain = props.domain && props.domain[axis] || props.domain;
9507
9494
  if (arr) {
9508
9495
  arr.forEach((t, index) => {
9509
9496
  if (Array.isArray(domain)) {
9510
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain)) {
9497
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain).valueOf() && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain).valueOf()) {
9511
9498
  newTickArray.push({
9512
9499
  value: t,
9513
9500
  index
@@ -9596,7 +9583,7 @@ function getTicks(props, scale, filterZero) {
9596
9583
  * @param {String} axis: either x or y
9597
9584
  * @returns {Array} returns a domain from tickValues
9598
9585
  */
9599
- // eslint-disable-next-line max-statements
9586
+
9600
9587
  function getDomainFromData(props, axis) {
9601
9588
  const {
9602
9589
  polar,
@@ -9659,7 +9646,7 @@ function modifyProps(props, fallbackProps) {
9659
9646
  if (role === "axis") {
9660
9647
  return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
9661
9648
  }
9662
- const axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.theme[role], props.theme.axis);
9649
+ const axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.theme[role], props.theme.axis);
9663
9650
  const theme = Object.assign({}, props.theme, {
9664
9651
  axis: axisTheme
9665
9652
  });
@@ -9763,24 +9750,24 @@ __webpack_require__.r(__webpack_exports__);
9763
9750
  /* harmony export */ "getStringsFromData": function() { return /* binding */ getStringsFromData; },
9764
9751
  /* harmony export */ "isDataComponent": function() { return /* binding */ isDataComponent; }
9765
9752
  /* harmony export */ });
9766
- /* 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");
9767
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
9768
- /* 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");
9769
- /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
9753
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
9754
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9755
+ /* 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");
9756
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
9770
9757
  /* 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");
9771
9758
  /* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);
9772
- /* 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");
9773
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
9774
- /* 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");
9775
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_4__);
9776
- /* 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");
9777
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_5__);
9778
- /* 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");
9779
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6__);
9780
- /* 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");
9781
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_7__);
9782
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "react");
9783
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
9759
+ /* 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");
9760
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
9761
+ /* 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");
9762
+ /* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4__);
9763
+ /* 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");
9764
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_5__);
9765
+ /* 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");
9766
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_6__);
9767
+ /* 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");
9768
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_7__);
9769
+ /* 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");
9770
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_8__);
9784
9771
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9785
9772
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
9786
9773
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
@@ -9793,7 +9780,6 @@ __webpack_require__.r(__webpack_exports__);
9793
9780
 
9794
9781
 
9795
9782
 
9796
- /* eslint-disable no-use-before-define */
9797
9783
 
9798
9784
 
9799
9785
 
@@ -9815,7 +9801,7 @@ function getLength(data) {
9815
9801
 
9816
9802
  // Returns generated data for a given axis based on domain and sample from props
9817
9803
  function generateDataArray(props, axis) {
9818
- const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_6___default()(props.domain) ? props.domain[axis] : props.domain;
9804
+ const propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(props.domain) ? props.domain[axis] : props.domain;
9819
9805
  const domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis).domain();
9820
9806
  const samples = props.samples || 1;
9821
9807
  const domainMax = Math.max(...domain);
@@ -9840,7 +9826,7 @@ function sortData(dataset, sortKey, sortOrder) {
9840
9826
  formattedSortKey = `_${sortKey}`;
9841
9827
  }
9842
9828
  const order = sortOrder === "ascending" ? "asc" : "desc";
9843
- return lodash_orderBy__WEBPACK_IMPORTED_MODULE_4___default()(dataset, formattedSortKey, order);
9829
+ return lodash_orderBy__WEBPACK_IMPORTED_MODULE_6___default()(dataset, formattedSortKey, order);
9844
9830
  }
9845
9831
 
9846
9832
  // This method will remove data points that break certain scales. (log scale only)
@@ -9884,7 +9870,7 @@ function getEventKey(key) {
9884
9870
  return () => undefined;
9885
9871
  }
9886
9872
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
9887
- return lodash_property__WEBPACK_IMPORTED_MODULE_5___default()(key);
9873
+ return lodash_property__WEBPACK_IMPORTED_MODULE_7___default()(key);
9888
9874
  }
9889
9875
 
9890
9876
  // Returns data with an eventKey prop added to each datum
@@ -9919,8 +9905,6 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
9919
9905
  const isUnderMinY = underMin(minDomainY);
9920
9906
  const isOverMaxX = overMax(maxDomainX);
9921
9907
  const isOverMaxY = overMax(maxDomainY);
9922
-
9923
- // eslint-disable-next-line complexity
9924
9908
  return dataset.map(datum => {
9925
9909
  let {
9926
9910
  _x,
@@ -9945,12 +9929,12 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) {
9945
9929
  if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY;
9946
9930
  // baseline and value with only baseline above max, set baseline to maxDomainY
9947
9931
  if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
9948
- return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
9932
+ return Object.assign({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_5___default()({
9949
9933
  _x,
9950
9934
  _y,
9951
9935
  _y0,
9952
9936
  _y1
9953
- }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
9937
+ }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_4___default())));
9954
9938
  });
9955
9939
  }
9956
9940
 
@@ -9964,7 +9948,7 @@ function createStringMap(props, axis) {
9964
9948
  const stringsFromAxes = getStringsFromAxes(props, axis);
9965
9949
  const stringsFromCategories = getStringsFromCategories(props, axis);
9966
9950
  const stringsFromData = getStringsFromData(props, axis);
9967
- const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_7___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
9951
+ const allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_8___default()([...stringsFromAxes, ...stringsFromCategories, ...stringsFromData]);
9968
9952
  return allStrings.length === 0 ? null : allStrings.reduce((memo, string, index) => {
9969
9953
  memo[string] = index + 1;
9970
9954
  return memo;
@@ -10031,7 +10015,6 @@ function formatData(dataset, props, expectedKeys) {
10031
10015
  };
10032
10016
  }
10033
10017
  const data = preformattedData ? dataset : dataset.reduce((dataArr, datum, index) => {
10034
- // eslint-disable-line complexity
10035
10018
  const parsedDatum = parseDatum(datum);
10036
10019
  const fallbackValues = {
10037
10020
  x: index,
@@ -10051,7 +10034,7 @@ function formatData(dataset, props, expectedKeys) {
10051
10034
  return memo;
10052
10035
  }, {});
10053
10036
  const formattedDatum = Object.assign({}, processedValues, parsedDatum);
10054
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(formattedDatum)) {
10037
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(formattedDatum)) {
10055
10038
  dataArr.push(formattedDatum);
10056
10039
  }
10057
10040
  return dataArr;
@@ -10178,7 +10161,7 @@ function isDataComponent(component) {
10178
10161
  };
10179
10162
  let role = getRole(component);
10180
10163
  if (role === "portal") {
10181
- const children = react__WEBPACK_IMPORTED_MODULE_8___default().Children.toArray(component.props.children);
10164
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
10182
10165
  role = children.length ? getRole(children[0]) : "";
10183
10166
  }
10184
10167
  const whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -10209,14 +10192,14 @@ __webpack_require__.r(__webpack_exports__);
10209
10192
  /* harmony export */ "getSymmetricDomain": function() { return /* binding */ getSymmetricDomain; },
10210
10193
  /* harmony export */ "isDomainComponent": function() { return /* binding */ isDomainComponent; }
10211
10194
  /* harmony export */ });
10212
- /* 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");
10213
- /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
10214
- /* 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");
10215
- /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1__);
10195
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10196
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10197
+ /* 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");
10198
+ /* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_1__);
10216
10199
  /* 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");
10217
10200
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2__);
10218
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
10219
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
10201
+ /* 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");
10202
+ /* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
10220
10203
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
10221
10204
  /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
10222
10205
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
@@ -10224,7 +10207,6 @@ __webpack_require__.r(__webpack_exports__);
10224
10207
 
10225
10208
 
10226
10209
 
10227
- /* eslint-disable no-use-before-define */
10228
10210
 
10229
10211
 
10230
10212
 
@@ -10280,8 +10262,6 @@ function getExtremeFromData(dataset, axis, type) {
10280
10262
  }, initialValue);
10281
10263
  return containsDate ? new Date(result) : result;
10282
10264
  }
10283
-
10284
- // eslint-disable-next-line max-statements
10285
10265
  function padDomain(domain, props, axis) {
10286
10266
  if (!props.domainPadding) {
10287
10267
  return domain;
@@ -10308,9 +10288,9 @@ function padDomain(domain, props, axis) {
10308
10288
  max: max.valueOf() + simplePadding.right
10309
10289
  };
10310
10290
  const singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
10311
- const addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;
10291
+ const addsQuadrants = min.valueOf() >= 0 && paddedDomain.min <= 0 || max.valueOf() <= 0 && paddedDomain.max >= 0;
10312
10292
  const adjust = (val, type) => {
10313
- const coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
10293
+ const coerce = type === "min" && min.valueOf() >= 0 && val <= 0 || type === "max" && max.valueOf() <= 0 && val >= 0;
10314
10294
  return coerce ? 0 : val;
10315
10295
  };
10316
10296
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
@@ -10533,7 +10513,7 @@ function getMaxFromProps(props, axis) {
10533
10513
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
10534
10514
  return props.maxDomain[axis];
10535
10515
  }
10536
- return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
10516
+ return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.maxDomain) ? props.maxDomain : undefined;
10537
10517
  }
10538
10518
 
10539
10519
  /**
@@ -10546,7 +10526,7 @@ function getMinFromProps(props, axis) {
10546
10526
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_2___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
10547
10527
  return props.minDomain[axis];
10548
10528
  }
10549
- return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
10529
+ return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_1___default()(props.minDomain) ? props.minDomain : undefined;
10550
10530
  }
10551
10531
 
10552
10532
  /**
@@ -10557,7 +10537,7 @@ function getMinFromProps(props, axis) {
10557
10537
  * @returns {Array} the symmetric domain
10558
10538
  */
10559
10539
  function getSymmetricDomain(domain, values) {
10560
- const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_1___default()(values.sort((a, b) => a - b));
10540
+ const processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort((a, b) => a - b));
10561
10541
  const step = processedData[1] - processedData[0];
10562
10542
  return [domain[0], domain[1] + step];
10563
10543
  }
@@ -10573,7 +10553,7 @@ function isDomainComponent(component) {
10573
10553
  };
10574
10554
  let role = getRole(component);
10575
10555
  if (role === "portal") {
10576
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(component.props.children);
10556
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(component.props.children);
10577
10557
  role = children.length ? getRole(children[0]) : "";
10578
10558
  }
10579
10559
  const whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
@@ -10604,20 +10584,19 @@ __webpack_require__.r(__webpack_exports__);
10604
10584
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
10605
10585
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
10606
10586
  /* harmony export */ });
10607
- /* 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");
10608
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
10609
- /* 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");
10610
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
10611
- /* 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");
10612
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
10613
- /* 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");
10614
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
10587
+ /* 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");
10588
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
10589
+ /* 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");
10590
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
10591
+ /* 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");
10592
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
10593
+ /* 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");
10594
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
10615
10595
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
10616
10596
 
10617
10597
 
10618
10598
 
10619
10599
 
10620
- /* eslint-disable no-use-before-define */
10621
10600
 
10622
10601
  const GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
10623
10602
 
@@ -10665,11 +10644,10 @@ getScopedEvents) {
10665
10644
  */
10666
10645
  const getAllEvents = () => {
10667
10646
  // Mandatory usage: `getEvents.bind(this)`
10668
- /* eslint-disable no-invalid-this */
10647
+
10669
10648
  if (Array.isArray(this.componentEvents)) {
10670
10649
  return Array.isArray(props.events) ? this.componentEvents.concat(...props.events) : this.componentEvents;
10671
10650
  }
10672
- /* eslint-enable no-invalid-this */
10673
10651
  return props.events;
10674
10652
  };
10675
10653
  const allEvents = getAllEvents();
@@ -10689,12 +10667,12 @@ getScopedEvents) {
10689
10667
  */
10690
10668
  // eslint-disable-next-line max-params
10691
10669
  function getScopedEvents(events, namespace, childType, baseProps) {
10692
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
10670
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
10693
10671
  return {};
10694
10672
  }
10695
10673
 
10696
10674
  // Mandatory usage: `getScopedEvents.bind(this)`
10697
- // eslint-disable-next-line no-invalid-this
10675
+
10698
10676
  const newBaseProps = baseProps || this.baseProps;
10699
10677
  // returns the original base props or base state of a given target element
10700
10678
  const getTargetProps = (identifier, type) => {
@@ -10703,7 +10681,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
10703
10681
  target,
10704
10682
  key
10705
10683
  } = identifier;
10706
- // eslint-disable-next-line no-invalid-this
10707
10684
  const baseType = type === "props" ? newBaseProps : this.state || {};
10708
10685
  const base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
10709
10686
  return key === "parent" ? base.parent : base[key] && base[key][target];
@@ -10730,7 +10707,6 @@ function getScopedEvents(events, namespace, childType, baseProps) {
10730
10707
 
10731
10708
  // returns the state object with mutated props applied for a single key
10732
10709
  const getMutationObject = (key, childName) => {
10733
- // eslint-disable-next-line no-invalid-this
10734
10710
  const baseState = this.state || {};
10735
10711
  if (!(0,_helpers__WEBPACK_IMPORTED_MODULE_4__.isFunction)(eventReturn.mutation)) {
10736
10712
  return baseState;
@@ -10803,11 +10779,9 @@ function getScopedEvents(events, namespace, childType, baseProps) {
10803
10779
  // into a state mutation, and calls setState
10804
10780
  // eslint-disable-next-line max-params
10805
10781
  const onEvent = (evt, childProps, eventKey, eventName) => {
10806
- // eslint-disable-next-line no-invalid-this
10807
10782
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
10808
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
10783
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
10809
10784
  const callbacks = compileCallbacks(eventReturn);
10810
- // eslint-disable-next-line no-invalid-this
10811
10785
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
10812
10786
  }
10813
10787
  };
@@ -10837,7 +10811,7 @@ function getPartialEvents(events, eventKey, childProps) {
10837
10811
  // eslint-disable-next-line max-params
10838
10812
  function getEventState(eventKey, namespace, childType) {
10839
10813
  // Mandatory usage: `getEventState.bind(this)`
10840
- // eslint-disable-next-line no-invalid-this
10814
+
10841
10815
  const state = this.state || {};
10842
10816
  if (!childType) {
10843
10817
  return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
@@ -10867,7 +10841,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
10867
10841
  const childState = baseState[childName];
10868
10842
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
10869
10843
  memo[childName] = mutation ? mutation : childState;
10870
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
10844
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
10871
10845
  }, {});
10872
10846
  }
10873
10847
 
@@ -10903,7 +10877,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
10903
10877
  } else {
10904
10878
  // use keys from both state and props so that elements not intially included in baseProps
10905
10879
  // will be used. (i.e. labels)
10906
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
10880
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
10907
10881
  memo[eventKey] = targets.reduce((m, target) => {
10908
10882
  const identifier = {
10909
10883
  eventKey,
@@ -10912,10 +10886,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
10912
10886
  };
10913
10887
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
10914
10888
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
10915
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
10889
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
10916
10890
  }, {});
10917
10891
  }
10918
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
10892
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
10919
10893
  }, {});
10920
10894
  }
10921
10895
 
@@ -10947,11 +10921,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
10947
10921
  }
10948
10922
  // find any mutation objects that match the target
10949
10923
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
10950
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
10924
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
10951
10925
  return undefined;
10952
10926
  }
10953
10927
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
10954
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
10928
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
10955
10929
  return undefined;
10956
10930
  }
10957
10931
  return keyMutations.reduce((memo, curr) => {
@@ -10977,8 +10951,8 @@ function getGlobalEventNameFromKey(key) {
10977
10951
  const match = key.match(GLOBAL_EVENT_REGEX);
10978
10952
  return match && match[1] && match[1].toLowerCase();
10979
10953
  }
10980
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10981
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10954
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10955
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
10982
10956
  const emulateReactEvent = event => Object.assign(event, {
10983
10957
  nativeEvent: event
10984
10958
  });
@@ -11019,41 +10993,45 @@ __webpack_require__.r(__webpack_exports__);
11019
10993
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
11020
10994
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
11021
10995
  /* harmony export */ });
11022
- /* 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");
11023
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
11024
- /* 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");
11025
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
11026
- /* 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");
11027
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
11028
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
11029
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
11030
-
10996
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10997
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10998
+ /* 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");
10999
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11000
+ /* 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");
11001
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
11002
+ /* 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");
11003
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
11031
11004
 
11032
11005
 
11033
- /* eslint-disable no-use-before-define */
11034
11006
 
11035
- // Private Functions
11036
11007
 
11037
- function getCartesianRange(props, axis) {
11038
- // determine how to lay the axis and what direction positive and negative are
11039
- const vertical = axis !== "x";
11040
- const padding = getPadding(props);
11008
+ /**
11009
+ * Determine the range of a cartesian axis
11010
+ */
11011
+ function getCartesianRange(options) {
11012
+ const vertical = options.axis !== "x";
11041
11013
  if (vertical) {
11042
- return [props.height - padding.bottom, padding.top];
11014
+ return [options.height - options.padding.bottom, options.padding.top];
11043
11015
  }
11044
- return [padding.left, props.width - padding.right];
11016
+ return [options.padding.left, options.width - options.padding.right];
11045
11017
  }
11046
- function getPolarRange(props, axis) {
11047
- if (axis === "x") {
11048
- const startAngle = degreesToRadians(props.startAngle || 0);
11049
- const endAngle = degreesToRadians(props.endAngle || 360);
11018
+
11019
+ /**
11020
+ * Determine the range of a polar axis in radians
11021
+ */
11022
+ function getPolarRange(options) {
11023
+ if (options.axis === "x") {
11024
+ const startAngle = degreesToRadians(options.startAngle || 0);
11025
+ const endAngle = degreesToRadians(options.endAngle || 360);
11050
11026
  return [startAngle, endAngle];
11051
11027
  }
11052
- return [props.innerRadius || 0, getRadius(props)];
11028
+ return [options.innerRadius || 0, getRadius({
11029
+ height: options.height,
11030
+ width: options.width,
11031
+ padding: options.padding
11032
+ })];
11053
11033
  }
11054
11034
 
11055
- // Exported Functions
11056
-
11057
11035
  /**
11058
11036
  * Creates an object composed of the inverted keys and values of object.
11059
11037
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -11090,8 +11068,11 @@ function omit(originalObject, ks) {
11090
11068
  }
11091
11069
  return newObject;
11092
11070
  }
11071
+
11072
+ /**
11073
+ * Coalesce the x and y values from a data point
11074
+ */
11093
11075
  function getPoint(datum) {
11094
- const exists = val => val !== undefined;
11095
11076
  const {
11096
11077
  _x,
11097
11078
  _x1,
@@ -11102,16 +11083,20 @@ function getPoint(datum) {
11102
11083
  _y0,
11103
11084
  _voronoiY
11104
11085
  } = datum;
11105
- const defaultX = exists(_x1) ? _x1 : _x;
11106
- const defaultY = exists(_y1) ? _y1 : _y;
11086
+ const defaultX = _x1 ?? _x;
11087
+ const defaultY = _y1 ?? _y;
11107
11088
  const point = {
11108
- x: exists(_voronoiX) ? _voronoiX : defaultX,
11109
- x0: exists(_x0) ? _x0 : _x,
11110
- y: exists(_voronoiY) ? _voronoiY : defaultY,
11111
- y0: exists(_y0) ? _y0 : _y
11089
+ x: _voronoiX ?? defaultX,
11090
+ x0: _x0 ?? _x,
11091
+ y: _voronoiY ?? defaultY,
11092
+ y0: _y0 ?? _y
11112
11093
  };
11113
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
11094
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
11114
11095
  }
11096
+
11097
+ /**
11098
+ * Scale a point based on the origin, direction, and given scale function
11099
+ */
11115
11100
  function scalePoint(props, datum) {
11116
11101
  const {
11117
11102
  scale,
@@ -11134,11 +11119,11 @@ function scalePoint(props, datum) {
11134
11119
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
11135
11120
  };
11136
11121
  }
11137
- function getPadding(props, name) {
11138
- if (name === void 0) {
11139
- name = "padding";
11140
- }
11141
- const padding = props[name];
11122
+
11123
+ /**
11124
+ * Returns a padding value from a number or partial padding values
11125
+ */
11126
+ function getPadding(padding) {
11142
11127
  const paddingVal = typeof padding === "number" ? padding : 0;
11143
11128
  const paddingObj = typeof padding === "object" ? padding : {};
11144
11129
  return {
@@ -11148,6 +11133,10 @@ function getPadding(props, name) {
11148
11133
  right: paddingObj.right || paddingVal
11149
11134
  };
11150
11135
  }
11136
+
11137
+ /**
11138
+ * Returns true if the component is defined as a tooltip
11139
+ */
11151
11140
  function isTooltip(component) {
11152
11141
  const labelRole = component && component.type && component.type.role;
11153
11142
  return labelRole === "tooltip";
@@ -11162,8 +11151,8 @@ function getDefaultStyles(props, role) {
11162
11151
  return defaultStyles;
11163
11152
  }
11164
11153
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
11165
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
11166
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
11154
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
11155
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
11167
11156
  labels: labelStyle
11168
11157
  }, defaultStyles);
11169
11158
  }
@@ -11171,7 +11160,7 @@ function getStyles(style, defaultStyles) {
11171
11160
  const width = "100%";
11172
11161
  const height = "100%";
11173
11162
  if (!style) {
11174
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
11163
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
11175
11164
  parent: {
11176
11165
  height,
11177
11166
  width
@@ -11187,14 +11176,18 @@ function getStyles(style, defaultStyles) {
11187
11176
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
11188
11177
  const defaultData = defaultStyles && defaultStyles.data || {};
11189
11178
  return {
11190
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
11179
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
11191
11180
  width,
11192
11181
  height
11193
11182
  }),
11194
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
11195
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
11183
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
11184
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
11196
11185
  };
11197
11186
  }
11187
+
11188
+ /**
11189
+ * Returns the value of a prop or accessor function with the given props
11190
+ */
11198
11191
  function evaluateProp(prop, props) {
11199
11192
  return isFunction(prop) ? prop(props) : prop;
11200
11193
  }
@@ -11216,19 +11209,28 @@ function degreesToRadians(degrees) {
11216
11209
  function radiansToDegrees(radians) {
11217
11210
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
11218
11211
  }
11219
- function getRadius(props) {
11212
+
11213
+ /**
11214
+ * Get the maximum radius that will fit in the container
11215
+ */
11216
+ function getRadius(options) {
11217
+ const {
11218
+ width,
11219
+ height,
11220
+ padding
11221
+ } = options;
11220
11222
  const {
11221
11223
  left,
11222
11224
  right,
11223
11225
  top,
11224
11226
  bottom
11225
- } = getPadding(props);
11226
- const {
11227
- width,
11228
- height
11229
- } = props;
11227
+ } = padding;
11230
11228
  return Math.min(width - left - right, height - top - bottom) / 2;
11231
11229
  }
11230
+
11231
+ /**
11232
+ * Returns the origin for a polar chart within the padded area
11233
+ */
11232
11234
  function getPolarOrigin(props) {
11233
11235
  const {
11234
11236
  width,
@@ -11239,7 +11241,7 @@ function getPolarOrigin(props) {
11239
11241
  bottom,
11240
11242
  left,
11241
11243
  right
11242
- } = getPadding(props);
11244
+ } = getPadding(props.padding);
11243
11245
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
11244
11246
  const offsetWidth = width / 2 + left - right;
11245
11247
  const offsetHeight = height / 2 + top - bottom;
@@ -11248,13 +11250,30 @@ function getPolarOrigin(props) {
11248
11250
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
11249
11251
  };
11250
11252
  }
11253
+
11254
+ /**
11255
+ * Determine the range of an axis based on the given props
11256
+ */
11251
11257
  function getRange(props, axis) {
11252
11258
  if (props.range && props.range[axis]) {
11253
11259
  return props.range[axis];
11254
11260
  } else if (props.range && Array.isArray(props.range)) {
11255
11261
  return props.range;
11256
11262
  }
11257
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
11263
+ return props.polar ? getPolarRange({
11264
+ axis,
11265
+ innerRadius: props.innerRadius,
11266
+ startAngle: props.startAngle,
11267
+ endAngle: props.endAngle,
11268
+ height: props.height,
11269
+ width: props.width,
11270
+ padding: getPadding(props.padding)
11271
+ }) : getCartesianRange({
11272
+ axis,
11273
+ height: props.height,
11274
+ width: props.width,
11275
+ padding: getPadding(props.padding)
11276
+ });
11258
11277
  }
11259
11278
 
11260
11279
  /**
@@ -11286,7 +11305,7 @@ function createAccessor(key) {
11286
11305
  return x => x;
11287
11306
  }
11288
11307
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
11289
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
11308
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
11290
11309
  }
11291
11310
  function modifyProps(props, fallbackProps, role) {
11292
11311
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -11295,7 +11314,7 @@ function modifyProps(props, fallbackProps, role) {
11295
11314
  const defaultObject = horizontal === undefined ? {} : {
11296
11315
  horizontal
11297
11316
  };
11298
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
11317
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
11299
11318
  }
11300
11319
 
11301
11320
  /**
@@ -11382,10 +11401,10 @@ initialMemo, combine) {
11382
11401
  const childRole = child.type && child.type.role;
11383
11402
  const childName = child.props.name || `${childRole}-${names[index]}`;
11384
11403
  if (child.props && child.props.children) {
11385
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
11386
- 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 => {
11387
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
11388
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
11404
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
11405
+ 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 => {
11406
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
11407
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
11389
11408
  });
11390
11409
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
11391
11410
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -11399,7 +11418,7 @@ initialMemo, combine) {
11399
11418
  return newMemo;
11400
11419
  }, initialMemo);
11401
11420
  };
11402
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
11421
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
11403
11422
  const childNames = validChildren.map((c, i) => i);
11404
11423
  return traverseChildren(validChildren, childNames);
11405
11424
  }
@@ -11419,10 +11438,10 @@ function isHorizontal(props) {
11419
11438
  if (memo || childProps.horizontal || !childProps.children) {
11420
11439
  return memo || childProps.horizontal;
11421
11440
  }
11422
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
11441
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
11423
11442
  }, false);
11424
11443
  };
11425
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
11444
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
11426
11445
  }
11427
11446
 
11428
11447
  /***/ }),
@@ -11438,10 +11457,10 @@ __webpack_require__.r(__webpack_exports__);
11438
11457
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11439
11458
  /* harmony export */ "useAnimationState": function() { return /* binding */ useAnimationState; }
11440
11459
  /* harmony export */ });
11441
- /* 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");
11442
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
11443
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
11444
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
11460
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11461
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11462
+ /* 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");
11463
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
11445
11464
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../collection */ "../../victory-core/es/victory-util/collection.js");
11446
11465
  /* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transitions */ "../../victory-core/es/victory-util/transitions.js");
11447
11466
 
@@ -11457,10 +11476,10 @@ const useAnimationState = function (initialState) {
11457
11476
  if (initialState === void 0) {
11458
11477
  initialState = INITIAL_STATE;
11459
11478
  }
11460
- const [state, _setState] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(initialState);
11479
+ const [state, _setState] = react__WEBPACK_IMPORTED_MODULE_0___default().useState(initialState);
11461
11480
 
11462
11481
  // This allows us to use a state object and maintain the same API as this.setState
11463
- const setState = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(newState => {
11482
+ const setState = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(newState => {
11464
11483
  _setState(oldState => ({
11465
11484
  ...oldState,
11466
11485
  ...newState
@@ -11468,14 +11487,14 @@ const useAnimationState = function (initialState) {
11468
11487
  }, [_setState]);
11469
11488
 
11470
11489
  // This is a copy of Wrapper.getAnimationProps
11471
- const getAnimationProps = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback((props, child, index) => {
11490
+ const getAnimationProps = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((props, child, index) => {
11472
11491
  if (!props?.animate) {
11473
11492
  return child.props.animate;
11474
11493
  }
11475
11494
  const getFilteredState = () => {
11476
11495
  let childrenTransitions = state && state.childrenTransitions;
11477
11496
  childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_2__.isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions;
11478
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
11497
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
11479
11498
  childrenTransitions
11480
11499
  }, state);
11481
11500
  };
@@ -11486,28 +11505,28 @@ const useAnimationState = function (initialState) {
11486
11505
  const getTransitionProps = _transitions__WEBPACK_IMPORTED_MODULE_3__.getTransitionPropsFactory(props, filteredState, newState => setState(newState));
11487
11506
  getTransitions = childComponent => getTransitionProps(childComponent, index);
11488
11507
  }
11489
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
11508
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
11490
11509
  getTransitions,
11491
11510
  parentState
11492
11511
  }, props.animate, child.props.animate);
11493
11512
  }, [state, setState]);
11494
11513
 
11495
11514
  // This is a copy of Wrapper.setAnimationState
11496
- const setAnimationState = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback((props, nextProps) => {
11515
+ const setAnimationState = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((props, nextProps) => {
11497
11516
  if (!props?.animate) {
11498
11517
  return;
11499
11518
  }
11500
11519
  if (props.animate.parentState) {
11501
11520
  const nodesWillExit = props.animate.parentState.nodesWillExit;
11502
11521
  const oldProps = nodesWillExit ? props : null;
11503
- const newState = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({
11522
+ const newState = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
11504
11523
  oldProps,
11505
11524
  nextProps
11506
11525
  }, props.animate.parentState);
11507
11526
  setState(newState);
11508
11527
  } else {
11509
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children);
11510
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(nextProps.children);
11528
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
11529
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
11511
11530
  const isContinuous = child => {
11512
11531
  const check = c => c.type && c.type.continuous;
11513
11532
  return Array.isArray(child) ? child.some(check) : check(child);
@@ -11532,7 +11551,7 @@ const useAnimationState = function (initialState) {
11532
11551
  });
11533
11552
  }
11534
11553
  }, [setState]);
11535
- const getProps = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(initialProps => {
11554
+ const getProps = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(initialProps => {
11536
11555
  return state && state.nodesWillExit ? state.oldProps || initialProps : initialProps;
11537
11556
  }, [state]);
11538
11557
  return {
@@ -11638,11 +11657,11 @@ __webpack_require__.r(__webpack_exports__);
11638
11657
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
11639
11658
  /* harmony export */ "getText": function() { return /* binding */ getText; }
11640
11659
  /* harmony export */ });
11660
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
11641
11661
  /* 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");
11642
11662
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
11643
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
11644
11663
 
11645
- /* eslint-disable no-use-before-define */
11664
+
11646
11665
 
11647
11666
  // Private Functions
11648
11667
 
@@ -11887,11 +11906,12 @@ __webpack_require__.r(__webpack_exports__);
11887
11906
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11888
11907
  /* harmony export */ "warn": function() { return /* binding */ warn; }
11889
11908
  /* harmony export */ });
11890
- /* global console */
11909
+ /* global console process */
11891
11910
  /* eslint-disable no-console */
11892
11911
 
11893
- // TODO: Use "warning" npm module like React is switching to.
11894
11912
  function warn(message) {
11913
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11914
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
11895
11915
  if (true) {
11896
11916
  if (console && console.warn) {
11897
11917
  console.warn(message);
@@ -11962,7 +11982,6 @@ __webpack_require__.r(__webpack_exports__);
11962
11982
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
11963
11983
  /* harmony import */ var victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-scale */ "../../victory-vendor/es/d3-scale.js");
11964
11984
 
11965
- /* eslint-disable no-use-before-define */
11966
11985
 
11967
11986
 
11968
11987
 
@@ -12185,13 +12204,15 @@ __webpack_require__.r(__webpack_exports__);
12185
12204
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
12186
12205
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
12187
12206
  /* harmony export */ });
12188
- /* 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");
12189
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
12190
- /* 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");
12191
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
12192
-
12193
- // http://www.pearsonified.com/2012/01/characters-per-line.php
12207
+ /* 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");
12208
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
12209
+ /* 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");
12210
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
12211
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
12194
12212
  /* eslint-disable no-magic-numbers */
12213
+
12214
+
12215
+
12195
12216
  // Based on measuring specific character widths
12196
12217
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
12197
12218
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -12370,7 +12391,7 @@ const convertLengthToPixels = (length, fontSize) => {
12370
12391
  };
12371
12392
  const _prepareParams = (inputStyle, index) => {
12372
12393
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
12373
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
12394
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
12374
12395
  return Object.assign({}, style, {
12375
12396
  fontFamily: style.fontFamily,
12376
12397
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -12418,7 +12439,7 @@ const _approximateDimensionsInternal = (text, style) => {
12418
12439
  height: heightWithRotate * coefficients.heightOverlapCoef
12419
12440
  };
12420
12441
  };
12421
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
12442
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
12422
12443
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
12423
12444
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
12424
12445
  element.setAttribute("width", "300");
@@ -12439,7 +12460,7 @@ const styleToKeyComponent = style => {
12439
12460
  }
12440
12461
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
12441
12462
  };
12442
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
12463
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
12443
12464
  let containerElement = _getMeasurementContainer();
12444
12465
  if (!containerElement.isConnected) {
12445
12466
  _getMeasurementContainer.cache.clear?.();
@@ -12609,12 +12630,12 @@ __webpack_require__.r(__webpack_exports__);
12609
12630
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
12610
12631
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
12611
12632
  /* harmony export */ });
12612
- /* 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");
12613
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
12633
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
12634
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
12614
12635
  /* 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");
12615
12636
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
12616
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
12617
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
12637
+ /* 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");
12638
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
12618
12639
 
12619
12640
 
12620
12641
 
@@ -12705,13 +12726,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
12705
12726
  const getTransitionsFromChildren = (old, next) => {
12706
12727
  return old.map((child, idx) => {
12707
12728
  if (child && child.props && child.props.children && next[idx]) {
12708
- 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));
12729
+ 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));
12709
12730
  }
12710
12731
  // get Transition entering and exiting nodes
12711
12732
  return getTransition(child, next[idx]);
12712
12733
  });
12713
12734
  };
12714
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
12735
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
12715
12736
  return {
12716
12737
  nodesWillExit,
12717
12738
  nodesWillEnter,
@@ -12725,7 +12746,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
12725
12746
  };
12726
12747
  }
12727
12748
  function getInitialChildProps(animate, data) {
12728
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12749
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12729
12750
  return {
12730
12751
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
12731
12752
  };
@@ -12742,7 +12763,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
12742
12763
  data
12743
12764
  };
12744
12765
  }
12745
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12766
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12746
12767
  // If nodes need to exit, transform them with the provided onLoad.before function.
12747
12768
  const newData = data.map((datum, idx) => {
12748
12769
  return Object.assign({}, datum, before(datum, idx, data));
@@ -12753,8 +12774,6 @@ function getChildBeforeLoad(animate, child, data, cb) {
12753
12774
  clipWidth: 0
12754
12775
  };
12755
12776
  }
12756
-
12757
- // eslint-disable-next-line max-params
12758
12777
  function getChildOnLoad(animate, data, cb) {
12759
12778
  const newAnimate = Object.assign({}, animate, {
12760
12779
  onEnd: cb
@@ -12766,7 +12785,7 @@ function getChildOnLoad(animate, data, cb) {
12766
12785
  data
12767
12786
  };
12768
12787
  }
12769
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12788
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12770
12789
  // If nodes need to exit, transform them with the provided onLoad.after function.
12771
12790
  newData = data.map((datum, idx) => {
12772
12791
  return Object.assign({}, datum, after(datum, idx, data));
@@ -12777,7 +12796,7 @@ function getChildOnLoad(animate, data, cb) {
12777
12796
  };
12778
12797
  }
12779
12798
 
12780
- // eslint-disable-next-line max-params, max-len
12799
+ // eslint-disable-next-line max-params
12781
12800
  function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
12782
12801
  // Whether or not _this_ child has exiting nodes, we want the exit-
12783
12802
  // transition for all children to have the same duration, delay, etc.
@@ -12788,7 +12807,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
12788
12807
  // After the exit transition occurs, trigger the animations for
12789
12808
  // nodes that are neither exiting nor entering.
12790
12809
  animate.onEnd = cb;
12791
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12810
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12792
12811
  // If nodes need to exit, transform them with the provided onExit.before function.
12793
12812
  newData = data.map((datum, idx) => {
12794
12813
  const key = (datum.key || idx).toString();
@@ -12801,7 +12820,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
12801
12820
  };
12802
12821
  }
12803
12822
 
12804
- // eslint-disable-next-line max-params,max-len
12823
+ // eslint-disable-next-line max-params
12805
12824
  function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
12806
12825
  let newAnimate = animate;
12807
12826
  let newData = data;
@@ -12811,7 +12830,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
12811
12830
  newAnimate = Object.assign({}, animate, {
12812
12831
  onEnd: cb
12813
12832
  });
12814
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12833
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12815
12834
  // We want the entering nodes to be included in the transition target
12816
12835
  // domain. However, we may not want these nodes to be displayed initially,
12817
12836
  // so perform the `onEnter.before` transformation on each node.
@@ -12826,7 +12845,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
12826
12845
  };
12827
12846
  }
12828
12847
 
12829
- // eslint-disable-next-line max-params, max-len
12848
+ // eslint-disable-next-line max-params
12830
12849
  function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
12831
12850
  // Whether or not _this_ child has entering nodes, we want the entering-
12832
12851
  // transition for all children to have the same duration, delay, etc.
@@ -12838,7 +12857,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
12838
12857
  // domain should encompass the nodes that will now enter. So perform
12839
12858
  // the `onEnter.after` transformation on each node.
12840
12859
  newAnimate.onEnd = cb;
12841
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
12860
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
12842
12861
  newData = data.map((datum, idx) => {
12843
12862
  const key = getDatumKey(datum, idx);
12844
12863
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;
@@ -12933,8 +12952,6 @@ function getTransitionPropsFactory(props, state, setState) {
12933
12952
  }
12934
12953
  return {};
12935
12954
  };
12936
-
12937
- // eslint-disable-next-line max-statements, complexity, max-len
12938
12955
  return function getTransitionProps(child, index) {
12939
12956
  const data = getChildData(child) || [];
12940
12957
  const animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, props.animate, child.props.animate);
@@ -13132,16 +13149,16 @@ __webpack_require__.r(__webpack_exports__);
13132
13149
  /* harmony export */ "getStyle": function() { return /* binding */ getStyle; },
13133
13150
  /* harmony export */ "getWidth": function() { return /* binding */ getWidth; }
13134
13151
  /* harmony export */ });
13135
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js");
13136
- /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0__);
13137
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
13138
- /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__);
13152
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
13153
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13154
+ /* 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");
13155
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
13139
13156
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
13140
13157
  /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_2__);
13141
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
13142
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
13143
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
13144
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
13158
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
13159
+ /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__);
13160
+ /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniqBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqBy.js");
13161
+ /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__);
13145
13162
  /* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./axis */ "../../victory-core/es/victory-util/axis.js");
13146
13163
  /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./style */ "../../victory-core/es/victory-util/style.js");
13147
13164
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
@@ -13235,7 +13252,7 @@ function getDataFromChildren(props, childComponents) {
13235
13252
  maxDomain
13236
13253
  };
13237
13254
  let stack = 0;
13238
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
13255
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
13239
13256
  parentProps = addBinsToParentPropsIfHistogram({
13240
13257
  children,
13241
13258
  props,
@@ -13249,7 +13266,7 @@ function getDataFromChildren(props, childComponents) {
13249
13266
  if (!_data__WEBPACK_IMPORTED_MODULE_7__.isDataComponent(child)) {
13250
13267
  return null;
13251
13268
  } else if (child.type && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(child.type.getData)) {
13252
- childElement = parent ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, parent.props) : child;
13269
+ childElement = parent ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, parent.props) : child;
13253
13270
  childData = childElement.type.getData(childProps);
13254
13271
  } else {
13255
13272
  childData = _data__WEBPACK_IMPORTED_MODULE_7__.getData(childProps);
@@ -13261,16 +13278,16 @@ function getDataFromChildren(props, childComponents) {
13261
13278
  }, datum));
13262
13279
  };
13263
13280
  const stacked = children.filter(c => c.type && c.type.role === "stack").length;
13264
- const combine = (memo, val) => memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "_group"));
13281
+ const combine = (memo, val) => memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default()(val, "_group"));
13265
13282
  const datasets = _helpers__WEBPACK_IMPORTED_MODULE_6__.reduceChildren(children, iteratee, props, [], combine);
13266
13283
  const group = stacked ? "_group" : "_stack";
13267
- return Object.values(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default()(datasets, group));
13284
+ return Object.values(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default()(datasets, group));
13268
13285
  }
13269
13286
  function getData(props, childComponents) {
13270
13287
  if (props.data) {
13271
13288
  return _data__WEBPACK_IMPORTED_MODULE_7__.getData(props);
13272
13289
  }
13273
- return getDataFromChildren(props, childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children));
13290
+ return getDataFromChildren(props, childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
13274
13291
  }
13275
13292
  function getWidth(props, groupLength, seriesLength) {
13276
13293
  const {
@@ -13322,8 +13339,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
13322
13339
  };
13323
13340
  }
13324
13341
  function getDomainFromChildren(props, axis, childComponents) {
13325
- // eslint-disable-line max-statements, complexity, max-len
13326
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
13342
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
13327
13343
  const parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_7__.getData(props) : undefined;
13328
13344
  const {
13329
13345
  polar,
@@ -13361,7 +13377,7 @@ function getDomainFromChildren(props, axis, childComponents) {
13361
13377
  return [min, max];
13362
13378
  }
13363
13379
  function getDomain(props, axis, childComponents) {
13364
- const children = childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
13380
+ const children = childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
13365
13381
  const propsDomain = _domain__WEBPACK_IMPORTED_MODULE_8__.getDomainFromProps(props, axis);
13366
13382
  const domainPadding = getDefaultDomainPadding(props, axis, children);
13367
13383
  let domain;
@@ -13385,7 +13401,7 @@ function getScale(props, axis, childComponents) {
13385
13401
  if (props.data) {
13386
13402
  return _scale__WEBPACK_IMPORTED_MODULE_10__.getBaseScale(props, axis);
13387
13403
  }
13388
- const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
13404
+ const children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
13389
13405
  const iteratee = child => {
13390
13406
  const sharedProps = Object.assign({}, child.props, {
13391
13407
  horizontal: props.horizontal
@@ -13454,8 +13470,8 @@ function getChildStyle(child, index, calculatedProps, theme) {
13454
13470
  const dataWidth = role === "stack" ? {} : {
13455
13471
  width: getWidth(calculatedProps)
13456
13472
  };
13457
- const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, childStyle.data, Object.assign({}, dataWidth, style.data, defaultColor));
13458
- const labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, childStyle.labels, style.labels);
13473
+ const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childStyle.data, Object.assign({}, dataWidth, style.data, defaultColor));
13474
+ const labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childStyle.labels, style.labels);
13459
13475
  return {
13460
13476
  ...childStyle,
13461
13477
  parent: style.parent,
@@ -13511,7 +13527,7 @@ function getCategoryAndAxisStringsFromChildren(props, axis, childComponents) {
13511
13527
  return lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default()([...categoryStrings, ...axisStrings].flat());
13512
13528
  }
13513
13529
  function getStringsFromChildren(props, childComponents) {
13514
- const children = childComponents || react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
13530
+ const children = childComponents || react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
13515
13531
  const xStrings = getCategoryAndAxisStringsFromChildren(props, "x", children);
13516
13532
  const yStrings = getCategoryAndAxisStringsFromChildren(props, "y", children);
13517
13533
  const dataStrings = getStringsFromData(children);
@@ -13602,7 +13618,7 @@ const getRadius = props => {
13602
13618
  right,
13603
13619
  top,
13604
13620
  bottom
13605
- } = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPadding(props);
13621
+ } = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPadding(props.padding);
13606
13622
  const {
13607
13623
  width,
13608
13624
  height
@@ -13899,7 +13915,7 @@ const getCalculatedValues = initialProps => {
13899
13915
  }, initialProps);
13900
13916
  const defaultStyles = getStyleObject(props);
13901
13917
  const style = getStyles(props, defaultStyles);
13902
- const padding = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPadding(props);
13918
+ const padding = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPadding(props.padding);
13903
13919
  const axis = victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxis(props);
13904
13920
  const axisType = getAxisType(props);
13905
13921
  const stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_3__.stringTicks(props) ? props.tickValues : undefined;
@@ -13910,6 +13926,8 @@ const getCalculatedValues = initialProps => {
13910
13926
  const ticks = axisType === "angular" ? filterTicks(initialTicks, scale) : initialTicks;
13911
13927
  const tickFormat = victory_core__WEBPACK_IMPORTED_MODULE_3__.getTickFormat(props, scale);
13912
13928
  const radius = getRadius(props);
13929
+
13930
+ // @ts-expect-error props is not typed but contains width and height
13913
13931
  const origin = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPolarOrigin(props);
13914
13932
  return {
13915
13933
  axis,
@@ -13982,10 +14000,10 @@ __webpack_require__.r(__webpack_exports__);
13982
14000
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13983
14001
  /* harmony export */ "VictoryPolarAxis": function() { return /* binding */ VictoryPolarAxis; }
13984
14002
  /* harmony export */ });
13985
- /* 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");
13986
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
13987
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
13988
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
14003
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14004
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14005
+ /* 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");
14006
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
13989
14007
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
13990
14008
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
13991
14009
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/arc.js");
@@ -14004,9 +14022,9 @@ const fallbackProps = {
14004
14022
  padding: 50
14005
14023
  };
14006
14024
 
14007
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
14025
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
14008
14026
 
14009
- class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Component) {
14027
+ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
14010
14028
  static animationWhitelist = ["style", "domain", "range", "tickCount", "tickValues", "padding", "width", "height"];
14011
14029
  static displayName = "VictoryAxis";
14012
14030
  static role = "axis";
@@ -14019,22 +14037,22 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14019
14037
  }
14020
14038
  };
14021
14039
  static defaultProps = {
14022
- axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14023
- axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
14024
- circularAxisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Arc, null),
14025
- circularGridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Arc, null),
14026
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
14040
+ axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14041
+ axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
14042
+ circularAxisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Arc, null),
14043
+ circularGridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Arc, null),
14044
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
14027
14045
  endAngle: 360,
14028
- gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14029
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", {
14046
+ gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14047
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
14030
14048
  role: "presentation"
14031
14049
  }),
14032
14050
  labelPlacement: "parallel",
14033
14051
  startAngle: 0,
14034
14052
  standalone: true,
14035
14053
  theme: victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryTheme.grayscale,
14036
- tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14037
- tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null)
14054
+ tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.LineSegment, null),
14055
+ tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null)
14038
14056
  };
14039
14057
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomain;
14040
14058
  static getAxis = victory_core__WEBPACK_IMPORTED_MODULE_7__.getAxis;
@@ -14054,7 +14072,7 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14054
14072
  } = props;
14055
14073
  const axisComponent = dependentAxis ? props.axisComponent : props.circularAxisComponent;
14056
14074
  const axisProps = this.getComponentProps(axisComponent, "axis", 0);
14057
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(axisComponent, axisProps);
14075
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(axisComponent, axisProps);
14058
14076
  }
14059
14077
  renderLabel(props) {
14060
14078
  const {
@@ -14066,7 +14084,7 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14066
14084
  return null;
14067
14085
  }
14068
14086
  const axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0);
14069
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(axisLabelComponent, axisLabelProps);
14087
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(axisLabelComponent, axisLabelProps);
14070
14088
  }
14071
14089
  renderAxis(props) {
14072
14090
  const {
@@ -14080,7 +14098,7 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14080
14098
  events = {}
14081
14099
  } = componentProps;
14082
14100
  const visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0;
14083
- return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events);
14101
+ return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(events);
14084
14102
  };
14085
14103
  const axisType = props.dependentAxis ? "radial" : "angular";
14086
14104
  const gridComponent = axisType === "radial" ? props.circularGridComponent : props.gridComponent;
@@ -14088,21 +14106,21 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14088
14106
  const tickProps = Object.assign({
14089
14107
  key: `${name}-tick-${key}`
14090
14108
  }, this.getComponentProps(tickComponent, "ticks", index));
14091
- const TickComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(tickComponent, tickProps);
14109
+ const TickComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tickComponent, tickProps);
14092
14110
  return shouldRender(TickComponent.props) ? TickComponent : undefined;
14093
14111
  }).filter(Boolean);
14094
14112
  const gridComponents = this.dataKeys.map((key, index) => {
14095
14113
  const gridProps = Object.assign({
14096
14114
  key: `${name}-grid-${key}`
14097
14115
  }, this.getComponentProps(gridComponent, "grid", index));
14098
- const GridComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(gridComponent, gridProps);
14116
+ const GridComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(gridComponent, gridProps);
14099
14117
  return shouldRender(GridComponent.props) ? GridComponent : undefined;
14100
14118
  }).filter(Boolean);
14101
14119
  const tickLabelComponents = this.dataKeys.map((key, index) => {
14102
14120
  const tickLabelProps = Object.assign({
14103
14121
  key: `${name}-tick-${key}`
14104
14122
  }, this.getComponentProps(tickLabelComponent, "tickLabels", index));
14105
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(tickLabelComponent, tickLabelProps);
14123
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tickLabelComponent, tickLabelProps);
14106
14124
  });
14107
14125
  const axis = this.renderAxisLine(props);
14108
14126
  const axisLabel = this.renderLabel(props);
@@ -14115,7 +14133,7 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
14115
14133
  const {
14116
14134
  groupComponent
14117
14135
  } = props;
14118
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {}, children);
14136
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(groupComponent, {}, children);
14119
14137
  }
14120
14138
  shouldAnimate() {
14121
14139
  return !!this.props.animate;
@@ -14165,22 +14183,22 @@ __webpack_require__.r(__webpack_exports__);
14165
14183
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14166
14184
  /* harmony export */ "VictorySharedEvents": function() { return /* binding */ VictorySharedEvents; }
14167
14185
  /* harmony export */ });
14168
- /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
14169
- /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
14170
- /* 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");
14171
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
14172
- /* 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");
14173
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
14174
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
14175
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
14176
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
14177
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
14178
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
14179
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
14186
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14187
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14188
+ /* 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");
14189
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
14190
+ /* 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");
14191
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
14192
+ /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
14193
+ /* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_3__);
14180
14194
  /* 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");
14181
14195
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
14182
14196
  /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
14183
14197
  /* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__);
14198
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
14199
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
14200
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
14201
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
14184
14202
 
14185
14203
 
14186
14204
 
@@ -14194,14 +14212,14 @@ __webpack_require__.r(__webpack_exports__);
14194
14212
  // to refactor in our current refactoring effort. Please do not make changes
14195
14213
  // to this file without manual testing and/or refactoring and adding tests.
14196
14214
 
14197
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
14215
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
14198
14216
 
14199
- class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().Component) {
14217
+ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
14200
14218
  static displayName = "VictorySharedEvents";
14201
14219
  static role = "shared-event-wrapper";
14202
14220
  static contextType = victory_core__WEBPACK_IMPORTED_MODULE_6__["default"];
14203
14221
  static defaultProps = {
14204
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
14222
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
14205
14223
  };
14206
14224
  constructor(props) {
14207
14225
  super(props);
@@ -14258,7 +14276,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14258
14276
  return props.events;
14259
14277
  }
14260
14278
  applyExternalMutations(props, externalMutations) {
14261
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
14279
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
14262
14280
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => victory_core__WEBPACK_IMPORTED_MODULE_9__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
14263
14281
  const compiledCallbacks = callbacks.length ? () => {
14264
14282
  callbacks.forEach(c => c());
@@ -14267,7 +14285,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14267
14285
  }
14268
14286
  }
14269
14287
  getExternalMutations(props, baseProps) {
14270
- return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_7__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
14288
+ return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_7__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
14271
14289
  }
14272
14290
  cacheSharedEvents(name, sharedEvents, cacheValues) {
14273
14291
  this.sharedEventsCache[name] = [sharedEvents, cacheValues];
@@ -14283,7 +14301,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14283
14301
  const {
14284
14302
  container
14285
14303
  } = props;
14286
- const children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
14304
+ const children = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(this.props.children);
14287
14305
  const childBaseProps = this.getBasePropsFromChildren(children);
14288
14306
  const parentBaseProps = container ? container.props : {};
14289
14307
  return Object.assign({}, childBaseProps, {
@@ -14299,7 +14317,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14299
14317
  return null;
14300
14318
  };
14301
14319
  const baseProps = victory_core__WEBPACK_IMPORTED_MODULE_9__.reduceChildren(childComponents, iteratee);
14302
- return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
14320
+ return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_3___default()(baseProps);
14303
14321
  }
14304
14322
  getNewChildren(props, baseProps) {
14305
14323
  const {
@@ -14309,9 +14327,9 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14309
14327
  const alterChildren = (children, childNames) => {
14310
14328
  return children.reduce((memo, child, index) => {
14311
14329
  if (child.props.children) {
14312
- const newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
14330
+ const newChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children);
14313
14331
  const names = childNames.slice(index, index + newChildren.length);
14314
- const results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
14332
+ const results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, child.props, alterChildren(newChildren, names));
14315
14333
  return memo.concat(results);
14316
14334
  } else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_9__.isFunction(child.type.getBaseProps)) {
14317
14335
  const name = child.props.name || childNames[index];
@@ -14330,7 +14348,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14330
14348
  getEventState: (key, target) => this.getEventState(key, target, name)
14331
14349
  };
14332
14350
  this.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
14333
- return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
14351
+ return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, Object.assign({
14334
14352
  key: `events-${name}`,
14335
14353
  sharedEvents,
14336
14354
  eventKey,
@@ -14341,7 +14359,7 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14341
14359
  }, []);
14342
14360
  };
14343
14361
  const childNames = Object.keys(baseProps);
14344
- const childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
14362
+ const childComponents = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
14345
14363
  return alterChildren(childComponents, childNames);
14346
14364
  }
14347
14365
  getContainer(props, baseProps, events) {
@@ -14360,22 +14378,22 @@ class VictorySharedEvents extends (react__WEBPACK_IMPORTED_MODULE_3___default().
14360
14378
  const parentEvents = sharedEvents && boundGetEvents({
14361
14379
  sharedEvents
14362
14380
  }, "parent");
14363
- const parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
14381
+ const parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
14364
14382
  children
14365
14383
  });
14366
- const containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
14384
+ const containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
14367
14385
  this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.getGlobalEvents(containerEvents);
14368
14386
  const localEvents = victory_core__WEBPACK_IMPORTED_MODULE_7__.omitGlobalEvents(containerEvents);
14369
- return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
14387
+ return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(container, Object.assign({}, parentProps, {
14370
14388
  events: localEvents
14371
- })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
14389
+ })) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(container, localEvents, children);
14372
14390
  }
14373
14391
  render() {
14374
14392
  const events = this.getAllEvents(this.props);
14375
14393
  if (events) {
14376
14394
  return this.getContainer(this.props, this.baseProps, events);
14377
14395
  }
14378
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
14396
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(this.props.container, {
14379
14397
  children: this.props.children
14380
14398
  });
14381
14399
  }