@helpdice/ui 1.7.7 → 1.7.9

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.
Files changed (65) hide show
  1. package/dist/breadcrumbs/index.js +10 -7
  2. package/dist/card/index.js +10 -7
  3. package/dist/carousal/CSSTranslate.d.ts +2 -0
  4. package/dist/carousal/component/Arrow.d.ts +9 -0
  5. package/dist/carousal/component/Indicator.d.ts +9 -0
  6. package/dist/carousal/component/Thumbs.d.ts +65 -0
  7. package/dist/carousal/component/animations.d.ts +27 -0
  8. package/dist/carousal/component/index.d.ts +87 -0
  9. package/dist/carousal/component/types.d.ts +79 -0
  10. package/dist/carousal/component/utils.d.ts +15 -0
  11. package/dist/carousal/cssClasses.d.ts +11 -0
  12. package/dist/carousal/dimensions.d.ts +1 -0
  13. package/dist/carousal/index.d.ts +3 -0
  14. package/dist/carousal/index.js +13166 -0
  15. package/dist/carousal/shims/document.d.ts +2 -0
  16. package/dist/carousal/shims/window.d.ts +2 -0
  17. package/dist/image/index.js +10 -7
  18. package/dist/index.d.ts +4 -0
  19. package/dist/index.js +2794 -197
  20. package/dist/link/index.js +10 -7
  21. package/dist/link/link.d.ts +2 -1
  22. package/dist/swipe/index.d.ts +4 -0
  23. package/dist/swipe/index.js +1314 -0
  24. package/dist/swipe/react-swipe.d.ts +58 -0
  25. package/dist/user/index.js +10 -7
  26. package/esm/carousal/CSSTranslate.d.ts +2 -0
  27. package/esm/carousal/CSSTranslate.js +7 -0
  28. package/esm/carousal/component/Arrow.d.ts +9 -0
  29. package/esm/carousal/component/Arrow.js +21 -0
  30. package/esm/carousal/component/Indicator.d.ts +9 -0
  31. package/esm/carousal/component/Indicator.js +23 -0
  32. package/esm/carousal/component/Thumbs.d.ts +65 -0
  33. package/esm/carousal/{Thumbs.js → component/Thumbs.js} +41 -12
  34. package/esm/carousal/component/animations.d.ts +27 -0
  35. package/esm/carousal/{animations.js → component/animations.js} +1 -1
  36. package/esm/carousal/component/index.d.ts +87 -0
  37. package/esm/carousal/component/index.js +698 -0
  38. package/esm/carousal/component/types.d.ts +79 -0
  39. package/esm/carousal/component/utils.d.ts +15 -0
  40. package/esm/carousal/{utils.js → component/utils.js} +1 -1
  41. package/esm/carousal/cssClasses.d.ts +11 -0
  42. package/esm/carousal/cssClasses.js +56 -0
  43. package/esm/carousal/dimensions.d.ts +1 -0
  44. package/esm/carousal/dimensions.js +6 -0
  45. package/esm/carousal/index.d.ts +3 -0
  46. package/esm/carousal/index.js +2 -683
  47. package/esm/carousal/main.js +59 -0
  48. package/esm/carousal/shims/document.d.ts +2 -0
  49. package/esm/carousal/shims/document.js +3 -0
  50. package/esm/carousal/shims/window.d.ts +2 -0
  51. package/esm/carousal/shims/window.js +3 -0
  52. package/esm/index.d.ts +4 -0
  53. package/esm/index.js +6 -1
  54. package/esm/link/link.d.ts +2 -1
  55. package/esm/link/link.js +10 -7
  56. package/esm/login-with/index.js +0 -2
  57. package/esm/swipe/demo.js +57 -0
  58. package/esm/swipe/index.d.ts +4 -0
  59. package/esm/swipe/index.js +2 -0
  60. package/esm/swipe/react-swipe.d.ts +58 -0
  61. package/esm/swipe/react-swipe.js +246 -0
  62. package/package.json +4 -3
  63. package/esm/carousal/Arrow.js +0 -18
  64. package/esm/carousal/Indicator.js +0 -20
  65. /package/esm/carousal/{types.js → component/types.js} +0 -0
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ var reactSyntaxHighlighter = require('react-syntax-highlighter');
8
8
  var prism = require('react-syntax-highlighter/dist/cjs/styles/prism');
9
9
  var require$$0 = require('react-is');
10
10
  var isEqual = require('react-fast-compare');
11
+ var Button$1 = require('components/button');
11
12
 
12
13
  function _interopNamespaceDefault(e) {
13
14
  var n = Object.create(null);
@@ -3388,7 +3389,7 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
3388
3389
  return getAllScaleProps;
3389
3390
  };
3390
3391
 
3391
- var _excluded$1n = ["children"];
3392
+ var _excluded$1o = ["children"];
3392
3393
  var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
3393
3394
  if (scale === 1) return scale;
3394
3395
  var diff = Math.abs((scale - 1) / 2);
@@ -3398,7 +3399,7 @@ var withScale = function withScale(Render) {
3398
3399
  var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3399
3400
  var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
3400
3401
  var children = _ref.children,
3401
- props = _objectWithoutProperties(_ref, _excluded$1n);
3402
+ props = _objectWithoutProperties(_ref, _excluded$1o);
3402
3403
  var _useTheme = distExports.useTheme(),
3403
3404
  layout = _useTheme.layout;
3404
3405
  var paddingLeft = props.paddingLeft,
@@ -3481,7 +3482,7 @@ var withScale = function withScale(Render) {
3481
3482
  return ScaleFC;
3482
3483
  };
3483
3484
 
3484
- var _excluded$1m = ["label", "labelRight", "color", "error", "type", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled"];
3485
+ var _excluded$1n = ["label", "labelRight", "color", "error", "type", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled"];
3485
3486
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
3486
3487
  return _objectSpread2(_objectSpread2({}, event), {}, {
3487
3488
  target: el,
@@ -3521,7 +3522,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3521
3522
  children = _ref.children,
3522
3523
  _ref$disabled = _ref.disabled,
3523
3524
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
3524
- props = _objectWithoutProperties(_ref, _excluded$1m);
3525
+ props = _objectWithoutProperties(_ref, _excluded$1n);
3525
3526
  var theme = distExports.useTheme();
3526
3527
  var _useScale = useScale(),
3527
3528
  SCALES = _useScale.SCALES;
@@ -3670,7 +3671,7 @@ tuple('hover', 'click');
3670
3671
  tuple('top', 'topStart', 'topEnd', 'left', 'leftStart', 'leftEnd', 'bottom', 'bottomStart', 'bottomEnd', 'right', 'rightStart', 'rightEnd');
3671
3672
  tuple('start', 'center', 'end', 'left', 'right');
3672
3673
 
3673
- var _excluded$1l = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
3674
+ var _excluded$1m = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
3674
3675
  tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
3675
3676
  var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3676
3677
  var _ref$type = _ref.type,
@@ -3690,7 +3691,7 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3690
3691
  placeholder = _ref.placeholder,
3691
3692
  _ref$resize = _ref.resize,
3692
3693
  resize = _ref$resize === void 0 ? 'none' : _ref$resize,
3693
- props = _objectWithoutProperties(_ref, _excluded$1l);
3694
+ props = _objectWithoutProperties(_ref, _excluded$1m);
3694
3695
  var theme = distExports.useTheme();
3695
3696
  var _useScale = useScale(),
3696
3697
  SCALES = _useScale.SCALES;
@@ -3790,11 +3791,11 @@ var PasswordIcon = function PasswordIcon(_ref) {
3790
3791
  };
3791
3792
  var MemoPasswordIcon = /*#__PURE__*/React.memo(PasswordIcon);
3792
3793
 
3793
- var _excluded$1k = ["hideToggle", "children"];
3794
+ var _excluded$1l = ["hideToggle", "children"];
3794
3795
  var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3795
3796
  var hideToggle = _ref.hideToggle,
3796
3797
  children = _ref.children,
3797
- props = _objectWithoutProperties(_ref, _excluded$1k);
3798
+ props = _objectWithoutProperties(_ref, _excluded$1l);
3798
3799
  var _useScale = useScale(),
3799
3800
  getAllScaleProps = _useScale.getAllScaleProps;
3800
3801
  var inputRef = React.useRef(null);
@@ -3955,7 +3956,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
3955
3956
  };
3956
3957
  AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
3957
3958
 
3958
- var _excluded$1j = ["children", "type", "color", "className", "spaceRatio"];
3959
+ var _excluded$1k = ["children", "type", "color", "className", "spaceRatio"];
3959
3960
  var getIconBgColor = function getIconBgColor(type, palette, color) {
3960
3961
  var colors = {
3961
3962
  "default": palette.accents_6,
@@ -3975,7 +3976,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
3975
3976
  className = _ref$className === void 0 ? '' : _ref$className,
3976
3977
  _ref$spaceRatio = _ref.spaceRatio,
3977
3978
  spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
3978
- props = _objectWithoutProperties(_ref, _excluded$1j);
3979
+ props = _objectWithoutProperties(_ref, _excluded$1k);
3979
3980
  var theme = distExports.useTheme();
3980
3981
  var _useScale = useScale(),
3981
3982
  SCALES = _useScale.SCALES;
@@ -13879,7 +13880,7 @@ const HelpCircle = ({ color, strokeWidth, set }) => {
13879
13880
  HelpCircle.displayName = "HelpCircle";
13880
13881
  createIcon(HelpCircle);
13881
13882
 
13882
- var _excluded$1i = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
13883
+ var _excluded$1j = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
13883
13884
  var childrenToOptionsNode = function childrenToOptionsNode(options) {
13884
13885
  return options.map(function (item, index) {
13885
13886
  var key = "auto-complete-item-".concat(index);
@@ -13928,7 +13929,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
13928
13929
  _ref$disableFreeSolo = _ref.disableFreeSolo,
13929
13930
  disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
13930
13931
  getPopupContainer = _ref.getPopupContainer,
13931
- props = _objectWithoutProperties(_ref, _excluded$1i);
13932
+ props = _objectWithoutProperties(_ref, _excluded$1j);
13932
13933
  var resetTimer = React.useRef(0); // DEFAULT Value 0
13933
13934
  var _useScale = useScale(),
13934
13935
  SCALES = _useScale.SCALES,
@@ -14073,7 +14074,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
14073
14074
  AutoComplete.Searching = AutoCompleteSearch;
14074
14075
  AutoComplete.Empty = AutoCompleteEmpty;
14075
14076
 
14076
- var _excluded$1h = ["src", "stacked", "text", "isSquare", "className", "children"];
14077
+ var _excluded$1i = ["src", "stacked", "text", "isSquare", "className", "children"];
14077
14078
 
14078
14079
  // type NativeAttrs = Omit<
14079
14080
  // Partial<React.ImgHTMLAttributes<any> & React.HTMLAttributes<any>>,
@@ -14095,7 +14096,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
14095
14096
  _ref$className = _ref.className,
14096
14097
  className = _ref$className === void 0 ? '' : _ref$className,
14097
14098
  children = _ref.children,
14098
- props = _objectWithoutProperties(_ref, _excluded$1h);
14099
+ props = _objectWithoutProperties(_ref, _excluded$1i);
14099
14100
  var theme = distExports.useTheme();
14100
14101
  var _useScale = useScale(),
14101
14102
  SCALES = _useScale.SCALES;
@@ -14145,7 +14146,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
14145
14146
 
14146
14147
  Avatar.Group = AvatarGroup;
14147
14148
 
14148
- var _excluded$1g = ["color", "className", "children", "dot"];
14149
+ var _excluded$1h = ["color", "className", "children", "dot"];
14149
14150
  var getBgColor = function getBgColor(type, palette) {
14150
14151
  var colors = {
14151
14152
  "default": palette.foreground,
@@ -14164,7 +14165,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
14164
14165
  children = _ref.children,
14165
14166
  _ref$dot = _ref.dot,
14166
14167
  dot = _ref$dot === void 0 ? false : _ref$dot,
14167
- props = _objectWithoutProperties(_ref, _excluded$1g);
14168
+ props = _objectWithoutProperties(_ref, _excluded$1h);
14168
14169
  var theme = distExports.useTheme();
14169
14170
  var _useScale = useScale(),
14170
14171
  SCALES = _useScale.SCALES;
@@ -14365,7 +14366,7 @@ var LinkIconComponent = function LinkIconComponent() {
14365
14366
  LinkIconComponent.displayName = 'LinkIcon';
14366
14367
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
14367
14368
 
14368
- var _excluded$1f = ["href", "showColor", "underline", "children", "className", "block", "icon"];
14369
+ var _excluded$1g = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
14369
14370
  var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14370
14371
  var _ref$href = _ref.href,
14371
14372
  href = _ref$href === void 0 ? '' : _ref$href,
@@ -14378,9 +14379,10 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14378
14379
  className = _ref$className === void 0 ? '' : _ref$className,
14379
14380
  _ref$block = _ref.block,
14380
14381
  block = _ref$block === void 0 ? false : _ref$block,
14381
- _ref$icon = _ref.icon,
14382
- icon = _ref$icon === void 0 ? false : _ref$icon,
14383
- props = _objectWithoutProperties(_ref, _excluded$1f);
14382
+ _ref$arrow = _ref.arrow,
14383
+ arrow = _ref$arrow === void 0 ? false : _ref$arrow,
14384
+ icon = _ref.icon,
14385
+ props = _objectWithoutProperties(_ref, _excluded$1g);
14384
14386
  var theme = distExports.useTheme();
14385
14387
  var _useScale = useScale(),
14386
14388
  SCALES = _useScale.SCALES;
@@ -14394,16 +14396,18 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14394
14396
  href: href
14395
14397
  }, props, {
14396
14398
  ref: ref,
14397
- className: _JSXStyle.dynamic([["442871747", [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || "")
14398
- }), children, icon && /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(_JSXStyle, {
14399
- id: "442871747",
14399
+ className: _JSXStyle.dynamic([["1742013413", [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || "")
14400
+ }), icon && icon, /*#__PURE__*/React.createElement("span", {
14401
+ className: _JSXStyle.dynamic([["1742013413", [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]]])
14402
+ }, children, arrow && /*#__PURE__*/React.createElement(LinkIcon, null)), /*#__PURE__*/React.createElement(_JSXStyle, {
14403
+ id: "1742013413",
14400
14404
  dynamic: [linkColor, block ? theme.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', hoverColor]
14401
- }, ".link.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:baseline;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;line-height:inherit;color:".concat(linkColor, ";-webkit-text-decoration:none;text-decoration:none;border-radius:").concat(block ? theme.layout.radius : 0, ";-webkit-transition:color 200ms ease 0ms;transition:color 200ms ease 0ms;font-size:").concat(SCALES.font(1, 'inherit'), ";width:").concat(SCALES.width(1, 'fit-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.block.__jsx-style-dynamic-selector{padding:").concat(SCALES.pt(0.125), " ").concat(SCALES.pr(0.25), " ").concat(SCALES.pb(0.125), " ").concat(SCALES.pl(0.25), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(-0.125), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(-0.125), ";}.link.__jsx-style-dynamic-selector:hover,.link.__jsx-style-dynamic-selector:active,.link.__jsx-style-dynamic-selector:focus{-webkit-text-decoration:").concat(decoration, ";text-decoration:").concat(decoration, ";}.link.__jsx-style-dynamic-selector:hover{background-color:").concat(block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', ";color:").concat(hoverColor, ";}")));
14405
+ }, ".link.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:inherit;gap:5px;color:".concat(linkColor, ";-webkit-text-decoration:none;text-decoration:none;border-radius:").concat(block ? theme.layout.radius : 0, ";-webkit-transition:color 200ms ease 0ms;transition:color 200ms ease 0ms;font-size:").concat(SCALES.font(1, 'inherit'), ";width:").concat(SCALES.width(1, 'fit-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.block.__jsx-style-dynamic-selector{padding:").concat(SCALES.pt(0.125), " ").concat(SCALES.pr(0.25), " ").concat(SCALES.pb(0.125), " ").concat(SCALES.pl(0.25), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(-0.125), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(-0.125), ";}.link.__jsx-style-dynamic-selector:hover,.link.__jsx-style-dynamic-selector:active,.link.__jsx-style-dynamic-selector:focus{-webkit-text-decoration:").concat(decoration, ";text-decoration:").concat(decoration, ";}.link.__jsx-style-dynamic-selector:hover{background-color:").concat(block ? addColorAlpha(theme.palette.link, 0.1) : 'unset', ";color:").concat(hoverColor, ";}")));
14402
14406
  });
14403
14407
  LinkComponent.displayName = 'Link';
14404
14408
  var Link = withScale(LinkComponent);
14405
14409
 
14406
- var _excluded$1e = ["href", "nextLink", "onClick", "children", "className"];
14410
+ var _excluded$1f = ["href", "nextLink", "onClick", "children", "className"];
14407
14411
  var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14408
14412
  var href = _ref.href,
14409
14413
  _ref$nextLink = _ref.nextLink,
@@ -14412,7 +14416,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14412
14416
  children = _ref.children,
14413
14417
  _ref$className = _ref.className,
14414
14418
  className = _ref$className === void 0 ? '' : _ref$className,
14415
- props = _objectWithoutProperties(_ref, _excluded$1e);
14419
+ props = _objectWithoutProperties(_ref, _excluded$1f);
14416
14420
  var isLink = React.useMemo(function () {
14417
14421
  return href !== undefined || nextLink;
14418
14422
  }, [href, nextLink]);
@@ -14509,7 +14513,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
14509
14513
  };
14510
14514
  ButtonLoading.displayName = 'ButtonLoading';
14511
14515
 
14512
- var _excluded$1d = ["isRight", "isSingle", "children", "className"];
14516
+ var _excluded$1e = ["isRight", "isSingle", "children", "className"];
14513
14517
  var ButtonIcon = function ButtonIcon(_ref) {
14514
14518
  var _ref$isRight = _ref.isRight,
14515
14519
  isRight = _ref$isRight === void 0 ? false : _ref$isRight,
@@ -14517,7 +14521,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
14517
14521
  children = _ref.children,
14518
14522
  _ref$className = _ref.className,
14519
14523
  className = _ref$className === void 0 ? '' : _ref$className,
14520
- props = _objectWithoutProperties(_ref, _excluded$1d);
14524
+ props = _objectWithoutProperties(_ref, _excluded$1e);
14521
14525
  var classes = distExports.useClasses('icon', {
14522
14526
  right: isRight,
14523
14527
  single: isSingle
@@ -14764,7 +14768,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
14764
14768
  return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
14765
14769
  };
14766
14770
 
14767
- var _excluded$1c = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
14771
+ var _excluded$1d = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
14768
14772
  var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
14769
14773
  var theme = distExports.useTheme();
14770
14774
  var _useScale = useScale(),
@@ -14813,7 +14817,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
14813
14817
  _filteredProps$classN = filteredProps.className,
14814
14818
  className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
14815
14819
  filteredProps.crossOrigin;
14816
- var props = _objectWithoutProperties(filteredProps, _excluded$1c);
14820
+ var props = _objectWithoutProperties(filteredProps, _excluded$1d);
14817
14821
  /* eslint-enable @typescript-eslint/no-unused-vars */
14818
14822
 
14819
14823
  var _useMemo = React.useMemo(function () {
@@ -15108,7 +15112,7 @@ var useButtonDropdown = function useButtonDropdown() {
15108
15112
  return React.useContext(ButtonDropdownContext);
15109
15113
  };
15110
15114
 
15111
- var _excluded$1b = ["children", "onClick", "className", "main", "icon", "type"];
15115
+ var _excluded$1c = ["children", "onClick", "className", "main", "icon", "type"];
15112
15116
  var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
15113
15117
  var children = _ref.children,
15114
15118
  _ref$onClick = _ref.onClick,
@@ -15119,7 +15123,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
15119
15123
  main = _ref$main === void 0 ? false : _ref$main,
15120
15124
  icon = _ref.icon,
15121
15125
  selfType = _ref.type,
15122
- props = _objectWithoutProperties(_ref, _excluded$1b);
15126
+ props = _objectWithoutProperties(_ref, _excluded$1c);
15123
15127
  var theme = distExports.useTheme();
15124
15128
  var _useScale = useScale(),
15125
15129
  SCALES = _useScale.SCALES;
@@ -15156,7 +15160,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
15156
15160
  };
15157
15161
  ButtonDropdownItem.displayName = 'ButtonDropdownItem';
15158
15162
 
15159
- var _excluded$1a = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
15163
+ var _excluded$1b = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
15160
15164
  var stopPropagation$1 = function stopPropagation(event) {
15161
15165
  event.stopPropagation();
15162
15166
  event.nativeEvent.stopImmediatePropagation();
@@ -15174,7 +15178,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
15174
15178
  _ref$loading = _ref.loading,
15175
15179
  loading = _ref$loading === void 0 ? false : _ref$loading,
15176
15180
  icon = _ref.icon,
15177
- props = _objectWithoutProperties(_ref, _excluded$1a);
15181
+ props = _objectWithoutProperties(_ref, _excluded$1b);
15178
15182
  var _useScale = useScale(),
15179
15183
  SCALES = _useScale.SCALES;
15180
15184
  var ref = React.useRef(null);
@@ -15248,7 +15252,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
15248
15252
  /* "use client" */
15249
15253
  ButtonDropdown.Item = ButtonDropdownItem;
15250
15254
 
15251
- var _excluded$19 = ["disabled", "type", "ghost", "vertical", "children", "className"];
15255
+ var _excluded$1a = ["disabled", "type", "ghost", "vertical", "children", "className"];
15252
15256
  var getGroupBorderColors = function getGroupBorderColors(palette, props) {
15253
15257
  var _props$ghost = props.ghost,
15254
15258
  ghost = _props$ghost === void 0 ? false : _props$ghost,
@@ -15275,7 +15279,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
15275
15279
  vertical = groupProps.vertical,
15276
15280
  children = groupProps.children,
15277
15281
  className = groupProps.className,
15278
- props = _objectWithoutProperties(groupProps, _excluded$19);
15282
+ props = _objectWithoutProperties(groupProps, _excluded$1a);
15279
15283
  var initialValue = React.useMemo(function () {
15280
15284
  return {
15281
15285
  disabled: disabled,
@@ -15332,7 +15336,7 @@ var useProportions = function useProportions(value, max) {
15332
15336
  }, [value, max, maxFixed]);
15333
15337
  };
15334
15338
 
15335
- var _excluded$18 = ["value", "limit", "color", "className"];
15339
+ var _excluded$19 = ["value", "limit", "color", "className"];
15336
15340
  var getColor$3 = function getColor(val, palette) {
15337
15341
  if (val < 33) return palette.cyan;
15338
15342
  if (val < 66) return palette.warning;
@@ -15346,7 +15350,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
15346
15350
  userColor = _ref.color,
15347
15351
  _ref$className = _ref.className,
15348
15352
  className = _ref$className === void 0 ? '' : _ref$className,
15349
- props = _objectWithoutProperties(_ref, _excluded$18);
15353
+ props = _objectWithoutProperties(_ref, _excluded$19);
15350
15354
  var theme = distExports.useTheme();
15351
15355
  var _useScale = useScale(),
15352
15356
  SCALES = _useScale.SCALES;
@@ -15423,14 +15427,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
15423
15427
  });
15424
15428
  };
15425
15429
 
15426
- var _excluded$17 = ["children", "className", "disableAutoMargin"];
15430
+ var _excluded$18 = ["children", "className", "disableAutoMargin"];
15427
15431
  var CardFooterComponent = function CardFooterComponent(_ref) {
15428
15432
  var children = _ref.children,
15429
15433
  _ref$className = _ref.className,
15430
15434
  className = _ref$className === void 0 ? '' : _ref$className,
15431
15435
  _ref$disableAutoMargi = _ref.disableAutoMargin,
15432
15436
  disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
15433
- props = _objectWithoutProperties(_ref, _excluded$17);
15437
+ props = _objectWithoutProperties(_ref, _excluded$18);
15434
15438
  var theme = distExports.useTheme();
15435
15439
  var _useScale = useScale(),
15436
15440
  SCALES = _useScale.SCALES;
@@ -15447,12 +15451,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
15447
15451
  CardFooterComponent.displayName = 'CardFooter';
15448
15452
  var CardFooter = withScale(CardFooterComponent);
15449
15453
 
15450
- var _excluded$16 = ["className", "children"];
15454
+ var _excluded$17 = ["className", "children"];
15451
15455
  var CardContentComponent = function CardContentComponent(_ref) {
15452
15456
  var _ref$className = _ref.className,
15453
15457
  className = _ref$className === void 0 ? '' : _ref$className,
15454
15458
  children = _ref.children,
15455
- props = _objectWithoutProperties(_ref, _excluded$16);
15459
+ props = _objectWithoutProperties(_ref, _excluded$17);
15456
15460
  var _useScale = useScale(),
15457
15461
  SCALES = _useScale.SCALES;
15458
15462
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
@@ -15465,11 +15469,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
15465
15469
  CardContentComponent.displayName = 'CardContent';
15466
15470
  var CardContent = withScale(CardContentComponent);
15467
15471
 
15468
- var _excluded$15 = ["opacity"];
15472
+ var _excluded$16 = ["opacity"];
15469
15473
  var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
15470
15474
  var _ref$opacity = _ref.opacity,
15471
15475
  opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
15472
- props = _objectWithoutProperties(_ref, _excluded$15);
15476
+ props = _objectWithoutProperties(_ref, _excluded$16);
15473
15477
  var theme = distExports.useTheme();
15474
15478
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
15475
15479
  className: _JSXStyle.dynamic([["2946022605", [theme.palette.accents_1, theme.palette.accents_2, theme.palette.accents_2, theme.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton")
@@ -15495,7 +15499,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
15495
15499
  }
15496
15500
  };
15497
15501
 
15498
- var _excluded$14 = ["src", "disableSkeleton", "className", "maxDelay"];
15502
+ var _excluded$15 = ["src", "disableSkeleton", "className", "maxDelay"];
15499
15503
  var ImageComponent = function ImageComponent(_ref) {
15500
15504
  var src = _ref.src,
15501
15505
  _ref$disableSkeleton = _ref.disableSkeleton,
@@ -15504,7 +15508,7 @@ var ImageComponent = function ImageComponent(_ref) {
15504
15508
  className = _ref$className === void 0 ? '' : _ref$className,
15505
15509
  _ref$maxDelay = _ref.maxDelay,
15506
15510
  maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
15507
- props = _objectWithoutProperties(_ref, _excluded$14);
15511
+ props = _objectWithoutProperties(_ref, _excluded$15);
15508
15512
  var _useScale = useScale(),
15509
15513
  SCALES = _useScale.SCALES,
15510
15514
  getScaleProps = _useScale.getScaleProps;
@@ -15600,7 +15604,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
15600
15604
  };
15601
15605
  };
15602
15606
 
15603
- var _excluded$13 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
15607
+ var _excluded$14 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
15604
15608
  var getTitle = function getTitle(title, colors) {
15605
15609
  return /*#__PURE__*/React.createElement("div", {
15606
15610
  className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title"
@@ -15635,7 +15639,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15635
15639
  anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
15636
15640
  _ref$className = _ref.className,
15637
15641
  className = _ref$className === void 0 ? '' : _ref$className,
15638
- props = _objectWithoutProperties(_ref, _excluded$13);
15642
+ props = _objectWithoutProperties(_ref, _excluded$14);
15639
15643
  var theme = distExports.useTheme();
15640
15644
  var _useScale = useScale(),
15641
15645
  SCALES = _useScale.SCALES;
@@ -15671,7 +15675,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
15671
15675
 
15672
15676
  Image.Browser = ImageBrowser;
15673
15677
 
15674
- var _excluded$12 = ["children", "hoverable", "className", "shadow", "type"];
15678
+ var _excluded$13 = ["children", "hoverable", "className", "shadow", "type"];
15675
15679
  var CardComponent = function CardComponent(_ref) {
15676
15680
  var children = _ref.children,
15677
15681
  _ref$hoverable = _ref.hoverable,
@@ -15682,7 +15686,7 @@ var CardComponent = function CardComponent(_ref) {
15682
15686
  shadow = _ref$shadow === void 0 ? false : _ref$shadow,
15683
15687
  _ref$type = _ref.type,
15684
15688
  type = _ref$type === void 0 ? 'default' : _ref$type,
15685
- props = _objectWithoutProperties(_ref, _excluded$12);
15689
+ props = _objectWithoutProperties(_ref, _excluded$13);
15686
15690
  var theme = distExports.useTheme();
15687
15691
  var _useScale = useScale(),
15688
15692
  SCALES = _useScale.SCALES;
@@ -15817,7 +15821,7 @@ var getColors$6 = function getColors(palette, status) {
15817
15821
  return colors[status];
15818
15822
  };
15819
15823
 
15820
- var _excluded$11 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
15824
+ var _excluded$12 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
15821
15825
  var CheckboxComponent = function CheckboxComponent(_ref) {
15822
15826
  var checked = _ref.checked,
15823
15827
  _ref$initialChecked = _ref.initialChecked,
@@ -15834,7 +15838,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
15834
15838
  value = _ref$value === void 0 ? '' : _ref$value,
15835
15839
  _ref$block = _ref.block,
15836
15840
  block = _ref$block === void 0 ? false : _ref$block,
15837
- props = _objectWithoutProperties(_ref, _excluded$11);
15841
+ props = _objectWithoutProperties(_ref, _excluded$12);
15838
15842
  var theme = distExports.useTheme();
15839
15843
  var _useScale = useScale(),
15840
15844
  SCALES = _useScale.SCALES;
@@ -15914,7 +15918,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
15914
15918
  CheckboxComponent.displayName = 'Checkbox';
15915
15919
  var Checkbox = withScale(CheckboxComponent);
15916
15920
 
15917
- var _excluded$10 = ["disabled", "onChange", "value", "children", "className"];
15921
+ var _excluded$11 = ["disabled", "onChange", "value", "children", "className"];
15918
15922
  var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
15919
15923
  var _ref$disabled = _ref.disabled,
15920
15924
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -15923,7 +15927,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
15923
15927
  children = _ref.children,
15924
15928
  _ref$className = _ref.className,
15925
15929
  className = _ref$className === void 0 ? '' : _ref$className,
15926
- props = _objectWithoutProperties(_ref, _excluded$10);
15930
+ props = _objectWithoutProperties(_ref, _excluded$11);
15927
15931
  var _useScale = useScale(),
15928
15932
  SCALES = _useScale.SCALES;
15929
15933
  var _useState = React.useState([]),
@@ -15970,7 +15974,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
15970
15974
 
15971
15975
  Checkbox.Group = CheckboxGroup;
15972
15976
 
15973
- var _excluded$$ = ["children", "block", "className", "name", "classic"];
15977
+ var _excluded$10 = ["children", "block", "className", "name", "classic"];
15974
15978
  var CodeComponent = function CodeComponent(_ref) {
15975
15979
  var children = _ref.children,
15976
15980
  _ref$block = _ref.block,
@@ -15981,7 +15985,7 @@ var CodeComponent = function CodeComponent(_ref) {
15981
15985
  name = _ref$name === void 0 ? '' : _ref$name,
15982
15986
  _ref$classic = _ref.classic,
15983
15987
  classic = _ref$classic === void 0 ? false : _ref$classic,
15984
- props = _objectWithoutProperties(_ref, _excluded$$);
15988
+ props = _objectWithoutProperties(_ref, _excluded$10);
15985
15989
  var _useScale = useScale(),
15986
15990
  SCALES = _useScale.SCALES;
15987
15991
  var theme = distExports.useTheme();
@@ -16177,12 +16181,12 @@ _defineProperty$1(CircularProgressbar, "defaultProps", {
16177
16181
  text: ''
16178
16182
  });
16179
16183
 
16180
- var _excluded$_ = ["children"];
16184
+ var _excluded$$ = ["children"];
16181
16185
  // This is a wrapper around CircularProgressbar that allows passing children,
16182
16186
  // which will be vertically and horizontally centered inside the progressbar automatically.
16183
16187
  function CircularProgressbarWithChildren(props) {
16184
16188
  props.children;
16185
- var circularProgressbarProps = _objectWithoutProperties(props, _excluded$_);
16189
+ var circularProgressbarProps = _objectWithoutProperties(props, _excluded$$);
16186
16190
  return /*#__PURE__*/React__namespace.createElement("div", {
16187
16191
  "data-test-id": "CircularProgressbarWithChildren"
16188
16192
  }, /*#__PURE__*/React__namespace.createElement("div", {
@@ -16286,7 +16290,7 @@ var useCollapseContext = function useCollapseContext() {
16286
16290
  return React.useContext(CollapseContext);
16287
16291
  };
16288
16292
 
16289
- var _excluded$Z = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
16293
+ var _excluded$_ = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
16290
16294
  var CollapseComponent = function CollapseComponent(_ref) {
16291
16295
  var children = _ref.children,
16292
16296
  title = _ref.title,
@@ -16298,7 +16302,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
16298
16302
  _ref$className = _ref.className,
16299
16303
  className = _ref$className === void 0 ? '' : _ref$className,
16300
16304
  index = _ref.index,
16301
- props = _objectWithoutProperties(_ref, _excluded$Z);
16305
+ props = _objectWithoutProperties(_ref, _excluded$_);
16302
16306
  var theme = distExports.useTheme();
16303
16307
  var _useScale = useScale(),
16304
16308
  SCALES = _useScale.SCALES;
@@ -16354,14 +16358,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
16354
16358
  CollapseComponent.displayName = 'Collapse';
16355
16359
  var Collapse = withScale(CollapseComponent);
16356
16360
 
16357
- var _excluded$Y = ["children", "accordion", "className"];
16361
+ var _excluded$Z = ["children", "accordion", "className"];
16358
16362
  var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
16359
16363
  var children = _ref.children,
16360
16364
  _ref$accordion = _ref.accordion,
16361
16365
  accordion = _ref$accordion === void 0 ? true : _ref$accordion,
16362
16366
  _ref$className = _ref.className,
16363
16367
  className = _ref$className === void 0 ? '' : _ref$className,
16364
- props = _objectWithoutProperties(_ref, _excluded$Y);
16368
+ props = _objectWithoutProperties(_ref, _excluded$Z);
16365
16369
  var _useScale = useScale(),
16366
16370
  SCALES = _useScale.SCALES;
16367
16371
  var _useCurrentState = distExports.useCurrentState([]),
@@ -16414,7 +16418,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
16414
16418
 
16415
16419
  Collapse.Group = CollapseGroup;
16416
16420
 
16417
- var _excluded$X = ["title", "content", "className"];
16421
+ var _excluded$Y = ["title", "content", "className"];
16418
16422
  var DescriptionComponent = function DescriptionComponent(_ref) {
16419
16423
  var _ref$title = _ref.title,
16420
16424
  title = _ref$title === void 0 ? 'Title' : _ref$title,
@@ -16422,7 +16426,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
16422
16426
  content = _ref$content === void 0 ? '' : _ref$content,
16423
16427
  _ref$className = _ref.className,
16424
16428
  className = _ref$className === void 0 ? '' : _ref$className,
16425
- props = _objectWithoutProperties(_ref, _excluded$X);
16429
+ props = _objectWithoutProperties(_ref, _excluded$Y);
16426
16430
  var theme = distExports.useTheme();
16427
16431
  var _useScale = useScale(),
16428
16432
  SCALES = _useScale.SCALES;
@@ -16441,7 +16445,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
16441
16445
  DescriptionComponent.displayName = 'Description';
16442
16446
  var Description = withScale(DescriptionComponent);
16443
16447
 
16444
- var _excluded$W = ["children", "caption", "shadow", "className"];
16448
+ var _excluded$X = ["children", "caption", "shadow", "className"];
16445
16449
  var DisplayComponent = function DisplayComponent(_ref) {
16446
16450
  var children = _ref.children,
16447
16451
  _ref$caption = _ref.caption,
@@ -16450,7 +16454,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
16450
16454
  shadow = _ref$shadow === void 0 ? false : _ref$shadow,
16451
16455
  _ref$className = _ref.className,
16452
16456
  className = _ref$className === void 0 ? '' : _ref$className,
16453
- props = _objectWithoutProperties(_ref, _excluded$W);
16457
+ props = _objectWithoutProperties(_ref, _excluded$X);
16454
16458
  var theme = distExports.useTheme();
16455
16459
  var _useScale = useScale(),
16456
16460
  SCALES = _useScale.SCALES;
@@ -16472,7 +16476,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
16472
16476
  DisplayComponent.displayName = 'Display';
16473
16477
  var Display = withScale(DisplayComponent);
16474
16478
 
16475
- var _excluded$V = ["type", "align", "children", "className"];
16479
+ var _excluded$W = ["type", "align", "children", "className"];
16476
16480
  var getColor$2 = function getColor(type, palette) {
16477
16481
  var colors = {
16478
16482
  "default": palette.border,
@@ -16493,7 +16497,7 @@ var DividerComponent = function DividerComponent(_ref) {
16493
16497
  children = _ref.children,
16494
16498
  _ref$className = _ref.className,
16495
16499
  className = _ref$className === void 0 ? '' : _ref$className,
16496
- props = _objectWithoutProperties(_ref, _excluded$V);
16500
+ props = _objectWithoutProperties(_ref, _excluded$W);
16497
16501
  var theme = distExports.useTheme();
16498
16502
  var _useScale = useScale(),
16499
16503
  SCALES = _useScale.SCALES;
@@ -16522,7 +16526,7 @@ var DividerComponent = function DividerComponent(_ref) {
16522
16526
  DividerComponent.displayName = 'Divider';
16523
16527
  var Divider = withScale(DividerComponent);
16524
16528
 
16525
- var _excluded$U = ["type", "children", "className"];
16529
+ var _excluded$V = ["type", "children", "className"];
16526
16530
  var getColor$1 = function getColor(type, theme) {
16527
16531
  var colors = {
16528
16532
  "default": theme.palette.accents_2,
@@ -16538,7 +16542,7 @@ var DotComponent = function DotComponent(_ref) {
16538
16542
  children = _ref.children,
16539
16543
  _ref$className = _ref.className,
16540
16544
  className = _ref$className === void 0 ? '' : _ref$className,
16541
- props = _objectWithoutProperties(_ref, _excluded$U);
16545
+ props = _objectWithoutProperties(_ref, _excluded$V);
16542
16546
  var theme = distExports.useTheme();
16543
16547
  var _useScale = useScale(),
16544
16548
  SCALES = _useScale.SCALES;
@@ -16873,7 +16877,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
16873
16877
  return translates[placement];
16874
16878
  };
16875
16879
 
16876
- var _excluded$T = ["className", "children", "visible", "placement"];
16880
+ var _excluded$U = ["className", "children", "visible", "placement"];
16877
16881
  var DrawerWrapper = function DrawerWrapper(_ref) {
16878
16882
  var _ref$className = _ref.className,
16879
16883
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -16881,7 +16885,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
16881
16885
  _ref$visible = _ref.visible,
16882
16886
  visible = _ref$visible === void 0 ? false : _ref$visible,
16883
16887
  placement = _ref.placement,
16884
- props = _objectWithoutProperties(_ref, _excluded$T);
16888
+ props = _objectWithoutProperties(_ref, _excluded$U);
16885
16889
  var theme = distExports.useTheme();
16886
16890
  var _useScale = useScale(),
16887
16891
  SCALES = _useScale.SCALES;
@@ -16941,7 +16945,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
16941
16945
  };
16942
16946
  DrawerWrapper.displayName = 'DrawerWrapper';
16943
16947
 
16944
- var _excluded$S = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
16948
+ var _excluded$T = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
16945
16949
  var DrawerComponent = function DrawerComponent(_ref) {
16946
16950
  var customVisible = _ref.visible,
16947
16951
  _ref$keyboard = _ref.keyboard,
@@ -16955,7 +16959,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
16955
16959
  children = _ref.children,
16956
16960
  _ref$placement = _ref.placement,
16957
16961
  placement = _ref$placement === void 0 ? 'right' : _ref$placement,
16958
- props = _objectWithoutProperties(_ref, _excluded$S);
16962
+ props = _objectWithoutProperties(_ref, _excluded$T);
16959
16963
  var portal = usePortal('drawer');
16960
16964
  var _useState = React.useState(false),
16961
16965
  _useState2 = _slicedToArray(_useState, 2),
@@ -17000,12 +17004,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
17000
17004
  };
17001
17005
  DrawerComponent.displayName = 'Drawer';
17002
17006
 
17003
- var _excluded$R = ["className", "children"];
17007
+ var _excluded$S = ["className", "children"];
17004
17008
  var ModalTitleComponent = function ModalTitleComponent(_ref) {
17005
17009
  var _ref$className = _ref.className,
17006
17010
  className = _ref$className === void 0 ? '' : _ref$className,
17007
17011
  children = _ref.children,
17008
- props = _objectWithoutProperties(_ref, _excluded$R);
17012
+ props = _objectWithoutProperties(_ref, _excluded$S);
17009
17013
  var theme = distExports.useTheme();
17010
17014
  var _useScale = useScale(),
17011
17015
  SCALES = _useScale.SCALES;
@@ -17019,12 +17023,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
17019
17023
  ModalTitleComponent.displayName = 'ModalTitle';
17020
17024
  var ModalTitle = withScale(ModalTitleComponent);
17021
17025
 
17022
- var _excluded$Q = ["className", "children"];
17026
+ var _excluded$R = ["className", "children"];
17023
17027
  var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
17024
17028
  var _ref$className = _ref.className,
17025
17029
  className = _ref$className === void 0 ? '' : _ref$className,
17026
17030
  children = _ref.children,
17027
- props = _objectWithoutProperties(_ref, _excluded$Q);
17031
+ props = _objectWithoutProperties(_ref, _excluded$R);
17028
17032
  var theme = distExports.useTheme();
17029
17033
  var _useScale = useScale(),
17030
17034
  SCALES = _useScale.SCALES;
@@ -17038,12 +17042,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
17038
17042
  ModalSubtitleComponent.displayName = 'ModalSubtitle';
17039
17043
  var ModalSubtitle = withScale(ModalSubtitleComponent);
17040
17044
 
17041
- var _excluded$P = ["className", "children"];
17045
+ var _excluded$Q = ["className", "children"];
17042
17046
  var ModalContentComponent = function ModalContentComponent(_ref) {
17043
17047
  var _ref$className = _ref.className,
17044
17048
  className = _ref$className === void 0 ? '' : _ref$className,
17045
17049
  children = _ref.children,
17046
- props = _objectWithoutProperties(_ref, _excluded$P);
17050
+ props = _objectWithoutProperties(_ref, _excluded$Q);
17047
17051
  var _useScale = useScale(),
17048
17052
  SCALES = _useScale.SCALES;
17049
17053
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({}, props, {
@@ -17061,12 +17065,12 @@ DrawerComponent.Title = ModalTitle;
17061
17065
  DrawerComponent.Subtitle = ModalSubtitle;
17062
17066
  DrawerComponent.Content = ModalContent;
17063
17067
 
17064
- var _excluded$O = ["className", "children"];
17068
+ var _excluded$P = ["className", "children"];
17065
17069
  var FieldsetTitle = function FieldsetTitle(_ref) {
17066
17070
  var _ref$className = _ref.className,
17067
17071
  className = _ref$className === void 0 ? '' : _ref$className,
17068
17072
  children = _ref.children,
17069
- props = _objectWithoutProperties(_ref, _excluded$O);
17073
+ props = _objectWithoutProperties(_ref, _excluded$P);
17070
17074
  var classes = distExports.useClasses('title', className);
17071
17075
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({}, props, {
17072
17076
  className: "jsx-4105044205" + " " + (props && props.className != null && props.className || classes || "")
@@ -17076,12 +17080,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
17076
17080
  };
17077
17081
  FieldsetTitle.displayName = 'FieldsetTitle';
17078
17082
 
17079
- var _excluded$N = ["className", "children"];
17083
+ var _excluded$O = ["className", "children"];
17080
17084
  var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
17081
17085
  var _ref$className = _ref.className,
17082
17086
  className = _ref$className === void 0 ? '' : _ref$className,
17083
17087
  children = _ref.children,
17084
- props = _objectWithoutProperties(_ref, _excluded$N);
17088
+ props = _objectWithoutProperties(_ref, _excluded$O);
17085
17089
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({}, props, {
17086
17090
  className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || "")
17087
17091
  }), children), /*#__PURE__*/React.createElement(_JSXStyle, {
@@ -17090,12 +17094,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
17090
17094
  };
17091
17095
  FieldsetSubtitle.displayName = 'FieldsetSubtitle';
17092
17096
 
17093
- var _excluded$M = ["className", "children"];
17097
+ var _excluded$N = ["className", "children"];
17094
17098
  var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
17095
17099
  var _ref$className = _ref.className,
17096
17100
  className = _ref$className === void 0 ? '' : _ref$className,
17097
17101
  children = _ref.children,
17098
- props = _objectWithoutProperties(_ref, _excluded$M);
17102
+ props = _objectWithoutProperties(_ref, _excluded$N);
17099
17103
  var theme = distExports.useTheme();
17100
17104
  var _useScale = useScale(),
17101
17105
  SCALES = _useScale.SCALES;
@@ -17109,12 +17113,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
17109
17113
  FieldsetFooterComponent.displayName = 'FieldsetFooter';
17110
17114
  var FieldsetFooter = withScale(FieldsetFooterComponent);
17111
17115
 
17112
- var _excluded$L = ["className", "children"];
17116
+ var _excluded$M = ["className", "children"];
17113
17117
  var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
17114
17118
  var _ref$className = _ref.className,
17115
17119
  className = _ref$className === void 0 ? '' : _ref$className,
17116
17120
  children = _ref.children,
17117
- props = _objectWithoutProperties(_ref, _excluded$L);
17121
+ props = _objectWithoutProperties(_ref, _excluded$M);
17118
17122
  var _useScale = useScale(),
17119
17123
  SCALES = _useScale.SCALES;
17120
17124
  var classes = distExports.useClasses('content', className);
@@ -17139,7 +17143,7 @@ var useFieldset = function useFieldset() {
17139
17143
  return React.useContext(FieldsetContext);
17140
17144
  };
17141
17145
 
17142
- var _excluded$K = ["className", "title", "subtitle", "children", "value", "label"];
17146
+ var _excluded$L = ["className", "title", "subtitle", "children", "value", "label"];
17143
17147
  var FieldsetComponent = function FieldsetComponent(_ref) {
17144
17148
  var _ref$className = _ref.className,
17145
17149
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -17152,7 +17156,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
17152
17156
  value = _ref$value === void 0 ? '' : _ref$value,
17153
17157
  _ref$label = _ref.label,
17154
17158
  label = _ref$label === void 0 ? '' : _ref$label,
17155
- props = _objectWithoutProperties(_ref, _excluded$K);
17159
+ props = _objectWithoutProperties(_ref, _excluded$L);
17156
17160
  var theme = distExports.useTheme();
17157
17161
  var _useScale = useScale(),
17158
17162
  SCALES = _useScale.SCALES;
@@ -17206,14 +17210,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
17206
17210
  FieldsetComponent.displayName = 'Fieldset';
17207
17211
  var Fieldset = withScale(FieldsetComponent);
17208
17212
 
17209
- var _excluded$J = ["className", "children", "value", "onChange"];
17213
+ var _excluded$K = ["className", "children", "value", "onChange"];
17210
17214
  var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
17211
17215
  var _ref$className = _ref.className,
17212
17216
  className = _ref$className === void 0 ? '' : _ref$className,
17213
17217
  children = _ref.children,
17214
17218
  value = _ref.value,
17215
17219
  onChange = _ref.onChange,
17216
- props = _objectWithoutProperties(_ref, _excluded$J);
17220
+ props = _objectWithoutProperties(_ref, _excluded$K);
17217
17221
  var theme = distExports.useTheme();
17218
17222
  var _useScale = useScale(),
17219
17223
  SCALES = _useScale.SCALES;
@@ -21919,7 +21923,7 @@ function setNestedObjectValues(object, value) {
21919
21923
 
21920
21924
  var __DEV__ = true;
21921
21925
 
21922
- var _excluded$I = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
21926
+ var _excluded$J = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
21923
21927
  // State reducer
21924
21928
  function formikReducer(state, msg) {
21925
21929
  switch (msg.type) {
@@ -22003,7 +22007,7 @@ function useFormik(_ref) {
22003
22007
  _ref$enableReinitiali = _ref.enableReinitialize,
22004
22008
  enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
22005
22009
  onSubmit = _ref.onSubmit,
22006
- rest = _objectWithoutProperties(_ref, _excluded$I);
22010
+ rest = _objectWithoutProperties(_ref, _excluded$J);
22007
22011
  var props = _objectSpread2({
22008
22012
  validateOnChange: validateOnChange,
22009
22013
  validateOnBlur: validateOnBlur,
@@ -22875,7 +22879,7 @@ function useEventCallback(fn) {
22875
22879
  }, []);
22876
22880
  }
22877
22881
 
22878
- var _excluded$H = ["mapPropsToValues"],
22882
+ var _excluded$I = ["mapPropsToValues"],
22879
22883
  _excluded2 = ["children"];
22880
22884
 
22881
22885
  /**
@@ -22908,7 +22912,7 @@ function withFormik(_ref) {
22908
22912
  }
22909
22913
  return val;
22910
22914
  } : _ref$mapPropsToValues,
22911
- config = _objectWithoutProperties(_ref, _excluded$H);
22915
+ config = _objectWithoutProperties(_ref, _excluded$I);
22912
22916
  return function createFormik(Component) {
22913
22917
  var componentDisplayName = Component.displayName || Component.name || Component.constructor && Component.constructor.name || 'Component';
22914
22918
  /**
@@ -22968,7 +22972,7 @@ function withFormik(_ref) {
22968
22972
  };
22969
22973
  }
22970
22974
 
22971
- var _excluded$G = ["component", "formik", "render", "children", "name"];
22975
+ var _excluded$H = ["component", "formik", "render", "children", "name"];
22972
22976
  var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
22973
22977
  function ErrorMessageImpl() {
22974
22978
  _classCallCheck(this, ErrorMessageImpl);
@@ -22993,7 +22997,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
22993
22997
  render = _this$props.render,
22994
22998
  children = _this$props.children,
22995
22999
  name = _this$props.name,
22996
- rest = _objectWithoutProperties(_this$props, _excluded$G);
23000
+ rest = _objectWithoutProperties(_this$props, _excluded$H);
22997
23001
  var touch = getIn(formik.touched, name);
22998
23002
  var error = getIn(formik.errors, name);
22999
23003
  return !!touch && !!error ? render ? isFunction(render) ? render(error) : null : children ? isFunction(children) ? children(error) : null : component ? /*#__PURE__*/React__namespace.createElement(component, rest, error) : error : null;
@@ -23002,7 +23006,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
23002
23006
  }(React__namespace.Component);
23003
23007
  var ErrorMessage = connect(ErrorMessageImpl);
23004
23008
 
23005
- var _excluded$F = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
23009
+ var _excluded$G = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
23006
23010
  var getItemLayout = function getItemLayout(val) {
23007
23011
  var display = val === 0 ? 'display: none;' : 'display: inherit;';
23008
23012
  if (typeof val === 'number') {
@@ -23040,7 +23044,7 @@ var GridBasicItem = function GridBasicItem(_ref) {
23040
23044
  children = _ref.children,
23041
23045
  _ref$className = _ref.className,
23042
23046
  className = _ref$className === void 0 ? '' : _ref$className,
23043
- props = _objectWithoutProperties(_ref, _excluded$F);
23047
+ props = _objectWithoutProperties(_ref, _excluded$G);
23044
23048
  var theme = distExports.useTheme();
23045
23049
  var _useScale = useScale(),
23046
23050
  SCALES = _useScale.SCALES;
@@ -23080,12 +23084,12 @@ var GridBasicItem = function GridBasicItem(_ref) {
23080
23084
  };
23081
23085
  GridBasicItem.displayName = 'GridBasicItem';
23082
23086
 
23083
- var _excluded$E = ["children", "className"];
23087
+ var _excluded$F = ["children", "className"];
23084
23088
  var GridComponent = function GridComponent(_ref) {
23085
23089
  var children = _ref.children,
23086
23090
  _ref$className = _ref.className,
23087
23091
  className = _ref$className === void 0 ? '' : _ref$className,
23088
- props = _objectWithoutProperties(_ref, _excluded$E);
23092
+ props = _objectWithoutProperties(_ref, _excluded$F);
23089
23093
  var _useScale = useScale(),
23090
23094
  SCALES = _useScale.SCALES;
23091
23095
  var _styles$className = {
@@ -23105,7 +23109,7 @@ var GridComponent = function GridComponent(_ref) {
23105
23109
  GridComponent.displayName = 'Grid';
23106
23110
  var Grid = withScale(GridComponent);
23107
23111
 
23108
- var _excluded$D = ["gap", "wrap", "children", "className"];
23112
+ var _excluded$E = ["gap", "wrap", "children", "className"];
23109
23113
  var GridContainerComponent = function GridContainerComponent(_ref) {
23110
23114
  var _ref$gap = _ref.gap,
23111
23115
  gap = _ref$gap === void 0 ? 0 : _ref$gap,
@@ -23114,7 +23118,7 @@ var GridContainerComponent = function GridContainerComponent(_ref) {
23114
23118
  children = _ref.children,
23115
23119
  _ref$className = _ref.className,
23116
23120
  className = _ref$className === void 0 ? '' : _ref$className,
23117
- props = _objectWithoutProperties(_ref, _excluded$D);
23121
+ props = _objectWithoutProperties(_ref, _excluded$E);
23118
23122
  var _useScale = useScale(),
23119
23123
  unit = _useScale.unit,
23120
23124
  SCALES = _useScale.SCALES;
@@ -24485,7 +24489,7 @@ var HtmlRenderer = function HtmlRenderer(_ref) {
24485
24489
  });
24486
24490
  };
24487
24491
 
24488
- var _excluded$C = ["command", "shift", "option", "ctrl", "children", "className"];
24492
+ var _excluded$D = ["command", "shift", "option", "ctrl", "children", "className"];
24489
24493
  var KeyboardComponent = function KeyboardComponent(_ref) {
24490
24494
  var _ref$command = _ref.command,
24491
24495
  command = _ref$command === void 0 ? false : _ref$command,
@@ -24498,7 +24502,7 @@ var KeyboardComponent = function KeyboardComponent(_ref) {
24498
24502
  children = _ref.children,
24499
24503
  _ref$className = _ref.className,
24500
24504
  className = _ref$className === void 0 ? '' : _ref$className,
24501
- props = _objectWithoutProperties(_ref, _excluded$C);
24505
+ props = _objectWithoutProperties(_ref, _excluded$D);
24502
24506
  var theme = distExports.useTheme();
24503
24507
  var _useScale = useScale(),
24504
24508
  SCALES = _useScale.SCALES;
@@ -24522,14 +24526,14 @@ var KeyboardComponent = function KeyboardComponent(_ref) {
24522
24526
  KeyboardComponent.displayName = 'Keyboard';
24523
24527
  var Keyboard = withScale(KeyboardComponent);
24524
24528
 
24525
- var _excluded$B = ["className", "children", "visible"];
24529
+ var _excluded$C = ["className", "children", "visible"];
24526
24530
  var ModalWrapper = function ModalWrapper(_ref) {
24527
24531
  var _ref$className = _ref.className,
24528
24532
  className = _ref$className === void 0 ? '' : _ref$className,
24529
24533
  children = _ref.children,
24530
24534
  _ref$visible = _ref.visible,
24531
24535
  visible = _ref$visible === void 0 ? false : _ref$visible,
24532
- props = _objectWithoutProperties(_ref, _excluded$B);
24536
+ props = _objectWithoutProperties(_ref, _excluded$C);
24533
24537
  var theme = distExports.useTheme();
24534
24538
  var _useScale = useScale(),
24535
24539
  SCALES = _useScale.SCALES;
@@ -24593,7 +24597,7 @@ var useModalContext = function useModalContext() {
24593
24597
  return React.useContext(ModalContext);
24594
24598
  };
24595
24599
 
24596
- var _excluded$A = ["className", "children", "onClick", "passive", "disabled"];
24600
+ var _excluded$B = ["className", "children", "onClick", "passive", "disabled"];
24597
24601
  var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24598
24602
  var _ref$className = _ref.className,
24599
24603
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -24603,7 +24607,7 @@ var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24603
24607
  passive = _ref$passive === void 0 ? false : _ref$passive,
24604
24608
  _ref$disabled = _ref.disabled,
24605
24609
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
24606
- props = _objectWithoutProperties(_ref, _excluded$A);
24610
+ props = _objectWithoutProperties(_ref, _excluded$B);
24607
24611
  var theme = distExports.useTheme();
24608
24612
  var _useScale = useScale(),
24609
24613
  SCALES = _useScale.SCALES;
@@ -24652,10 +24656,10 @@ var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24652
24656
  ModalActionComponent.displayName = 'ModalAction';
24653
24657
  var ModalAction = withScale(ModalActionComponent);
24654
24658
 
24655
- var _excluded$z = ["children"];
24659
+ var _excluded$A = ["children"];
24656
24660
  var ModalActionsComponent = function ModalActionsComponent(_ref) {
24657
24661
  var children = _ref.children,
24658
- props = _objectWithoutProperties(_ref, _excluded$z);
24662
+ props = _objectWithoutProperties(_ref, _excluded$A);
24659
24663
  var theme = distExports.useTheme();
24660
24664
  var ref = React.useRef(null);
24661
24665
  var _useState = React.useState('auto'),
@@ -24763,7 +24767,7 @@ Modal.Subtitle = ModalSubtitle;
24763
24767
  Modal.Content = ModalContent;
24764
24768
  Modal.Action = ModalAction;
24765
24769
 
24766
- var _excluded$y = ["children", "type", "label", "filled", "className"];
24770
+ var _excluded$z = ["children", "type", "label", "filled", "className"];
24767
24771
  var getStatusColor = function getStatusColor(type, filled, theme) {
24768
24772
  var colors = {
24769
24773
  secondary: theme.palette.secondary,
@@ -24794,7 +24798,7 @@ var NoteComponent = function NoteComponent(_ref) {
24794
24798
  filled = _ref$filled === void 0 ? false : _ref$filled,
24795
24799
  _ref$className = _ref.className,
24796
24800
  className = _ref$className === void 0 ? '' : _ref$className,
24797
- props = _objectWithoutProperties(_ref, _excluded$y);
24801
+ props = _objectWithoutProperties(_ref, _excluded$z);
24798
24802
  var theme = distExports.useTheme();
24799
24803
  var _useScale = useScale(),
24800
24804
  SCALES = _useScale.SCALES;
@@ -24818,12 +24822,12 @@ var NoteComponent = function NoteComponent(_ref) {
24818
24822
  NoteComponent.displayName = 'Note';
24819
24823
  var Note = withScale(NoteComponent);
24820
24824
 
24821
- var _excluded$x = ["className", "children"];
24825
+ var _excluded$y = ["className", "children"];
24822
24826
  var PageContentComponent = function PageContentComponent(_ref) {
24823
24827
  var _ref$className = _ref.className,
24824
24828
  className = _ref$className === void 0 ? '' : _ref$className,
24825
24829
  children = _ref.children,
24826
- props = _objectWithoutProperties(_ref, _excluded$x);
24830
+ props = _objectWithoutProperties(_ref, _excluded$y);
24827
24831
  var _useScale = useScale(),
24828
24832
  SCALES = _useScale.SCALES;
24829
24833
  return /*#__PURE__*/React.createElement("main", _extends({}, props, {
@@ -24836,7 +24840,7 @@ var PageContentComponent = function PageContentComponent(_ref) {
24836
24840
  PageContentComponent.displayName = 'PageContent';
24837
24841
  var PageContent = withScale(PageContentComponent);
24838
24842
 
24839
- var _excluded$w = ["children", "render", "dotBackdrop", "className", "dotSize", "dotSpace"];
24843
+ var _excluded$x = ["children", "render", "dotBackdrop", "className", "dotSize", "dotSpace"];
24840
24844
  tuple('default', 'effect', 'effect-seo');
24841
24845
  var DotStyles = function DotStyles(_ref) {
24842
24846
  var dotSpace = _ref.dotSpace,
@@ -24865,7 +24869,7 @@ var PageComponent = function PageComponent(_ref2) {
24865
24869
  dotSize = _ref2$dotSize === void 0 ? '1px' : _ref2$dotSize,
24866
24870
  _ref2$dotSpace = _ref2.dotSpace,
24867
24871
  dotSpace = _ref2$dotSpace === void 0 ? 1 : _ref2$dotSpace,
24868
- props = _objectWithoutProperties(_ref2, _excluded$w);
24872
+ props = _objectWithoutProperties(_ref2, _excluded$x);
24869
24873
  var theme = distExports.useTheme();
24870
24874
  var _useScale = useScale(),
24871
24875
  SCALES = _useScale.SCALES;
@@ -24904,14 +24908,14 @@ var PageComponent = function PageComponent(_ref2) {
24904
24908
  PageComponent.displayName = 'Page';
24905
24909
  var Page = withScale(PageComponent);
24906
24910
 
24907
- var _excluded$v = ["children", "center", "className"];
24911
+ var _excluded$w = ["children", "center", "className"];
24908
24912
  var PageHeaderComponent = function PageHeaderComponent(_ref) {
24909
24913
  var children = _ref.children,
24910
24914
  _ref$center = _ref.center,
24911
24915
  center = _ref$center === void 0 ? false : _ref$center,
24912
24916
  _ref$className = _ref.className,
24913
24917
  className = _ref$className === void 0 ? '' : _ref$className,
24914
- props = _objectWithoutProperties(_ref, _excluded$v);
24918
+ props = _objectWithoutProperties(_ref, _excluded$w);
24915
24919
  var _useScale = useScale(),
24916
24920
  SCALES = _useScale.SCALES;
24917
24921
  var classes = distExports.useClasses({
@@ -24927,10 +24931,10 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
24927
24931
  PageHeaderComponent.displayName = 'PageHeader';
24928
24932
  var PageHeader = withScale(PageHeaderComponent);
24929
24933
 
24930
- var _excluded$u = ["children"];
24934
+ var _excluded$v = ["children"];
24931
24935
  var PageFooterComponent = function PageFooterComponent(_ref) {
24932
24936
  var children = _ref.children,
24933
- props = _objectWithoutProperties(_ref, _excluded$u);
24937
+ props = _objectWithoutProperties(_ref, _excluded$v);
24934
24938
  var _useScale = useScale(),
24935
24939
  SCALES = _useScale.SCALES;
24936
24940
  return /*#__PURE__*/React.createElement("footer", _extends({}, props, {
@@ -24948,13 +24952,13 @@ Page.Content = PageContent;
24948
24952
  Page.Body = PageContent;
24949
24953
  Page.Footer = PageFooter;
24950
24954
 
24951
- var _excluded$t = ["active", "children", "disabled", "onClick"];
24955
+ var _excluded$u = ["active", "children", "disabled", "onClick"];
24952
24956
  var PaginationItem = function PaginationItem(_ref) {
24953
24957
  var active = _ref.active,
24954
24958
  children = _ref.children,
24955
24959
  disabled = _ref.disabled,
24956
24960
  onClick = _ref.onClick,
24957
- props = _objectWithoutProperties(_ref, _excluded$t);
24961
+ props = _objectWithoutProperties(_ref, _excluded$u);
24958
24962
  var theme = distExports.useTheme();
24959
24963
  var _useMemo = React.useMemo(function () {
24960
24964
  return [addColorAlpha(theme.palette.success, 0.1), addColorAlpha(theme.palette.success, 0.8)];
@@ -24992,10 +24996,10 @@ var usePaginationContext = function usePaginationContext() {
24992
24996
  return React.useContext(PaginationContext);
24993
24997
  };
24994
24998
 
24995
- var _excluded$s = ["children"];
24999
+ var _excluded$t = ["children"];
24996
25000
  var PaginationPrevious = function PaginationPrevious(_ref) {
24997
25001
  var children = _ref.children,
24998
- props = _objectWithoutProperties(_ref, _excluded$s);
25002
+ props = _objectWithoutProperties(_ref, _excluded$t);
24999
25003
  var _usePaginationContext = usePaginationContext(),
25000
25004
  update = _usePaginationContext.update,
25001
25005
  isFirst = _usePaginationContext.isFirst;
@@ -25008,10 +25012,10 @@ var PaginationPrevious = function PaginationPrevious(_ref) {
25008
25012
  };
25009
25013
  PaginationPrevious.displayName = 'PaginationPrevious';
25010
25014
 
25011
- var _excluded$r = ["children"];
25015
+ var _excluded$s = ["children"];
25012
25016
  var PaginationNext = function PaginationNext(_ref) {
25013
25017
  var children = _ref.children,
25014
- props = _objectWithoutProperties(_ref, _excluded$r);
25018
+ props = _objectWithoutProperties(_ref, _excluded$s);
25015
25019
  var _usePaginationContext = usePaginationContext(),
25016
25020
  update = _usePaginationContext.update,
25017
25021
  isLast = _usePaginationContext.isLast;
@@ -25170,7 +25174,7 @@ var PaginationPages = function PaginationPages(_ref) {
25170
25174
  };
25171
25175
  PaginationPages.displayName = 'PaginationPages';
25172
25176
 
25173
- var _excluded$q = ["page", "initialPage", "count", "limit", "children", "onChange", "className"];
25177
+ var _excluded$r = ["page", "initialPage", "count", "limit", "children", "onChange", "className"];
25174
25178
  var PaginationComponent = function PaginationComponent(_ref) {
25175
25179
  var customPage = _ref.page,
25176
25180
  _ref$initialPage = _ref.initialPage,
@@ -25183,7 +25187,7 @@ var PaginationComponent = function PaginationComponent(_ref) {
25183
25187
  onChange = _ref.onChange,
25184
25188
  _ref$className = _ref.className,
25185
25189
  className = _ref$className === void 0 ? '' : _ref$className,
25186
- props = _objectWithoutProperties(_ref, _excluded$q);
25190
+ props = _objectWithoutProperties(_ref, _excluded$r);
25187
25191
  var _useScale = useScale(),
25188
25192
  SCALES = _useScale.SCALES;
25189
25193
  var _useCurrentState = distExports.useCurrentState(initialPage),
@@ -25309,7 +25313,7 @@ var defaultTooltipPosition = {
25309
25313
  left: '-1000px',
25310
25314
  transform: 'none'
25311
25315
  };
25312
- var getPosition = function getPosition(placement, rect, offset) {
25316
+ var getPosition$2 = function getPosition(placement, rect, offset) {
25313
25317
  var positions = {
25314
25318
  top: {
25315
25319
  top: "".concat(rect.top - offset, "px"),
@@ -25536,7 +25540,7 @@ var TooltipContent = function TooltipContent(_ref) {
25536
25540
  var classes = distExports.useClasses('tooltip-content', className);
25537
25541
  if (!parent) return null;
25538
25542
  var updateRect = function updateRect() {
25539
- var position = getPosition(placement, getRect(parent), offset);
25543
+ var position = getPosition$2(placement, getRect(parent), offset);
25540
25544
  setRect(position);
25541
25545
  };
25542
25546
  useResize(updateRect);
@@ -25568,7 +25572,7 @@ var TooltipContent = function TooltipContent(_ref) {
25568
25572
  }, ".tooltip-content.__jsx-style-dynamic-selector{--tooltip-icon-offset-x:".concat(iconOffset.x, ";--tooltip-icon-offset-y:").concat(iconOffset.y, ";--tooltip-content-bg:").concat(colors.bgColor, ";box-sizing:border-box;position:absolute;top:").concat(rect.top, ";left:").concat(rect.left, ";-webkit-transform:").concat(rect.transform, ";-ms-transform:").concat(rect.transform, ";transform:").concat(rect.transform, ";background-color:var(--tooltip-content-bg);color:").concat(colors.color, ";border-radius:").concat(theme.layout.radius, ";padding:0;z-index:1000;box-shadow:").concat(hasShadow ? theme.expressiveness.shadowMedium : 'none', ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.inner.__jsx-style-dynamic-selector{box-sizing:border-box;position:relative;font-size:").concat(SCALES.font(1), ";padding:").concat(SCALES.pt(0.65), " ").concat(SCALES.pr(0.9), " ").concat(SCALES.pb(0.65), " ").concat(SCALES.pl(0.9), ";height:100%;}")))), el);
25569
25573
  };
25570
25574
 
25571
- var _excluded$p = ["children", "initialVisible", "text", "offset", "placement", "portalClassName", "enterDelay", "leaveDelay", "trigger", "type", "className", "onVisibleChange", "hideArrow", "visible"];
25575
+ var _excluded$q = ["children", "initialVisible", "text", "offset", "placement", "portalClassName", "enterDelay", "leaveDelay", "trigger", "type", "className", "onVisibleChange", "hideArrow", "visible"];
25572
25576
  var TooltipComponent = function TooltipComponent(_ref) {
25573
25577
  var children = _ref.children,
25574
25578
  _ref$initialVisible = _ref.initialVisible,
@@ -25595,7 +25599,7 @@ var TooltipComponent = function TooltipComponent(_ref) {
25595
25599
  _ref$hideArrow = _ref.hideArrow,
25596
25600
  hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
25597
25601
  customVisible = _ref.visible,
25598
- props = _objectWithoutProperties(_ref, _excluded$p);
25602
+ props = _objectWithoutProperties(_ref, _excluded$q);
25599
25603
  var timer = React.useRef();
25600
25604
  var ref = React.useRef(null);
25601
25605
  var _useState = React.useState(initialVisible),
@@ -25687,7 +25691,7 @@ var usePopoverContext = function usePopoverContext() {
25687
25691
  return React.useContext(PopoverContext);
25688
25692
  };
25689
25693
 
25690
- var _excluded$o = ["child", "children", "enterDelay", "leaveDelay", "offset", "type", "trigger", "placement", "initialVisible", "portalClassName", "disableItemsAutoClose", "onVisibleChange", "visible"];
25694
+ var _excluded$p = ["child", "children", "enterDelay", "leaveDelay", "offset", "type", "trigger", "placement", "initialVisible", "portalClassName", "disableItemsAutoClose", "onVisibleChange", "visible"];
25691
25695
  var PopoverComponent = function PopoverComponent(_ref) {
25692
25696
  var child = _ref.child,
25693
25697
  children = _ref.children,
@@ -25712,7 +25716,7 @@ var PopoverComponent = function PopoverComponent(_ref) {
25712
25716
  _ref$onVisibleChange = _ref.onVisibleChange,
25713
25717
  onVisibleChange = _ref$onVisibleChange === void 0 ? function () {} : _ref$onVisibleChange,
25714
25718
  customVisible = _ref.visible,
25715
- props = _objectWithoutProperties(_ref, _excluded$o);
25719
+ props = _objectWithoutProperties(_ref, _excluded$p);
25716
25720
  var _useScale = useScale(),
25717
25721
  SCALES = _useScale.SCALES;
25718
25722
  var _useState = React.useState(initialVisible),
@@ -25761,7 +25765,7 @@ var PopoverComponent = function PopoverComponent(_ref) {
25761
25765
  PopoverComponent.displayName = 'Popover';
25762
25766
  var Popover = withScale(PopoverComponent);
25763
25767
 
25764
- var _excluded$n = ["children", "line", "showTitle", "className", "onClick", "selected", "disableAutoClose"];
25768
+ var _excluded$o = ["children", "line", "showTitle", "className", "onClick", "selected", "disableAutoClose"];
25765
25769
  var PopoverItemComponent = function PopoverItemComponent(_ref) {
25766
25770
  var children = _ref.children,
25767
25771
  _ref$line = _ref.line,
@@ -25775,7 +25779,7 @@ var PopoverItemComponent = function PopoverItemComponent(_ref) {
25775
25779
  selected = _ref$selected === void 0 ? false : _ref$selected,
25776
25780
  _ref$disableAutoClose = _ref.disableAutoClose,
25777
25781
  disableAutoClose = _ref$disableAutoClose === void 0 ? false : _ref$disableAutoClose,
25778
- props = _objectWithoutProperties(_ref, _excluded$n);
25782
+ props = _objectWithoutProperties(_ref, _excluded$o);
25779
25783
  var theme = distExports.useTheme();
25780
25784
  var _useScale = useScale(),
25781
25785
  SCALES = _useScale.SCALES;
@@ -25842,7 +25846,7 @@ var ListComponent = function ListComponent(_ref) {
25842
25846
  ListComponent.displayName = 'List';
25843
25847
  var List = withScale(ListComponent);
25844
25848
 
25845
- var _excluded$m = ["children", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
25849
+ var _excluded$n = ["children", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
25846
25850
  var ListItemComponent = function ListItemComponent(_ref) {
25847
25851
  var children = _ref.children,
25848
25852
  _ref$direction = _ref.direction,
@@ -25865,7 +25869,7 @@ var ListItemComponent = function ListItemComponent(_ref) {
25865
25869
  _ref$selected = _ref.selected,
25866
25870
  selected = _ref$selected === void 0 ? false : _ref$selected;
25867
25871
  _ref.disableAutoClose;
25868
- var props = _objectWithoutProperties(_ref, _excluded$m);
25872
+ var props = _objectWithoutProperties(_ref, _excluded$n);
25869
25873
  var theme = distExports.useTheme();
25870
25874
  var _useScale = useScale(),
25871
25875
  SCALES = _useScale.SCALES;
@@ -26014,7 +26018,7 @@ function memo(callback) {
26014
26018
  }
26015
26019
 
26016
26020
  /*#__NO_SIDE_EFFECTS__*/
26017
- const noop = (any) => any;
26021
+ const noop$1 = (any) => any;
26018
26022
 
26019
26023
  /**
26020
26024
  * Pipe
@@ -26152,7 +26156,7 @@ function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
26152
26156
  function cubicBezier(mX1, mY1, mX2, mY2) {
26153
26157
  // If this is a linear gradient, return linear easing
26154
26158
  if (mX1 === mY1 && mX2 === mY2)
26155
- return noop;
26159
+ return noop$1;
26156
26160
  const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);
26157
26161
  // If animation is at start/end, return t without easing
26158
26162
  return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
@@ -26187,7 +26191,7 @@ const isEasingArray = (ease) => {
26187
26191
  const isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
26188
26192
 
26189
26193
  const easingLookup = {
26190
- linear: noop,
26194
+ linear: noop$1,
26191
26195
  easeIn,
26192
26196
  easeInOut,
26193
26197
  easeOut,
@@ -26374,7 +26378,7 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
26374
26378
  return { schedule, cancel, state, steps };
26375
26379
  }
26376
26380
 
26377
- const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
26381
+ const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop$1, true);
26378
26382
 
26379
26383
  let now;
26380
26384
  function clearTime() {
@@ -27307,7 +27311,7 @@ function createMixers(output, ease, customMixer) {
27307
27311
  for (let i = 0; i < numMixers; i++) {
27308
27312
  let mixer = mixerFactory(output[i], output[i + 1]);
27309
27313
  if (ease) {
27310
- const easingFunction = Array.isArray(ease) ? ease[i] || noop : ease;
27314
+ const easingFunction = Array.isArray(ease) ? ease[i] || noop$1 : ease;
27311
27315
  mixer = pipe(easingFunction, mixer);
27312
27316
  }
27313
27317
  mixers.push(mixer);
@@ -28340,7 +28344,7 @@ class NativeAnimation extends WithPromise {
28340
28344
  this.animation.onfinish = null;
28341
28345
  if (timeline && supportsScrollTimeline()) {
28342
28346
  this.animation.timeline = timeline;
28343
- return noop;
28347
+ return noop$1;
28344
28348
  }
28345
28349
  else {
28346
28350
  return observe(this);
@@ -28621,7 +28625,7 @@ class AsyncMotionValueAnimation extends WithPromise {
28621
28625
  element: resolvedOptions.motionValue.owner.current,
28622
28626
  })
28623
28627
  : new JSAnimation(resolvedOptions);
28624
- animation.finished.then(() => this.notifyFinished()).catch(noop);
28628
+ animation.finished.then(() => this.notifyFinished()).catch(noop$1);
28625
28629
  if (this.pendingTimeline) {
28626
28630
  this.stopTimeline = animation.attachTimeline(this.pendingTimeline);
28627
28631
  this.pendingTimeline = undefined;
@@ -33643,8 +33647,8 @@ function getCurrentDirection(offset, lockThreshold = 10) {
33643
33647
  class DragGesture extends Feature {
33644
33648
  constructor(node) {
33645
33649
  super(node);
33646
- this.removeGroupControls = noop;
33647
- this.removeListeners = noop;
33650
+ this.removeGroupControls = noop$1;
33651
+ this.removeListeners = noop$1;
33648
33652
  this.controls = new VisualElementDragControls(node);
33649
33653
  }
33650
33654
  mount() {
@@ -33654,7 +33658,7 @@ class DragGesture extends Feature {
33654
33658
  if (dragControls) {
33655
33659
  this.removeGroupControls = dragControls.subscribe(this.controls);
33656
33660
  }
33657
- this.removeListeners = this.controls.addListeners() || noop;
33661
+ this.removeListeners = this.controls.addListeners() || noop$1;
33658
33662
  }
33659
33663
  unmount() {
33660
33664
  this.removeGroupControls();
@@ -33670,7 +33674,7 @@ const asyncHandler = (handler) => (event, info) => {
33670
33674
  class PanGesture extends Feature {
33671
33675
  constructor() {
33672
33676
  super(...arguments);
33673
- this.removePointerDownListener = noop;
33677
+ this.removePointerDownListener = noop$1;
33674
33678
  }
33675
33679
  onPointerDown(pointerDownEvent) {
33676
33680
  this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {
@@ -34041,7 +34045,7 @@ function getRadius(values, radiusName) {
34041
34045
  // )(p)
34042
34046
  // }
34043
34047
  const easeCrossfadeIn = /*@__PURE__*/ compress(0, 0.5, circOut);
34044
- const easeCrossfadeOut = /*@__PURE__*/ compress(0.5, 0.95, noop);
34048
+ const easeCrossfadeOut = /*@__PURE__*/ compress(0.5, 0.95, noop$1);
34045
34049
  function compress(min, max, easing) {
34046
34050
  return (p) => {
34047
34051
  // Could replace ifs with clamp
@@ -35849,7 +35853,7 @@ const userAgentContains = (string) => typeof navigator !== "undefined" &&
35849
35853
  */
35850
35854
  const roundPoint = userAgentContains("applewebkit/") && !userAgentContains("chrome/")
35851
35855
  ? Math.round
35852
- : noop;
35856
+ : noop$1;
35853
35857
  function roundAxis(axis) {
35854
35858
  // Round to the nearest .5 pixels to support subpixel layouts
35855
35859
  axis.min = roundPoint(axis.min);
@@ -37637,7 +37641,7 @@ var PhoneInput = function PhoneInput(_ref) {
37637
37641
  }, ".phone-input-container.__jsx-style-dynamic-selector{position:relative;min-width:200px;width:auto;}.phone-input-container.focused.__jsx-style-dynamic-selector{outline:1px solid ".concat(hoverBorder, ";border-radius:6px;}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid ").concat(borderColor, ";border-radius:6px;overflow:hidden;}.dropdown-toggle.__jsx-style-dynamic-selector{padding:7px 12px;border-radius:6px 0px 0px 6px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;border-right:1px solid ").concat(borderColor, ";}.phone-input.__jsx-style-dynamic-selector{-webkit-flex:1;-ms-flex:1;flex:1;padding:5px 10px;height:35px;background-color:transparent;font-size:14px;border:none;}.phone-input.__jsx-style-dynamic-selector:focus{outline:none;}.dropdown.__jsx-style-dynamic-selector{position:absolute;top:100%;left:0;width:100%;background:").concat(theme.type == 'dark' ? 'black' : 'white', ";border:1px solid ").concat(borderColor, ";border-radius:6px;margin-top:4px;z-index:999;box-shadow:0 4px 10px rgba(0,0,0,0.1);}.search-input.__jsx-style-dynamic-selector{width:100%;padding:8px 10px;border:none;background-color:transparent;border-bottom:1px solid ").concat(borderColor, ";font-size:14px;}.search-input.__jsx-style-dynamic-selector:focus{outline:none;}.country-list.__jsx-style-dynamic-selector{max-height:200px;overflow-y:auto;}.dropdown-item.__jsx-style-dynamic-selector{padding:10px;cursor:pointer;font-size:14px;}.dropdown-item.__jsx-style-dynamic-selector:hover{background:").concat(theme.type == 'dark' ? '#3a3d3d' : '#efefef', ";}.dropdown-item.disabled.__jsx-style-dynamic-selector{color:#888;cursor:default;}")));
37638
37642
  };
37639
37643
 
37640
- var _excluded$l = ["value", "max", "className", "type", "colors", "fixedTop", "fixedBottom"];
37644
+ var _excluded$m = ["value", "max", "className", "type", "colors", "fixedTop", "fixedBottom"];
37641
37645
  var getCurrentColor = function getCurrentColor(ratio, palette, type) {
37642
37646
  var colors = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
37643
37647
  var defaultColors = {
@@ -37669,7 +37673,7 @@ var ProgressComponent = function ProgressComponent(_ref) {
37669
37673
  fixedTop = _ref$fixedTop === void 0 ? false : _ref$fixedTop,
37670
37674
  _ref$fixedBottom = _ref.fixedBottom,
37671
37675
  fixedBottom = _ref$fixedBottom === void 0 ? false : _ref$fixedBottom,
37672
- props = _objectWithoutProperties(_ref, _excluded$l);
37676
+ props = _objectWithoutProperties(_ref, _excluded$m);
37673
37677
  var theme = distExports.useTheme();
37674
37678
  var _useScale = useScale(),
37675
37679
  SCALES = _useScale.SCALES;
@@ -37708,12 +37712,12 @@ var useRadioContext = function useRadioContext() {
37708
37712
  return React.useContext(RadioContext);
37709
37713
  };
37710
37714
 
37711
- var _excluded$k = ["className", "children"];
37715
+ var _excluded$l = ["className", "children"];
37712
37716
  var RadioDescriptionComponent = function RadioDescriptionComponent(_ref) {
37713
37717
  var _ref$className = _ref.className,
37714
37718
  className = _ref$className === void 0 ? '' : _ref$className,
37715
37719
  children = _ref.children,
37716
- props = _objectWithoutProperties(_ref, _excluded$k);
37720
+ props = _objectWithoutProperties(_ref, _excluded$l);
37717
37721
  var theme = distExports.useTheme();
37718
37722
  var _useScale = useScale(),
37719
37723
  SCALES = _useScale.SCALES;
@@ -37759,7 +37763,7 @@ var getColors$4 = function getColors(palette, status) {
37759
37763
  return colors[status];
37760
37764
  };
37761
37765
 
37762
- var _excluded$j = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
37766
+ var _excluded$k = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
37763
37767
  var RadioComponent = function RadioComponent(_ref) {
37764
37768
  var _ref$className = _ref.className,
37765
37769
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -37771,7 +37775,7 @@ var RadioComponent = function RadioComponent(_ref) {
37771
37775
  type = _ref$type === void 0 ? 'default' : _ref$type,
37772
37776
  radioValue = _ref.value,
37773
37777
  children = _ref.children,
37774
- props = _objectWithoutProperties(_ref, _excluded$j);
37778
+ props = _objectWithoutProperties(_ref, _excluded$k);
37775
37779
  var theme = distExports.useTheme();
37776
37780
  var _useScale = useScale(),
37777
37781
  SCALES = _useScale.SCALES;
@@ -37853,7 +37857,7 @@ var RadioComponent = function RadioComponent(_ref) {
37853
37857
  RadioComponent.displayName = 'Radio';
37854
37858
  var Radio = withScale(RadioComponent);
37855
37859
 
37856
- var _excluded$i = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
37860
+ var _excluded$j = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
37857
37861
  var RadioGroupComponent = function RadioGroupComponent(_ref) {
37858
37862
  var _ref$disabled = _ref.disabled,
37859
37863
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -37865,7 +37869,7 @@ var RadioGroupComponent = function RadioGroupComponent(_ref) {
37865
37869
  initialValue = _ref.initialValue,
37866
37870
  _ref$useRow = _ref.useRow,
37867
37871
  useRow = _ref$useRow === void 0 ? false : _ref$useRow,
37868
- props = _objectWithoutProperties(_ref, _excluded$i);
37872
+ props = _objectWithoutProperties(_ref, _excluded$j);
37869
37873
  var _useScale = useScale(),
37870
37874
  SCALES = _useScale.SCALES;
37871
37875
  var _useState = React.useState(initialValue),
@@ -37921,7 +37925,7 @@ var RatingIcon = function RatingIcon() {
37921
37925
  };
37922
37926
  RatingIcon.displayName = 'RatingIcon';
37923
37927
 
37924
- var _excluded$h = ["type", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
37928
+ var _excluded$i = ["type", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
37925
37929
  tupleNumber(2, 3, 4, 5, 6, 7, 8, 9, 10);
37926
37930
  tupleNumber(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
37927
37931
  var getColor = function getColor(type, palette) {
@@ -37949,7 +37953,7 @@ var RatingComponent = function RatingComponent(_ref) {
37949
37953
  _ref$locked = _ref.locked,
37950
37954
  locked = _ref$locked === void 0 ? false : _ref$locked,
37951
37955
  onLockedChange = _ref.onLockedChange,
37952
- props = _objectWithoutProperties(_ref, _excluded$h);
37956
+ props = _objectWithoutProperties(_ref, _excluded$i);
37953
37957
  var theme = distExports.useTheme();
37954
37958
  var _useScale = useScale(),
37955
37959
  SCALES = _useScale.SCALES;
@@ -38190,7 +38194,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
38190
38194
  });
38191
38195
  SelectInput.displayName = 'SelectInput';
38192
38196
 
38193
- var _excluded$g = ["children", "label", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
38197
+ var _excluded$h = ["children", "label", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
38194
38198
  var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
38195
38199
  var children = _ref.children,
38196
38200
  label = _ref.label,
@@ -38219,7 +38223,7 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
38219
38223
  getPopupContainer = _ref.getPopupContainer,
38220
38224
  _ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
38221
38225
  onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
38222
- props = _objectWithoutProperties(_ref, _excluded$g);
38226
+ props = _objectWithoutProperties(_ref, _excluded$h);
38223
38227
  var theme = distExports.useTheme();
38224
38228
  var _useScale = useScale(),
38225
38229
  SCALES = _useScale.SCALES;
@@ -38391,7 +38395,7 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
38391
38395
  SelectComponent.displayName = 'Select';
38392
38396
  var Select = withScale(SelectComponent);
38393
38397
 
38394
- var _excluded$f = ["value", "className", "children", "disabled", "divider", "label", "preventAllEvents"];
38398
+ var _excluded$g = ["value", "className", "children", "disabled", "divider", "label", "preventAllEvents"];
38395
38399
  var SelectOptionComponent = function SelectOptionComponent(_ref) {
38396
38400
  var identValue = _ref.value,
38397
38401
  _ref$className = _ref.className,
@@ -38405,7 +38409,7 @@ var SelectOptionComponent = function SelectOptionComponent(_ref) {
38405
38409
  label = _ref$label === void 0 ? false : _ref$label,
38406
38410
  _ref$preventAllEvents = _ref.preventAllEvents,
38407
38411
  preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
38408
- props = _objectWithoutProperties(_ref, _excluded$f);
38412
+ props = _objectWithoutProperties(_ref, _excluded$g);
38409
38413
  var theme = distExports.useTheme();
38410
38414
  var _useScale = useScale(),
38411
38415
  SCALES = _useScale.SCALES;
@@ -38606,7 +38610,7 @@ var getColors$2 = function getColors(palette, status) {
38606
38610
  return colors[status];
38607
38611
  };
38608
38612
 
38609
- var _excluded$e = ["hideValue", "disabled", "type", "step", "max", "min", "initialValue", "value", "onChange", "className", "showMarkers"];
38613
+ var _excluded$f = ["hideValue", "disabled", "type", "step", "max", "min", "initialValue", "value", "onChange", "className", "showMarkers"];
38610
38614
  var getRefWidth = function getRefWidth(elementRef) {
38611
38615
  if (!elementRef || !elementRef.current) return 0;
38612
38616
  var rect = elementRef.current.getBoundingClientRect();
@@ -38641,7 +38645,7 @@ var SliderComponent = function SliderComponent(_ref) {
38641
38645
  className = _ref$className === void 0 ? '' : _ref$className,
38642
38646
  _ref$showMarkers = _ref.showMarkers,
38643
38647
  showMarkers = _ref$showMarkers === void 0 ? false : _ref$showMarkers,
38644
- props = _objectWithoutProperties(_ref, _excluded$e);
38648
+ props = _objectWithoutProperties(_ref, _excluded$f);
38645
38649
  var theme = distExports.useTheme();
38646
38650
  var _useScale = useScale(),
38647
38651
  SCALES = _useScale.SCALES;
@@ -38846,7 +38850,7 @@ var useClipboard = function useClipboard() {
38846
38850
  };
38847
38851
  };
38848
38852
 
38849
- var _excluded$d = ["type", "filled", "children", "symbol", "toastText", "toastType", "text", "copy", "className"];
38853
+ var _excluded$e = ["type", "filled", "children", "symbol", "toastText", "toastType", "text", "copy", "className"];
38850
38854
  var textArrayToString = function textArrayToString(text) {
38851
38855
  return text.reduce(function (pre, current) {
38852
38856
  if (!current) return pre;
@@ -38870,7 +38874,7 @@ var SnippetComponent = function SnippetComponent(_ref) {
38870
38874
  copyType = _ref$copy === void 0 ? 'default' : _ref$copy,
38871
38875
  _ref$className = _ref.className,
38872
38876
  className = _ref$className === void 0 ? '' : _ref$className,
38873
- props = _objectWithoutProperties(_ref, _excluded$d);
38877
+ props = _objectWithoutProperties(_ref, _excluded$e);
38874
38878
  var theme = distExports.useTheme();
38875
38879
  var _useScale = useScale(),
38876
38880
  SCALES = _useScale.SCALES;
@@ -38926,13 +38930,13 @@ var SnippetComponent = function SnippetComponent(_ref) {
38926
38930
  SnippetComponent.displayName = 'Snippet';
38927
38931
  var Snippet = withScale(SnippetComponent);
38928
38932
 
38929
- var _excluded$c = ["inline", "className"];
38933
+ var _excluded$d = ["inline", "className"];
38930
38934
  var SpacerComponent = function SpacerComponent(_ref) {
38931
38935
  var _ref$inline = _ref.inline,
38932
38936
  inline = _ref$inline === void 0 ? false : _ref$inline,
38933
38937
  _ref$className = _ref.className,
38934
38938
  className = _ref$className === void 0 ? '' : _ref$className,
38935
- props = _objectWithoutProperties(_ref, _excluded$c);
38939
+ props = _objectWithoutProperties(_ref, _excluded$d);
38936
38940
  var _useScale = useScale(),
38937
38941
  SCALES = _useScale.SCALES;
38938
38942
  return /*#__PURE__*/React.createElement("span", _extends({}, props, {
@@ -38945,7 +38949,7 @@ var SpacerComponent = function SpacerComponent(_ref) {
38945
38949
  SpacerComponent.displayName = 'Spacer';
38946
38950
  var Spacer = withScale(SpacerComponent);
38947
38951
 
38948
- var _excluded$b = ["className"];
38952
+ var _excluded$c = ["className"];
38949
38953
  var getSpans = function getSpans(theme) {
38950
38954
  return _toConsumableArray(new Array(12)).map(function (_, index) {
38951
38955
  return /*#__PURE__*/React.createElement("span", {
@@ -38960,7 +38964,7 @@ var getSpans = function getSpans(theme) {
38960
38964
  var SpinnerComponent = function SpinnerComponent(_ref) {
38961
38965
  var _ref$className = _ref.className,
38962
38966
  className = _ref$className === void 0 ? '' : _ref$className,
38963
- props = _objectWithoutProperties(_ref, _excluded$b);
38967
+ props = _objectWithoutProperties(_ref, _excluded$c);
38964
38968
  var theme = distExports.useTheme();
38965
38969
  var _useScale = useScale(),
38966
38970
  SCALES = _useScale.SCALES;
@@ -56701,7 +56705,7 @@ function Empty() {
56701
56705
  }));
56702
56706
  }
56703
56707
 
56704
- var _excluded$a = ["children", "tag", "className", "color"];
56708
+ var _excluded$b = ["children", "tag", "className", "color"];
56705
56709
  var getTypeColor = function getTypeColor(type, palette) {
56706
56710
  var colors = {
56707
56711
  "default": 'inherit',
@@ -56719,7 +56723,7 @@ var TextChild = function TextChild(_ref) {
56719
56723
  className = _ref$className === void 0 ? '' : _ref$className,
56720
56724
  _ref$color = _ref.color,
56721
56725
  color = _ref$color === void 0 ? 'default' : _ref$color,
56722
- props = _objectWithoutProperties(_ref, _excluded$a);
56726
+ props = _objectWithoutProperties(_ref, _excluded$b);
56723
56727
  var Component = tag;
56724
56728
  var theme = distExports.useTheme();
56725
56729
  var _useScale = useScale(),
@@ -56765,7 +56769,7 @@ var TextChild = function TextChild(_ref) {
56765
56769
  };
56766
56770
  TextChild.displayName = 'TextChild';
56767
56771
 
56768
- var _excluded$9 = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "span", "del", "em", "blockquote", "noWrap", "children", "className"];
56772
+ var _excluded$a = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "span", "del", "em", "blockquote", "noWrap", "children", "className"];
56769
56773
  var _getModifierChild = function getModifierChild(tags, children) {
56770
56774
  if (!tags.length) return children;
56771
56775
  var nextTag = tags.slice(1, tags.length);
@@ -56807,7 +56811,7 @@ var TextComponent = function TextComponent(_ref) {
56807
56811
  children = _ref.children,
56808
56812
  _ref$className = _ref.className,
56809
56813
  className = _ref$className === void 0 ? '' : _ref$className,
56810
- props = _objectWithoutProperties(_ref, _excluded$9);
56814
+ props = _objectWithoutProperties(_ref, _excluded$a);
56811
56815
  var elements = {
56812
56816
  h1: h1,
56813
56817
  h2: h2,
@@ -57199,7 +57203,7 @@ var TableColumn = function TableColumn(columnProps) {
57199
57203
  };
57200
57204
  TableColumn.displayName = 'TableColumn';
57201
57205
 
57202
- var _excluded$8 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
57206
+ var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
57203
57207
  function TableComponent(tableProps) {
57204
57208
  /* eslint-disable @typescript-eslint/no-unused-vars */
57205
57209
  var _ref = tableProps,
@@ -57242,7 +57246,7 @@ function TableComponent(tableProps) {
57242
57246
  rowClassName = _ref$rowClassName === void 0 ? function () {
57243
57247
  return '';
57244
57248
  } : _ref$rowClassName,
57245
- props = _objectWithoutProperties(_ref, _excluded$8);
57249
+ props = _objectWithoutProperties(_ref, _excluded$9);
57246
57250
  /* eslint-enable @typescript-eslint/no-unused-vars */
57247
57251
  var _useScale = useScale(),
57248
57252
  SCALES = _useScale.SCALES;
@@ -57456,7 +57460,7 @@ var useRect = function useRect(initialState) {
57456
57460
  };
57457
57461
  };
57458
57462
 
57459
- var _excluded$7 = ["initialValue", "value", "hideDivider", "hideBorder", "children", "onChange", "className", "leftSpace", "highlight", "hoverHeightRatio", "hoverWidthRatio", "activeClassName", "activeStyle", "align"];
57463
+ var _excluded$8 = ["initialValue", "value", "hideDivider", "hideBorder", "children", "onChange", "className", "leftSpace", "highlight", "hoverHeightRatio", "hoverWidthRatio", "activeClassName", "activeStyle", "align"];
57460
57464
  var TabsComponent = function TabsComponent(_ref) {
57461
57465
  var userCustomInitialValue = _ref.initialValue,
57462
57466
  value = _ref.value,
@@ -57481,7 +57485,7 @@ var TabsComponent = function TabsComponent(_ref) {
57481
57485
  activeStyle = _ref$activeStyle === void 0 ? {} : _ref$activeStyle,
57482
57486
  _ref$align = _ref.align,
57483
57487
  align = _ref$align === void 0 ? 'left' : _ref$align,
57484
- props = _objectWithoutProperties(_ref, _excluded$7);
57488
+ props = _objectWithoutProperties(_ref, _excluded$8);
57485
57489
  var theme = distExports.useTheme();
57486
57490
  var _useScale = useScale(),
57487
57491
  SCALES = _useScale.SCALES;
@@ -57645,7 +57649,7 @@ var TabsItem = withScale(TabsItemComponent);
57645
57649
  Tabs.Item = TabsItem;
57646
57650
  Tabs.Tab = TabsItem;
57647
57651
 
57648
- var _excluded$6 = ["type", "children", "className", "invert"];
57652
+ var _excluded$7 = ["type", "children", "className", "invert"];
57649
57653
  var getColors$1 = function getColors(type, palette, invert) {
57650
57654
  var colors = {
57651
57655
  "default": {
@@ -57690,7 +57694,7 @@ var TagComponent = function TagComponent(_ref) {
57690
57694
  className = _ref$className === void 0 ? '' : _ref$className,
57691
57695
  _ref$invert = _ref.invert,
57692
57696
  invert = _ref$invert === void 0 ? false : _ref$invert,
57693
- props = _objectWithoutProperties(_ref, _excluded$6);
57697
+ props = _objectWithoutProperties(_ref, _excluded$7);
57694
57698
  var theme = distExports.useTheme();
57695
57699
  var _useScale = useScale(),
57696
57700
  SCALES = _useScale.SCALES;
@@ -57973,7 +57977,7 @@ var getColors = function getColors(palette, status) {
57973
57977
  return colors[status];
57974
57978
  };
57975
57979
 
57976
- var _excluded$5 = ["initialChecked", "checked", "disabled", "onChange", "type", "className", "children"];
57980
+ var _excluded$6 = ["initialChecked", "checked", "disabled", "onChange", "type", "className", "children"];
57977
57981
  var ToggleComponent = function ToggleComponent(_ref) {
57978
57982
  var _ref$initialChecked = _ref.initialChecked,
57979
57983
  initialChecked = _ref$initialChecked === void 0 ? false : _ref$initialChecked,
@@ -57986,7 +57990,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
57986
57990
  _ref$className = _ref.className,
57987
57991
  className = _ref$className === void 0 ? '' : _ref$className,
57988
57992
  children = _ref.children,
57989
- props = _objectWithoutProperties(_ref, _excluded$5);
57993
+ props = _objectWithoutProperties(_ref, _excluded$6);
57990
57994
  var theme = distExports.useTheme();
57991
57995
  var _useScale = useScale(),
57992
57996
  SCALES = _useScale.SCALES;
@@ -58116,7 +58120,7 @@ var stopPropagation = function stopPropagation(event) {
58116
58120
  event.nativeEvent.stopImmediatePropagation();
58117
58121
  };
58118
58122
 
58119
- var _excluded$4 = ["name", "parentPath", "level", "extra", "className"];
58123
+ var _excluded$5 = ["name", "parentPath", "level", "extra", "className"];
58120
58124
  var TreeFile = function TreeFile(_ref) {
58121
58125
  var name = _ref.name,
58122
58126
  _ref$parentPath = _ref.parentPath,
@@ -58126,7 +58130,7 @@ var TreeFile = function TreeFile(_ref) {
58126
58130
  extra = _ref.extra,
58127
58131
  _ref$className = _ref.className,
58128
58132
  className = _ref$className === void 0 ? '' : _ref$className,
58129
- props = _objectWithoutProperties(_ref, _excluded$4);
58133
+ props = _objectWithoutProperties(_ref, _excluded$5);
58130
58134
  var theme = distExports.useTheme();
58131
58135
  var _useTreeContext = useTreeContext(),
58132
58136
  onFileClick = _useTreeContext.onFileClick;
@@ -58227,7 +58231,7 @@ var TreeStatusIcon = function TreeStatusIcon(_ref) {
58227
58231
  };
58228
58232
  TreeStatusIcon.displayName = 'TreeStatusIcon';
58229
58233
 
58230
- var _excluded$3 = ["name", "children", "parentPath", "level", "extra", "className"];
58234
+ var _excluded$4 = ["name", "children", "parentPath", "level", "extra", "className"];
58231
58235
  var _TreeFolder = function TreeFolder(_ref) {
58232
58236
  var name = _ref.name,
58233
58237
  _ref$children = _ref.children,
@@ -58238,7 +58242,7 @@ var _TreeFolder = function TreeFolder(_ref) {
58238
58242
  parentLevel = _ref$level === void 0 ? 0 : _ref$level,
58239
58243
  extra = _ref.extra,
58240
58244
  className = _ref.className,
58241
- props = _objectWithoutProperties(_ref, _excluded$3);
58245
+ props = _objectWithoutProperties(_ref, _excluded$4);
58242
58246
  var theme = distExports.useTheme();
58243
58247
  var _useTreeContext = useTreeContext(),
58244
58248
  initialExpand = _useTreeContext.initialExpand,
@@ -58291,7 +58295,7 @@ var _TreeFolder = function TreeFolder(_ref) {
58291
58295
  };
58292
58296
  _TreeFolder.displayName = 'TreeFolder';
58293
58297
 
58294
- var _excluded$2 = ["children", "onClick", "initialExpand", "value", "className"];
58298
+ var _excluded$3 = ["children", "onClick", "initialExpand", "value", "className"];
58295
58299
  var FileTreeValueType = tuple('directory', 'file');
58296
58300
  var directoryType = FileTreeValueType[0];
58297
58301
  var _makeChildren = function makeChildren() {
@@ -58320,7 +58324,7 @@ var Tree = function Tree(_ref) {
58320
58324
  initialExpand = _ref$initialExpand === void 0 ? false : _ref$initialExpand,
58321
58325
  value = _ref.value,
58322
58326
  className = _ref.className,
58323
- props = _objectWithoutProperties(_ref, _excluded$2);
58327
+ props = _objectWithoutProperties(_ref, _excluded$3);
58324
58328
  var isImperative = Boolean(value && value.length > 0);
58325
58329
  var onFileClick = function onFileClick(path) {
58326
58330
  onClick && onClick(path);
@@ -58611,7 +58615,7 @@ function useTime() {
58611
58615
  return _objectSpread2({}, Time.getFormattedTimeFromSeconds(seconds, format));
58612
58616
  }
58613
58617
 
58614
- var _excluded$1 = ["src", "text", "name", "children", "className", "altText"];
58618
+ var _excluded$2 = ["src", "text", "name", "children", "className", "altText"];
58615
58619
  var UserComponent = function UserComponent(_ref) {
58616
58620
  var src = _ref.src,
58617
58621
  text = _ref.text,
@@ -58620,7 +58624,7 @@ var UserComponent = function UserComponent(_ref) {
58620
58624
  _ref$className = _ref.className,
58621
58625
  className = _ref$className === void 0 ? '' : _ref$className,
58622
58626
  altText = _ref.altText,
58623
- props = _objectWithoutProperties(_ref, _excluded$1);
58627
+ props = _objectWithoutProperties(_ref, _excluded$2);
58624
58628
  var theme = distExports.useTheme();
58625
58629
  var _useScale = useScale(),
58626
58630
  SCALES = _useScale.SCALES,
@@ -58647,13 +58651,13 @@ var UserComponent = function UserComponent(_ref) {
58647
58651
  UserComponent.displayName = 'User';
58648
58652
  var User = withScale(UserComponent);
58649
58653
 
58650
- var _excluded = ["href", "className", "children"];
58654
+ var _excluded$1 = ["href", "className", "children"];
58651
58655
  var UserLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
58652
58656
  var href = _ref.href,
58653
58657
  _ref$className = _ref.className,
58654
58658
  className = _ref$className === void 0 ? '' : _ref$className,
58655
58659
  children = _ref.children,
58656
- props = _objectWithoutProperties(_ref, _excluded);
58660
+ props = _objectWithoutProperties(_ref, _excluded$1);
58657
58661
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
58658
58662
  className: "jsx-3263947648" + " " + (props && props.className != null && props.className || className || "")
58659
58663
  }), /*#__PURE__*/React.createElement(Link, {
@@ -60317,6 +60321,2597 @@ var LoginSocialGithub = function LoginSocialGithub(_ref) {
60317
60321
  };
60318
60322
  var index = /*#__PURE__*/React.memo(LoginSocialGithub);
60319
60323
 
60324
+ var propTypes = {exports: {}};
60325
+
60326
+ /*
60327
+ object-assign
60328
+ (c) Sindre Sorhus
60329
+ @license MIT
60330
+ */
60331
+
60332
+ var objectAssign;
60333
+ var hasRequiredObjectAssign;
60334
+
60335
+ function requireObjectAssign () {
60336
+ if (hasRequiredObjectAssign) return objectAssign;
60337
+ hasRequiredObjectAssign = 1;
60338
+ /* eslint-disable no-unused-vars */
60339
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
60340
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
60341
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
60342
+
60343
+ function toObject(val) {
60344
+ if (val === null || val === undefined) {
60345
+ throw new TypeError('Object.assign cannot be called with null or undefined');
60346
+ }
60347
+
60348
+ return Object(val);
60349
+ }
60350
+
60351
+ function shouldUseNative() {
60352
+ try {
60353
+ if (!Object.assign) {
60354
+ return false;
60355
+ }
60356
+
60357
+ // Detect buggy property enumeration order in older V8 versions.
60358
+
60359
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
60360
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
60361
+ test1[5] = 'de';
60362
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
60363
+ return false;
60364
+ }
60365
+
60366
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
60367
+ var test2 = {};
60368
+ for (var i = 0; i < 10; i++) {
60369
+ test2['_' + String.fromCharCode(i)] = i;
60370
+ }
60371
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
60372
+ return test2[n];
60373
+ });
60374
+ if (order2.join('') !== '0123456789') {
60375
+ return false;
60376
+ }
60377
+
60378
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
60379
+ var test3 = {};
60380
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
60381
+ test3[letter] = letter;
60382
+ });
60383
+ if (Object.keys(Object.assign({}, test3)).join('') !==
60384
+ 'abcdefghijklmnopqrst') {
60385
+ return false;
60386
+ }
60387
+
60388
+ return true;
60389
+ } catch (err) {
60390
+ // We don't expect any of the above to throw, but better to be safe.
60391
+ return false;
60392
+ }
60393
+ }
60394
+
60395
+ objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
60396
+ var from;
60397
+ var to = toObject(target);
60398
+ var symbols;
60399
+
60400
+ for (var s = 1; s < arguments.length; s++) {
60401
+ from = Object(arguments[s]);
60402
+
60403
+ for (var key in from) {
60404
+ if (hasOwnProperty.call(from, key)) {
60405
+ to[key] = from[key];
60406
+ }
60407
+ }
60408
+
60409
+ if (getOwnPropertySymbols) {
60410
+ symbols = getOwnPropertySymbols(from);
60411
+ for (var i = 0; i < symbols.length; i++) {
60412
+ if (propIsEnumerable.call(from, symbols[i])) {
60413
+ to[symbols[i]] = from[symbols[i]];
60414
+ }
60415
+ }
60416
+ }
60417
+ }
60418
+
60419
+ return to;
60420
+ };
60421
+ return objectAssign;
60422
+ }
60423
+
60424
+ /**
60425
+ * Copyright (c) 2013-present, Facebook, Inc.
60426
+ *
60427
+ * This source code is licensed under the MIT license found in the
60428
+ * LICENSE file in the root directory of this source tree.
60429
+ */
60430
+
60431
+ var ReactPropTypesSecret_1;
60432
+ var hasRequiredReactPropTypesSecret;
60433
+
60434
+ function requireReactPropTypesSecret () {
60435
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
60436
+ hasRequiredReactPropTypesSecret = 1;
60437
+
60438
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
60439
+
60440
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
60441
+ return ReactPropTypesSecret_1;
60442
+ }
60443
+
60444
+ var has;
60445
+ var hasRequiredHas;
60446
+
60447
+ function requireHas () {
60448
+ if (hasRequiredHas) return has;
60449
+ hasRequiredHas = 1;
60450
+ has = Function.call.bind(Object.prototype.hasOwnProperty);
60451
+ return has;
60452
+ }
60453
+
60454
+ /**
60455
+ * Copyright (c) 2013-present, Facebook, Inc.
60456
+ *
60457
+ * This source code is licensed under the MIT license found in the
60458
+ * LICENSE file in the root directory of this source tree.
60459
+ */
60460
+
60461
+ var checkPropTypes_1;
60462
+ var hasRequiredCheckPropTypes;
60463
+
60464
+ function requireCheckPropTypes () {
60465
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
60466
+ hasRequiredCheckPropTypes = 1;
60467
+
60468
+ var printWarning = function() {};
60469
+
60470
+ if (process.env.NODE_ENV !== 'production') {
60471
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
60472
+ var loggedTypeFailures = {};
60473
+ var has = /*@__PURE__*/ requireHas();
60474
+
60475
+ printWarning = function(text) {
60476
+ var message = 'Warning: ' + text;
60477
+ if (typeof console !== 'undefined') {
60478
+ console.error(message);
60479
+ }
60480
+ try {
60481
+ // --- Welcome to debugging React ---
60482
+ // This error was thrown as a convenience so that you can use this stack
60483
+ // to find the callsite that caused this warning to fire.
60484
+ throw new Error(message);
60485
+ } catch (x) { /**/ }
60486
+ };
60487
+ }
60488
+
60489
+ /**
60490
+ * Assert that the values match with the type specs.
60491
+ * Error messages are memorized and will only be shown once.
60492
+ *
60493
+ * @param {object} typeSpecs Map of name to a ReactPropType
60494
+ * @param {object} values Runtime values that need to be type-checked
60495
+ * @param {string} location e.g. "prop", "context", "child context"
60496
+ * @param {string} componentName Name of the component for error messages.
60497
+ * @param {?Function} getStack Returns the component stack.
60498
+ * @private
60499
+ */
60500
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
60501
+ if (process.env.NODE_ENV !== 'production') {
60502
+ for (var typeSpecName in typeSpecs) {
60503
+ if (has(typeSpecs, typeSpecName)) {
60504
+ var error;
60505
+ // Prop type validation may throw. In case they do, we don't want to
60506
+ // fail the render phase where it didn't fail before. So we log it.
60507
+ // After these have been cleaned up, we'll let them throw.
60508
+ try {
60509
+ // This is intentionally an invariant that gets caught. It's the same
60510
+ // behavior as without this statement except with a better message.
60511
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
60512
+ var err = Error(
60513
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
60514
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
60515
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
60516
+ );
60517
+ err.name = 'Invariant Violation';
60518
+ throw err;
60519
+ }
60520
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
60521
+ } catch (ex) {
60522
+ error = ex;
60523
+ }
60524
+ if (error && !(error instanceof Error)) {
60525
+ printWarning(
60526
+ (componentName || 'React class') + ': type specification of ' +
60527
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
60528
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
60529
+ 'You may have forgotten to pass an argument to the type checker ' +
60530
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
60531
+ 'shape all require an argument).'
60532
+ );
60533
+ }
60534
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
60535
+ // Only monitor this failure once because there tends to be a lot of the
60536
+ // same error.
60537
+ loggedTypeFailures[error.message] = true;
60538
+
60539
+ var stack = getStack ? getStack() : '';
60540
+
60541
+ printWarning(
60542
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
60543
+ );
60544
+ }
60545
+ }
60546
+ }
60547
+ }
60548
+ }
60549
+
60550
+ /**
60551
+ * Resets warning cache when testing.
60552
+ *
60553
+ * @private
60554
+ */
60555
+ checkPropTypes.resetWarningCache = function() {
60556
+ if (process.env.NODE_ENV !== 'production') {
60557
+ loggedTypeFailures = {};
60558
+ }
60559
+ };
60560
+
60561
+ checkPropTypes_1 = checkPropTypes;
60562
+ return checkPropTypes_1;
60563
+ }
60564
+
60565
+ /**
60566
+ * Copyright (c) 2013-present, Facebook, Inc.
60567
+ *
60568
+ * This source code is licensed under the MIT license found in the
60569
+ * LICENSE file in the root directory of this source tree.
60570
+ */
60571
+
60572
+ var factoryWithTypeCheckers;
60573
+ var hasRequiredFactoryWithTypeCheckers;
60574
+
60575
+ function requireFactoryWithTypeCheckers () {
60576
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
60577
+ hasRequiredFactoryWithTypeCheckers = 1;
60578
+
60579
+ var ReactIs = require$$0;
60580
+ var assign = requireObjectAssign();
60581
+
60582
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
60583
+ var has = /*@__PURE__*/ requireHas();
60584
+ var checkPropTypes = /*@__PURE__*/ requireCheckPropTypes();
60585
+
60586
+ var printWarning = function() {};
60587
+
60588
+ if (process.env.NODE_ENV !== 'production') {
60589
+ printWarning = function(text) {
60590
+ var message = 'Warning: ' + text;
60591
+ if (typeof console !== 'undefined') {
60592
+ console.error(message);
60593
+ }
60594
+ try {
60595
+ // --- Welcome to debugging React ---
60596
+ // This error was thrown as a convenience so that you can use this stack
60597
+ // to find the callsite that caused this warning to fire.
60598
+ throw new Error(message);
60599
+ } catch (x) {}
60600
+ };
60601
+ }
60602
+
60603
+ function emptyFunctionThatReturnsNull() {
60604
+ return null;
60605
+ }
60606
+
60607
+ factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
60608
+ /* global Symbol */
60609
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
60610
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
60611
+
60612
+ /**
60613
+ * Returns the iterator method function contained on the iterable object.
60614
+ *
60615
+ * Be sure to invoke the function with the iterable as context:
60616
+ *
60617
+ * var iteratorFn = getIteratorFn(myIterable);
60618
+ * if (iteratorFn) {
60619
+ * var iterator = iteratorFn.call(myIterable);
60620
+ * ...
60621
+ * }
60622
+ *
60623
+ * @param {?object} maybeIterable
60624
+ * @return {?function}
60625
+ */
60626
+ function getIteratorFn(maybeIterable) {
60627
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
60628
+ if (typeof iteratorFn === 'function') {
60629
+ return iteratorFn;
60630
+ }
60631
+ }
60632
+
60633
+ /**
60634
+ * Collection of methods that allow declaration and validation of props that are
60635
+ * supplied to React components. Example usage:
60636
+ *
60637
+ * var Props = require('ReactPropTypes');
60638
+ * var MyArticle = React.createClass({
60639
+ * propTypes: {
60640
+ * // An optional string prop named "description".
60641
+ * description: Props.string,
60642
+ *
60643
+ * // A required enum prop named "category".
60644
+ * category: Props.oneOf(['News','Photos']).isRequired,
60645
+ *
60646
+ * // A prop named "dialog" that requires an instance of Dialog.
60647
+ * dialog: Props.instanceOf(Dialog).isRequired
60648
+ * },
60649
+ * render: function() { ... }
60650
+ * });
60651
+ *
60652
+ * A more formal specification of how these methods are used:
60653
+ *
60654
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
60655
+ * decl := ReactPropTypes.{type}(.isRequired)?
60656
+ *
60657
+ * Each and every declaration produces a function with the same signature. This
60658
+ * allows the creation of custom validation functions. For example:
60659
+ *
60660
+ * var MyLink = React.createClass({
60661
+ * propTypes: {
60662
+ * // An optional string or URI prop named "href".
60663
+ * href: function(props, propName, componentName) {
60664
+ * var propValue = props[propName];
60665
+ * if (propValue != null && typeof propValue !== 'string' &&
60666
+ * !(propValue instanceof URI)) {
60667
+ * return new Error(
60668
+ * 'Expected a string or an URI for ' + propName + ' in ' +
60669
+ * componentName
60670
+ * );
60671
+ * }
60672
+ * }
60673
+ * },
60674
+ * render: function() {...}
60675
+ * });
60676
+ *
60677
+ * @internal
60678
+ */
60679
+
60680
+ var ANONYMOUS = '<<anonymous>>';
60681
+
60682
+ // Important!
60683
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
60684
+ var ReactPropTypes = {
60685
+ array: createPrimitiveTypeChecker('array'),
60686
+ bigint: createPrimitiveTypeChecker('bigint'),
60687
+ bool: createPrimitiveTypeChecker('boolean'),
60688
+ func: createPrimitiveTypeChecker('function'),
60689
+ number: createPrimitiveTypeChecker('number'),
60690
+ object: createPrimitiveTypeChecker('object'),
60691
+ string: createPrimitiveTypeChecker('string'),
60692
+ symbol: createPrimitiveTypeChecker('symbol'),
60693
+
60694
+ any: createAnyTypeChecker(),
60695
+ arrayOf: createArrayOfTypeChecker,
60696
+ element: createElementTypeChecker(),
60697
+ elementType: createElementTypeTypeChecker(),
60698
+ instanceOf: createInstanceTypeChecker,
60699
+ node: createNodeChecker(),
60700
+ objectOf: createObjectOfTypeChecker,
60701
+ oneOf: createEnumTypeChecker,
60702
+ oneOfType: createUnionTypeChecker,
60703
+ shape: createShapeTypeChecker,
60704
+ exact: createStrictShapeTypeChecker,
60705
+ };
60706
+
60707
+ /**
60708
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
60709
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
60710
+ */
60711
+ /*eslint-disable no-self-compare*/
60712
+ function is(x, y) {
60713
+ // SameValue algorithm
60714
+ if (x === y) {
60715
+ // Steps 1-5, 7-10
60716
+ // Steps 6.b-6.e: +0 != -0
60717
+ return x !== 0 || 1 / x === 1 / y;
60718
+ } else {
60719
+ // Step 6.a: NaN == NaN
60720
+ return x !== x && y !== y;
60721
+ }
60722
+ }
60723
+ /*eslint-enable no-self-compare*/
60724
+
60725
+ /**
60726
+ * We use an Error-like object for backward compatibility as people may call
60727
+ * PropTypes directly and inspect their output. However, we don't use real
60728
+ * Errors anymore. We don't inspect their stack anyway, and creating them
60729
+ * is prohibitively expensive if they are created too often, such as what
60730
+ * happens in oneOfType() for any type before the one that matched.
60731
+ */
60732
+ function PropTypeError(message, data) {
60733
+ this.message = message;
60734
+ this.data = data && typeof data === 'object' ? data: {};
60735
+ this.stack = '';
60736
+ }
60737
+ // Make `instanceof Error` still work for returned errors.
60738
+ PropTypeError.prototype = Error.prototype;
60739
+
60740
+ function createChainableTypeChecker(validate) {
60741
+ if (process.env.NODE_ENV !== 'production') {
60742
+ var manualPropTypeCallCache = {};
60743
+ var manualPropTypeWarningCount = 0;
60744
+ }
60745
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
60746
+ componentName = componentName || ANONYMOUS;
60747
+ propFullName = propFullName || propName;
60748
+
60749
+ if (secret !== ReactPropTypesSecret) {
60750
+ if (throwOnDirectAccess) {
60751
+ // New behavior only for users of `prop-types` package
60752
+ var err = new Error(
60753
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
60754
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
60755
+ 'Read more at http://fb.me/use-check-prop-types'
60756
+ );
60757
+ err.name = 'Invariant Violation';
60758
+ throw err;
60759
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
60760
+ // Old behavior for people using React.PropTypes
60761
+ var cacheKey = componentName + ':' + propName;
60762
+ if (
60763
+ !manualPropTypeCallCache[cacheKey] &&
60764
+ // Avoid spamming the console because they are often not actionable except for lib authors
60765
+ manualPropTypeWarningCount < 3
60766
+ ) {
60767
+ printWarning(
60768
+ 'You are manually calling a React.PropTypes validation ' +
60769
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
60770
+ 'and will throw in the standalone `prop-types` package. ' +
60771
+ 'You may be seeing this warning due to a third-party PropTypes ' +
60772
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
60773
+ );
60774
+ manualPropTypeCallCache[cacheKey] = true;
60775
+ manualPropTypeWarningCount++;
60776
+ }
60777
+ }
60778
+ }
60779
+ if (props[propName] == null) {
60780
+ if (isRequired) {
60781
+ if (props[propName] === null) {
60782
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
60783
+ }
60784
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
60785
+ }
60786
+ return null;
60787
+ } else {
60788
+ return validate(props, propName, componentName, location, propFullName);
60789
+ }
60790
+ }
60791
+
60792
+ var chainedCheckType = checkType.bind(null, false);
60793
+ chainedCheckType.isRequired = checkType.bind(null, true);
60794
+
60795
+ return chainedCheckType;
60796
+ }
60797
+
60798
+ function createPrimitiveTypeChecker(expectedType) {
60799
+ function validate(props, propName, componentName, location, propFullName, secret) {
60800
+ var propValue = props[propName];
60801
+ var propType = getPropType(propValue);
60802
+ if (propType !== expectedType) {
60803
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
60804
+ // check, but we can offer a more precise error message here rather than
60805
+ // 'of type `object`'.
60806
+ var preciseType = getPreciseType(propValue);
60807
+
60808
+ return new PropTypeError(
60809
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
60810
+ {expectedType: expectedType}
60811
+ );
60812
+ }
60813
+ return null;
60814
+ }
60815
+ return createChainableTypeChecker(validate);
60816
+ }
60817
+
60818
+ function createAnyTypeChecker() {
60819
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
60820
+ }
60821
+
60822
+ function createArrayOfTypeChecker(typeChecker) {
60823
+ function validate(props, propName, componentName, location, propFullName) {
60824
+ if (typeof typeChecker !== 'function') {
60825
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
60826
+ }
60827
+ var propValue = props[propName];
60828
+ if (!Array.isArray(propValue)) {
60829
+ var propType = getPropType(propValue);
60830
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
60831
+ }
60832
+ for (var i = 0; i < propValue.length; i++) {
60833
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
60834
+ if (error instanceof Error) {
60835
+ return error;
60836
+ }
60837
+ }
60838
+ return null;
60839
+ }
60840
+ return createChainableTypeChecker(validate);
60841
+ }
60842
+
60843
+ function createElementTypeChecker() {
60844
+ function validate(props, propName, componentName, location, propFullName) {
60845
+ var propValue = props[propName];
60846
+ if (!isValidElement(propValue)) {
60847
+ var propType = getPropType(propValue);
60848
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
60849
+ }
60850
+ return null;
60851
+ }
60852
+ return createChainableTypeChecker(validate);
60853
+ }
60854
+
60855
+ function createElementTypeTypeChecker() {
60856
+ function validate(props, propName, componentName, location, propFullName) {
60857
+ var propValue = props[propName];
60858
+ if (!ReactIs.isValidElementType(propValue)) {
60859
+ var propType = getPropType(propValue);
60860
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
60861
+ }
60862
+ return null;
60863
+ }
60864
+ return createChainableTypeChecker(validate);
60865
+ }
60866
+
60867
+ function createInstanceTypeChecker(expectedClass) {
60868
+ function validate(props, propName, componentName, location, propFullName) {
60869
+ if (!(props[propName] instanceof expectedClass)) {
60870
+ var expectedClassName = expectedClass.name || ANONYMOUS;
60871
+ var actualClassName = getClassName(props[propName]);
60872
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
60873
+ }
60874
+ return null;
60875
+ }
60876
+ return createChainableTypeChecker(validate);
60877
+ }
60878
+
60879
+ function createEnumTypeChecker(expectedValues) {
60880
+ if (!Array.isArray(expectedValues)) {
60881
+ if (process.env.NODE_ENV !== 'production') {
60882
+ if (arguments.length > 1) {
60883
+ printWarning(
60884
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
60885
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
60886
+ );
60887
+ } else {
60888
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
60889
+ }
60890
+ }
60891
+ return emptyFunctionThatReturnsNull;
60892
+ }
60893
+
60894
+ function validate(props, propName, componentName, location, propFullName) {
60895
+ var propValue = props[propName];
60896
+ for (var i = 0; i < expectedValues.length; i++) {
60897
+ if (is(propValue, expectedValues[i])) {
60898
+ return null;
60899
+ }
60900
+ }
60901
+
60902
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
60903
+ var type = getPreciseType(value);
60904
+ if (type === 'symbol') {
60905
+ return String(value);
60906
+ }
60907
+ return value;
60908
+ });
60909
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
60910
+ }
60911
+ return createChainableTypeChecker(validate);
60912
+ }
60913
+
60914
+ function createObjectOfTypeChecker(typeChecker) {
60915
+ function validate(props, propName, componentName, location, propFullName) {
60916
+ if (typeof typeChecker !== 'function') {
60917
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
60918
+ }
60919
+ var propValue = props[propName];
60920
+ var propType = getPropType(propValue);
60921
+ if (propType !== 'object') {
60922
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
60923
+ }
60924
+ for (var key in propValue) {
60925
+ if (has(propValue, key)) {
60926
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
60927
+ if (error instanceof Error) {
60928
+ return error;
60929
+ }
60930
+ }
60931
+ }
60932
+ return null;
60933
+ }
60934
+ return createChainableTypeChecker(validate);
60935
+ }
60936
+
60937
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
60938
+ if (!Array.isArray(arrayOfTypeCheckers)) {
60939
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
60940
+ return emptyFunctionThatReturnsNull;
60941
+ }
60942
+
60943
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
60944
+ var checker = arrayOfTypeCheckers[i];
60945
+ if (typeof checker !== 'function') {
60946
+ printWarning(
60947
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
60948
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
60949
+ );
60950
+ return emptyFunctionThatReturnsNull;
60951
+ }
60952
+ }
60953
+
60954
+ function validate(props, propName, componentName, location, propFullName) {
60955
+ var expectedTypes = [];
60956
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
60957
+ var checker = arrayOfTypeCheckers[i];
60958
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
60959
+ if (checkerResult == null) {
60960
+ return null;
60961
+ }
60962
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
60963
+ expectedTypes.push(checkerResult.data.expectedType);
60964
+ }
60965
+ }
60966
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
60967
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
60968
+ }
60969
+ return createChainableTypeChecker(validate);
60970
+ }
60971
+
60972
+ function createNodeChecker() {
60973
+ function validate(props, propName, componentName, location, propFullName) {
60974
+ if (!isNode(props[propName])) {
60975
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
60976
+ }
60977
+ return null;
60978
+ }
60979
+ return createChainableTypeChecker(validate);
60980
+ }
60981
+
60982
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
60983
+ return new PropTypeError(
60984
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
60985
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
60986
+ );
60987
+ }
60988
+
60989
+ function createShapeTypeChecker(shapeTypes) {
60990
+ function validate(props, propName, componentName, location, propFullName) {
60991
+ var propValue = props[propName];
60992
+ var propType = getPropType(propValue);
60993
+ if (propType !== 'object') {
60994
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
60995
+ }
60996
+ for (var key in shapeTypes) {
60997
+ var checker = shapeTypes[key];
60998
+ if (typeof checker !== 'function') {
60999
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
61000
+ }
61001
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
61002
+ if (error) {
61003
+ return error;
61004
+ }
61005
+ }
61006
+ return null;
61007
+ }
61008
+ return createChainableTypeChecker(validate);
61009
+ }
61010
+
61011
+ function createStrictShapeTypeChecker(shapeTypes) {
61012
+ function validate(props, propName, componentName, location, propFullName) {
61013
+ var propValue = props[propName];
61014
+ var propType = getPropType(propValue);
61015
+ if (propType !== 'object') {
61016
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
61017
+ }
61018
+ // We need to check all keys in case some are required but missing from props.
61019
+ var allKeys = assign({}, props[propName], shapeTypes);
61020
+ for (var key in allKeys) {
61021
+ var checker = shapeTypes[key];
61022
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
61023
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
61024
+ }
61025
+ if (!checker) {
61026
+ return new PropTypeError(
61027
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
61028
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
61029
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
61030
+ );
61031
+ }
61032
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
61033
+ if (error) {
61034
+ return error;
61035
+ }
61036
+ }
61037
+ return null;
61038
+ }
61039
+
61040
+ return createChainableTypeChecker(validate);
61041
+ }
61042
+
61043
+ function isNode(propValue) {
61044
+ switch (typeof propValue) {
61045
+ case 'number':
61046
+ case 'string':
61047
+ case 'undefined':
61048
+ return true;
61049
+ case 'boolean':
61050
+ return !propValue;
61051
+ case 'object':
61052
+ if (Array.isArray(propValue)) {
61053
+ return propValue.every(isNode);
61054
+ }
61055
+ if (propValue === null || isValidElement(propValue)) {
61056
+ return true;
61057
+ }
61058
+
61059
+ var iteratorFn = getIteratorFn(propValue);
61060
+ if (iteratorFn) {
61061
+ var iterator = iteratorFn.call(propValue);
61062
+ var step;
61063
+ if (iteratorFn !== propValue.entries) {
61064
+ while (!(step = iterator.next()).done) {
61065
+ if (!isNode(step.value)) {
61066
+ return false;
61067
+ }
61068
+ }
61069
+ } else {
61070
+ // Iterator will provide entry [k,v] tuples rather than values.
61071
+ while (!(step = iterator.next()).done) {
61072
+ var entry = step.value;
61073
+ if (entry) {
61074
+ if (!isNode(entry[1])) {
61075
+ return false;
61076
+ }
61077
+ }
61078
+ }
61079
+ }
61080
+ } else {
61081
+ return false;
61082
+ }
61083
+
61084
+ return true;
61085
+ default:
61086
+ return false;
61087
+ }
61088
+ }
61089
+
61090
+ function isSymbol(propType, propValue) {
61091
+ // Native Symbol.
61092
+ if (propType === 'symbol') {
61093
+ return true;
61094
+ }
61095
+
61096
+ // falsy value can't be a Symbol
61097
+ if (!propValue) {
61098
+ return false;
61099
+ }
61100
+
61101
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
61102
+ if (propValue['@@toStringTag'] === 'Symbol') {
61103
+ return true;
61104
+ }
61105
+
61106
+ // Fallback for non-spec compliant Symbols which are polyfilled.
61107
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
61108
+ return true;
61109
+ }
61110
+
61111
+ return false;
61112
+ }
61113
+
61114
+ // Equivalent of `typeof` but with special handling for array and regexp.
61115
+ function getPropType(propValue) {
61116
+ var propType = typeof propValue;
61117
+ if (Array.isArray(propValue)) {
61118
+ return 'array';
61119
+ }
61120
+ if (propValue instanceof RegExp) {
61121
+ // Old webkits (at least until Android 4.0) return 'function' rather than
61122
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
61123
+ // passes PropTypes.object.
61124
+ return 'object';
61125
+ }
61126
+ if (isSymbol(propType, propValue)) {
61127
+ return 'symbol';
61128
+ }
61129
+ return propType;
61130
+ }
61131
+
61132
+ // This handles more types than `getPropType`. Only used for error messages.
61133
+ // See `createPrimitiveTypeChecker`.
61134
+ function getPreciseType(propValue) {
61135
+ if (typeof propValue === 'undefined' || propValue === null) {
61136
+ return '' + propValue;
61137
+ }
61138
+ var propType = getPropType(propValue);
61139
+ if (propType === 'object') {
61140
+ if (propValue instanceof Date) {
61141
+ return 'date';
61142
+ } else if (propValue instanceof RegExp) {
61143
+ return 'regexp';
61144
+ }
61145
+ }
61146
+ return propType;
61147
+ }
61148
+
61149
+ // Returns a string that is postfixed to a warning about an invalid type.
61150
+ // For example, "undefined" or "of type array"
61151
+ function getPostfixForTypeWarning(value) {
61152
+ var type = getPreciseType(value);
61153
+ switch (type) {
61154
+ case 'array':
61155
+ case 'object':
61156
+ return 'an ' + type;
61157
+ case 'boolean':
61158
+ case 'date':
61159
+ case 'regexp':
61160
+ return 'a ' + type;
61161
+ default:
61162
+ return type;
61163
+ }
61164
+ }
61165
+
61166
+ // Returns class name of the object, if any.
61167
+ function getClassName(propValue) {
61168
+ if (!propValue.constructor || !propValue.constructor.name) {
61169
+ return ANONYMOUS;
61170
+ }
61171
+ return propValue.constructor.name;
61172
+ }
61173
+
61174
+ ReactPropTypes.checkPropTypes = checkPropTypes;
61175
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
61176
+ ReactPropTypes.PropTypes = ReactPropTypes;
61177
+
61178
+ return ReactPropTypes;
61179
+ };
61180
+ return factoryWithTypeCheckers;
61181
+ }
61182
+
61183
+ /**
61184
+ * Copyright (c) 2013-present, Facebook, Inc.
61185
+ *
61186
+ * This source code is licensed under the MIT license found in the
61187
+ * LICENSE file in the root directory of this source tree.
61188
+ */
61189
+
61190
+ var factoryWithThrowingShims;
61191
+ var hasRequiredFactoryWithThrowingShims;
61192
+
61193
+ function requireFactoryWithThrowingShims () {
61194
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
61195
+ hasRequiredFactoryWithThrowingShims = 1;
61196
+
61197
+ var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
61198
+
61199
+ function emptyFunction() {}
61200
+ function emptyFunctionWithReset() {}
61201
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
61202
+
61203
+ factoryWithThrowingShims = function() {
61204
+ function shim(props, propName, componentName, location, propFullName, secret) {
61205
+ if (secret === ReactPropTypesSecret) {
61206
+ // It is still safe when called from React.
61207
+ return;
61208
+ }
61209
+ var err = new Error(
61210
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
61211
+ 'Use PropTypes.checkPropTypes() to call them. ' +
61212
+ 'Read more at http://fb.me/use-check-prop-types'
61213
+ );
61214
+ err.name = 'Invariant Violation';
61215
+ throw err;
61216
+ } shim.isRequired = shim;
61217
+ function getShim() {
61218
+ return shim;
61219
+ } // Important!
61220
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
61221
+ var ReactPropTypes = {
61222
+ array: shim,
61223
+ bigint: shim,
61224
+ bool: shim,
61225
+ func: shim,
61226
+ number: shim,
61227
+ object: shim,
61228
+ string: shim,
61229
+ symbol: shim,
61230
+
61231
+ any: shim,
61232
+ arrayOf: getShim,
61233
+ element: shim,
61234
+ elementType: shim,
61235
+ instanceOf: getShim,
61236
+ node: shim,
61237
+ objectOf: getShim,
61238
+ oneOf: getShim,
61239
+ oneOfType: getShim,
61240
+ shape: getShim,
61241
+ exact: getShim,
61242
+
61243
+ checkPropTypes: emptyFunctionWithReset,
61244
+ resetWarningCache: emptyFunction
61245
+ };
61246
+
61247
+ ReactPropTypes.PropTypes = ReactPropTypes;
61248
+
61249
+ return ReactPropTypes;
61250
+ };
61251
+ return factoryWithThrowingShims;
61252
+ }
61253
+
61254
+ /**
61255
+ * Copyright (c) 2013-present, Facebook, Inc.
61256
+ *
61257
+ * This source code is licensed under the MIT license found in the
61258
+ * LICENSE file in the root directory of this source tree.
61259
+ */
61260
+
61261
+ var hasRequiredPropTypes;
61262
+
61263
+ function requirePropTypes () {
61264
+ if (hasRequiredPropTypes) return propTypes.exports;
61265
+ hasRequiredPropTypes = 1;
61266
+ if (process.env.NODE_ENV !== 'production') {
61267
+ var ReactIs = require$$0;
61268
+
61269
+ // By explicitly using `prop-types` you are opting into new development behavior.
61270
+ // http://fb.me/prop-types-in-prod
61271
+ var throwOnDirectAccess = true;
61272
+ propTypes.exports = /*@__PURE__*/ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
61273
+ } else {
61274
+ // By explicitly using `prop-types` you are opting into new production behavior.
61275
+ // http://fb.me/prop-types-in-prod
61276
+ propTypes.exports = /*@__PURE__*/ requireFactoryWithThrowingShims()();
61277
+ }
61278
+ return propTypes.exports;
61279
+ }
61280
+
61281
+ var propTypesExports = /*@__PURE__*/ requirePropTypes();
61282
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
61283
+
61284
+ var _excluded = ["tagName", "className", "style", "children", "allowMouseEvents", "onSwipeUp", "onSwipeDown", "onSwipeLeft", "onSwipeRight", "onSwipeStart", "onSwipeMove", "onSwipeEnd", "innerRef", "tolerance"];
61285
+ var supportsCaptureOption = false;
61286
+ function setHasSupportToCaptureOption(hasSupport) {
61287
+ supportsCaptureOption = hasSupport;
61288
+ }
61289
+ try {
61290
+ addEventListener('test', null, Object.defineProperty({}, 'capture', {
61291
+ get: function get() {
61292
+ setHasSupportToCaptureOption(true);
61293
+ }
61294
+ }));
61295
+ } catch (e) {} // eslint-disable-line no-empty
61296
+
61297
+ function getSafeEventHandlerOpts() {
61298
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
61299
+ capture: true
61300
+ };
61301
+ return supportsCaptureOption ? options : false;
61302
+ }
61303
+
61304
+ /**
61305
+ * [getPosition returns a position element that works for mouse or touch events]
61306
+ * @param {[Event]} event [the received event]
61307
+ * @return {[Object]} [x and y coords]
61308
+ */
61309
+ function getPosition$1(event) {
61310
+ if ('touches' in event) {
61311
+ var _event$touches$ = event.touches[0],
61312
+ pageX = _event$touches$.pageX,
61313
+ pageY = _event$touches$.pageY;
61314
+ return {
61315
+ x: pageX,
61316
+ y: pageY
61317
+ };
61318
+ }
61319
+ var screenX = event.screenX,
61320
+ screenY = event.screenY;
61321
+ return {
61322
+ x: screenX,
61323
+ y: screenY
61324
+ };
61325
+ }
61326
+ var ReactSwipe = /*#__PURE__*/function (_Component) {
61327
+ function ReactSwipe() {
61328
+ var _this;
61329
+ _classCallCheck(this, ReactSwipe);
61330
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
61331
+ args[_key] = arguments[_key];
61332
+ }
61333
+ _this = _callSuper(this, ReactSwipe, [].concat(args));
61334
+ _this._handleSwipeStart = _this._handleSwipeStart.bind(_this);
61335
+ _this._handleSwipeMove = _this._handleSwipeMove.bind(_this);
61336
+ _this._handleSwipeEnd = _this._handleSwipeEnd.bind(_this);
61337
+ _this._onMouseDown = _this._onMouseDown.bind(_this);
61338
+ _this._onMouseMove = _this._onMouseMove.bind(_this);
61339
+ _this._onMouseUp = _this._onMouseUp.bind(_this);
61340
+ _this._setSwiperRef = _this._setSwiperRef.bind(_this);
61341
+ return _this;
61342
+ }
61343
+ _inherits(ReactSwipe, _Component);
61344
+ return _createClass(ReactSwipe, [{
61345
+ key: "componentDidMount",
61346
+ value: function componentDidMount() {
61347
+ if (this.swiper) {
61348
+ this.swiper.addEventListener('touchmove', this._handleSwipeMove, getSafeEventHandlerOpts({
61349
+ capture: true,
61350
+ passive: false
61351
+ }));
61352
+ }
61353
+ }
61354
+ }, {
61355
+ key: "componentWillUnmount",
61356
+ value: function componentWillUnmount() {
61357
+ if (this.swiper) {
61358
+ this.swiper.removeEventListener('touchmove', this._handleSwipeMove, getSafeEventHandlerOpts({
61359
+ capture: true,
61360
+ passive: false
61361
+ }));
61362
+ }
61363
+ }
61364
+ }, {
61365
+ key: "_onMouseDown",
61366
+ value: function _onMouseDown(event) {
61367
+ if (!this.props.allowMouseEvents) {
61368
+ return;
61369
+ }
61370
+ this.mouseDown = true;
61371
+ document.addEventListener('mouseup', this._onMouseUp);
61372
+ document.addEventListener('mousemove', this._onMouseMove);
61373
+ this._handleSwipeStart(event);
61374
+ }
61375
+ }, {
61376
+ key: "_onMouseMove",
61377
+ value: function _onMouseMove(event) {
61378
+ if (!this.mouseDown) {
61379
+ return;
61380
+ }
61381
+ this._handleSwipeMove(event);
61382
+ }
61383
+ }, {
61384
+ key: "_onMouseUp",
61385
+ value: function _onMouseUp(event) {
61386
+ this.mouseDown = false;
61387
+ document.removeEventListener('mouseup', this._onMouseUp);
61388
+ document.removeEventListener('mousemove', this._onMouseMove);
61389
+ this._handleSwipeEnd(event);
61390
+ }
61391
+ }, {
61392
+ key: "_handleSwipeStart",
61393
+ value: function _handleSwipeStart(event) {
61394
+ var _getPosition = getPosition$1(event),
61395
+ x = _getPosition.x,
61396
+ y = _getPosition.y;
61397
+ this.moveStart = {
61398
+ x: x,
61399
+ y: y
61400
+ };
61401
+ this.props.onSwipeStart(event);
61402
+ }
61403
+ }, {
61404
+ key: "_handleSwipeMove",
61405
+ value: function _handleSwipeMove(event) {
61406
+ if (!this.moveStart) {
61407
+ return;
61408
+ }
61409
+ var _getPosition2 = getPosition$1(event),
61410
+ x = _getPosition2.x,
61411
+ y = _getPosition2.y;
61412
+ var deltaX = x - this.moveStart.x;
61413
+ var deltaY = y - this.moveStart.y;
61414
+ this.moving = true;
61415
+
61416
+ // handling the responsability of cancelling the scroll to
61417
+ // the component handling the event
61418
+ var shouldPreventDefault = this.props.onSwipeMove({
61419
+ x: deltaX,
61420
+ y: deltaY
61421
+ }, event);
61422
+ if (shouldPreventDefault && event.cancelable) {
61423
+ event.preventDefault();
61424
+ }
61425
+ this.movePosition = {
61426
+ deltaX: deltaX,
61427
+ deltaY: deltaY
61428
+ };
61429
+ }
61430
+ }, {
61431
+ key: "_handleSwipeEnd",
61432
+ value: function _handleSwipeEnd(event) {
61433
+ this.props.onSwipeEnd(event);
61434
+ var tolerance = this.props.tolerance;
61435
+ if (this.moving && this.movePosition) {
61436
+ if (this.movePosition.deltaX < -tolerance) {
61437
+ this.props.onSwipeLeft(1, event);
61438
+ } else if (this.movePosition.deltaX > tolerance) {
61439
+ this.props.onSwipeRight(1, event);
61440
+ }
61441
+ if (this.movePosition.deltaY < -tolerance) {
61442
+ this.props.onSwipeUp(1, event);
61443
+ } else if (this.movePosition.deltaY > tolerance) {
61444
+ this.props.onSwipeDown(1, event);
61445
+ }
61446
+ }
61447
+ this.moveStart = null;
61448
+ this.moving = false;
61449
+ this.movePosition = null;
61450
+ }
61451
+ }, {
61452
+ key: "_setSwiperRef",
61453
+ value: function _setSwiperRef(node) {
61454
+ this.swiper = node;
61455
+ this.props.innerRef(node);
61456
+ }
61457
+ }, {
61458
+ key: "render",
61459
+ value: function render() {
61460
+ var _this$props = this.props;
61461
+ _this$props.tagName;
61462
+ var className = _this$props.className,
61463
+ style = _this$props.style,
61464
+ children = _this$props.children;
61465
+ _this$props.allowMouseEvents;
61466
+ _this$props.onSwipeUp;
61467
+ _this$props.onSwipeDown;
61468
+ _this$props.onSwipeLeft;
61469
+ _this$props.onSwipeRight;
61470
+ _this$props.onSwipeStart;
61471
+ _this$props.onSwipeMove;
61472
+ _this$props.onSwipeEnd;
61473
+ _this$props.innerRef;
61474
+ _this$props.tolerance;
61475
+ var props = _objectWithoutProperties(_this$props, _excluded);
61476
+ return /*#__PURE__*/React.createElement(this.props.tagName, _extends({
61477
+ ref: this._setSwiperRef,
61478
+ onMouseDown: this._onMouseDown,
61479
+ onTouchStart: this._handleSwipeStart,
61480
+ onTouchEnd: this._handleSwipeEnd,
61481
+ className: className,
61482
+ style: style
61483
+ }, props), children);
61484
+ }
61485
+ }]);
61486
+ }(React.Component);
61487
+ _defineProperty$1(ReactSwipe, "displayName", 'ReactSwipe');
61488
+ _defineProperty$1(ReactSwipe, "propTypes", {
61489
+ tagName: PropTypes.string,
61490
+ className: PropTypes.string,
61491
+ style: PropTypes.object,
61492
+ children: PropTypes.node,
61493
+ allowMouseEvents: PropTypes.bool,
61494
+ onSwipeUp: PropTypes.func,
61495
+ onSwipeDown: PropTypes.func,
61496
+ onSwipeLeft: PropTypes.func,
61497
+ onSwipeRight: PropTypes.func,
61498
+ onSwipeStart: PropTypes.func,
61499
+ onSwipeMove: PropTypes.func,
61500
+ onSwipeEnd: PropTypes.func,
61501
+ innerRef: PropTypes.func,
61502
+ tolerance: PropTypes.number.isRequired
61503
+ });
61504
+ _defineProperty$1(ReactSwipe, "defaultProps", {
61505
+ tagName: 'div',
61506
+ allowMouseEvents: false,
61507
+ onSwipeUp: function onSwipeUp() {},
61508
+ onSwipeDown: function onSwipeDown() {},
61509
+ onSwipeLeft: function onSwipeLeft() {},
61510
+ onSwipeRight: function onSwipeRight() {},
61511
+ onSwipeStart: function onSwipeStart() {},
61512
+ onSwipeMove: function onSwipeMove() {},
61513
+ onSwipeEnd: function onSwipeEnd() {},
61514
+ innerRef: function innerRef() {},
61515
+ tolerance: 0
61516
+ });
61517
+
61518
+ var classnames = {exports: {}};
61519
+
61520
+ /*!
61521
+ Copyright (c) 2018 Jed Watson.
61522
+ Licensed under the MIT License (MIT), see
61523
+ http://jedwatson.github.io/classnames
61524
+ */
61525
+
61526
+ var hasRequiredClassnames;
61527
+
61528
+ function requireClassnames () {
61529
+ if (hasRequiredClassnames) return classnames.exports;
61530
+ hasRequiredClassnames = 1;
61531
+ (function (module) {
61532
+ /* global define */
61533
+
61534
+ (function () {
61535
+
61536
+ var hasOwn = {}.hasOwnProperty;
61537
+
61538
+ function classNames () {
61539
+ var classes = '';
61540
+
61541
+ for (var i = 0; i < arguments.length; i++) {
61542
+ var arg = arguments[i];
61543
+ if (arg) {
61544
+ classes = appendClass(classes, parseValue(arg));
61545
+ }
61546
+ }
61547
+
61548
+ return classes;
61549
+ }
61550
+
61551
+ function parseValue (arg) {
61552
+ if (typeof arg === 'string' || typeof arg === 'number') {
61553
+ return arg;
61554
+ }
61555
+
61556
+ if (typeof arg !== 'object') {
61557
+ return '';
61558
+ }
61559
+
61560
+ if (Array.isArray(arg)) {
61561
+ return classNames.apply(null, arg);
61562
+ }
61563
+
61564
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
61565
+ return arg.toString();
61566
+ }
61567
+
61568
+ var classes = '';
61569
+
61570
+ for (var key in arg) {
61571
+ if (hasOwn.call(arg, key) && arg[key]) {
61572
+ classes = appendClass(classes, key);
61573
+ }
61574
+ }
61575
+
61576
+ return classes;
61577
+ }
61578
+
61579
+ function appendClass (value, newClass) {
61580
+ if (!newClass) {
61581
+ return value;
61582
+ }
61583
+
61584
+ if (value) {
61585
+ return value + ' ' + newClass;
61586
+ }
61587
+
61588
+ return value + newClass;
61589
+ }
61590
+
61591
+ if (module.exports) {
61592
+ classNames.default = classNames;
61593
+ module.exports = classNames;
61594
+ } else {
61595
+ window.classNames = classNames;
61596
+ }
61597
+ }());
61598
+ } (classnames));
61599
+ return classnames.exports;
61600
+ }
61601
+
61602
+ var classnamesExports = requireClassnames();
61603
+ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
61604
+
61605
+ var klass = {
61606
+ ROOT: function ROOT(customClassName) {
61607
+ return classNames(_defineProperty$1({
61608
+ 'carousel-root': true
61609
+ }, customClassName || '', !!customClassName));
61610
+ },
61611
+ CAROUSEL: function CAROUSEL(isSlider) {
61612
+ return classNames({
61613
+ carousel: true,
61614
+ 'carousel-slider': isSlider
61615
+ });
61616
+ },
61617
+ WRAPPER: function WRAPPER(isSlider, axis) {
61618
+ return classNames({
61619
+ 'thumbs-wrapper': !isSlider,
61620
+ 'slider-wrapper': isSlider,
61621
+ 'axis-horizontal': axis === 'horizontal',
61622
+ 'axis-vertical': axis !== 'horizontal'
61623
+ });
61624
+ },
61625
+ SLIDER: function SLIDER(isSlider, isSwiping) {
61626
+ return classNames({
61627
+ thumbs: !isSlider,
61628
+ slider: isSlider,
61629
+ animated: !isSwiping
61630
+ });
61631
+ },
61632
+ ITEM: function ITEM(isSlider, selected, previous) {
61633
+ return classNames({
61634
+ thumb: !isSlider,
61635
+ slide: isSlider,
61636
+ selected: selected,
61637
+ previous: previous
61638
+ });
61639
+ },
61640
+ ARROW_PREV: function ARROW_PREV(disabled) {
61641
+ return classNames({
61642
+ 'control-arrow control-prev': true,
61643
+ 'control-disabled': disabled
61644
+ });
61645
+ },
61646
+ ARROW_NEXT: function ARROW_NEXT(disabled) {
61647
+ return classNames({
61648
+ 'control-arrow control-next': true,
61649
+ 'control-disabled': disabled
61650
+ });
61651
+ },
61652
+ DOT: function DOT(selected) {
61653
+ return classNames({
61654
+ dot: true,
61655
+ selected: selected
61656
+ });
61657
+ }
61658
+ };
61659
+
61660
+ var outerWidth = function outerWidth(el) {
61661
+ var width = el.offsetWidth;
61662
+ var style = getComputedStyle(el);
61663
+ width += parseInt(style.marginLeft) + parseInt(style.marginRight);
61664
+ return width;
61665
+ };
61666
+
61667
+ var CSSTranslate = (function (position, metric, axis) {
61668
+ var positionPercent = position === 0 ? position : position + metric;
61669
+ var positionCss = axis === 'horizontal' ? [positionPercent, 0, 0] : [0, positionPercent, 0];
61670
+ var transitionProp = 'translate3d';
61671
+ var translatedPosition = '(' + positionCss.join(',') + ')';
61672
+ return transitionProp + translatedPosition;
61673
+ });
61674
+
61675
+ var getWindow = (function () {
61676
+ return window;
61677
+ });
61678
+
61679
+ var isKeyboardEvent$1 = function isKeyboardEvent(e) {
61680
+ return e.hasOwnProperty('key');
61681
+ };
61682
+ var Thumbs = /*#__PURE__*/function (_Component) {
61683
+ function Thumbs(_props) {
61684
+ var _this;
61685
+ _classCallCheck(this, Thumbs);
61686
+ _this = _callSuper(this, Thumbs, [_props]);
61687
+ _defineProperty$1(_this, "setItemsWrapperRef", function (node) {
61688
+ _this.itemsWrapperRef = node;
61689
+ });
61690
+ _defineProperty$1(_this, "setItemsListRef", function (node) {
61691
+ _this.itemsListRef = node;
61692
+ });
61693
+ _defineProperty$1(_this, "setThumbsRef", function (node, index) {
61694
+ if (!_this.thumbsRef) {
61695
+ _this.thumbsRef = [];
61696
+ }
61697
+ _this.thumbsRef[index] = node;
61698
+ });
61699
+ _defineProperty$1(_this, "updateSizes", function () {
61700
+ if (!_this.props.children || !_this.itemsWrapperRef || !_this.thumbsRef) {
61701
+ return;
61702
+ }
61703
+ var total = React.Children.count(_this.props.children);
61704
+ var wrapperSize = _this.itemsWrapperRef.clientWidth;
61705
+ var itemSize = _this.props.thumbWidth ? _this.props.thumbWidth : outerWidth(_this.thumbsRef[0]);
61706
+ var visibleItems = Math.floor(wrapperSize / itemSize);
61707
+ var showArrows = visibleItems < total;
61708
+ var lastPosition = showArrows ? total - visibleItems : 0;
61709
+ _this.setState(function (_state, props) {
61710
+ return {
61711
+ itemSize: itemSize,
61712
+ visibleItems: visibleItems,
61713
+ firstItem: showArrows ? _this.getFirstItem(props.selectedItem) : 0,
61714
+ lastPosition: lastPosition,
61715
+ showArrows: showArrows
61716
+ };
61717
+ });
61718
+ });
61719
+ _defineProperty$1(_this, "handleClickItem", function (index, item, e) {
61720
+ if (!isKeyboardEvent$1(e) || e.key === 'Enter') {
61721
+ var handler = _this.props.onSelectItem;
61722
+ if (typeof handler === 'function') {
61723
+ handler(index, item);
61724
+ }
61725
+ }
61726
+ });
61727
+ _defineProperty$1(_this, "onSwipeStart", function () {
61728
+ _this.setState({
61729
+ swiping: true
61730
+ });
61731
+ });
61732
+ _defineProperty$1(_this, "onSwipeEnd", function () {
61733
+ _this.setState({
61734
+ swiping: false
61735
+ });
61736
+ });
61737
+ _defineProperty$1(_this, "onSwipeMove", function (delta) {
61738
+ var deltaX = delta.x;
61739
+ if (!_this.state.itemSize || !_this.itemsWrapperRef || !_this.state.visibleItems) {
61740
+ return false;
61741
+ }
61742
+ var leftBoundary = 0;
61743
+ var childrenLength = React.Children.count(_this.props.children);
61744
+ var currentPosition = -(_this.state.firstItem * 100) / _this.state.visibleItems;
61745
+ var lastLeftItem = Math.max(childrenLength - _this.state.visibleItems, 0);
61746
+ var lastLeftBoundary = -lastLeftItem * 100 / _this.state.visibleItems;
61747
+
61748
+ // prevent user from swiping left out of boundaries
61749
+ if (currentPosition === leftBoundary && deltaX > 0) {
61750
+ deltaX = 0;
61751
+ }
61752
+
61753
+ // prevent user from swiping right out of boundaries
61754
+ if (currentPosition === lastLeftBoundary && deltaX < 0) {
61755
+ deltaX = 0;
61756
+ }
61757
+ var wrapperSize = _this.itemsWrapperRef.clientWidth;
61758
+ var position = currentPosition + 100 / (wrapperSize / deltaX);
61759
+ // if 3d isn't available we will use left to move
61760
+ if (_this.itemsListRef) {
61761
+ ['WebkitTransform', 'MozTransform', 'MsTransform', 'OTransform', 'transform', 'msTransform'].forEach(function (prop) {
61762
+ _this.itemsListRef.style[prop] = CSSTranslate(position, '%', _this.props.axis);
61763
+ });
61764
+ }
61765
+ return true;
61766
+ });
61767
+ _defineProperty$1(_this, "slideRight", function (positions) {
61768
+ _this.moveTo(_this.state.firstItem - (typeof positions === 'number' ? positions : 1));
61769
+ });
61770
+ _defineProperty$1(_this, "slideLeft", function (positions) {
61771
+ _this.moveTo(_this.state.firstItem + (typeof positions === 'number' ? positions : 1));
61772
+ });
61773
+ _defineProperty$1(_this, "moveTo", function (position) {
61774
+ // position can't be lower than 0
61775
+ position = position < 0 ? 0 : position;
61776
+ // position can't be higher than last postion
61777
+ position = position >= _this.state.lastPosition ? _this.state.lastPosition : position;
61778
+ _this.setState({
61779
+ firstItem: position
61780
+ });
61781
+ });
61782
+ _this.state = {
61783
+ selectedItem: _props.selectedItem,
61784
+ swiping: false,
61785
+ showArrows: false,
61786
+ firstItem: 0,
61787
+ visibleItems: 0,
61788
+ lastPosition: 0
61789
+ };
61790
+ return _this;
61791
+ }
61792
+ _inherits(Thumbs, _Component);
61793
+ return _createClass(Thumbs, [{
61794
+ key: "componentDidMount",
61795
+ value: function componentDidMount() {
61796
+ this.setupThumbs();
61797
+ }
61798
+ }, {
61799
+ key: "componentDidUpdate",
61800
+ value: function componentDidUpdate(prevProps) {
61801
+ if (this.props.selectedItem !== this.state.selectedItem) {
61802
+ this.setState({
61803
+ selectedItem: this.props.selectedItem,
61804
+ firstItem: this.getFirstItem(this.props.selectedItem)
61805
+ });
61806
+ }
61807
+ if (this.props.children === prevProps.children) {
61808
+ return;
61809
+ }
61810
+
61811
+ // This will capture any size changes for arrow adjustments etc.
61812
+ // usually in the same render cycle so we don't see any flickers
61813
+ this.updateSizes();
61814
+ }
61815
+ }, {
61816
+ key: "componentWillUnmount",
61817
+ value: function componentWillUnmount() {
61818
+ this.destroyThumbs();
61819
+ }
61820
+ }, {
61821
+ key: "setupThumbs",
61822
+ value: function setupThumbs() {
61823
+ // as the widths are calculated, we need to resize
61824
+ // the carousel when the window is resized
61825
+ getWindow().addEventListener('resize', this.updateSizes);
61826
+ // issue #2 - image loading smaller
61827
+ getWindow().addEventListener('DOMContentLoaded', this.updateSizes);
61828
+
61829
+ // when the component is rendered we need to calculate
61830
+ // the container size to adjust the responsive behaviour
61831
+ this.updateSizes();
61832
+ }
61833
+ }, {
61834
+ key: "destroyThumbs",
61835
+ value: function destroyThumbs() {
61836
+ // removing listeners
61837
+ getWindow().removeEventListener('resize', this.updateSizes);
61838
+ getWindow().removeEventListener('DOMContentLoaded', this.updateSizes);
61839
+ }
61840
+ }, {
61841
+ key: "getFirstItem",
61842
+ value: function getFirstItem(selectedItem) {
61843
+ var firstItem = selectedItem;
61844
+ if (selectedItem >= this.state.lastPosition) {
61845
+ firstItem = this.state.lastPosition;
61846
+ }
61847
+ if (selectedItem < this.state.firstItem + this.state.visibleItems) {
61848
+ firstItem = this.state.firstItem;
61849
+ }
61850
+ if (selectedItem < this.state.firstItem) {
61851
+ firstItem = selectedItem;
61852
+ }
61853
+ return firstItem;
61854
+ }
61855
+ }, {
61856
+ key: "renderItems",
61857
+ value: function renderItems() {
61858
+ var _this2 = this;
61859
+ return this.props.children.map(function (img, index) {
61860
+ var itemClass = klass.ITEM(false, index === _this2.state.selectedItem);
61861
+ var thumbProps = {
61862
+ key: index,
61863
+ ref: function ref(e) {
61864
+ return _this2.setThumbsRef(e, index);
61865
+ },
61866
+ className: itemClass,
61867
+ onClick: _this2.handleClickItem.bind(_this2, index, _this2.props.children[index]),
61868
+ onKeyDown: _this2.handleClickItem.bind(_this2, index, _this2.props.children[index]),
61869
+ 'aria-label': "".concat(_this2.props.labels.item, " ").concat(index + 1),
61870
+ style: {
61871
+ width: _this2.props.thumbWidth
61872
+ }
61873
+ };
61874
+ return /*#__PURE__*/React.createElement("li", _extends({}, thumbProps, {
61875
+ role: "button",
61876
+ tabIndex: 0,
61877
+ className: "jsx-2129274269" + " " + (thumbProps && thumbProps.className != null && thumbProps.className || "")
61878
+ }), img, /*#__PURE__*/React.createElement(_JSXStyle, {
61879
+ id: "2129274269"
61880
+ }, ".thumb.jsx-2129274269{-webkit-transition:border 0.15s ease-in;transition:border 0.15s ease-in;display:inline-block;margin-right:6px;margin-bottom:0 !important;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px;}.thumb.jsx-2129274269:focus{border:3px solid #ccc;outline:none;}.thumb.selected.jsx-2129274269,.thumb.jsx-2129274269:hover{border:3px solid #0099ff;}.thumb.jsx-2129274269 img.jsx-2129274269{vertical-align:top;}"));
61881
+ });
61882
+ }
61883
+ }, {
61884
+ key: "render",
61885
+ value: function render() {
61886
+ var _this3 = this;
61887
+ if (!this.props.children) {
61888
+ return null;
61889
+ }
61890
+ var isSwipeable = React.Children.count(this.props.children) > 1;
61891
+
61892
+ // show left arrow?
61893
+ var hasPrev = this.state.showArrows && this.state.firstItem > 0;
61894
+ // show right arrow
61895
+ var hasNext = this.state.showArrows && this.state.firstItem < this.state.lastPosition;
61896
+ // obj to hold the transformations and styles
61897
+ var itemListStyles = {};
61898
+ var currentPosition = -this.state.firstItem * (this.state.itemSize || 0);
61899
+ var transformProp = CSSTranslate(currentPosition, 'px', this.props.axis);
61900
+ var transitionTime = this.props.transitionTime + 'ms';
61901
+ itemListStyles = {
61902
+ WebkitTransform: transformProp,
61903
+ MozTransform: transformProp,
61904
+ MsTransform: transformProp,
61905
+ OTransform: transformProp,
61906
+ transform: transformProp,
61907
+ msTransform: transformProp,
61908
+ WebkitTransitionDuration: transitionTime,
61909
+ MozTransitionDuration: transitionTime,
61910
+ MsTransitionDuration: transitionTime,
61911
+ OTransitionDuration: transitionTime,
61912
+ transitionDuration: transitionTime,
61913
+ msTransitionDuration: transitionTime
61914
+ };
61915
+ return /*#__PURE__*/React.createElement("div", {
61916
+ className: "jsx-3452014152" + " " + (klass.CAROUSEL(false) || "")
61917
+ }, /*#__PURE__*/React.createElement("div", {
61918
+ ref: this.setItemsWrapperRef,
61919
+ className: "jsx-3452014152" + " " + (klass.WRAPPER(false) || "")
61920
+ }, /*#__PURE__*/React.createElement(Button$1, {
61921
+ scale: 2 / 3,
61922
+ auto: true,
61923
+ px: 0.6,
61924
+ type: "button",
61925
+ style: {
61926
+ position: 'absolute',
61927
+ zIndex: '2',
61928
+ left: 0
61929
+ },
61930
+ iconRight: /*#__PURE__*/React.createElement(ChevronLeft$1, null),
61931
+ className: klass.ARROW_PREV(!hasPrev),
61932
+ onClick: function onClick() {
61933
+ return _this3.slideRight();
61934
+ },
61935
+ "aria-label": this.props.labels.leftArrow
61936
+ }), isSwipeable ? /*#__PURE__*/React.createElement(ReactSwipe, {
61937
+ tagName: "ul",
61938
+ className: klass.SLIDER(false, this.state.swiping),
61939
+ onSwipeLeft: this.slideLeft,
61940
+ onSwipeRight: this.slideRight,
61941
+ onSwipeMove: this.onSwipeMove,
61942
+ onSwipeStart: this.onSwipeStart,
61943
+ onSwipeEnd: this.onSwipeEnd,
61944
+ style: _objectSpread2({
61945
+ display: 'flex',
61946
+ margin: '20px 45px'
61947
+ }, itemListStyles),
61948
+ innerRef: this.setItemsListRef,
61949
+ allowMouseEvents: this.props.emulateTouch
61950
+ }, this.renderItems()) : /*#__PURE__*/React.createElement("ul", {
61951
+ ref: function ref(node) {
61952
+ return _this3.setItemsListRef(node);
61953
+ },
61954
+ style: itemListStyles,
61955
+ className: "jsx-3452014152" + " " + (klass.SLIDER(false, this.state.swiping) || "")
61956
+ }, this.renderItems()), /*#__PURE__*/React.createElement(Button$1, {
61957
+ type: "button",
61958
+ scale: 2 / 3,
61959
+ auto: true,
61960
+ px: 0.6,
61961
+ style: {
61962
+ position: 'absolute',
61963
+ zIndex: '2',
61964
+ right: 0
61965
+ },
61966
+ iconRight: /*#__PURE__*/React.createElement(ChevronRight$1, null),
61967
+ className: klass.ARROW_NEXT(!hasNext),
61968
+ onClick: function onClick() {
61969
+ return _this3.slideLeft();
61970
+ },
61971
+ "aria-label": this.props.labels.rightArrow
61972
+ })), /*#__PURE__*/React.createElement(_JSXStyle, {
61973
+ id: "3452014152"
61974
+ }, ".thumbs-wrapper.jsx-3452014152{margin:0;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.thumbs.jsx-3452014152{-webkit-transition:all 0.15s ease-in;transition:all 0.15s ease-in;position:relative;list-style:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;white-space:nowrap;margin:0 !important;}.control-arrow.control-prev.jsx-3452014152{left:0;}.control-arrow.control-prev.jsx-3452014152:before{border-right:8px solid #fff;}.control-arrow.control-next.jsx-3452014152{right:0;}.control-arrow.control-next.jsx-3452014152:before{border-left:8px solid #fff;}"));
61975
+ }
61976
+ }]);
61977
+ }(React.Component);
61978
+ _defineProperty$1(Thumbs, "displayName", 'Thumbs');
61979
+ _defineProperty$1(Thumbs, "defaultProps", {
61980
+ axis: 'horizontal',
61981
+ labels: {
61982
+ leftArrow: 'previous slide / item',
61983
+ rightArrow: 'next slide / item',
61984
+ item: 'slide item'
61985
+ },
61986
+ selectedItem: 0,
61987
+ thumbWidth: 80,
61988
+ transitionTime: 350
61989
+ });
61990
+
61991
+ var getDocument = (function () {
61992
+ return document;
61993
+ });
61994
+
61995
+ var noop = function noop() {};
61996
+ var defaultStatusFormatter = function defaultStatusFormatter(current, total) {
61997
+ return "".concat(current, " of ").concat(total);
61998
+ };
61999
+ var isKeyboardEvent = function isKeyboardEvent(e) {
62000
+ return e ? e.hasOwnProperty('key') : false;
62001
+ };
62002
+
62003
+ /**
62004
+ * Gets the list 'position' relative to a current index
62005
+ * @param index
62006
+ */
62007
+ var getPosition = function getPosition(index, props) {
62008
+ if (props.infiniteLoop) {
62009
+ // index has to be added by 1 because of the first cloned slide
62010
+ ++index;
62011
+ }
62012
+ if (index === 0) {
62013
+ return 0;
62014
+ }
62015
+ var childrenLength = React.Children.count(props.children);
62016
+ if (props.centerMode && props.axis === 'horizontal') {
62017
+ var currentPosition = -index * props.centerSlidePercentage;
62018
+ var lastPosition = childrenLength - 1;
62019
+ if (index && (index !== lastPosition || props.infiniteLoop)) {
62020
+ currentPosition += (100 - props.centerSlidePercentage) / 2;
62021
+ } else if (index === lastPosition) {
62022
+ currentPosition += 100 - props.centerSlidePercentage;
62023
+ }
62024
+ return currentPosition;
62025
+ }
62026
+ return -index * 100;
62027
+ };
62028
+
62029
+ /**
62030
+ * Sets the 'position' transform for sliding animations
62031
+ * @param position
62032
+ * @param forceReflow
62033
+ */
62034
+ var setPosition = function setPosition(position, axis) {
62035
+ var style = {};
62036
+ ['WebkitTransform', 'MozTransform', 'MsTransform', 'OTransform', 'transform', 'msTransform'].forEach(function (prop) {
62037
+ // @ts-ignore
62038
+ style[prop] = CSSTranslate(position, '%', axis);
62039
+ });
62040
+ return style;
62041
+ };
62042
+
62043
+ var Arrow = function Arrow(_ref) {
62044
+ var direction = _ref.direction,
62045
+ onClickHandler = _ref.onClickHandler,
62046
+ enabled = _ref.enabled,
62047
+ label = _ref.label;
62048
+ var isPrev = direction === 'prev';
62049
+ var arrowClassName = isPrev ? klass.ARROW_PREV(!enabled) : klass.ARROW_NEXT(!enabled);
62050
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
62051
+ type: "button",
62052
+ "aria-label": label,
62053
+ onClick: onClickHandler,
62054
+ className: "jsx-4058608807" + " " + (arrowClassName || "")
62055
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
62056
+ id: "4058608807"
62057
+ }, ".control-arrow.jsx-4058608807{position:absolute;z-index:2;top:0;bottom:0;background:none;border:0;font-size:26px;cursor:pointer;opacity:0.4;-webkit-transition:all 0.25s ease-in;transition:all 0.25s ease-in;margin-top:-13px;padding:5px;color:#fff;}.control-arrow.jsx-4058608807:hover{background:rgba(0,0,0,0.2);opacity:1;}.control-arrow.jsx-4058608807:hover,.control-arrow.jsx-4058608807:focus{opacity:1;}.control-arrow.control-arrow.jsx-4058608807:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:'';}.control-arrow.control-disabled.jsx-4058608807{opacity:0;cursor:inherit;display:none;}.control-arrow.control-prev.jsx-4058608807{left:0;}.control-arrow.control-prev.jsx-4058608807:before{border-right:8px solid #fff;}.control-arrow.control-next.jsx-4058608807{right:0;}.control-arrow.control-next.jsx-4058608807:before{border-left:8px solid #fff;}"));
62058
+ };
62059
+
62060
+ var Indicator = function Indicator(_ref) {
62061
+ var onClickHandler = _ref.onClickHandler,
62062
+ isSelected = _ref.isSelected,
62063
+ index = _ref.index,
62064
+ label = _ref.label;
62065
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
62066
+ onClick: onClickHandler,
62067
+ onKeyDown: onClickHandler,
62068
+ value: index,
62069
+ key: index,
62070
+ role: "button",
62071
+ tabIndex: 0,
62072
+ "aria-label": "".concat(label, " ").concat(index + 1),
62073
+ className: "jsx-3056554148" + " " + (klass.DOT(isSelected) || "")
62074
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
62075
+ id: "3056554148"
62076
+ }, ".dot.jsx-3056554148{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-3056554148,.dot.jsx-3056554148:hover{opacity:1;}"));
62077
+ };
62078
+
62079
+ /**
62080
+ * Main animation handler for the default 'sliding' style animation
62081
+ * @param props
62082
+ * @param state
62083
+ */
62084
+ var slideAnimationHandler = function slideAnimationHandler(props, state) {
62085
+ var returnStyles = {};
62086
+ var selectedItem = state.selectedItem;
62087
+ var previousItem = selectedItem;
62088
+ var lastPosition = React.Children.count(props.children) - 1;
62089
+ var needClonedSlide = props.infiniteLoop && (selectedItem < 0 || selectedItem > lastPosition);
62090
+
62091
+ // Handle list position if it needs a clone
62092
+ if (needClonedSlide) {
62093
+ if (previousItem < 0) {
62094
+ if (props.centerMode && props.centerSlidePercentage && props.axis === 'horizontal') {
62095
+ returnStyles.itemListStyle = setPosition(-(lastPosition + 2) * props.centerSlidePercentage - (100 - props.centerSlidePercentage) / 2, props.axis);
62096
+ } else {
62097
+ returnStyles.itemListStyle = setPosition(-(lastPosition + 2) * 100, props.axis);
62098
+ }
62099
+ } else if (previousItem > lastPosition) {
62100
+ returnStyles.itemListStyle = setPosition(0, props.axis);
62101
+ }
62102
+ return returnStyles;
62103
+ }
62104
+ var currentPosition = getPosition(selectedItem, props);
62105
+
62106
+ // if 3d is available, let's take advantage of the performance of transform
62107
+ var transformProp = CSSTranslate(currentPosition, '%', props.axis);
62108
+ var transitionTime = props.transitionTime + 'ms';
62109
+ returnStyles.itemListStyle = {
62110
+ WebkitTransform: transformProp,
62111
+ msTransform: transformProp,
62112
+ OTransform: transformProp,
62113
+ transform: transformProp
62114
+ };
62115
+ if (!state.swiping) {
62116
+ returnStyles.itemListStyle = _objectSpread2(_objectSpread2({}, returnStyles.itemListStyle), {}, {
62117
+ WebkitTransitionDuration: transitionTime,
62118
+ MozTransitionDuration: transitionTime,
62119
+ OTransitionDuration: transitionTime,
62120
+ transitionDuration: transitionTime,
62121
+ msTransitionDuration: transitionTime
62122
+ });
62123
+ }
62124
+ return returnStyles;
62125
+ };
62126
+
62127
+ /**
62128
+ * Swiping animation handler for the default 'sliding' style animation
62129
+ * @param delta
62130
+ * @param props
62131
+ * @param state
62132
+ * @param setState
62133
+ */
62134
+ var slideSwipeAnimationHandler = function slideSwipeAnimationHandler(delta, props, state, setState) {
62135
+ var returnStyles = {};
62136
+ var isHorizontal = props.axis === 'horizontal';
62137
+ var childrenLength = React.Children.count(props.children);
62138
+ var initialBoundry = 0;
62139
+ var currentPosition = getPosition(state.selectedItem, props);
62140
+ var finalBoundry = props.infiniteLoop ? getPosition(childrenLength - 1, props) - 100 : getPosition(childrenLength - 1, props);
62141
+ var axisDelta = isHorizontal ? delta.x : delta.y;
62142
+ var handledDelta = axisDelta;
62143
+
62144
+ // prevent user from swiping left out of boundaries
62145
+ if (currentPosition === initialBoundry && axisDelta > 0) {
62146
+ handledDelta = 0;
62147
+ }
62148
+
62149
+ // prevent user from swiping right out of boundaries
62150
+ if (currentPosition === finalBoundry && axisDelta < 0) {
62151
+ handledDelta = 0;
62152
+ }
62153
+ var position = currentPosition + 100 / (state.itemSize / handledDelta);
62154
+ var hasMoved = Math.abs(axisDelta) > props.swipeScrollTolerance;
62155
+ if (props.infiniteLoop && hasMoved) {
62156
+ // When allowing infinite loop, if we slide left from position 0 we reveal the cloned last slide that appears before it
62157
+ // if we slide even further we need to jump to other side so it can continue - and vice versa for the last slide
62158
+ if (state.selectedItem === 0 && position > -100) {
62159
+ position -= childrenLength * 100;
62160
+ } else if (state.selectedItem === childrenLength - 1 && position < -childrenLength * 100) {
62161
+ position += childrenLength * 100;
62162
+ }
62163
+ }
62164
+ if (!props.preventMovementUntilSwipeScrollTolerance || hasMoved || state.swipeMovementStarted) {
62165
+ if (!state.swipeMovementStarted) {
62166
+ setState({
62167
+ swipeMovementStarted: true
62168
+ });
62169
+ }
62170
+ returnStyles.itemListStyle = setPosition(position, props.axis);
62171
+ }
62172
+
62173
+ //allows scroll if the swipe was within the tolerance
62174
+ if (hasMoved && !state.cancelClick) {
62175
+ setState({
62176
+ cancelClick: true
62177
+ });
62178
+ }
62179
+ return returnStyles;
62180
+ };
62181
+
62182
+ /**
62183
+ * Default 'sliding' style animination handler for when a swipe action stops.
62184
+ * @param props
62185
+ * @param state
62186
+ */
62187
+ var slideStopSwipingHandler = function slideStopSwipingHandler(props, state) {
62188
+ var currentPosition = getPosition(state.selectedItem, props);
62189
+ var itemListStyle = setPosition(currentPosition, props.axis);
62190
+ return {
62191
+ itemListStyle: itemListStyle
62192
+ };
62193
+ };
62194
+
62195
+ /**
62196
+ * Main animation handler for the default 'fade' style animation
62197
+ * @param props
62198
+ * @param state
62199
+ */
62200
+ var fadeAnimationHandler = function fadeAnimationHandler(props, state) {
62201
+ var transitionTime = props.transitionTime + 'ms';
62202
+ var transitionTimingFunction = 'ease-in-out';
62203
+ var slideStyle = {
62204
+ position: 'absolute',
62205
+ display: 'block',
62206
+ zIndex: -2,
62207
+ minHeight: '100%',
62208
+ opacity: 0,
62209
+ top: 0,
62210
+ right: 0,
62211
+ left: 0,
62212
+ bottom: 0,
62213
+ transitionTimingFunction: transitionTimingFunction,
62214
+ msTransitionTimingFunction: transitionTimingFunction,
62215
+ MozTransitionTimingFunction: transitionTimingFunction,
62216
+ WebkitTransitionTimingFunction: transitionTimingFunction,
62217
+ OTransitionTimingFunction: transitionTimingFunction
62218
+ };
62219
+ if (!state.swiping) {
62220
+ slideStyle = _objectSpread2(_objectSpread2({}, slideStyle), {}, {
62221
+ WebkitTransitionDuration: transitionTime,
62222
+ MozTransitionDuration: transitionTime,
62223
+ OTransitionDuration: transitionTime,
62224
+ transitionDuration: transitionTime,
62225
+ msTransitionDuration: transitionTime
62226
+ });
62227
+ }
62228
+ return {
62229
+ slideStyle: slideStyle,
62230
+ selectedStyle: _objectSpread2(_objectSpread2({}, slideStyle), {}, {
62231
+ opacity: 1,
62232
+ position: 'relative'
62233
+ }),
62234
+ prevStyle: _objectSpread2({}, slideStyle)
62235
+ };
62236
+ };
62237
+
62238
+ var Carousel = /*#__PURE__*/function (_React$Component) {
62239
+ function Carousel(props) {
62240
+ var _this;
62241
+ _classCallCheck(this, Carousel);
62242
+ _this = _callSuper(this, Carousel, [props]);
62243
+ _defineProperty$1(_this, "setThumbsRef", function (node) {
62244
+ _this.thumbsRef = node;
62245
+ });
62246
+ _defineProperty$1(_this, "setCarouselWrapperRef", function (node) {
62247
+ _this.carouselWrapperRef = node;
62248
+ });
62249
+ _defineProperty$1(_this, "setListRef", function (node) {
62250
+ _this.listRef = node;
62251
+ });
62252
+ _defineProperty$1(_this, "setItemsRef", function (node, index) {
62253
+ if (!_this.itemsRef) {
62254
+ _this.itemsRef = [];
62255
+ }
62256
+ _this.itemsRef[index] = node;
62257
+ });
62258
+ _defineProperty$1(_this, "autoPlay", function () {
62259
+ if (React.Children.count(_this.props.children) <= 1) {
62260
+ return;
62261
+ }
62262
+ _this.clearAutoPlay();
62263
+ if (!_this.props.autoPlay) {
62264
+ return;
62265
+ }
62266
+ _this.timer = setTimeout(function () {
62267
+ _this.increment();
62268
+ }, _this.props.interval);
62269
+ });
62270
+ _defineProperty$1(_this, "clearAutoPlay", function () {
62271
+ if (_this.timer) clearTimeout(_this.timer);
62272
+ });
62273
+ _defineProperty$1(_this, "resetAutoPlay", function () {
62274
+ _this.clearAutoPlay();
62275
+ _this.autoPlay();
62276
+ });
62277
+ _defineProperty$1(_this, "stopOnHover", function () {
62278
+ _this.setState({
62279
+ isMouseEntered: true
62280
+ }, _this.clearAutoPlay);
62281
+ });
62282
+ _defineProperty$1(_this, "startOnLeave", function () {
62283
+ _this.setState({
62284
+ isMouseEntered: false
62285
+ }, _this.autoPlay);
62286
+ });
62287
+ _defineProperty$1(_this, "isFocusWithinTheCarousel", function () {
62288
+ if (!_this.carouselWrapperRef) {
62289
+ return false;
62290
+ }
62291
+ if (getDocument().activeElement === _this.carouselWrapperRef || _this.carouselWrapperRef.contains(getDocument().activeElement)) {
62292
+ return true;
62293
+ }
62294
+ return false;
62295
+ });
62296
+ _defineProperty$1(_this, "navigateWithKeyboard", function (e) {
62297
+ if (!_this.isFocusWithinTheCarousel()) {
62298
+ return;
62299
+ }
62300
+ var axis = _this.props.axis;
62301
+ var isHorizontal = axis === 'horizontal';
62302
+ var keyNames = {
62303
+ ArrowUp: 38,
62304
+ ArrowRight: 39,
62305
+ ArrowDown: 40,
62306
+ ArrowLeft: 37
62307
+ };
62308
+ var nextKey = isHorizontal ? keyNames.ArrowRight : keyNames.ArrowDown;
62309
+ var prevKey = isHorizontal ? keyNames.ArrowLeft : keyNames.ArrowUp;
62310
+ if (nextKey === e.keyCode) {
62311
+ _this.increment();
62312
+ } else if (prevKey === e.keyCode) {
62313
+ _this.decrement();
62314
+ }
62315
+ });
62316
+ _defineProperty$1(_this, "updateSizes", function () {
62317
+ if (!_this.state.initialized || !_this.itemsRef || _this.itemsRef.length === 0) {
62318
+ return;
62319
+ }
62320
+ var isHorizontal = _this.props.axis === 'horizontal';
62321
+ var firstItem = _this.itemsRef[0];
62322
+ if (!firstItem) {
62323
+ return;
62324
+ }
62325
+ var itemSize = isHorizontal ? firstItem.clientWidth : firstItem.clientHeight;
62326
+ _this.setState({
62327
+ itemSize: itemSize
62328
+ });
62329
+ if (_this.thumbsRef) {
62330
+ _this.thumbsRef.updateSizes();
62331
+ }
62332
+ });
62333
+ _defineProperty$1(_this, "setMountState", function () {
62334
+ _this.setState({
62335
+ hasMount: true
62336
+ });
62337
+ _this.updateSizes();
62338
+ });
62339
+ _defineProperty$1(_this, "handleClickItem", function (index, item) {
62340
+ if (React.Children.count(_this.props.children) === 0) {
62341
+ return;
62342
+ }
62343
+ if (_this.state.cancelClick) {
62344
+ _this.setState({
62345
+ cancelClick: false
62346
+ });
62347
+ return;
62348
+ }
62349
+ _this.props.onClickItem(index, item);
62350
+ if (index !== _this.state.selectedItem) {
62351
+ _this.setState({
62352
+ selectedItem: index
62353
+ });
62354
+ }
62355
+ });
62356
+ /**
62357
+ * On Change handler, Passes the index and React node to the supplied onChange prop
62358
+ * @param index of the carousel item
62359
+ * @param item React node of the item being changed
62360
+ */
62361
+ _defineProperty$1(_this, "handleOnChange", function (index, item) {
62362
+ if (React.Children.count(_this.props.children) <= 1) {
62363
+ return;
62364
+ }
62365
+ _this.props.onChange(index, item);
62366
+ });
62367
+ _defineProperty$1(_this, "handleClickThumb", function (index, item) {
62368
+ _this.props.onClickThumb(index, item);
62369
+ _this.moveTo(index);
62370
+ });
62371
+ _defineProperty$1(_this, "onSwipeStart", function (event) {
62372
+ _this.setState({
62373
+ swiping: true
62374
+ });
62375
+ _this.props.onSwipeStart(event);
62376
+ });
62377
+ _defineProperty$1(_this, "onSwipeEnd", function (event) {
62378
+ _this.setState({
62379
+ swiping: false,
62380
+ cancelClick: false,
62381
+ swipeMovementStarted: false
62382
+ });
62383
+ _this.props.onSwipeEnd(event);
62384
+ _this.clearAutoPlay();
62385
+ if (_this.state.autoPlay) {
62386
+ _this.autoPlay();
62387
+ }
62388
+ });
62389
+ _defineProperty$1(_this, "onSwipeMove", function (delta, event) {
62390
+ _this.props.onSwipeMove(event);
62391
+ var animationHandlerResponse = _this.props.swipeAnimationHandler(delta, _this.props, _this.state, _this.setState.bind(_this));
62392
+ _this.setState(_objectSpread2({}, animationHandlerResponse));
62393
+
62394
+ // If we have not moved, we should have an empty object returned
62395
+ // Return false to allow scrolling when not swiping
62396
+ return !!Object.keys(animationHandlerResponse).length;
62397
+ });
62398
+ /**
62399
+ * Decrements the selectedItem index a number of positions through the children list
62400
+ * @param positions
62401
+ * @param fromSwipe
62402
+ */
62403
+ _defineProperty$1(_this, "decrement", function () {
62404
+ var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
62405
+ _this.moveTo(_this.state.selectedItem - (typeof positions === 'number' ? positions : 1));
62406
+ });
62407
+ /**
62408
+ * Increments the selectedItem index a number of positions through the children list
62409
+ * @param positions
62410
+ * @param fromSwipe
62411
+ */
62412
+ _defineProperty$1(_this, "increment", function () {
62413
+ var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
62414
+ _this.moveTo(_this.state.selectedItem + (typeof positions === 'number' ? positions : 1));
62415
+ });
62416
+ /**
62417
+ * Moves the selected item to the position provided
62418
+ * @param position
62419
+ * @param fromSwipe
62420
+ */
62421
+ _defineProperty$1(_this, "moveTo", function (position) {
62422
+ if (typeof position !== 'number') {
62423
+ return;
62424
+ }
62425
+ var lastPosition = React.Children.count(_this.props.children) - 1;
62426
+ if (position < 0) {
62427
+ position = _this.props.infiniteLoop ? lastPosition : 0;
62428
+ }
62429
+ if (position > lastPosition) {
62430
+ position = _this.props.infiniteLoop ? 0 : lastPosition;
62431
+ }
62432
+ _this.selectItem({
62433
+ // if it's not a slider, we don't need to set position here
62434
+ selectedItem: position
62435
+ });
62436
+
62437
+ // don't reset auto play when stop on hover is enabled, doing so will trigger a call to auto play more than once
62438
+ // and will result in the interval function not being cleared correctly.
62439
+ if (_this.state.autoPlay && _this.state.isMouseEntered === false) {
62440
+ _this.resetAutoPlay();
62441
+ }
62442
+ });
62443
+ _defineProperty$1(_this, "onClickNext", function () {
62444
+ _this.increment(1);
62445
+ });
62446
+ _defineProperty$1(_this, "onClickPrev", function () {
62447
+ _this.decrement(1);
62448
+ });
62449
+ _defineProperty$1(_this, "onSwipeForward", function () {
62450
+ _this.increment(1);
62451
+ if (_this.props.emulateTouch) {
62452
+ _this.setState({
62453
+ cancelClick: true
62454
+ });
62455
+ }
62456
+ });
62457
+ _defineProperty$1(_this, "onSwipeBackwards", function () {
62458
+ _this.decrement(1);
62459
+ if (_this.props.emulateTouch) {
62460
+ _this.setState({
62461
+ cancelClick: true
62462
+ });
62463
+ }
62464
+ });
62465
+ _defineProperty$1(_this, "changeItem", function (newIndex) {
62466
+ return function (e) {
62467
+ if (!isKeyboardEvent(e) || e.key === 'Enter') {
62468
+ _this.moveTo(newIndex);
62469
+ }
62470
+ };
62471
+ });
62472
+ /**
62473
+ * This function is called when you want to 'select' a new item, or rather move to a 'selected' item
62474
+ * It also handles the onChange callback wrapper
62475
+ * @param state state object with updated selected item, and swiping bool if relevant
62476
+ */
62477
+ _defineProperty$1(_this, "selectItem", function (state) {
62478
+ // Merge in the new state while updating updating previous item
62479
+ _this.setState(_objectSpread2({
62480
+ previousItem: _this.state.selectedItem
62481
+ }, state), function () {
62482
+ // Run animation handler and update styles based on it
62483
+ _this.setState(_this.animationHandler(_this.props, _this.state));
62484
+ });
62485
+ _this.handleOnChange(state.selectedItem, React.Children.toArray(_this.props.children)[state.selectedItem]);
62486
+ });
62487
+ _defineProperty$1(_this, "getInitialImage", function () {
62488
+ var selectedItem = _this.props.selectedItem;
62489
+ var item = _this.itemsRef && _this.itemsRef[selectedItem];
62490
+ var images = item && item.getElementsByTagName('img') || [];
62491
+ return images[0];
62492
+ });
62493
+ _defineProperty$1(_this, "getVariableItemHeight", function (position) {
62494
+ var item = _this.itemsRef && _this.itemsRef[position];
62495
+ if (_this.state.hasMount && item && item.children.length) {
62496
+ var slideImages = item.children[0].getElementsByTagName('img') || [];
62497
+ if (slideImages.length > 0) {
62498
+ var image = slideImages[0];
62499
+ if (!image.complete) {
62500
+ // if the image is still loading, the size won't be available so we trigger a new render after it's done
62501
+ var _onImageLoad = function onImageLoad() {
62502
+ _this.forceUpdate();
62503
+ image.removeEventListener('load', _onImageLoad);
62504
+ };
62505
+ image.addEventListener('load', _onImageLoad);
62506
+ }
62507
+ }
62508
+
62509
+ // try to get img first, if img not there find first display tag
62510
+ var displayItem = slideImages[0] || item.children[0];
62511
+ var height = displayItem.clientHeight;
62512
+ return height > 0 ? height : null;
62513
+ }
62514
+ return null;
62515
+ });
62516
+ var initState = {
62517
+ initialized: false,
62518
+ previousItem: props.selectedItem,
62519
+ selectedItem: props.selectedItem,
62520
+ hasMount: false,
62521
+ isMouseEntered: false,
62522
+ autoPlay: props.autoPlay,
62523
+ swiping: false,
62524
+ swipeMovementStarted: false,
62525
+ cancelClick: false,
62526
+ itemSize: 1,
62527
+ itemListStyle: {},
62528
+ slideStyle: {},
62529
+ selectedStyle: {},
62530
+ prevStyle: {}
62531
+ };
62532
+ _this.animationHandler = typeof props.animationHandler === 'function' && props.animationHandler || props.animationHandler === 'fade' && fadeAnimationHandler || slideAnimationHandler;
62533
+ _this.state = _objectSpread2(_objectSpread2({}, initState), _this.animationHandler(props, initState));
62534
+ return _this;
62535
+ }
62536
+ _inherits(Carousel, _React$Component);
62537
+ return _createClass(Carousel, [{
62538
+ key: "componentDidMount",
62539
+ value: function componentDidMount() {
62540
+ if (!this.props.children) {
62541
+ return;
62542
+ }
62543
+ this.setupCarousel();
62544
+ }
62545
+ }, {
62546
+ key: "componentDidUpdate",
62547
+ value: function componentDidUpdate(prevProps, prevState) {
62548
+ if (!prevProps.children && this.props.children && !this.state.initialized) {
62549
+ this.setupCarousel();
62550
+ }
62551
+ if (!prevProps.autoFocus && this.props.autoFocus) {
62552
+ this.forceFocus();
62553
+ }
62554
+ if (prevState.swiping && !this.state.swiping) {
62555
+ // We stopped swiping, ensure we are heading to the new/current slide and not stuck
62556
+
62557
+ this.setState(_objectSpread2({}, this.props.stopSwipingHandler(this.props, this.state)));
62558
+ }
62559
+ if (prevProps.selectedItem !== this.props.selectedItem || prevProps.centerMode !== this.props.centerMode) {
62560
+ this.updateSizes();
62561
+ this.moveTo(this.props.selectedItem);
62562
+ }
62563
+ if (prevProps.autoPlay !== this.props.autoPlay) {
62564
+ if (this.props.autoPlay) {
62565
+ this.setupAutoPlay();
62566
+ } else {
62567
+ this.destroyAutoPlay();
62568
+ }
62569
+ this.setState({
62570
+ autoPlay: this.props.autoPlay
62571
+ });
62572
+ }
62573
+ }
62574
+ }, {
62575
+ key: "componentWillUnmount",
62576
+ value: function componentWillUnmount() {
62577
+ this.destroyCarousel();
62578
+ }
62579
+ }, {
62580
+ key: "setupCarousel",
62581
+ value: function setupCarousel() {
62582
+ var _this2 = this;
62583
+ this.bindEvents();
62584
+ if (this.state.autoPlay && React.Children.count(this.props.children) > 1) {
62585
+ this.setupAutoPlay();
62586
+ }
62587
+ if (this.props.autoFocus) {
62588
+ this.forceFocus();
62589
+ }
62590
+ this.setState({
62591
+ initialized: true
62592
+ }, function () {
62593
+ var initialImage = _this2.getInitialImage();
62594
+ if (initialImage && !initialImage.complete) {
62595
+ // if it's a carousel of images, we set the mount state after the first image is loaded
62596
+ initialImage.addEventListener('load', _this2.setMountState);
62597
+ } else {
62598
+ _this2.setMountState();
62599
+ }
62600
+ });
62601
+ }
62602
+ }, {
62603
+ key: "destroyCarousel",
62604
+ value: function destroyCarousel() {
62605
+ if (this.state.initialized) {
62606
+ this.unbindEvents();
62607
+ this.destroyAutoPlay();
62608
+ }
62609
+ }
62610
+ }, {
62611
+ key: "setupAutoPlay",
62612
+ value: function setupAutoPlay() {
62613
+ this.autoPlay();
62614
+ var carouselWrapper = this.carouselWrapperRef;
62615
+ if (this.props.stopOnHover && carouselWrapper) {
62616
+ carouselWrapper.addEventListener('mouseenter', this.stopOnHover);
62617
+ carouselWrapper.addEventListener('mouseleave', this.startOnLeave);
62618
+ }
62619
+ }
62620
+ }, {
62621
+ key: "destroyAutoPlay",
62622
+ value: function destroyAutoPlay() {
62623
+ this.clearAutoPlay();
62624
+ var carouselWrapper = this.carouselWrapperRef;
62625
+ if (this.props.stopOnHover && carouselWrapper) {
62626
+ carouselWrapper.removeEventListener('mouseenter', this.stopOnHover);
62627
+ carouselWrapper.removeEventListener('mouseleave', this.startOnLeave);
62628
+ }
62629
+ }
62630
+ }, {
62631
+ key: "bindEvents",
62632
+ value: function bindEvents() {
62633
+ // as the widths are calculated, we need to resize
62634
+ // the carousel when the window is resized
62635
+ getWindow().addEventListener('resize', this.updateSizes);
62636
+ // issue #2 - image loading smaller
62637
+ getWindow().addEventListener('DOMContentLoaded', this.updateSizes);
62638
+ if (this.props.useKeyboardArrows) {
62639
+ getDocument().addEventListener('keydown', this.navigateWithKeyboard);
62640
+ }
62641
+ }
62642
+ }, {
62643
+ key: "unbindEvents",
62644
+ value: function unbindEvents() {
62645
+ // removing listeners
62646
+ getWindow().removeEventListener('resize', this.updateSizes);
62647
+ getWindow().removeEventListener('DOMContentLoaded', this.updateSizes);
62648
+ var initialImage = this.getInitialImage();
62649
+ if (initialImage) {
62650
+ initialImage.removeEventListener('load', this.setMountState);
62651
+ }
62652
+ if (this.props.useKeyboardArrows) {
62653
+ getDocument().removeEventListener('keydown', this.navigateWithKeyboard);
62654
+ }
62655
+ }
62656
+ }, {
62657
+ key: "forceFocus",
62658
+ value: function forceFocus() {
62659
+ var _this$carouselWrapper;
62660
+ (_this$carouselWrapper = this.carouselWrapperRef) === null || _this$carouselWrapper === void 0 || _this$carouselWrapper.focus();
62661
+ }
62662
+ }, {
62663
+ key: "renderItems",
62664
+ value: function renderItems(isClone) {
62665
+ var _this3 = this;
62666
+ if (!this.props.children) {
62667
+ return [];
62668
+ }
62669
+ return React.Children.map(this.props.children, function (item, index) {
62670
+ var isSelected = index === _this3.state.selectedItem;
62671
+ var isPrevious = index === _this3.state.previousItem;
62672
+ var style = isSelected && _this3.state.selectedStyle || isPrevious && _this3.state.prevStyle || _this3.state.slideStyle || {};
62673
+ if (_this3.props.centerMode && _this3.props.axis === 'horizontal') {
62674
+ style = _objectSpread2(_objectSpread2({}, style), {}, {
62675
+ minWidth: _this3.props.centerSlidePercentage + '%'
62676
+ });
62677
+ }
62678
+ if (_this3.state.swiping && _this3.state.swipeMovementStarted) {
62679
+ style = _objectSpread2(_objectSpread2({}, style), {}, {
62680
+ pointerEvents: 'none'
62681
+ });
62682
+ }
62683
+ var slideProps = {
62684
+ ref: function ref(e) {
62685
+ return _this3.setItemsRef(e, index);
62686
+ },
62687
+ key: 'itemKey' + index + (isClone ? 'clone' : ''),
62688
+ className: klass.ITEM(true, index === _this3.state.selectedItem, index === _this3.state.previousItem),
62689
+ onClick: _this3.handleClickItem.bind(_this3, index, item),
62690
+ style: style
62691
+ };
62692
+ return /*#__PURE__*/React.createElement("li", _extends({}, slideProps, {
62693
+ className: "jsx-2755164558" + " " + (slideProps && slideProps.className != null && slideProps.className || "")
62694
+ }), _this3.props.renderItem(item, {
62695
+ isSelected: index === _this3.state.selectedItem,
62696
+ isPrevious: index === _this3.state.previousItem
62697
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
62698
+ id: "2755164558"
62699
+ }, ".slide.jsx-2755164558{min-width:100%;margin:0;position:relative;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}img.jsx-2755164558{width:100%;vertical-align:top;border:0;}iframe.jsx-2755164558{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0;}.legend.jsx-2755164558{-webkit-transition:opacity 0.35s ease-in-out;transition:opacity 0.35s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;}.slide.jsx-2755164558 .legend.jsx-2755164558{opacity:1;}"));
62700
+ });
62701
+ }
62702
+ }, {
62703
+ key: "renderControls",
62704
+ value: function renderControls() {
62705
+ var _this4 = this;
62706
+ var _this$props = this.props,
62707
+ showIndicators = _this$props.showIndicators,
62708
+ labels = _this$props.labels,
62709
+ renderIndicator = _this$props.renderIndicator,
62710
+ children = _this$props.children;
62711
+ if (!showIndicators) {
62712
+ return null;
62713
+ }
62714
+ return /*#__PURE__*/React.createElement("ul", {
62715
+ className: "jsx-4140983776" + " " + "control-dots"
62716
+ }, React.Children.map(children, function (_, index) {
62717
+ return renderIndicator && renderIndicator(_this4.changeItem(index), index === _this4.state.selectedItem, index, labels.item);
62718
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
62719
+ id: "4140983776"
62720
+ }, ".control-dots.jsx-4140983776{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1;}"));
62721
+ }
62722
+ }, {
62723
+ key: "renderStatus",
62724
+ value: function renderStatus() {
62725
+ if (!this.props.showStatus) {
62726
+ return null;
62727
+ }
62728
+ return /*#__PURE__*/React.createElement("p", {
62729
+ className: "jsx-2959489890" + " " + "carousel-status"
62730
+ }, this.props.statusFormatter(this.state.selectedItem + 1, React.Children.count(this.props.children)), /*#__PURE__*/React.createElement(_JSXStyle, {
62731
+ id: "2959489890"
62732
+ }, ".carousel-status.jsx-2959489890{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff;}"));
62733
+ }
62734
+ }, {
62735
+ key: "renderThumbs",
62736
+ value: function renderThumbs() {
62737
+ if (!this.props.showThumbs || !this.props.children || React.Children.count(this.props.children) === 0) {
62738
+ return null;
62739
+ }
62740
+ return /*#__PURE__*/React.createElement(Thumbs, {
62741
+ ref: this.setThumbsRef,
62742
+ onSelectItem: this.handleClickThumb,
62743
+ selectedItem: this.state.selectedItem,
62744
+ transitionTime: this.props.transitionTime,
62745
+ thumbWidth: this.props.thumbWidth,
62746
+ labels: this.props.labels,
62747
+ emulateTouch: this.props.emulateTouch
62748
+ }, this.props.renderThumbs(this.props.children));
62749
+ }
62750
+ }, {
62751
+ key: "render",
62752
+ value: function render() {
62753
+ var _this5 = this;
62754
+ if (!this.props.children || React.Children.count(this.props.children) === 0) {
62755
+ return null;
62756
+ }
62757
+ var isSwipeable = this.props.swipeable && React.Children.count(this.props.children) > 1;
62758
+ var isHorizontal = this.props.axis === 'horizontal';
62759
+ var canShowArrows = this.props.showArrows && React.Children.count(this.props.children) > 1;
62760
+
62761
+ // show left arrow?
62762
+ var hasPrev = canShowArrows && (this.state.selectedItem > 0 || this.props.infiniteLoop) || false;
62763
+ // show right arrow
62764
+ var hasNext = canShowArrows && (this.state.selectedItem < React.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || false;
62765
+ var itemsClone = this.renderItems(true);
62766
+ var firstClone = itemsClone.shift();
62767
+ var lastClone = itemsClone.pop();
62768
+ var swiperProps = {
62769
+ className: klass.SLIDER(true, this.state.swiping),
62770
+ onSwipeMove: this.onSwipeMove,
62771
+ onSwipeStart: this.onSwipeStart,
62772
+ onSwipeEnd: this.onSwipeEnd,
62773
+ style: _objectSpread2({
62774
+ margin: 0,
62775
+ display: this.props.axis === 'horizontal' ? 'flex' : 'unset',
62776
+ flexDirection: this.props.axis === 'horizontal' ? 'row' : 'column'
62777
+ }, this.state.itemListStyle),
62778
+ tolerance: this.props.swipeScrollTolerance
62779
+ };
62780
+ var containerStyles = {};
62781
+ if (isHorizontal) {
62782
+ swiperProps.onSwipeLeft = this.onSwipeForward;
62783
+ swiperProps.onSwipeRight = this.onSwipeBackwards;
62784
+ if (this.props.dynamicHeight) {
62785
+ var itemHeight = this.getVariableItemHeight(this.state.selectedItem);
62786
+ // swiperProps.style.height = itemHeight || 'auto';
62787
+ containerStyles.height = itemHeight || 'auto';
62788
+ }
62789
+ } else {
62790
+ swiperProps.onSwipeUp = this.props.verticalSwipe === 'natural' ? this.onSwipeBackwards : this.onSwipeForward;
62791
+ swiperProps.onSwipeDown = this.props.verticalSwipe === 'natural' ? this.onSwipeForward : this.onSwipeBackwards;
62792
+ swiperProps.style = _objectSpread2(_objectSpread2({}, swiperProps.style), {}, {
62793
+ height: this.state.itemSize
62794
+ });
62795
+ containerStyles.height = this.state.itemSize;
62796
+ }
62797
+ return /*#__PURE__*/React.createElement("div", {
62798
+ "aria-label": this.props.ariaLabel,
62799
+ ref: this.setCarouselWrapperRef,
62800
+ tabIndex: this.props.useKeyboardArrows ? 0 : undefined,
62801
+ className: "jsx-535322850" + " " + (klass.ROOT(this.props.className) || "")
62802
+ }, /*#__PURE__*/React.createElement("div", {
62803
+ style: {
62804
+ width: this.props.width
62805
+ },
62806
+ className: "jsx-535322850" + " " + (klass.CAROUSEL(true) || "")
62807
+ }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, hasPrev, this.props.labels.leftArrow), /*#__PURE__*/React.createElement("div", {
62808
+ style: containerStyles,
62809
+ className: "jsx-535322850" + " " + (klass.WRAPPER(true, this.props.axis) || "")
62810
+ }, isSwipeable ? /*#__PURE__*/React.createElement(ReactSwipe, _extends({
62811
+ tagName: "ul",
62812
+ innerRef: this.setListRef
62813
+ }, swiperProps, {
62814
+ allowMouseEvents: this.props.emulateTouch
62815
+ }), this.props.infiniteLoop && lastClone, this.renderItems(), this.props.infiniteLoop && firstClone) : /*#__PURE__*/React.createElement("ul", {
62816
+ ref: function ref(node) {
62817
+ return _this5.setListRef(node);
62818
+ },
62819
+ style: this.state.itemListStyle || {},
62820
+ className: "jsx-535322850" + " " + (klass.SLIDER(true, this.state.swiping) || "")
62821
+ }, this.props.infiniteLoop && lastClone, this.renderItems(), this.props.infiniteLoop && firstClone)), this.props.renderArrowNext(this.onClickNext, hasNext, this.props.labels.rightArrow), this.renderStatus()), this.renderThumbs(), /*#__PURE__*/React.createElement(_JSXStyle, {
62822
+ id: "535322850"
62823
+ }, ".carousel-root.jsx-535322850{outline:none;}.slider.jsx-535322850{margin:0 !important;padding:0;position:relative;list-style:none;width:100%;}.slider.jsx-535322850 .animated.jsx-535322850{-webkit-transition:all 0.35s ease-in-out;transition:all 0.35s ease-in-out;}.carousel.jsx-535322850{position:relative;width:100%;}.carousel.jsx-535322850 img.jsx-535322850{width:100%;display:inline-block;pointer-events:none;}.carousel.jsx-535322850 .carousel.jsx-535322850{position:relative;}.carousel-slider.jsx-535322850{position:relative;margin:0;overflow:hidden;}.slider-wrapper.jsx-535322850{overflow:hidden;margin:auto;width:100%;-webkit-transition:height 0.15s ease-in;transition:height 0.15s ease-in;}"));
62824
+ }
62825
+ }]);
62826
+ }(React.Component);
62827
+ // @ts-ignore
62828
+ _defineProperty$1(Carousel, "displayName", 'Carousel');
62829
+ _defineProperty$1(Carousel, "defaultProps", {
62830
+ ariaLabel: undefined,
62831
+ axis: 'horizontal',
62832
+ centerSlidePercentage: 80,
62833
+ interval: 3000,
62834
+ labels: {
62835
+ leftArrow: 'previous slide / item',
62836
+ rightArrow: 'next slide / item',
62837
+ item: 'slide item'
62838
+ },
62839
+ onClickItem: noop,
62840
+ onClickThumb: noop,
62841
+ onChange: noop,
62842
+ onSwipeStart: function onSwipeStart() {},
62843
+ onSwipeEnd: function onSwipeEnd() {},
62844
+ onSwipeMove: function onSwipeMove() {
62845
+ return false;
62846
+ },
62847
+ preventMovementUntilSwipeScrollTolerance: false,
62848
+ renderArrowPrev: function renderArrowPrev(onClickHandler, hasPrev, label) {
62849
+ return /*#__PURE__*/React.createElement(Arrow, {
62850
+ direction: "prev",
62851
+ onClickHandler: onClickHandler,
62852
+ enabled: hasPrev,
62853
+ label: label
62854
+ });
62855
+ },
62856
+ renderArrowNext: function renderArrowNext(onClickHandler, hasNext, label) {
62857
+ return /*#__PURE__*/React.createElement(Arrow, {
62858
+ direction: "next",
62859
+ onClickHandler: onClickHandler,
62860
+ enabled: hasNext,
62861
+ label: label
62862
+ });
62863
+ },
62864
+ renderIndicator: function renderIndicator(onClickHandler, isSelected, index, label) {
62865
+ return /*#__PURE__*/React.createElement(Indicator, {
62866
+ onClickHandler: onClickHandler,
62867
+ isSelected: isSelected,
62868
+ index: index,
62869
+ label: label
62870
+ });
62871
+ },
62872
+ renderItem: function renderItem(item) {
62873
+ return item;
62874
+ },
62875
+ renderThumbs: function renderThumbs(children) {
62876
+ var images = React.Children.map(children, function (item) {
62877
+ var img = item;
62878
+
62879
+ // if the item is not an image, try to find the first image in the item's children.
62880
+ if (item.type !== 'img') {
62881
+ img = React.Children.toArray(item.props.children).find(function (children) {
62882
+ return children.type === 'img';
62883
+ });
62884
+ }
62885
+ if (!img) {
62886
+ return undefined;
62887
+ }
62888
+ return img;
62889
+ });
62890
+ if (images.filter(function (image) {
62891
+ return image;
62892
+ }).length === 0) {
62893
+ console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md");
62894
+ return [];
62895
+ }
62896
+ return images;
62897
+ },
62898
+ statusFormatter: defaultStatusFormatter,
62899
+ selectedItem: 0,
62900
+ showArrows: true,
62901
+ showIndicators: true,
62902
+ showStatus: true,
62903
+ showThumbs: true,
62904
+ stopOnHover: true,
62905
+ swipeScrollTolerance: 5,
62906
+ swipeable: true,
62907
+ transitionTime: 350,
62908
+ verticalSwipe: 'standard',
62909
+ width: '100%',
62910
+ animationHandler: 'slide',
62911
+ swipeAnimationHandler: slideSwipeAnimationHandler,
62912
+ stopSwipingHandler: slideStopSwipingHandler
62913
+ });
62914
+
60320
62915
  exports.AutoComplete = AutoComplete;
60321
62916
  exports.Avatar = Avatar;
60322
62917
  exports.Badge = Badge;
@@ -60326,6 +62921,7 @@ exports.ButtonDropdown = ButtonDropdown;
60326
62921
  exports.ButtonGroup = ButtonGroup;
60327
62922
  exports.Capacity = Capacity;
60328
62923
  exports.Card = Card;
62924
+ exports.Carousel = Carousel;
60329
62925
  exports.Checkbox = Checkbox;
60330
62926
  exports.CircularProgress = CircularProgressbarWithChildren;
60331
62927
  exports.CircularProgressBar = CircularProgressbar;
@@ -60384,6 +62980,7 @@ exports.Slider = Slider;
60384
62980
  exports.Snippet = Snippet;
60385
62981
  exports.Spacer = Spacer;
60386
62982
  exports.Spinner = Spinner;
62983
+ exports.Swipe = ReactSwipe;
60387
62984
  exports.Table = Table;
60388
62985
  exports.Tabs = Tabs;
60389
62986
  exports.Tag = Tag;