victory-stack 36.4.1 → 36.5.2

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.
@@ -486,7 +486,7 @@ var VictoryStack = function (initialProps) {
486
486
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
487
487
  };
488
488
 
489
- VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.baseProps), {}, {
489
+ VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), {}, {
490
490
  bins: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_13___default().instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative]),
491
491
  categories: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
492
492
  x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)),
@@ -506,10 +506,10 @@ VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_I
506
506
  xOffset: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)
507
507
  });
508
508
  VictoryStack.defaultProps = {
509
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_15__["default"], null),
509
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_15__.VictoryContainer, null),
510
510
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
511
511
  standalone: true,
512
- theme: victory_core__WEBPACK_IMPORTED_MODULE_16__["default"].grayscale,
512
+ theme: victory_core__WEBPACK_IMPORTED_MODULE_16__.VictoryTheme.grayscale,
513
513
  fillInMissingData: true
514
514
  };
515
515
  var VictoryStackMemo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(VictoryStack, (react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()));
@@ -6524,7 +6524,7 @@ module.exports = checkPropTypes;
6524
6524
 
6525
6525
 
6526
6526
 
6527
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
6527
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
6528
6528
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
6529
6529
 
6530
6530
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -7143,7 +7143,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
7143
7143
  */
7144
7144
 
7145
7145
  if (true) {
7146
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
7146
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
7147
7147
 
7148
7148
  // By explicitly using `prop-types` you are opting into new development behavior.
7149
7149
  // http://fb.me/prop-types-in-prod
@@ -7188,154 +7188,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
7188
7188
 
7189
7189
  /***/ }),
7190
7190
 
7191
- /***/ "../../../node_modules/react-fast-compare/index.js":
7192
- /*!*********************************************************!*\
7193
- !*** ../../../node_modules/react-fast-compare/index.js ***!
7194
- \*********************************************************/
7195
- /***/ ((module) => {
7196
-
7197
- /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
7198
-
7199
- var hasElementType = typeof Element !== 'undefined';
7200
- var hasMap = typeof Map === 'function';
7201
- var hasSet = typeof Set === 'function';
7202
- var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
7203
-
7204
- // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
7205
-
7206
- function equal(a, b) {
7207
- // START: fast-deep-equal es6/index.js 3.1.1
7208
- if (a === b) return true;
7209
-
7210
- if (a && b && typeof a == 'object' && typeof b == 'object') {
7211
- if (a.constructor !== b.constructor) return false;
7212
-
7213
- var length, i, keys;
7214
- if (Array.isArray(a)) {
7215
- length = a.length;
7216
- if (length != b.length) return false;
7217
- for (i = length; i-- !== 0;)
7218
- if (!equal(a[i], b[i])) return false;
7219
- return true;
7220
- }
7221
-
7222
- // START: Modifications:
7223
- // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
7224
- // to co-exist with es5.
7225
- // 2. Replace `for of` with es5 compliant iteration using `for`.
7226
- // Basically, take:
7227
- //
7228
- // ```js
7229
- // for (i of a.entries())
7230
- // if (!b.has(i[0])) return false;
7231
- // ```
7232
- //
7233
- // ... and convert to:
7234
- //
7235
- // ```js
7236
- // it = a.entries();
7237
- // while (!(i = it.next()).done)
7238
- // if (!b.has(i.value[0])) return false;
7239
- // ```
7240
- //
7241
- // **Note**: `i` access switches to `i.value`.
7242
- var it;
7243
- if (hasMap && (a instanceof Map) && (b instanceof Map)) {
7244
- if (a.size !== b.size) return false;
7245
- it = a.entries();
7246
- while (!(i = it.next()).done)
7247
- if (!b.has(i.value[0])) return false;
7248
- it = a.entries();
7249
- while (!(i = it.next()).done)
7250
- if (!equal(i.value[1], b.get(i.value[0]))) return false;
7251
- return true;
7252
- }
7253
-
7254
- if (hasSet && (a instanceof Set) && (b instanceof Set)) {
7255
- if (a.size !== b.size) return false;
7256
- it = a.entries();
7257
- while (!(i = it.next()).done)
7258
- if (!b.has(i.value[0])) return false;
7259
- return true;
7260
- }
7261
- // END: Modifications
7262
-
7263
- if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
7264
- length = a.length;
7265
- if (length != b.length) return false;
7266
- for (i = length; i-- !== 0;)
7267
- if (a[i] !== b[i]) return false;
7268
- return true;
7269
- }
7270
-
7271
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
7272
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
7273
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
7274
-
7275
- keys = Object.keys(a);
7276
- length = keys.length;
7277
- if (length !== Object.keys(b).length) return false;
7278
-
7279
- for (i = length; i-- !== 0;)
7280
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
7281
- // END: fast-deep-equal
7282
-
7283
- // START: react-fast-compare
7284
- // custom handling for DOM elements
7285
- if (hasElementType && a instanceof Element) return false;
7286
-
7287
- // custom handling for React/Preact
7288
- for (i = length; i-- !== 0;) {
7289
- if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
7290
- // React-specific: avoid traversing React elements' _owner
7291
- // Preact-specific: avoid traversing Preact elements' __v and __o
7292
- // __v = $_original / $_vnode
7293
- // __o = $_owner
7294
- // These properties contain circular references and are not needed when
7295
- // comparing the actual elements (and not their owners)
7296
- // .$$typeof and ._store on just reasonable markers of elements
7297
-
7298
- continue;
7299
- }
7300
-
7301
- // all other properties should be traversed as usual
7302
- if (!equal(a[keys[i]], b[keys[i]])) return false;
7303
- }
7304
- // END: react-fast-compare
7305
-
7306
- // START: fast-deep-equal
7307
- return true;
7308
- }
7309
-
7310
- return a !== a && b !== b;
7311
- }
7312
- // end fast-deep-equal
7313
-
7314
- module.exports = function isEqual(a, b) {
7315
- try {
7316
- return equal(a, b);
7317
- } catch (error) {
7318
- if (((error.message || '').match(/stack|recursion/i))) {
7319
- // warn on circular references, don't crash
7320
- // browsers give this different errors name and messages:
7321
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
7322
- // firefox: "InternalError", too much recursion"
7323
- // edge: "Error", "Out of stack space"
7324
- console.warn('react-fast-compare cannot handle circular refs');
7325
- return false;
7326
- }
7327
- // some other error. we should definitely know about these
7328
- throw error;
7329
- }
7330
- };
7331
-
7332
-
7333
- /***/ }),
7334
-
7335
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
7336
- /*!******************************************************************!*\
7337
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
7338
- \******************************************************************/
7191
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
7192
+ /*!******************************************************************************************!*\
7193
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
7194
+ \******************************************************************************************/
7339
7195
  /***/ ((__unused_webpack_module, exports) => {
7340
7196
 
7341
7197
  "use strict";
@@ -7524,20 +7380,164 @@ exports.typeOf = typeOf;
7524
7380
 
7525
7381
  /***/ }),
7526
7382
 
7527
- /***/ "../../../node_modules/react-is/index.js":
7528
- /*!***********************************************!*\
7529
- !*** ../../../node_modules/react-is/index.js ***!
7530
- \***********************************************/
7383
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
7384
+ /*!***********************************************************************!*\
7385
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
7386
+ \***********************************************************************/
7531
7387
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7532
7388
 
7533
7389
  "use strict";
7534
7390
 
7535
7391
 
7536
7392
  if (false) {} else {
7537
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
7393
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
7538
7394
  }
7539
7395
 
7540
7396
 
7397
+ /***/ }),
7398
+
7399
+ /***/ "../../../node_modules/react-fast-compare/index.js":
7400
+ /*!*********************************************************!*\
7401
+ !*** ../../../node_modules/react-fast-compare/index.js ***!
7402
+ \*********************************************************/
7403
+ /***/ ((module) => {
7404
+
7405
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
7406
+
7407
+ var hasElementType = typeof Element !== 'undefined';
7408
+ var hasMap = typeof Map === 'function';
7409
+ var hasSet = typeof Set === 'function';
7410
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
7411
+
7412
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
7413
+
7414
+ function equal(a, b) {
7415
+ // START: fast-deep-equal es6/index.js 3.1.1
7416
+ if (a === b) return true;
7417
+
7418
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
7419
+ if (a.constructor !== b.constructor) return false;
7420
+
7421
+ var length, i, keys;
7422
+ if (Array.isArray(a)) {
7423
+ length = a.length;
7424
+ if (length != b.length) return false;
7425
+ for (i = length; i-- !== 0;)
7426
+ if (!equal(a[i], b[i])) return false;
7427
+ return true;
7428
+ }
7429
+
7430
+ // START: Modifications:
7431
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
7432
+ // to co-exist with es5.
7433
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
7434
+ // Basically, take:
7435
+ //
7436
+ // ```js
7437
+ // for (i of a.entries())
7438
+ // if (!b.has(i[0])) return false;
7439
+ // ```
7440
+ //
7441
+ // ... and convert to:
7442
+ //
7443
+ // ```js
7444
+ // it = a.entries();
7445
+ // while (!(i = it.next()).done)
7446
+ // if (!b.has(i.value[0])) return false;
7447
+ // ```
7448
+ //
7449
+ // **Note**: `i` access switches to `i.value`.
7450
+ var it;
7451
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
7452
+ if (a.size !== b.size) return false;
7453
+ it = a.entries();
7454
+ while (!(i = it.next()).done)
7455
+ if (!b.has(i.value[0])) return false;
7456
+ it = a.entries();
7457
+ while (!(i = it.next()).done)
7458
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
7459
+ return true;
7460
+ }
7461
+
7462
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
7463
+ if (a.size !== b.size) return false;
7464
+ it = a.entries();
7465
+ while (!(i = it.next()).done)
7466
+ if (!b.has(i.value[0])) return false;
7467
+ return true;
7468
+ }
7469
+ // END: Modifications
7470
+
7471
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
7472
+ length = a.length;
7473
+ if (length != b.length) return false;
7474
+ for (i = length; i-- !== 0;)
7475
+ if (a[i] !== b[i]) return false;
7476
+ return true;
7477
+ }
7478
+
7479
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
7480
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
7481
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
7482
+
7483
+ keys = Object.keys(a);
7484
+ length = keys.length;
7485
+ if (length !== Object.keys(b).length) return false;
7486
+
7487
+ for (i = length; i-- !== 0;)
7488
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
7489
+ // END: fast-deep-equal
7490
+
7491
+ // START: react-fast-compare
7492
+ // custom handling for DOM elements
7493
+ if (hasElementType && a instanceof Element) return false;
7494
+
7495
+ // custom handling for React/Preact
7496
+ for (i = length; i-- !== 0;) {
7497
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
7498
+ // React-specific: avoid traversing React elements' _owner
7499
+ // Preact-specific: avoid traversing Preact elements' __v and __o
7500
+ // __v = $_original / $_vnode
7501
+ // __o = $_owner
7502
+ // These properties contain circular references and are not needed when
7503
+ // comparing the actual elements (and not their owners)
7504
+ // .$$typeof and ._store on just reasonable markers of elements
7505
+
7506
+ continue;
7507
+ }
7508
+
7509
+ // all other properties should be traversed as usual
7510
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
7511
+ }
7512
+ // END: react-fast-compare
7513
+
7514
+ // START: fast-deep-equal
7515
+ return true;
7516
+ }
7517
+
7518
+ return a !== a && b !== b;
7519
+ }
7520
+ // end fast-deep-equal
7521
+
7522
+ module.exports = function isEqual(a, b) {
7523
+ try {
7524
+ return equal(a, b);
7525
+ } catch (error) {
7526
+ if (((error.message || '').match(/stack|recursion/i))) {
7527
+ // warn on circular references, don't crash
7528
+ // browsers give this different errors name and messages:
7529
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
7530
+ // firefox: "InternalError", too much recursion"
7531
+ // edge: "Error", "Out of stack space"
7532
+ console.warn('react-fast-compare cannot handle circular refs');
7533
+ return false;
7534
+ }
7535
+ // some other error. we should definitely know about these
7536
+ throw error;
7537
+ }
7538
+ };
7539
+
7540
+
7541
7541
  /***/ }),
7542
7542
 
7543
7543
  /***/ "../../victory-core/es/victory-container/victory-container.js":
@@ -7549,7 +7549,7 @@ if (false) {} else {
7549
7549
  "use strict";
7550
7550
  __webpack_require__.r(__webpack_exports__);
7551
7551
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7552
- /* harmony export */ "default": () => (/* binding */ VictoryContainer)
7552
+ /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
7553
7553
  /* harmony export */ });
7554
7554
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
7555
7555
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
@@ -7577,12 +7577,14 @@ __webpack_require__.r(__webpack_exports__);
7577
7577
 
7578
7578
 
7579
7579
 
7580
- function _extends() { _extends = Object.assign || 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); }
7580
+ 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); }
7581
7581
 
7582
7582
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7583
7583
 
7584
7584
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7585
7585
 
7586
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7587
+
7586
7588
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7587
7589
 
7588
7590
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -7591,7 +7593,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7591
7593
 
7592
7594
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7593
7595
 
7594
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7596
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7595
7597
 
7596
7598
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7597
7599
 
@@ -7601,10 +7603,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7601
7603
 
7602
7604
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7603
7605
 
7604
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7605
-
7606
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7607
-
7606
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7608
7607
 
7609
7608
 
7610
7609
 
@@ -7619,13 +7618,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7619
7618
 
7620
7619
  var _super = _createSuper(VictoryContainer);
7621
7620
 
7621
+ // @ts-expect-error Ref will be initialized on mount
7622
+ // @ts-expect-error Ref will be initialized on mount
7622
7623
  function VictoryContainer(props) {
7623
7624
  var _this;
7624
7625
 
7625
7626
  _classCallCheck(this, VictoryContainer);
7626
7627
 
7627
7628
  _this = _super.call(this, props);
7628
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7629
+ _this.containerId = void 0;
7630
+ _this.portalRef = void 0;
7631
+ _this.containerRef = void 0;
7632
+ _this.shouldHandleWheel = void 0;
7629
7633
 
7630
7634
  _this.savePortalRef = function (portal) {
7631
7635
  _this.portalRef = portal;
@@ -7644,18 +7648,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7644
7648
  return _this.portalRef.portalDeregister(key);
7645
7649
  };
7646
7650
 
7647
- _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
7651
+ _this.saveContainerRef = function (container) {
7652
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
7653
+ _this.props.containerRef(container);
7654
+ }
7655
+
7648
7656
  _this.containerRef = container;
7649
7657
  return container;
7650
7658
  };
7651
- _this.shouldHandleWheel = props && props.events && props.events.onWheel;
7652
7659
 
7653
- if (_this.shouldHandleWheel) {
7654
- _this.handleWheel = function (e) {
7655
- return e.preventDefault();
7656
- };
7657
- }
7660
+ _this.handleWheel = function (e) {
7661
+ return e.preventDefault();
7662
+ };
7658
7663
 
7664
+ _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7665
+ _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
7659
7666
  return _this;
7660
7667
  }
7661
7668
 
@@ -7748,7 +7755,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7748
7755
  preserveAspectRatio: svgProps.preserveAspectRatio,
7749
7756
  style: portalSvgStyle
7750
7757
  };
7751
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
7758
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
7752
7759
  value: {
7753
7760
  portalUpdate: this.portalUpdate,
7754
7761
  portalRegister: this.portalRegister,
@@ -7803,12 +7810,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7803
7810
 
7804
7811
  return VictoryContainer;
7805
7812
  }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
7806
-
7807
- _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
7808
-
7809
- _defineProperty(VictoryContainer, "role", "container");
7810
-
7811
- _defineProperty(VictoryContainer, "propTypes", {
7813
+ VictoryContainer.displayName = "VictoryContainer";
7814
+ VictoryContainer.role = "container";
7815
+ VictoryContainer.propTypes = {
7812
7816
  "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7813
7817
  "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7814
7818
  children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
@@ -7837,19 +7841,16 @@ _defineProperty(VictoryContainer, "propTypes", {
7837
7841
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
7838
7842
  title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7839
7843
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
7840
- });
7841
-
7842
- _defineProperty(VictoryContainer, "defaultProps", {
7844
+ };
7845
+ VictoryContainer.defaultProps = {
7843
7846
  className: "VictoryContainer",
7844
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
7847
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
7845
7848
  portalZIndex: 99,
7846
7849
  responsive: true,
7847
7850
  role: "img"
7848
- });
7849
-
7850
- _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
7851
-
7852
-
7851
+ };
7852
+ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
7853
+ //# sourceMappingURL=victory-container.js.map
7853
7854
 
7854
7855
  /***/ }),
7855
7856
 
@@ -7862,19 +7863,19 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
7862
7863
  "use strict";
7863
7864
  __webpack_require__.r(__webpack_exports__);
7864
7865
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7865
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
7866
+ /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
7866
7867
  /* harmony export */ });
7867
7868
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7868
7869
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7869
7870
 
7871
+
7870
7872
  /**
7871
7873
  * The React context object consumers may use to access the context of the
7872
7874
  * portal.
7873
7875
  */
7874
-
7875
7876
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
7876
7877
  PortalContext.displayName = "PortalContext";
7877
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
7878
+ //# sourceMappingURL=portal-context.js.map
7878
7879
 
7879
7880
  /***/ }),
7880
7881
 
@@ -7887,7 +7888,7 @@ PortalContext.displayName = "PortalContext";
7887
7888
  "use strict";
7888
7889
  __webpack_require__.r(__webpack_exports__);
7889
7890
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7890
- /* harmony export */ "default": () => (/* binding */ Portal)
7891
+ /* harmony export */ "Portal": () => (/* binding */ Portal)
7891
7892
  /* harmony export */ });
7892
7893
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
7893
7894
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
@@ -7906,7 +7907,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7906
7907
 
7907
7908
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7908
7909
 
7909
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7910
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7910
7911
 
7911
7912
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7912
7913
 
@@ -7916,10 +7917,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7916
7917
 
7917
7918
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7918
7919
 
7919
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7920
-
7921
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7922
-
7920
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7923
7921
 
7924
7922
 
7925
7923
 
@@ -7935,32 +7933,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
7935
7933
  _classCallCheck(this, Portal);
7936
7934
 
7937
7935
  _this = _super.call(this, props);
7936
+ _this.map = void 0;
7937
+ _this.index = void 0;
7938
+
7939
+ _this.portalRegister = function () {
7940
+ return ++_this.index;
7941
+ };
7942
+
7943
+ _this.portalUpdate = function (key, element) {
7944
+ _this.map[key] = element;
7945
+
7946
+ _this.forceUpdate();
7947
+ };
7948
+
7949
+ _this.portalDeregister = function (key) {
7950
+ delete _this.map[key];
7951
+
7952
+ _this.forceUpdate();
7953
+ };
7954
+
7938
7955
  _this.map = {};
7939
7956
  _this.index = 1;
7940
- _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
7941
- _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
7942
- _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
7943
7957
  return _this;
7944
7958
  }
7945
7959
 
7946
7960
  _createClass(Portal, [{
7947
- key: "portalRegister",
7948
- value: function portalRegister() {
7949
- return ++this.index;
7950
- }
7951
- }, {
7952
- key: "portalUpdate",
7953
- value: function portalUpdate(key, element) {
7954
- this.map[key] = element;
7955
- this.forceUpdate();
7956
- }
7957
- }, {
7958
- key: "portalDeregister",
7959
- value: function portalDeregister(key) {
7960
- delete this.map[key];
7961
- this.forceUpdate();
7962
- }
7963
- }, {
7964
7961
  key: "getChildren",
7965
7962
  value: function getChildren() {
7966
7963
  var _this2 = this;
@@ -7982,18 +7979,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
7982
7979
 
7983
7980
  return Portal;
7984
7981
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
7985
-
7986
- _defineProperty(Portal, "displayName", "Portal");
7987
-
7988
- _defineProperty(Portal, "propTypes", {
7982
+ Portal.displayName = "Portal";
7983
+ Portal.propTypes = {
7989
7984
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
7990
7985
  height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
7991
7986
  style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
7992
7987
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
7993
7988
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
7994
- });
7995
-
7996
-
7989
+ };
7990
+ //# sourceMappingURL=portal.js.map
7997
7991
 
7998
7992
  /***/ }),
7999
7993
 
@@ -8006,7 +8000,7 @@ _defineProperty(Portal, "propTypes", {
8006
8000
  "use strict";
8007
8001
  __webpack_require__.r(__webpack_exports__);
8008
8002
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8009
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8003
+ /* harmony export */ "grayscale": () => (/* binding */ grayscale)
8010
8004
  /* harmony export */ });
8011
8005
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8012
8006
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -8053,7 +8047,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8053
8047
 
8054
8048
  var strokeLinecap = "round";
8055
8049
  var strokeLinejoin = "round";
8056
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8050
+ var grayscale = {
8057
8051
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8058
8052
  style: {
8059
8053
  data: {
@@ -8268,7 +8262,8 @@ var strokeLinejoin = "round";
8268
8262
  }
8269
8263
  }
8270
8264
  }, baseProps)
8271
- });
8265
+ };
8266
+ //# sourceMappingURL=grayscale.js.map
8272
8267
 
8273
8268
  /***/ }),
8274
8269
 
@@ -8281,7 +8276,7 @@ var strokeLinejoin = "round";
8281
8276
  "use strict";
8282
8277
  __webpack_require__.r(__webpack_exports__);
8283
8278
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8284
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8279
+ /* harmony export */ "material": () => (/* binding */ material)
8285
8280
  /* harmony export */ });
8286
8281
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8287
8282
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -8338,7 +8333,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8338
8333
  var strokeDasharray = "10, 5";
8339
8334
  var strokeLinecap = "round";
8340
8335
  var strokeLinejoin = "round";
8341
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8336
+ var material = {
8342
8337
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
8343
8338
  style: {
8344
8339
  data: {
@@ -8570,7 +8565,8 @@ var strokeLinejoin = "round";
8570
8565
  }
8571
8566
  }
8572
8567
  }, baseProps)
8573
- });
8568
+ };
8569
+ //# sourceMappingURL=material.js.map
8574
8570
 
8575
8571
  /***/ }),
8576
8572
 
@@ -8583,16 +8579,18 @@ var strokeLinejoin = "round";
8583
8579
  "use strict";
8584
8580
  __webpack_require__.r(__webpack_exports__);
8585
8581
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8586
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8582
+ /* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
8587
8583
  /* harmony export */ });
8588
- /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
8589
- /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
8584
+ /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
8585
+ /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
8590
8586
 
8591
8587
 
8592
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8593
- material: _material__WEBPACK_IMPORTED_MODULE_0__["default"],
8594
- grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"]
8595
- });
8588
+
8589
+ var VictoryTheme = {
8590
+ grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
8591
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material
8592
+ };
8593
+ //# sourceMappingURL=victory-theme.js.map
8596
8594
 
8597
8595
  /***/ }),
8598
8596
 
@@ -8673,7 +8671,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
8673
8671
 
8674
8672
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8675
8673
 
8676
- /* eslint-disable func-style */
8674
+
8677
8675
 
8678
8676
 
8679
8677
 
@@ -8684,7 +8682,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
8684
8682
  * @param {Boolean} horizontal: true for horizontal charts
8685
8683
  * @returns {String} the dimension appropriate for the axis given its props
8686
8684
  */
8687
-
8688
8685
  function getAxis(props) {
8689
8686
  var dependentAxis = props.dependentAxis;
8690
8687
  return dependentAxis ? "y" : "x";
@@ -8870,7 +8867,7 @@ function getTickArray(props) {
8870
8867
  }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
8871
8868
  }
8872
8869
 
8873
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(props);
8870
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
8874
8871
 
8875
8872
  var buildTickArray = function (arr) {
8876
8873
  var newTickArray = [];
@@ -8915,11 +8912,11 @@ function getTickFormat(props, scale) {
8915
8912
  return defaultTickFormat || scaleTickFormat;
8916
8913
  } else if (tickFormat && Array.isArray(tickFormat)) {
8917
8914
  var tickArray = getTickArray(props);
8918
- var tickArrayIndices = tickArray ? tickArray.map(function (v) {
8915
+ var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
8919
8916
  return v.index;
8920
- }) : undefined;
8917
+ });
8921
8918
  var filteredTickFormat = tickFormat.filter(function (t, index) {
8922
- return tickArrayIndices.includes(index);
8919
+ return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
8923
8920
  });
8924
8921
  return function (x, index) {
8925
8922
  return filteredTickFormat[index];
@@ -8953,7 +8950,8 @@ function downsampleTicks(ticks, tickCount) {
8953
8950
  });
8954
8951
  }
8955
8952
 
8956
- function getTicks(props, scale, filterZero) {
8953
+ function getTicks(props, scale) {
8954
+ var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
8957
8955
  var tickCount = props.tickCount;
8958
8956
  var tickArray = getTickArray(props);
8959
8957
  var tickValues = tickArray ? tickArray.map(function (v) {
@@ -9076,6 +9074,7 @@ function modifyProps(props, fallbackProps) {
9076
9074
  theme: theme
9077
9075
  }), fallbackProps, "axis");
9078
9076
  }
9077
+ //# sourceMappingURL=axis.js.map
9079
9078
 
9080
9079
  /***/ }),
9081
9080
 
@@ -9109,9 +9108,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
9109
9108
 
9110
9109
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
9111
9110
 
9112
- /* eslint-disable func-style */
9113
-
9114
- /* eslint-disable no-use-before-define */
9115
9111
  function isNonEmptyArray(collection) {
9116
9112
  return Array.isArray(collection) && collection.length > 0;
9117
9113
  }
@@ -9150,7 +9146,8 @@ function getMaxValue(arr) {
9150
9146
  }
9151
9147
 
9152
9148
  var array = arr.concat(values);
9153
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
9149
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
9150
+ : Math.max.apply(Math, _toConsumableArray(array));
9154
9151
  }
9155
9152
  function getMinValue(arr) {
9156
9153
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -9158,8 +9155,10 @@ function getMinValue(arr) {
9158
9155
  }
9159
9156
 
9160
9157
  var array = arr.concat(values);
9161
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
9158
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
9159
+ : Math.min.apply(Math, _toConsumableArray(array));
9162
9160
  }
9161
+ //# sourceMappingURL=collection.js.map
9163
9162
 
9164
9163
  /***/ }),
9165
9164
 
@@ -9172,9 +9171,7 @@ function getMinValue(arr) {
9172
9171
  "use strict";
9173
9172
  __webpack_require__.r(__webpack_exports__);
9174
9173
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9175
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
9176
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
9177
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
9174
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
9178
9175
  /* harmony export */ });
9179
9176
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9180
9177
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -9182,26 +9179,28 @@ __webpack_require__.r(__webpack_exports__);
9182
9179
 
9183
9180
 
9184
9181
  var dataProps = {
9182
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9185
9183
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9186
9184
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
9187
9185
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
9188
9186
  })]),
9187
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9189
9188
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
9190
9189
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
9191
9190
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
9192
9191
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
9193
9192
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
9194
9193
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
9195
- sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
9194
+ sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
9196
9195
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
9197
9196
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9198
9197
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
9199
9198
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
9200
9199
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
9201
9200
  }),
9202
- x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
9203
- y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
9204
- y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
9201
+ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
9202
+ y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
9203
+ y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
9205
9204
  };
9206
9205
  var baseProps = {
9207
9206
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
@@ -9210,14 +9209,17 @@ var baseProps = {
9210
9209
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
9211
9210
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
9212
9211
  })]),
9212
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9213
9213
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9214
9214
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
9215
9215
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
9216
9216
  })]),
9217
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9217
9218
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9218
9219
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
9219
9220
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
9220
9221
  })]),
9222
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9221
9223
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9222
9224
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
9223
9225
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
@@ -9228,6 +9230,7 @@ var baseProps = {
9228
9230
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
9229
9231
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
9230
9232
  })),
9233
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9231
9234
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9232
9235
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
9233
9236
  childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
@@ -9238,10 +9241,12 @@ var baseProps = {
9238
9241
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
9239
9242
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
9240
9243
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
9244
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9241
9245
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9242
9246
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
9243
9247
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
9244
9248
  }),
9249
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9245
9250
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9246
9251
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
9247
9252
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -9250,17 +9255,19 @@ var baseProps = {
9250
9255
  })]),
9251
9256
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
9252
9257
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9253
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
9254
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
9258
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
9259
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
9255
9260
  })]),
9256
9261
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9257
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
9258
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
9262
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
9263
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
9259
9264
  })]),
9265
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9260
9266
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9261
9267
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
9262
9268
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
9263
9269
  }),
9270
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9264
9271
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9265
9272
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
9266
9273
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -9280,6 +9287,7 @@ var primitiveProps = {
9280
9287
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
9281
9288
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
9282
9289
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
9290
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
9283
9291
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
9284
9292
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
9285
9293
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -9295,6 +9303,12 @@ var primitiveProps = {
9295
9303
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
9296
9304
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
9297
9305
  };
9306
+ var CommonProps = {
9307
+ dataProps: dataProps,
9308
+ baseProps: baseProps,
9309
+ primitiveProps: primitiveProps
9310
+ };
9311
+ //# sourceMappingURL=common-props.js.map
9298
9312
 
9299
9313
  /***/ }),
9300
9314
 
@@ -9377,8 +9391,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
9377
9391
 
9378
9392
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
9379
9393
 
9380
- /* eslint-disable func-style */
9381
-
9382
9394
  /* eslint-disable no-use-before-define */
9383
9395
 
9384
9396
 
@@ -9810,6 +9822,7 @@ function isDataComponent(component) {
9810
9822
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
9811
9823
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
9812
9824
  }
9825
+ //# sourceMappingURL=data.js.map
9813
9826
 
9814
9827
  /***/ }),
9815
9828
 
@@ -9872,8 +9885,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
9872
9885
 
9873
9886
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
9874
9887
 
9875
- /* eslint-disable func-style */
9876
-
9877
9888
  /* eslint-disable no-use-before-define */
9878
9889
 
9879
9890
 
@@ -9913,8 +9924,9 @@ function getDomainPadding(props, axis) {
9913
9924
  }
9914
9925
 
9915
9926
  function getFlatData(dataset, axis) {
9927
+ var axisKey = "_".concat(axis);
9916
9928
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
9917
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
9929
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
9918
9930
  });
9919
9931
  }
9920
9932
 
@@ -9979,7 +9991,9 @@ function padDomain(domain, props, axis) {
9979
9991
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
9980
9992
  // Naive initial padding calculation
9981
9993
  var initialPadding = {
9994
+ // @ts-expect-error `max/min` might be dates
9982
9995
  left: Math.abs(max - min) * padding.left / rangeExtent,
9996
+ // @ts-expect-error `max/min` might be dates
9983
9997
  right: Math.abs(max - min) * padding.right / rangeExtent
9984
9998
  }; // Adjust the domain by the initial padding
9985
9999
 
@@ -10264,6 +10278,7 @@ function isDomainComponent(component) {
10264
10278
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
10265
10279
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
10266
10280
  }
10281
+ //# sourceMappingURL=domain.js.map
10267
10282
 
10268
10283
  /***/ }),
10269
10284
 
@@ -10332,15 +10347,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10332
10347
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10333
10348
 
10334
10349
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
10350
+
10335
10351
  /* Returns all own and shared events that should be attached to a single target element,
10336
10352
  * i.e. an individual bar specified by target: "data", eventKey: [index].
10337
10353
  * Returned events are scoped to the appropriate state. Either that of the component itself
10338
10354
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
10339
10355
  * (i.e. VictoryChart) in the case of shared events
10340
10356
  */
10341
- // eslint-disable-next-line max-params,no-shadow
10342
-
10343
- function getEvents(props, target, eventKey, getScopedEvents) {
10357
+ // eslint-disable-next-line max-params
10358
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
10359
+ getScopedEvents) {
10344
10360
  var _this = this;
10345
10361
 
10346
10362
  // Returns all events that apply to a particular target element
@@ -10563,24 +10579,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
10563
10579
  return memo;
10564
10580
  }, {});
10565
10581
  }
10566
- /* Returns a partially applied event handler for a specific target element
10582
+ /*
10583
+ * Returns a partially applied event handler for a specific target element
10567
10584
  * This allows event handlers to have access to props controlling each element
10568
10585
  */
10569
10586
 
10570
10587
  function getPartialEvents(events, eventKey, childProps) {
10571
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
10588
+ if (!events) return {};
10589
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
10572
10590
  var appliedEvent = function (evt) {
10573
10591
  return events[eventName](evt, childProps, eventKey, eventName);
10574
10592
  };
10575
10593
 
10576
10594
  memo[eventName] = appliedEvent;
10577
10595
  return memo;
10578
- }, {}) : {};
10596
+ }, {});
10579
10597
  }
10598
+
10580
10599
  /* Returns the property of the state object corresponding to event changes for
10581
10600
  * a particular element
10582
10601
  */
10583
-
10602
+ // eslint-disable-next-line max-params
10584
10603
  function getEventState(eventKey, namespace, childType) {
10585
10604
  // Mandatory usage: `getEventState.bind(this)`
10586
10605
  // eslint-disable-next-line no-invalid-this
@@ -10765,6 +10784,7 @@ var emulateReactEvent = function (event) {
10765
10784
  nativeEvent: event
10766
10785
  });
10767
10786
  };
10787
+ //# sourceMappingURL=events.js.map
10768
10788
 
10769
10789
  /***/ }),
10770
10790
 
@@ -10818,8 +10838,6 @@ __webpack_require__.r(__webpack_exports__);
10818
10838
 
10819
10839
 
10820
10840
 
10821
- /* eslint-disable func-style */
10822
-
10823
10841
  /* eslint-disable no-use-before-define */
10824
10842
 
10825
10843
 
@@ -10848,7 +10866,7 @@ function getPolarRange(props, axis) {
10848
10866
 
10849
10867
  /**
10850
10868
  * creates an object with some keys excluded
10851
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
10869
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
10852
10870
  * @param {Object} originalObject: created object will be based on this object
10853
10871
  * @param {Array<String>} ks: an array of keys to omit from the new object
10854
10872
  * @returns {Object} new object with same properties as originalObject
@@ -10861,6 +10879,7 @@ function omit(originalObject) {
10861
10879
  var newObject = {};
10862
10880
 
10863
10881
  for (var key in originalObject) {
10882
+ // @ts-expect-error String is not assignable to Key
10864
10883
  if (ks.indexOf(key) >= 0) {
10865
10884
  continue;
10866
10885
  }
@@ -11093,7 +11112,9 @@ function reduceChildren(children, iteratee) {
11093
11112
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11094
11113
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
11095
11114
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
11096
- return memo.concat(item);
11115
+ return (// @ts-expect-error These defaults are hard to type
11116
+ memo.concat(item)
11117
+ );
11097
11118
  };
11098
11119
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
11099
11120
 
@@ -11137,7 +11158,7 @@ function reduceChildren(children, iteratee) {
11137
11158
  /**
11138
11159
  * @param {Object} props: the props object
11139
11160
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
11140
- * children or nested children are hoizontal
11161
+ * children or nested children are horizontal
11141
11162
  */
11142
11163
 
11143
11164
  function isHorizontal(props) {
@@ -11160,6 +11181,7 @@ function isHorizontal(props) {
11160
11181
 
11161
11182
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
11162
11183
  }
11184
+ //# sourceMappingURL=helpers.js.map
11163
11185
 
11164
11186
  /***/ }),
11165
11187
 
@@ -11318,6 +11340,7 @@ var useAnimationState = function () {
11318
11340
  getProps: getProps
11319
11341
  };
11320
11342
  };
11343
+ //# sourceMappingURL=use-animation-state.js.map
11321
11344
 
11322
11345
  /***/ }),
11323
11346
 
@@ -11335,13 +11358,14 @@ __webpack_require__.r(__webpack_exports__);
11335
11358
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
11336
11359
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11337
11360
 
11338
- var usePreviousProps = function (props) {
11361
+ function usePreviousProps(props) {
11339
11362
  var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
11340
11363
  react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
11341
11364
  ref.current = props;
11342
11365
  });
11343
- return ref.current || {};
11344
- };
11366
+ return ref.current;
11367
+ }
11368
+ //# sourceMappingURL=use-previous-props.js.map
11345
11369
 
11346
11370
  /***/ }),
11347
11371
 
@@ -11365,7 +11389,6 @@ __webpack_require__.r(__webpack_exports__);
11365
11389
  /* harmony export */ "isRecord": () => (/* binding */ isRecord),
11366
11390
  /* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
11367
11391
  /* harmony export */ });
11368
- /* eslint-disable func-style */
11369
11392
  var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
11370
11393
  var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
11371
11394
  var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
@@ -11386,15 +11409,16 @@ function isMap(x) {
11386
11409
  return !!(x && x[IMMUTABLE_MAP]);
11387
11410
  }
11388
11411
  function shallowToJS(x, whitelist) {
11389
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
11412
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
11390
11413
  if (whitelist && whitelist[key]) {
11391
11414
  curr = shallowToJS(curr);
11392
11415
  }
11393
11416
 
11394
- prev[key] = curr;
11395
- return prev;
11417
+ result[key] = curr;
11418
+ return result;
11396
11419
  }, isList(x) ? [] : {}) : x;
11397
11420
  }
11421
+ //# sourceMappingURL=immutable.js.map
11398
11422
 
11399
11423
  /***/ }),
11400
11424
 
@@ -11413,7 +11437,6 @@ __webpack_require__.r(__webpack_exports__);
11413
11437
 
11414
11438
  /* eslint-disable no-console */
11415
11439
  // TODO: Use "warning" npm module like React is switching to.
11416
- // eslint-disable-next-line func-style
11417
11440
  function warn(message) {
11418
11441
  if (true) {
11419
11442
  if (console && console.warn) {
@@ -11421,6 +11444,7 @@ function warn(message) {
11421
11444
  }
11422
11445
  }
11423
11446
  }
11447
+ //# sourceMappingURL=log.js.map
11424
11448
 
11425
11449
  /***/ }),
11426
11450
 
@@ -11448,12 +11472,10 @@ __webpack_require__.r(__webpack_exports__);
11448
11472
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
11449
11473
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
11450
11474
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
11451
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
11452
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
11453
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
11454
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11455
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
11456
-
11475
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
11476
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11477
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
11478
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
11457
11479
 
11458
11480
 
11459
11481
 
@@ -11461,6 +11483,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11461
11483
 
11462
11484
 
11463
11485
 
11486
+
11487
+
11464
11488
  /**
11465
11489
  * Return a new validator based on `validator` but with the option to chain
11466
11490
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -11468,30 +11492,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11468
11492
  * @param {Function} validator Validation function.
11469
11493
  * @returns {Function} Validator with `isRequired` option.
11470
11494
  */
11471
-
11472
11495
  var makeChainable = function (validator) {
11473
- /* eslint-disable max-params */
11474
- var _chainable = function (isRequired, props, propName, componentName) {
11475
- var value = props[propName];
11496
+ var createChainable = function (isRequired) {
11497
+ return function (props, propName, componentName) {
11498
+ var value = props[propName];
11476
11499
 
11477
- if (value === undefined || value === null) {
11478
- if (isRequired) {
11479
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
11480
- }
11500
+ if (value === undefined || value === null) {
11501
+ if (isRequired) {
11502
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
11503
+ }
11481
11504
 
11482
- return null;
11483
- }
11505
+ return null;
11506
+ }
11484
11507
 
11485
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
11486
- rest[_key - 4] = arguments[_key];
11487
- }
11508
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
11509
+ rest[_key - 3] = arguments[_key];
11510
+ }
11488
11511
 
11489
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
11512
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
11513
+ };
11490
11514
  };
11491
11515
 
11492
- var chainable = _chainable.bind(null, false);
11493
-
11494
- chainable.isRequired = _chainable.bind(null, true);
11516
+ var chainable = Object.assign(createChainable(false), {
11517
+ isRequired: createChainable(true)
11518
+ });
11495
11519
  return chainable;
11496
11520
  };
11497
11521
 
@@ -11521,7 +11545,7 @@ var getConstructor = function (value) {
11521
11545
  };
11522
11546
  /**
11523
11547
  * Get the name of the constructor used to create `value`, using
11524
- * `Object.protoype.toString`. If the value is null or undefined, return
11548
+ * `Object.prototype.toString`. If the value is null or undefined, return
11525
11549
  * "null" or "undefined", respectively.
11526
11550
  * @param {*} value Instance to return the constructor name of.
11527
11551
  * @returns {String} Name of the constructor.
@@ -11551,10 +11575,11 @@ function deprecated(propType, explanation) {
11551
11575
  var value = props[propName];
11552
11576
 
11553
11577
  if (value !== null && value !== undefined) {
11554
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
11578
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
11555
11579
  }
11556
11580
 
11557
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
11581
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
11582
+ return null;
11558
11583
  };
11559
11584
  }
11560
11585
  /**
@@ -11573,7 +11598,7 @@ function allOfType(validators) {
11573
11598
 
11574
11599
  return validators.reduce(function (result, validator) {
11575
11600
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
11576
- }, undefined);
11601
+ }, null);
11577
11602
  });
11578
11603
  }
11579
11604
  /**
@@ -11587,7 +11612,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
11587
11612
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
11588
11613
  }
11589
11614
 
11590
- return undefined;
11615
+ return null;
11591
11616
  });
11592
11617
  /**
11593
11618
  * Check that the value is an integer.
@@ -11600,7 +11625,7 @@ var integer = makeChainable(function (props, propName, componentName) {
11600
11625
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
11601
11626
  }
11602
11627
 
11603
- return undefined;
11628
+ return null;
11604
11629
  });
11605
11630
  /**
11606
11631
  * Check that the value is greater than zero.
@@ -11613,7 +11638,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
11613
11638
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
11614
11639
  }
11615
11640
 
11616
- return undefined;
11641
+ return null;
11617
11642
  });
11618
11643
  /**
11619
11644
  * Check that the value is an Array of two unique values.
@@ -11626,32 +11651,20 @@ var domain = makeChainable(function (props, propName, componentName) {
11626
11651
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
11627
11652
  }
11628
11653
 
11629
- return undefined;
11654
+ return null;
11630
11655
  });
11631
11656
  /**
11632
11657
  * Check that the value looks like a d3 `scale` function.
11633
11658
  */
11634
11659
 
11635
11660
  var scale = makeChainable(function (props, propName, componentName) {
11636
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
11637
-
11638
- var validScale = function (scl) {
11639
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
11640
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
11641
- } else if (typeof scl === "string") {
11642
- return supportedScaleStrings.indexOf(scl) !== -1;
11643
- }
11644
-
11645
- return false;
11646
- };
11647
-
11648
11661
  var value = props[propName];
11649
11662
 
11650
- if (!validScale(value)) {
11663
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
11651
11664
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
11652
11665
  }
11653
11666
 
11654
- return undefined;
11667
+ return null;
11655
11668
  });
11656
11669
  /**
11657
11670
  * Check that an array contains items of the same type.
@@ -11665,7 +11678,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
11665
11678
  }
11666
11679
 
11667
11680
  if (values.length < 2) {
11668
- return undefined;
11681
+ return null;
11669
11682
  }
11670
11683
 
11671
11684
  var comparisonConstructor = getConstructor(values[0]);
@@ -11680,7 +11693,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
11680
11693
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
11681
11694
  }
11682
11695
 
11683
- return undefined;
11696
+ return null;
11684
11697
  });
11685
11698
  /**
11686
11699
  * Check that array prop length matches props.data.length
@@ -11691,7 +11704,7 @@ var matchDataLength = makeChainable(function (props, propName) {
11691
11704
  return new Error("Length of data and ".concat(propName, " arrays must match."));
11692
11705
  }
11693
11706
 
11694
- return undefined;
11707
+ return null;
11695
11708
  });
11696
11709
  /**
11697
11710
  * Check that the value is a regular expression
@@ -11702,8 +11715,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
11702
11715
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
11703
11716
  }
11704
11717
 
11705
- return undefined;
11718
+ return null;
11706
11719
  });
11720
+ //# sourceMappingURL=prop-types.js.map
11707
11721
 
11708
11722
  /***/ }),
11709
11723
 
@@ -11721,7 +11735,8 @@ __webpack_require__.r(__webpack_exports__);
11721
11735
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
11722
11736
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
11723
11737
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
11724
- /* harmony export */ "getType": () => (/* binding */ getType)
11738
+ /* harmony export */ "getType": () => (/* binding */ getType),
11739
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
11725
11740
  /* harmony export */ });
11726
11741
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
11727
11742
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -11739,8 +11754,9 @@ __webpack_require__.r(__webpack_exports__);
11739
11754
 
11740
11755
 
11741
11756
 
11742
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
11757
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
11743
11758
 
11759
+ // Private Functions
11744
11760
  function toNewName(scale) {
11745
11761
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
11746
11762
  var capitalize = function (s) {
@@ -11810,7 +11826,13 @@ function getScaleTypeFromData(props, axis) {
11810
11826
 
11811
11827
 
11812
11828
  function getScaleFromName(name) {
11813
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
11829
+ if (validScale(name)) {
11830
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
11831
+
11832
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
11833
+ }
11834
+
11835
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
11814
11836
  }
11815
11837
  function getBaseScale(props, axis) {
11816
11838
  var scale = getScaleFromProps(props, axis);
@@ -11820,7 +11842,7 @@ function getBaseScale(props, axis) {
11820
11842
  }
11821
11843
 
11822
11844
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
11823
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
11845
+ return getScaleFromName(defaultScale);
11824
11846
  }
11825
11847
  function getDefaultScale() {
11826
11848
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -11833,7 +11855,7 @@ function getScaleFromProps(props, axis) {
11833
11855
  var scale = props.scale[axis] || props.scale;
11834
11856
 
11835
11857
  if (validScale(scale)) {
11836
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
11858
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
11837
11859
  }
11838
11860
 
11839
11861
  return undefined;
@@ -11868,6 +11890,7 @@ function getType(scale) {
11868
11890
  })[0];
11869
11891
  return scaleType ? scaleType.name : undefined;
11870
11892
  }
11893
+ //# sourceMappingURL=scale.js.map
11871
11894
 
11872
11895
  /***/ }),
11873
11896
 
@@ -11883,8 +11906,6 @@ __webpack_require__.r(__webpack_exports__);
11883
11906
  /* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
11884
11907
  /* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
11885
11908
  /* harmony export */ });
11886
- /* eslint-disable func-style */
11887
-
11888
11909
  /**
11889
11910
  * Given an object with CSS/SVG transform definitions, return the string value
11890
11911
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -11941,6 +11962,7 @@ function getColorScale(name) {
11941
11962
  };
11942
11963
  return name ? scales[name] : scales.grayscale;
11943
11964
  }
11965
+ //# sourceMappingURL=style.js.map
11944
11966
 
11945
11967
  /***/ }),
11946
11968
 
@@ -11971,6 +11993,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
11971
11993
  });
11972
11994
  TimerContext.displayName = "TimerContext";
11973
11995
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
11996
+ //# sourceMappingURL=timer-context.js.map
11974
11997
 
11975
11998
  /***/ }),
11976
11999
 
@@ -11996,11 +12019,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
11996
12019
 
11997
12020
  var Timer = /*#__PURE__*/function () {
11998
12021
  function Timer() {
12022
+ var _this = this;
12023
+
11999
12024
  _classCallCheck(this, Timer);
12000
12025
 
12026
+ this.shouldAnimate = void 0;
12027
+ this.subscribers = void 0;
12028
+ this.activeSubscriptions = void 0;
12029
+ this.timer = void 0;
12030
+
12031
+ this.loop = function () {
12032
+ _this.subscribers.forEach(function (s) {
12033
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
12034
+ });
12035
+ };
12036
+
12001
12037
  this.shouldAnimate = true;
12002
12038
  this.subscribers = [];
12003
- this.loop = this.loop.bind(this);
12004
12039
  this.timer = null;
12005
12040
  this.activeSubscriptions = 0;
12006
12041
  }
@@ -12015,13 +12050,6 @@ var Timer = /*#__PURE__*/function () {
12015
12050
  value: function resumeAnimation() {
12016
12051
  this.shouldAnimate = true;
12017
12052
  }
12018
- }, {
12019
- key: "loop",
12020
- value: function loop() {
12021
- this.subscribers.forEach(function (s) {
12022
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
12023
- });
12024
- }
12025
12053
  }, {
12026
12054
  key: "start",
12027
12055
  value: function start() {
@@ -12068,6 +12096,7 @@ var Timer = /*#__PURE__*/function () {
12068
12096
  }();
12069
12097
 
12070
12098
 
12099
+ //# sourceMappingURL=timer.js.map
12071
12100
 
12072
12101
  /***/ }),
12073
12102
 
@@ -12158,7 +12187,7 @@ function getChildData(child) {
12158
12187
  }
12159
12188
  /**
12160
12189
  * If a parent component has animation enabled, calculate the transitions
12161
- * for any data of any child component that supports data transitions
12190
+ * for any data of any child component that supports data transitions.
12162
12191
  * Data transitions are defined as any two datasets where data nodes exist
12163
12192
  * in the first set and not the second, in the second and not the first,
12164
12193
  * or both.
@@ -12287,7 +12316,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
12287
12316
 
12288
12317
  if (exitingNodes) {
12289
12318
  // After the exit transition occurs, trigger the animations for
12290
- // nodes that are neither exiting or entering.
12319
+ // nodes that are neither exiting nor entering.
12291
12320
  animate.onEnd = cb;
12292
12321
  var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
12293
12322
 
@@ -12357,7 +12386,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
12357
12386
  * and its index in the parent's children array.
12358
12387
  *
12359
12388
  * In particular, this will include an `animate` object that is set appropriately
12360
- * so that each child will be synchoronized for each stage of a transition
12389
+ * so that each child will be synchronized for each stage of a transition
12361
12390
  * animation. It will also include a transformed `data` object, where each datum
12362
12391
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
12363
12392
  * functions.
@@ -12502,6 +12531,7 @@ function getTransitionPropsFactory(props, state, setState) {
12502
12531
  };
12503
12532
  };
12504
12533
  }
12534
+ //# sourceMappingURL=transitions.js.map
12505
12535
 
12506
12536
  /***/ }),
12507
12537
 
@@ -12540,7 +12570,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12540
12570
 
12541
12571
  /*
12542
12572
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
12543
- The startsWidth array will contain the start of any accepted user-prop that
12573
+ The startsWidth array will contain the start of any accepted user-prop that
12544
12574
  starts with these characters.
12545
12575
  The exactMatch will contain a list of exact prop names that are accepted.
12546
12576
  */
@@ -12549,6 +12579,7 @@ var USER_PROPS_SAFELIST = {
12549
12579
  startsWith: ["data-", "aria-"],
12550
12580
  exactMatch: []
12551
12581
  };
12582
+
12552
12583
  /**
12553
12584
  * doesPropStartWith: Function that takes a prop's key and runs it against all
12554
12585
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -12557,7 +12588,6 @@ var USER_PROPS_SAFELIST = {
12557
12588
  * @returns {Boolean}: returns true if the key starts with an option or false if
12558
12589
  * otherwise
12559
12590
  */
12560
-
12561
12591
  var doesPropStartWith = function (key) {
12562
12592
  var startsWith = false;
12563
12593
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -12634,14 +12664,15 @@ var getSafeUserProps = function (props) {
12634
12664
  /**
12635
12665
  * Wraps a component and adds safe user props
12636
12666
  *
12637
- * @param {ReactNode} component: parent component
12667
+ * @param {ReactElement} component: parent component
12638
12668
  * @param {Object} props: props to be filtered
12639
- * @returns {ReactNode} modified component
12669
+ * @returns {ReactElement} modified component
12640
12670
  */
12641
12671
 
12642
12672
  var withSafeUserProps = function (component, props) {
12643
12673
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
12644
12674
  };
12675
+ //# sourceMappingURL=user-props.js.map
12645
12676
 
12646
12677
  /***/ }),
12647
12678
 
@@ -12854,7 +12885,7 @@ function getData(props, childComponents) {
12854
12885
  }
12855
12886
 
12856
12887
  childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
12857
- return getDataFromChildren(childComponents);
12888
+ return getDataFromChildren(props, childComponents);
12858
12889
  }
12859
12890
  function getWidth(props, groupLength, seriesLength) {
12860
12891
  var datasets = props.datasets,
@@ -12916,7 +12947,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
12916
12947
  function getDomainFromChildren(props, axis, childComponents) {
12917
12948
  // eslint-disable-line max-statements, complexity, max-len
12918
12949
  var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
12919
- var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props, axis) : undefined;
12950
+ var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
12920
12951
  var polar = props.polar,
12921
12952
  startAngle = props.startAngle,
12922
12953
  endAngle = props.endAngle,
@@ -13150,6 +13181,7 @@ function getCategories(props, childComponents, allStrings) {
13150
13181
  y: yCategories.length > 0 ? yCategories : undefined
13151
13182
  };
13152
13183
  }
13184
+ //# sourceMappingURL=wrapper.js.map
13153
13185
 
13154
13186
  /***/ }),
13155
13187
 
@@ -13226,7 +13258,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13226
13258
 
13227
13259
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13228
13260
 
13229
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13261
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13230
13262
 
13231
13263
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13232
13264
 
@@ -13236,15 +13268,16 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
13236
13268
 
13237
13269
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13238
13270
 
13239
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13240
-
13241
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13242
-
13271
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13243
13272
 
13244
13273
 
13245
13274
 
13246
13275
 
13247
13276
 
13277
+ // DISCLAIMER:
13278
+ // This file is not currently tested, and it is first on the list of files
13279
+ // to refactor in our current refactoring effort. Please do not make changes
13280
+ // to this file without manual testing and/or refactoring and adding tests.
13248
13281
 
13249
13282
  var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
13250
13283
  _inherits(VictorySharedEvents, _React$Component);
@@ -13528,11 +13561,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
13528
13561
  return VictorySharedEvents;
13529
13562
  }((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
13530
13563
 
13531
- _defineProperty(VictorySharedEvents, "displayName", "VictorySharedEvents");
13532
-
13533
- _defineProperty(VictorySharedEvents, "role", "shared-event-wrapper");
13534
-
13535
- _defineProperty(VictorySharedEvents, "propTypes", {
13564
+ VictorySharedEvents.displayName = "VictorySharedEvents";
13565
+ VictorySharedEvents.role = "shared-event-wrapper";
13566
+ VictorySharedEvents.propTypes = {
13536
13567
  children: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)]),
13537
13568
  container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
13538
13569
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
@@ -13550,15 +13581,13 @@ _defineProperty(VictorySharedEvents, "propTypes", {
13550
13581
  target: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)])
13551
13582
  })),
13552
13583
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
13553
- });
13554
-
13555
- _defineProperty(VictorySharedEvents, "defaultProps", {
13584
+ };
13585
+ VictorySharedEvents.defaultProps = {
13556
13586
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
13557
- });
13558
-
13559
- _defineProperty(VictorySharedEvents, "contextType", victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]);
13560
-
13587
+ };
13588
+ VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
13561
13589
 
13590
+ //# sourceMappingURL=victory-shared-events.js.map
13562
13591
 
13563
13592
  /***/ }),
13564
13593