@7shifts/sous-chef 3.76.0-beta.6 → 3.76.0-beta.8

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.
@@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
6
6
  import 'react-toastify/dist/ReactToastify.css';
7
7
  import { debounce } from 'lodash-es';
8
8
  import parseTime from 'time-autocomplete/src/core/AMPMParser';
9
- import { Link as Link$1 } from 'react-router-dom';
9
+ import { Link as Link$1, NavLink } from 'react-router-dom';
10
10
  import ReactModal from 'react-modal';
11
11
  import { DayPicker } from 'react-day-picker';
12
12
  import dateFnsFormat from 'date-fns/format';
@@ -8293,268 +8293,11 @@ var styles$U = {"page-layout":"_Scw7-","page-layout__nav-container":"_v--DF","pa
8293
8293
 
8294
8294
  var styles$T = {"menu-item":"_SebbU","menu-item--active":"_CDEVl"};
8295
8295
 
8296
- const MenuItem = ({
8297
- menu
8298
- }) => {
8299
- if (menu.reloadDocument) {
8300
- return React__default.createElement("li", {
8301
- className: classnames(styles$T['menu-item'])
8302
- }, React__default.createElement("a", {
8303
- href: menu.to,
8304
- className: classnames({
8305
- [styles$T['menu-item--active']]: menu.isActive
8306
- })
8307
- }, menu.label));
8308
- }
8309
- return React__default.createElement("li", {
8310
- className: classnames(styles$T['menu-item'])
8311
- }, React__default.createElement(Link$1, {
8312
- to: menu.to,
8313
- // @ts-ignore
8314
- activeClassName: styles$T['menu-item--active'],
8315
- exact: true
8316
- }, menu.label));
8317
- };
8318
-
8319
- const PageLayout = ({
8320
- title,
8321
- children,
8322
- menu,
8323
- sideNavContent
8324
- }) => {
8325
- return React__default.createElement("div", {
8326
- className: styles$U['page-layout']
8327
- }, React__default.createElement("div", {
8328
- className: styles$U['page-layout__nav-container']
8329
- }, React__default.createElement(Stack, {
8330
- space: 12
8331
- }, React__default.createElement(Text, {
8332
- as: "h5",
8333
- textWrap: "wrap"
8334
- }, title), React__default.createElement("ul", {
8335
- className: styles$U['page-layout__nav-list']
8336
- }, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
8337
- key: index,
8338
- menu: menuItem
8339
- }))), sideNavContent && React__default.createElement("div", {
8340
- className: styles$U['page-layout__side-nav-content']
8341
- }, sideNavContent))), React__default.createElement("div", {
8342
- className: styles$U['page-layout__content']
8343
- }, children));
8344
- };
8345
-
8346
- const PERSISTENT_BANNER_THEME = {
8347
- UPSELL: 'upsell',
8348
- INFO: 'info',
8349
- DANGER: 'danger'
8350
- };
8351
-
8352
- var styles$S = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR"};
8353
-
8354
- const PersistentBanner = ({
8355
- theme: _theme = PERSISTENT_BANNER_THEME.INFO,
8356
- children,
8357
- primaryButton,
8358
- secondaryButton,
8359
- onDismiss,
8360
- onLoad,
8361
- testId
8362
- }) => {
8363
- useEffect(() => {
8364
- onLoad == null || onLoad();
8365
- }, []);
8366
- const BannerContent = () => React__default.createElement(Inline, {
8367
- justifyContent: "center",
8368
- alignItems: "center"
8369
- }, children, primaryButton && React__default.cloneElement(primaryButton, _extends({
8370
- theme: BUTTON_THEMES.HOLLOW_CONTRAST
8371
- }, primaryButton.props)), secondaryButton && React__default.cloneElement(secondaryButton, _extends({
8372
- theme: BUTTON_THEMES.LINK_CONTRAST
8373
- }, secondaryButton.props)));
8374
- return React__default.createElement("div", {
8375
- className: classnames(styles$S['persistent-banner'], {
8376
- [styles$S['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
8377
- [styles$S['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
8378
- [styles$S['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL
8379
- }),
8380
- "data-testid": testId
8381
- }, onDismiss ? React__default.createElement(Inline, {
8382
- flex: [1],
8383
- alignItems: "center"
8384
- }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
8385
- theme: "link-contrast",
8386
- onClick: onDismiss
8387
- }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
8388
- };
8389
-
8390
- const getProgressMetric = (progress, maxValue) => {
8391
- const updatedMaxValue = maxValue > 0 ? maxValue : 100;
8392
- let updatedProgress = progress;
8393
- if (updatedProgress > updatedMaxValue) {
8394
- updatedProgress = updatedMaxValue;
8395
- }
8396
- if (updatedProgress < 0) {
8397
- updatedProgress = 0;
8398
- }
8399
- return {
8400
- progress: updatedProgress,
8401
- maxValue: updatedMaxValue
8402
- };
8403
- };
8404
- /**
8405
- * This function calculates the progress bar so it can align in the center of each step
8406
- */
8407
- const getProgressMetricWithSteps = (progress, amountOfSteps) => {
8408
- const maxValue = amountOfSteps * 2;
8409
- let actualProgress = progress;
8410
- if (progress < 0) {
8411
- actualProgress = 0;
8412
- }
8413
- if (progress > 0) {
8414
- const previousProgress = (progress - 1) * 2;
8415
- actualProgress = previousProgress + 1;
8416
- }
8417
- if (actualProgress > maxValue) {
8418
- actualProgress = maxValue;
8419
- }
8420
- return {
8421
- progress: actualProgress,
8422
- maxValue
8423
- };
8424
- };
8425
-
8426
- const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
8427
- const metric = getMetric(progress, maxValue);
8428
- const percentage = metric.progress / metric.maxValue * 100;
8429
- const elementProps = {
8430
- 'aria-valuemax': metric.maxValue,
8431
- 'aria-valuemin': 0,
8432
- 'aria-valuenow': metric.progress,
8433
- role: 'progressbar'
8434
- };
8435
- return {
8436
- elementProps,
8437
- metric: _extends({}, metric, {
8438
- percentage
8439
- })
8440
- };
8441
- };
8442
-
8443
- var styles$R = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
8444
-
8445
- const CircularProgress = ({
8446
- progress,
8447
- maxValue: _maxValue = 100,
8448
- children,
8449
- testId
8450
- }) => {
8451
- const {
8452
- elementProps,
8453
- metric
8454
- } = useProgress(progress, _maxValue);
8455
- const determinant = metric.percentage * 2.79;
8456
- return React__default.createElement("div", _extends({}, elementProps, {
8457
- className: styles$R['circular-progress'],
8458
- "data-testid": testId
8459
- }), React__default.createElement("svg", {
8460
- viewBox: "0 0 100 100"
8461
- }, React__default.createElement("circle", {
8462
- cx: 50,
8463
- cy: 50,
8464
- r: 45,
8465
- strokeWidth: "10px",
8466
- className: styles$R['circular-progress__track']
8467
- }), React__default.createElement("circle", {
8468
- cx: 50,
8469
- cy: 50,
8470
- r: 45,
8471
- strokeWidth: "10px",
8472
- className: styles$R['circular-progress__indicator'],
8473
- strokeDashoffset: "66",
8474
- strokeDasharray: `${determinant} ${279 - determinant}`
8475
- })), React__default.createElement("div", {
8476
- className: styles$R['circular-progress__label']
8477
- }, children || `${metric.progress}/${metric.maxValue}`));
8478
- };
8479
-
8480
- var styles$Q = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
8481
-
8482
- const ProgressBar = ({
8483
- progress,
8484
- maxValue,
8485
- testId,
8486
- steps
8487
- }) => {
8488
- const isUsingStepsAsMaxValue = !maxValue && steps && steps.length > 0;
8489
- const inferedMaxValue = !maxValue && steps && steps.length > 0 ? steps.length : maxValue;
8490
- const {
8491
- elementProps,
8492
- metric
8493
- } = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
8494
- return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
8495
- className: styles$Q['progress-bar'],
8496
- "data-testid": testId
8497
- }), React__default.createElement("div", {
8498
- className: styles$Q['progress-bar__indicator'],
8499
- style: {
8500
- width: `${metric.percentage}%`
8501
- }
8502
- })), steps && steps.length > 0 && React__default.createElement("div", {
8503
- className: styles$Q['progress-bar__steps']
8504
- }, steps.map(step => React__default.createElement(Text, {
8505
- key: step
8506
- }, step))));
8507
- };
8508
-
8509
- var styles$P = {"skeleton":"_oDnLM","pulse":"_McmEv","skeleton__button":"_jPXx6","skeleton__pill":"_sPHSZ","skeleton__avatar":"_3vEYT","skeleton__avatar--small":"_zneq9","skeleton__avatar--medium":"_TtfoO","skeleton__avatar--large":"_jhOqR","skeleton__avatar--xlarge":"_VgGfx"};
8510
-
8511
- const SKELETON_COMPONENT = {
8512
- AVATAR: 'avatar',
8513
- AVATAR_SMALL: 'avatar--small',
8514
- AVATAR_MEDIUM: 'avatar--medium',
8515
- AVATAR_LARGE: 'avatar--large',
8516
- AVATAR_XLARGE: 'avatar--xlarge',
8517
- BUTTON: 'button',
8518
- PILL: 'pill'
8519
- };
8520
-
8521
- const _excluded$j = ["as", "testId", "width", "height"];
8522
- const Skeleton = _ref => {
8523
- let {
8524
- as,
8525
- testId,
8526
- width,
8527
- height
8528
- } = _ref,
8529
- positionStyles = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8530
- const positioning = usePositionStyles(positionStyles);
8531
- return React__default.createElement("div", {
8532
- "data-testid": testId,
8533
- className: classnames(styles$P['skeleton'], {
8534
- [styles$P['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
8535
- [styles$P['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
8536
- [styles$P['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
8537
- [styles$P['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
8538
- [styles$P['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
8539
- [styles$P['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
8540
- [styles$P['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
8541
- }),
8542
- style: _extends({}, positioning, {
8543
- width: width,
8544
- height: height
8545
- })
8546
- });
8547
- };
8548
-
8549
- var styles$O = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
8550
-
8551
- var styles$N = {"actions":"_ffXgN"};
8296
+ var styles$S = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
8552
8297
 
8553
- var styles$M = {"data-table-cell":"_cp8xi","data-table-cell--no-padding":"_gqbNb","data-table-cell--vertical-border":"_uHjkg","data-table-cell--invalid":"_ASOQd","data-table-cell__content":"_HjPNI","data-table-cell__content--right-align":"_BCVO6","data-table-cell__content--with-error":"_NqtPS","data-table-cell__content--loading":"_-rWoZ","data-table-cell__error-icon":"_txhua","data-table-cell__error-icon--right-align":"_fPzqj","data-table-cell__error-icon--left-align":"_L2-l-"};
8298
+ var styles$R = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B"};
8554
8299
 
8555
- var styles$L = {"overlay":"_0yTe8","overlay--after-open":"_yJBtA","overlay--before-close":"_iWogn","content":"_ntozd","content--after-open":"_EQjDq","content--before-close":"_ZTY3B"};
8556
-
8557
- var styles$K = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
8300
+ var styles$Q = {"header":"_tgpG9","header__close-button":"_b1dgU","sub-header":"_c2nm4"};
8558
8301
 
8559
8302
  const ModalHeader = ({
8560
8303
  header,
@@ -8564,7 +8307,7 @@ const ModalHeader = ({
8564
8307
  }) => {
8565
8308
  if (!header && !subHeader) {
8566
8309
  return onClose ? React__default.createElement("div", {
8567
- className: styles$K['header__close-button']
8310
+ className: styles$Q['header__close-button']
8568
8311
  }, React__default.createElement(Button, {
8569
8312
  theme: "link-icon",
8570
8313
  onClick: onClose,
@@ -8580,17 +8323,17 @@ const ModalHeader = ({
8580
8323
  flex: [1],
8581
8324
  alignItems: "center"
8582
8325
  }, React__default.createElement("span", {
8583
- className: styles$K['header']
8326
+ className: styles$Q['header']
8584
8327
  }, header), onClose && React__default.createElement(Button, {
8585
8328
  theme: "link-icon",
8586
8329
  onClick: onClose,
8587
8330
  disabled: loading
8588
8331
  }, React__default.createElement(IconTimes, null))), subHeader && React__default.createElement("div", {
8589
- className: styles$K['sub-header']
8332
+ className: styles$Q['sub-header']
8590
8333
  }, subHeader));
8591
8334
  };
8592
8335
 
8593
- const _excluded$i = ["children", "header", "subHeader", "onClose", "loading", "zIndex", "rootElementId", "width", "height", "maxWidth", "shouldReturnFocusAfterClose", "testId"];
8336
+ const _excluded$j = ["children", "header", "subHeader", "onClose", "loading", "zIndex", "rootElementId", "width", "height", "maxWidth", "shouldReturnFocusAfterClose", "testId"];
8594
8337
  const Modal = _ref => {
8595
8338
  let {
8596
8339
  children,
@@ -8607,7 +8350,7 @@ const Modal = _ref => {
8607
8350
  shouldReturnFocusAfterClose = true,
8608
8351
  testId
8609
8352
  } = _ref,
8610
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8353
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$j);
8611
8354
  const style = {
8612
8355
  content: {
8613
8356
  width,
@@ -8636,14 +8379,14 @@ const Modal = _ref => {
8636
8379
  contentLabel: "Modal",
8637
8380
  appElement: rootElementId && document.getElementById(rootElementId) || undefined,
8638
8381
  overlayClassName: {
8639
- base: styles$L['overlay'],
8640
- afterOpen: styles$L['overlay--after-open'],
8641
- beforeClose: styles$L['overlay--before-close']
8382
+ base: styles$R['overlay'],
8383
+ afterOpen: styles$R['overlay--after-open'],
8384
+ beforeClose: styles$R['overlay--before-close']
8642
8385
  },
8643
8386
  className: {
8644
- base: styles$L['content'],
8645
- afterOpen: styles$L['content--after-open'],
8646
- beforeClose: styles$L['content--before-close']
8387
+ base: styles$R['content'],
8388
+ afterOpen: styles$R['content--after-open'],
8389
+ beforeClose: styles$R['content--before-close']
8647
8390
  },
8648
8391
  data: dataProps
8649
8392
  }, React__default.createElement(ModalHeader, {
@@ -8685,7 +8428,7 @@ const useScrollShadow = () => {
8685
8428
  };
8686
8429
  };
8687
8430
 
8688
- var styles$J = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
8431
+ var styles$P = {"modal-body":"_4YK4k","modal-body--with-scroll-shadow":"_wo1vv","modal-body__inner-div":"_9u6xC"};
8689
8432
 
8690
8433
  const ModalBody = ({
8691
8434
  children,
@@ -8696,17 +8439,17 @@ const ModalBody = ({
8696
8439
  showScrollShadow
8697
8440
  } = useScrollShadow();
8698
8441
  return React__default.createElement("div", {
8699
- className: classnames(styles$J['modal-body'], {
8700
- [styles$J['modal-body--with-scroll-shadow']]: showScrollShadow
8442
+ className: classnames(styles$P['modal-body'], {
8443
+ [styles$P['modal-body--with-scroll-shadow']]: showScrollShadow
8701
8444
  }),
8702
8445
  ref: ref,
8703
8446
  "data-testid": testId
8704
8447
  }, React__default.createElement("div", {
8705
- className: styles$J['modal-body__inner-div']
8448
+ className: styles$P['modal-body__inner-div']
8706
8449
  }, children));
8707
8450
  };
8708
8451
 
8709
- var styles$I = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
8452
+ var styles$O = {"modal-footer":"_bezlP","tertiary-container":"_EdqHx"};
8710
8453
 
8711
8454
  const updateButtonProps$1 = (button, newProps) => {
8712
8455
  if (!button) {
@@ -8743,7 +8486,7 @@ const ModalFooter = ({
8743
8486
  justifyContent: "space-between"
8744
8487
  }, React__default.createElement("div", {
8745
8488
  className: classnames({
8746
- [styles$I['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
8489
+ [styles$O['tertiary-container']]: tertiaryButton && tertiaryButton.props.theme.startsWith('link')
8747
8490
  })
8748
8491
  }, tertiaryButton || React__default.createElement("div", null)), React__default.createElement(Inline, {
8749
8492
  space: 12
@@ -8761,7 +8504,7 @@ const FooterContainer = ({
8761
8504
  displayName: 'Inline'
8762
8505
  });
8763
8506
  return React__default.createElement("div", {
8764
- className: styles$I['modal-footer'],
8507
+ className: styles$O['modal-footer'],
8765
8508
  "data-testid": testId
8766
8509
  }, React__default.createElement(Inline, {
8767
8510
  justifyContent: "end",
@@ -8774,7 +8517,7 @@ var dayOverridesStyles = {"root":"_et9Fs","table":"_l7Mis","caption":"_XGu8K","h
8774
8517
 
8775
8518
  var weekOverridesStyles = {"root":"_QLSA6","table":"_96jgF","caption":"_4ySMr","head_cell":"_2AoB4","day_today":"_Snv-V","day_outside":"_Zf-6C","nav_button":"_iOY4h","day_range_middle":"_e0lOH","day_range_start":"_4N7l-","day_range_end":"_fMjHG","row":"_GqE-5"};
8776
8519
 
8777
- var styles$H = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
8520
+ var styles$N = {"calendar":"_YPyZ6","calendar__overlay":"_-cw0A"};
8778
8521
 
8779
8522
  function parseDate(str, format, locale) {
8780
8523
  const parsed = dateFnsParse(str, format, new Date(), {
@@ -9009,9 +8752,9 @@ const Calendar = ({
9009
8752
  }
9010
8753
  };
9011
8754
  return React__default.createElement(Portal, null, React__default.createElement("div", {
9012
- className: styles$H['calendar']
8755
+ className: styles$N['calendar']
9013
8756
  }, React__default.createElement("div", {
9014
- className: styles$H['calendar__overlay'],
8757
+ className: styles$N['calendar__overlay'],
9015
8758
  ref: ref => setCalendarRef(ref),
9016
8759
  style: _extends({}, calendarPosition, {
9017
8760
  zIndex: isInsideDropdown ? getZIndex('dropdown-level-2') : getZIndex('dropdown')
@@ -9069,9 +8812,9 @@ const useCheckBoxFieldControllers = ({
9069
8812
  return controllers;
9070
8813
  };
9071
8814
 
9072
- var styles$G = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
8815
+ var styles$M = {"check-box-field":"_Id4qm","check-box-field__caption":"_s9d-m","check-box-field__custom-input":"_kmvBP"};
9073
8816
 
9074
- const _excluded$h = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
8817
+ const _excluded$i = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
9075
8818
  /** CheckboxField form element. */
9076
8819
  const CheckboxField = _ref => {
9077
8820
  let {
@@ -9086,7 +8829,7 @@ const CheckboxField = _ref => {
9086
8829
  disabled,
9087
8830
  testId
9088
8831
  } = _ref,
9089
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8832
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
9090
8833
  const controllers = useCheckBoxFieldControllers({
9091
8834
  name,
9092
8835
  id: inputId,
@@ -9104,7 +8847,7 @@ const CheckboxField = _ref => {
9104
8847
  flexItems: true,
9105
8848
  flex: ['0 0 auto']
9106
8849
  }, otherProps), React__default.createElement("div", {
9107
- className: styles$G['check-box-field']
8850
+ className: styles$M['check-box-field']
9108
8851
  }, React__default.createElement("input", {
9109
8852
  name: name,
9110
8853
  id: controllers.id,
@@ -9117,12 +8860,12 @@ const CheckboxField = _ref => {
9117
8860
  onChange: controllers.onChange,
9118
8861
  onBlur: controllers.onBlur
9119
8862
  }), React__default.createElement("span", {
9120
- className: styles$G['check-box-field__custom-input']
8863
+ className: styles$M['check-box-field__custom-input']
9121
8864
  })), label && React__default.createElement(Label, {
9122
8865
  htmlFor: controllers.id,
9123
8866
  truncate: false
9124
8867
  }, label)), caption && React__default.createElement("div", {
9125
- className: styles$G['check-box-field__caption']
8868
+ className: styles$M['check-box-field__caption']
9126
8869
  }, React__default.createElement(Caption, {
9127
8870
  fieldId: controllers.id
9128
8871
  }, caption)), controllers.error && React__default.createElement(ErrorMessage, {
@@ -9160,9 +8903,9 @@ const useLocalStorage = (key, initialValue) => {
9160
8903
  return [storedValue, setValue];
9161
8904
  };
9162
8905
 
9163
- var styles$F = {"hint-modal":"_NwD6V","hint-modal--after-open":"_4ofZb","hint-modal--before-close":"_hGoMD","hint-modal__overlay":"_iK5zl","hint-modal__image":"_V9hLa","hint-modal__body":"_oOqUg","hint-modal__close-button":"_5zcBK"};
8906
+ var styles$L = {"hint-modal":"_NwD6V","hint-modal--after-open":"_4ofZb","hint-modal--before-close":"_hGoMD","hint-modal__overlay":"_iK5zl","hint-modal__image":"_V9hLa","hint-modal__body":"_oOqUg","hint-modal__close-button":"_5zcBK"};
9164
8907
 
9165
- const _excluded$g = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId"];
8908
+ const _excluded$h = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId"];
9166
8909
  const HintModal = _ref => {
9167
8910
  let {
9168
8911
  header,
@@ -9174,7 +8917,7 @@ const HintModal = _ref => {
9174
8917
  secondaryButton,
9175
8918
  testId
9176
8919
  } = _ref,
9177
- positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8920
+ positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$h);
9178
8921
  const __ = useTranslation('HintModal');
9179
8922
  const [doNotShowAgain, setDoNotShowAgain] = useState(false);
9180
8923
  const [persistedDoNotShow, setPersistedDoNotShow] = useLocalStorage(modalId, false);
@@ -9216,22 +8959,22 @@ const HintModal = _ref => {
9216
8959
  closeTimeoutMS: 200,
9217
8960
  contentLabel: "Modal",
9218
8961
  className: {
9219
- base: styles$F['hint-modal'],
9220
- afterOpen: styles$F['hint-modal--after-open'],
9221
- beforeClose: styles$F['hint-modal--before-close']
8962
+ base: styles$L['hint-modal'],
8963
+ afterOpen: styles$L['hint-modal--after-open'],
8964
+ beforeClose: styles$L['hint-modal--before-close']
9222
8965
  },
9223
- overlayClassName: styles$F['hint-modal__overlay']
8966
+ overlayClassName: styles$L['hint-modal__overlay']
9224
8967
  }, React__default.createElement("div", {
9225
- className: styles$F['hint-modal__close-button']
8968
+ className: styles$L['hint-modal__close-button']
9226
8969
  }, React__default.createElement(Button, {
9227
8970
  theme: "link-icon",
9228
8971
  onClick: handleOnClose
9229
8972
  }, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
9230
- className: styles$F['hint-modal__image'],
8973
+ className: styles$L['hint-modal__image'],
9231
8974
  src: mediaUrl,
9232
8975
  alt: String(header)
9233
8976
  }), React__default.createElement("div", {
9234
- className: styles$F['hint-modal__body']
8977
+ className: styles$L['hint-modal__body']
9235
8978
  }, React__default.createElement(Stack, {
9236
8979
  justifyContent: "space-between"
9237
8980
  }, React__default.createElement(Stack, {
@@ -9252,6 +8995,293 @@ const HintModal = _ref => {
9252
8995
  }, secondaryButtonUpdated, primaryButtonUpdated)))));
9253
8996
  };
9254
8997
 
8998
+ const _excluded$g = ["children", "theme", "title", "testId"];
8999
+ const BadgeElement = (_ref, forwardedRef) => {
9000
+ let {
9001
+ children,
9002
+ theme,
9003
+ title,
9004
+ testId
9005
+ } = _ref,
9006
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9007
+ const internalRef = useRef(null);
9008
+ const ref = forwardedRef || internalRef;
9009
+ useLayoutEffect(() => {
9010
+ if (typeof ref !== 'function' && ref.current && React__default.isValidElement(children) && typeof (children == null ? void 0 : children.type) !== 'string' && typeof (children == null ? void 0 : children.type) !== 'number') {
9011
+ ref.current.style.height = ref.current.offsetWidth + 'px';
9012
+ }
9013
+ });
9014
+ return React__default.createElement(Tooltip, {
9015
+ overlay: title,
9016
+ ref: ref
9017
+ }, React__default.createElement("div", _extends({
9018
+ className: classnames(styles$S['badge'], {
9019
+ [styles$S['badge--success']]: theme === 'success',
9020
+ [styles$S['badge--danger']]: theme === 'danger',
9021
+ [styles$S['badge--info']]: theme === 'info',
9022
+ [styles$S['badge--warning']]: theme === 'warning',
9023
+ [styles$S['badge--numeric']]: Number.isFinite(children)
9024
+ }),
9025
+ ref: ref,
9026
+ "data-testid": testId
9027
+ }, otherProps), children));
9028
+ };
9029
+ const Badge = forwardRef(BadgeElement);
9030
+
9031
+ const MenuItem = ({
9032
+ menu
9033
+ }) => {
9034
+ return React__default.createElement("li", {
9035
+ className: classnames(styles$T['menu-item'])
9036
+ }, menu.reloadDocument ? React__default.createElement("a", {
9037
+ href: menu.to,
9038
+ className: classnames({
9039
+ [styles$T['menu-item--active']]: menu.isActive
9040
+ })
9041
+ }, menu.label, !!menu.badge && React__default.createElement(Badge, null, menu.badge)) : React__default.createElement(NavLink, {
9042
+ to: menu.to,
9043
+ // @ts-expect-error
9044
+ activeClassName: styles$T['menu-item--active'],
9045
+ exact: true
9046
+ }, menu.label, !!menu.badge && React__default.createElement(Badge, null, menu.badge)));
9047
+ };
9048
+
9049
+ const PageLayout = ({
9050
+ title,
9051
+ children,
9052
+ menu,
9053
+ sideNavContent
9054
+ }) => {
9055
+ return React__default.createElement("div", {
9056
+ className: styles$U['page-layout']
9057
+ }, React__default.createElement("div", {
9058
+ className: styles$U['page-layout__nav-container']
9059
+ }, React__default.createElement(Stack, {
9060
+ space: 12
9061
+ }, React__default.createElement(Text, {
9062
+ as: "h5",
9063
+ textWrap: "wrap"
9064
+ }, title), React__default.createElement("ul", {
9065
+ className: styles$U['page-layout__nav-list']
9066
+ }, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
9067
+ key: index,
9068
+ menu: menuItem
9069
+ }))), sideNavContent && React__default.createElement("div", {
9070
+ className: styles$U['page-layout__side-nav-content']
9071
+ }, sideNavContent))), React__default.createElement("div", {
9072
+ className: styles$U['page-layout__content']
9073
+ }, children));
9074
+ };
9075
+
9076
+ const PERSISTENT_BANNER_THEME = {
9077
+ UPSELL: 'upsell',
9078
+ INFO: 'info',
9079
+ DANGER: 'danger'
9080
+ };
9081
+
9082
+ var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR"};
9083
+
9084
+ const PersistentBanner = ({
9085
+ theme: _theme = PERSISTENT_BANNER_THEME.INFO,
9086
+ children,
9087
+ primaryButton,
9088
+ secondaryButton,
9089
+ onDismiss,
9090
+ onLoad,
9091
+ testId
9092
+ }) => {
9093
+ useEffect(() => {
9094
+ onLoad == null || onLoad();
9095
+ }, []);
9096
+ const BannerContent = () => React__default.createElement(Inline, {
9097
+ justifyContent: "center",
9098
+ alignItems: "center"
9099
+ }, children, primaryButton && React__default.cloneElement(primaryButton, _extends({
9100
+ theme: BUTTON_THEMES.HOLLOW_CONTRAST
9101
+ }, primaryButton.props)), secondaryButton && React__default.cloneElement(secondaryButton, _extends({
9102
+ theme: BUTTON_THEMES.LINK_CONTRAST
9103
+ }, secondaryButton.props)));
9104
+ return React__default.createElement("div", {
9105
+ className: classnames(styles$K['persistent-banner'], {
9106
+ [styles$K['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
9107
+ [styles$K['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
9108
+ [styles$K['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL
9109
+ }),
9110
+ "data-testid": testId
9111
+ }, onDismiss ? React__default.createElement(Inline, {
9112
+ flex: [1],
9113
+ alignItems: "center"
9114
+ }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
9115
+ theme: "link-contrast",
9116
+ onClick: onDismiss
9117
+ }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
9118
+ };
9119
+
9120
+ const getProgressMetric = (progress, maxValue) => {
9121
+ const updatedMaxValue = maxValue > 0 ? maxValue : 100;
9122
+ let updatedProgress = progress;
9123
+ if (updatedProgress > updatedMaxValue) {
9124
+ updatedProgress = updatedMaxValue;
9125
+ }
9126
+ if (updatedProgress < 0) {
9127
+ updatedProgress = 0;
9128
+ }
9129
+ return {
9130
+ progress: updatedProgress,
9131
+ maxValue: updatedMaxValue
9132
+ };
9133
+ };
9134
+ /**
9135
+ * This function calculates the progress bar so it can align in the center of each step
9136
+ */
9137
+ const getProgressMetricWithSteps = (progress, amountOfSteps) => {
9138
+ const maxValue = amountOfSteps * 2;
9139
+ let actualProgress = progress;
9140
+ if (progress < 0) {
9141
+ actualProgress = 0;
9142
+ }
9143
+ if (progress > 0) {
9144
+ const previousProgress = (progress - 1) * 2;
9145
+ actualProgress = previousProgress + 1;
9146
+ }
9147
+ if (actualProgress > maxValue) {
9148
+ actualProgress = maxValue;
9149
+ }
9150
+ return {
9151
+ progress: actualProgress,
9152
+ maxValue
9153
+ };
9154
+ };
9155
+
9156
+ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
9157
+ const metric = getMetric(progress, maxValue);
9158
+ const percentage = metric.progress / metric.maxValue * 100;
9159
+ const elementProps = {
9160
+ 'aria-valuemax': metric.maxValue,
9161
+ 'aria-valuemin': 0,
9162
+ 'aria-valuenow': metric.progress,
9163
+ role: 'progressbar'
9164
+ };
9165
+ return {
9166
+ elementProps,
9167
+ metric: _extends({}, metric, {
9168
+ percentage
9169
+ })
9170
+ };
9171
+ };
9172
+
9173
+ var styles$J = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
9174
+
9175
+ const CircularProgress = ({
9176
+ progress,
9177
+ maxValue: _maxValue = 100,
9178
+ children,
9179
+ testId
9180
+ }) => {
9181
+ const {
9182
+ elementProps,
9183
+ metric
9184
+ } = useProgress(progress, _maxValue);
9185
+ const determinant = metric.percentage * 2.79;
9186
+ return React__default.createElement("div", _extends({}, elementProps, {
9187
+ className: styles$J['circular-progress'],
9188
+ "data-testid": testId
9189
+ }), React__default.createElement("svg", {
9190
+ viewBox: "0 0 100 100"
9191
+ }, React__default.createElement("circle", {
9192
+ cx: 50,
9193
+ cy: 50,
9194
+ r: 45,
9195
+ strokeWidth: "10px",
9196
+ className: styles$J['circular-progress__track']
9197
+ }), React__default.createElement("circle", {
9198
+ cx: 50,
9199
+ cy: 50,
9200
+ r: 45,
9201
+ strokeWidth: "10px",
9202
+ className: styles$J['circular-progress__indicator'],
9203
+ strokeDashoffset: "66",
9204
+ strokeDasharray: `${determinant} ${279 - determinant}`
9205
+ })), React__default.createElement("div", {
9206
+ className: styles$J['circular-progress__label']
9207
+ }, children || `${metric.progress}/${metric.maxValue}`));
9208
+ };
9209
+
9210
+ var styles$I = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
9211
+
9212
+ const ProgressBar = ({
9213
+ progress,
9214
+ maxValue,
9215
+ testId,
9216
+ steps
9217
+ }) => {
9218
+ const isUsingStepsAsMaxValue = !maxValue && steps && steps.length > 0;
9219
+ const inferedMaxValue = !maxValue && steps && steps.length > 0 ? steps.length : maxValue;
9220
+ const {
9221
+ elementProps,
9222
+ metric
9223
+ } = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
9224
+ return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
9225
+ className: styles$I['progress-bar'],
9226
+ "data-testid": testId
9227
+ }), React__default.createElement("div", {
9228
+ className: styles$I['progress-bar__indicator'],
9229
+ style: {
9230
+ width: `${metric.percentage}%`
9231
+ }
9232
+ })), steps && steps.length > 0 && React__default.createElement("div", {
9233
+ className: styles$I['progress-bar__steps']
9234
+ }, steps.map(step => React__default.createElement(Text, {
9235
+ key: step
9236
+ }, step))));
9237
+ };
9238
+
9239
+ var styles$H = {"skeleton":"_oDnLM","pulse":"_McmEv","skeleton__button":"_jPXx6","skeleton__pill":"_sPHSZ","skeleton__avatar":"_3vEYT","skeleton__avatar--small":"_zneq9","skeleton__avatar--medium":"_TtfoO","skeleton__avatar--large":"_jhOqR","skeleton__avatar--xlarge":"_VgGfx"};
9240
+
9241
+ const SKELETON_COMPONENT = {
9242
+ AVATAR: 'avatar',
9243
+ AVATAR_SMALL: 'avatar--small',
9244
+ AVATAR_MEDIUM: 'avatar--medium',
9245
+ AVATAR_LARGE: 'avatar--large',
9246
+ AVATAR_XLARGE: 'avatar--xlarge',
9247
+ BUTTON: 'button',
9248
+ PILL: 'pill'
9249
+ };
9250
+
9251
+ const _excluded$f = ["as", "testId", "width", "height"];
9252
+ const Skeleton = _ref => {
9253
+ let {
9254
+ as,
9255
+ testId,
9256
+ width,
9257
+ height
9258
+ } = _ref,
9259
+ positionStyles = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9260
+ const positioning = usePositionStyles(positionStyles);
9261
+ return React__default.createElement("div", {
9262
+ "data-testid": testId,
9263
+ className: classnames(styles$H['skeleton'], {
9264
+ [styles$H['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
9265
+ [styles$H['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
9266
+ [styles$H['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
9267
+ [styles$H['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
9268
+ [styles$H['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
9269
+ [styles$H['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
9270
+ [styles$H['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
9271
+ }),
9272
+ style: _extends({}, positioning, {
9273
+ width: width,
9274
+ height: height
9275
+ })
9276
+ });
9277
+ };
9278
+
9279
+ var styles$G = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
9280
+
9281
+ var styles$F = {"actions":"_ffXgN"};
9282
+
9283
+ var styles$E = {"data-table-cell":"_cp8xi","data-table-cell--no-padding":"_gqbNb","data-table-cell--vertical-border":"_uHjkg","data-table-cell--invalid":"_ASOQd","data-table-cell__content":"_HjPNI","data-table-cell__content--right-align":"_BCVO6","data-table-cell__content--with-error":"_NqtPS","data-table-cell__content--loading":"_-rWoZ","data-table-cell__error-icon":"_txhua","data-table-cell__error-icon--right-align":"_fPzqj","data-table-cell__error-icon--left-align":"_L2-l-"};
9284
+
9255
9285
  const DataTableCellElement = ({
9256
9286
  children,
9257
9287
  columnIndex,
@@ -9274,9 +9304,9 @@ const DataTableCellElement = ({
9274
9304
  const hasError = !!error;
9275
9305
  const errorMessage = error;
9276
9306
  const icon = hasError && React__default.createElement("div", {
9277
- className: classnames(styles$M['data-table-cell__error-icon'], {
9278
- [styles$M['data-table-cell__error-icon--right-align']]: isRightAligned,
9279
- [styles$M['data-table-cell__error-icon--left-align']]: !isRightAligned
9307
+ className: classnames(styles$E['data-table-cell__error-icon'], {
9308
+ [styles$E['data-table-cell__error-icon--right-align']]: isRightAligned,
9309
+ [styles$E['data-table-cell__error-icon--left-align']]: !isRightAligned
9280
9310
  })
9281
9311
  }, React__default.createElement(IconTimesOctagon, {
9282
9312
  size: "medium",
@@ -9284,17 +9314,17 @@ const DataTableCellElement = ({
9284
9314
  }));
9285
9315
  const TableCell = React__default.createElement("td", {
9286
9316
  className: classnames({
9287
- [styles$M['data-table-cell--invalid']]: hasError,
9288
- [styles$M['data-table-cell--no-padding']]: _noPadding,
9289
- [styles$M['data-table-cell--vertical-border']]: hasVerticalBorders
9290
- }, styles$M['data-table-cell']),
9317
+ [styles$E['data-table-cell--invalid']]: hasError,
9318
+ [styles$E['data-table-cell--no-padding']]: _noPadding,
9319
+ [styles$E['data-table-cell--vertical-border']]: hasVerticalBorders
9320
+ }, styles$E['data-table-cell']),
9291
9321
  colSpan: colSpan,
9292
9322
  ref: ref
9293
9323
  }, React__default.createElement("div", {
9294
- className: classnames(styles$M['data-table-cell__content'], {
9295
- [styles$M['data-table-cell__content--with-error']]: hasError,
9296
- [styles$M['data-table-cell__content--right-align']]: isRightAligned,
9297
- [styles$M['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
9324
+ className: classnames(styles$E['data-table-cell__content'], {
9325
+ [styles$E['data-table-cell__content--with-error']]: hasError,
9326
+ [styles$E['data-table-cell__content--right-align']]: isRightAligned,
9327
+ [styles$E['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
9298
9328
  })
9299
9329
  }, isRightAligned && icon, children, !isRightAligned && icon));
9300
9330
  return React__default.createElement(Tooltip, {
@@ -9318,7 +9348,7 @@ const DataTableRowActions = ({
9318
9348
  return React__default.createElement(DataTableCell, {
9319
9349
  columnIndex: columnIndex
9320
9350
  }, React__default.createElement("div", {
9321
- className: styles$N['actions'],
9351
+ className: styles$F['actions'],
9322
9352
  "data-testid": "data-table-dropdown-menu"
9323
9353
  }, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
9324
9354
  width: 45
@@ -9331,7 +9361,7 @@ const DataTableRowActions = ({
9331
9361
  })));
9332
9362
  };
9333
9363
 
9334
- var styles$E = {"data-table-editable-cell":"_jp9-G","data-table-editable-cell--right-aligned":"_BzPeH","data-table-editable-cell--currency":"_NhNG9","data-table-editable-cell--invalid":"_5HRwe","data-table-editable-cell--top-left":"_P--u2","data-table-editable-cell--top-right":"_EloAX","data-table-editable-cell--bottom-left":"_ZDCR9","data-table-editable-cell--bottom-right":"_Mc9YJ"};
9364
+ var styles$D = {"data-table-editable-cell":"_jp9-G","data-table-editable-cell--right-aligned":"_BzPeH","data-table-editable-cell--currency":"_NhNG9","data-table-editable-cell--invalid":"_5HRwe","data-table-editable-cell--top-left":"_P--u2","data-table-editable-cell--top-right":"_EloAX","data-table-editable-cell--bottom-left":"_ZDCR9","data-table-editable-cell--bottom-right":"_Mc9YJ"};
9335
9365
 
9336
9366
  const DataTableEditableCellElement = ({
9337
9367
  name,
@@ -9379,8 +9409,8 @@ const DataTableEditableCellElement = ({
9379
9409
  };
9380
9410
  const EditableCell = React__default.createElement("div", {
9381
9411
  className: classnames({
9382
- [styles$E['data-table-editable-cell--currency']]: _type === 'currency'
9383
- }, styles$E['data-table-editable-cell']),
9412
+ [styles$D['data-table-editable-cell--currency']]: _type === 'currency'
9413
+ }, styles$D['data-table-editable-cell']),
9384
9414
  "data-testid": testId,
9385
9415
  role: "cell"
9386
9416
  }, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
@@ -9390,12 +9420,12 @@ const DataTableEditableCellElement = ({
9390
9420
  name: name,
9391
9421
  id: controllers.id,
9392
9422
  className: classnames({
9393
- [styles$E['data-table-editable-cell--right-aligned']]: isRightAligned,
9394
- [styles$E['data-table-editable-cell--top-left']]: isTopLeftCell,
9395
- [styles$E['data-table-editable-cell--top-right']]: isTopRightCell,
9396
- [styles$E['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
9397
- [styles$E['data-table-editable-cell--bottom-right']]: isBottomRightCell,
9398
- [styles$E['data-table-editable-cell--invalid']]: hasError
9423
+ [styles$D['data-table-editable-cell--right-aligned']]: isRightAligned,
9424
+ [styles$D['data-table-editable-cell--top-left']]: isTopLeftCell,
9425
+ [styles$D['data-table-editable-cell--top-right']]: isTopRightCell,
9426
+ [styles$D['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
9427
+ [styles$D['data-table-editable-cell--bottom-right']]: isBottomRightCell,
9428
+ [styles$D['data-table-editable-cell--invalid']]: hasError
9399
9429
  }),
9400
9430
  type: _type === 'currency' ? 'number' : 'text',
9401
9431
  step: _type === 'currency' ? 'any' : '',
@@ -9421,7 +9451,7 @@ const DataTableEditableCellElement = ({
9421
9451
  };
9422
9452
  const DataTableEditableCell = forwardRef(DataTableEditableCellElement);
9423
9453
 
9424
- const _excluded$f = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
9454
+ const _excluded$e = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
9425
9455
  const DataTableRowComponent = (_ref, ref) => {
9426
9456
  let {
9427
9457
  children,
@@ -9432,13 +9462,13 @@ const DataTableRowComponent = (_ref, ref) => {
9432
9462
  hasDefaultCell = true,
9433
9463
  testId
9434
9464
  } = _ref,
9435
- nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9465
+ nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
9436
9466
  const {
9437
9467
  showActionMenu
9438
9468
  } = useDataTableContext();
9439
- const styleNames = classnames(styles$O['data-table-row'], {
9440
- [styles$O['data-table-row--clickable']]: onClick,
9441
- [styles$O['data-table-row--selected']]: isSelected
9469
+ const styleNames = classnames(styles$G['data-table-row'], {
9470
+ [styles$G['data-table-row--clickable']]: onClick,
9471
+ [styles$G['data-table-row--selected']]: isSelected
9442
9472
  });
9443
9473
  const renderColumn = (columnElement, index) => {
9444
9474
  const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
@@ -9529,7 +9559,7 @@ const calculateScrollState = scrollContainer => {
9529
9559
  return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
9530
9560
  };
9531
9561
 
9532
- var styles$D = {"data-table-sticky-columns-container":"_j5iVD","data-table-sticky-columns-container--with-left-sticky-columns-and-shadow":"_7dAEd","data-table-sticky-columns-container--no-shadow":"_rR4W3","fadein":"_b1-OB","data-table-sticky-columns-container--with-left-sticky-columns":"_qLE4I","data-table-sticky-columns-container--with-right-sticky-columns-and-shadow":"_B92Ir","data-table-sticky-columns-container--with-right-sticky-columns":"_ONjpl","data-table-sticky-columns-container--with-footer":"_DE3fh"};
9562
+ var styles$C = {"data-table-sticky-columns-container":"_j5iVD","data-table-sticky-columns-container--with-left-sticky-columns-and-shadow":"_7dAEd","data-table-sticky-columns-container--no-shadow":"_rR4W3","fadein":"_b1-OB","data-table-sticky-columns-container--with-left-sticky-columns":"_qLE4I","data-table-sticky-columns-container--with-right-sticky-columns-and-shadow":"_B92Ir","data-table-sticky-columns-container--with-right-sticky-columns":"_ONjpl","data-table-sticky-columns-container--with-footer":"_DE3fh"};
9533
9563
 
9534
9564
  const useDataTableScrollState = stickyColumns => {
9535
9565
  const scrollContainerRef = useRef(null);
@@ -9571,7 +9601,7 @@ const useDataTableScrollState = stickyColumns => {
9571
9601
  };
9572
9602
  };
9573
9603
 
9574
- var styles$C = {"data-table-cover-shadow":"_4XrxW","data-table-cover-shadow--left":"_k704p","data-table-cover-shadow--left-shadow":"_VXlf0","fadeinshadowleft":"_Fr-av","data-table-cover-shadow--right":"_wOust","data-table-cover-shadow--right-shadow":"_b3Rzx","fadeinshadowright":"_KgJaq"};
9604
+ var styles$B = {"data-table-cover-shadow":"_4XrxW","data-table-cover-shadow--left":"_k704p","data-table-cover-shadow--left-shadow":"_VXlf0","fadeinshadowleft":"_Fr-av","data-table-cover-shadow--right":"_wOust","data-table-cover-shadow--right-shadow":"_b3Rzx","fadeinshadowright":"_KgJaq"};
9575
9605
 
9576
9606
  const DataTableCoverShadow = ({
9577
9607
  isShowingColumns,
@@ -9589,11 +9619,11 @@ const DataTableCoverShadow = ({
9589
9619
  return `calc(100% - ${headerHeight})`;
9590
9620
  };
9591
9621
  return React__default.createElement("div", {
9592
- className: classnames(styles$C['data-table-cover-shadow'], {
9593
- [styles$C['data-table-cover-shadow--left']]: direction === 'left',
9594
- [styles$C['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
9595
- [styles$C['data-table-cover-shadow--right']]: direction === 'right',
9596
- [styles$C['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
9622
+ className: classnames(styles$B['data-table-cover-shadow'], {
9623
+ [styles$B['data-table-cover-shadow--left']]: direction === 'left',
9624
+ [styles$B['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
9625
+ [styles$B['data-table-cover-shadow--right']]: direction === 'right',
9626
+ [styles$B['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
9597
9627
  }),
9598
9628
  style: {
9599
9629
  // @ts-expect-error This difines a custom CSS variable
@@ -9655,13 +9685,13 @@ const DataTableStickyColumnsContainer = ({
9655
9685
  isShowingColumns: !!isShowingColumns,
9656
9686
  showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
9657
9687
  })), React__default.createElement("div", {
9658
- className: classnames(styles$D[containerClassName], {
9659
- [styles$D[`${containerClassName}--with-footer`]]: isShowingFooter,
9660
- [styles$D[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
9661
- [styles$D[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
9662
- [styles$D[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
9663
- [styles$D[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
9664
- [styles$D[`${containerClassName}--no-shadow`]]: noShadow
9688
+ className: classnames(styles$C[containerClassName], {
9689
+ [styles$C[`${containerClassName}--with-footer`]]: isShowingFooter,
9690
+ [styles$C[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
9691
+ [styles$C[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
9692
+ [styles$C[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
9693
+ [styles$C[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
9694
+ [styles$C[`${containerClassName}--no-shadow`]]: noShadow
9665
9695
  }),
9666
9696
  onScroll: onScroll,
9667
9697
  ref: scrollContainerRef,
@@ -9669,11 +9699,11 @@ const DataTableStickyColumnsContainer = ({
9669
9699
  }, children));
9670
9700
  };
9671
9701
 
9672
- var styles$B = {"data-table-empty-state":"_fCHjG"};
9702
+ var styles$A = {"data-table-empty-state":"_fCHjG"};
9673
9703
 
9674
- var styles$A = {"empty-state-container-stack":"_4nO7T","empty-state-container-stack__content":"_KiEVo","empty-state-container-stack__content--full-page":"_ib04g","empty-state-container-stack__content--inline-horizontal":"_bSiJj","empty-state-container-stack__body":"_mi-dC"};
9704
+ var styles$z = {"empty-state-container-stack":"_4nO7T","empty-state-container-stack__content":"_KiEVo","empty-state-container-stack__content--full-page":"_ib04g","empty-state-container-stack__content--inline-horizontal":"_bSiJj","empty-state-container-stack__body":"_mi-dC"};
9675
9705
 
9676
- var styles$z = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
9706
+ var styles$y = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
9677
9707
 
9678
9708
  const EmptyStateContainerCTA = ({
9679
9709
  isPaywall,
@@ -9690,8 +9720,8 @@ const EmptyStateContainerCTA = ({
9690
9720
  size: BUTTON_SIZES.MIN_WIDTH_100
9691
9721
  });
9692
9722
  return React__default.createElement("div", {
9693
- className: classnames(styles$z['empty-state-container-cta'], {
9694
- [styles$z['empty-state-container-cta--inside-modal']]: _isInsideModal
9723
+ className: classnames(styles$y['empty-state-container-cta'], {
9724
+ [styles$y['empty-state-container-cta--inside-modal']]: _isInsideModal
9695
9725
  })
9696
9726
  }, primaryButton, secondaryButton);
9697
9727
  };
@@ -9708,7 +9738,7 @@ const EmptyStateContainerStack = ({
9708
9738
  mediaComponent
9709
9739
  }) => {
9710
9740
  return React__default.createElement("div", {
9711
- className: styles$A['empty-state-container-stack'],
9741
+ className: styles$z['empty-state-container-stack'],
9712
9742
  "data-testid": testId
9713
9743
  }, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
9714
9744
  src: mediaUrl,
@@ -9725,7 +9755,7 @@ const EmptyStateContainerStack = ({
9725
9755
  as: "body",
9726
9756
  alignment: "center"
9727
9757
  }, title), React__default.createElement("div", {
9728
- className: styles$A['empty-state-container-stack__body']
9758
+ className: styles$z['empty-state-container-stack__body']
9729
9759
  }, children)), React__default.createElement(Stack, {
9730
9760
  space: 8,
9731
9761
  alignItems: "center"
@@ -9836,7 +9866,7 @@ const DataTableEmptyState = ({
9836
9866
  columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
9837
9867
  colSpan: colSpan
9838
9868
  }, React__default.createElement("div", {
9839
- className: styles$B['data-table-empty-state']
9869
+ className: styles$A['data-table-empty-state']
9840
9870
  }, React__default.createElement(EmptyStateContainerStack, {
9841
9871
  mediaUrl: customImage,
9842
9872
  mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
@@ -9848,7 +9878,7 @@ const DataTableEmptyState = ({
9848
9878
  }, ''));
9849
9879
  };
9850
9880
 
9851
- const _excluded$e = ["items", "columns", "itemComponent", "maxHeight", "hasPrevious", "hasNext", "onPreviousClick", "onNextClick", "onSort", "isLoading", "showActionMenu", "footerComponent", "hasVerticalBorders", "testId", "skeletonRowLayout", "stickyColumns", "emptyState"];
9881
+ const _excluded$d = ["items", "columns", "itemComponent", "maxHeight", "hasPrevious", "hasNext", "onPreviousClick", "onNextClick", "onSort", "isLoading", "showActionMenu", "footerComponent", "hasVerticalBorders", "testId", "skeletonRowLayout", "stickyColumns", "emptyState"];
9852
9882
  const DataTable = _ref => {
9853
9883
  let {
9854
9884
  items,
@@ -9869,7 +9899,7 @@ const DataTable = _ref => {
9869
9899
  stickyColumns,
9870
9900
  emptyState
9871
9901
  } = _ref,
9872
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
9902
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
9873
9903
  const {
9874
9904
  dataProps
9875
9905
  } = getDataProps(otherProps);
@@ -9992,7 +10022,7 @@ const DataTable = _ref => {
9992
10022
  })), React__default.createElement(Pagination, null));
9993
10023
  };
9994
10024
 
9995
- var styles$y = {"accordion-item":"_8980Z","accordion-item__link":"_C-YV6","accordion-item__header":"_vk-N-","accordion-item__icon":"_LSVms","accordion-item__icon--active":"_hLMLR","accordion-item__content":"_KFyFh","accordion-item__content--active":"_kykXP"};
10025
+ var styles$x = {"accordion-item":"_8980Z","accordion-item__link":"_C-YV6","accordion-item__header":"_vk-N-","accordion-item__icon":"_LSVms","accordion-item__icon--active":"_hLMLR","accordion-item__content":"_KFyFh","accordion-item__content--active":"_kykXP"};
9996
10026
 
9997
10027
  const AccordionItem = props => {
9998
10028
  const {
@@ -10007,9 +10037,9 @@ const AccordionItem = props => {
10007
10037
  } = item;
10008
10038
  const isFocusedByClickRef = React__default.useRef(false);
10009
10039
  return React__default.createElement("div", {
10010
- className: styles$y['accordion-item']
10040
+ className: styles$x['accordion-item']
10011
10041
  }, React__default.createElement("button", {
10012
- className: styles$y['accordion-item__header'],
10042
+ className: styles$x['accordion-item__header'],
10013
10043
  onClick: () => {
10014
10044
  if (isOpen) {
10015
10045
  handleAccordionItemOpen(null);
@@ -10037,17 +10067,17 @@ const AccordionItem = props => {
10037
10067
  color: "grey-500",
10038
10068
  emphasis: "bold"
10039
10069
  }, title), React__default.createElement(IconChevronDown, {
10040
- className: styles$y[`accordion-item__icon${isOpen ? '--active' : ''}`],
10070
+ className: styles$x[`accordion-item__icon${isOpen ? '--active' : ''}`],
10041
10071
  color: 'grey-400'
10042
10072
  }))), React__default.createElement("div", {
10043
10073
  "data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
10044
- className: styles$y[`accordion-item__content${isOpen ? '--active' : ''}`]
10074
+ className: styles$x[`accordion-item__content${isOpen ? '--active' : ''}`]
10045
10075
  }, isOpen && React__default.createElement(Text, {
10046
10076
  color: "grey-500"
10047
10077
  }, content)));
10048
10078
  };
10049
10079
 
10050
- var styles$x = {"accordion":"_058SP"};
10080
+ var styles$w = {"accordion":"_058SP"};
10051
10081
 
10052
10082
  const Accordion = props => {
10053
10083
  const {
@@ -10067,7 +10097,7 @@ const Accordion = props => {
10067
10097
  isAccordionMounted: true
10068
10098
  }
10069
10099
  }, React__default.createElement("div", {
10070
- className: styles$x['accordion']
10100
+ className: styles$w['accordion']
10071
10101
  }, items.map((item, index) => {
10072
10102
  const id = item.id || index.toString();
10073
10103
  return React__default.createElement(AccordionItem, {
@@ -10081,7 +10111,7 @@ const Accordion = props => {
10081
10111
  })));
10082
10112
  };
10083
10113
 
10084
- var styles$w = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
10114
+ var styles$v = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
10085
10115
 
10086
10116
  const ActionList = ({
10087
10117
  children,
@@ -10092,15 +10122,15 @@ const ActionList = ({
10092
10122
  }) => {
10093
10123
  const translate = useTranslation('ActionList');
10094
10124
  return React__default.createElement("div", {
10095
- className: styles$w['action-list'],
10125
+ className: styles$v['action-list'],
10096
10126
  "data-testid": testId,
10097
10127
  style: {
10098
10128
  maxHeight: maxHeight
10099
10129
  }
10100
10130
  }, title && React__default.createElement("div", {
10101
- className: styles$w['action-list__title']
10131
+ className: styles$v['action-list__title']
10102
10132
  }, title), children ? children : React__default.createElement("div", {
10103
- className: styles$w['action-list__empty-state']
10133
+ className: styles$v['action-list__empty-state']
10104
10134
  }, React__default.createElement(EmptyStateContainerStack, {
10105
10135
  title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
10106
10136
  mediaUrl: emptyState == null ? void 0 : emptyState.image,
@@ -10261,21 +10291,21 @@ const useSelectFieldControllers = ({
10261
10291
  return controllers;
10262
10292
  };
10263
10293
 
10264
- var styles$v = {"custom-control":"_pXQqq"};
10294
+ var styles$u = {"custom-control":"_pXQqq"};
10265
10295
 
10266
- const _excluded$d = ["children"];
10296
+ const _excluded$c = ["children"];
10267
10297
  function CustomControl(_ref) {
10268
10298
  var _props$getValue;
10269
10299
  let {
10270
10300
  children
10271
10301
  } = _ref,
10272
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
10302
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
10273
10303
  const {
10274
10304
  SelectedOptionPrefix
10275
10305
  } = props.selectProps.componentsProps;
10276
10306
  const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
10277
10307
  return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
10278
- className: styles$v['custom-control'],
10308
+ className: styles$u['custom-control'],
10279
10309
  style: {
10280
10310
  paddingLeft: selectedOption ? 8 : 0
10281
10311
  }
@@ -10288,12 +10318,12 @@ function CustomControl(_ref) {
10288
10318
  }, props)), children)) : children);
10289
10319
  }
10290
10320
 
10291
- const _excluded$c = ["children"];
10321
+ const _excluded$b = ["children"];
10292
10322
  function CustomOption(_ref) {
10293
10323
  let {
10294
10324
  children
10295
10325
  } = _ref,
10296
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
10326
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10297
10327
  const {
10298
10328
  UserCustomOption
10299
10329
  } = props.selectProps.componentsProps;
@@ -10437,14 +10467,14 @@ const CustomContainer = props => {
10437
10467
  }));
10438
10468
  };
10439
10469
 
10440
- var styles$u = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
10470
+ var styles$t = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
10441
10471
 
10442
- const _excluded$b = ["children"];
10472
+ const _excluded$a = ["children"];
10443
10473
  function CustomMenu(_ref) {
10444
10474
  let {
10445
10475
  children
10446
10476
  } = _ref,
10447
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10477
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10448
10478
  const {
10449
10479
  creatableButton,
10450
10480
  onMenuInputFocus,
@@ -10504,15 +10534,15 @@ function CustomMenu(_ref) {
10504
10534
  return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
10505
10535
  ref: containerRef
10506
10536
  }, children, React__default.createElement("hr", {
10507
- className: styles$u['custom-menu-hr']
10537
+ className: styles$t['custom-menu-hr']
10508
10538
  }), !showFooter ? React__default.createElement(CreatableButton, null) : React__default.createElement("div", {
10509
- className: styles$u['custom-menu-div']
10539
+ className: styles$t['custom-menu-div']
10510
10540
  }, React__default.createElement(Flex, {
10511
10541
  space: 4,
10512
10542
  flex: [1],
10513
10543
  flexItems: true
10514
10544
  }, React__default.createElement("input", {
10515
- className: classnames(styles$12['text-field'], styles$u['custom-menu-text-field']),
10545
+ className: classnames(styles$12['text-field'], styles$t['custom-menu-text-field']),
10516
10546
  autoCorrect: "off",
10517
10547
  autoComplete: "off",
10518
10548
  spellCheck: "false",
@@ -10548,7 +10578,7 @@ function CustomMenu(_ref) {
10548
10578
  }, __('createButton'))))));
10549
10579
  }
10550
10580
 
10551
- const _excluded$a = ["asToolbarFilter", "caption", "disabled", "error", "id", "isClearable", "label", "menuShouldScrollIntoView", "name", "noOptionsMessage", "options", "onBlur", "onChange", "placeholder", "value", "defaultValue", "CustomOption", "SelectedOptionPrefix", "testId", "creatableButton", "onCreate", "isSearchable", "autoFocus"];
10581
+ const _excluded$9 = ["asToolbarFilter", "caption", "disabled", "error", "id", "isClearable", "label", "menuShouldScrollIntoView", "name", "noOptionsMessage", "options", "onBlur", "onChange", "placeholder", "value", "defaultValue", "CustomOption", "SelectedOptionPrefix", "testId", "creatableButton", "onCreate", "isSearchable", "autoFocus"];
10552
10582
  const useSelectField = _ref => {
10553
10583
  let {
10554
10584
  asToolbarFilter = false,
@@ -10575,7 +10605,7 @@ const useSelectField = _ref => {
10575
10605
  isSearchable = true,
10576
10606
  autoFocus
10577
10607
  } = _ref,
10578
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10608
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
10579
10609
  const [isMenuInputFocus, setIsMenuInputFocus] = useState(false);
10580
10610
  const onMenuInputFocus = isFocused => setIsMenuInputFocus(isFocused);
10581
10611
  const controllers = useSelectFieldControllers({
@@ -10647,7 +10677,7 @@ const useSelectField = _ref => {
10647
10677
  };
10648
10678
  };
10649
10679
 
10650
- var styles$t = {"select-field__suffix":"_vqC1M"};
10680
+ var styles$s = {"select-field__suffix":"_vqC1M"};
10651
10681
 
10652
10682
  /** Component to make possible choose from a predefined options. */
10653
10683
  const SelectField = props => {
@@ -10657,7 +10687,7 @@ const SelectField = props => {
10657
10687
  } = useSelectField(props);
10658
10688
  //Select field has the chevron icon as suffix, so we need to add a margin to the suffix to avoid overlapping with the chevron icon
10659
10689
  const suffixWithMargin = props.suffix ? React__default.createElement("div", {
10660
- className: styles$t['select-field__suffix']
10690
+ className: styles$s['select-field__suffix']
10661
10691
  }, props.suffix) : undefined;
10662
10692
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
10663
10693
  prefix: props.prefix,
@@ -10699,9 +10729,9 @@ const ToolbarSelect = ({
10699
10729
  });
10700
10730
  };
10701
10731
 
10702
- var styles$s = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
10732
+ var styles$r = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
10703
10733
 
10704
- var styles$r = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
10734
+ var styles$q = {"date-filter-display":"_N37zE","date-filter-display--non-interactive":"_42Bvz","date-filter-display--wide":"_h8n2w","date-filter-display__display-icon":"_i08yV"};
10705
10735
 
10706
10736
  const DATE_FILTER_MODE = {
10707
10737
  DAY: 'day',
@@ -10755,9 +10785,9 @@ const DateFilterDisplay = forwardRef(({
10755
10785
  onClick
10756
10786
  }, ref) => {
10757
10787
  return React__default.createElement("button", {
10758
- className: classnames(styles$r['date-filter-display'], {
10759
- [styles$r['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK,
10760
- [styles$r['date-filter-display--non-interactive']]: mode === DATE_FILTER_MODE.MONTH
10788
+ className: classnames(styles$q['date-filter-display'], {
10789
+ [styles$q['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK,
10790
+ [styles$q['date-filter-display--non-interactive']]: mode === DATE_FILTER_MODE.MONTH
10761
10791
  }),
10762
10792
  onClick: onClick,
10763
10793
  tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
@@ -10766,7 +10796,7 @@ const DateFilterDisplay = forwardRef(({
10766
10796
  space: 12,
10767
10797
  alignItems: "center"
10768
10798
  }, React__default.createElement("div", {
10769
- className: classnames(styles$r['date-filter-display__display-icon'])
10799
+ className: classnames(styles$q['date-filter-display__display-icon'])
10770
10800
  }, React__default.createElement(IconCalendarAlt, {
10771
10801
  size: "flexible",
10772
10802
  color: "grey-400"
@@ -10777,7 +10807,7 @@ const DateFilterDisplay = forwardRef(({
10777
10807
  })));
10778
10808
  });
10779
10809
 
10780
- var styles$q = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
10810
+ var styles$p = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
10781
10811
 
10782
10812
  const handleDateStepper = (date, mode, stepDirection, onChange) => {
10783
10813
  const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
@@ -10806,9 +10836,9 @@ const DateFilterStepper = ({
10806
10836
  date
10807
10837
  }) => {
10808
10838
  return React__default.createElement("button", {
10809
- className: classnames(styles$q['date-stepper'], {
10810
- [styles$q['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
10811
- [styles$q['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
10839
+ className: classnames(styles$p['date-stepper'], {
10840
+ [styles$p['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
10841
+ [styles$p['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
10812
10842
  }),
10813
10843
  onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
10814
10844
  }, children);
@@ -10830,8 +10860,8 @@ const DateFilter = ({
10830
10860
  const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
10831
10861
  return React__default.createElement("div", {
10832
10862
  "data-testid": testId,
10833
- className: classnames(styles$s['date-filter'], {
10834
- [styles$s['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
10863
+ className: classnames(styles$r['date-filter'], {
10864
+ [styles$r['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
10835
10865
  })
10836
10866
  }, React__default.createElement(Inline, {
10837
10867
  space: 0
@@ -10868,7 +10898,7 @@ const DateFilter = ({
10868
10898
  }));
10869
10899
  };
10870
10900
 
10871
- var styles$p = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb","segmented-control__divider":"_GEqG9"};
10901
+ var styles$o = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb","segmented-control__divider":"_GEqG9"};
10872
10902
 
10873
10903
  const SegmentedControl = ({
10874
10904
  options,
@@ -10883,23 +10913,23 @@ const SegmentedControl = ({
10883
10913
  return index === options.length - 1;
10884
10914
  };
10885
10915
  return React__default.createElement("div", {
10886
- className: styles$p['segmented-control'],
10916
+ className: styles$o['segmented-control'],
10887
10917
  "data-testid": testId
10888
10918
  }, options.map((option, i) => React__default.createElement(React__default.Fragment, {
10889
10919
  key: option
10890
10920
  }, React__default.createElement("button", {
10891
10921
  onClick: () => onChange(option),
10892
- className: classnames(styles$p['segmented-control__button'], {
10893
- [styles$p['segmented-control__button--selected']]: isSelected(option)
10922
+ className: classnames(styles$o['segmented-control__button'], {
10923
+ [styles$o['segmented-control__button--selected']]: isSelected(option)
10894
10924
  })
10895
10925
  }, option), !isLastElement(i) && React__default.createElement("div", {
10896
- className: classnames(styles$p['segmented-control__divider'])
10926
+ className: classnames(styles$o['segmented-control__divider'])
10897
10927
  }))));
10898
10928
  };
10899
10929
 
10900
- var styles$o = {"form--standard-size":"_8-Ykj"};
10930
+ var styles$n = {"form--standard-size":"_8-Ykj"};
10901
10931
 
10902
- var styles$n = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
10932
+ var styles$m = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
10903
10933
 
10904
10934
  const FormSection = ({
10905
10935
  children,
@@ -10912,13 +10942,13 @@ const FormSection = ({
10912
10942
  const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
10913
10943
  space: 8
10914
10944
  }, title && React__default.createElement("h2", {
10915
- className: classnames(styles$n['form-section__title'])
10945
+ className: classnames(styles$m['form-section__title'])
10916
10946
  }, title), subtitle && React__default.createElement("h3", {
10917
- className: classnames(styles$n['form-section__subtitle'])
10947
+ className: classnames(styles$m['form-section__subtitle'])
10918
10948
  }, subtitle)), children);
10919
10949
  return React__default.createElement("div", {
10920
- className: classnames(styles$n['form-section'], {
10921
- [styles$n['form-section--no-margin']]: _noMargin || as === 'card'
10950
+ className: classnames(styles$m['form-section'], {
10951
+ [styles$m['form-section--no-margin']]: _noMargin || as === 'card'
10922
10952
  }),
10923
10953
  "data-testid": testId
10924
10954
  }, as === 'card' ? React__default.createElement(Card, {
@@ -10938,7 +10968,7 @@ const updateButtonProps = (child, newProps) => {
10938
10968
  }, newProps, child.props));
10939
10969
  };
10940
10970
 
10941
- var styles$m = {"form-footer":"_4ksfB"};
10971
+ var styles$l = {"form-footer":"_4ksfB"};
10942
10972
 
10943
10973
  const FormFooterActions = ({
10944
10974
  actions
@@ -10974,7 +11004,7 @@ const FormFooter = ({
10974
11004
  });
10975
11005
  const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
10976
11006
  return React__default.createElement("div", {
10977
- className: classnames(styles$m['form-footer']),
11007
+ className: classnames(styles$l['form-footer']),
10978
11008
  "data-testid": testId
10979
11009
  }, actions && React__default.createElement(FormFooterActions, {
10980
11010
  actions: actions
@@ -11012,13 +11042,13 @@ const Form = ({
11012
11042
  }, React__default.createElement("form", {
11013
11043
  onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
11014
11044
  className: classnames({
11015
- [styles$o['form--standard-size']]: !_wide
11045
+ [styles$n['form--standard-size']]: !_wide
11016
11046
  }),
11017
11047
  "data-testid": testId
11018
11048
  }, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
11019
11049
  };
11020
11050
 
11021
- var styles$l = {"form-row":"_xX-RS"};
11051
+ var styles$k = {"form-row":"_xX-RS"};
11022
11052
 
11023
11053
  const SIZE_25_PERCENT = '25%';
11024
11054
  const SIZE_33_PERCENT = '33.333%';
@@ -11045,14 +11075,14 @@ const FormRow = ({
11045
11075
  space: _space,
11046
11076
  testId: testId,
11047
11077
  alignItems: "stretch",
11048
- extraClass: styles$l['form-row']
11078
+ extraClass: styles$k['form-row']
11049
11079
  }, children, additionalColumns.map((_, index) => React__default.createElement("span", {
11050
11080
  key: index,
11051
11081
  "data-testid": "empty-cell"
11052
11082
  })));
11053
11083
  };
11054
11084
 
11055
- var styles$k = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
11085
+ var styles$j = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
11056
11086
 
11057
11087
  const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
11058
11088
  const textareaRef = useRef(null);
@@ -11121,10 +11151,10 @@ const TextAreaField = ({
11121
11151
  return React__default.createElement(Field, _extends({}, fieldProps, {
11122
11152
  characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
11123
11153
  }), React__default.createElement("div", {
11124
- className: classnames(styles$k['text-field'], {
11125
- [styles$k['text-field--invalid']]: hasError,
11126
- [styles$k['text-field--disabled']]: disabled,
11127
- [styles$k['text-field--focus']]: hasFocus
11154
+ className: classnames(styles$j['text-field'], {
11155
+ [styles$j['text-field--invalid']]: hasError,
11156
+ [styles$j['text-field--disabled']]: disabled,
11157
+ [styles$j['text-field--focus']]: hasFocus
11128
11158
  }),
11129
11159
  ref: containerRef,
11130
11160
  onClick: event => {
@@ -11156,7 +11186,7 @@ const TextAreaField = ({
11156
11186
  ref: textAreaRef,
11157
11187
  maxLength: maxLength
11158
11188
  }), toolbar && React__default.createElement("div", {
11159
- className: styles$k['text-field__toolbar'],
11189
+ className: styles$j['text-field__toolbar'],
11160
11190
  id: `${controllers.id}-toolbar`,
11161
11191
  ref: toolbarRef,
11162
11192
  onClick: event => {
@@ -11168,13 +11198,13 @@ const TextAreaField = ({
11168
11198
  }, toolbar)));
11169
11199
  };
11170
11200
 
11171
- const _excluded$9 = ["prefix", "suffix"];
11201
+ const _excluded$8 = ["prefix", "suffix"];
11172
11202
  const TextFieldElement = (_ref, ref) => {
11173
11203
  let {
11174
11204
  prefix,
11175
11205
  suffix
11176
11206
  } = _ref,
11177
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
11207
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
11178
11208
  const {
11179
11209
  inputProps,
11180
11210
  fieldProps
@@ -11190,7 +11220,7 @@ const TextFieldElement = (_ref, ref) => {
11190
11220
  };
11191
11221
  const TextField = forwardRef(TextFieldElement);
11192
11222
 
11193
- var styles$j = {"pill-select-field":"_Yti6k","pill-select-field__creating-input":"_dw-VP","pill-select-field__custom-input":"_JXakU","pill-select-field__add-new-input":"_MsKVV","pill-select-field__creating-custom-input":"_ZxEwG","pill-select-field__removable-icon":"_Odw1V"};
11223
+ var styles$i = {"pill-select-field":"_Yti6k","pill-select-field__creating-input":"_dw-VP","pill-select-field__custom-input":"_JXakU","pill-select-field__add-new-input":"_MsKVV","pill-select-field__creating-custom-input":"_ZxEwG","pill-select-field__removable-icon":"_Odw1V"};
11194
11224
 
11195
11225
  const useMultiSelectFieldControllers = ({
11196
11226
  name,
@@ -11255,10 +11285,10 @@ const CreatableOption = ({
11255
11285
  };
11256
11286
  return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
11257
11287
  key: 'pill-select-field-create-option',
11258
- className: styles$j['pill-select-field']
11288
+ className: styles$i['pill-select-field']
11259
11289
  }, React__default.createElement("button", {
11260
11290
  "data-testid": testId ? `${testId}-create-option` : undefined,
11261
- className: styles$j['pill-select-field__add-new-input'],
11291
+ className: styles$i['pill-select-field__add-new-input'],
11262
11292
  onClick: () => {
11263
11293
  setIsCreatingOption(true);
11264
11294
  setNewOptionLabel('');
@@ -11267,9 +11297,9 @@ const CreatableOption = ({
11267
11297
  size: "small"
11268
11298
  }), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
11269
11299
  key: 'pill-select-field-creating-option',
11270
- className: styles$j['pill-select-field']
11300
+ className: styles$i['pill-select-field']
11271
11301
  }, React__default.createElement("input", {
11272
- className: styles$j['pill-select-field__creating-input'],
11302
+ className: styles$i['pill-select-field__creating-input'],
11273
11303
  name: `${name}-pill-select-field-creating-option`,
11274
11304
  id: 'pill-select-field-creating-option',
11275
11305
  type: "text",
@@ -11290,7 +11320,7 @@ const CreatableOption = ({
11290
11320
  }
11291
11321
  }
11292
11322
  }), React__default.createElement("span", {
11293
- className: styles$j['pill-select-field__creating-custom-input']
11323
+ className: styles$i['pill-select-field__creating-custom-input']
11294
11324
  }, !newOptionLabel && React__default.createElement(Text, {
11295
11325
  as: "body",
11296
11326
  color: "grey-300"
@@ -11341,7 +11371,7 @@ const PillSelectField = ({
11341
11371
  }
11342
11372
  };
11343
11373
  return React__default.createElement("button", {
11344
- className: styles$j['pill-select-field__removable-icon'],
11374
+ className: styles$i['pill-select-field__removable-icon'],
11345
11375
  onClick: handleClick
11346
11376
  }, React__default.createElement(IconTimes, {
11347
11377
  size: "small"
@@ -11357,7 +11387,7 @@ const PillSelectField = ({
11357
11387
  const itemId = `${controllers.id}-${itemIdentifier}`;
11358
11388
  return React__default.createElement("div", {
11359
11389
  key: itemIdentifier,
11360
- className: styles$j['pill-select-field']
11390
+ className: styles$i['pill-select-field']
11361
11391
  }, React__default.createElement("input", {
11362
11392
  name: `${name}-${itemIdentifier}`,
11363
11393
  id: itemId,
@@ -11377,7 +11407,7 @@ const PillSelectField = ({
11377
11407
  controllers.onChange(newValue);
11378
11408
  }
11379
11409
  }), React__default.createElement("span", {
11380
- className: styles$j['pill-select-field__custom-input']
11410
+ className: styles$i['pill-select-field__custom-input']
11381
11411
  }, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
11382
11412
  option: option
11383
11413
  })));
@@ -11426,9 +11456,9 @@ const useRadioGroupFieldContext = () => {
11426
11456
  return context;
11427
11457
  };
11428
11458
 
11429
- var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
11459
+ var styles$h = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
11430
11460
 
11431
- var styles$h = {"label":"_s7mjc","label--truncate":"_dZjDs","caption":"_JIw-5","radio-group-box-option":"_IIX-P","radio-group-box-option__box":"_P588B","radio-group-box-option__box--disabled":"_Ir3Og","radio-group-box-option__label":"_U--9r","radio-group-box-option__label--disabled":"_Lvxmy","radio-group-box-option__caption":"_NC-bO","radio-group-box-option__caption--disabled":"_04Cjp"};
11461
+ var styles$g = {"label":"_s7mjc","label--truncate":"_dZjDs","caption":"_JIw-5","radio-group-box-option":"_IIX-P","radio-group-box-option__box":"_P588B","radio-group-box-option__box--disabled":"_Ir3Og","radio-group-box-option__label":"_U--9r","radio-group-box-option__label--disabled":"_Lvxmy","radio-group-box-option__caption":"_NC-bO","radio-group-box-option__caption--disabled":"_04Cjp"};
11432
11462
 
11433
11463
  const RadioGroupBoxOption = ({
11434
11464
  value,
@@ -11445,7 +11475,7 @@ const RadioGroupBoxOption = ({
11445
11475
  id: inputId
11446
11476
  });
11447
11477
  return React__default.createElement("label", {
11448
- className: styles$h['radio-group-box-option']
11478
+ className: styles$g['radio-group-box-option']
11449
11479
  }, React__default.createElement("input", {
11450
11480
  type: "radio",
11451
11481
  "data-testid": testId,
@@ -11456,8 +11486,8 @@ const RadioGroupBoxOption = ({
11456
11486
  checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
11457
11487
  disabled: radioGroupContext.disabled || disabled
11458
11488
  }), React__default.createElement("div", {
11459
- className: classnames(styles$h['radio-group-box-option__box'], {
11460
- [styles$h['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
11489
+ className: classnames(styles$g['radio-group-box-option__box'], {
11490
+ [styles$g['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
11461
11491
  })
11462
11492
  }, React__default.createElement(Stack, {
11463
11493
  space: 16,
@@ -11467,17 +11497,17 @@ const RadioGroupBoxOption = ({
11467
11497
  space: 8,
11468
11498
  alignItems: "center"
11469
11499
  }, label && React__default.createElement("div", {
11470
- className: classnames(styles$h['radio-group-box-option__label'], {
11471
- [styles$h['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
11500
+ className: classnames(styles$g['radio-group-box-option__label'], {
11501
+ [styles$g['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
11472
11502
  })
11473
11503
  }, label), caption && React__default.createElement("div", {
11474
- className: classnames(styles$h['radio-group-box-option__caption'], {
11475
- [styles$h['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
11504
+ className: classnames(styles$g['radio-group-box-option__caption'], {
11505
+ [styles$g['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
11476
11506
  })
11477
11507
  }, caption)))));
11478
11508
  };
11479
11509
 
11480
- var styles$g = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
11510
+ var styles$f = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
11481
11511
 
11482
11512
  /** RadioGroupField form element. */
11483
11513
  const RadioGroupOption = ({
@@ -11499,7 +11529,7 @@ const RadioGroupOption = ({
11499
11529
  space: 8,
11500
11530
  alignItems: "center"
11501
11531
  }, React__default.createElement("div", {
11502
- className: styles$g['radio-group-option']
11532
+ className: styles$f['radio-group-option']
11503
11533
  }, React__default.createElement("input", {
11504
11534
  type: "radio",
11505
11535
  "data-testid": testId,
@@ -11510,11 +11540,11 @@ const RadioGroupOption = ({
11510
11540
  checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
11511
11541
  disabled: radioGroupContext.disabled || disabled
11512
11542
  }), React__default.createElement("span", {
11513
- className: styles$g['radio-group-option__custom-input']
11543
+ className: styles$f['radio-group-option__custom-input']
11514
11544
  })), label && React__default.createElement(Label, {
11515
11545
  htmlFor: id
11516
11546
  }, label)), caption && React__default.createElement("div", {
11517
- className: styles$g['radio-group-option__caption']
11547
+ className: styles$f['radio-group-option__caption']
11518
11548
  }, React__default.createElement(Caption, {
11519
11549
  fieldId: id
11520
11550
  }, caption)));
@@ -11645,7 +11675,7 @@ const RadioGroupField = ({
11645
11675
  }, React__default.createElement(Stack, {
11646
11676
  space: _space
11647
11677
  }, label && React__default.createElement("div", {
11648
- className: styles$i['radio-group-field__label']
11678
+ className: styles$h['radio-group-field__label']
11649
11679
  }, label), React__default.createElement(Stack, {
11650
11680
  space: 8
11651
11681
  }, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
@@ -11657,21 +11687,21 @@ const RadioGroupField = ({
11657
11687
  testId: testId,
11658
11688
  space: _space
11659
11689
  }, children), caption && React__default.createElement("div", {
11660
- className: styles$i['radio-group-caption']
11690
+ className: styles$h['radio-group-caption']
11661
11691
  }, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
11662
11692
  };
11663
11693
 
11664
- var styles$f = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6","password-toggle--disabled":"_G29N3"};
11694
+ var styles$e = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6","password-toggle--disabled":"_G29N3"};
11665
11695
 
11666
- var styles$e = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
11696
+ var styles$d = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
11667
11697
 
11668
11698
  const PasswordCriteria = ({
11669
11699
  met,
11670
11700
  children
11671
11701
  }) => {
11672
11702
  return React__default.createElement("span", {
11673
- className: classnames(styles$e['password-criteria'], {
11674
- [styles$e['password-criteria--invalid']]: !met
11703
+ className: classnames(styles$d['password-criteria'], {
11704
+ [styles$d['password-criteria--invalid']]: !met
11675
11705
  })
11676
11706
  }, React__default.createElement(Inline, {
11677
11707
  space: met ? 4 : 8
@@ -11746,12 +11776,12 @@ const PasswordField = ({
11746
11776
  error: controllers.error
11747
11777
  };
11748
11778
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
11749
- className: styles$f['password-container']
11779
+ className: styles$e['password-container']
11750
11780
  }, React__default.createElement("input", {
11751
11781
  name: name,
11752
11782
  id: controllers.id,
11753
- className: classnames(styles$f['text-field'], {
11754
- [styles$f['text-field--invalid']]: hasError
11783
+ className: classnames(styles$e['text-field'], {
11784
+ [styles$e['text-field--invalid']]: hasError
11755
11785
  }),
11756
11786
  type: type,
11757
11787
  "data-testid": testId,
@@ -11764,8 +11794,8 @@ const PasswordField = ({
11764
11794
  onChange: controllers.onChange,
11765
11795
  onBlur: controllers.onBlur
11766
11796
  }), React__default.createElement("div", {
11767
- className: classnames(styles$f['password-toggle'], {
11768
- [styles$f['password-toggle--disabled']]: disabled
11797
+ className: classnames(styles$e['password-toggle'], {
11798
+ [styles$e['password-toggle--disabled']]: disabled
11769
11799
  }),
11770
11800
  onClick: toggleType,
11771
11801
  onKeyPress: toggleType,
@@ -11862,16 +11892,16 @@ const MultiSelectField = ({
11862
11892
  })));
11863
11893
  };
11864
11894
 
11865
- var styles$d = {"custom-list":"_cSkvD"};
11895
+ var styles$c = {"custom-list":"_cSkvD"};
11866
11896
 
11867
- const _excluded$8 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
11897
+ const _excluded$7 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
11868
11898
  const CustomList = _ref => {
11869
11899
  let {
11870
11900
  children,
11871
11901
  hasMoreOptions,
11872
11902
  hasMoreOptionsFirstLoad
11873
11903
  } = _ref,
11874
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
11904
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11875
11905
  const __ = useTranslation('AsyncSelectField');
11876
11906
  let showFooter = hasMoreOptions;
11877
11907
  if (props.selectProps.inputValue === '' && typeof hasMoreOptionsFirstLoad === 'boolean') {
@@ -11880,11 +11910,11 @@ const CustomList = _ref => {
11880
11910
  return React__default.createElement(components.MenuList, _extends({}, props), React__default.createElement(Fragment, null, children, showFooter && props.options.length > 0 && React__default.createElement(Inline, {
11881
11911
  justifyContent: "center"
11882
11912
  }, React__default.createElement("div", {
11883
- className: styles$d['custom-list']
11913
+ className: styles$c['custom-list']
11884
11914
  }, __('moreOptionsPlaceholder')))));
11885
11915
  };
11886
11916
 
11887
- const _excluded$7 = ["loadOptions"];
11917
+ const _excluded$6 = ["loadOptions"];
11888
11918
  /**
11889
11919
  * Component to make possible choose from async options. It looks exactly as the [SelectField](./?path=/docs/forms-selectfield--default) but, this one handles asynchronous options.
11890
11920
  * Instead of passing a `options` props, this component requires a `loadOptions` prop.
@@ -11893,7 +11923,7 @@ const AsyncSelectField = _ref => {
11893
11923
  let {
11894
11924
  loadOptions
11895
11925
  } = _ref,
11896
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11926
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
11897
11927
  const [hasMoreOptions, setHasMoreOptions] = useState(false);
11898
11928
  const [hasMoreOptionsFirstLoad, setHasMoreOptionsFirstLoad] = useState();
11899
11929
  const [hasFirstLoadPerformed, setHasFirstLoadPerformed] = useState(false);
@@ -12173,7 +12203,7 @@ const getFormikError = error => {
12173
12203
  return undefined;
12174
12204
  };
12175
12205
 
12176
- var styles$c = {"text-field":"_6cH4X","date-range-field":"_DMb6M","text-field--invalid":"_eXIiZ","text-field--prefixed":"_Lc6QO","text-field--suffixed":"_VWrJD","date-range-field--invalid":"_ZJ2A5","date-range-field--disabled":"_WkaJQ"};
12206
+ var styles$b = {"text-field":"_6cH4X","date-range-field":"_DMb6M","text-field--invalid":"_eXIiZ","text-field--prefixed":"_Lc6QO","text-field--suffixed":"_VWrJD","date-range-field--invalid":"_ZJ2A5","date-range-field--disabled":"_WkaJQ"};
12177
12207
 
12178
12208
  var calendarStyles = {"root":"_SsQ7L","table":"_Ar-fF","caption":"_Tp79k","head_cell":"_Ya6Zr","day_today":"_lFzs7","day_outside":"_TjttB","nav_button":"_cwiRM","day_range_middle":"_rJolM","day_range_start":"_nVIPx","day_range_end":"_Y50yT"};
12179
12209
 
@@ -12237,9 +12267,9 @@ const DateRangeCalendar = ({
12237
12267
  const DAYS = getDays(translate);
12238
12268
  const MONTH_NAMES = getMonths(translate);
12239
12269
  return React__default.createElement(Portal, null, React__default.createElement("div", {
12240
- className: styles$H['calendar']
12270
+ className: styles$N['calendar']
12241
12271
  }, React__default.createElement("div", {
12242
- className: styles$H['calendar__overlay'],
12272
+ className: styles$N['calendar__overlay'],
12243
12273
  ref: ref => setCalendarRef(ref),
12244
12274
  style: _extends({}, calendarPosition, {
12245
12275
  zIndex: getZIndex('dropdown')
@@ -12430,9 +12460,9 @@ const DateRangeField = ({
12430
12460
  end
12431
12461
  } = controllers.value;
12432
12462
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
12433
- className: classnames(styles$c['date-range-field'], {
12434
- [styles$c['date-range-field--invalid']]: hasError,
12435
- [styles$c['date-range-field--disabled']]: disabled
12463
+ className: classnames(styles$b['date-range-field'], {
12464
+ [styles$b['date-range-field--invalid']]: hasError,
12465
+ [styles$b['date-range-field--disabled']]: disabled
12436
12466
  }),
12437
12467
  "data-testid": testId
12438
12468
  }, React__default.createElement(IconCalendarAlt, {
@@ -12687,7 +12717,7 @@ const TimeFieldDropdown = ({
12687
12717
  })));
12688
12718
  };
12689
12719
 
12690
- const _excluded$6 = ["interval", "startTime", "prefix", "endField", "duration", "subtractDuration", "calculateDuration", "timeFormat"];
12720
+ const _excluded$5 = ["interval", "startTime", "prefix", "endField", "duration", "subtractDuration", "calculateDuration", "timeFormat"];
12691
12721
  const TimeFieldElement = (_ref, forwardedRef) => {
12692
12722
  let {
12693
12723
  interval = 15,
@@ -12699,7 +12729,7 @@ const TimeFieldElement = (_ref, forwardedRef) => {
12699
12729
  calculateDuration,
12700
12730
  timeFormat
12701
12731
  } = _ref,
12702
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12732
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
12703
12733
  const {
12704
12734
  timeFormat: globalTimeFormat
12705
12735
  } = useProviderConfig();
@@ -12754,7 +12784,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
12754
12784
  */
12755
12785
  const TimeField = forwardRef(TimeFieldElement);
12756
12786
 
12757
- var styles$b = {"text-field":"_yV-BZ","time-range-field":"_9i8Lj","text-field--invalid":"_FJVdv","text-field--prefixed":"_B7q-i","text-field--suffixed":"_DvCJW","time-range-field--invalid":"_g2UhP","time-range-field--disabled":"_Yn4T4"};
12787
+ var styles$a = {"text-field":"_yV-BZ","time-range-field":"_9i8Lj","text-field--invalid":"_FJVdv","text-field--prefixed":"_B7q-i","text-field--suffixed":"_DvCJW","time-range-field--invalid":"_g2UhP","time-range-field--disabled":"_Yn4T4"};
12758
12788
 
12759
12789
  const TimeRangeEnd = ({
12760
12790
  startTime,
@@ -12875,9 +12905,9 @@ const TimeRangeField = ({
12875
12905
  end
12876
12906
  }) : getDuration(end, start, subtractDuration);
12877
12907
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
12878
- className: classnames(styles$b['time-range-field'], {
12879
- [styles$b['time-range-field--invalid']]: hasError,
12880
- [styles$b['time-range-field--disabled']]: disabled
12908
+ className: classnames(styles$a['time-range-field'], {
12909
+ [styles$a['time-range-field--invalid']]: hasError,
12910
+ [styles$a['time-range-field--disabled']]: disabled
12881
12911
  }),
12882
12912
  "data-testid": testId
12883
12913
  }, React__default.createElement(TimeRangeStart, {
@@ -12905,18 +12935,18 @@ const TimeRangeField = ({
12905
12935
  })));
12906
12936
  };
12907
12937
 
12908
- var styles$a = {"currency-field__mask-display":"_ddacu"};
12938
+ var styles$9 = {"currency-field__mask-display":"_ddacu"};
12909
12939
 
12910
12940
  const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
12911
12941
  const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
12912
12942
 
12913
- const _excluded$5 = ["currencySymbol", "step"];
12943
+ const _excluded$4 = ["currencySymbol", "step"];
12914
12944
  const CurrencyFieldElement = (_ref, forwardedRef) => {
12915
12945
  let {
12916
12946
  currencySymbol = '$',
12917
12947
  step = 0.01
12918
12948
  } = _ref,
12919
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
12949
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
12920
12950
  const [displayPadding, setDisplayPadding] = useState(CURRENCY_DISPLAY_DEFAULT_MARGIN);
12921
12951
  const internalRef = useRef(null);
12922
12952
  const ref = forwardedRef || internalRef;
@@ -12970,7 +13000,7 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
12970
13000
  inputProps.onFocus(e);
12971
13001
  }
12972
13002
  }))), showMask && !!inputProps.value && React__default.createElement("div", {
12973
- className: styles$a['currency-field__mask-display'],
13003
+ className: styles$9['currency-field__mask-display'],
12974
13004
  style: {
12975
13005
  marginLeft: displayPadding
12976
13006
  }
@@ -12983,7 +13013,7 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
12983
13013
  */
12984
13014
  const CurrencyField = forwardRef(CurrencyFieldElement);
12985
13015
 
12986
- const _excluded$4 = ["max", "min", "precision", "stepSize", "prefix", "suffix"];
13016
+ const _excluded$3 = ["max", "min", "precision", "stepSize", "prefix", "suffix"];
12987
13017
  const NumberFieldElement = (_ref, ref) => {
12988
13018
  let {
12989
13019
  max,
@@ -12993,7 +13023,7 @@ const NumberFieldElement = (_ref, ref) => {
12993
13023
  prefix,
12994
13024
  suffix
12995
13025
  } = _ref,
12996
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
13026
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
12997
13027
  const {
12998
13028
  inputProps,
12999
13029
  fieldProps
@@ -13068,12 +13098,12 @@ const NumberFieldElement = (_ref, ref) => {
13068
13098
  */
13069
13099
  const NumberField = forwardRef(NumberFieldElement);
13070
13100
 
13071
- const _excluded$3 = ["max"];
13101
+ const _excluded$2 = ["max"];
13072
13102
  const PercentageElement = (_ref, ref) => {
13073
13103
  let {
13074
13104
  max = 100
13075
13105
  } = _ref,
13076
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
13106
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
13077
13107
  return React__default.createElement(NumberField, _extends({}, allOtherProps, {
13078
13108
  suffix: "%",
13079
13109
  ref: ref,
@@ -13097,7 +13127,7 @@ const FormFeedback = ({
13097
13127
  }, children);
13098
13128
  };
13099
13129
 
13100
- var styles$9 = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
13130
+ var styles$8 = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
13101
13131
 
13102
13132
  const usePhoneFieldControllers = ({
13103
13133
  name,
@@ -14011,7 +14041,7 @@ const COUNTRIES = {
14011
14041
  };
14012
14042
  const COUNTRY_CODES = Object.keys(COUNTRIES);
14013
14043
 
14014
- var styles$8 = {"country-selector":"_VYs4A","country-selector--with-error":"_oSxxZ","country-selector__trigger":"_jlyd4","country-selector--disabled":"_tNInT","country-selector__trigger--with-error":"_424HM","country-selector__trigger--disabled":"_0XOFf","country-selector__trigger-flag":"_RfPa1","country-selector__flag":"_uADOl"};
14044
+ var styles$7 = {"country-selector":"_VYs4A","country-selector--with-error":"_oSxxZ","country-selector__trigger":"_jlyd4","country-selector--disabled":"_tNInT","country-selector__trigger--with-error":"_424HM","country-selector__trigger--disabled":"_0XOFf","country-selector__trigger-flag":"_RfPa1","country-selector__flag":"_uADOl"};
14015
14045
 
14016
14046
  var flagIcons = {"fi":"_wEQeh","fis":"_Z-kfc","fi-ac":"_amiP8","fi-ad":"_-Nycw","fi-ae":"_5zcAZ","fi-af":"_x-kp7","fi-ag":"_cfoi1","fi-ai":"_xoMS-","fi-al":"_am975","fi-am":"_0p-gD","fi-ao":"_l245N","fi-ar":"_xigkX","fi-as":"_fSczv","fi-at":"_tTeMy","fi-au":"_nSXvc","fi-aw":"_J3Dgu","fi-ax":"_PnU0s","fi-az":"_Hevuf","fi-ba":"_V-NYg","fi-bb":"_rdxaV","fi-bd":"_W3w35","fi-be":"_HXWpo","fi-bf":"_-xCW2","fi-bg":"_UuyPh","fi-bh":"_qYHkT","fi-bi":"_sfFeO","fi-bj":"_HcoBc","fi-bl":"_VvU29","fi-bm":"_DCtD1","fi-bn":"_QdHY3","fi-bo":"_Ayx7f","fi-bq":"_VfZGH","fi-br":"_HigIg","fi-bs":"_PWr-E","fi-bt":"_uFlIS","fi-bw":"_Mmoqr","fi-by":"_MKO28","fi-bz":"_HBn3o","fi-ca":"_wB3xX","fi-cc":"_oJEC5","fi-cd":"_C3RR8","fi-cf":"_ZVOZZ","fi-cg":"_Nk7Zr","fi-ch":"_9qTmx","fi-ci":"_4-gxn","fi-ck":"_YEK3x","fi-cl":"_-iNl4","fi-cm":"_UozRb","fi-cn":"_KsOEH","fi-co":"_ptSEc","fi-cr":"_92iwJ","fi-cu":"_D0k3p","fi-cv":"_O5oBT","fi-cw":"_82pI2","fi-cx":"_Eqg1T","fi-cy":"_740E8","fi-cz":"_483Iy","fi-de":"_Wla8X","fi-dj":"_Jm9gH","fi-dk":"_5QJuz","fi-dm":"_4lh-K","fi-do":"_Zvttl","fi-dz":"_-5iKJ","fi-ec":"_XMC0f","fi-ee":"_tZDe6","fi-eg":"_5USxE","fi-eh":"_rpC1Z","fi-er":"_Rhm4A","fi-es":"_QN2si","fi-et":"_2ihBN","fi-fi":"_2Lctq","fi-fj":"_ljZXm","fi-fk":"_Um9-A","fi-fm":"_mXG-Y","fi-fo":"_SemMo","fi-fr":"_MGcxf","fi-ga":"_aPt7H","fi-gb":"_2tU39","fi-gd":"_CPs5V","fi-ge":"_09VJF","fi-gf":"_7STtr","fi-gg":"_CUbGJ","fi-gh":"_mgJbd","fi-gi":"_mxhe5","fi-gl":"_gXogr","fi-gm":"_JHzzB","fi-gn":"_XJqm4","fi-gp":"_YnrVE","fi-gq":"_J47-w","fi-gr":"_5YAwo","fi-gt":"_PWFl-","fi-gu":"_ItzVX","fi-gw":"_hiRJc","fi-gy":"_oitDt","fi-hk":"_18FzB","fi-hn":"_5ySTg","fi-hr":"_rzYuT","fi-ht":"_Pq7or","fi-hu":"_-u5Ze","fi-id":"_m8GwW","fi-ie":"_pPEAu","fi-il":"_Butse","fi-im":"_wLEYj","fi-in":"_XY7D8","fi-io":"_iKM6K","fi-iq":"_iwLoJ","fi-ir":"_L1Gd1","fi-is":"_6XPDX","fi-it":"_JXv9-","fi-je":"_Qwjxj","fi-jm":"_qzNME","fi-jo":"_JqYXz","fi-jp":"_CakOC","fi-ke":"_Czyy6","fi-kg":"_6Yydv","fi-kh":"_zhLEc","fi-ki":"_qJxPJ","fi-km":"_KDmv4","fi-kn":"_n3xy0","fi-kp":"_voM9e","fi-kr":"_sErX2","fi-kw":"_kJUFk","fi-ky":"_Ensoj","fi-kz":"_JVpyw","fi-la":"_eVzpD","fi-lb":"_f400B","fi-lc":"_vhHp5","fi-li":"_cP76d","fi-lk":"_NGSeL","fi-lr":"_yIHm7","fi-ls":"_Kj-GJ","fi-lt":"_VTK9E","fi-lu":"_N4PHA","fi-lv":"_d-ZWR","fi-ly":"_49dYi","fi-ma":"_Iqggh","fi-mc":"_QQY-Q","fi-md":"_e7v9L","fi-me":"_WqN7P","fi-mf":"_4Exh-","fi-mg":"_W-d9O","fi-mh":"_3xTQ7","fi-mk":"_O26qm","fi-ml":"_hiLpW","fi-mm":"_QGh12","fi-mn":"_KNLNH","fi-mo":"_Kdw-k","fi-mp":"_CTkAK","fi-mq":"_MzLKJ","fi-mr":"_sjQHJ","fi-ms":"_ENTOn","fi-mt":"_GoKtf","fi-mu":"_WLc98","fi-mv":"_08Tf4","fi-mw":"_MvAGM","fi-mx":"_FPDND","fi-my":"_1xoF6","fi-mz":"_ylwZy","fi-na":"_-pxPH","fi-nc":"_W-Ot-","fi-ne":"_EOA-X","fi-nf":"_W5Kl5","fi-ng":"_q76Cs","fi-ni":"_AuKsI","fi-nl":"_qLIaU","fi-no":"_xbcrX","fi-np":"_FQt4h","fi-nr":"_jJbHx","fi-nu":"_TSamx","fi-nz":"_AzsKY","fi-om":"_TUoW9","fi-pa":"_jCT-C","fi-pe":"_VMnoV","fi-pf":"_Gblvx","fi-pg":"_FLRnq","fi-ph":"_0RSGR","fi-pk":"_DfZCd","fi-pl":"_hv9I4","fi-pm":"_IDp3q","fi-pr":"_2MHj1","fi-ps":"_0FLpC","fi-pt":"_p--cH","fi-pw":"_VP-zx","fi-py":"_-Tnic","fi-qa":"_Dy7Il","fi-re":"_7N5ED","fi-ro":"_4AYwa","fi-rs":"_Y-a4O","fi-ru":"_OKa79","fi-rw":"_bBqN1","fi-sa":"_vFwuG","fi-sb":"_MMmc2","fi-sc":"_ZUM8E","fi-sd":"_9k8eB","fi-se":"_cX0c9","fi-sg":"_4-yWs","fi-sh":"_-vaPR","fi-si":"_9oJgu","fi-sj":"_J0R6u","fi-sk":"_1VxbX","fi-sl":"_RiBAA","fi-sm":"_rEaFc","fi-sn":"_PRwVO","fi-so":"_XKFdC","fi-sr":"_LtiS3","fi-ss":"_45mng","fi-st":"_OtIks","fi-sv":"_OonsM","fi-sx":"_NtzDE","fi-sy":"_Ail2H","fi-sz":"_8XRyD","fi-ta":"_GQvZn","fi-tc":"_SbD-E","fi-td":"_AnXAO","fi-tg":"_smamZ","fi-th":"_AVcL5","fi-tj":"_EqMlf","fi-tk":"_20VO7","fi-tl":"_jz9hm","fi-tm":"_kmmny","fi-tn":"_9aBQ-","fi-to":"_G63l0","fi-tr":"_6shnc","fi-tt":"_P5fq4","fi-tv":"_b7SpV","fi-tw":"_jwNjI","fi-tz":"_qtU8x","fi-ua":"_bNAHa","fi-ug":"_-G-iW","fi-us":"_xwz53","fi-uy":"_DpeX8","fi-uz":"_kSABK","fi-va":"_VOSWl","fi-vc":"_X-aU3","fi-ve":"_FiFnt","fi-vg":"_d66Ny","fi-vi":"_6kM5U","fi-vn":"_ikRJo","fi-vu":"_5XaHH","fi-wf":"_ZEJXX","fi-ws":"_IzR7c","fi-xk":"_88V52","fi-ye":"_2Dwap","fi-yt":"_kQ0fh","fi-za":"_XzYDs","fi-zm":"_mA8wn","fi-zw":"_iIsuB"};
14017
14047
 
@@ -14022,21 +14052,21 @@ const CountrySelector = ({
14022
14052
  disabled
14023
14053
  }) => {
14024
14054
  return React__default.createElement("div", {
14025
- className: classnames(styles$8['country-selector'], {
14026
- [styles$8['country-selector--with-error']]: hasError,
14027
- [styles$8['country-selector--disabled']]: disabled
14055
+ className: classnames(styles$7['country-selector'], {
14056
+ [styles$7['country-selector--with-error']]: hasError,
14057
+ [styles$7['country-selector--disabled']]: disabled
14028
14058
  })
14029
14059
  }, React__default.createElement(Dropdown, {
14030
14060
  trigger: React__default.createElement("div", {
14031
- className: classnames(styles$8['country-selector__trigger'], {
14032
- [styles$8['country-selector__trigger--with-error']]: hasError,
14033
- [styles$8['country-selector__trigger--disabled']]: disabled
14061
+ className: classnames(styles$7['country-selector__trigger'], {
14062
+ [styles$7['country-selector__trigger--with-error']]: hasError,
14063
+ [styles$7['country-selector__trigger--disabled']]: disabled
14034
14064
  })
14035
14065
  }, React__default.createElement(Inline, {
14036
14066
  space: 8,
14037
14067
  alignItems: "center"
14038
14068
  }, React__default.createElement("span", {
14039
- className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$8['country-selector__trigger-flag'])
14069
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$7['country-selector__trigger-flag'])
14040
14070
  }), React__default.createElement(IconChevronDown, {
14041
14071
  color: "grey-400",
14042
14072
  size: "medium"
@@ -14050,16 +14080,16 @@ const CountrySelector = ({
14050
14080
  alignItems: "center",
14051
14081
  space: 12
14052
14082
  }, React__default.createElement("span", {
14053
- className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$8['country-selector__flag'])
14083
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$7['country-selector__flag'])
14054
14084
  }), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
14055
14085
  };
14056
14086
 
14057
- const _excluded$2 = ["disabledCountry"];
14087
+ const _excluded$1 = ["disabledCountry"];
14058
14088
  const PhoneField = _ref => {
14059
14089
  let {
14060
14090
  disabledCountry = false
14061
14091
  } = _ref,
14062
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
14092
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
14063
14093
  const __ = useTranslation('PhoneField');
14064
14094
  const inputRef = useRef(null);
14065
14095
  const {
@@ -14123,7 +14153,7 @@ const PhoneField = _ref => {
14123
14153
  }
14124
14154
  };
14125
14155
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
14126
- className: styles$9['phone-field']
14156
+ className: styles$8['phone-field']
14127
14157
  }, !disabledCountry && React__default.createElement(CountrySelector, {
14128
14158
  country: selectedCountry,
14129
14159
  onChange: handleCountryChange,
@@ -14134,53 +14164,18 @@ const PhoneField = _ref => {
14134
14164
  space: 4,
14135
14165
  alignItems: "center"
14136
14166
  }, React__default.createElement("span", {
14137
- className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$9['country-selector__flag'])
14167
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$8['country-selector__flag'])
14138
14168
  }), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
14139
14169
  }, React__default.createElement("input", _extends({}, inputProps, {
14140
14170
  type: "tel",
14141
- className: classnames(inputProps.className, styles$9['phone-field__input'], {
14142
- [styles$9['phone-field__input--with-square-borders']]: !disabledCountry
14171
+ className: classnames(inputProps.className, styles$8['phone-field__input'], {
14172
+ [styles$8['phone-field__input--with-square-borders']]: !disabledCountry
14143
14173
  }),
14144
14174
  onChange: handlePhoneChange,
14145
14175
  onBlur: handlePhoneBlur
14146
14176
  })))));
14147
14177
  };
14148
14178
 
14149
- var styles$7 = {"badge":"_RXV4h","badge--warning":"_2An1I","badge--danger":"_-Bw8L","badge--success":"_RxlMz","badge--info":"_dzCH-","badge--numeric":"_Ix9tP"};
14150
-
14151
- const _excluded$1 = ["children", "theme", "title", "testId"];
14152
- const BadgeElement = (_ref, forwardedRef) => {
14153
- let {
14154
- children,
14155
- theme,
14156
- title,
14157
- testId
14158
- } = _ref,
14159
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
14160
- const internalRef = useRef(null);
14161
- const ref = forwardedRef || internalRef;
14162
- useLayoutEffect(() => {
14163
- if (typeof ref !== 'function' && ref.current && React__default.isValidElement(children) && typeof (children == null ? void 0 : children.type) !== 'string' && typeof (children == null ? void 0 : children.type) !== 'number') {
14164
- ref.current.style.height = ref.current.offsetWidth + 'px';
14165
- }
14166
- });
14167
- return React__default.createElement(Tooltip, {
14168
- overlay: title,
14169
- ref: ref
14170
- }, React__default.createElement("div", _extends({
14171
- className: classnames(styles$7['badge'], {
14172
- [styles$7['badge--success']]: theme === 'success',
14173
- [styles$7['badge--danger']]: theme === 'danger',
14174
- [styles$7['badge--info']]: theme === 'info',
14175
- [styles$7['badge--warning']]: theme === 'warning',
14176
- [styles$7['badge--numeric']]: Number.isFinite(children)
14177
- }),
14178
- ref: ref,
14179
- "data-testid": testId
14180
- }, otherProps), children));
14181
- };
14182
- const Badge = forwardRef(BadgeElement);
14183
-
14184
14179
  var styles$6 = {"avatar":"_V1U8v","avatar__container":"_peAaI","avatar--small":"_9g-tn","avatar__badge":"_uViot","avatar--medium":"_vNXJW","avatar--large":"_9ZKAB","avatar--extra-large":"_uv14Y"};
14185
14180
 
14186
14181
  var styles$5 = {"avatar-image":"_iDN1j"};