@bigbinary/neetoui 5.2.20 → 5.2.21

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.
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as React$5 from 'react';
2
- import React__default, { createContext, useLayoutEffect, useEffect, useContext, useRef, useInsertionEffect as useInsertionEffect$1, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useId as useId$1, useState, cloneElement as cloneElement$1, Children, isValidElement, useSyncExternalStore, Fragment, Component } from 'react';
3
- import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
2
+ import React__default, { createContext, useLayoutEffect, useEffect, useContext, useRef, useInsertionEffect as useInsertionEffect$1, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useId as useId$1, useState, cloneElement as cloneElement$1, Children, isValidElement, useSyncExternalStore, Fragment, Component, memo as memo$1 } from 'react';
3
+ import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock as Clock$1, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
4
4
  import { Link, NavLink, useHistory } from 'react-router-dom';
5
- import ReactDOM, { createPortal } from 'react-dom';
5
+ import ReactDOM, { createPortal, findDOMNode as findDOMNode$1 } from 'react-dom';
6
6
  import _DatePicker from 'antd/lib/date-picker';
7
7
  import _ConfigProvider from 'antd/lib/config-provider';
8
8
  import _Slider from 'antd/lib/slider';
@@ -2183,9 +2183,9 @@ const MotionContext = createContext({});
2183
2183
  */
2184
2184
  const PresenceContext = createContext(null);
2185
2185
 
2186
- const isBrowser$6 = typeof document !== "undefined";
2186
+ const isBrowser$9 = typeof document !== "undefined";
2187
2187
 
2188
- const useIsomorphicLayoutEffect$2 = isBrowser$6 ? useLayoutEffect : useEffect;
2188
+ const useIsomorphicLayoutEffect$3 = isBrowser$9 ? useLayoutEffect : useEffect;
2189
2189
 
2190
2190
  const LazyContext = createContext({ strict: false });
2191
2191
 
@@ -2220,7 +2220,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
2220
2220
  * was present on initial render - it will be deleted after this.
2221
2221
  */
2222
2222
  const canHandoff = useRef(Boolean(window.HandoffAppearAnimations));
2223
- useIsomorphicLayoutEffect$2(() => {
2223
+ useIsomorphicLayoutEffect$3(() => {
2224
2224
  if (!visualElement)
2225
2225
  return;
2226
2226
  visualElement.render();
@@ -2411,7 +2411,7 @@ function createMotionComponent({ preloadedFeatures, createVisualElement, useRend
2411
2411
  const { isStatic } = configAndProps;
2412
2412
  const context = useCreateMotionContext(props);
2413
2413
  const visualState = useVisualState(props, isStatic);
2414
- if (!isStatic && isBrowser$6) {
2414
+ if (!isStatic && isBrowser$9) {
2415
2415
  /**
2416
2416
  * Create a VisualElement for this component. A VisualElement provides a common
2417
2417
  * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as
@@ -2676,12 +2676,12 @@ const sanitize = (v) => Math.round(v * 100000) / 100000;
2676
2676
  const floatRegex = /(-)?([\d]*\.?[\d])+/g;
2677
2677
  const colorRegex = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi;
2678
2678
  const singleColorRegex = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
2679
- function isString$3(v) {
2679
+ function isString$4(v) {
2680
2680
  return typeof v === "string";
2681
2681
  }
2682
2682
 
2683
2683
  const createUnitType = (unit) => ({
2684
- test: (v) => isString$3(v) && v.endsWith(unit) && v.split(" ").length === 1,
2684
+ test: (v) => isString$4(v) && v.endsWith(unit) && v.split(" ").length === 1,
2685
2685
  parse: parseFloat,
2686
2686
  transform: (v) => `${v}${unit}`,
2687
2687
  });
@@ -4214,11 +4214,11 @@ const easingDefinitionToFunction = (definition) => {
4214
4214
  * but false if a number or multiple colors
4215
4215
  */
4216
4216
  const isColorString = (type, testProp) => (v) => {
4217
- return Boolean((isString$3(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
4217
+ return Boolean((isString$4(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
4218
4218
  (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
4219
4219
  };
4220
4220
  const splitColor = (aName, bName, cName) => (v) => {
4221
- if (!isString$3(v))
4221
+ if (!isString$4(v))
4222
4222
  return v;
4223
4223
  const [a, b, c, alpha] = v.match(floatRegex);
4224
4224
  return {
@@ -4314,7 +4314,7 @@ const color = {
4314
4314
  }
4315
4315
  },
4316
4316
  transform: (v) => {
4317
- return isString$3(v)
4317
+ return isString$4(v)
4318
4318
  ? v
4319
4319
  : v.hasOwnProperty("red")
4320
4320
  ? rgba.transform(v)
@@ -4420,7 +4420,7 @@ const mixColor = (from, to) => {
4420
4420
  function test(v) {
4421
4421
  var _a, _b;
4422
4422
  return (isNaN(v) &&
4423
- isString$3(v) &&
4423
+ isString$4(v) &&
4424
4424
  (((_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) || 0) +
4425
4425
  (((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >
4426
4426
  0);
@@ -4733,7 +4733,7 @@ function calcGeneratorVelocity(resolveValue, t, current) {
4733
4733
  return velocityPerSecond(current - resolveValue(prevT), t - prevT);
4734
4734
  }
4735
4735
 
4736
- const safeMin = 0.001;
4736
+ const safeMin$1 = 0.001;
4737
4737
  const minDuration = 0.01;
4738
4738
  const maxDuration$1 = 10.0;
4739
4739
  const minDamping = 0.05;
@@ -4758,7 +4758,7 @@ function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, })
4758
4758
  const a = exponentialDecay - velocity;
4759
4759
  const b = calcAngularFreq(undampedFreq, dampingRatio);
4760
4760
  const c = Math.exp(-delta);
4761
- return safeMin - (a / b) * c;
4761
+ return safeMin$1 - (a / b) * c;
4762
4762
  };
4763
4763
  derivative = (undampedFreq) => {
4764
4764
  const exponentialDecay = undampedFreq * dampingRatio;
@@ -4767,7 +4767,7 @@ function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, })
4767
4767
  const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;
4768
4768
  const f = Math.exp(-delta);
4769
4769
  const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);
4770
- const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;
4770
+ const factor = -envelope(undampedFreq) + safeMin$1 > 0 ? -1 : 1;
4771
4771
  return (factor * ((d - e) * f)) / g;
4772
4772
  };
4773
4773
  }
@@ -4778,7 +4778,7 @@ function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, })
4778
4778
  envelope = (undampedFreq) => {
4779
4779
  const a = Math.exp(-undampedFreq * duration);
4780
4780
  const b = (undampedFreq - velocity) * duration + 1;
4781
- return -safeMin + a * b;
4781
+ return -safeMin$1 + a * b;
4782
4782
  };
4783
4783
  derivative = (undampedFreq) => {
4784
4784
  const a = Math.exp(-undampedFreq * duration);
@@ -10303,7 +10303,7 @@ const checkAndConvertChangedValueTypes = (visualElement, target, origin = {}, tr
10303
10303
  // Reapply original values
10304
10304
  visualElement.render();
10305
10305
  // Restore scroll position
10306
- if (isBrowser$6 && scrollY !== null) {
10306
+ if (isBrowser$9 && scrollY !== null) {
10307
10307
  window.scrollTo({ top: scrollY });
10308
10308
  }
10309
10309
  return { target: convertedTarget, transitionEnd };
@@ -10342,7 +10342,7 @@ const hasReducedMotionListener = { current: false };
10342
10342
 
10343
10343
  function initPrefersReducedMotion() {
10344
10344
  hasReducedMotionListener.current = true;
10345
- if (!isBrowser$6)
10345
+ if (!isBrowser$9)
10346
10346
  return;
10347
10347
  if (window.matchMedia) {
10348
10348
  const motionMediaQuery = window.matchMedia("(prefers-reduced-motion)");
@@ -11028,7 +11028,7 @@ const motion = /*@__PURE__*/ createMotionProxy((Component, config) => createDomM
11028
11028
 
11029
11029
  function useIsMounted() {
11030
11030
  const isMounted = useRef(false);
11031
- useIsomorphicLayoutEffect$2(() => {
11031
+ useIsomorphicLayoutEffect$3(() => {
11032
11032
  isMounted.current = true;
11033
11033
  return () => {
11034
11034
  isMounted.current = false;
@@ -11238,7 +11238,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
11238
11238
  // If this is the initial component render, just deal with logic surrounding whether
11239
11239
  // we play onMount animations or not.
11240
11240
  const isInitialRender = useRef(true);
11241
- useIsomorphicLayoutEffect$2(() => {
11241
+ useIsomorphicLayoutEffect$3(() => {
11242
11242
  isInitialRender.current = false;
11243
11243
  updateChildLookup(filteredChildren, allChildren);
11244
11244
  presentChildren.current = childrenToRender;
@@ -11342,14 +11342,14 @@ function _objectWithoutProperties$1(source, excluded) {
11342
11342
  return target;
11343
11343
  }
11344
11344
 
11345
- var _excluded$H = ["open", "children", "className"];
11345
+ var _excluded$I = ["open", "children", "className"];
11346
11346
  var Collapse = function Collapse(_ref) {
11347
11347
  var _ref$open = _ref.open,
11348
11348
  open = _ref$open === void 0 ? false : _ref$open,
11349
11349
  children = _ref.children,
11350
11350
  _ref$className = _ref.className,
11351
11351
  className = _ref$className === void 0 ? "" : _ref$className,
11352
- otherProps = _objectWithoutProperties$1(_ref, _excluded$H);
11352
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$I);
11353
11353
  return /*#__PURE__*/React__default.createElement(AnimatePresence, null, open && /*#__PURE__*/React__default.createElement(motion.div, _extends$4({
11354
11354
  animate: {
11355
11355
  opacity: 1,
@@ -11667,10 +11667,10 @@ var ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES = {
11667
11667
  controlItemBgHover: "rgb(var(--neeto-ui-gray-100))"
11668
11668
  };
11669
11669
 
11670
- var _excluded$G = ["children"];
11670
+ var _excluded$H = ["children"];
11671
11671
  var Portal$1 = function Portal(_ref, ref) {
11672
11672
  var children = _ref.children,
11673
- otherProps = _objectWithoutProperties$1(_ref, _excluded$G);
11673
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$H);
11674
11674
  return /*#__PURE__*/React__default.createElement("div", _extends$4({
11675
11675
  "data-cy": "neeto-backdrop",
11676
11676
  "data-testid": "neeto-backdrop",
@@ -13815,8 +13815,8 @@ function bindGlobalEventListeners() {
13815
13815
  window.addEventListener('blur', onWindowBlur);
13816
13816
  }
13817
13817
 
13818
- var isBrowser$5 = typeof window !== 'undefined' && typeof document !== 'undefined';
13819
- var isIE11 = isBrowser$5 ? // @ts-ignore
13818
+ var isBrowser$8 = typeof window !== 'undefined' && typeof document !== 'undefined';
13819
+ var isIE11 = isBrowser$8 ? // @ts-ignore
13820
13820
  !!window.msCrypto : false;
13821
13821
 
13822
13822
  var pluginProps = {
@@ -15266,7 +15266,7 @@ function _objectWithoutPropertiesLoose$4(source, excluded) {
15266
15266
  return target;
15267
15267
  }
15268
15268
 
15269
- var isBrowser$4 = typeof window !== 'undefined' && typeof document !== 'undefined';
15269
+ var isBrowser$7 = typeof window !== 'undefined' && typeof document !== 'undefined';
15270
15270
  function preserveRef(ref, node) {
15271
15271
  if (ref) {
15272
15272
  if (typeof ref === 'function') {
@@ -15279,7 +15279,7 @@ function preserveRef(ref, node) {
15279
15279
  }
15280
15280
  }
15281
15281
  function ssrSafeCreateDiv() {
15282
- return isBrowser$4 && document.createElement('div');
15282
+ return isBrowser$7 && document.createElement('div');
15283
15283
  }
15284
15284
  function toDataAttributes(attrs) {
15285
15285
  var dataAttrs = {
@@ -15342,7 +15342,7 @@ function deepPreserveProps(instanceProps, componentProps) {
15342
15342
  });
15343
15343
  }
15344
15344
 
15345
- var useIsomorphicLayoutEffect$1 = isBrowser$4 ? useLayoutEffect : useEffect;
15345
+ var useIsomorphicLayoutEffect$2 = isBrowser$7 ? useLayoutEffect : useEffect;
15346
15346
  function useMutableBox(initialValue) {
15347
15347
  // Using refs instead of state as it's recommended to not store imperative
15348
15348
  // values in state due to memory problems in React(?)
@@ -15481,7 +15481,7 @@ function TippyGenerator(tippy) {
15481
15481
 
15482
15482
  var deps = [reference].concat(children ? [children.type] : []); // CREATE
15483
15483
 
15484
- useIsomorphicLayoutEffect$1(function () {
15484
+ useIsomorphicLayoutEffect$2(function () {
15485
15485
  var element = reference;
15486
15486
 
15487
15487
  if (reference && reference.hasOwnProperty('current')) {
@@ -15516,7 +15516,7 @@ function TippyGenerator(tippy) {
15516
15516
  };
15517
15517
  }, deps); // UPDATE
15518
15518
 
15519
- useIsomorphicLayoutEffect$1(function () {
15519
+ useIsomorphicLayoutEffect$2(function () {
15520
15520
  var _instance$popperInsta;
15521
15521
 
15522
15522
  // Prevent this effect from running on 1st render
@@ -15552,7 +15552,7 @@ function TippyGenerator(tippy) {
15552
15552
  });
15553
15553
  }
15554
15554
  });
15555
- useIsomorphicLayoutEffect$1(function () {
15555
+ useIsomorphicLayoutEffect$2(function () {
15556
15556
  var _instance$props$poppe;
15557
15557
 
15558
15558
  if (!render) {
@@ -15624,7 +15624,7 @@ var index$1 = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
15624
15624
 
15625
15625
  var ARROW = "<svg width='12' height='6' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 5H0.926697L3.95208 1.63847C4.74227 0.760478 6.11722 0.754951 6.91445 1.62656L10 5Z' /></svg>";
15626
15626
 
15627
- var _excluded$F = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
15627
+ var _excluded$G = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
15628
15628
  var Tooltip = function Tooltip(_ref) {
15629
15629
  var content = _ref.content,
15630
15630
  children = _ref.children,
@@ -15640,7 +15640,7 @@ var Tooltip = function Tooltip(_ref) {
15640
15640
  hideAfter = _ref$hideAfter === void 0 ? -1 : _ref$hideAfter,
15641
15641
  _ref$hideOnTargetExit = _ref.hideOnTargetExit,
15642
15642
  hideOnTargetExit = _ref$hideOnTargetExit === void 0 ? false : _ref$hideOnTargetExit,
15643
- otherProps = _objectWithoutProperties$1(_ref, _excluded$F);
15643
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$G);
15644
15644
  var _useState = useState(null),
15645
15645
  _useState2 = _slicedToArray$2(_useState, 2),
15646
15646
  instance = _useState2[0],
@@ -15687,7 +15687,7 @@ var Tooltip = function Tooltip(_ref) {
15687
15687
  }, localProps, otherProps), /*#__PURE__*/React__default.isValidElement(children) ? children : /*#__PURE__*/React__default.createElement("span", null, children));
15688
15688
  };
15689
15689
 
15690
- var _excluded$E = ["icon", "iconPosition", "iconSize", "label", "loading", "onClick", "to", "type", "style", "fullWidth", "className", "disabled", "size", "href", "tooltipProps", "children"];
15690
+ var _excluded$F = ["icon", "iconPosition", "iconSize", "label", "loading", "onClick", "to", "type", "style", "fullWidth", "className", "disabled", "size", "href", "tooltipProps", "children"];
15691
15691
  var BUTTON_STYLES = {
15692
15692
  primary: "primary",
15693
15693
  secondary: "secondary",
@@ -15742,7 +15742,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
15742
15742
  _ref$tooltipProps = _ref.tooltipProps,
15743
15743
  tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
15744
15744
  children = _ref.children,
15745
- otherProps = _objectWithoutProperties$1(_ref, _excluded$E);
15745
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$F);
15746
15746
  var Parent = motion.button;
15747
15747
  var elementSpecificProps = {
15748
15748
  type: type
@@ -15832,33 +15832,33 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
15832
15832
  });
15833
15833
  Button.displayName = "Button";
15834
15834
 
15835
- var Divider = function Divider(props) {
15835
+ var Divider$1 = function Divider(props) {
15836
15836
  return /*#__PURE__*/React__default.createElement("li", _extends$4({
15837
15837
  className: "neeto-ui-dropdown__popup-divider"
15838
15838
  }, props));
15839
15839
  };
15840
15840
 
15841
- var _excluded$D = ["children", "className"];
15841
+ var _excluded$E = ["children", "className"];
15842
15842
  var Menu$2 = function Menu(_ref) {
15843
15843
  var children = _ref.children,
15844
15844
  className = _ref.className,
15845
- otherProps = _objectWithoutProperties$1(_ref, _excluded$D);
15845
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$E);
15846
15846
  return /*#__PURE__*/React__default.createElement("ul", _extends$4({
15847
15847
  className: classnames$1("neeto-ui-dropdown__popup-menu", className)
15848
15848
  }, otherProps), children);
15849
15849
  };
15850
15850
 
15851
- var _excluded$C = ["children", "className"];
15851
+ var _excluded$D = ["children", "className"];
15852
15852
  var MenuItem = function MenuItem(_ref) {
15853
15853
  var children = _ref.children,
15854
15854
  className = _ref.className,
15855
- otherProps = _objectWithoutProperties$1(_ref, _excluded$C);
15855
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$D);
15856
15856
  return /*#__PURE__*/React__default.createElement("li", _extends$4({
15857
15857
  className: classnames$1("neeto-ui-dropdown__popup-menu-item", className)
15858
15858
  }, otherProps), children);
15859
15859
  };
15860
15860
 
15861
- var _excluded$B = ["children", "className", "isActive", "isDisabled", "style", "prefix", "suffix", "type", "to", "href"];
15861
+ var _excluded$C = ["children", "className", "isActive", "isDisabled", "style", "prefix", "suffix", "type", "to", "href"];
15862
15862
  var ITEM_BTN_STYLES = {
15863
15863
  "default": "default",
15864
15864
  danger: "danger"
@@ -15883,7 +15883,7 @@ var MenuItemButton = function MenuItemButton(_ref) {
15883
15883
  to = _ref$to === void 0 ? "" : _ref$to,
15884
15884
  _ref$href = _ref.href,
15885
15885
  href = _ref$href === void 0 ? "" : _ref$href,
15886
- otherProps = _objectWithoutProperties$1(_ref, _excluded$B);
15886
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$C);
15887
15887
  var Parent, elementSpecificProps;
15888
15888
  if (to) {
15889
15889
  Parent = Link;
@@ -15917,7 +15917,7 @@ var MenuItemButton = function MenuItemButton(_ref) {
15917
15917
 
15918
15918
  MenuItem.Button = MenuItemButton;
15919
15919
 
15920
- var _excluded$A = ["style", "size"],
15920
+ var _excluded$B = ["style", "size"],
15921
15921
  _excluded2$4 = ["icon", "label", "isOpen", "onClose", "dropdownProps", "position", "children", "className", "buttonStyle", "buttonSize", "buttonProps", "customTarget", "disabled", "closeOnEsc", "closeOnSelect", "closeOnOutsideClick", "dropdownModifiers", "trigger", "strategy", "onClick"],
15922
15922
  _excluded3 = ["classNames"];
15923
15923
  var BTN_STYLES$1 = {
@@ -15999,7 +15999,7 @@ var Dropdown = function Dropdown(_ref2) {
15999
15999
  _ref2$buttonProps2 = _ref2$buttonProps === void 0 ? {} : _ref2$buttonProps,
16000
16000
  style = _ref2$buttonProps2.style,
16001
16001
  size = _ref2$buttonProps2.size,
16002
- buttonProps = _objectWithoutProperties$1(_ref2$buttonProps2, _excluded$A),
16002
+ buttonProps = _objectWithoutProperties$1(_ref2$buttonProps2, _excluded$B),
16003
16003
  customTarget = _ref2.customTarget,
16004
16004
  _ref2$disabled = _ref2.disabled,
16005
16005
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
@@ -16090,9 +16090,9 @@ var Dropdown = function Dropdown(_ref2) {
16090
16090
  };
16091
16091
  Dropdown.Menu = Menu$2;
16092
16092
  Dropdown.MenuItem = MenuItem;
16093
- Dropdown.Divider = Divider;
16093
+ Dropdown.Divider = Divider$1;
16094
16094
 
16095
- var _excluded$z = ["style", "size"];
16095
+ var _excluded$A = ["style", "size"];
16096
16096
  var BTN_STYLES = {
16097
16097
  primary: "primary",
16098
16098
  secondary: "secondary"
@@ -16117,7 +16117,7 @@ var ActionDropdown = function ActionDropdown(_ref) {
16117
16117
  _ref$buttonProps2 = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
16118
16118
  style = _ref$buttonProps2.style,
16119
16119
  size = _ref$buttonProps2.size,
16120
- buttonProps = _objectWithoutProperties$1(_ref$buttonProps2, _excluded$z),
16120
+ buttonProps = _objectWithoutProperties$1(_ref$buttonProps2, _excluded$A),
16121
16121
  _ref$dropdownProps = _ref.dropdownProps,
16122
16122
  dropdownProps = _ref$dropdownProps === void 0 ? {} : _ref$dropdownProps,
16123
16123
  _ref$className = _ref.className,
@@ -18540,7 +18540,7 @@ var Footer$1 = function Footer(_ref) {
18540
18540
  }, children);
18541
18541
  };
18542
18542
 
18543
- var _excluded$y = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
18543
+ var _excluded$z = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
18544
18544
  var FONT_WEIGHTS = {
18545
18545
  thin: "thin",
18546
18546
  extralight: "extralight",
@@ -18628,7 +18628,7 @@ var Typography = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
18628
18628
  textTransform = _ref.textTransform,
18629
18629
  _ref$className = _ref.className,
18630
18630
  className = _ref$className === void 0 ? "" : _ref$className,
18631
- otherProps = _objectWithoutProperties$1(_ref, _excluded$y);
18631
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$z);
18632
18632
  var Component = component ? COMPONENTS[component] : style ? DEFAULT_COMPONENTS[style] : "p";
18633
18633
  return /*#__PURE__*/React__default.createElement(Component, _extends$4({
18634
18634
  ref: ref,
@@ -18691,7 +18691,7 @@ var Header$1 = function Header(_ref) {
18691
18691
  }, description)));
18692
18692
  };
18693
18693
 
18694
- var _excluded$x = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
18694
+ var _excluded$y = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
18695
18695
  var SIZES$7 = {
18696
18696
  small: "small",
18697
18697
  medium: "medium",
@@ -18720,7 +18720,7 @@ var Modal = function Modal(_ref) {
18720
18720
  blockScrollOnMount = _ref$blockScrollOnMou === void 0 ? true : _ref$blockScrollOnMou,
18721
18721
  _ref$closeOnOutsideCl = _ref.closeOnOutsideClick,
18722
18722
  closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
18723
- otherProps = _objectWithoutProperties$1(_ref, _excluded$x);
18723
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$y);
18724
18724
  var _useState = useState(false),
18725
18725
  _useState2 = _slicedToArray$2(_useState, 2),
18726
18726
  hasTransitionCompleted = _useState2[0],
@@ -18884,7 +18884,7 @@ var FallbackAvatar = /*@__PURE__*/getDefaultExportFromCjs(build.exports);
18884
18884
  var COLOR_PALLETE = ["#ffb5a7", "#fcd5ce", "#f8edeb", "#f9dcc4", "#fec89a"];
18885
18885
  var AVATAR_VARIANT = "beam";
18886
18886
 
18887
- var _excluded$w = ["size", "user", "status", "onClick", "className", "showTooltip", "tooltipProps"];
18887
+ var _excluded$x = ["size", "user", "status", "onClick", "className", "showTooltip", "tooltipProps"];
18888
18888
  var SIZE = {
18889
18889
  small: 24,
18890
18890
  medium: 32,
@@ -18906,7 +18906,7 @@ var Avatar = function Avatar(_ref) {
18906
18906
  showTooltip = _ref$showTooltip === void 0 ? false : _ref$showTooltip,
18907
18907
  _ref$tooltipProps = _ref.tooltipProps,
18908
18908
  tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
18909
- otherProps = _objectWithoutProperties$1(_ref, _excluded$w);
18909
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$x);
18910
18910
  var _useState = useState(false),
18911
18911
  _useState2 = _slicedToArray$2(_useState, 2),
18912
18912
  isLoadingFailed = _useState2[0],
@@ -18965,7 +18965,7 @@ var Avatar = function Avatar(_ref) {
18965
18965
  })));
18966
18966
  };
18967
18967
 
18968
- var _excluded$v = ["icon", "style", "className", "children"];
18968
+ var _excluded$w = ["icon", "style", "className", "children"];
18969
18969
  var STYLES$2 = {
18970
18970
  info: "info",
18971
18971
  warning: "warning",
@@ -18980,7 +18980,7 @@ var Callout = function Callout(_ref) {
18980
18980
  _ref$className = _ref.className,
18981
18981
  className = _ref$className === void 0 ? "" : _ref$className,
18982
18982
  children = _ref.children,
18983
- otherProps = _objectWithoutProperties$1(_ref, _excluded$v);
18983
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$w);
18984
18984
  var Icon = icon;
18985
18985
  return /*#__PURE__*/React__default.createElement("div", _extends$4({
18986
18986
  className: classnames$1("neeto-ui-callout", _defineProperty$7({
@@ -19026,7 +19026,7 @@ function canUseDOM$1() {
19026
19026
  * @param deps
19027
19027
  */
19028
19028
 
19029
- var useIsomorphicLayoutEffect = /*#__PURE__*/canUseDOM$1() ? useLayoutEffect : useEffect;
19029
+ var useIsomorphicLayoutEffect$1 = /*#__PURE__*/canUseDOM$1() ? useLayoutEffect : useEffect;
19030
19030
 
19031
19031
  /*
19032
19032
  * Welcome to @reach/auto-id!
@@ -19113,7 +19113,7 @@ function useId(idFromProps) {
19113
19113
  id = _React$useState[0],
19114
19114
  setId = _React$useState[1];
19115
19115
 
19116
- useIsomorphicLayoutEffect(function () {
19116
+ useIsomorphicLayoutEffect$1(function () {
19117
19117
  if (id === null) {
19118
19118
  /*
19119
19119
  * Patch the ID after render. We do this in `useLayoutEffect` to avoid any
@@ -19138,7 +19138,7 @@ function useId(idFromProps) {
19138
19138
  return id != null ? String(id) : undefined;
19139
19139
  }
19140
19140
 
19141
- var _excluded$u = ["children", "className", "required", "helpIconProps"],
19141
+ var _excluded$v = ["children", "className", "required", "helpIconProps"],
19142
19142
  _excluded2$3 = ["onClick", "icon", "tooltipProps", "className"];
19143
19143
  var Label = function Label(_ref) {
19144
19144
  var children = _ref.children,
@@ -19148,7 +19148,7 @@ var Label = function Label(_ref) {
19148
19148
  required = _ref$required === void 0 ? false : _ref$required,
19149
19149
  _ref$helpIconProps = _ref.helpIconProps,
19150
19150
  helpIconProps = _ref$helpIconProps === void 0 ? null : _ref$helpIconProps,
19151
- otherProps = _objectWithoutProperties$1(_ref, _excluded$u);
19151
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$v);
19152
19152
  var _ref2 = helpIconProps || {},
19153
19153
  onClick = _ref2.onClick,
19154
19154
  icon = _ref2.icon,
@@ -19170,7 +19170,7 @@ var Label = function Label(_ref) {
19170
19170
  }, otherHelpIconProps)))));
19171
19171
  };
19172
19172
 
19173
- var _excluded$t = ["label", "error", "className", "required", "labelProps", "children"];
19173
+ var _excluded$u = ["label", "error", "className", "required", "labelProps", "children"];
19174
19174
  var Checkbox = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
19175
19175
  var _ref$label = _ref.label,
19176
19176
  label = _ref$label === void 0 ? "" : _ref$label,
@@ -19182,7 +19182,7 @@ var Checkbox = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
19182
19182
  required = _ref$required === void 0 ? false : _ref$required,
19183
19183
  labelProps = _ref.labelProps,
19184
19184
  children = _ref.children,
19185
- otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
19185
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$u);
19186
19186
  var id = useId(otherProps.id);
19187
19187
  var errorId = "error_".concat(id);
19188
19188
  var renderLabel = label || children;
@@ -20970,8 +20970,8 @@ var ColorPicker = function ColorPicker(_ref) {
20970
20970
  }, /*#__PURE__*/React__default.createElement(Palette, colorPaletteProps))));
20971
20971
  };
20972
20972
 
20973
- var _excluded$s = ["className", "label", "size", "dropdownClassName", "popupClassName", "dateFormat", "timeFormat", "onChange", "onOk", "picker", "showTime", "type", "nakedInput", "error", "defaultValue", "value", "labelProps", "required"];
20974
- var INPUT_SIZES$1 = {
20973
+ var _excluded$t = ["className", "label", "size", "dropdownClassName", "popupClassName", "dateFormat", "timeFormat", "onChange", "onOk", "picker", "showTime", "type", "nakedInput", "error", "defaultValue", "value", "labelProps", "required"];
20974
+ var INPUT_SIZES$2 = {
20975
20975
  small: "small",
20976
20976
  medium: "medium",
20977
20977
  large: "large"
@@ -20996,7 +20996,7 @@ var DatePicker = /*#__PURE__*/forwardRef$1(function (_ref2, ref) {
20996
20996
  _ref2$label = _ref2.label,
20997
20997
  label = _ref2$label === void 0 ? "" : _ref2$label,
20998
20998
  _ref2$size = _ref2.size,
20999
- size = _ref2$size === void 0 ? INPUT_SIZES$1.medium : _ref2$size,
20999
+ size = _ref2$size === void 0 ? INPUT_SIZES$2.medium : _ref2$size,
21000
21000
  _ref2$dropdownClassNa = _ref2.dropdownClassName,
21001
21001
  dropdownClassName = _ref2$dropdownClassNa === void 0 ? "" : _ref2$dropdownClassNa,
21002
21002
  _ref2$popupClassName = _ref2.popupClassName,
@@ -21024,7 +21024,7 @@ var DatePicker = /*#__PURE__*/forwardRef$1(function (_ref2, ref) {
21024
21024
  labelProps = _ref2.labelProps,
21025
21025
  _ref2$required = _ref2.required,
21026
21026
  required = _ref2$required === void 0 ? false : _ref2$required,
21027
- otherProps = _objectWithoutProperties$1(_ref2, _excluded$s);
21027
+ otherProps = _objectWithoutProperties$1(_ref2, _excluded$t);
21028
21028
  var id = useId(otherProps.id);
21029
21029
  var datePickerRef = useSyncedRef(ref);
21030
21030
  var Component = datePickerTypes[type === null || type === void 0 ? void 0 : type.toLowerCase()];
@@ -21084,13 +21084,13 @@ var DatePicker = /*#__PURE__*/forwardRef$1(function (_ref2, ref) {
21084
21084
  });
21085
21085
  DatePicker.displayName = "DatePicker";
21086
21086
 
21087
- var _excluded$r = ["size", "type", "label", "error", "suffix", "prefix", "disabled", "helpText", "className", "nakedInput", "contentSize", "required", "maxLength", "unlimitedChars", "labelProps", "rejectCharsRegex", "onBlur", "disableTrimOnBlur"];
21087
+ var _excluded$s = ["size", "type", "label", "error", "suffix", "prefix", "disabled", "helpText", "className", "nakedInput", "contentSize", "required", "maxLength", "unlimitedChars", "labelProps", "rejectCharsRegex", "onBlur", "disableTrimOnBlur"];
21088
21088
  var SIZES$5 = {
21089
21089
  small: "small",
21090
21090
  medium: "medium",
21091
21091
  large: "large"
21092
21092
  };
21093
- var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
21093
+ var Input$3 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
21094
21094
  var _ref2, _otherProps$value, _classnames;
21095
21095
  var _ref$size = _ref.size,
21096
21096
  size = _ref$size === void 0 ? SIZES$5.medium : _ref$size,
@@ -21124,7 +21124,7 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
21124
21124
  onBlur = _ref.onBlur,
21125
21125
  _ref$disableTrimOnBlu = _ref.disableTrimOnBlur,
21126
21126
  disableTrimOnBlur = _ref$disableTrimOnBlu === void 0 ? false : _ref$disableTrimOnBlu,
21127
- otherProps = _objectWithoutProperties$1(_ref, _excluded$r);
21127
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
21128
21128
  var _useState = useState(otherProps.value),
21129
21129
  _useState2 = _slicedToArray$2(_useState, 2),
21130
21130
  valueInternal = _useState2[0],
@@ -21208,14 +21208,14 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
21208
21208
  style: "body3"
21209
21209
  }, helpText));
21210
21210
  });
21211
- Input$2.displayName = "Input";
21211
+ Input$3.displayName = "Input";
21212
21212
 
21213
- var _excluded$q = ["keyName", "className", "tooltipProps"];
21213
+ var _excluded$r = ["keyName", "className", "tooltipProps"];
21214
21214
  var Kbd = function Kbd(_ref) {
21215
21215
  var keyName = _ref.keyName,
21216
21216
  className = _ref.className,
21217
21217
  tooltipProps = _ref.tooltipProps,
21218
- otherProps = _objectWithoutProperties$1(_ref, _excluded$q);
21218
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$r);
21219
21219
  return /*#__PURE__*/React__default.createElement(Tooltip, _extends$4({
21220
21220
  disabled: !tooltipProps
21221
21221
  }, tooltipProps), /*#__PURE__*/React__default.createElement("span", _extends$4({
@@ -22177,7 +22177,7 @@ var weakMemoize = function weakMemoize(func) {
22177
22177
  };
22178
22178
  };
22179
22179
 
22180
- function memoize(fn) {
22180
+ function memoize$1(fn) {
22181
22181
  var cache = Object.create(null);
22182
22182
  return function (arg) {
22183
22183
  if (cache[arg] === undefined) cache[arg] = fn(arg);
@@ -22522,9 +22522,9 @@ var prefixer = function prefixer(element, index, children, callback) {
22522
22522
  }
22523
22523
  };
22524
22524
 
22525
- var isBrowser$3 = typeof document !== 'undefined';
22526
- var getServerStylisCache = isBrowser$3 ? undefined : weakMemoize(function () {
22527
- return memoize(function () {
22525
+ var isBrowser$6 = typeof document !== 'undefined';
22526
+ var getServerStylisCache = isBrowser$6 ? undefined : weakMemoize(function () {
22527
+ return memoize$1(function () {
22528
22528
  var cache = {};
22529
22529
  return function (name) {
22530
22530
  return cache[name];
@@ -22536,7 +22536,7 @@ var defaultStylisPlugins = [prefixer];
22536
22536
  var createCache = function createCache(options) {
22537
22537
  var key = options.key;
22538
22538
 
22539
- if (isBrowser$3 && key === 'css') {
22539
+ if (isBrowser$6 && key === 'css') {
22540
22540
  var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
22541
22541
  // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
22542
22542
  // note this very very intentionally targets all style elements regardless of the key to ensure
@@ -22565,7 +22565,7 @@ var createCache = function createCache(options) {
22565
22565
  var container;
22566
22566
  var nodesToHydrate = [];
22567
22567
 
22568
- if (isBrowser$3) {
22568
+ if (isBrowser$6) {
22569
22569
  container = options.container || document.head;
22570
22570
  Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
22571
22571
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -22584,7 +22584,7 @@ var createCache = function createCache(options) {
22584
22584
 
22585
22585
  var omnipresentPlugins = [compat, removeLabel];
22586
22586
 
22587
- if (isBrowser$3) {
22587
+ if (isBrowser$6) {
22588
22588
  var currentSheet;
22589
22589
  var finalizingPlugins = [stringify$2, rulesheet(function (rule) {
22590
22590
  currentSheet.insert(rule);
@@ -22688,11 +22688,11 @@ var reactIs_production_min = {};
22688
22688
  * LICENSE file in the root directory of this source tree.
22689
22689
  */
22690
22690
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k$1=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
22691
- Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w$1=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
22692
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k$1;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$1;reactIs_production_min.Portal=d;
22691
+ Symbol.for("react.suspense_list"):60120,r$3=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w$1=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
22692
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n:case t:case r$3:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k$1;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r$3;reactIs_production_min.Portal=d;
22693
22693
  reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k$1};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
22694
- reactIs_production_min.isMemo=function(a){return z(a)===r$1};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
22695
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k$1||a.$$typeof===n||a.$$typeof===w$1||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
22694
+ reactIs_production_min.isMemo=function(a){return z(a)===r$3};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
22695
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$3||a.$$typeof===h||a.$$typeof===k$1||a.$$typeof===n||a.$$typeof===w$1||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
22696
22696
 
22697
22697
  (function (module) {
22698
22698
 
@@ -22721,7 +22721,7 @@ var TYPE_STATICS = {};
22721
22721
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
22722
22722
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
22723
22723
 
22724
- var isBrowser$2 = typeof document !== 'undefined';
22724
+ var isBrowser$5 = typeof document !== 'undefined';
22725
22725
  function getRegisteredStyles(registered, registeredStyles, classNames) {
22726
22726
  var rawClassName = '';
22727
22727
  classNames.split(' ').forEach(function (className) {
@@ -22745,7 +22745,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
22745
22745
  // in node since emotion-server relies on whether a style is in
22746
22746
  // the registered cache to know whether a style is global or not
22747
22747
  // also, note that this check will be dead code eliminated in the browser
22748
- isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
22748
+ isBrowser$5 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
22749
22749
  cache.registered[className] = serialized.styles;
22750
22750
  }
22751
22751
  };
@@ -22760,14 +22760,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
22760
22760
  do {
22761
22761
  var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
22762
22762
 
22763
- if (!isBrowser$2 && maybeStyles !== undefined) {
22763
+ if (!isBrowser$5 && maybeStyles !== undefined) {
22764
22764
  stylesForSSR += maybeStyles;
22765
22765
  }
22766
22766
 
22767
22767
  current = current.next;
22768
22768
  } while (current !== undefined);
22769
22769
 
22770
- if (!isBrowser$2 && stylesForSSR.length !== 0) {
22770
+ if (!isBrowser$5 && stylesForSSR.length !== 0) {
22771
22771
  return stylesForSSR;
22772
22772
  }
22773
22773
  }
@@ -22887,7 +22887,7 @@ var isProcessableValue = function isProcessableValue(value) {
22887
22887
  return value != null && typeof value !== 'boolean';
22888
22888
  };
22889
22889
 
22890
- var processStyleName = /* #__PURE__ */memoize(function (styleName) {
22890
+ var processStyleName = /* #__PURE__ */memoize$1(function (styleName) {
22891
22891
  return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
22892
22892
  });
22893
22893
 
@@ -23096,17 +23096,17 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
23096
23096
  };
23097
23097
  };
23098
23098
 
23099
- var isBrowser$1 = typeof document !== 'undefined';
23099
+ var isBrowser$4 = typeof document !== 'undefined';
23100
23100
 
23101
23101
  var syncFallback = function syncFallback(create) {
23102
23102
  return create();
23103
23103
  };
23104
23104
 
23105
23105
  var useInsertionEffect = React$5['useInsertion' + 'Effect'] ? React$5['useInsertion' + 'Effect'] : false;
23106
- var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
23106
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$4 ? syncFallback : useInsertionEffect || syncFallback;
23107
23107
 
23108
- var isBrowser = typeof document !== 'undefined';
23109
- var hasOwnProperty$1 = {}.hasOwnProperty;
23108
+ var isBrowser$3 = typeof document !== 'undefined';
23109
+ var hasOwnProperty$2 = {}.hasOwnProperty;
23110
23110
 
23111
23111
  var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
23112
23112
  // because this module is primarily intended for the browser and node
@@ -23129,7 +23129,7 @@ var withEmotionCache = function withEmotionCache(func) {
23129
23129
  });
23130
23130
  };
23131
23131
 
23132
- if (!isBrowser) {
23132
+ if (!isBrowser$3) {
23133
23133
  withEmotionCache = function withEmotionCache(func) {
23134
23134
  return function (props) {
23135
23135
  var cache = useContext(EmotionCacheContext);
@@ -23161,7 +23161,7 @@ var createEmotionProps = function createEmotionProps(type, props) {
23161
23161
  var newProps = {};
23162
23162
 
23163
23163
  for (var key in props) {
23164
- if (hasOwnProperty$1.call(props, key)) {
23164
+ if (hasOwnProperty$2.call(props, key)) {
23165
23165
  newProps[key] = props[key];
23166
23166
  }
23167
23167
  }
@@ -23180,7 +23180,7 @@ var Insertion$1 = function Insertion(_ref) {
23180
23180
  return insertStyles(cache, serialized, isStringTag);
23181
23181
  });
23182
23182
 
23183
- if (!isBrowser && rules !== undefined) {
23183
+ if (!isBrowser$3 && rules !== undefined) {
23184
23184
  var _ref2;
23185
23185
 
23186
23186
  var serializedNames = serialized.name;
@@ -23224,7 +23224,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
23224
23224
  var newProps = {};
23225
23225
 
23226
23226
  for (var key in props) {
23227
- if (hasOwnProperty$1.call(props, key) && key !== 'css' && key !== typePropName && ("production" === 'production' )) {
23227
+ if (hasOwnProperty$2.call(props, key) && key !== 'css' && key !== typePropName && ("production" === 'production' )) {
23228
23228
  newProps[key] = props[key];
23229
23229
  }
23230
23230
  }
@@ -23241,7 +23241,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
23241
23241
  var jsx = function jsx(type, props) {
23242
23242
  var args = arguments;
23243
23243
 
23244
- if (props == null || !hasOwnProperty$1.call(props, 'css')) {
23244
+ if (props == null || !hasOwnProperty$2.call(props, 'css')) {
23245
23245
  // $FlowFixMe
23246
23246
  return createElement.apply(undefined, args);
23247
23247
  }
@@ -23349,17 +23349,17 @@ var Insertion = function Insertion(_ref) {
23349
23349
  for (var i = 0; i < serializedArr.length; i++) {
23350
23350
  var res = insertStyles(cache, serializedArr[i], false);
23351
23351
 
23352
- if (!isBrowser && res !== undefined) {
23352
+ if (!isBrowser$3 && res !== undefined) {
23353
23353
  rules += res;
23354
23354
  }
23355
23355
  }
23356
23356
 
23357
- if (!isBrowser) {
23357
+ if (!isBrowser$3) {
23358
23358
  return rules;
23359
23359
  }
23360
23360
  });
23361
23361
 
23362
- if (!isBrowser && rules.length !== 0) {
23362
+ if (!isBrowser$3 && rules.length !== 0) {
23363
23363
  var _ref2;
23364
23364
 
23365
23365
  return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
@@ -24835,7 +24835,7 @@ var GroupHeading = function GroupHeading(props) {
24835
24835
  }, innerProps));
24836
24836
  };
24837
24837
 
24838
- var _excluded$p = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
24838
+ var _excluded$q = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
24839
24839
  var inputCSS = function inputCSS(_ref) {
24840
24840
  var isDisabled = _ref.isDisabled,
24841
24841
  value = _ref.value,
@@ -24882,7 +24882,7 @@ var inputStyle = function inputStyle(isHidden) {
24882
24882
  width: '100%'
24883
24883
  }, spacingStyle);
24884
24884
  };
24885
- var Input$1 = function Input(props) {
24885
+ var Input$2 = function Input(props) {
24886
24886
  var className = props.className,
24887
24887
  cx = props.cx,
24888
24888
  getStyles = props.getStyles,
@@ -24892,7 +24892,7 @@ var Input$1 = function Input(props) {
24892
24892
  isDisabled = _cleanCommonProps.isDisabled,
24893
24893
  isHidden = _cleanCommonProps.isHidden,
24894
24894
  inputClassName = _cleanCommonProps.inputClassName,
24895
- innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$p);
24895
+ innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$q);
24896
24896
  return jsx("div", {
24897
24897
  className: cx({
24898
24898
  'input-container': true
@@ -25138,7 +25138,7 @@ var components = {
25138
25138
  GroupHeading: GroupHeading,
25139
25139
  IndicatorsContainer: IndicatorsContainer,
25140
25140
  IndicatorSeparator: IndicatorSeparator,
25141
- Input: Input$1,
25141
+ Input: Input$2,
25142
25142
  LoadingIndicator: LoadingIndicator,
25143
25143
  Menu: Menu$1,
25144
25144
  MenuList: MenuList$1,
@@ -25715,10 +25715,10 @@ var createFilter = function createFilter(config) {
25715
25715
  };
25716
25716
  };
25717
25717
 
25718
- var _excluded$o = ["innerRef"];
25718
+ var _excluded$p = ["innerRef"];
25719
25719
  function DummyInput(_ref) {
25720
25720
  var innerRef = _ref.innerRef,
25721
- props = _objectWithoutProperties(_ref, _excluded$o);
25721
+ props = _objectWithoutProperties(_ref, _excluded$p);
25722
25722
  // Remove animation props not meant for HTML elements
25723
25723
  var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
25724
25724
  return jsx("input", _extends$2({
@@ -27714,7 +27714,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
27714
27714
  }(Component);
27715
27715
  Select$1.defaultProps = defaultProps;
27716
27716
 
27717
- var _excluded$n = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
27717
+ var _excluded$o = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
27718
27718
  function useStateManager(_ref) {
27719
27719
  var _ref$defaultInputValu = _ref.defaultInputValue,
27720
27720
  defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,
@@ -27729,7 +27729,7 @@ function useStateManager(_ref) {
27729
27729
  propsOnMenuClose = _ref.onMenuClose,
27730
27730
  propsOnMenuOpen = _ref.onMenuOpen,
27731
27731
  propsValue = _ref.value,
27732
- restSelectProps = _objectWithoutProperties(_ref, _excluded$n);
27732
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$o);
27733
27733
  var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
27734
27734
  _useState2 = _slicedToArray$1(_useState, 2),
27735
27735
  stateInputValue = _useState2[0],
@@ -27781,7 +27781,7 @@ function useStateManager(_ref) {
27781
27781
  });
27782
27782
  }
27783
27783
 
27784
- var _excluded$m = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
27784
+ var _excluded$n = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
27785
27785
  var compareOption = function compareOption() {
27786
27786
  var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
27787
27787
  var option = arguments.length > 1 ? arguments[1] : undefined;
@@ -27825,7 +27825,7 @@ function useCreatable(_ref) {
27825
27825
  _ref$options = _ref.options,
27826
27826
  propsOptions = _ref$options === void 0 ? [] : _ref$options,
27827
27827
  propsOnChange = _ref.onChange,
27828
- restSelectProps = _objectWithoutProperties(_ref, _excluded$m);
27828
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$n);
27829
27829
  var _restSelectProps$getO = restSelectProps.getOptionValue,
27830
27830
  getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
27831
27831
  _restSelectProps$getO2 = restSelectProps.getOptionLabel,
@@ -27888,7 +27888,7 @@ var StateManagedSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
27888
27888
  }, baseSelectProps));
27889
27889
  });
27890
27890
 
27891
- var _excluded$l = ["style", "indicatorStyle", "label", "icon", "className", "onClose", "disabled", "size", "type", "children"];
27891
+ var _excluded$m = ["style", "indicatorStyle", "label", "icon", "className", "onClose", "disabled", "size", "type", "children"];
27892
27892
  var SIZES$4 = {
27893
27893
  small: "small",
27894
27894
  large: "large"
@@ -27924,7 +27924,7 @@ var Tag = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
27924
27924
  _ref$type = _ref.type,
27925
27925
  type = _ref$type === void 0 ? TYPES.outline : _ref$type,
27926
27926
  children = _ref.children,
27927
- otherProps = _objectWithoutProperties$1(_ref, _excluded$l);
27927
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$m);
27928
27928
  var Icon = typeof icon === "string" ? function () {
27929
27929
  return /*#__PURE__*/React__default.createElement("i", {
27930
27930
  className: icon
@@ -27967,7 +27967,7 @@ var Tag = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
27967
27967
  });
27968
27968
  Tag.displayName = "Tag";
27969
27969
 
27970
- var _excluded$k = ["children"],
27970
+ var _excluded$l = ["children"],
27971
27971
  _excluded2$2 = ["children"];
27972
27972
  function ownKeys$e(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; }
27973
27973
  function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -27983,7 +27983,7 @@ var STYLES = {
27983
27983
  };
27984
27984
  var CustomControl = function CustomControl(_ref) {
27985
27985
  var children = _ref.children,
27986
- props = _objectWithoutProperties$1(_ref, _excluded$k);
27986
+ props = _objectWithoutProperties$1(_ref, _excluded$l);
27987
27987
  var prefix = props.selectProps.prefix;
27988
27988
  return /*#__PURE__*/React__default.createElement(components.Control, props, prefix && /*#__PURE__*/React__default.createElement("div", {
27989
27989
  className: "neeto-ui-email-input__prefix"
@@ -28034,7 +28034,7 @@ var SelectContainer = function SelectContainer(props) {
28034
28034
  innerProps: _objectSpread$e(_objectSpread$e({}, props.innerProps), {}, _defineProperty$7({}, "data-cy", "multi-email-select-container"))
28035
28035
  }));
28036
28036
  };
28037
- var Input = function Input(props) {
28037
+ var Input$1 = function Input(props) {
28038
28038
  return /*#__PURE__*/React__default.createElement(components.Input, _extends$4({}, props, {
28039
28039
  "data-cy": "email-select-input-field"
28040
28040
  }));
@@ -28059,7 +28059,7 @@ var CUSTOM_COMPONENTS = {
28059
28059
  ValueContainer: CustomValueContainer,
28060
28060
  ClearIndicator: CustomClearIndicator,
28061
28061
  SelectContainer: SelectContainer,
28062
- Input: Input
28062
+ Input: Input$1
28063
28063
  };
28064
28064
 
28065
28065
  var formatEmailInputOptions = function formatEmailInputOptions(label) {
@@ -28088,7 +28088,7 @@ var renderDefaultText = function renderDefaultText(count) {
28088
28088
  return count === 1 ? "email" : "emails";
28089
28089
  };
28090
28090
 
28091
- var _excluded$j = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps", "visibleEmailsCount"];
28091
+ var _excluded$k = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps", "visibleEmailsCount"];
28092
28092
  function ownKeys$d(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; }
28093
28093
  function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28094
28094
  var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
@@ -28117,7 +28117,7 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
28117
28117
  labelProps = _ref.labelProps,
28118
28118
  _ref$visibleEmailsCou = _ref.visibleEmailsCount,
28119
28119
  visibleEmailsCount = _ref$visibleEmailsCou === void 0 ? 3 : _ref$visibleEmailsCou,
28120
- otherProps = _objectWithoutProperties$1(_ref, _excluded$j);
28120
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$k);
28121
28121
  var _useState = useState(""),
28122
28122
  _useState2 = _slicedToArray$2(_useState, 2),
28123
28123
  inputValue = _useState2[0],
@@ -28254,7 +28254,7 @@ var renderImage = function renderImage(image) {
28254
28254
  }) : image;
28255
28255
  };
28256
28256
 
28257
- var _excluded$i = ["image", "title", "description", "helpText", "className", "primaryButtonProps", "secondaryButtonProps", "buttonSeparatorText"];
28257
+ var _excluded$j = ["image", "title", "description", "helpText", "className", "primaryButtonProps", "secondaryButtonProps", "buttonSeparatorText"];
28258
28258
  var NoData = function NoData(_ref) {
28259
28259
  var _ref$image = _ref.image,
28260
28260
  image = _ref$image === void 0 ? null : _ref$image,
@@ -28272,7 +28272,7 @@ var NoData = function NoData(_ref) {
28272
28272
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
28273
28273
  _ref$buttonSeparatorT = _ref.buttonSeparatorText,
28274
28274
  buttonSeparatorText = _ref$buttonSeparatorT === void 0 ? "" : _ref$buttonSeparatorT,
28275
- otherProps = _objectWithoutProperties$1(_ref, _excluded$i);
28275
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$j);
28276
28276
  var hasPrimaryButtonProps = !isEmpty(primaryButtonProps);
28277
28277
  var hasSecondaryButtonProps = !isEmpty(secondaryButtonProps);
28278
28278
  var hasButtonSeparatorText = !isEmpty(buttonSeparatorText);
@@ -28488,7 +28488,7 @@ var getHeaderHeight = function getHeaderHeight(paneWrapper) {
28488
28488
  return header ? header.offsetHeight : DEFAULT_PANE_HEADER_HEIGHT;
28489
28489
  };
28490
28490
 
28491
- var _excluded$h = ["size", "isOpen", "onClose", "children", "className", "closeOnEsc", "closeButton", "backdropClassName", "closeOnOutsideClick", "initialFocusRef", "finalFocusRef"];
28491
+ var _excluded$i = ["size", "isOpen", "onClose", "children", "className", "closeOnEsc", "closeButton", "backdropClassName", "closeOnOutsideClick", "initialFocusRef", "finalFocusRef"];
28492
28492
  var SIZES$3 = {
28493
28493
  small: "small",
28494
28494
  large: "large"
@@ -28513,7 +28513,7 @@ var Pane = function Pane(_ref) {
28513
28513
  closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
28514
28514
  initialFocusRef = _ref.initialFocusRef,
28515
28515
  finalFocusRef = _ref.finalFocusRef,
28516
- otherProps = _objectWithoutProperties$1(_ref, _excluded$h);
28516
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$i);
28517
28517
  var _useState = useState(false),
28518
28518
  _useState2 = _slicedToArray$2(_useState, 2),
28519
28519
  hasTransitionCompleted = _useState2[0],
@@ -28598,12 +28598,12 @@ var Title = function Title(_ref) {
28598
28598
  }, children);
28599
28599
  };
28600
28600
 
28601
- var _excluded$g = ["children", "theme"];
28601
+ var _excluded$h = ["children", "theme"];
28602
28602
  var Popover = function Popover(_ref) {
28603
28603
  var children = _ref.children,
28604
28604
  _ref$theme = _ref.theme,
28605
28605
  theme = _ref$theme === void 0 ? "light" : _ref$theme,
28606
- otherProps = _objectWithoutProperties$1(_ref, _excluded$g);
28606
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$h);
28607
28607
  return /*#__PURE__*/React__default.createElement(Tooltip, _extends$4({
28608
28608
  interactive: true,
28609
28609
  arrow: false,
@@ -28614,7 +28614,7 @@ var Popover = function Popover(_ref) {
28614
28614
  };
28615
28615
  Popover.Title = Title;
28616
28616
 
28617
- var _excluded$f = ["name", "label", "className", "labelProps"];
28617
+ var _excluded$g = ["name", "label", "className", "labelProps"];
28618
28618
  var Item$1 = function Item(_ref) {
28619
28619
  var _ref$name = _ref.name,
28620
28620
  name = _ref$name === void 0 ? "" : _ref$name,
@@ -28623,7 +28623,7 @@ var Item$1 = function Item(_ref) {
28623
28623
  _ref$className = _ref.className,
28624
28624
  className = _ref$className === void 0 ? "" : _ref$className,
28625
28625
  labelProps = _ref.labelProps,
28626
- otherProps = _objectWithoutProperties$1(_ref, _excluded$f);
28626
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$g);
28627
28627
  var id = useId(otherProps.id);
28628
28628
  return /*#__PURE__*/React__default.createElement("div", {
28629
28629
  className: classnames$1(["neeto-ui-radio__item", className])
@@ -28639,7 +28639,7 @@ var Item$1 = function Item(_ref) {
28639
28639
  };
28640
28640
  Item$1.displayName = "Radio.Item";
28641
28641
 
28642
- var _excluded$e = ["label", "children", "stacked", "className", "containerClassName", "error", "onChange", "labelProps"];
28642
+ var _excluded$f = ["label", "children", "stacked", "className", "containerClassName", "error", "onChange", "labelProps"];
28643
28643
  function ownKeys$c(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; }
28644
28644
  function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28645
28645
  var Radio = function Radio(_ref) {
@@ -28656,7 +28656,7 @@ var Radio = function Radio(_ref) {
28656
28656
  error = _ref$error === void 0 ? "" : _ref$error,
28657
28657
  onChange = _ref.onChange,
28658
28658
  labelProps = _ref.labelProps,
28659
- props = _objectWithoutProperties$1(_ref, _excluded$e);
28659
+ props = _objectWithoutProperties$1(_ref, _excluded$f);
28660
28660
  var _useState = useState(""),
28661
28661
  _useState2 = _slicedToArray$2(_useState, 2),
28662
28662
  internalValue = _useState2[0],
@@ -28690,7 +28690,7 @@ var Radio = function Radio(_ref) {
28690
28690
  };
28691
28691
  Radio.Item = Item$1;
28692
28692
 
28693
- var _excluded$d = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
28693
+ var _excluded$e = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
28694
28694
  function useAsync(_ref) {
28695
28695
  var _ref$defaultOptions = _ref.defaultOptions,
28696
28696
  propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions,
@@ -28703,7 +28703,7 @@ function useAsync(_ref) {
28703
28703
  propsOnInputChange = _ref.onInputChange,
28704
28704
  _ref$filterOption = _ref.filterOption,
28705
28705
  filterOption = _ref$filterOption === void 0 ? null : _ref$filterOption,
28706
- restSelectProps = _objectWithoutProperties(_ref, _excluded$d);
28706
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$e);
28707
28707
  var propsInputValue = restSelectProps.inputValue;
28708
28708
  var lastRequest = useRef(undefined);
28709
28709
  var mounted = useRef(false);
@@ -28862,7 +28862,7 @@ var Spinner = function Spinner(_ref) {
28862
28862
  }));
28863
28863
  };
28864
28864
 
28865
- var _excluded$c = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
28865
+ var _excluded$d = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
28866
28866
  function ownKeys$b(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; }
28867
28867
  function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
28868
28868
  var SIZES$2 = {
@@ -28989,7 +28989,7 @@ var Select = function Select(_ref) {
28989
28989
  componentOverrides = _ref.components,
28990
28990
  _ref$optionRemapping = _ref.optionRemapping,
28991
28991
  optionRemapping = _ref$optionRemapping === void 0 ? {} : _ref$optionRemapping,
28992
- otherProps = _objectWithoutProperties$1(_ref, _excluded$c);
28992
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$d);
28993
28993
  var inputId = useId(id);
28994
28994
  var Parent = StateManagedSelect;
28995
28995
  if (isCreateable) {
@@ -29078,7 +29078,7 @@ var Select = function Select(_ref) {
29078
29078
 
29079
29079
  var NEETO_UI_PRIMARY_500 = "#4558f9";
29080
29080
 
29081
- var _excluded$b = ["min", "max", "defaultValue", "onChange", "value", "label", "required", "labelProps", "error", "helpText"];
29081
+ var _excluded$c = ["min", "max", "defaultValue", "onChange", "value", "label", "required", "labelProps", "error", "helpText"];
29082
29082
  function ownKeys$a(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; }
29083
29083
  function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29084
29084
  var Slider = function Slider(_ref) {
@@ -29099,7 +29099,7 @@ var Slider = function Slider(_ref) {
29099
29099
  labelProps = _ref$labelProps === void 0 ? {} : _ref$labelProps,
29100
29100
  error = _ref.error,
29101
29101
  helpText = _ref.helpText,
29102
- otherProps = _objectWithoutProperties$1(_ref, _excluded$b);
29102
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$c);
29103
29103
  var _id = useId$1();
29104
29104
  var id = otherProps.id || _id;
29105
29105
  var errorId = "error_".concat(id);
@@ -29162,7 +29162,7 @@ var Slider = function Slider(_ref) {
29162
29162
  }, helpText)));
29163
29163
  };
29164
29164
 
29165
- var _excluded$a = ["label", "required", "className", "error", "onChange", "labelProps", "children"];
29165
+ var _excluded$b = ["label", "required", "className", "error", "onChange", "labelProps", "children"];
29166
29166
  var Switch = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
29167
29167
  var _ref$label = _ref.label,
29168
29168
  label = _ref$label === void 0 ? "" : _ref$label,
@@ -29176,7 +29176,7 @@ var Switch = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
29176
29176
  onChange = _ref$onChange === void 0 ? noop$2 : _ref$onChange,
29177
29177
  labelProps = _ref.labelProps,
29178
29178
  children = _ref.children,
29179
- otherProps = _objectWithoutProperties$1(_ref, _excluded$a);
29179
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$b);
29180
29180
  var id = useId(otherProps.id);
29181
29181
  var errorId = "error_".concat(id);
29182
29182
  var checked = otherProps.checked,
@@ -29222,7 +29222,7 @@ var Switch = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
29222
29222
  });
29223
29223
  Switch.displayName = "Switch";
29224
29224
 
29225
- var _excluded$9 = ["active", "className", "children", "icon", "onClick", "activeClassName"];
29225
+ var _excluded$a = ["active", "className", "children", "icon", "onClick", "activeClassName"];
29226
29226
  function ownKeys$9(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; }
29227
29227
  function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29228
29228
  var Item = function Item(_ref) {
@@ -29236,7 +29236,7 @@ var Item = function Item(_ref) {
29236
29236
  onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
29237
29237
  _ref$activeClassName = _ref.activeClassName,
29238
29238
  activeClassName = _ref$activeClassName === void 0 ? "" : _ref$activeClassName,
29239
- otherProps = _objectWithoutProperties$1(_ref, _excluded$9);
29239
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$a);
29240
29240
  var Icon = typeof icon === "string" ? function () {
29241
29241
  return /*#__PURE__*/React__default.createElement("i", {
29242
29242
  className: icon,
@@ -29260,7 +29260,7 @@ var Item = function Item(_ref) {
29260
29260
  };
29261
29261
  Item.displayName = "Tab.Item";
29262
29262
 
29263
- var _excluded$8 = ["size", "noUnderline", "children", "className"];
29263
+ var _excluded$9 = ["size", "noUnderline", "children", "className"];
29264
29264
  var SIZES$1 = {
29265
29265
  large: "large",
29266
29266
  small: "small"
@@ -29273,7 +29273,7 @@ var Tab = function Tab(_ref) {
29273
29273
  children = _ref.children,
29274
29274
  _ref$className = _ref.className,
29275
29275
  className = _ref$className === void 0 ? "" : _ref$className,
29276
- otherProps = _objectWithoutProperties$1(_ref, _excluded$8);
29276
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$9);
29277
29277
  return /*#__PURE__*/React__default.createElement("div", _extends$4({
29278
29278
  "data-cy": "tab-container",
29279
29279
  className: classnames$1({
@@ -29340,9 +29340,9 @@ var _isObject = function (it) {
29340
29340
  return typeof it === 'object' ? it !== null : typeof it === 'function';
29341
29341
  };
29342
29342
 
29343
- var isObject$4 = _isObject;
29343
+ var isObject$5 = _isObject;
29344
29344
  var _anObject = function (it) {
29345
- if (!isObject$4(it)) throw TypeError(it + ' is not an object!');
29345
+ if (!isObject$5(it)) throw TypeError(it + ' is not an object!');
29346
29346
  return it;
29347
29347
  };
29348
29348
 
@@ -29388,15 +29388,15 @@ var _ie8DomDefine = !require_descriptors() && !_fails(function () {
29388
29388
  });
29389
29389
 
29390
29390
  // 7.1.1 ToPrimitive(input [, PreferredType])
29391
- var isObject$3 = _isObject;
29391
+ var isObject$4 = _isObject;
29392
29392
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
29393
29393
  // and the second argument - flag - preferred type is a string
29394
29394
  var _toPrimitive = function (it, S) {
29395
- if (!isObject$3(it)) return it;
29395
+ if (!isObject$4(it)) return it;
29396
29396
  var fn, val;
29397
- if (S && typeof (fn = it.toString) == 'function' && !isObject$3(val = fn.call(it))) return val;
29398
- if (typeof (fn = it.valueOf) == 'function' && !isObject$3(val = fn.call(it))) return val;
29399
- if (!S && typeof (fn = it.toString) == 'function' && !isObject$3(val = fn.call(it))) return val;
29397
+ if (S && typeof (fn = it.toString) == 'function' && !isObject$4(val = fn.call(it))) return val;
29398
+ if (typeof (fn = it.valueOf) == 'function' && !isObject$4(val = fn.call(it))) return val;
29399
+ if (!S && typeof (fn = it.toString) == 'function' && !isObject$4(val = fn.call(it))) return val;
29400
29400
  throw TypeError("Can't convert object to primitive value");
29401
29401
  };
29402
29402
 
@@ -29442,9 +29442,9 @@ var _hide = require_descriptors() ? function (object, key, value) {
29442
29442
  return object;
29443
29443
  };
29444
29444
 
29445
- var hasOwnProperty = {}.hasOwnProperty;
29445
+ var hasOwnProperty$1 = {}.hasOwnProperty;
29446
29446
  var _has = function (it, key) {
29447
- return hasOwnProperty.call(it, key);
29447
+ return hasOwnProperty$1.call(it, key);
29448
29448
  };
29449
29449
 
29450
29450
  var global$5 = _global.exports;
@@ -30016,7 +30016,7 @@ var symbol$1 = {exports: {}};
30016
30016
  var _meta = {exports: {}};
30017
30017
 
30018
30018
  var META$1 = _uid('meta');
30019
- var isObject$2 = _isObject;
30019
+ var isObject$3 = _isObject;
30020
30020
  var has$6 = _has;
30021
30021
  var setDesc = require_objectDp().f;
30022
30022
  var id = 0;
@@ -30034,7 +30034,7 @@ var setMeta = function (it) {
30034
30034
  };
30035
30035
  var fastKey = function (it, create) {
30036
30036
  // return primitive with prefix
30037
- if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
30037
+ if (!isObject$3(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
30038
30038
  if (!has$6(it, META$1)) {
30039
30039
  // can't set metadata to uncaught frozen object
30040
30040
  if (!isExtensible(it)) return 'F';
@@ -30191,7 +30191,7 @@ var wksDefine = _wksDefine;
30191
30191
  var enumKeys = _enumKeys;
30192
30192
  var isArray$4 = _isArray;
30193
30193
  var anObject = _anObject;
30194
- var isObject$1 = _isObject;
30194
+ var isObject$2 = _isObject;
30195
30195
  var toObject$1 = _toObject;
30196
30196
  var toIObject$1 = _toIobject;
30197
30197
  var toPrimitive = _toPrimitive;
@@ -30401,7 +30401,7 @@ $JSON && $export$3($export$3.S + $export$3.F * (!USE_NATIVE || $fails(function (
30401
30401
  var replacer, $replacer;
30402
30402
  while (arguments.length > i) args.push(arguments[i++]);
30403
30403
  $replacer = replacer = args[1];
30404
- if (!isObject$1(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
30404
+ if (!isObject$2(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
30405
30405
  if (!isArray$4(replacer)) replacer = function (key, value) {
30406
30406
  if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
30407
30407
  if (!isSymbol$1(value)) return value;
@@ -31089,12 +31089,12 @@ var cjs = {exports: {}};
31089
31089
 
31090
31090
  var Draggable$1 = {};
31091
31091
 
31092
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
31092
+ function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx$2(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
31093
31093
 
31094
31094
  var clsx_m = /*#__PURE__*/Object.freeze({
31095
31095
  __proto__: null,
31096
- clsx: clsx,
31097
- 'default': clsx
31096
+ clsx: clsx$2,
31097
+ 'default': clsx$2
31098
31098
  });
31099
31099
 
31100
31100
  var require$$3 = /*@__PURE__*/getAugmentedNamespace(clsx_m);
@@ -31109,7 +31109,7 @@ Object.defineProperty(shims, "__esModule", {
31109
31109
  shims.dontSetMe = dontSetMe;
31110
31110
  shims.findInArray = findInArray;
31111
31111
  shims.int = int;
31112
- shims.isFunction = isFunction$1;
31112
+ shims.isFunction = isFunction$2;
31113
31113
  shims.isNum = isNum;
31114
31114
 
31115
31115
  // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
@@ -31125,7 +31125,7 @@ function findInArray(array
31125
31125
  }
31126
31126
  }
31127
31127
 
31128
- function isFunction$1(func
31128
+ function isFunction$2(func
31129
31129
  /*: any*/
31130
31130
  )
31131
31131
  /*: boolean %checks*/
@@ -33014,7 +33014,7 @@ var _utils = utils$3;
33014
33014
 
33015
33015
  var _propTypes$1 = propTypes;
33016
33016
 
33017
- var _excluded$7 = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
33017
+ var _excluded$8 = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
33018
33018
 
33019
33019
  function _getRequireWildcardCache$1(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33020
33020
 
@@ -33247,7 +33247,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
33247
33247
  _this$props2.onResizeStart;
33248
33248
  var resizeHandles = _this$props2.resizeHandles;
33249
33249
  _this$props2.transformScale;
33250
- var p = _objectWithoutPropertiesLoose$1(_this$props2, _excluded$7); // What we're doing here is getting the child of this element, and cloning it with this element's props.
33250
+ var p = _objectWithoutPropertiesLoose$1(_this$props2, _excluded$8); // What we're doing here is getting the child of this element, and cloning it with this element's props.
33251
33251
  // We are then defining its children as:
33252
33252
  // 1. Its original children (resizable's child's children), and
33253
33253
  // 2. One or more draggable handles.
@@ -33299,7 +33299,7 @@ var _Resizable = _interopRequireDefault$3(Resizable$2);
33299
33299
 
33300
33300
  var _propTypes2 = propTypes;
33301
33301
 
33302
- var _excluded$6 = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
33302
+ var _excluded$7 = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
33303
33303
 
33304
33304
  function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33305
33305
 
@@ -33392,7 +33392,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
33392
33392
  var resizeHandles = _this$props.resizeHandles,
33393
33393
  style = _this$props.style,
33394
33394
  transformScale = _this$props.transformScale,
33395
- props = _objectWithoutPropertiesLoose(_this$props, _excluded$6);
33395
+ props = _objectWithoutPropertiesLoose(_this$props, _excluded$7);
33396
33396
 
33397
33397
  return /*#__PURE__*/React$2.createElement(_Resizable.default, {
33398
33398
  axis: axis,
@@ -33432,14 +33432,14 @@ reactResizable.exports = function() {
33432
33432
  var Resizable = reactResizable.exports.Resizable = Resizable$2.default;
33433
33433
  reactResizable.exports.ResizableBox = ResizableBox$1.default;
33434
33434
 
33435
- var _excluded$5 = ["onResize", "width", "onResizeStop", "className"],
33435
+ var _excluded$6 = ["onResize", "width", "onResizeStop", "className"],
33436
33436
  _excluded2$1 = ["onResize", "width", "onResizeStop"];
33437
33437
  var HeaderCell = function HeaderCell(props) {
33438
33438
  var onResize = props.onResize,
33439
33439
  width = props.width,
33440
33440
  onResizeStop = props.onResizeStop,
33441
33441
  className = props.className,
33442
- restProps = _objectWithoutProperties$1(props, _excluded$5);
33442
+ restProps = _objectWithoutProperties$1(props, _excluded$6);
33443
33443
  if (!width) {
33444
33444
  return /*#__PURE__*/React__default.createElement("th", _extends$4({}, restProps, {
33445
33445
  className: "drag-handler"
@@ -34105,7 +34105,7 @@ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
34105
34105
  var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
34106
34106
  var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
34107
34107
  var booleanValueOf = Boolean.prototype.valueOf;
34108
- var objectToString = Object.prototype.toString;
34108
+ var objectToString$1 = Object.prototype.toString;
34109
34109
  var functionToString = Function.prototype.toString;
34110
34110
  var $match = String.prototype.match;
34111
34111
  var $slice = String.prototype.slice;
@@ -34324,7 +34324,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
34324
34324
  if (isBoolean(obj)) {
34325
34325
  return markBoxed(booleanValueOf.call(obj));
34326
34326
  }
34327
- if (isString$2(obj)) {
34327
+ if (isString$3(obj)) {
34328
34328
  return markBoxed(inspect(String(obj)));
34329
34329
  }
34330
34330
  if (!isDate(obj) && !isRegExp$2(obj)) {
@@ -34356,7 +34356,7 @@ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTa
34356
34356
  function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34357
34357
  function isRegExp$2(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34358
34358
  function isError$1(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34359
- function isString$2(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34359
+ function isString$3(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34360
34360
  function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34361
34361
  function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
34362
34362
 
@@ -34395,7 +34395,7 @@ function has$3(obj, key) {
34395
34395
  }
34396
34396
 
34397
34397
  function toStr(obj) {
34398
- return objectToString.call(obj);
34398
+ return objectToString$1.call(obj);
34399
34399
  }
34400
34400
 
34401
34401
  function nameOf(f) {
@@ -35689,7 +35689,7 @@ var useTableSort = function useTableSort() {
35689
35689
  };
35690
35690
  };
35691
35691
 
35692
- var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components", "preserveTableStateInQuery"];
35692
+ var _excluded$5 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components", "preserveTableStateInQuery"];
35693
35693
  function ownKeys$2(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; }
35694
35694
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35695
35695
  var TABLE_PAGINATION_HEIGHT = 64;
@@ -35738,7 +35738,7 @@ var Table = function Table(_ref) {
35738
35738
  components = _ref$components === void 0 ? {} : _ref$components,
35739
35739
  _ref$preserveTableSta = _ref.preserveTableStateInQuery,
35740
35740
  preserveTableStateInQuery = _ref$preserveTableSta === void 0 ? false : _ref$preserveTableSta,
35741
- otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
35741
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$5);
35742
35742
  var _useState = useState(null),
35743
35743
  _useState2 = _slicedToArray$2(_useState, 2),
35744
35744
  containerHeight = _useState2[0],
@@ -35936,7 +35936,7 @@ var Table = function Table(_ref) {
35936
35936
  return renderTable();
35937
35937
  };
35938
35938
 
35939
- var _excluded$3 = ["size", "rows", "disabled", "required", "nakedTextarea", "helpText", "error", "label", "className", "maxLength", "unlimitedChars", "labelProps"];
35939
+ var _excluded$4 = ["size", "rows", "disabled", "required", "nakedTextarea", "helpText", "error", "label", "className", "maxLength", "unlimitedChars", "labelProps"];
35940
35940
  var SIZES = {
35941
35941
  small: "small",
35942
35942
  medium: "medium",
@@ -35966,7 +35966,7 @@ var Textarea = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
35966
35966
  _ref$unlimitedChars = _ref.unlimitedChars,
35967
35967
  unlimitedChars = _ref$unlimitedChars === void 0 ? false : _ref$unlimitedChars,
35968
35968
  labelProps = _ref.labelProps,
35969
- otherProps = _objectWithoutProperties$1(_ref, _excluded$3);
35969
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
35970
35970
  var _useState = useState(""),
35971
35971
  _useState2 = _slicedToArray$2(_useState, 2),
35972
35972
  valueInternal = _useState2[0],
@@ -36040,8 +36040,8 @@ var TIME_PICKER_TYPES = {
36040
36040
  time: _DatePicker
36041
36041
  };
36042
36042
 
36043
- var _excluded$2 = ["className", "label", "size", "dropdownClassName", "popupClassName", "format", "interval", "onChange", "type", "nakedInput", "disabled", "error", "defaultValue", "value", "labelProps", "required"];
36044
- var INPUT_SIZES = {
36043
+ var _excluded$3 = ["className", "label", "size", "dropdownClassName", "popupClassName", "format", "interval", "onChange", "type", "nakedInput", "disabled", "error", "defaultValue", "value", "labelProps", "required"];
36044
+ var INPUT_SIZES$1 = {
36045
36045
  small: "small",
36046
36046
  medium: "medium",
36047
36047
  large: "large"
@@ -36051,13 +36051,13 @@ var TIME_PICKER_INTERVAL = {
36051
36051
  minuteStep: 1,
36052
36052
  secondStep: 1
36053
36053
  };
36054
- var TimePicker = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36054
+ var TimePicker$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36055
36055
  var _ref$className = _ref.className,
36056
36056
  className = _ref$className === void 0 ? "" : _ref$className,
36057
36057
  _ref$label = _ref.label,
36058
36058
  label = _ref$label === void 0 ? "" : _ref$label,
36059
36059
  _ref$size = _ref.size,
36060
- size = _ref$size === void 0 ? INPUT_SIZES.medium : _ref$size,
36060
+ size = _ref$size === void 0 ? INPUT_SIZES$1.medium : _ref$size,
36061
36061
  _ref$dropdownClassNam = _ref.dropdownClassName,
36062
36062
  dropdownClassName = _ref$dropdownClassNam === void 0 ? "" : _ref$dropdownClassNam,
36063
36063
  _ref$popupClassName = _ref.popupClassName,
@@ -36081,7 +36081,7 @@ var TimePicker = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36081
36081
  labelProps = _ref.labelProps,
36082
36082
  _ref$required = _ref.required,
36083
36083
  required = _ref$required === void 0 ? false : _ref$required,
36084
- otherProps = _objectWithoutProperties$1(_ref, _excluded$2);
36084
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$3);
36085
36085
  var id = useId(otherProps.id);
36086
36086
  var timePickerRef = useSyncedRef(ref);
36087
36087
  var Component = TIME_PICKER_TYPES[type.toLowerCase()];
@@ -36144,7 +36144,7 @@ var TimePicker = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36144
36144
  mode: undefined,
36145
36145
  panelRender: panelRender,
36146
36146
  picker: "time",
36147
- suffixIcon: /*#__PURE__*/React__default.createElement(Clock, {
36147
+ suffixIcon: /*#__PURE__*/React__default.createElement(Clock$1, {
36148
36148
  size: 16
36149
36149
  }),
36150
36150
  value: convertToDayjsObjects(value)
@@ -36154,7 +36154,2637 @@ var TimePicker = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
36154
36154
  id: errorId
36155
36155
  }, error));
36156
36156
  });
36157
- TimePicker.displayName = "TimePicker";
36157
+ TimePicker$1.displayName = "TimePicker";
36158
+
36159
+ var customParseFormat$1 = {exports: {}};
36160
+
36161
+ (function (module, exports) {
36162
+ !function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
36163
+ } (customParseFormat$1));
36164
+
36165
+ var customParseFormat = customParseFormat$1.exports;
36166
+
36167
+ var __spreadArray$2 = (undefined && undefined.__spreadArray) || function (to, from, pack) {
36168
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
36169
+ if (ar || !(i in from)) {
36170
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
36171
+ ar[i] = from[i];
36172
+ }
36173
+ }
36174
+ return to.concat(ar || Array.prototype.slice.call(from));
36175
+ };
36176
+ // As defined on the list of supported events: https://reactjs.org/docs/events.html
36177
+ var clipboardEvents = ['onCopy', 'onCut', 'onPaste'];
36178
+ var compositionEvents = [
36179
+ 'onCompositionEnd',
36180
+ 'onCompositionStart',
36181
+ 'onCompositionUpdate',
36182
+ ];
36183
+ var focusEvents = ['onFocus', 'onBlur'];
36184
+ var formEvents = ['onInput', 'onInvalid', 'onReset', 'onSubmit'];
36185
+ var imageEvents = ['onLoad', 'onError'];
36186
+ var keyboardEvents = ['onKeyDown', 'onKeyPress', 'onKeyUp'];
36187
+ var mediaEvents = [
36188
+ 'onAbort',
36189
+ 'onCanPlay',
36190
+ 'onCanPlayThrough',
36191
+ 'onDurationChange',
36192
+ 'onEmptied',
36193
+ 'onEncrypted',
36194
+ 'onEnded',
36195
+ 'onError',
36196
+ 'onLoadedData',
36197
+ 'onLoadedMetadata',
36198
+ 'onLoadStart',
36199
+ 'onPause',
36200
+ 'onPlay',
36201
+ 'onPlaying',
36202
+ 'onProgress',
36203
+ 'onRateChange',
36204
+ 'onSeeked',
36205
+ 'onSeeking',
36206
+ 'onStalled',
36207
+ 'onSuspend',
36208
+ 'onTimeUpdate',
36209
+ 'onVolumeChange',
36210
+ 'onWaiting',
36211
+ ];
36212
+ var mouseEvents = [
36213
+ 'onClick',
36214
+ 'onContextMenu',
36215
+ 'onDoubleClick',
36216
+ 'onMouseDown',
36217
+ 'onMouseEnter',
36218
+ 'onMouseLeave',
36219
+ 'onMouseMove',
36220
+ 'onMouseOut',
36221
+ 'onMouseOver',
36222
+ 'onMouseUp',
36223
+ ];
36224
+ var dragEvents = [
36225
+ 'onDrag',
36226
+ 'onDragEnd',
36227
+ 'onDragEnter',
36228
+ 'onDragExit',
36229
+ 'onDragLeave',
36230
+ 'onDragOver',
36231
+ 'onDragStart',
36232
+ 'onDrop',
36233
+ ];
36234
+ var selectionEvents = ['onSelect'];
36235
+ var touchEvents = ['onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart'];
36236
+ var pointerEvents = [
36237
+ 'onPointerDown',
36238
+ 'onPointerMove',
36239
+ 'onPointerUp',
36240
+ 'onPointerCancel',
36241
+ 'onGotPointerCapture',
36242
+ 'onLostPointerCapture',
36243
+ 'onPointerEnter',
36244
+ 'onPointerLeave',
36245
+ 'onPointerOver',
36246
+ 'onPointerOut',
36247
+ ];
36248
+ var uiEvents = ['onScroll'];
36249
+ var wheelEvents = ['onWheel'];
36250
+ var animationEvents = [
36251
+ 'onAnimationStart',
36252
+ 'onAnimationEnd',
36253
+ 'onAnimationIteration',
36254
+ ];
36255
+ var transitionEvents = ['onTransitionEnd'];
36256
+ var otherEvents = ['onToggle'];
36257
+ var changeEvents = ['onChange'];
36258
+ var allEvents = __spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2(__spreadArray$2([], clipboardEvents, true), compositionEvents, true), focusEvents, true), formEvents, true), imageEvents, true), keyboardEvents, true), mediaEvents, true), mouseEvents, true), dragEvents, true), selectionEvents, true), touchEvents, true), pointerEvents, true), uiEvents, true), wheelEvents, true), animationEvents, true), transitionEvents, true), changeEvents, true), otherEvents, true);
36259
+ /**
36260
+ * Returns an object with on-event callback props curried with provided args.
36261
+ * @param {Object} props Props passed to a component.
36262
+ * @param {Function=} getArgs A function that returns argument(s) on-event callbacks
36263
+ * shall be curried with.
36264
+ */
36265
+ function makeEventProps(props, getArgs) {
36266
+ var eventProps = {};
36267
+ allEvents.forEach(function (eventName) {
36268
+ var eventHandler = props[eventName];
36269
+ if (!eventHandler) {
36270
+ return;
36271
+ }
36272
+ if (getArgs) {
36273
+ eventProps[eventName] = (function (event) {
36274
+ return eventHandler(event, getArgs(eventName));
36275
+ });
36276
+ }
36277
+ else {
36278
+ eventProps[eventName] = eventHandler;
36279
+ }
36280
+ });
36281
+ return eventProps;
36282
+ }
36283
+
36284
+ function r$1(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$1(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx$1(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$1(e))&&(n&&(n+=" "),n+=t);return n}
36285
+
36286
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
36287
+
36288
+ /**
36289
+ * Utils
36290
+ */
36291
+ /**
36292
+ * Gets hours from a given date.
36293
+ *
36294
+ * @param {Date | string} date Date to get hours from
36295
+ * @returns {number} Hours
36296
+ */
36297
+ function getHours(date) {
36298
+ if (date instanceof Date) {
36299
+ return date.getHours();
36300
+ }
36301
+ if (typeof date === 'string') {
36302
+ var datePieces = date.split(':');
36303
+ if (datePieces.length >= 2) {
36304
+ var hoursString = datePieces[0];
36305
+ if (hoursString) {
36306
+ var hours = parseInt(hoursString, 10);
36307
+ if (!isNaN(hours)) {
36308
+ return hours;
36309
+ }
36310
+ }
36311
+ }
36312
+ }
36313
+ throw new Error("Failed to get hours from date: ".concat(date, "."));
36314
+ }
36315
+ /**
36316
+ * Gets minutes from a given date.
36317
+ *
36318
+ * @param {Date | string} date Date to get minutes from
36319
+ * @returns {number} Minutes
36320
+ */
36321
+ function getMinutes(date) {
36322
+ if (date instanceof Date) {
36323
+ return date.getMinutes();
36324
+ }
36325
+ if (typeof date === 'string') {
36326
+ var datePieces = date.split(':');
36327
+ if (datePieces.length >= 2) {
36328
+ var minutesString = datePieces[1] || '0';
36329
+ var minutes = parseInt(minutesString, 10);
36330
+ if (!isNaN(minutes)) {
36331
+ return minutes;
36332
+ }
36333
+ }
36334
+ }
36335
+ throw new Error("Failed to get minutes from date: ".concat(date, "."));
36336
+ }
36337
+ /**
36338
+ * Gets seconds from a given date.
36339
+ *
36340
+ * @param {Date | string} date Date to get seconds from
36341
+ * @returns {number} Seconds
36342
+ */
36343
+ function getSeconds(date) {
36344
+ if (date instanceof Date) {
36345
+ return date.getSeconds();
36346
+ }
36347
+ if (typeof date === 'string') {
36348
+ var datePieces = date.split(':');
36349
+ if (datePieces.length >= 2) {
36350
+ var secondsWithMillisecondsString = datePieces[2] || '0';
36351
+ var seconds = parseInt(secondsWithMillisecondsString, 10);
36352
+ if (!isNaN(seconds)) {
36353
+ return seconds;
36354
+ }
36355
+ }
36356
+ }
36357
+ throw new Error("Failed to get seconds from date: ".concat(date, "."));
36358
+ }
36359
+ /**
36360
+ * Gets milliseconds from a given date.
36361
+ *
36362
+ * @param {Date | string} date Date to get milliseconds from
36363
+ * @returns {number} Milliseconds
36364
+ */
36365
+ function getMilliseconds(date) {
36366
+ if (date instanceof Date) {
36367
+ return date.getMilliseconds();
36368
+ }
36369
+ if (typeof date === 'string') {
36370
+ var datePieces = date.split(':');
36371
+ if (datePieces.length >= 2) {
36372
+ var secondsWithMillisecondsString = datePieces[2] || '0';
36373
+ var millisecondsString = secondsWithMillisecondsString.split('.')[1] || '0';
36374
+ var milliseconds = parseInt(millisecondsString, 10);
36375
+ if (!isNaN(milliseconds)) {
36376
+ return milliseconds;
36377
+ }
36378
+ }
36379
+ }
36380
+ throw new Error("Failed to get seconds from date: ".concat(date, "."));
36381
+ }
36382
+ function padStart(num, val) {
36383
+ if (val === void 0) { val = 2; }
36384
+ var numStr = "".concat(num);
36385
+ if (numStr.length >= val) {
36386
+ return num;
36387
+ }
36388
+ return "0000".concat(numStr).slice(-val);
36389
+ }
36390
+ /**
36391
+ * Returns local hours and minutes (hh:mm).
36392
+ *
36393
+ * @param {Date | string} date Date to get hours and minutes from
36394
+ * @returns {string} Local hours and minutes
36395
+ */
36396
+ function getHoursMinutes(date) {
36397
+ var hours = padStart(getHours(date));
36398
+ var minutes = padStart(getMinutes(date));
36399
+ return "".concat(hours, ":").concat(minutes);
36400
+ }
36401
+ /**
36402
+ * Returns local hours, minutes and seconds (hh:mm:ss).
36403
+ *
36404
+ * @param {Date | string} date Date to get hours, minutes and seconds from
36405
+ * @returns {string} Local hours, minutes and seconds
36406
+ */
36407
+ function getHoursMinutesSeconds(date) {
36408
+ var hours = padStart(getHours(date));
36409
+ var minutes = padStart(getMinutes(date));
36410
+ var seconds = padStart(getSeconds(date));
36411
+ return "".concat(hours, ":").concat(minutes, ":").concat(seconds);
36412
+ }
36413
+
36414
+ function Hand(_a) {
36415
+ var _b = _a.angle, angle = _b === void 0 ? 0 : _b, name = _a.name, _c = _a.length, length = _c === void 0 ? 100 : _c, _d = _a.oppositeLength, oppositeLength = _d === void 0 ? 10 : _d, _e = _a.width, width = _e === void 0 ? 1 : _e;
36416
+ return (React__default.createElement("div", { className: "react-clock__hand react-clock__".concat(name, "-hand"), style: {
36417
+ transform: "rotate(".concat(angle, "deg)"),
36418
+ } },
36419
+ React__default.createElement("div", { className: "react-clock__hand__body react-clock__".concat(name, "-hand__body"), style: {
36420
+ width: "".concat(width, "px"),
36421
+ top: "".concat(50 - length / 2, "%"),
36422
+ bottom: "".concat(50 - oppositeLength / 2, "%"),
36423
+ } })));
36424
+ }
36425
+
36426
+ function Mark(_a) {
36427
+ var _b = _a.angle, angle = _b === void 0 ? 0 : _b, _c = _a.length, length = _c === void 0 ? 10 : _c, name = _a.name, _d = _a.width, width = _d === void 0 ? 1 : _d, number = _a.number;
36428
+ return (React__default.createElement("div", { className: "react-clock__mark react-clock__".concat(name, "-mark"), style: {
36429
+ transform: "rotate(".concat(angle, "deg)"),
36430
+ } },
36431
+ React__default.createElement("div", { className: "react-clock__mark__body react-clock__".concat(name, "-mark__body"), style: {
36432
+ width: "".concat(width, "px"),
36433
+ top: 0,
36434
+ bottom: "".concat(100 - length / 2, "%"),
36435
+ } }),
36436
+ number ? (React__default.createElement("div", { className: "react-clock__mark__number", style: {
36437
+ transform: "rotate(-".concat(angle, "deg)"),
36438
+ top: "".concat(length / 2, "%"),
36439
+ } }, number)) : null));
36440
+ }
36441
+
36442
+ var __assign$8 = (undefined && undefined.__assign) || function () {
36443
+ __assign$8 = Object.assign || function(t) {
36444
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
36445
+ s = arguments[i];
36446
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
36447
+ t[p] = s[p];
36448
+ }
36449
+ return t;
36450
+ };
36451
+ return __assign$8.apply(this, arguments);
36452
+ };
36453
+ var MinuteMark = memo$1(function MinuteMark(props) {
36454
+ return React__default.createElement(Mark, __assign$8({}, props));
36455
+ });
36456
+
36457
+ /**
36458
+ * lodash (Custom Build) <https://lodash.com/>
36459
+ * Build: `lodash modularize exports="npm" -o ./`
36460
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
36461
+ * Released under MIT license <https://lodash.com/license>
36462
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
36463
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
36464
+ */
36465
+
36466
+ /** Used as the `TypeError` message for "Functions" methods. */
36467
+ var FUNC_ERROR_TEXT = 'Expected a function';
36468
+
36469
+ /** Used to stand-in for `undefined` hash values. */
36470
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
36471
+
36472
+ /** `Object#toString` result references. */
36473
+ var funcTag = '[object Function]',
36474
+ genTag = '[object GeneratorFunction]';
36475
+
36476
+ /**
36477
+ * Used to match `RegExp`
36478
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
36479
+ */
36480
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
36481
+
36482
+ /** Used to detect host constructors (Safari). */
36483
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
36484
+
36485
+ /** Detect free variable `global` from Node.js. */
36486
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
36487
+
36488
+ /** Detect free variable `self`. */
36489
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
36490
+
36491
+ /** Used as a reference to the global object. */
36492
+ var root = freeGlobal || freeSelf || Function('return this')();
36493
+
36494
+ /**
36495
+ * Gets the value at `key` of `object`.
36496
+ *
36497
+ * @private
36498
+ * @param {Object} [object] The object to query.
36499
+ * @param {string} key The key of the property to get.
36500
+ * @returns {*} Returns the property value.
36501
+ */
36502
+ function getValue(object, key) {
36503
+ return object == null ? undefined : object[key];
36504
+ }
36505
+
36506
+ /**
36507
+ * Checks if `value` is a host object in IE < 9.
36508
+ *
36509
+ * @private
36510
+ * @param {*} value The value to check.
36511
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
36512
+ */
36513
+ function isHostObject(value) {
36514
+ // Many host objects are `Object` objects that can coerce to strings
36515
+ // despite having improperly defined `toString` methods.
36516
+ var result = false;
36517
+ if (value != null && typeof value.toString != 'function') {
36518
+ try {
36519
+ result = !!(value + '');
36520
+ } catch (e) {}
36521
+ }
36522
+ return result;
36523
+ }
36524
+
36525
+ /** Used for built-in method references. */
36526
+ var arrayProto = Array.prototype,
36527
+ funcProto = Function.prototype,
36528
+ objectProto = Object.prototype;
36529
+
36530
+ /** Used to detect overreaching core-js shims. */
36531
+ var coreJsData = root['__core-js_shared__'];
36532
+
36533
+ /** Used to detect methods masquerading as native. */
36534
+ var maskSrcKey = (function() {
36535
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
36536
+ return uid ? ('Symbol(src)_1.' + uid) : '';
36537
+ }());
36538
+
36539
+ /** Used to resolve the decompiled source of functions. */
36540
+ var funcToString = funcProto.toString;
36541
+
36542
+ /** Used to check objects for own properties. */
36543
+ var hasOwnProperty = objectProto.hasOwnProperty;
36544
+
36545
+ /**
36546
+ * Used to resolve the
36547
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
36548
+ * of values.
36549
+ */
36550
+ var objectToString = objectProto.toString;
36551
+
36552
+ /** Used to detect if a method is native. */
36553
+ var reIsNative = RegExp('^' +
36554
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
36555
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
36556
+ );
36557
+
36558
+ /** Built-in value references. */
36559
+ var splice = arrayProto.splice;
36560
+
36561
+ /* Built-in method references that are verified to be native. */
36562
+ var Map$1 = getNative(root, 'Map'),
36563
+ nativeCreate = getNative(Object, 'create');
36564
+
36565
+ /**
36566
+ * Creates a hash object.
36567
+ *
36568
+ * @private
36569
+ * @constructor
36570
+ * @param {Array} [entries] The key-value pairs to cache.
36571
+ */
36572
+ function Hash(entries) {
36573
+ var index = -1,
36574
+ length = entries ? entries.length : 0;
36575
+
36576
+ this.clear();
36577
+ while (++index < length) {
36578
+ var entry = entries[index];
36579
+ this.set(entry[0], entry[1]);
36580
+ }
36581
+ }
36582
+
36583
+ /**
36584
+ * Removes all key-value entries from the hash.
36585
+ *
36586
+ * @private
36587
+ * @name clear
36588
+ * @memberOf Hash
36589
+ */
36590
+ function hashClear() {
36591
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
36592
+ }
36593
+
36594
+ /**
36595
+ * Removes `key` and its value from the hash.
36596
+ *
36597
+ * @private
36598
+ * @name delete
36599
+ * @memberOf Hash
36600
+ * @param {Object} hash The hash to modify.
36601
+ * @param {string} key The key of the value to remove.
36602
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
36603
+ */
36604
+ function hashDelete(key) {
36605
+ return this.has(key) && delete this.__data__[key];
36606
+ }
36607
+
36608
+ /**
36609
+ * Gets the hash value for `key`.
36610
+ *
36611
+ * @private
36612
+ * @name get
36613
+ * @memberOf Hash
36614
+ * @param {string} key The key of the value to get.
36615
+ * @returns {*} Returns the entry value.
36616
+ */
36617
+ function hashGet(key) {
36618
+ var data = this.__data__;
36619
+ if (nativeCreate) {
36620
+ var result = data[key];
36621
+ return result === HASH_UNDEFINED ? undefined : result;
36622
+ }
36623
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
36624
+ }
36625
+
36626
+ /**
36627
+ * Checks if a hash value for `key` exists.
36628
+ *
36629
+ * @private
36630
+ * @name has
36631
+ * @memberOf Hash
36632
+ * @param {string} key The key of the entry to check.
36633
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
36634
+ */
36635
+ function hashHas(key) {
36636
+ var data = this.__data__;
36637
+ return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
36638
+ }
36639
+
36640
+ /**
36641
+ * Sets the hash `key` to `value`.
36642
+ *
36643
+ * @private
36644
+ * @name set
36645
+ * @memberOf Hash
36646
+ * @param {string} key The key of the value to set.
36647
+ * @param {*} value The value to set.
36648
+ * @returns {Object} Returns the hash instance.
36649
+ */
36650
+ function hashSet(key, value) {
36651
+ var data = this.__data__;
36652
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
36653
+ return this;
36654
+ }
36655
+
36656
+ // Add methods to `Hash`.
36657
+ Hash.prototype.clear = hashClear;
36658
+ Hash.prototype['delete'] = hashDelete;
36659
+ Hash.prototype.get = hashGet;
36660
+ Hash.prototype.has = hashHas;
36661
+ Hash.prototype.set = hashSet;
36662
+
36663
+ /**
36664
+ * Creates an list cache object.
36665
+ *
36666
+ * @private
36667
+ * @constructor
36668
+ * @param {Array} [entries] The key-value pairs to cache.
36669
+ */
36670
+ function ListCache(entries) {
36671
+ var index = -1,
36672
+ length = entries ? entries.length : 0;
36673
+
36674
+ this.clear();
36675
+ while (++index < length) {
36676
+ var entry = entries[index];
36677
+ this.set(entry[0], entry[1]);
36678
+ }
36679
+ }
36680
+
36681
+ /**
36682
+ * Removes all key-value entries from the list cache.
36683
+ *
36684
+ * @private
36685
+ * @name clear
36686
+ * @memberOf ListCache
36687
+ */
36688
+ function listCacheClear() {
36689
+ this.__data__ = [];
36690
+ }
36691
+
36692
+ /**
36693
+ * Removes `key` and its value from the list cache.
36694
+ *
36695
+ * @private
36696
+ * @name delete
36697
+ * @memberOf ListCache
36698
+ * @param {string} key The key of the value to remove.
36699
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
36700
+ */
36701
+ function listCacheDelete(key) {
36702
+ var data = this.__data__,
36703
+ index = assocIndexOf(data, key);
36704
+
36705
+ if (index < 0) {
36706
+ return false;
36707
+ }
36708
+ var lastIndex = data.length - 1;
36709
+ if (index == lastIndex) {
36710
+ data.pop();
36711
+ } else {
36712
+ splice.call(data, index, 1);
36713
+ }
36714
+ return true;
36715
+ }
36716
+
36717
+ /**
36718
+ * Gets the list cache value for `key`.
36719
+ *
36720
+ * @private
36721
+ * @name get
36722
+ * @memberOf ListCache
36723
+ * @param {string} key The key of the value to get.
36724
+ * @returns {*} Returns the entry value.
36725
+ */
36726
+ function listCacheGet(key) {
36727
+ var data = this.__data__,
36728
+ index = assocIndexOf(data, key);
36729
+
36730
+ return index < 0 ? undefined : data[index][1];
36731
+ }
36732
+
36733
+ /**
36734
+ * Checks if a list cache value for `key` exists.
36735
+ *
36736
+ * @private
36737
+ * @name has
36738
+ * @memberOf ListCache
36739
+ * @param {string} key The key of the entry to check.
36740
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
36741
+ */
36742
+ function listCacheHas(key) {
36743
+ return assocIndexOf(this.__data__, key) > -1;
36744
+ }
36745
+
36746
+ /**
36747
+ * Sets the list cache `key` to `value`.
36748
+ *
36749
+ * @private
36750
+ * @name set
36751
+ * @memberOf ListCache
36752
+ * @param {string} key The key of the value to set.
36753
+ * @param {*} value The value to set.
36754
+ * @returns {Object} Returns the list cache instance.
36755
+ */
36756
+ function listCacheSet(key, value) {
36757
+ var data = this.__data__,
36758
+ index = assocIndexOf(data, key);
36759
+
36760
+ if (index < 0) {
36761
+ data.push([key, value]);
36762
+ } else {
36763
+ data[index][1] = value;
36764
+ }
36765
+ return this;
36766
+ }
36767
+
36768
+ // Add methods to `ListCache`.
36769
+ ListCache.prototype.clear = listCacheClear;
36770
+ ListCache.prototype['delete'] = listCacheDelete;
36771
+ ListCache.prototype.get = listCacheGet;
36772
+ ListCache.prototype.has = listCacheHas;
36773
+ ListCache.prototype.set = listCacheSet;
36774
+
36775
+ /**
36776
+ * Creates a map cache object to store key-value pairs.
36777
+ *
36778
+ * @private
36779
+ * @constructor
36780
+ * @param {Array} [entries] The key-value pairs to cache.
36781
+ */
36782
+ function MapCache(entries) {
36783
+ var index = -1,
36784
+ length = entries ? entries.length : 0;
36785
+
36786
+ this.clear();
36787
+ while (++index < length) {
36788
+ var entry = entries[index];
36789
+ this.set(entry[0], entry[1]);
36790
+ }
36791
+ }
36792
+
36793
+ /**
36794
+ * Removes all key-value entries from the map.
36795
+ *
36796
+ * @private
36797
+ * @name clear
36798
+ * @memberOf MapCache
36799
+ */
36800
+ function mapCacheClear() {
36801
+ this.__data__ = {
36802
+ 'hash': new Hash,
36803
+ 'map': new (Map$1 || ListCache),
36804
+ 'string': new Hash
36805
+ };
36806
+ }
36807
+
36808
+ /**
36809
+ * Removes `key` and its value from the map.
36810
+ *
36811
+ * @private
36812
+ * @name delete
36813
+ * @memberOf MapCache
36814
+ * @param {string} key The key of the value to remove.
36815
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
36816
+ */
36817
+ function mapCacheDelete(key) {
36818
+ return getMapData(this, key)['delete'](key);
36819
+ }
36820
+
36821
+ /**
36822
+ * Gets the map value for `key`.
36823
+ *
36824
+ * @private
36825
+ * @name get
36826
+ * @memberOf MapCache
36827
+ * @param {string} key The key of the value to get.
36828
+ * @returns {*} Returns the entry value.
36829
+ */
36830
+ function mapCacheGet(key) {
36831
+ return getMapData(this, key).get(key);
36832
+ }
36833
+
36834
+ /**
36835
+ * Checks if a map value for `key` exists.
36836
+ *
36837
+ * @private
36838
+ * @name has
36839
+ * @memberOf MapCache
36840
+ * @param {string} key The key of the entry to check.
36841
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
36842
+ */
36843
+ function mapCacheHas(key) {
36844
+ return getMapData(this, key).has(key);
36845
+ }
36846
+
36847
+ /**
36848
+ * Sets the map `key` to `value`.
36849
+ *
36850
+ * @private
36851
+ * @name set
36852
+ * @memberOf MapCache
36853
+ * @param {string} key The key of the value to set.
36854
+ * @param {*} value The value to set.
36855
+ * @returns {Object} Returns the map cache instance.
36856
+ */
36857
+ function mapCacheSet(key, value) {
36858
+ getMapData(this, key).set(key, value);
36859
+ return this;
36860
+ }
36861
+
36862
+ // Add methods to `MapCache`.
36863
+ MapCache.prototype.clear = mapCacheClear;
36864
+ MapCache.prototype['delete'] = mapCacheDelete;
36865
+ MapCache.prototype.get = mapCacheGet;
36866
+ MapCache.prototype.has = mapCacheHas;
36867
+ MapCache.prototype.set = mapCacheSet;
36868
+
36869
+ /**
36870
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
36871
+ *
36872
+ * @private
36873
+ * @param {Array} array The array to inspect.
36874
+ * @param {*} key The key to search for.
36875
+ * @returns {number} Returns the index of the matched value, else `-1`.
36876
+ */
36877
+ function assocIndexOf(array, key) {
36878
+ var length = array.length;
36879
+ while (length--) {
36880
+ if (eq(array[length][0], key)) {
36881
+ return length;
36882
+ }
36883
+ }
36884
+ return -1;
36885
+ }
36886
+
36887
+ /**
36888
+ * The base implementation of `_.isNative` without bad shim checks.
36889
+ *
36890
+ * @private
36891
+ * @param {*} value The value to check.
36892
+ * @returns {boolean} Returns `true` if `value` is a native function,
36893
+ * else `false`.
36894
+ */
36895
+ function baseIsNative(value) {
36896
+ if (!isObject$1(value) || isMasked(value)) {
36897
+ return false;
36898
+ }
36899
+ var pattern = (isFunction$1(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
36900
+ return pattern.test(toSource(value));
36901
+ }
36902
+
36903
+ /**
36904
+ * Gets the data for `map`.
36905
+ *
36906
+ * @private
36907
+ * @param {Object} map The map to query.
36908
+ * @param {string} key The reference key.
36909
+ * @returns {*} Returns the map data.
36910
+ */
36911
+ function getMapData(map, key) {
36912
+ var data = map.__data__;
36913
+ return isKeyable(key)
36914
+ ? data[typeof key == 'string' ? 'string' : 'hash']
36915
+ : data.map;
36916
+ }
36917
+
36918
+ /**
36919
+ * Gets the native function at `key` of `object`.
36920
+ *
36921
+ * @private
36922
+ * @param {Object} object The object to query.
36923
+ * @param {string} key The key of the method to get.
36924
+ * @returns {*} Returns the function if it's native, else `undefined`.
36925
+ */
36926
+ function getNative(object, key) {
36927
+ var value = getValue(object, key);
36928
+ return baseIsNative(value) ? value : undefined;
36929
+ }
36930
+
36931
+ /**
36932
+ * Checks if `value` is suitable for use as unique object key.
36933
+ *
36934
+ * @private
36935
+ * @param {*} value The value to check.
36936
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
36937
+ */
36938
+ function isKeyable(value) {
36939
+ var type = typeof value;
36940
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
36941
+ ? (value !== '__proto__')
36942
+ : (value === null);
36943
+ }
36944
+
36945
+ /**
36946
+ * Checks if `func` has its source masked.
36947
+ *
36948
+ * @private
36949
+ * @param {Function} func The function to check.
36950
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
36951
+ */
36952
+ function isMasked(func) {
36953
+ return !!maskSrcKey && (maskSrcKey in func);
36954
+ }
36955
+
36956
+ /**
36957
+ * Converts `func` to its source code.
36958
+ *
36959
+ * @private
36960
+ * @param {Function} func The function to process.
36961
+ * @returns {string} Returns the source code.
36962
+ */
36963
+ function toSource(func) {
36964
+ if (func != null) {
36965
+ try {
36966
+ return funcToString.call(func);
36967
+ } catch (e) {}
36968
+ try {
36969
+ return (func + '');
36970
+ } catch (e) {}
36971
+ }
36972
+ return '';
36973
+ }
36974
+
36975
+ /**
36976
+ * Creates a function that memoizes the result of `func`. If `resolver` is
36977
+ * provided, it determines the cache key for storing the result based on the
36978
+ * arguments provided to the memoized function. By default, the first argument
36979
+ * provided to the memoized function is used as the map cache key. The `func`
36980
+ * is invoked with the `this` binding of the memoized function.
36981
+ *
36982
+ * **Note:** The cache is exposed as the `cache` property on the memoized
36983
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
36984
+ * constructor with one whose instances implement the
36985
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
36986
+ * method interface of `delete`, `get`, `has`, and `set`.
36987
+ *
36988
+ * @static
36989
+ * @memberOf _
36990
+ * @since 0.1.0
36991
+ * @category Function
36992
+ * @param {Function} func The function to have its output memoized.
36993
+ * @param {Function} [resolver] The function to resolve the cache key.
36994
+ * @returns {Function} Returns the new memoized function.
36995
+ * @example
36996
+ *
36997
+ * var object = { 'a': 1, 'b': 2 };
36998
+ * var other = { 'c': 3, 'd': 4 };
36999
+ *
37000
+ * var values = _.memoize(_.values);
37001
+ * values(object);
37002
+ * // => [1, 2]
37003
+ *
37004
+ * values(other);
37005
+ * // => [3, 4]
37006
+ *
37007
+ * object.a = 2;
37008
+ * values(object);
37009
+ * // => [1, 2]
37010
+ *
37011
+ * // Modify the result cache.
37012
+ * values.cache.set(object, ['a', 'b']);
37013
+ * values(object);
37014
+ * // => ['a', 'b']
37015
+ *
37016
+ * // Replace `_.memoize.Cache`.
37017
+ * _.memoize.Cache = WeakMap;
37018
+ */
37019
+ function memoize(func, resolver) {
37020
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
37021
+ throw new TypeError(FUNC_ERROR_TEXT);
37022
+ }
37023
+ var memoized = function() {
37024
+ var args = arguments,
37025
+ key = resolver ? resolver.apply(this, args) : args[0],
37026
+ cache = memoized.cache;
37027
+
37028
+ if (cache.has(key)) {
37029
+ return cache.get(key);
37030
+ }
37031
+ var result = func.apply(this, args);
37032
+ memoized.cache = cache.set(key, result);
37033
+ return result;
37034
+ };
37035
+ memoized.cache = new (memoize.Cache || MapCache);
37036
+ return memoized;
37037
+ }
37038
+
37039
+ // Assign cache to `_.memoize`.
37040
+ memoize.Cache = MapCache;
37041
+
37042
+ /**
37043
+ * Performs a
37044
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
37045
+ * comparison between two values to determine if they are equivalent.
37046
+ *
37047
+ * @static
37048
+ * @memberOf _
37049
+ * @since 4.0.0
37050
+ * @category Lang
37051
+ * @param {*} value The value to compare.
37052
+ * @param {*} other The other value to compare.
37053
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
37054
+ * @example
37055
+ *
37056
+ * var object = { 'a': 1 };
37057
+ * var other = { 'a': 1 };
37058
+ *
37059
+ * _.eq(object, object);
37060
+ * // => true
37061
+ *
37062
+ * _.eq(object, other);
37063
+ * // => false
37064
+ *
37065
+ * _.eq('a', 'a');
37066
+ * // => true
37067
+ *
37068
+ * _.eq('a', Object('a'));
37069
+ * // => false
37070
+ *
37071
+ * _.eq(NaN, NaN);
37072
+ * // => true
37073
+ */
37074
+ function eq(value, other) {
37075
+ return value === other || (value !== value && other !== other);
37076
+ }
37077
+
37078
+ /**
37079
+ * Checks if `value` is classified as a `Function` object.
37080
+ *
37081
+ * @static
37082
+ * @memberOf _
37083
+ * @since 0.1.0
37084
+ * @category Lang
37085
+ * @param {*} value The value to check.
37086
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
37087
+ * @example
37088
+ *
37089
+ * _.isFunction(_);
37090
+ * // => true
37091
+ *
37092
+ * _.isFunction(/abc/);
37093
+ * // => false
37094
+ */
37095
+ function isFunction$1(value) {
37096
+ // The use of `Object#toString` avoids issues with the `typeof` operator
37097
+ // in Safari 8-9 which returns 'object' for typed array and other constructors.
37098
+ var tag = isObject$1(value) ? objectToString.call(value) : '';
37099
+ return tag == funcTag || tag == genTag;
37100
+ }
37101
+
37102
+ /**
37103
+ * Checks if `value` is the
37104
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
37105
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
37106
+ *
37107
+ * @static
37108
+ * @memberOf _
37109
+ * @since 0.1.0
37110
+ * @category Lang
37111
+ * @param {*} value The value to check.
37112
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
37113
+ * @example
37114
+ *
37115
+ * _.isObject({});
37116
+ * // => true
37117
+ *
37118
+ * _.isObject([1, 2, 3]);
37119
+ * // => true
37120
+ *
37121
+ * _.isObject(_.noop);
37122
+ * // => true
37123
+ *
37124
+ * _.isObject(null);
37125
+ * // => false
37126
+ */
37127
+ function isObject$1(value) {
37128
+ var type = typeof value;
37129
+ return !!value && (type == 'object' || type == 'function');
37130
+ }
37131
+
37132
+ var lodash_memoize = memoize;
37133
+
37134
+ function resolver(options) {
37135
+ return JSON.stringify(options);
37136
+ }
37137
+ function isString$2(el) {
37138
+ return typeof el === 'string';
37139
+ }
37140
+ function isUnique(el, index, arr) {
37141
+ return arr.indexOf(el) === index;
37142
+ }
37143
+ function isAllLowerCase(el) {
37144
+ return el.toLowerCase() === el;
37145
+ }
37146
+ function fixCommas(el) {
37147
+ return el.indexOf(',') === -1 ? el : el.split(',');
37148
+ }
37149
+ function normalizeLocale(locale) {
37150
+ if (!locale) {
37151
+ return locale;
37152
+ }
37153
+ if (locale === 'C' || locale === 'posix' || locale === 'POSIX') {
37154
+ return 'en-US';
37155
+ }
37156
+ // If there's a dot (.) in the locale, it's likely in the format of "en-US.UTF-8", so we only take the first part
37157
+ if (locale.indexOf('.') !== -1) {
37158
+ var _a = locale.split('.')[0], actualLocale = _a === void 0 ? '' : _a;
37159
+ return normalizeLocale(actualLocale);
37160
+ }
37161
+ // If there's an at sign (@) in the locale, it's likely in the format of "en-US@posix", so we only take the first part
37162
+ if (locale.indexOf('@') !== -1) {
37163
+ var _b = locale.split('@')[0], actualLocale = _b === void 0 ? '' : _b;
37164
+ return normalizeLocale(actualLocale);
37165
+ }
37166
+ // If there's a dash (-) in the locale and it's not all lower case, it's already in the format of "en-US", so we return it
37167
+ if (locale.indexOf('-') === -1 || !isAllLowerCase(locale)) {
37168
+ return locale;
37169
+ }
37170
+ var _c = locale.split('-'), splitEl1 = _c[0], _d = _c[1], splitEl2 = _d === void 0 ? '' : _d;
37171
+ return "".concat(splitEl1, "-").concat(splitEl2.toUpperCase());
37172
+ }
37173
+ function getUserLocalesInternal(_a) {
37174
+ var _b = _a === void 0 ? {} : _a, _c = _b.useFallbackLocale, useFallbackLocale = _c === void 0 ? true : _c, _d = _b.fallbackLocale, fallbackLocale = _d === void 0 ? 'en-US' : _d;
37175
+ var languageList = [];
37176
+ if (typeof navigator !== 'undefined') {
37177
+ var rawLanguages = navigator.languages || [];
37178
+ var languages = [];
37179
+ for (var _i = 0, rawLanguages_1 = rawLanguages; _i < rawLanguages_1.length; _i++) {
37180
+ var rawLanguagesItem = rawLanguages_1[_i];
37181
+ languages = languages.concat(fixCommas(rawLanguagesItem));
37182
+ }
37183
+ var rawLanguage = navigator.language;
37184
+ var language = rawLanguage ? fixCommas(rawLanguage) : rawLanguage;
37185
+ languageList = languageList.concat(languages, language);
37186
+ }
37187
+ if (useFallbackLocale) {
37188
+ languageList.push(fallbackLocale);
37189
+ }
37190
+ return languageList.filter(isString$2).map(normalizeLocale).filter(isUnique);
37191
+ }
37192
+ var getUserLocales = lodash_memoize(getUserLocalesInternal, resolver);
37193
+ function getUserLocaleInternal(options) {
37194
+ return getUserLocales(options)[0] || null;
37195
+ }
37196
+ var getUserLocale = lodash_memoize(getUserLocaleInternal, resolver);
37197
+
37198
+ function formatHour(locale, hour) {
37199
+ return hour.toLocaleString(locale || getUserLocale() || undefined);
37200
+ }
37201
+
37202
+ var __assign$7 = (undefined && undefined.__assign) || function () {
37203
+ __assign$7 = Object.assign || function(t) {
37204
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37205
+ s = arguments[i];
37206
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
37207
+ t[p] = s[p];
37208
+ }
37209
+ return t;
37210
+ };
37211
+ return __assign$7.apply(this, arguments);
37212
+ };
37213
+ var __rest$6 = (undefined && undefined.__rest) || function (s, e) {
37214
+ var t = {};
37215
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37216
+ t[p] = s[p];
37217
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37218
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
37219
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
37220
+ t[p[i]] = s[p[i]];
37221
+ }
37222
+ return t;
37223
+ };
37224
+ var HourMark = memo$1(function HourMark(_a) {
37225
+ var _b = _a.formatHour, formatHour$1 = _b === void 0 ? formatHour : _b, locale = _a.locale, number = _a.number, otherProps = __rest$6(_a, ["formatHour", "locale", "number"]);
37226
+ return React__default.createElement(Mark, __assign$7({ number: number ? formatHour$1(locale, number) : null }, otherProps));
37227
+ });
37228
+
37229
+ function isNumberBetween(min, max) {
37230
+ return function (props, propName, componentName) {
37231
+ var _a = props, _b = propName, value = _a[_b];
37232
+ if (typeof value !== 'undefined') {
37233
+ if (typeof value !== 'number') {
37234
+ return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof value, "` supplied to `").concat(componentName, "`, expected `number`."));
37235
+ }
37236
+ if (value < min || value > max) {
37237
+ return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof value, "` supplied to `").concat(componentName, "`, length must be between ").concat(min, " and ").concat(max, "."));
37238
+ }
37239
+ }
37240
+ // Everything is fine
37241
+ return null;
37242
+ };
37243
+ }
37244
+ var isHandLength = isNumberBetween(0, 100);
37245
+ var isOppositeHandLength = isNumberBetween(-100, 100);
37246
+ var isHandWidth = function isHandWidth(props, propName, componentName) {
37247
+ var _a = props, _b = propName, width = _a[_b];
37248
+ if (typeof width !== 'undefined') {
37249
+ if (typeof width !== 'number') {
37250
+ return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof width, "` supplied to `").concat(componentName, "`, expected `number`."));
37251
+ }
37252
+ if (width < 0) {
37253
+ return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof width, "` supplied to `").concat(componentName, "`, width must be greater or equal to 0."));
37254
+ }
37255
+ }
37256
+ // Everything is fine
37257
+ return null;
37258
+ };
37259
+ var isMarkLength = isHandLength;
37260
+ var isMarkWidth = isHandWidth;
37261
+
37262
+ var Clock = function Clock(_a) {
37263
+ var className = _a.className, formatHour = _a.formatHour, _b = _a.hourHandLength, hourHandLength = _b === void 0 ? 50 : _b, hourHandOppositeLength = _a.hourHandOppositeLength, _c = _a.hourHandWidth, hourHandWidth = _c === void 0 ? 4 : _c, _d = _a.hourMarksLength, hourMarksLength = _d === void 0 ? 10 : _d, _e = _a.hourMarksWidth, hourMarksWidth = _e === void 0 ? 3 : _e, locale = _a.locale, _f = _a.minuteHandLength, minuteHandLength = _f === void 0 ? 70 : _f, minuteHandOppositeLength = _a.minuteHandOppositeLength, _g = _a.minuteHandWidth, minuteHandWidth = _g === void 0 ? 2 : _g, _h = _a.minuteMarksLength, minuteMarksLength = _h === void 0 ? 6 : _h, _j = _a.minuteMarksWidth, minuteMarksWidth = _j === void 0 ? 1 : _j, _k = _a.renderHourMarks, renderHourMarks = _k === void 0 ? true : _k, _l = _a.renderMinuteHand, renderMinuteHand = _l === void 0 ? true : _l, _m = _a.renderMinuteMarks, renderMinuteMarks = _m === void 0 ? true : _m, renderNumbers = _a.renderNumbers, _o = _a.renderSecondHand, renderSecondHand = _o === void 0 ? true : _o, _p = _a.secondHandLength, secondHandLength = _p === void 0 ? 90 : _p, secondHandOppositeLength = _a.secondHandOppositeLength, _q = _a.secondHandWidth, secondHandWidth = _q === void 0 ? 1 : _q, _r = _a.size, size = _r === void 0 ? 150 : _r, useMillisecondPrecision = _a.useMillisecondPrecision, value = _a.value;
37264
+ function renderMinuteMarksFn() {
37265
+ if (!renderMinuteMarks) {
37266
+ return null;
37267
+ }
37268
+ var minuteMarks = [];
37269
+ for (var i = 1; i <= 60; i += 1) {
37270
+ var isHourMark = renderHourMarks && !(i % 5);
37271
+ if (!isHourMark) {
37272
+ minuteMarks.push(React__default.createElement(MinuteMark, { key: "minute_".concat(i), angle: i * 6, length: minuteMarksLength, name: "minute", width: minuteMarksWidth }));
37273
+ }
37274
+ }
37275
+ return minuteMarks;
37276
+ }
37277
+ function renderHourMarksFn() {
37278
+ if (!renderHourMarks) {
37279
+ return null;
37280
+ }
37281
+ var hourMarks = [];
37282
+ for (var i = 1; i <= 12; i += 1) {
37283
+ hourMarks.push(React__default.createElement(HourMark, { key: "hour_".concat(i), angle: i * 30, formatHour: formatHour, length: hourMarksLength, locale: locale, name: "hour", number: renderNumbers ? i : undefined, width: hourMarksWidth }));
37284
+ }
37285
+ return hourMarks;
37286
+ }
37287
+ function renderFace() {
37288
+ return (React__default.createElement("div", { className: "react-clock__face" },
37289
+ renderMinuteMarksFn(),
37290
+ renderHourMarksFn()));
37291
+ }
37292
+ function renderHourHandFn() {
37293
+ var angle = value
37294
+ ? getHours(value) * 30 +
37295
+ getMinutes(value) / 2 +
37296
+ getSeconds(value) / 120 +
37297
+ (useMillisecondPrecision ? getMilliseconds(value) / 120000 : 0)
37298
+ : 0;
37299
+ return (React__default.createElement(Hand, { angle: angle, length: hourHandLength, name: "hour", oppositeLength: hourHandOppositeLength, width: hourHandWidth }));
37300
+ }
37301
+ function renderMinuteHandFn() {
37302
+ if (!renderMinuteHand) {
37303
+ return null;
37304
+ }
37305
+ var angle = value
37306
+ ? getHours(value) * 360 +
37307
+ getMinutes(value) * 6 +
37308
+ getSeconds(value) / 10 +
37309
+ (useMillisecondPrecision ? getMilliseconds(value) / 10000 : 0)
37310
+ : 0;
37311
+ return (React__default.createElement(Hand, { angle: angle, length: minuteHandLength, name: "minute", oppositeLength: minuteHandOppositeLength, width: minuteHandWidth }));
37312
+ }
37313
+ function renderSecondHandFn() {
37314
+ if (!renderSecondHand) {
37315
+ return null;
37316
+ }
37317
+ var angle = value
37318
+ ? getMinutes(value) * 360 +
37319
+ getSeconds(value) * 6 +
37320
+ (useMillisecondPrecision ? getMilliseconds(value) * 0.006 : 0)
37321
+ : 0;
37322
+ return (React__default.createElement(Hand, { angle: angle, length: secondHandLength, name: "second", oppositeLength: secondHandOppositeLength, width: secondHandWidth }));
37323
+ }
37324
+ return (React__default.createElement("time", { className: clsx('react-clock', className), dateTime: value instanceof Date ? value.toISOString() : value || undefined, style: {
37325
+ width: size,
37326
+ height: size,
37327
+ } },
37328
+ renderFace(),
37329
+ renderHourHandFn(),
37330
+ renderMinuteHandFn(),
37331
+ renderSecondHandFn()));
37332
+ };
37333
+ Clock.propTypes = {
37334
+ className: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.arrayOf(propTypes$1.exports.string)]),
37335
+ formatHour: propTypes$1.exports.func,
37336
+ hourHandLength: isHandLength,
37337
+ hourHandOppositeLength: isOppositeHandLength,
37338
+ hourHandWidth: isHandWidth,
37339
+ hourMarksLength: isMarkLength,
37340
+ hourMarksWidth: isMarkWidth,
37341
+ locale: propTypes$1.exports.string,
37342
+ minuteHandLength: isHandLength,
37343
+ minuteHandOppositeLength: isOppositeHandLength,
37344
+ minuteHandWidth: isHandWidth,
37345
+ minuteMarksLength: isMarkLength,
37346
+ minuteMarksWidth: isMarkWidth,
37347
+ renderHourMarks: propTypes$1.exports.bool,
37348
+ renderMinuteHand: propTypes$1.exports.bool,
37349
+ renderMinuteMarks: propTypes$1.exports.bool,
37350
+ renderNumbers: propTypes$1.exports.bool,
37351
+ renderSecondHand: propTypes$1.exports.bool,
37352
+ secondHandLength: isHandLength,
37353
+ secondHandOppositeLength: isOppositeHandLength,
37354
+ secondHandWidth: isHandWidth,
37355
+ size: propTypes$1.exports.oneOfType([propTypes$1.exports.number, propTypes$1.exports.string]),
37356
+ value: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.instanceOf(Date)]),
37357
+ };
37358
+
37359
+ function getRect(element) {
37360
+ return element.getBoundingClientRect();
37361
+ }
37362
+ function detectElementOverflow(element, container) {
37363
+ return {
37364
+ get collidedTop() {
37365
+ return getRect(element).top < getRect(container).top;
37366
+ },
37367
+ get collidedBottom() {
37368
+ return getRect(element).bottom > getRect(container).bottom;
37369
+ },
37370
+ get collidedLeft() {
37371
+ return getRect(element).left < getRect(container).left;
37372
+ },
37373
+ get collidedRight() {
37374
+ return getRect(element).right > getRect(container).right;
37375
+ },
37376
+ get overflowTop() {
37377
+ return getRect(container).top - getRect(element).top;
37378
+ },
37379
+ get overflowBottom() {
37380
+ return getRect(element).bottom - getRect(container).bottom;
37381
+ },
37382
+ get overflowLeft() {
37383
+ return getRect(container).left - getRect(element).left;
37384
+ },
37385
+ get overflowRight() {
37386
+ return getRect(element).right - getRect(container).right;
37387
+ },
37388
+ };
37389
+ }
37390
+
37391
+ var __extends = (undefined && undefined.__extends) || (function () {
37392
+ var extendStatics = function (d, b) {
37393
+ extendStatics = Object.setPrototypeOf ||
37394
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37395
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
37396
+ return extendStatics(d, b);
37397
+ };
37398
+ return function (d, b) {
37399
+ if (typeof b !== "function" && b !== null)
37400
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37401
+ extendStatics(d, b);
37402
+ function __() { this.constructor = d; }
37403
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
37404
+ };
37405
+ })();
37406
+ var __assign$6 = (undefined && undefined.__assign) || function () {
37407
+ __assign$6 = Object.assign || function(t) {
37408
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37409
+ s = arguments[i];
37410
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
37411
+ t[p] = s[p];
37412
+ }
37413
+ return t;
37414
+ };
37415
+ return __assign$6.apply(this, arguments);
37416
+ };
37417
+ var __rest$5 = (undefined && undefined.__rest) || function (s, e) {
37418
+ var t = {};
37419
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37420
+ t[p] = s[p];
37421
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37422
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
37423
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
37424
+ t[p[i]] = s[p[i]];
37425
+ }
37426
+ return t;
37427
+ };
37428
+ var isBrowser$2 = typeof document !== 'undefined';
37429
+ var isDisplayContentsSupported = isBrowser$2 && 'CSS' in window && 'supports' in window.CSS && CSS.supports('display', 'contents');
37430
+ var isMutationObserverSupported = isBrowser$2 && 'MutationObserver' in window;
37431
+ function capitalize(string) {
37432
+ return (string.charAt(0).toUpperCase() + string.slice(1));
37433
+ }
37434
+ function findScrollContainer(element) {
37435
+ var parent = element.parentElement;
37436
+ while (parent) {
37437
+ var overflow = window.getComputedStyle(parent).overflow;
37438
+ if (overflow.split(' ').every(function (o) { return o === 'auto' || o === 'scroll'; })) {
37439
+ return parent;
37440
+ }
37441
+ parent = parent.parentElement;
37442
+ }
37443
+ return document.documentElement;
37444
+ }
37445
+ function alignAxis(_a) {
37446
+ var axis = _a.axis, container = _a.container, element = _a.element, invertAxis = _a.invertAxis, scrollContainer = _a.scrollContainer, secondary = _a.secondary, spacing = _a.spacing;
37447
+ var style = window.getComputedStyle(element);
37448
+ var parent = container.parentElement;
37449
+ if (!parent) {
37450
+ return;
37451
+ }
37452
+ var scrollContainerCollisions = detectElementOverflow(parent, scrollContainer);
37453
+ var documentCollisions = detectElementOverflow(parent, document.documentElement);
37454
+ var isX = axis === 'x';
37455
+ var startProperty = isX ? 'left' : 'top';
37456
+ var endProperty = isX ? 'right' : 'bottom';
37457
+ var sizeProperty = isX ? 'width' : 'height';
37458
+ var overflowStartProperty = "overflow".concat(capitalize(startProperty));
37459
+ var overflowEndProperty = "overflow".concat(capitalize(endProperty));
37460
+ var scrollProperty = "scroll".concat(capitalize(startProperty));
37461
+ var uppercasedSizeProperty = capitalize(sizeProperty);
37462
+ var offsetSizeProperty = "offset".concat(uppercasedSizeProperty);
37463
+ var clientSizeProperty = "client".concat(uppercasedSizeProperty);
37464
+ var minSizeProperty = "min-".concat(sizeProperty);
37465
+ var scrollbarWidth = scrollContainer[offsetSizeProperty] - scrollContainer[clientSizeProperty];
37466
+ var startSpacing = typeof spacing === 'object' ? spacing[startProperty] : spacing;
37467
+ var availableStartSpace = -Math.max(scrollContainerCollisions[overflowStartProperty], documentCollisions[overflowStartProperty] + document.documentElement[scrollProperty]) - startSpacing;
37468
+ var endSpacing = typeof spacing === 'object' ? spacing[endProperty] : spacing;
37469
+ var availableEndSpace = -Math.max(scrollContainerCollisions[overflowEndProperty], documentCollisions[overflowEndProperty] - document.documentElement[scrollProperty]) -
37470
+ endSpacing -
37471
+ scrollbarWidth;
37472
+ if (secondary) {
37473
+ availableStartSpace += parent[clientSizeProperty];
37474
+ availableEndSpace += parent[clientSizeProperty];
37475
+ }
37476
+ var offsetSize = element[offsetSizeProperty];
37477
+ function displayStart() {
37478
+ element.style[startProperty] = 'auto';
37479
+ element.style[endProperty] = secondary ? '0' : '100%';
37480
+ }
37481
+ function displayEnd() {
37482
+ element.style[startProperty] = secondary ? '0' : '100%';
37483
+ element.style[endProperty] = 'auto';
37484
+ }
37485
+ function displayIfFits(availableSpace, display) {
37486
+ var fits = offsetSize <= availableSpace;
37487
+ if (fits) {
37488
+ display();
37489
+ }
37490
+ return fits;
37491
+ }
37492
+ function displayStartIfFits() {
37493
+ return displayIfFits(availableStartSpace, displayStart);
37494
+ }
37495
+ function displayEndIfFits() {
37496
+ return displayIfFits(availableEndSpace, displayEnd);
37497
+ }
37498
+ function displayWhereverShrinkedFits() {
37499
+ var moreSpaceStart = availableStartSpace > availableEndSpace;
37500
+ var rawMinSize = style.getPropertyValue(minSizeProperty);
37501
+ var minSize = rawMinSize ? parseInt(rawMinSize, 10) : null;
37502
+ function shrinkToSize(size) {
37503
+ var newSize = Math.max(size, minSize || 0);
37504
+ element.style[sizeProperty] = "".concat(newSize, "px");
37505
+ }
37506
+ if (moreSpaceStart) {
37507
+ shrinkToSize(availableStartSpace);
37508
+ displayStart();
37509
+ }
37510
+ else {
37511
+ shrinkToSize(availableEndSpace);
37512
+ displayEnd();
37513
+ }
37514
+ }
37515
+ var fits;
37516
+ if (invertAxis) {
37517
+ fits = displayStartIfFits() || displayEndIfFits();
37518
+ }
37519
+ else {
37520
+ fits = displayEndIfFits() || displayStartIfFits();
37521
+ }
37522
+ if (!fits) {
37523
+ displayWhereverShrinkedFits();
37524
+ }
37525
+ }
37526
+ function alignMainAxis(args) {
37527
+ alignAxis(args);
37528
+ }
37529
+ function alignSecondaryAxis(args) {
37530
+ alignAxis(__assign$6(__assign$6({}, args), { axis: args.axis === 'x' ? 'y' : 'x', secondary: true }));
37531
+ }
37532
+ function alignBothAxis(args) {
37533
+ var invertAxis = args.invertAxis, invertSecondaryAxis = args.invertSecondaryAxis, commonArgs = __rest$5(args, ["invertAxis", "invertSecondaryAxis"]);
37534
+ alignMainAxis(__assign$6(__assign$6({}, commonArgs), { invertAxis: invertAxis }));
37535
+ alignSecondaryAxis(__assign$6(__assign$6({}, commonArgs), { invertAxis: invertSecondaryAxis }));
37536
+ }
37537
+ var Fit = /** @class */ (function (_super) {
37538
+ __extends(Fit, _super);
37539
+ function Fit() {
37540
+ var _this = _super !== null && _super.apply(this, arguments) || this;
37541
+ _this.fit = function () {
37542
+ var _a = _this, scrollContainer = _a.scrollContainer, container = _a.container, element = _a.element;
37543
+ if (!scrollContainer || !container || !element) {
37544
+ return;
37545
+ }
37546
+ var elementWidth = element.clientWidth;
37547
+ var elementHeight = element.clientHeight;
37548
+ // No need to recalculate - already did that for current dimensions
37549
+ if (_this.elementWidth === elementWidth && _this.elementHeight === elementHeight) {
37550
+ return;
37551
+ }
37552
+ // Save the dimensions so that we know we don't need to repeat the function if unchanged
37553
+ _this.elementWidth = elementWidth;
37554
+ _this.elementHeight = elementHeight;
37555
+ var parent = container.parentElement;
37556
+ // Container was unmounted
37557
+ if (!parent) {
37558
+ return;
37559
+ }
37560
+ /**
37561
+ * We need to ensure that <Fit />'s child has a absolute position. Otherwise,
37562
+ * we wouldn't be able to place the child in the correct position.
37563
+ */
37564
+ var style = window.getComputedStyle(element);
37565
+ var position = style.position;
37566
+ if (position !== 'absolute') {
37567
+ element.style.position = 'absolute';
37568
+ }
37569
+ /**
37570
+ * We need to ensure that <Fit />'s parent has a relative or absolute position. Otherwise,
37571
+ * we wouldn't be able to place the child in the correct position.
37572
+ */
37573
+ var parentStyle = window.getComputedStyle(parent);
37574
+ var parentPosition = parentStyle.position;
37575
+ if (parentPosition !== 'relative' && parentPosition !== 'absolute') {
37576
+ parent.style.position = 'relative';
37577
+ }
37578
+ var _b = _this.props, invertAxis = _b.invertAxis, invertSecondaryAxis = _b.invertSecondaryAxis, _c = _b.mainAxis, mainAxis = _c === void 0 ? 'y' : _c, _d = _b.spacing, spacing = _d === void 0 ? 8 : _d;
37579
+ alignBothAxis({
37580
+ axis: mainAxis,
37581
+ container: container,
37582
+ element: element,
37583
+ invertAxis: invertAxis,
37584
+ invertSecondaryAxis: invertSecondaryAxis,
37585
+ scrollContainer: scrollContainer,
37586
+ spacing: spacing,
37587
+ });
37588
+ };
37589
+ return _this;
37590
+ }
37591
+ Fit.prototype.componentDidMount = function () {
37592
+ var _this = this;
37593
+ if (!isDisplayContentsSupported) {
37594
+ // eslint-disable-next-line react/no-find-dom-node
37595
+ var element = findDOMNode$1(this);
37596
+ if (!element || !(element instanceof HTMLElement)) {
37597
+ return;
37598
+ }
37599
+ this.container = element;
37600
+ this.element = element;
37601
+ this.scrollContainer = findScrollContainer(element);
37602
+ }
37603
+ this.fit();
37604
+ var onMutation = function () {
37605
+ _this.fit();
37606
+ };
37607
+ if (isMutationObserverSupported && this.element) {
37608
+ var mutationObserver = new MutationObserver(onMutation);
37609
+ mutationObserver.observe(this.element, {
37610
+ attributes: true,
37611
+ attributeFilter: ['class', 'style'],
37612
+ });
37613
+ }
37614
+ };
37615
+ Fit.prototype.render = function () {
37616
+ var _this = this;
37617
+ var children = this.props.children;
37618
+ var child = React__default.Children.only(children);
37619
+ if (isDisplayContentsSupported) {
37620
+ return (React__default.createElement("span", { ref: function (container) {
37621
+ _this.container = container;
37622
+ var element = container && container.firstElementChild;
37623
+ if (!element || !(element instanceof HTMLElement)) {
37624
+ return;
37625
+ }
37626
+ _this.element = element;
37627
+ _this.scrollContainer = findScrollContainer(element);
37628
+ }, style: { display: 'contents' } }, child));
37629
+ }
37630
+ return child;
37631
+ };
37632
+ Fit.propTypes = {
37633
+ children: propTypes$1.exports.node.isRequired,
37634
+ invertAxis: propTypes$1.exports.bool,
37635
+ invertSecondaryAxis: propTypes$1.exports.bool,
37636
+ mainAxis: propTypes$1.exports.oneOf(['x', 'y']),
37637
+ spacing: propTypes$1.exports.oneOfType([
37638
+ propTypes$1.exports.number,
37639
+ propTypes$1.exports.shape({
37640
+ bottom: propTypes$1.exports.number.isRequired,
37641
+ left: propTypes$1.exports.number.isRequired,
37642
+ right: propTypes$1.exports.number.isRequired,
37643
+ top: propTypes$1.exports.number.isRequired,
37644
+ }),
37645
+ ]),
37646
+ };
37647
+ return Fit;
37648
+ }(Component));
37649
+
37650
+ function Divider(_a) {
37651
+ var children = _a.children;
37652
+ return React__default.createElement("span", { className: "react-time-picker__inputGroup__divider" }, children);
37653
+ }
37654
+
37655
+ var allowedVariants = ['normal', 'small-caps'];
37656
+ /**
37657
+ * Gets font CSS shorthand property given element.
37658
+ *
37659
+ * @param {HTMLElement} element Element to get font CSS shorthand property from
37660
+ */
37661
+ function getFontShorthand(element) {
37662
+ if (!element) {
37663
+ return '';
37664
+ }
37665
+ var style = window.getComputedStyle(element);
37666
+ if (style.font) {
37667
+ return style.font;
37668
+ }
37669
+ var isFontDefined = style.fontFamily !== '';
37670
+ if (!isFontDefined) {
37671
+ return '';
37672
+ }
37673
+ var fontVariant = allowedVariants.includes(style.fontVariant) ? style.fontVariant : 'normal';
37674
+ return "".concat(style.fontStyle, " ").concat(fontVariant, " ").concat(style.fontWeight, " ").concat(style.fontSize, " / ").concat(style.lineHeight, " ").concat(style.fontFamily);
37675
+ }
37676
+ var cachedCanvas;
37677
+ /**
37678
+ * Measures text width given text and font CSS shorthand.
37679
+ *
37680
+ * @param {string} text Text to measure
37681
+ * @param {string} font Font to use when measuring the text
37682
+ */
37683
+ function measureText(text, font) {
37684
+ var canvas = cachedCanvas || (cachedCanvas = document.createElement('canvas'));
37685
+ var context = canvas.getContext('2d');
37686
+ // Context type not supported
37687
+ if (!context) {
37688
+ return null;
37689
+ }
37690
+ context.font = font;
37691
+ var width = context.measureText(text).width;
37692
+ return Math.ceil(width);
37693
+ }
37694
+ /**
37695
+ * Updates input element width to fit its content given input element
37696
+ * @param {HTMLInputElement} element
37697
+ */
37698
+ function updateInputWidth(element) {
37699
+ if (typeof document === 'undefined' || !element) {
37700
+ return null;
37701
+ }
37702
+ var font = getFontShorthand(element);
37703
+ var text = element.value || element.placeholder;
37704
+ var width = measureText(text, font);
37705
+ if (width === null) {
37706
+ return null;
37707
+ }
37708
+ element.style.width = "".concat(width, "px");
37709
+ return width;
37710
+ }
37711
+
37712
+ var isBrowser$1 = typeof document !== 'undefined';
37713
+ var useIsomorphicLayoutEffect = isBrowser$1 ? useLayoutEffect : useEffect;
37714
+ var isIEOrEdgeLegacy = isBrowser$1 && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent);
37715
+ var isFirefox = isBrowser$1 && /Firefox/.test(navigator.userAgent);
37716
+ function onFocus(event) {
37717
+ var target = event.target;
37718
+ if (isIEOrEdgeLegacy) {
37719
+ requestAnimationFrame(function () { return target.select(); });
37720
+ }
37721
+ else {
37722
+ target.select();
37723
+ }
37724
+ }
37725
+ function updateInputWidthOnLoad(element) {
37726
+ if (document.readyState === 'complete') {
37727
+ return;
37728
+ }
37729
+ function onLoad() {
37730
+ updateInputWidth(element);
37731
+ }
37732
+ window.addEventListener('load', onLoad);
37733
+ }
37734
+ function updateInputWidthOnFontLoad(element) {
37735
+ if (!document.fonts) {
37736
+ return;
37737
+ }
37738
+ var font = getFontShorthand(element);
37739
+ if (!font) {
37740
+ return;
37741
+ }
37742
+ var isFontLoaded = document.fonts.check(font);
37743
+ if (isFontLoaded) {
37744
+ return;
37745
+ }
37746
+ function onLoadingDone() {
37747
+ updateInputWidth(element);
37748
+ }
37749
+ document.fonts.addEventListener('loadingdone', onLoadingDone);
37750
+ }
37751
+ function getSelectionString(input) {
37752
+ /**
37753
+ * window.getSelection().toString() returns empty string in IE11 and Firefox,
37754
+ * so alternatives come first.
37755
+ */
37756
+ if (input &&
37757
+ 'selectionStart' in input &&
37758
+ input.selectionStart !== null &&
37759
+ 'selectionEnd' in input &&
37760
+ input.selectionEnd !== null) {
37761
+ return input.value.slice(input.selectionStart, input.selectionEnd);
37762
+ }
37763
+ if ('getSelection' in window) {
37764
+ var selection = window.getSelection();
37765
+ return selection && selection.toString();
37766
+ }
37767
+ return null;
37768
+ }
37769
+ function makeOnKeyPress(maxLength) {
37770
+ if (maxLength === null) {
37771
+ return undefined;
37772
+ }
37773
+ /**
37774
+ * Prevents keystrokes that would not produce a number or when value after keystroke would
37775
+ * exceed maxLength.
37776
+ */
37777
+ return function onKeyPress(event) {
37778
+ if (isFirefox) {
37779
+ // See https://github.com/wojtekmaj/react-time-picker/issues/92
37780
+ return;
37781
+ }
37782
+ var key = event.key, input = event.target;
37783
+ var value = input.value;
37784
+ var isNumberKey = key.length === 1 && /\d/.test(key);
37785
+ var selection = getSelectionString(input);
37786
+ if (!isNumberKey || !(selection || value.length < maxLength)) {
37787
+ event.preventDefault();
37788
+ }
37789
+ };
37790
+ }
37791
+ function Input(_a) {
37792
+ var ariaLabel = _a.ariaLabel, autoFocus = _a.autoFocus, className = _a.className, disabled = _a.disabled, inputRef = _a.inputRef, max = _a.max, min = _a.min, name = _a.name, nameForClass = _a.nameForClass, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, _b = _a.placeholder, placeholder = _b === void 0 ? '--' : _b, required = _a.required, showLeadingZeros = _a.showLeadingZeros, step = _a.step, value = _a.value;
37793
+ useIsomorphicLayoutEffect(function () {
37794
+ if (!inputRef || !inputRef.current) {
37795
+ return;
37796
+ }
37797
+ updateInputWidth(inputRef.current);
37798
+ updateInputWidthOnLoad(inputRef.current);
37799
+ updateInputWidthOnFontLoad(inputRef.current);
37800
+ }, [inputRef, value]);
37801
+ var hasLeadingZero = showLeadingZeros &&
37802
+ value &&
37803
+ Number(value) < 10 &&
37804
+ (value === '0' || !value.toString().startsWith('0'));
37805
+ var maxLength = max ? max.toString().length : null;
37806
+ return (React__default.createElement(React__default.Fragment, null,
37807
+ hasLeadingZero ? React__default.createElement("span", { className: "".concat(className, "__leadingZero") }, "0") : null,
37808
+ React__default.createElement("input", { "aria-label": ariaLabel, autoComplete: "off", autoFocus: autoFocus, className: clsx$1("".concat(className, "__input"), "".concat(className, "__").concat(nameForClass || name), hasLeadingZero && "".concat(className, "__input--hasLeadingZero")), "data-input": "true", disabled: disabled, inputMode: "numeric", max: max, min: min, name: name, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onKeyPress: makeOnKeyPress(maxLength), onKeyUp: function (event) {
37809
+ updateInputWidth(event.target);
37810
+ if (onKeyUp) {
37811
+ onKeyUp(event);
37812
+ }
37813
+ }, placeholder: placeholder, ref: inputRef, required: required, step: step, type: "number", value: value !== null ? value : '' })));
37814
+ }
37815
+
37816
+ function convert12to24(hour12, amPm) {
37817
+ var hour24 = Number(hour12);
37818
+ if (amPm === 'am' && hour24 === 12) {
37819
+ hour24 = 0;
37820
+ }
37821
+ else if (amPm === 'pm' && hour24 < 12) {
37822
+ hour24 += 12;
37823
+ }
37824
+ return hour24;
37825
+ }
37826
+ function convert24to12(hour24) {
37827
+ var hour12 = Number(hour24) % 12 || 12;
37828
+ return [hour12, Number(hour24) < 12 ? 'am' : 'pm'];
37829
+ }
37830
+
37831
+ var formatterCache = new Map();
37832
+ function getFormatter(options) {
37833
+ return function formatter(locale, date) {
37834
+ var localeWithDefault = locale || getUserLocale();
37835
+ if (!formatterCache.has(localeWithDefault)) {
37836
+ formatterCache.set(localeWithDefault, new Map());
37837
+ }
37838
+ var formatterCacheLocale = formatterCache.get(localeWithDefault);
37839
+ if (!formatterCacheLocale.has(options)) {
37840
+ formatterCacheLocale.set(options, new Intl.DateTimeFormat(localeWithDefault || undefined, options).format);
37841
+ }
37842
+ return formatterCacheLocale.get(options)(date);
37843
+ };
37844
+ }
37845
+ var numberFormatterCache = new Map();
37846
+ function getNumberFormatter(options) {
37847
+ return function (locale, number) {
37848
+ var localeWithDefault = locale || getUserLocale();
37849
+ if (!numberFormatterCache.has(localeWithDefault)) {
37850
+ numberFormatterCache.set(localeWithDefault, new Map());
37851
+ }
37852
+ var numberFormatterCacheLocale = numberFormatterCache.get(localeWithDefault);
37853
+ if (!numberFormatterCacheLocale.has(options)) {
37854
+ numberFormatterCacheLocale.set(options, new Intl.NumberFormat(localeWithDefault || undefined, options).format);
37855
+ }
37856
+ return numberFormatterCacheLocale.get(options)(number);
37857
+ };
37858
+ }
37859
+
37860
+ var nines = ['9', '٩'];
37861
+ var ninesRegExp = new RegExp("[".concat(nines.join(''), "]"));
37862
+ var amPmFormatter = getFormatter({ hour: 'numeric' });
37863
+ function getAmPmLabels(locale) {
37864
+ var amString = amPmFormatter(locale, new Date(2017, 0, 1, 9));
37865
+ var pmString = amPmFormatter(locale, new Date(2017, 0, 1, 21));
37866
+ var _a = amString.split(ninesRegExp), am1 = _a[0], am2 = _a[1];
37867
+ var _b = pmString.split(ninesRegExp), pm1 = _b[0], pm2 = _b[1];
37868
+ if (pm2 !== undefined) {
37869
+ // If pm2 is undefined, nine was not found in pmString - this locale is not using 12-hour time
37870
+ if (am1 !== pm1) {
37871
+ return [am1, pm1].map(function (el) { return el.trim(); });
37872
+ }
37873
+ if (am2 !== pm2) {
37874
+ return [am2, pm2].map(function (el) { return el.trim(); });
37875
+ }
37876
+ }
37877
+ // Fallback
37878
+ return ['AM', 'PM'];
37879
+ }
37880
+ function isValidNumber(num) {
37881
+ return num !== null && num !== false && !Number.isNaN(Number(num));
37882
+ }
37883
+ function safeMin() {
37884
+ var args = [];
37885
+ for (var _i = 0; _i < arguments.length; _i++) {
37886
+ args[_i] = arguments[_i];
37887
+ }
37888
+ return Math.min.apply(Math, args.filter(isValidNumber));
37889
+ }
37890
+ function safeMax() {
37891
+ var args = [];
37892
+ for (var _i = 0; _i < arguments.length; _i++) {
37893
+ args[_i] = arguments[_i];
37894
+ }
37895
+ return Math.max.apply(Math, args.filter(isValidNumber));
37896
+ }
37897
+
37898
+ var __assign$5 = (undefined && undefined.__assign) || function () {
37899
+ __assign$5 = Object.assign || function(t) {
37900
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37901
+ s = arguments[i];
37902
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
37903
+ t[p] = s[p];
37904
+ }
37905
+ return t;
37906
+ };
37907
+ return __assign$5.apply(this, arguments);
37908
+ };
37909
+ var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
37910
+ var t = {};
37911
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37912
+ t[p] = s[p];
37913
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37914
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
37915
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
37916
+ t[p[i]] = s[p[i]];
37917
+ }
37918
+ return t;
37919
+ };
37920
+ function Hour12Input(_a) {
37921
+ var amPm = _a.amPm, maxTime = _a.maxTime, minTime = _a.minTime, value = _a.value, otherProps = __rest$4(_a, ["amPm", "maxTime", "minTime", "value"]);
37922
+ var maxHour = safeMin(12, maxTime &&
37923
+ (function () {
37924
+ var _a = convert24to12(getHours(maxTime)), maxHourResult = _a[0], maxAmPm = _a[1];
37925
+ if (maxAmPm !== amPm) {
37926
+ // pm is always after am, so we should ignore validation
37927
+ return null;
37928
+ }
37929
+ return maxHourResult;
37930
+ })());
37931
+ var minHour = safeMax(1, minTime &&
37932
+ (function () {
37933
+ var _a = convert24to12(getHours(minTime)), minHourResult = _a[0], minAmPm = _a[1];
37934
+ if (
37935
+ // pm is always after am, so we should ignore validation
37936
+ minAmPm !== amPm ||
37937
+ // If minHour is 12 am/pm, user should be able to enter 12, 1, ..., 11.
37938
+ minHourResult === 12) {
37939
+ return null;
37940
+ }
37941
+ return minHourResult;
37942
+ })());
37943
+ var value12 = value ? convert24to12(value)[0].toString() : '';
37944
+ return (React__default.createElement(Input, __assign$5({ max: maxHour, min: minHour, name: "hour12", nameForClass: "hour", value: value12 }, otherProps)));
37945
+ }
37946
+
37947
+ var __assign$4 = (undefined && undefined.__assign) || function () {
37948
+ __assign$4 = Object.assign || function(t) {
37949
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37950
+ s = arguments[i];
37951
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
37952
+ t[p] = s[p];
37953
+ }
37954
+ return t;
37955
+ };
37956
+ return __assign$4.apply(this, arguments);
37957
+ };
37958
+ var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
37959
+ var t = {};
37960
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37961
+ t[p] = s[p];
37962
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37963
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
37964
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
37965
+ t[p[i]] = s[p[i]];
37966
+ }
37967
+ return t;
37968
+ };
37969
+ function Hour24Input(_a) {
37970
+ var maxTime = _a.maxTime, minTime = _a.minTime, otherProps = __rest$3(_a, ["maxTime", "minTime"]);
37971
+ var maxHour = safeMin(23, maxTime && getHours(maxTime));
37972
+ var minHour = safeMax(0, minTime && getHours(minTime));
37973
+ return React__default.createElement(Input, __assign$4({ max: maxHour, min: minHour, name: "hour24", nameForClass: "hour" }, otherProps));
37974
+ }
37975
+
37976
+ var __assign$3 = (undefined && undefined.__assign) || function () {
37977
+ __assign$3 = Object.assign || function(t) {
37978
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37979
+ s = arguments[i];
37980
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
37981
+ t[p] = s[p];
37982
+ }
37983
+ return t;
37984
+ };
37985
+ return __assign$3.apply(this, arguments);
37986
+ };
37987
+ var __rest$2 = (undefined && undefined.__rest) || function (s, e) {
37988
+ var t = {};
37989
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37990
+ t[p] = s[p];
37991
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37992
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
37993
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
37994
+ t[p[i]] = s[p[i]];
37995
+ }
37996
+ return t;
37997
+ };
37998
+ function MinuteInput(_a) {
37999
+ var hour = _a.hour, maxTime = _a.maxTime, minTime = _a.minTime, _b = _a.showLeadingZeros, showLeadingZeros = _b === void 0 ? true : _b, otherProps = __rest$2(_a, ["hour", "maxTime", "minTime", "showLeadingZeros"]);
38000
+ function isSameHour(date) {
38001
+ return hour === getHours(date).toString();
38002
+ }
38003
+ var maxMinute = safeMin(59, maxTime && isSameHour(maxTime) && getMinutes(maxTime));
38004
+ var minMinute = safeMax(0, minTime && isSameHour(minTime) && getMinutes(minTime));
38005
+ return (React__default.createElement(Input, __assign$3({ max: maxMinute, min: minMinute, name: "minute", showLeadingZeros: showLeadingZeros }, otherProps)));
38006
+ }
38007
+
38008
+ var __assign$2 = (undefined && undefined.__assign) || function () {
38009
+ __assign$2 = Object.assign || function(t) {
38010
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38011
+ s = arguments[i];
38012
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
38013
+ t[p] = s[p];
38014
+ }
38015
+ return t;
38016
+ };
38017
+ return __assign$2.apply(this, arguments);
38018
+ };
38019
+ var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
38020
+ var t = {};
38021
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38022
+ t[p] = s[p];
38023
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
38024
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38025
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
38026
+ t[p[i]] = s[p[i]];
38027
+ }
38028
+ return t;
38029
+ };
38030
+ function SecondInput(_a) {
38031
+ var hour = _a.hour, maxTime = _a.maxTime, minTime = _a.minTime, minute = _a.minute, _b = _a.showLeadingZeros, showLeadingZeros = _b === void 0 ? true : _b, otherProps = __rest$1(_a, ["hour", "maxTime", "minTime", "minute", "showLeadingZeros"]);
38032
+ function isSameMinute(date) {
38033
+ return hour === getHours(date).toString() && minute === getMinutes(date).toString();
38034
+ }
38035
+ var maxSecond = safeMin(59, maxTime && isSameMinute(maxTime) && getSeconds(maxTime));
38036
+ var minSecond = safeMax(0, minTime && isSameMinute(minTime) && getSeconds(minTime));
38037
+ return (React__default.createElement(Input, __assign$2({ max: maxSecond, min: minSecond, name: "second", showLeadingZeros: showLeadingZeros }, otherProps)));
38038
+ }
38039
+
38040
+ function NativeInput(_a) {
38041
+ var ariaLabel = _a.ariaLabel, disabled = _a.disabled, maxTime = _a.maxTime, minTime = _a.minTime, name = _a.name, onChange = _a.onChange, required = _a.required, value = _a.value, valueType = _a.valueType;
38042
+ var nativeValueParser = (function () {
38043
+ switch (valueType) {
38044
+ case 'hour':
38045
+ return function (receivedValue) { return "".concat(getHours(receivedValue), ":00"); };
38046
+ case 'minute':
38047
+ return getHoursMinutes;
38048
+ case 'second':
38049
+ return getHoursMinutesSeconds;
38050
+ default:
38051
+ throw new Error('Invalid valueType');
38052
+ }
38053
+ })();
38054
+ var step = (function () {
38055
+ switch (valueType) {
38056
+ case 'hour':
38057
+ return 3600;
38058
+ case 'minute':
38059
+ return 60;
38060
+ case 'second':
38061
+ return 1;
38062
+ default:
38063
+ throw new Error('Invalid valueType');
38064
+ }
38065
+ })();
38066
+ function stopPropagation(event) {
38067
+ event.stopPropagation();
38068
+ }
38069
+ return (React__default.createElement("input", { "aria-label": ariaLabel, disabled: disabled, hidden: true, max: maxTime ? nativeValueParser(maxTime) : undefined, min: minTime ? nativeValueParser(minTime) : undefined, name: name, onChange: onChange, onFocus: stopPropagation, required: required, step: step, style: {
38070
+ visibility: 'hidden',
38071
+ position: 'absolute',
38072
+ zIndex: '-999',
38073
+ }, type: "time", value: value ? nativeValueParser(value) : '' }));
38074
+ }
38075
+
38076
+ function AmPm(_a) {
38077
+ var ariaLabel = _a.ariaLabel, autoFocus = _a.autoFocus, className = _a.className, disabled = _a.disabled, inputRef = _a.inputRef, locale = _a.locale, maxTime = _a.maxTime, minTime = _a.minTime, onChange = _a.onChange, onKeyDown = _a.onKeyDown, required = _a.required, value = _a.value;
38078
+ var amDisabled = minTime ? convert24to12(getHours(minTime))[1] === 'pm' : false;
38079
+ var pmDisabled = maxTime ? convert24to12(getHours(maxTime))[1] === 'am' : false;
38080
+ var name = 'amPm';
38081
+ var _b = getAmPmLabels(locale), amLabel = _b[0], pmLabel = _b[1];
38082
+ return (React__default.createElement("select", { "aria-label": ariaLabel, autoFocus: autoFocus, className: clsx$1("".concat(className, "__input"), "".concat(className, "__").concat(name)), "data-input": "true", "data-select": "true", disabled: disabled, name: name, onChange: onChange, onKeyDown: onKeyDown, ref: inputRef, required: required, value: value !== null ? value : '' },
38083
+ !value && React__default.createElement("option", { value: "" }, "--"),
38084
+ React__default.createElement("option", { disabled: amDisabled, value: "am" }, amLabel),
38085
+ React__default.createElement("option", { disabled: pmDisabled, value: "pm" }, pmLabel)));
38086
+ }
38087
+
38088
+ var __assign$1 = (undefined && undefined.__assign) || function () {
38089
+ __assign$1 = Object.assign || function(t) {
38090
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38091
+ s = arguments[i];
38092
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
38093
+ t[p] = s[p];
38094
+ }
38095
+ return t;
38096
+ };
38097
+ return __assign$1.apply(this, arguments);
38098
+ };
38099
+ var __spreadArray$1 = (undefined && undefined.__spreadArray) || function (to, from, pack) {
38100
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
38101
+ if (ar || !(i in from)) {
38102
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
38103
+ ar[i] = from[i];
38104
+ }
38105
+ }
38106
+ return to.concat(ar || Array.prototype.slice.call(from));
38107
+ };
38108
+ var getFormatterOptionsCache = {};
38109
+ var allViews$2 = ['hour', 'minute', 'second'];
38110
+ function isInternalInput(element) {
38111
+ return element.dataset.input === 'true';
38112
+ }
38113
+ function findInput(element, property) {
38114
+ var nextElement = element;
38115
+ do {
38116
+ nextElement = nextElement[property];
38117
+ } while (nextElement && !isInternalInput(nextElement));
38118
+ return nextElement;
38119
+ }
38120
+ function focus(element) {
38121
+ if (element) {
38122
+ element.focus();
38123
+ }
38124
+ }
38125
+ function renderCustomInputs(placeholder, elementFunctions, allowMultipleInstances) {
38126
+ var usedFunctions = [];
38127
+ var pattern = new RegExp(Object.keys(elementFunctions)
38128
+ .map(function (el) { return "".concat(el, "+"); })
38129
+ .join('|'), 'g');
38130
+ var matches = placeholder.match(pattern);
38131
+ return placeholder.split(pattern).reduce(function (arr, element, index) {
38132
+ var divider = element && (
38133
+ // eslint-disable-next-line react/no-array-index-key
38134
+ React__default.createElement(Divider, { key: "separator_".concat(index) }, element));
38135
+ var res = __spreadArray$1(__spreadArray$1([], arr, true), [divider], false);
38136
+ var currentMatch = matches && matches[index];
38137
+ if (currentMatch) {
38138
+ var renderFunction = elementFunctions[currentMatch] ||
38139
+ elementFunctions[Object.keys(elementFunctions).find(function (elementFunction) {
38140
+ return currentMatch.match(elementFunction);
38141
+ })];
38142
+ if (!renderFunction) {
38143
+ return res;
38144
+ }
38145
+ if (!allowMultipleInstances && usedFunctions.includes(renderFunction)) {
38146
+ res.push(currentMatch);
38147
+ }
38148
+ else {
38149
+ res.push(renderFunction(currentMatch, index));
38150
+ usedFunctions.push(renderFunction);
38151
+ }
38152
+ }
38153
+ return res;
38154
+ }, []);
38155
+ }
38156
+ var formatNumber = getNumberFormatter({ useGrouping: false });
38157
+ function TimeInput(_a) {
38158
+ var amPmAriaLabel = _a.amPmAriaLabel, autoFocus = _a.autoFocus, className = _a.className, disabled = _a.disabled, format = _a.format, hourAriaLabel = _a.hourAriaLabel, hourPlaceholder = _a.hourPlaceholder, _b = _a.isClockOpen, isClockOpenProps = _b === void 0 ? null : _b, locale = _a.locale, _c = _a.maxDetail, maxDetail = _c === void 0 ? 'minute' : _c, maxTime = _a.maxTime, minTime = _a.minTime, minuteAriaLabel = _a.minuteAriaLabel, minutePlaceholder = _a.minutePlaceholder, _d = _a.name, name = _d === void 0 ? 'time' : _d, nativeInputAriaLabel = _a.nativeInputAriaLabel, onChangeProps = _a.onChange, onInvalidChange = _a.onInvalidChange, required = _a.required, secondAriaLabel = _a.secondAriaLabel, secondPlaceholder = _a.secondPlaceholder, valueProps = _a.value;
38159
+ var _e = useState(null), amPm = _e[0], setAmPm = _e[1];
38160
+ var _f = useState(null), hour = _f[0], setHour = _f[1];
38161
+ var _g = useState(null), minute = _g[0], setMinute = _g[1];
38162
+ var _h = useState(null), second = _h[0], setSecond = _h[1];
38163
+ var _j = useState(null), value = _j[0], setValue = _j[1];
38164
+ var amPmInput = useRef(null);
38165
+ var hour12Input = useRef(null);
38166
+ var hour24Input = useRef(null);
38167
+ var minuteInput = useRef(null);
38168
+ var secondInput = useRef(null);
38169
+ var _k = useState(isClockOpenProps), isClockOpen = _k[0], setIsClockOpen = _k[1];
38170
+ var lastPressedKey = useRef();
38171
+ useEffect(function () {
38172
+ setIsClockOpen(isClockOpenProps);
38173
+ }, [isClockOpenProps]);
38174
+ useEffect(function () {
38175
+ var nextValue = valueProps;
38176
+ if (nextValue) {
38177
+ setAmPm(convert24to12(getHours(nextValue))[1]);
38178
+ setHour(getHours(nextValue).toString());
38179
+ setMinute(getMinutes(nextValue).toString());
38180
+ setSecond(getSeconds(nextValue).toString());
38181
+ setValue(nextValue);
38182
+ }
38183
+ else {
38184
+ setAmPm(null);
38185
+ setHour(null);
38186
+ setMinute(null);
38187
+ setSecond(null);
38188
+ setValue(null);
38189
+ }
38190
+ }, [
38191
+ valueProps,
38192
+ minTime,
38193
+ maxTime,
38194
+ maxDetail,
38195
+ // Toggling clock visibility resets values
38196
+ isClockOpen,
38197
+ ]);
38198
+ var valueType = maxDetail;
38199
+ var formatTime = (function () {
38200
+ var level = allViews$2.indexOf(maxDetail);
38201
+ var formatterOptions = getFormatterOptionsCache[level] ||
38202
+ (function () {
38203
+ var options = { hour: 'numeric' };
38204
+ if (level >= 1) {
38205
+ options.minute = 'numeric';
38206
+ }
38207
+ if (level >= 2) {
38208
+ options.second = 'numeric';
38209
+ }
38210
+ getFormatterOptionsCache[level] = options;
38211
+ return options;
38212
+ })();
38213
+ return getFormatter(formatterOptions);
38214
+ })();
38215
+ /**
38216
+ * Gets current value in a desired format.
38217
+ */
38218
+ function getProcessedValue(value) {
38219
+ var processFunction = (function () {
38220
+ switch (valueType) {
38221
+ case 'hour':
38222
+ case 'minute':
38223
+ return getHoursMinutes;
38224
+ case 'second':
38225
+ return getHoursMinutesSeconds;
38226
+ default:
38227
+ throw new Error('Invalid valueType');
38228
+ }
38229
+ })();
38230
+ return processFunction(value);
38231
+ }
38232
+ var placeholder = format ||
38233
+ (function () {
38234
+ var hour24 = 21;
38235
+ var hour12 = 9;
38236
+ var minute = 13;
38237
+ var second = 14;
38238
+ var date = new Date(2017, 0, 1, hour24, minute, second);
38239
+ return formatTime(locale, date)
38240
+ .replace(formatNumber(locale, hour12), 'h')
38241
+ .replace(formatNumber(locale, hour24), 'H')
38242
+ .replace(formatNumber(locale, minute), 'mm')
38243
+ .replace(formatNumber(locale, second), 'ss')
38244
+ .replace(new RegExp(getAmPmLabels(locale).join('|')), 'a');
38245
+ })();
38246
+ var divider = (function () {
38247
+ var dividers = placeholder.match(/[^0-9a-z]/i);
38248
+ return dividers ? dividers[0] : null;
38249
+ })();
38250
+ function onClick(event) {
38251
+ if (event.target === event.currentTarget) {
38252
+ // Wrapper was directly clicked
38253
+ var firstInput = event.target.children[1];
38254
+ focus(firstInput);
38255
+ }
38256
+ }
38257
+ function onKeyDown(event) {
38258
+ lastPressedKey.current = event.key;
38259
+ switch (event.key) {
38260
+ case 'ArrowLeft':
38261
+ case 'ArrowRight':
38262
+ case divider: {
38263
+ event.preventDefault();
38264
+ var input = event.target;
38265
+ var property = event.key === 'ArrowLeft' ? 'previousElementSibling' : 'nextElementSibling';
38266
+ var nextInput = findInput(input, property);
38267
+ focus(nextInput);
38268
+ break;
38269
+ }
38270
+ }
38271
+ }
38272
+ function onKeyUp(event) {
38273
+ var key = event.key, input = event.target;
38274
+ var isLastPressedKey = lastPressedKey.current === key;
38275
+ if (!isLastPressedKey) {
38276
+ return;
38277
+ }
38278
+ var isNumberKey = !isNaN(Number(key));
38279
+ if (!isNumberKey) {
38280
+ return;
38281
+ }
38282
+ var max = input.getAttribute('max');
38283
+ if (!max) {
38284
+ return;
38285
+ }
38286
+ var value = input.value;
38287
+ /**
38288
+ * Given 1, the smallest possible number the user could type by adding another digit is 10.
38289
+ * 10 would be a valid value given max = 12, so we won't jump to the next input.
38290
+ * However, given 2, smallers possible number would be 20, and thus keeping the focus in
38291
+ * this field doesn't make sense.
38292
+ */
38293
+ if (Number(value) * 10 > Number(max) || value.length >= max.length) {
38294
+ var property = 'nextElementSibling';
38295
+ var nextInput = findInput(input, property);
38296
+ focus(nextInput);
38297
+ }
38298
+ }
38299
+ /**
38300
+ * Called after internal onChange. Checks input validity. If all fields are valid,
38301
+ * calls props.onChange.
38302
+ */
38303
+ function onChangeExternal() {
38304
+ if (!onChangeProps) {
38305
+ return;
38306
+ }
38307
+ function filterBoolean(value) {
38308
+ return Boolean(value);
38309
+ }
38310
+ var formElements = [
38311
+ amPmInput.current,
38312
+ hour12Input.current,
38313
+ hour24Input.current,
38314
+ minuteInput.current,
38315
+ secondInput.current,
38316
+ ].filter(filterBoolean);
38317
+ var formElementsWithoutSelect = formElements.slice(1);
38318
+ var values = {};
38319
+ formElements.forEach(function (formElement) {
38320
+ values[formElement.name] =
38321
+ formElement.type === 'number'
38322
+ ? 'valueAsNumber' in formElement
38323
+ ? formElement.valueAsNumber
38324
+ : Number(formElement.value)
38325
+ : formElement.value;
38326
+ });
38327
+ var isEveryValueEmpty = formElementsWithoutSelect.every(function (formElement) { return !formElement.value; });
38328
+ if (isEveryValueEmpty) {
38329
+ onChangeProps(null, false);
38330
+ return;
38331
+ }
38332
+ var isEveryValueFilled = formElements.every(function (formElement) { return formElement.value; });
38333
+ var isEveryValueValid = formElements.every(function (formElement) { return formElement.validity.valid; });
38334
+ if (isEveryValueFilled && isEveryValueValid) {
38335
+ var hour_1 = Number(values.hour24 ||
38336
+ (values.hour12 && values.amPm && convert12to24(values.hour12, values.amPm)) ||
38337
+ 0);
38338
+ var minute_1 = Number(values.minute || 0);
38339
+ var second_1 = Number(values.second || 0);
38340
+ var padStart = function (num) { return "0".concat(num).slice(-2); };
38341
+ var proposedValue = "".concat(padStart(hour_1), ":").concat(padStart(minute_1), ":").concat(padStart(second_1));
38342
+ var processedValue = getProcessedValue(proposedValue);
38343
+ onChangeProps(processedValue, false);
38344
+ return;
38345
+ }
38346
+ if (!onInvalidChange) {
38347
+ return;
38348
+ }
38349
+ onInvalidChange();
38350
+ }
38351
+ /**
38352
+ * Called when non-native date input is changed.
38353
+ */
38354
+ function onChange(event) {
38355
+ var _a = event.target, name = _a.name, value = _a.value;
38356
+ switch (name) {
38357
+ case 'amPm':
38358
+ setAmPm(value);
38359
+ break;
38360
+ case 'hour12':
38361
+ setHour(value ? convert12to24(value, amPm || 'am').toString() : '');
38362
+ break;
38363
+ case 'hour24':
38364
+ setHour(value);
38365
+ break;
38366
+ case 'minute':
38367
+ setMinute(value);
38368
+ break;
38369
+ case 'second':
38370
+ setSecond(value);
38371
+ break;
38372
+ }
38373
+ onChangeExternal();
38374
+ }
38375
+ /**
38376
+ * Called when native date input is changed.
38377
+ */
38378
+ function onChangeNative(event) {
38379
+ var value = event.target.value;
38380
+ if (!onChangeProps) {
38381
+ return;
38382
+ }
38383
+ var processedValue = value || null;
38384
+ onChangeProps(processedValue, false);
38385
+ }
38386
+ var commonInputProps = {
38387
+ className: className,
38388
+ disabled: disabled,
38389
+ maxTime: maxTime,
38390
+ minTime: minTime,
38391
+ onChange: onChange,
38392
+ onKeyDown: onKeyDown,
38393
+ onKeyUp: onKeyUp,
38394
+ // This is only for showing validity when editing
38395
+ required: Boolean(required || isClockOpen),
38396
+ };
38397
+ function renderHour12(currentMatch, index) {
38398
+ if (currentMatch && currentMatch.length > 2) {
38399
+ throw new Error("Unsupported token: ".concat(currentMatch));
38400
+ }
38401
+ var showLeadingZeros = currentMatch ? currentMatch.length === 2 : false;
38402
+ return (React__default.createElement(Hour12Input, __assign$1({ key: "hour12" }, commonInputProps, { amPm: amPm, ariaLabel: hourAriaLabel,
38403
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38404
+ autoFocus: index === 0 && autoFocus, inputRef: hour12Input, placeholder: hourPlaceholder, showLeadingZeros: showLeadingZeros, value: hour })));
38405
+ }
38406
+ function renderHour24(currentMatch, index) {
38407
+ if (currentMatch && currentMatch.length > 2) {
38408
+ throw new Error("Unsupported token: ".concat(currentMatch));
38409
+ }
38410
+ var showLeadingZeros = currentMatch ? currentMatch.length === 2 : false;
38411
+ return (React__default.createElement(Hour24Input, __assign$1({ key: "hour24" }, commonInputProps, { ariaLabel: hourAriaLabel,
38412
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38413
+ autoFocus: index === 0 && autoFocus, inputRef: hour24Input, placeholder: hourPlaceholder, showLeadingZeros: showLeadingZeros, value: hour })));
38414
+ }
38415
+ function renderHour(currentMatch, index) {
38416
+ if (/h/.test(currentMatch)) {
38417
+ return renderHour12(currentMatch, index);
38418
+ }
38419
+ return renderHour24(currentMatch, index);
38420
+ }
38421
+ function renderMinute(currentMatch, index) {
38422
+ if (currentMatch && currentMatch.length > 2) {
38423
+ throw new Error("Unsupported token: ".concat(currentMatch));
38424
+ }
38425
+ var showLeadingZeros = currentMatch ? currentMatch.length === 2 : false;
38426
+ return (React__default.createElement(MinuteInput, __assign$1({ key: "minute" }, commonInputProps, { ariaLabel: minuteAriaLabel,
38427
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38428
+ autoFocus: index === 0 && autoFocus, hour: hour, inputRef: minuteInput, placeholder: minutePlaceholder, showLeadingZeros: showLeadingZeros, value: minute })));
38429
+ }
38430
+ function renderSecond(currentMatch, index) {
38431
+ if (currentMatch && currentMatch.length > 2) {
38432
+ throw new Error("Unsupported token: ".concat(currentMatch));
38433
+ }
38434
+ var showLeadingZeros = currentMatch ? currentMatch.length === 2 : true;
38435
+ return (React__default.createElement(SecondInput, __assign$1({ key: "second" }, commonInputProps, { ariaLabel: secondAriaLabel,
38436
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38437
+ autoFocus: index === 0 && autoFocus, hour: hour, inputRef: secondInput, minute: minute, placeholder: secondPlaceholder, showLeadingZeros: showLeadingZeros, value: second })));
38438
+ }
38439
+ function renderAmPm(currentMatch, index) {
38440
+ return (React__default.createElement(AmPm, __assign$1({ key: "ampm" }, commonInputProps, { ariaLabel: amPmAriaLabel,
38441
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38442
+ autoFocus: index === 0 && autoFocus, inputRef: amPmInput, locale: locale, onChange: onChange, value: amPm })));
38443
+ }
38444
+ function renderCustomInputsInternal() {
38445
+ var elementFunctions = {
38446
+ h: renderHour,
38447
+ H: renderHour,
38448
+ m: renderMinute,
38449
+ s: renderSecond,
38450
+ a: renderAmPm,
38451
+ };
38452
+ var allowMultipleInstances = typeof format !== 'undefined';
38453
+ return renderCustomInputs(placeholder, elementFunctions, allowMultipleInstances);
38454
+ }
38455
+ function renderNativeInput() {
38456
+ return (React__default.createElement(NativeInput, { key: "time", ariaLabel: nativeInputAriaLabel, disabled: disabled, maxTime: maxTime, minTime: minTime, name: name, onChange: onChangeNative, required: required, value: value, valueType: valueType }));
38457
+ }
38458
+ return (
38459
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
38460
+ React__default.createElement("div", { className: className, onClick: onClick },
38461
+ renderNativeInput(),
38462
+ renderCustomInputsInternal()));
38463
+ }
38464
+
38465
+ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {
38466
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
38467
+ if (ar || !(i in from)) {
38468
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
38469
+ ar[i] = from[i];
38470
+ }
38471
+ }
38472
+ return to.concat(ar || Array.prototype.slice.call(from));
38473
+ };
38474
+ var allViews$1 = ['hour', 'minute', 'second'];
38475
+ var allValueTypes = __spreadArray([], allViews$1, true);
38476
+ var hourOptionalSecondsRegExp = /^(([0-1])?[0-9]|2[0-3]):[0-5][0-9](:([0-5][0-9]))?$/;
38477
+ var isTime = function isTime(props, propName, componentName) {
38478
+ var _a = props, _b = propName, time = _a[_b];
38479
+ if (time) {
38480
+ if (typeof time !== 'string' || !hourOptionalSecondsRegExp.test(time)) {
38481
+ return new Error("Invalid prop `".concat(propName, "` of type `").concat(typeof time, "` supplied to `").concat(componentName, "`, expected time in HH:mm(:ss) format."));
38482
+ }
38483
+ }
38484
+ // Everything is fine
38485
+ return null;
38486
+ };
38487
+ propTypes$1.exports.oneOf(allValueTypes);
38488
+ propTypes$1.exports.oneOfType([
38489
+ propTypes$1.exports.func,
38490
+ propTypes$1.exports.exact({
38491
+ current: propTypes$1.exports.any,
38492
+ }),
38493
+ ]);
38494
+ var rangeOf = function (type) {
38495
+ return propTypes$1.exports.arrayOf(type);
38496
+ };
38497
+
38498
+ var __assign = (undefined && undefined.__assign) || function () {
38499
+ __assign = Object.assign || function(t) {
38500
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38501
+ s = arguments[i];
38502
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
38503
+ t[p] = s[p];
38504
+ }
38505
+ return t;
38506
+ };
38507
+ return __assign.apply(this, arguments);
38508
+ };
38509
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
38510
+ var t = {};
38511
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
38512
+ t[p] = s[p];
38513
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
38514
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38515
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
38516
+ t[p[i]] = s[p[i]];
38517
+ }
38518
+ return t;
38519
+ };
38520
+ var isBrowser = typeof document !== 'undefined';
38521
+ var baseClassName = 'react-time-picker';
38522
+ var outsideActionEvents = ['mousedown', 'focusin', 'touchstart'];
38523
+ var allViews = ['hour', 'minute', 'second'];
38524
+ var iconProps = {
38525
+ xmlns: 'http://www.w3.org/2000/svg',
38526
+ width: 19,
38527
+ height: 19,
38528
+ viewBox: '0 0 19 19',
38529
+ stroke: 'black',
38530
+ strokeWidth: 2,
38531
+ };
38532
+ var ClockIcon = (React__default.createElement("svg", __assign({}, iconProps, { className: "".concat(baseClassName, "__clock-button__icon ").concat(baseClassName, "__button__icon"), fill: "none" }),
38533
+ React__default.createElement("circle", { cx: "9.5", cy: "9.5", r: "7.5" }),
38534
+ React__default.createElement("path", { d: "M9.5 4.5 v5 h4" })));
38535
+ var ClearIcon = (React__default.createElement("svg", __assign({}, iconProps, { className: "".concat(baseClassName, "__clear-button__icon ").concat(baseClassName, "__button__icon") }),
38536
+ React__default.createElement("line", { x1: "4", x2: "15", y1: "4", y2: "15" }),
38537
+ React__default.createElement("line", { x1: "15", x2: "4", y1: "4", y2: "15" })));
38538
+ var TimePicker = function TimePicker(props) {
38539
+ var amPmAriaLabel = props.amPmAriaLabel, autoFocus = props.autoFocus, className = props.className, clearAriaLabel = props.clearAriaLabel, _a = props.clearIcon, clearIcon = _a === void 0 ? ClearIcon : _a, clockAriaLabel = props.clockAriaLabel, _b = props.clockIcon, clockIcon = _b === void 0 ? ClockIcon : _b, _c = props.closeClock, shouldCloseClockOnSelect = _c === void 0 ? true : _c, dataTestid = props["data-testid"], hourAriaLabel = props.hourAriaLabel, hourPlaceholder = props.hourPlaceholder, disableClock = props.disableClock, disabled = props.disabled, format = props.format, id = props.id, _d = props.isOpen, isOpenProps = _d === void 0 ? null : _d, locale = props.locale, maxTime = props.maxTime, _e = props.maxDetail, maxDetail = _e === void 0 ? 'minute' : _e, minTime = props.minTime, minuteAriaLabel = props.minuteAriaLabel, minutePlaceholder = props.minutePlaceholder, _f = props.name, name = _f === void 0 ? 'time' : _f, nativeInputAriaLabel = props.nativeInputAriaLabel, onClockClose = props.onClockClose, onClockOpen = props.onClockOpen, onChangeProps = props.onChange, onFocusProps = props.onFocus, onInvalidChange = props.onInvalidChange, _g = props.openClockOnFocus, openClockOnFocus = _g === void 0 ? true : _g, required = props.required, value = props.value, secondAriaLabel = props.secondAriaLabel, secondPlaceholder = props.secondPlaceholder, shouldCloseClock = props.shouldCloseClock, shouldOpenClock = props.shouldOpenClock, otherProps = __rest(props, ["amPmAriaLabel", "autoFocus", "className", "clearAriaLabel", "clearIcon", "clockAriaLabel", "clockIcon", "closeClock", 'data-testid', "hourAriaLabel", "hourPlaceholder", "disableClock", "disabled", "format", "id", "isOpen", "locale", "maxTime", "maxDetail", "minTime", "minuteAriaLabel", "minutePlaceholder", "name", "nativeInputAriaLabel", "onClockClose", "onClockOpen", "onChange", "onFocus", "onInvalidChange", "openClockOnFocus", "required", "value", "secondAriaLabel", "secondPlaceholder", "shouldCloseClock", "shouldOpenClock"]);
38540
+ var _h = useState(isOpenProps), isOpen = _h[0], setIsOpen = _h[1];
38541
+ var wrapper = useRef(null);
38542
+ var clockWrapper = useRef(null);
38543
+ useEffect(function () {
38544
+ setIsOpen(isOpenProps);
38545
+ }, [isOpenProps]);
38546
+ function openClock(_a) {
38547
+ var reason = _a.reason;
38548
+ if (shouldOpenClock) {
38549
+ if (!shouldOpenClock({ reason: reason })) {
38550
+ return;
38551
+ }
38552
+ }
38553
+ setIsOpen(true);
38554
+ if (onClockOpen) {
38555
+ onClockOpen();
38556
+ }
38557
+ }
38558
+ var closeClock = useCallback(function (_a) {
38559
+ var reason = _a.reason;
38560
+ if (shouldCloseClock) {
38561
+ if (!shouldCloseClock({ reason: reason })) {
38562
+ return;
38563
+ }
38564
+ }
38565
+ setIsOpen(false);
38566
+ if (onClockClose) {
38567
+ onClockClose();
38568
+ }
38569
+ }, [onClockClose, shouldCloseClock]);
38570
+ function toggleClock() {
38571
+ if (isOpen) {
38572
+ closeClock({ reason: 'buttonClick' });
38573
+ }
38574
+ else {
38575
+ openClock({ reason: 'buttonClick' });
38576
+ }
38577
+ }
38578
+ function onChange(value, shouldCloseClock) {
38579
+ if (shouldCloseClock === void 0) { shouldCloseClock = shouldCloseClockOnSelect; }
38580
+ if (shouldCloseClock) {
38581
+ closeClock({ reason: 'select' });
38582
+ }
38583
+ if (onChangeProps) {
38584
+ onChangeProps(value);
38585
+ }
38586
+ }
38587
+ function onFocus(event) {
38588
+ if (onFocusProps) {
38589
+ onFocusProps(event);
38590
+ }
38591
+ if (
38592
+ // Internet Explorer still fires onFocus on disabled elements
38593
+ disabled ||
38594
+ isOpen ||
38595
+ !openClockOnFocus ||
38596
+ event.target.dataset.select === 'true') {
38597
+ return;
38598
+ }
38599
+ openClock({ reason: 'focus' });
38600
+ }
38601
+ var onKeyDown = useCallback(function (event) {
38602
+ if (event.key === 'Escape') {
38603
+ closeClock({ reason: 'escape' });
38604
+ }
38605
+ }, [closeClock]);
38606
+ function clear() {
38607
+ onChange(null);
38608
+ }
38609
+ function stopPropagation(event) {
38610
+ event.stopPropagation();
38611
+ }
38612
+ var onOutsideAction = useCallback(function (event) {
38613
+ var wrapperEl = wrapper.current;
38614
+ var clockWrapperEl = clockWrapper.current;
38615
+ // Try event.composedPath first to handle clicks inside a Shadow DOM.
38616
+ var target = ('composedPath' in event ? event.composedPath()[0] : event.target);
38617
+ if (target &&
38618
+ wrapperEl &&
38619
+ !wrapperEl.contains(target) &&
38620
+ (!clockWrapperEl || !clockWrapperEl.contains(target))) {
38621
+ closeClock({ reason: 'outsideAction' });
38622
+ }
38623
+ }, [clockWrapper, closeClock, wrapper]);
38624
+ var handleOutsideActionListeners = useCallback(function (shouldListen) {
38625
+ if (shouldListen === void 0) { shouldListen = isOpen; }
38626
+ outsideActionEvents.forEach(function (event) {
38627
+ if (shouldListen) {
38628
+ document.addEventListener(event, onOutsideAction);
38629
+ }
38630
+ else {
38631
+ document.removeEventListener(event, onOutsideAction);
38632
+ }
38633
+ });
38634
+ if (shouldListen) {
38635
+ document.addEventListener('keydown', onKeyDown);
38636
+ }
38637
+ else {
38638
+ document.removeEventListener('keydown', onKeyDown);
38639
+ }
38640
+ }, [isOpen, onOutsideAction, onKeyDown]);
38641
+ useEffect(function () {
38642
+ handleOutsideActionListeners();
38643
+ return function () {
38644
+ handleOutsideActionListeners(false);
38645
+ };
38646
+ }, [handleOutsideActionListeners]);
38647
+ function renderInputs() {
38648
+ var valueFrom = (Array.isArray(value) ? value : [value])[0];
38649
+ var ariaLabelProps = {
38650
+ amPmAriaLabel: amPmAriaLabel,
38651
+ hourAriaLabel: hourAriaLabel,
38652
+ minuteAriaLabel: minuteAriaLabel,
38653
+ nativeInputAriaLabel: nativeInputAriaLabel,
38654
+ secondAriaLabel: secondAriaLabel,
38655
+ };
38656
+ var placeholderProps = {
38657
+ hourPlaceholder: hourPlaceholder,
38658
+ minutePlaceholder: minutePlaceholder,
38659
+ secondPlaceholder: secondPlaceholder,
38660
+ };
38661
+ return (React__default.createElement("div", { className: "".concat(baseClassName, "__wrapper") },
38662
+ React__default.createElement(TimeInput, __assign({}, ariaLabelProps, placeholderProps, {
38663
+ // eslint-disable-next-line jsx-a11y/no-autofocus
38664
+ autoFocus: autoFocus, className: "".concat(baseClassName, "__inputGroup"), disabled: disabled, format: format, isClockOpen: isOpen, locale: locale, maxDetail: maxDetail, maxTime: maxTime, minTime: minTime, name: name, onChange: onChange, onInvalidChange: onInvalidChange, required: required, value: valueFrom })),
38665
+ clearIcon !== null && (React__default.createElement("button", { "aria-label": clearAriaLabel, className: "".concat(baseClassName, "__clear-button ").concat(baseClassName, "__button"), disabled: disabled, onClick: clear, onFocus: stopPropagation, type: "button" }, typeof clearIcon === 'function' ? React__default.createElement(clearIcon) : clearIcon)),
38666
+ clockIcon !== null && !disableClock && (React__default.createElement("button", { "aria-label": clockAriaLabel, className: "".concat(baseClassName, "__clock-button ").concat(baseClassName, "__button"), disabled: disabled, onClick: toggleClock, onFocus: stopPropagation, type: "button" }, typeof clockIcon === 'function' ? React__default.createElement(clockIcon) : clockIcon))));
38667
+ }
38668
+ function renderClock() {
38669
+ if (isOpen === null || disableClock) {
38670
+ return null;
38671
+ }
38672
+ var clockClassName = props.clockClassName; props.className; // Unused, here to exclude it from clockProps
38673
+ props.onChange; // Unused, here to exclude it from clockProps
38674
+ var portalContainer = props.portalContainer, value = props.value, clockProps = __rest(props, ["clockClassName", "className", "onChange", "portalContainer", "value"]);
38675
+ var className = "".concat(baseClassName, "__clock");
38676
+ var classNames = clsx$1(className, "".concat(className, "--").concat(isOpen ? 'open' : 'closed'));
38677
+ var valueFrom = (Array.isArray(value) ? value : [value])[0];
38678
+ var clock = React__default.createElement(Clock, __assign({ className: clockClassName, value: valueFrom }, clockProps));
38679
+ return portalContainer ? (createPortal(React__default.createElement("div", { ref: clockWrapper, className: classNames }, clock), portalContainer)) : (React__default.createElement(Fit, null,
38680
+ React__default.createElement("div", { ref: function (ref) {
38681
+ if (ref && !isOpen) {
38682
+ ref.removeAttribute('style');
38683
+ }
38684
+ }, className: classNames }, clock)));
38685
+ }
38686
+ var eventProps = useMemo(function () { return makeEventProps(otherProps); }, [otherProps]);
38687
+ return (React__default.createElement("div", __assign({ className: clsx$1(baseClassName, "".concat(baseClassName, "--").concat(isOpen ? 'open' : 'closed'), "".concat(baseClassName, "--").concat(disabled ? 'disabled' : 'enabled'), className), "data-testid": dataTestid, id: id }, eventProps, { onFocus: onFocus, ref: wrapper }),
38688
+ renderInputs(),
38689
+ renderClock()));
38690
+ };
38691
+ var isValue = propTypes$1.exports.oneOfType([isTime, propTypes$1.exports.instanceOf(Date)]);
38692
+ var isValueOrValueArray = propTypes$1.exports.oneOfType([isValue, rangeOf(isValue)]);
38693
+ TimePicker.propTypes = {
38694
+ amPmAriaLabel: propTypes$1.exports.string,
38695
+ autoFocus: propTypes$1.exports.bool,
38696
+ className: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.arrayOf(propTypes$1.exports.string)]),
38697
+ clearAriaLabel: propTypes$1.exports.string,
38698
+ clearIcon: propTypes$1.exports.oneOfType([propTypes$1.exports.node, propTypes$1.exports.func]),
38699
+ clockAriaLabel: propTypes$1.exports.string,
38700
+ clockClassName: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.arrayOf(propTypes$1.exports.string)]),
38701
+ clockIcon: propTypes$1.exports.oneOfType([propTypes$1.exports.node, propTypes$1.exports.func]),
38702
+ closeClock: propTypes$1.exports.bool,
38703
+ 'data-testid': propTypes$1.exports.string,
38704
+ disableClock: propTypes$1.exports.bool,
38705
+ disabled: propTypes$1.exports.bool,
38706
+ format: propTypes$1.exports.string,
38707
+ hourAriaLabel: propTypes$1.exports.string,
38708
+ hourPlaceholder: propTypes$1.exports.string,
38709
+ id: propTypes$1.exports.string,
38710
+ isOpen: propTypes$1.exports.bool,
38711
+ locale: propTypes$1.exports.string,
38712
+ maxDetail: propTypes$1.exports.oneOf(allViews),
38713
+ maxTime: isTime,
38714
+ minTime: isTime,
38715
+ minuteAriaLabel: propTypes$1.exports.string,
38716
+ minutePlaceholder: propTypes$1.exports.string,
38717
+ name: propTypes$1.exports.string,
38718
+ nativeInputAriaLabel: propTypes$1.exports.string,
38719
+ onChange: propTypes$1.exports.func,
38720
+ onClockClose: propTypes$1.exports.func,
38721
+ onClockOpen: propTypes$1.exports.func,
38722
+ onFocus: propTypes$1.exports.func,
38723
+ openClockOnFocus: propTypes$1.exports.bool,
38724
+ required: propTypes$1.exports.bool,
38725
+ secondAriaLabel: propTypes$1.exports.string,
38726
+ secondPlaceholder: propTypes$1.exports.string,
38727
+ value: isValueOrValueArray,
38728
+ };
38729
+ if (isBrowser) {
38730
+ TimePicker.propTypes.portalContainer = propTypes$1.exports.instanceOf(HTMLElement);
38731
+ }
38732
+
38733
+ var _excluded$2 = ["className", "label", "labelProps", "size", "nakedInput", "required", "value", "onChange", "error"];
38734
+ dayjs.extend(customParseFormat);
38735
+ var INPUT_SIZES = {
38736
+ small: "small",
38737
+ medium: "medium",
38738
+ large: "large"
38739
+ };
38740
+ var TimePickerInput = function TimePickerInput(_ref) {
38741
+ var _convertToDayjsObject, _extends2;
38742
+ var _ref$className = _ref.className,
38743
+ className = _ref$className === void 0 ? "" : _ref$className,
38744
+ label = _ref.label,
38745
+ labelProps = _ref.labelProps,
38746
+ _ref$size = _ref.size,
38747
+ size = _ref$size === void 0 ? INPUT_SIZES.medium : _ref$size,
38748
+ _ref$nakedInput = _ref.nakedInput,
38749
+ nakedInput = _ref$nakedInput === void 0 ? false : _ref$nakedInput,
38750
+ _ref$required = _ref.required,
38751
+ required = _ref$required === void 0 ? false : _ref$required,
38752
+ value = _ref.value,
38753
+ onChange = _ref.onChange,
38754
+ _ref$error = _ref.error,
38755
+ error = _ref$error === void 0 ? "" : _ref$error,
38756
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$2);
38757
+ var _id = useId$1();
38758
+ var id = otherProps.id || _id;
38759
+ var errorId = "error_".concat(id);
38760
+ var handleChange = function handleChange(value) {
38761
+ var date = dayjs(value, "HH:mm:ss");
38762
+ onChange(date, value);
38763
+ };
38764
+ return /*#__PURE__*/React__default.createElement("div", {
38765
+ className: "neeto-ui-input__wrapper"
38766
+ }, label && /*#__PURE__*/React__default.createElement(Label, _extends$4({
38767
+ required: required
38768
+ }, labelProps), label), /*#__PURE__*/React__default.createElement(TimePicker, _extends$4((_extends2 = {
38769
+ className: classnames$1("neeto-ui-time-picker", [className], {
38770
+ "neeto-ui-time-picker--small": size === "small",
38771
+ "neeto-ui-time-picker--medium": size === "medium",
38772
+ "neeto-ui-time-picker--large": size === "large",
38773
+ "neeto-ui-time-picker--disabled": otherProps.disabled,
38774
+ "neeto-ui-time-picker--naked": nakedInput,
38775
+ "neeto-ui-time-picker--error": !!error
38776
+ }),
38777
+ value: value,
38778
+ id: id,
38779
+ disableClock: true,
38780
+ clearIcon: null
38781
+ }, _defineProperty$7(_extends2, "value", (_convertToDayjsObject = convertToDayjsObjects(value)) === null || _convertToDayjsObject === void 0 ? void 0 : _convertToDayjsObject.toDate()), _defineProperty$7(_extends2, "onChange", handleChange), _extends2), otherProps)), !!error && /*#__PURE__*/React__default.createElement("p", {
38782
+ className: "neeto-ui-input__error",
38783
+ "data-cy": "".concat(hyphenize(label), "-input-error"),
38784
+ id: errorId
38785
+ }, error));
38786
+ };
38787
+ TimePickerInput.displayName = "TimePicker";
36158
38788
 
36159
38789
  var dist = {};
36160
38790
 
@@ -39055,5 +41685,5 @@ var TreeSelect = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
39055
41685
  });
39056
41686
  TreeSelect.displayName = "TreeSelect";
39057
41687
 
39058
- export { Accordion, ActionDropdown, Alert, Avatar, Button, Callout, Checkbox, ColorPicker, DatePicker, Dropdown, Input$2 as Input, Kbd, Label, Modal, MultiEmailInput, NoData, Pagination, Pane, Popover, Radio, Select, Slider, Spinner, Switch, Tab, Table, Tag, Textarea, TimePicker, Toastr, Tooltip, TreeSelect, Typography };
41688
+ export { Accordion, ActionDropdown, Alert, Avatar, Button, Callout, Checkbox, ColorPicker, DatePicker, Dropdown, Input$3 as Input, Kbd, Label, Modal, MultiEmailInput, NoData, Pagination, Pane, Popover, Radio, Select, Slider, Spinner, Switch, Tab, Table, Tag, Textarea, TimePicker$1 as TimePicker, TimePickerInput, Toastr, Tooltip, TreeSelect, Typography };
39059
41689
  //# sourceMappingURL=index.js.map