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

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,292 @@ 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
+ activeClassName: styles$T['menu-item--active'],
9044
+ exact: true
9045
+ }, menu.label, !!menu.badge && React__default.createElement(Badge, null, menu.badge)));
9046
+ };
9047
+
9048
+ const PageLayout = ({
9049
+ title,
9050
+ children,
9051
+ menu,
9052
+ sideNavContent
9053
+ }) => {
9054
+ return React__default.createElement("div", {
9055
+ className: styles$U['page-layout']
9056
+ }, React__default.createElement("div", {
9057
+ className: styles$U['page-layout__nav-container']
9058
+ }, React__default.createElement(Stack, {
9059
+ space: 12
9060
+ }, React__default.createElement(Text, {
9061
+ as: "h5",
9062
+ textWrap: "wrap"
9063
+ }, title), React__default.createElement("ul", {
9064
+ className: styles$U['page-layout__nav-list']
9065
+ }, menu.filter(menu => !('isVisible' in menu) || (menu == null ? void 0 : menu.isVisible) === true).map((menuItem, index) => React__default.createElement(MenuItem, {
9066
+ key: index,
9067
+ menu: menuItem
9068
+ }))), sideNavContent && React__default.createElement("div", {
9069
+ className: styles$U['page-layout__side-nav-content']
9070
+ }, sideNavContent))), React__default.createElement("div", {
9071
+ className: styles$U['page-layout__content']
9072
+ }, children));
9073
+ };
9074
+
9075
+ const PERSISTENT_BANNER_THEME = {
9076
+ UPSELL: 'upsell',
9077
+ INFO: 'info',
9078
+ DANGER: 'danger'
9079
+ };
9080
+
9081
+ var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR"};
9082
+
9083
+ const PersistentBanner = ({
9084
+ theme: _theme = PERSISTENT_BANNER_THEME.INFO,
9085
+ children,
9086
+ primaryButton,
9087
+ secondaryButton,
9088
+ onDismiss,
9089
+ onLoad,
9090
+ testId
9091
+ }) => {
9092
+ useEffect(() => {
9093
+ onLoad == null || onLoad();
9094
+ }, []);
9095
+ const BannerContent = () => React__default.createElement(Inline, {
9096
+ justifyContent: "center",
9097
+ alignItems: "center"
9098
+ }, children, primaryButton && React__default.cloneElement(primaryButton, _extends({
9099
+ theme: BUTTON_THEMES.HOLLOW_CONTRAST
9100
+ }, primaryButton.props)), secondaryButton && React__default.cloneElement(secondaryButton, _extends({
9101
+ theme: BUTTON_THEMES.LINK_CONTRAST
9102
+ }, secondaryButton.props)));
9103
+ return React__default.createElement("div", {
9104
+ className: classnames(styles$K['persistent-banner'], {
9105
+ [styles$K['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
9106
+ [styles$K['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
9107
+ [styles$K['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL
9108
+ }),
9109
+ "data-testid": testId
9110
+ }, onDismiss ? React__default.createElement(Inline, {
9111
+ flex: [1],
9112
+ alignItems: "center"
9113
+ }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
9114
+ theme: "link-contrast",
9115
+ onClick: onDismiss
9116
+ }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
9117
+ };
9118
+
9119
+ const getProgressMetric = (progress, maxValue) => {
9120
+ const updatedMaxValue = maxValue > 0 ? maxValue : 100;
9121
+ let updatedProgress = progress;
9122
+ if (updatedProgress > updatedMaxValue) {
9123
+ updatedProgress = updatedMaxValue;
9124
+ }
9125
+ if (updatedProgress < 0) {
9126
+ updatedProgress = 0;
9127
+ }
9128
+ return {
9129
+ progress: updatedProgress,
9130
+ maxValue: updatedMaxValue
9131
+ };
9132
+ };
9133
+ /**
9134
+ * This function calculates the progress bar so it can align in the center of each step
9135
+ */
9136
+ const getProgressMetricWithSteps = (progress, amountOfSteps) => {
9137
+ const maxValue = amountOfSteps * 2;
9138
+ let actualProgress = progress;
9139
+ if (progress < 0) {
9140
+ actualProgress = 0;
9141
+ }
9142
+ if (progress > 0) {
9143
+ const previousProgress = (progress - 1) * 2;
9144
+ actualProgress = previousProgress + 1;
9145
+ }
9146
+ if (actualProgress > maxValue) {
9147
+ actualProgress = maxValue;
9148
+ }
9149
+ return {
9150
+ progress: actualProgress,
9151
+ maxValue
9152
+ };
9153
+ };
9154
+
9155
+ const useProgress = (progress, maxValue, getMetric = getProgressMetric) => {
9156
+ const metric = getMetric(progress, maxValue);
9157
+ const percentage = metric.progress / metric.maxValue * 100;
9158
+ const elementProps = {
9159
+ 'aria-valuemax': metric.maxValue,
9160
+ 'aria-valuemin': 0,
9161
+ 'aria-valuenow': metric.progress,
9162
+ role: 'progressbar'
9163
+ };
9164
+ return {
9165
+ elementProps,
9166
+ metric: _extends({}, metric, {
9167
+ percentage
9168
+ })
9169
+ };
9170
+ };
9171
+
9172
+ var styles$J = {"circular-progress":"_UI0Fo","circular-progress__label":"_6PNwZ","circular-progress__track":"_alBLB","circular-progress__indicator":"_VADa6"};
9173
+
9174
+ const CircularProgress = ({
9175
+ progress,
9176
+ maxValue: _maxValue = 100,
9177
+ children,
9178
+ testId
9179
+ }) => {
9180
+ const {
9181
+ elementProps,
9182
+ metric
9183
+ } = useProgress(progress, _maxValue);
9184
+ const determinant = metric.percentage * 2.79;
9185
+ return React__default.createElement("div", _extends({}, elementProps, {
9186
+ className: styles$J['circular-progress'],
9187
+ "data-testid": testId
9188
+ }), React__default.createElement("svg", {
9189
+ viewBox: "0 0 100 100"
9190
+ }, React__default.createElement("circle", {
9191
+ cx: 50,
9192
+ cy: 50,
9193
+ r: 45,
9194
+ strokeWidth: "10px",
9195
+ className: styles$J['circular-progress__track']
9196
+ }), React__default.createElement("circle", {
9197
+ cx: 50,
9198
+ cy: 50,
9199
+ r: 45,
9200
+ strokeWidth: "10px",
9201
+ className: styles$J['circular-progress__indicator'],
9202
+ strokeDashoffset: "66",
9203
+ strokeDasharray: `${determinant} ${279 - determinant}`
9204
+ })), React__default.createElement("div", {
9205
+ className: styles$J['circular-progress__label']
9206
+ }, children || `${metric.progress}/${metric.maxValue}`));
9207
+ };
9208
+
9209
+ var styles$I = {"progress-bar":"_fWvQF","progress-bar__indicator":"_vd0xc","progress-bar__steps":"_8kdeO"};
9210
+
9211
+ const ProgressBar = ({
9212
+ progress,
9213
+ maxValue,
9214
+ testId,
9215
+ steps
9216
+ }) => {
9217
+ const isUsingStepsAsMaxValue = !maxValue && steps && steps.length > 0;
9218
+ const inferedMaxValue = !maxValue && steps && steps.length > 0 ? steps.length : maxValue;
9219
+ const {
9220
+ elementProps,
9221
+ metric
9222
+ } = useProgress(progress, inferedMaxValue || 100, isUsingStepsAsMaxValue ? getProgressMetricWithSteps : getProgressMetric);
9223
+ return React__default.createElement(Stack, null, React__default.createElement("div", _extends({}, elementProps, {
9224
+ className: styles$I['progress-bar'],
9225
+ "data-testid": testId
9226
+ }), React__default.createElement("div", {
9227
+ className: styles$I['progress-bar__indicator'],
9228
+ style: {
9229
+ width: `${metric.percentage}%`
9230
+ }
9231
+ })), steps && steps.length > 0 && React__default.createElement("div", {
9232
+ className: styles$I['progress-bar__steps']
9233
+ }, steps.map(step => React__default.createElement(Text, {
9234
+ key: step
9235
+ }, step))));
9236
+ };
9237
+
9238
+ 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"};
9239
+
9240
+ const SKELETON_COMPONENT = {
9241
+ AVATAR: 'avatar',
9242
+ AVATAR_SMALL: 'avatar--small',
9243
+ AVATAR_MEDIUM: 'avatar--medium',
9244
+ AVATAR_LARGE: 'avatar--large',
9245
+ AVATAR_XLARGE: 'avatar--xlarge',
9246
+ BUTTON: 'button',
9247
+ PILL: 'pill'
9248
+ };
9249
+
9250
+ const _excluded$f = ["as", "testId", "width", "height"];
9251
+ const Skeleton = _ref => {
9252
+ let {
9253
+ as,
9254
+ testId,
9255
+ width,
9256
+ height
9257
+ } = _ref,
9258
+ positionStyles = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9259
+ const positioning = usePositionStyles(positionStyles);
9260
+ return React__default.createElement("div", {
9261
+ "data-testid": testId,
9262
+ className: classnames(styles$H['skeleton'], {
9263
+ [styles$H['skeleton__avatar']]: as === SKELETON_COMPONENT.AVATAR,
9264
+ [styles$H['skeleton__avatar--small']]: as === SKELETON_COMPONENT.AVATAR_SMALL,
9265
+ [styles$H['skeleton__avatar--medium']]: as === SKELETON_COMPONENT.AVATAR_MEDIUM,
9266
+ [styles$H['skeleton__avatar--large']]: as === SKELETON_COMPONENT.AVATAR_LARGE,
9267
+ [styles$H['skeleton__avatar--xlarge']]: as === SKELETON_COMPONENT.AVATAR_XLARGE,
9268
+ [styles$H['skeleton__button']]: as === SKELETON_COMPONENT.BUTTON,
9269
+ [styles$H['skeleton__pill']]: as === SKELETON_COMPONENT.PILL
9270
+ }),
9271
+ style: _extends({}, positioning, {
9272
+ width: width,
9273
+ height: height
9274
+ })
9275
+ });
9276
+ };
9277
+
9278
+ var styles$G = {"data-table-row":"_hhDnr","data-table-row--clickable":"_ej5Ke","data-table-row--selected":"_qDTAh"};
9279
+
9280
+ var styles$F = {"actions":"_ffXgN"};
9281
+
9282
+ 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-"};
9283
+
9255
9284
  const DataTableCellElement = ({
9256
9285
  children,
9257
9286
  columnIndex,
@@ -9274,9 +9303,9 @@ const DataTableCellElement = ({
9274
9303
  const hasError = !!error;
9275
9304
  const errorMessage = error;
9276
9305
  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
9306
+ className: classnames(styles$E['data-table-cell__error-icon'], {
9307
+ [styles$E['data-table-cell__error-icon--right-align']]: isRightAligned,
9308
+ [styles$E['data-table-cell__error-icon--left-align']]: !isRightAligned
9280
9309
  })
9281
9310
  }, React__default.createElement(IconTimesOctagon, {
9282
9311
  size: "medium",
@@ -9284,17 +9313,17 @@ const DataTableCellElement = ({
9284
9313
  }));
9285
9314
  const TableCell = React__default.createElement("td", {
9286
9315
  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']),
9316
+ [styles$E['data-table-cell--invalid']]: hasError,
9317
+ [styles$E['data-table-cell--no-padding']]: _noPadding,
9318
+ [styles$E['data-table-cell--vertical-border']]: hasVerticalBorders
9319
+ }, styles$E['data-table-cell']),
9291
9320
  colSpan: colSpan,
9292
9321
  ref: ref
9293
9322
  }, 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
9323
+ className: classnames(styles$E['data-table-cell__content'], {
9324
+ [styles$E['data-table-cell__content--with-error']]: hasError,
9325
+ [styles$E['data-table-cell__content--right-align']]: isRightAligned,
9326
+ [styles$E['data-table-cell__content--loading']]: state === DATA_TABLE_STATES.BACKGROUND_LOADING
9298
9327
  })
9299
9328
  }, isRightAligned && icon, children, !isRightAligned && icon));
9300
9329
  return React__default.createElement(Tooltip, {
@@ -9318,7 +9347,7 @@ const DataTableRowActions = ({
9318
9347
  return React__default.createElement(DataTableCell, {
9319
9348
  columnIndex: columnIndex
9320
9349
  }, React__default.createElement("div", {
9321
- className: styles$N['actions'],
9350
+ className: styles$F['actions'],
9322
9351
  "data-testid": "data-table-dropdown-menu"
9323
9352
  }, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
9324
9353
  width: 45
@@ -9331,7 +9360,7 @@ const DataTableRowActions = ({
9331
9360
  })));
9332
9361
  };
9333
9362
 
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"};
9363
+ 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
9364
 
9336
9365
  const DataTableEditableCellElement = ({
9337
9366
  name,
@@ -9379,8 +9408,8 @@ const DataTableEditableCellElement = ({
9379
9408
  };
9380
9409
  const EditableCell = React__default.createElement("div", {
9381
9410
  className: classnames({
9382
- [styles$E['data-table-editable-cell--currency']]: _type === 'currency'
9383
- }, styles$E['data-table-editable-cell']),
9411
+ [styles$D['data-table-editable-cell--currency']]: _type === 'currency'
9412
+ }, styles$D['data-table-editable-cell']),
9384
9413
  "data-testid": testId,
9385
9414
  role: "cell"
9386
9415
  }, React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
@@ -9390,12 +9419,12 @@ const DataTableEditableCellElement = ({
9390
9419
  name: name,
9391
9420
  id: controllers.id,
9392
9421
  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
9422
+ [styles$D['data-table-editable-cell--right-aligned']]: isRightAligned,
9423
+ [styles$D['data-table-editable-cell--top-left']]: isTopLeftCell,
9424
+ [styles$D['data-table-editable-cell--top-right']]: isTopRightCell,
9425
+ [styles$D['data-table-editable-cell--bottom-left']]: isBottomLeftCell,
9426
+ [styles$D['data-table-editable-cell--bottom-right']]: isBottomRightCell,
9427
+ [styles$D['data-table-editable-cell--invalid']]: hasError
9399
9428
  }),
9400
9429
  type: _type === 'currency' ? 'number' : 'text',
9401
9430
  step: _type === 'currency' ? 'any' : '',
@@ -9421,7 +9450,7 @@ const DataTableEditableCellElement = ({
9421
9450
  };
9422
9451
  const DataTableEditableCell = forwardRef(DataTableEditableCellElement);
9423
9452
 
9424
- const _excluded$f = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
9453
+ const _excluded$e = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
9425
9454
  const DataTableRowComponent = (_ref, ref) => {
9426
9455
  let {
9427
9456
  children,
@@ -9432,13 +9461,13 @@ const DataTableRowComponent = (_ref, ref) => {
9432
9461
  hasDefaultCell = true,
9433
9462
  testId
9434
9463
  } = _ref,
9435
- nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9464
+ nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
9436
9465
  const {
9437
9466
  showActionMenu
9438
9467
  } = 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
9468
+ const styleNames = classnames(styles$G['data-table-row'], {
9469
+ [styles$G['data-table-row--clickable']]: onClick,
9470
+ [styles$G['data-table-row--selected']]: isSelected
9442
9471
  });
9443
9472
  const renderColumn = (columnElement, index) => {
9444
9473
  const isUsingDataTableCell = columnElement && typeof columnElement === 'object' && 'type' in columnElement && (columnElement == null ? void 0 : columnElement.type) === DataTableCell;
@@ -9529,7 +9558,7 @@ const calculateScrollState = scrollContainer => {
9529
9558
  return DATA_TABLE_SCROLL_STATES.NO_SCROLL;
9530
9559
  };
9531
9560
 
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"};
9561
+ 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
9562
 
9534
9563
  const useDataTableScrollState = stickyColumns => {
9535
9564
  const scrollContainerRef = useRef(null);
@@ -9571,7 +9600,7 @@ const useDataTableScrollState = stickyColumns => {
9571
9600
  };
9572
9601
  };
9573
9602
 
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"};
9603
+ 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
9604
 
9576
9605
  const DataTableCoverShadow = ({
9577
9606
  isShowingColumns,
@@ -9589,11 +9618,11 @@ const DataTableCoverShadow = ({
9589
9618
  return `calc(100% - ${headerHeight})`;
9590
9619
  };
9591
9620
  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
9621
+ className: classnames(styles$B['data-table-cover-shadow'], {
9622
+ [styles$B['data-table-cover-shadow--left']]: direction === 'left',
9623
+ [styles$B['data-table-cover-shadow--left-shadow']]: direction === 'left' && showShadow,
9624
+ [styles$B['data-table-cover-shadow--right']]: direction === 'right',
9625
+ [styles$B['data-table-cover-shadow--right-shadow']]: direction === 'right' && showShadow
9597
9626
  }),
9598
9627
  style: {
9599
9628
  // @ts-expect-error This difines a custom CSS variable
@@ -9655,13 +9684,13 @@ const DataTableStickyColumnsContainer = ({
9655
9684
  isShowingColumns: !!isShowingColumns,
9656
9685
  showShadow: state === 'EMPTY' ? false : stickyColumns === 'left'
9657
9686
  })), 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
9687
+ className: classnames(styles$C[containerClassName], {
9688
+ [styles$C[`${containerClassName}--with-footer`]]: isShowingFooter,
9689
+ [styles$C[`${containerClassName}--with-left-sticky-columns`]]: hasLeftColumnSticky,
9690
+ [styles$C[`${containerClassName}--with-left-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasLeftColumnSticky && hasScrollOnLeft : false,
9691
+ [styles$C[`${containerClassName}--with-right-sticky-columns`]]: hasRightColumnSticky,
9692
+ [styles$C[`${containerClassName}--with-right-sticky-columns-and-shadow`]]: state !== 'EMPTY' ? hasRightColumnSticky && hasScrollOnRight : false,
9693
+ [styles$C[`${containerClassName}--no-shadow`]]: noShadow
9665
9694
  }),
9666
9695
  onScroll: onScroll,
9667
9696
  ref: scrollContainerRef,
@@ -9669,11 +9698,11 @@ const DataTableStickyColumnsContainer = ({
9669
9698
  }, children));
9670
9699
  };
9671
9700
 
9672
- var styles$B = {"data-table-empty-state":"_fCHjG"};
9701
+ var styles$A = {"data-table-empty-state":"_fCHjG"};
9673
9702
 
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"};
9703
+ 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
9704
 
9676
- var styles$z = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
9705
+ var styles$y = {"empty-state-container-cta":"_X-dEs","empty-state-container-cta--inside-modal":"_63-SX"};
9677
9706
 
9678
9707
  const EmptyStateContainerCTA = ({
9679
9708
  isPaywall,
@@ -9690,8 +9719,8 @@ const EmptyStateContainerCTA = ({
9690
9719
  size: BUTTON_SIZES.MIN_WIDTH_100
9691
9720
  });
9692
9721
  return React__default.createElement("div", {
9693
- className: classnames(styles$z['empty-state-container-cta'], {
9694
- [styles$z['empty-state-container-cta--inside-modal']]: _isInsideModal
9722
+ className: classnames(styles$y['empty-state-container-cta'], {
9723
+ [styles$y['empty-state-container-cta--inside-modal']]: _isInsideModal
9695
9724
  })
9696
9725
  }, primaryButton, secondaryButton);
9697
9726
  };
@@ -9708,7 +9737,7 @@ const EmptyStateContainerStack = ({
9708
9737
  mediaComponent
9709
9738
  }) => {
9710
9739
  return React__default.createElement("div", {
9711
- className: styles$A['empty-state-container-stack'],
9740
+ className: styles$z['empty-state-container-stack'],
9712
9741
  "data-testid": testId
9713
9742
  }, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
9714
9743
  src: mediaUrl,
@@ -9725,7 +9754,7 @@ const EmptyStateContainerStack = ({
9725
9754
  as: "body",
9726
9755
  alignment: "center"
9727
9756
  }, title), React__default.createElement("div", {
9728
- className: styles$A['empty-state-container-stack__body']
9757
+ className: styles$z['empty-state-container-stack__body']
9729
9758
  }, children)), React__default.createElement(Stack, {
9730
9759
  space: 8,
9731
9760
  alignItems: "center"
@@ -9836,7 +9865,7 @@ const DataTableEmptyState = ({
9836
9865
  columnIndex: shouldRenderStickyLeftCell ? 1 : 0,
9837
9866
  colSpan: colSpan
9838
9867
  }, React__default.createElement("div", {
9839
- className: styles$B['data-table-empty-state']
9868
+ className: styles$A['data-table-empty-state']
9840
9869
  }, React__default.createElement(EmptyStateContainerStack, {
9841
9870
  mediaUrl: customImage,
9842
9871
  mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
@@ -9848,7 +9877,7 @@ const DataTableEmptyState = ({
9848
9877
  }, ''));
9849
9878
  };
9850
9879
 
9851
- const _excluded$e = ["items", "columns", "itemComponent", "maxHeight", "hasPrevious", "hasNext", "onPreviousClick", "onNextClick", "onSort", "isLoading", "showActionMenu", "footerComponent", "hasVerticalBorders", "testId", "skeletonRowLayout", "stickyColumns", "emptyState"];
9880
+ const _excluded$d = ["items", "columns", "itemComponent", "maxHeight", "hasPrevious", "hasNext", "onPreviousClick", "onNextClick", "onSort", "isLoading", "showActionMenu", "footerComponent", "hasVerticalBorders", "testId", "skeletonRowLayout", "stickyColumns", "emptyState"];
9852
9881
  const DataTable = _ref => {
9853
9882
  let {
9854
9883
  items,
@@ -9869,7 +9898,7 @@ const DataTable = _ref => {
9869
9898
  stickyColumns,
9870
9899
  emptyState
9871
9900
  } = _ref,
9872
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
9901
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
9873
9902
  const {
9874
9903
  dataProps
9875
9904
  } = getDataProps(otherProps);
@@ -9992,7 +10021,7 @@ const DataTable = _ref => {
9992
10021
  })), React__default.createElement(Pagination, null));
9993
10022
  };
9994
10023
 
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"};
10024
+ 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
10025
 
9997
10026
  const AccordionItem = props => {
9998
10027
  const {
@@ -10007,9 +10036,9 @@ const AccordionItem = props => {
10007
10036
  } = item;
10008
10037
  const isFocusedByClickRef = React__default.useRef(false);
10009
10038
  return React__default.createElement("div", {
10010
- className: styles$y['accordion-item']
10039
+ className: styles$x['accordion-item']
10011
10040
  }, React__default.createElement("button", {
10012
- className: styles$y['accordion-item__header'],
10041
+ className: styles$x['accordion-item__header'],
10013
10042
  onClick: () => {
10014
10043
  if (isOpen) {
10015
10044
  handleAccordionItemOpen(null);
@@ -10037,17 +10066,17 @@ const AccordionItem = props => {
10037
10066
  color: "grey-500",
10038
10067
  emphasis: "bold"
10039
10068
  }, title), React__default.createElement(IconChevronDown, {
10040
- className: styles$y[`accordion-item__icon${isOpen ? '--active' : ''}`],
10069
+ className: styles$x[`accordion-item__icon${isOpen ? '--active' : ''}`],
10041
10070
  color: 'grey-400'
10042
10071
  }))), React__default.createElement("div", {
10043
10072
  "data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
10044
- className: styles$y[`accordion-item__content${isOpen ? '--active' : ''}`]
10073
+ className: styles$x[`accordion-item__content${isOpen ? '--active' : ''}`]
10045
10074
  }, isOpen && React__default.createElement(Text, {
10046
10075
  color: "grey-500"
10047
10076
  }, content)));
10048
10077
  };
10049
10078
 
10050
- var styles$x = {"accordion":"_058SP"};
10079
+ var styles$w = {"accordion":"_058SP"};
10051
10080
 
10052
10081
  const Accordion = props => {
10053
10082
  const {
@@ -10067,7 +10096,7 @@ const Accordion = props => {
10067
10096
  isAccordionMounted: true
10068
10097
  }
10069
10098
  }, React__default.createElement("div", {
10070
- className: styles$x['accordion']
10099
+ className: styles$w['accordion']
10071
10100
  }, items.map((item, index) => {
10072
10101
  const id = item.id || index.toString();
10073
10102
  return React__default.createElement(AccordionItem, {
@@ -10081,7 +10110,7 @@ const Accordion = props => {
10081
10110
  })));
10082
10111
  };
10083
10112
 
10084
- var styles$w = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
10113
+ var styles$v = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
10085
10114
 
10086
10115
  const ActionList = ({
10087
10116
  children,
@@ -10092,15 +10121,15 @@ const ActionList = ({
10092
10121
  }) => {
10093
10122
  const translate = useTranslation('ActionList');
10094
10123
  return React__default.createElement("div", {
10095
- className: styles$w['action-list'],
10124
+ className: styles$v['action-list'],
10096
10125
  "data-testid": testId,
10097
10126
  style: {
10098
10127
  maxHeight: maxHeight
10099
10128
  }
10100
10129
  }, title && React__default.createElement("div", {
10101
- className: styles$w['action-list__title']
10130
+ className: styles$v['action-list__title']
10102
10131
  }, title), children ? children : React__default.createElement("div", {
10103
- className: styles$w['action-list__empty-state']
10132
+ className: styles$v['action-list__empty-state']
10104
10133
  }, React__default.createElement(EmptyStateContainerStack, {
10105
10134
  title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
10106
10135
  mediaUrl: emptyState == null ? void 0 : emptyState.image,
@@ -10261,21 +10290,21 @@ const useSelectFieldControllers = ({
10261
10290
  return controllers;
10262
10291
  };
10263
10292
 
10264
- var styles$v = {"custom-control":"_pXQqq"};
10293
+ var styles$u = {"custom-control":"_pXQqq"};
10265
10294
 
10266
- const _excluded$d = ["children"];
10295
+ const _excluded$c = ["children"];
10267
10296
  function CustomControl(_ref) {
10268
10297
  var _props$getValue;
10269
10298
  let {
10270
10299
  children
10271
10300
  } = _ref,
10272
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
10301
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
10273
10302
  const {
10274
10303
  SelectedOptionPrefix
10275
10304
  } = props.selectProps.componentsProps;
10276
10305
  const selectedOption = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue[0];
10277
10306
  return React__default.createElement(components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
10278
- className: styles$v['custom-control'],
10307
+ className: styles$u['custom-control'],
10279
10308
  style: {
10280
10309
  paddingLeft: selectedOption ? 8 : 0
10281
10310
  }
@@ -10288,12 +10317,12 @@ function CustomControl(_ref) {
10288
10317
  }, props)), children)) : children);
10289
10318
  }
10290
10319
 
10291
- const _excluded$c = ["children"];
10320
+ const _excluded$b = ["children"];
10292
10321
  function CustomOption(_ref) {
10293
10322
  let {
10294
10323
  children
10295
10324
  } = _ref,
10296
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
10325
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10297
10326
  const {
10298
10327
  UserCustomOption
10299
10328
  } = props.selectProps.componentsProps;
@@ -10437,14 +10466,14 @@ const CustomContainer = props => {
10437
10466
  }));
10438
10467
  };
10439
10468
 
10440
- var styles$u = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
10469
+ var styles$t = {"custom-menu-text-field":"_AAUjm","custom-menu-hr":"_mFLK9","custom-menu-div":"_1XpI4"};
10441
10470
 
10442
- const _excluded$b = ["children"];
10471
+ const _excluded$a = ["children"];
10443
10472
  function CustomMenu(_ref) {
10444
10473
  let {
10445
10474
  children
10446
10475
  } = _ref,
10447
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
10476
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10448
10477
  const {
10449
10478
  creatableButton,
10450
10479
  onMenuInputFocus,
@@ -10504,15 +10533,15 @@ function CustomMenu(_ref) {
10504
10533
  return React__default.createElement(components.Menu, _extends({}, props), React__default.createElement("div", {
10505
10534
  ref: containerRef
10506
10535
  }, children, React__default.createElement("hr", {
10507
- className: styles$u['custom-menu-hr']
10536
+ className: styles$t['custom-menu-hr']
10508
10537
  }), !showFooter ? React__default.createElement(CreatableButton, null) : React__default.createElement("div", {
10509
- className: styles$u['custom-menu-div']
10538
+ className: styles$t['custom-menu-div']
10510
10539
  }, React__default.createElement(Flex, {
10511
10540
  space: 4,
10512
10541
  flex: [1],
10513
10542
  flexItems: true
10514
10543
  }, React__default.createElement("input", {
10515
- className: classnames(styles$12['text-field'], styles$u['custom-menu-text-field']),
10544
+ className: classnames(styles$12['text-field'], styles$t['custom-menu-text-field']),
10516
10545
  autoCorrect: "off",
10517
10546
  autoComplete: "off",
10518
10547
  spellCheck: "false",
@@ -10548,7 +10577,7 @@ function CustomMenu(_ref) {
10548
10577
  }, __('createButton'))))));
10549
10578
  }
10550
10579
 
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"];
10580
+ 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
10581
  const useSelectField = _ref => {
10553
10582
  let {
10554
10583
  asToolbarFilter = false,
@@ -10575,7 +10604,7 @@ const useSelectField = _ref => {
10575
10604
  isSearchable = true,
10576
10605
  autoFocus
10577
10606
  } = _ref,
10578
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
10607
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$9);
10579
10608
  const [isMenuInputFocus, setIsMenuInputFocus] = useState(false);
10580
10609
  const onMenuInputFocus = isFocused => setIsMenuInputFocus(isFocused);
10581
10610
  const controllers = useSelectFieldControllers({
@@ -10647,7 +10676,7 @@ const useSelectField = _ref => {
10647
10676
  };
10648
10677
  };
10649
10678
 
10650
- var styles$t = {"select-field__suffix":"_vqC1M"};
10679
+ var styles$s = {"select-field__suffix":"_vqC1M"};
10651
10680
 
10652
10681
  /** Component to make possible choose from a predefined options. */
10653
10682
  const SelectField = props => {
@@ -10657,7 +10686,7 @@ const SelectField = props => {
10657
10686
  } = useSelectField(props);
10658
10687
  //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
10688
  const suffixWithMargin = props.suffix ? React__default.createElement("div", {
10660
- className: styles$t['select-field__suffix']
10689
+ className: styles$s['select-field__suffix']
10661
10690
  }, props.suffix) : undefined;
10662
10691
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
10663
10692
  prefix: props.prefix,
@@ -10699,9 +10728,9 @@ const ToolbarSelect = ({
10699
10728
  });
10700
10729
  };
10701
10730
 
10702
- var styles$s = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
10731
+ var styles$r = {"date-filter":"_PyXfe","date-filter--wide":"_P6ttU"};
10703
10732
 
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"};
10733
+ 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
10734
 
10706
10735
  const DATE_FILTER_MODE = {
10707
10736
  DAY: 'day',
@@ -10755,9 +10784,9 @@ const DateFilterDisplay = forwardRef(({
10755
10784
  onClick
10756
10785
  }, ref) => {
10757
10786
  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
10787
+ className: classnames(styles$q['date-filter-display'], {
10788
+ [styles$q['date-filter-display--wide']]: mode === DATE_FILTER_MODE.WEEK,
10789
+ [styles$q['date-filter-display--non-interactive']]: mode === DATE_FILTER_MODE.MONTH
10761
10790
  }),
10762
10791
  onClick: onClick,
10763
10792
  tabIndex: mode === DATE_FILTER_MODE.MONTH ? -1 : undefined,
@@ -10766,7 +10795,7 @@ const DateFilterDisplay = forwardRef(({
10766
10795
  space: 12,
10767
10796
  alignItems: "center"
10768
10797
  }, React__default.createElement("div", {
10769
- className: classnames(styles$r['date-filter-display__display-icon'])
10798
+ className: classnames(styles$q['date-filter-display__display-icon'])
10770
10799
  }, React__default.createElement(IconCalendarAlt, {
10771
10800
  size: "flexible",
10772
10801
  color: "grey-400"
@@ -10777,7 +10806,7 @@ const DateFilterDisplay = forwardRef(({
10777
10806
  })));
10778
10807
  });
10779
10808
 
10780
- var styles$q = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
10809
+ var styles$p = {"date-stepper":"_9wFtw","date-stepper--backward":"_OrtcR","date-stepper--forward":"_oYoUt"};
10781
10810
 
10782
10811
  const handleDateStepper = (date, mode, stepDirection, onChange) => {
10783
10812
  const step = stepDirection === STEP_DIRECTION.FORWARD ? 1 : -1;
@@ -10806,9 +10835,9 @@ const DateFilterStepper = ({
10806
10835
  date
10807
10836
  }) => {
10808
10837
  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
10838
+ className: classnames(styles$p['date-stepper'], {
10839
+ [styles$p['date-stepper--backward']]: stepDirection === STEP_DIRECTION.BACKWARD,
10840
+ [styles$p['date-stepper--forward']]: stepDirection === STEP_DIRECTION.FORWARD
10812
10841
  }),
10813
10842
  onClick: () => handleDateStepper(date, mode, stepDirection, onChange)
10814
10843
  }, children);
@@ -10830,8 +10859,8 @@ const DateFilter = ({
10830
10859
  const onClickOutside = useCallback(() => setCalendarOpen(false), [setCalendarOpen]);
10831
10860
  return React__default.createElement("div", {
10832
10861
  "data-testid": testId,
10833
- className: classnames(styles$s['date-filter'], {
10834
- [styles$s['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
10862
+ className: classnames(styles$r['date-filter'], {
10863
+ [styles$r['date-filter--wide']]: _mode === DATE_FILTER_MODE.WEEK
10835
10864
  })
10836
10865
  }, React__default.createElement(Inline, {
10837
10866
  space: 0
@@ -10868,7 +10897,7 @@ const DateFilter = ({
10868
10897
  }));
10869
10898
  };
10870
10899
 
10871
- var styles$p = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb","segmented-control__divider":"_GEqG9"};
10900
+ var styles$o = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb","segmented-control__divider":"_GEqG9"};
10872
10901
 
10873
10902
  const SegmentedControl = ({
10874
10903
  options,
@@ -10883,23 +10912,23 @@ const SegmentedControl = ({
10883
10912
  return index === options.length - 1;
10884
10913
  };
10885
10914
  return React__default.createElement("div", {
10886
- className: styles$p['segmented-control'],
10915
+ className: styles$o['segmented-control'],
10887
10916
  "data-testid": testId
10888
10917
  }, options.map((option, i) => React__default.createElement(React__default.Fragment, {
10889
10918
  key: option
10890
10919
  }, React__default.createElement("button", {
10891
10920
  onClick: () => onChange(option),
10892
- className: classnames(styles$p['segmented-control__button'], {
10893
- [styles$p['segmented-control__button--selected']]: isSelected(option)
10921
+ className: classnames(styles$o['segmented-control__button'], {
10922
+ [styles$o['segmented-control__button--selected']]: isSelected(option)
10894
10923
  })
10895
10924
  }, option), !isLastElement(i) && React__default.createElement("div", {
10896
- className: classnames(styles$p['segmented-control__divider'])
10925
+ className: classnames(styles$o['segmented-control__divider'])
10897
10926
  }))));
10898
10927
  };
10899
10928
 
10900
- var styles$o = {"form--standard-size":"_8-Ykj"};
10929
+ var styles$n = {"form--standard-size":"_8-Ykj"};
10901
10930
 
10902
- var styles$n = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
10931
+ var styles$m = {"form-section":"_3uYIj","form-section__title":"_2WdOf","form-section__subtitle":"_zybxx","form-section--no-margin":"_xT-U1"};
10903
10932
 
10904
10933
  const FormSection = ({
10905
10934
  children,
@@ -10912,13 +10941,13 @@ const FormSection = ({
10912
10941
  const content = React__default.createElement(Stack, null, (title || subtitle) && React__default.createElement(Stack, {
10913
10942
  space: 8
10914
10943
  }, title && React__default.createElement("h2", {
10915
- className: classnames(styles$n['form-section__title'])
10944
+ className: classnames(styles$m['form-section__title'])
10916
10945
  }, title), subtitle && React__default.createElement("h3", {
10917
- className: classnames(styles$n['form-section__subtitle'])
10946
+ className: classnames(styles$m['form-section__subtitle'])
10918
10947
  }, subtitle)), children);
10919
10948
  return React__default.createElement("div", {
10920
- className: classnames(styles$n['form-section'], {
10921
- [styles$n['form-section--no-margin']]: _noMargin || as === 'card'
10949
+ className: classnames(styles$m['form-section'], {
10950
+ [styles$m['form-section--no-margin']]: _noMargin || as === 'card'
10922
10951
  }),
10923
10952
  "data-testid": testId
10924
10953
  }, as === 'card' ? React__default.createElement(Card, {
@@ -10938,7 +10967,7 @@ const updateButtonProps = (child, newProps) => {
10938
10967
  }, newProps, child.props));
10939
10968
  };
10940
10969
 
10941
- var styles$m = {"form-footer":"_4ksfB"};
10970
+ var styles$l = {"form-footer":"_4ksfB"};
10942
10971
 
10943
10972
  const FormFooterActions = ({
10944
10973
  actions
@@ -10974,7 +11003,7 @@ const FormFooter = ({
10974
11003
  });
10975
11004
  const isInlineChildren = React__default.Children.count(children) === 1 && React__default.isValidElement(children) && children.type === Inline;
10976
11005
  return React__default.createElement("div", {
10977
- className: classnames(styles$m['form-footer']),
11006
+ className: classnames(styles$l['form-footer']),
10978
11007
  "data-testid": testId
10979
11008
  }, actions && React__default.createElement(FormFooterActions, {
10980
11009
  actions: actions
@@ -11012,13 +11041,13 @@ const Form = ({
11012
11041
  }, React__default.createElement("form", {
11013
11042
  onSubmit: onSubmit ? handleSubmit : formik == null ? void 0 : formik.handleSubmit,
11014
11043
  className: classnames({
11015
- [styles$o['form--standard-size']]: !_wide
11044
+ [styles$n['form--standard-size']]: !_wide
11016
11045
  }),
11017
11046
  "data-testid": testId
11018
11047
  }, _stackContent ? React__default.createElement(Stack, null, formattedChildren) : formattedChildren));
11019
11048
  };
11020
11049
 
11021
- var styles$l = {"form-row":"_xX-RS"};
11050
+ var styles$k = {"form-row":"_xX-RS"};
11022
11051
 
11023
11052
  const SIZE_25_PERCENT = '25%';
11024
11053
  const SIZE_33_PERCENT = '33.333%';
@@ -11045,14 +11074,14 @@ const FormRow = ({
11045
11074
  space: _space,
11046
11075
  testId: testId,
11047
11076
  alignItems: "stretch",
11048
- extraClass: styles$l['form-row']
11077
+ extraClass: styles$k['form-row']
11049
11078
  }, children, additionalColumns.map((_, index) => React__default.createElement("span", {
11050
11079
  key: index,
11051
11080
  "data-testid": "empty-cell"
11052
11081
  })));
11053
11082
  };
11054
11083
 
11055
- var styles$k = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
11084
+ var styles$j = {"text-field":"_JaB08","text-field--focus":"_62RIR","text-field--disabled":"_CDt23","text-field--invalid":"_wf4XP","text-field__toolbar":"_7xVsj"};
11056
11085
 
11057
11086
  const useGrowTextAreaRef = (minHeight, maxHeight, autoGrow, forwardedRef) => {
11058
11087
  const textareaRef = useRef(null);
@@ -11121,10 +11150,10 @@ const TextAreaField = ({
11121
11150
  return React__default.createElement(Field, _extends({}, fieldProps, {
11122
11151
  characterCount: controllers.value !== undefined && maxLength ? maxLength - controllers.value.length : undefined
11123
11152
  }), 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
11153
+ className: classnames(styles$j['text-field'], {
11154
+ [styles$j['text-field--invalid']]: hasError,
11155
+ [styles$j['text-field--disabled']]: disabled,
11156
+ [styles$j['text-field--focus']]: hasFocus
11128
11157
  }),
11129
11158
  ref: containerRef,
11130
11159
  onClick: event => {
@@ -11156,7 +11185,7 @@ const TextAreaField = ({
11156
11185
  ref: textAreaRef,
11157
11186
  maxLength: maxLength
11158
11187
  }), toolbar && React__default.createElement("div", {
11159
- className: styles$k['text-field__toolbar'],
11188
+ className: styles$j['text-field__toolbar'],
11160
11189
  id: `${controllers.id}-toolbar`,
11161
11190
  ref: toolbarRef,
11162
11191
  onClick: event => {
@@ -11168,13 +11197,13 @@ const TextAreaField = ({
11168
11197
  }, toolbar)));
11169
11198
  };
11170
11199
 
11171
- const _excluded$9 = ["prefix", "suffix"];
11200
+ const _excluded$8 = ["prefix", "suffix"];
11172
11201
  const TextFieldElement = (_ref, ref) => {
11173
11202
  let {
11174
11203
  prefix,
11175
11204
  suffix
11176
11205
  } = _ref,
11177
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
11206
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
11178
11207
  const {
11179
11208
  inputProps,
11180
11209
  fieldProps
@@ -11190,7 +11219,7 @@ const TextFieldElement = (_ref, ref) => {
11190
11219
  };
11191
11220
  const TextField = forwardRef(TextFieldElement);
11192
11221
 
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"};
11222
+ 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
11223
 
11195
11224
  const useMultiSelectFieldControllers = ({
11196
11225
  name,
@@ -11255,10 +11284,10 @@ const CreatableOption = ({
11255
11284
  };
11256
11285
  return React__default.createElement(React__default.Fragment, null, !isCreatingOption && React__default.createElement("div", {
11257
11286
  key: 'pill-select-field-create-option',
11258
- className: styles$j['pill-select-field']
11287
+ className: styles$i['pill-select-field']
11259
11288
  }, React__default.createElement("button", {
11260
11289
  "data-testid": testId ? `${testId}-create-option` : undefined,
11261
- className: styles$j['pill-select-field__add-new-input'],
11290
+ className: styles$i['pill-select-field__add-new-input'],
11262
11291
  onClick: () => {
11263
11292
  setIsCreatingOption(true);
11264
11293
  setNewOptionLabel('');
@@ -11267,9 +11296,9 @@ const CreatableOption = ({
11267
11296
  size: "small"
11268
11297
  }), createOptionLabel)), isCreatingOption && React__default.createElement("div", {
11269
11298
  key: 'pill-select-field-creating-option',
11270
- className: styles$j['pill-select-field']
11299
+ className: styles$i['pill-select-field']
11271
11300
  }, React__default.createElement("input", {
11272
- className: styles$j['pill-select-field__creating-input'],
11301
+ className: styles$i['pill-select-field__creating-input'],
11273
11302
  name: `${name}-pill-select-field-creating-option`,
11274
11303
  id: 'pill-select-field-creating-option',
11275
11304
  type: "text",
@@ -11290,7 +11319,7 @@ const CreatableOption = ({
11290
11319
  }
11291
11320
  }
11292
11321
  }), React__default.createElement("span", {
11293
- className: styles$j['pill-select-field__creating-custom-input']
11322
+ className: styles$i['pill-select-field__creating-custom-input']
11294
11323
  }, !newOptionLabel && React__default.createElement(Text, {
11295
11324
  as: "body",
11296
11325
  color: "grey-300"
@@ -11341,7 +11370,7 @@ const PillSelectField = ({
11341
11370
  }
11342
11371
  };
11343
11372
  return React__default.createElement("button", {
11344
- className: styles$j['pill-select-field__removable-icon'],
11373
+ className: styles$i['pill-select-field__removable-icon'],
11345
11374
  onClick: handleClick
11346
11375
  }, React__default.createElement(IconTimes, {
11347
11376
  size: "small"
@@ -11357,7 +11386,7 @@ const PillSelectField = ({
11357
11386
  const itemId = `${controllers.id}-${itemIdentifier}`;
11358
11387
  return React__default.createElement("div", {
11359
11388
  key: itemIdentifier,
11360
- className: styles$j['pill-select-field']
11389
+ className: styles$i['pill-select-field']
11361
11390
  }, React__default.createElement("input", {
11362
11391
  name: `${name}-${itemIdentifier}`,
11363
11392
  id: itemId,
@@ -11377,7 +11406,7 @@ const PillSelectField = ({
11377
11406
  controllers.onChange(newValue);
11378
11407
  }
11379
11408
  }), React__default.createElement("span", {
11380
- className: styles$j['pill-select-field__custom-input']
11409
+ className: styles$i['pill-select-field__custom-input']
11381
11410
  }, option.label, option.isRemovable && React__default.createElement(RemoveButton, {
11382
11411
  option: option
11383
11412
  })));
@@ -11426,9 +11455,9 @@ const useRadioGroupFieldContext = () => {
11426
11455
  return context;
11427
11456
  };
11428
11457
 
11429
- var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
11458
+ var styles$h = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
11430
11459
 
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"};
11460
+ 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
11461
 
11433
11462
  const RadioGroupBoxOption = ({
11434
11463
  value,
@@ -11445,7 +11474,7 @@ const RadioGroupBoxOption = ({
11445
11474
  id: inputId
11446
11475
  });
11447
11476
  return React__default.createElement("label", {
11448
- className: styles$h['radio-group-box-option']
11477
+ className: styles$g['radio-group-box-option']
11449
11478
  }, React__default.createElement("input", {
11450
11479
  type: "radio",
11451
11480
  "data-testid": testId,
@@ -11456,8 +11485,8 @@ const RadioGroupBoxOption = ({
11456
11485
  checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
11457
11486
  disabled: radioGroupContext.disabled || disabled
11458
11487
  }), 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
11488
+ className: classnames(styles$g['radio-group-box-option__box'], {
11489
+ [styles$g['radio-group-box-option__box--disabled']]: radioGroupContext.disabled || disabled
11461
11490
  })
11462
11491
  }, React__default.createElement(Stack, {
11463
11492
  space: 16,
@@ -11467,17 +11496,17 @@ const RadioGroupBoxOption = ({
11467
11496
  space: 8,
11468
11497
  alignItems: "center"
11469
11498
  }, 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
11499
+ className: classnames(styles$g['radio-group-box-option__label'], {
11500
+ [styles$g['radio-group-box-option__label--disabled']]: radioGroupContext.disabled || disabled
11472
11501
  })
11473
11502
  }, 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
11503
+ className: classnames(styles$g['radio-group-box-option__caption'], {
11504
+ [styles$g['radio-group-box-option__caption--disabled']]: radioGroupContext.disabled || disabled
11476
11505
  })
11477
11506
  }, caption)))));
11478
11507
  };
11479
11508
 
11480
- var styles$g = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
11509
+ var styles$f = {"radio-group-option":"_7fVpn","radio-group-option__caption":"_VD7SO","radio-group-option__custom-input":"_Yfxkl"};
11481
11510
 
11482
11511
  /** RadioGroupField form element. */
11483
11512
  const RadioGroupOption = ({
@@ -11499,7 +11528,7 @@ const RadioGroupOption = ({
11499
11528
  space: 8,
11500
11529
  alignItems: "center"
11501
11530
  }, React__default.createElement("div", {
11502
- className: styles$g['radio-group-option']
11531
+ className: styles$f['radio-group-option']
11503
11532
  }, React__default.createElement("input", {
11504
11533
  type: "radio",
11505
11534
  "data-testid": testId,
@@ -11510,11 +11539,11 @@ const RadioGroupOption = ({
11510
11539
  checked: radioGroupContext.value !== undefined ? radioGroupContext.value === value : undefined,
11511
11540
  disabled: radioGroupContext.disabled || disabled
11512
11541
  }), React__default.createElement("span", {
11513
- className: styles$g['radio-group-option__custom-input']
11542
+ className: styles$f['radio-group-option__custom-input']
11514
11543
  })), label && React__default.createElement(Label, {
11515
11544
  htmlFor: id
11516
11545
  }, label)), caption && React__default.createElement("div", {
11517
- className: styles$g['radio-group-option__caption']
11546
+ className: styles$f['radio-group-option__caption']
11518
11547
  }, React__default.createElement(Caption, {
11519
11548
  fieldId: id
11520
11549
  }, caption)));
@@ -11645,7 +11674,7 @@ const RadioGroupField = ({
11645
11674
  }, React__default.createElement(Stack, {
11646
11675
  space: _space
11647
11676
  }, label && React__default.createElement("div", {
11648
- className: styles$i['radio-group-field__label']
11677
+ className: styles$h['radio-group-field__label']
11649
11678
  }, label), React__default.createElement(Stack, {
11650
11679
  space: 8
11651
11680
  }, optionsType === OPTION_TYPES.RADIO ? React__default.createElement(RadioOptions, {
@@ -11657,21 +11686,21 @@ const RadioGroupField = ({
11657
11686
  testId: testId,
11658
11687
  space: _space
11659
11688
  }, children), caption && React__default.createElement("div", {
11660
- className: styles$i['radio-group-caption']
11689
+ className: styles$h['radio-group-caption']
11661
11690
  }, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
11662
11691
  };
11663
11692
 
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"};
11693
+ 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
11694
 
11666
- var styles$e = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
11695
+ var styles$d = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
11667
11696
 
11668
11697
  const PasswordCriteria = ({
11669
11698
  met,
11670
11699
  children
11671
11700
  }) => {
11672
11701
  return React__default.createElement("span", {
11673
- className: classnames(styles$e['password-criteria'], {
11674
- [styles$e['password-criteria--invalid']]: !met
11702
+ className: classnames(styles$d['password-criteria'], {
11703
+ [styles$d['password-criteria--invalid']]: !met
11675
11704
  })
11676
11705
  }, React__default.createElement(Inline, {
11677
11706
  space: met ? 4 : 8
@@ -11746,12 +11775,12 @@ const PasswordField = ({
11746
11775
  error: controllers.error
11747
11776
  };
11748
11777
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
11749
- className: styles$f['password-container']
11778
+ className: styles$e['password-container']
11750
11779
  }, React__default.createElement("input", {
11751
11780
  name: name,
11752
11781
  id: controllers.id,
11753
- className: classnames(styles$f['text-field'], {
11754
- [styles$f['text-field--invalid']]: hasError
11782
+ className: classnames(styles$e['text-field'], {
11783
+ [styles$e['text-field--invalid']]: hasError
11755
11784
  }),
11756
11785
  type: type,
11757
11786
  "data-testid": testId,
@@ -11764,8 +11793,8 @@ const PasswordField = ({
11764
11793
  onChange: controllers.onChange,
11765
11794
  onBlur: controllers.onBlur
11766
11795
  }), React__default.createElement("div", {
11767
- className: classnames(styles$f['password-toggle'], {
11768
- [styles$f['password-toggle--disabled']]: disabled
11796
+ className: classnames(styles$e['password-toggle'], {
11797
+ [styles$e['password-toggle--disabled']]: disabled
11769
11798
  }),
11770
11799
  onClick: toggleType,
11771
11800
  onKeyPress: toggleType,
@@ -11862,16 +11891,16 @@ const MultiSelectField = ({
11862
11891
  })));
11863
11892
  };
11864
11893
 
11865
- var styles$d = {"custom-list":"_cSkvD"};
11894
+ var styles$c = {"custom-list":"_cSkvD"};
11866
11895
 
11867
- const _excluded$8 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
11896
+ const _excluded$7 = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
11868
11897
  const CustomList = _ref => {
11869
11898
  let {
11870
11899
  children,
11871
11900
  hasMoreOptions,
11872
11901
  hasMoreOptionsFirstLoad
11873
11902
  } = _ref,
11874
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
11903
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11875
11904
  const __ = useTranslation('AsyncSelectField');
11876
11905
  let showFooter = hasMoreOptions;
11877
11906
  if (props.selectProps.inputValue === '' && typeof hasMoreOptionsFirstLoad === 'boolean') {
@@ -11880,11 +11909,11 @@ const CustomList = _ref => {
11880
11909
  return React__default.createElement(components.MenuList, _extends({}, props), React__default.createElement(Fragment, null, children, showFooter && props.options.length > 0 && React__default.createElement(Inline, {
11881
11910
  justifyContent: "center"
11882
11911
  }, React__default.createElement("div", {
11883
- className: styles$d['custom-list']
11912
+ className: styles$c['custom-list']
11884
11913
  }, __('moreOptionsPlaceholder')))));
11885
11914
  };
11886
11915
 
11887
- const _excluded$7 = ["loadOptions"];
11916
+ const _excluded$6 = ["loadOptions"];
11888
11917
  /**
11889
11918
  * 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
11919
  * Instead of passing a `options` props, this component requires a `loadOptions` prop.
@@ -11893,7 +11922,7 @@ const AsyncSelectField = _ref => {
11893
11922
  let {
11894
11923
  loadOptions
11895
11924
  } = _ref,
11896
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11925
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
11897
11926
  const [hasMoreOptions, setHasMoreOptions] = useState(false);
11898
11927
  const [hasMoreOptionsFirstLoad, setHasMoreOptionsFirstLoad] = useState();
11899
11928
  const [hasFirstLoadPerformed, setHasFirstLoadPerformed] = useState(false);
@@ -12173,7 +12202,7 @@ const getFormikError = error => {
12173
12202
  return undefined;
12174
12203
  };
12175
12204
 
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"};
12205
+ 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
12206
 
12178
12207
  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
12208
 
@@ -12237,9 +12266,9 @@ const DateRangeCalendar = ({
12237
12266
  const DAYS = getDays(translate);
12238
12267
  const MONTH_NAMES = getMonths(translate);
12239
12268
  return React__default.createElement(Portal, null, React__default.createElement("div", {
12240
- className: styles$H['calendar']
12269
+ className: styles$N['calendar']
12241
12270
  }, React__default.createElement("div", {
12242
- className: styles$H['calendar__overlay'],
12271
+ className: styles$N['calendar__overlay'],
12243
12272
  ref: ref => setCalendarRef(ref),
12244
12273
  style: _extends({}, calendarPosition, {
12245
12274
  zIndex: getZIndex('dropdown')
@@ -12430,9 +12459,9 @@ const DateRangeField = ({
12430
12459
  end
12431
12460
  } = controllers.value;
12432
12461
  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
12462
+ className: classnames(styles$b['date-range-field'], {
12463
+ [styles$b['date-range-field--invalid']]: hasError,
12464
+ [styles$b['date-range-field--disabled']]: disabled
12436
12465
  }),
12437
12466
  "data-testid": testId
12438
12467
  }, React__default.createElement(IconCalendarAlt, {
@@ -12687,7 +12716,7 @@ const TimeFieldDropdown = ({
12687
12716
  })));
12688
12717
  };
12689
12718
 
12690
- const _excluded$6 = ["interval", "startTime", "prefix", "endField", "duration", "subtractDuration", "calculateDuration", "timeFormat"];
12719
+ const _excluded$5 = ["interval", "startTime", "prefix", "endField", "duration", "subtractDuration", "calculateDuration", "timeFormat"];
12691
12720
  const TimeFieldElement = (_ref, forwardedRef) => {
12692
12721
  let {
12693
12722
  interval = 15,
@@ -12699,7 +12728,7 @@ const TimeFieldElement = (_ref, forwardedRef) => {
12699
12728
  calculateDuration,
12700
12729
  timeFormat
12701
12730
  } = _ref,
12702
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12731
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
12703
12732
  const {
12704
12733
  timeFormat: globalTimeFormat
12705
12734
  } = useProviderConfig();
@@ -12754,7 +12783,7 @@ const TimeRangeSelector = forwardRef(TimeFieldElement);
12754
12783
  */
12755
12784
  const TimeField = forwardRef(TimeFieldElement);
12756
12785
 
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"};
12786
+ 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
12787
 
12759
12788
  const TimeRangeEnd = ({
12760
12789
  startTime,
@@ -12875,9 +12904,9 @@ const TimeRangeField = ({
12875
12904
  end
12876
12905
  }) : getDuration(end, start, subtractDuration);
12877
12906
  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
12907
+ className: classnames(styles$a['time-range-field'], {
12908
+ [styles$a['time-range-field--invalid']]: hasError,
12909
+ [styles$a['time-range-field--disabled']]: disabled
12881
12910
  }),
12882
12911
  "data-testid": testId
12883
12912
  }, React__default.createElement(TimeRangeStart, {
@@ -12905,18 +12934,18 @@ const TimeRangeField = ({
12905
12934
  })));
12906
12935
  };
12907
12936
 
12908
- var styles$a = {"currency-field__mask-display":"_ddacu"};
12937
+ var styles$9 = {"currency-field__mask-display":"_ddacu"};
12909
12938
 
12910
12939
  const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
12911
12940
  const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
12912
12941
 
12913
- const _excluded$5 = ["currencySymbol", "step"];
12942
+ const _excluded$4 = ["currencySymbol", "step"];
12914
12943
  const CurrencyFieldElement = (_ref, forwardedRef) => {
12915
12944
  let {
12916
12945
  currencySymbol = '$',
12917
12946
  step = 0.01
12918
12947
  } = _ref,
12919
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
12948
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
12920
12949
  const [displayPadding, setDisplayPadding] = useState(CURRENCY_DISPLAY_DEFAULT_MARGIN);
12921
12950
  const internalRef = useRef(null);
12922
12951
  const ref = forwardedRef || internalRef;
@@ -12970,7 +12999,7 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
12970
12999
  inputProps.onFocus(e);
12971
13000
  }
12972
13001
  }))), showMask && !!inputProps.value && React__default.createElement("div", {
12973
- className: styles$a['currency-field__mask-display'],
13002
+ className: styles$9['currency-field__mask-display'],
12974
13003
  style: {
12975
13004
  marginLeft: displayPadding
12976
13005
  }
@@ -12983,7 +13012,7 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
12983
13012
  */
12984
13013
  const CurrencyField = forwardRef(CurrencyFieldElement);
12985
13014
 
12986
- const _excluded$4 = ["max", "min", "precision", "stepSize", "prefix", "suffix"];
13015
+ const _excluded$3 = ["max", "min", "precision", "stepSize", "prefix", "suffix"];
12987
13016
  const NumberFieldElement = (_ref, ref) => {
12988
13017
  let {
12989
13018
  max,
@@ -12993,7 +13022,7 @@ const NumberFieldElement = (_ref, ref) => {
12993
13022
  prefix,
12994
13023
  suffix
12995
13024
  } = _ref,
12996
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
13025
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
12997
13026
  const {
12998
13027
  inputProps,
12999
13028
  fieldProps
@@ -13068,12 +13097,12 @@ const NumberFieldElement = (_ref, ref) => {
13068
13097
  */
13069
13098
  const NumberField = forwardRef(NumberFieldElement);
13070
13099
 
13071
- const _excluded$3 = ["max"];
13100
+ const _excluded$2 = ["max"];
13072
13101
  const PercentageElement = (_ref, ref) => {
13073
13102
  let {
13074
13103
  max = 100
13075
13104
  } = _ref,
13076
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
13105
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
13077
13106
  return React__default.createElement(NumberField, _extends({}, allOtherProps, {
13078
13107
  suffix: "%",
13079
13108
  ref: ref,
@@ -13097,7 +13126,7 @@ const FormFeedback = ({
13097
13126
  }, children);
13098
13127
  };
13099
13128
 
13100
- var styles$9 = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
13129
+ var styles$8 = {"phone-field":"_Q0GfJ","phone-field__flag":"_-uOqW","phone-field__input":"_Hes9b","phone-field__input--with-square-borders":"_TEU6N"};
13101
13130
 
13102
13131
  const usePhoneFieldControllers = ({
13103
13132
  name,
@@ -14011,7 +14040,7 @@ const COUNTRIES = {
14011
14040
  };
14012
14041
  const COUNTRY_CODES = Object.keys(COUNTRIES);
14013
14042
 
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"};
14043
+ 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
14044
 
14016
14045
  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
14046
 
@@ -14022,21 +14051,21 @@ const CountrySelector = ({
14022
14051
  disabled
14023
14052
  }) => {
14024
14053
  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
14054
+ className: classnames(styles$7['country-selector'], {
14055
+ [styles$7['country-selector--with-error']]: hasError,
14056
+ [styles$7['country-selector--disabled']]: disabled
14028
14057
  })
14029
14058
  }, React__default.createElement(Dropdown, {
14030
14059
  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
14060
+ className: classnames(styles$7['country-selector__trigger'], {
14061
+ [styles$7['country-selector__trigger--with-error']]: hasError,
14062
+ [styles$7['country-selector__trigger--disabled']]: disabled
14034
14063
  })
14035
14064
  }, React__default.createElement(Inline, {
14036
14065
  space: 8,
14037
14066
  alignItems: "center"
14038
14067
  }, React__default.createElement("span", {
14039
- className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$8['country-selector__trigger-flag'])
14068
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$7['country-selector__trigger-flag'])
14040
14069
  }), React__default.createElement(IconChevronDown, {
14041
14070
  color: "grey-400",
14042
14071
  size: "medium"
@@ -14050,16 +14079,16 @@ const CountrySelector = ({
14050
14079
  alignItems: "center",
14051
14080
  space: 12
14052
14081
  }, React__default.createElement("span", {
14053
- className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$8['country-selector__flag'])
14082
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${countryCode.toLocaleLowerCase()}`], styles$7['country-selector__flag'])
14054
14083
  }), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)))))));
14055
14084
  };
14056
14085
 
14057
- const _excluded$2 = ["disabledCountry"];
14086
+ const _excluded$1 = ["disabledCountry"];
14058
14087
  const PhoneField = _ref => {
14059
14088
  let {
14060
14089
  disabledCountry = false
14061
14090
  } = _ref,
14062
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
14091
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
14063
14092
  const __ = useTranslation('PhoneField');
14064
14093
  const inputRef = useRef(null);
14065
14094
  const {
@@ -14123,7 +14152,7 @@ const PhoneField = _ref => {
14123
14152
  }
14124
14153
  };
14125
14154
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
14126
- className: styles$9['phone-field']
14155
+ className: styles$8['phone-field']
14127
14156
  }, !disabledCountry && React__default.createElement(CountrySelector, {
14128
14157
  country: selectedCountry,
14129
14158
  onChange: handleCountryChange,
@@ -14134,53 +14163,18 @@ const PhoneField = _ref => {
14134
14163
  space: 4,
14135
14164
  alignItems: "center"
14136
14165
  }, React__default.createElement("span", {
14137
- className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$9['country-selector__flag'])
14166
+ className: classnames(flagIcons['fi'], flagIcons[`fi-${selectedCountry.toLocaleLowerCase()}`], styles$8['country-selector__flag'])
14138
14167
  }), React__default.createElement("span", null, "+", getCountryCallingCode(selectedCountry))) : `+${getCountryCallingCode(selectedCountry)}`
14139
14168
  }, React__default.createElement("input", _extends({}, inputProps, {
14140
14169
  type: "tel",
14141
- className: classnames(inputProps.className, styles$9['phone-field__input'], {
14142
- [styles$9['phone-field__input--with-square-borders']]: !disabledCountry
14170
+ className: classnames(inputProps.className, styles$8['phone-field__input'], {
14171
+ [styles$8['phone-field__input--with-square-borders']]: !disabledCountry
14143
14172
  }),
14144
14173
  onChange: handlePhoneChange,
14145
14174
  onBlur: handlePhoneBlur
14146
14175
  })))));
14147
14176
  };
14148
14177
 
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
14178
  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
14179
 
14186
14180
  var styles$5 = {"avatar-image":"_iDN1j"};