@epam/uui 5.12.1 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -311,6 +311,9 @@ const settings = {
311
311
  48: '30',
312
312
  },
313
313
  },
314
+ notificationCard: {
315
+ action: '30',
316
+ },
314
317
  tag: {
315
318
  countIndicator: {
316
319
  18: '12',
@@ -589,7 +592,7 @@ const settings = {
589
592
  },
590
593
  };
591
594
 
592
- var css$1y = {"uui-typography":"bIupD9","uuiTypography":"bIupD9","hero-header":"p347HF","heroHeader":"p347HF","promo-header":"k6aEab","promoHeader":"k6aEab","uui-critical":"-IOrW5","uuiCritical":"-IOrW5","uui-info":"IZEWDd","uuiInfo":"IZEWDd","uui-success":"V890Ln","uuiSuccess":"V890Ln","uui-warning":"PifDTf","uuiWarning":"PifDTf","uui-highlight":"_5RNdLe","uuiHighlight":"_5RNdLe","uui-typography-size-12":"d5lkqG","uuiTypographySize12":"d5lkqG","uui-typography-size-14":"_4jPR0g","uuiTypographySize14":"_4jPR0g","uui-typography-size-16":"RyfqIy","uuiTypographySize16":"RyfqIy","root":"xxjvGU"};
595
+ var css$1y = {"uui-typography":"Sa-cTz","uuiTypography":"Sa-cTz","hero-header":"IRXXFf","heroHeader":"IRXXFf","promo-header":"SHCxw5","promoHeader":"SHCxw5","uui-critical":"OKgOoU","uuiCritical":"OKgOoU","uui-info":"OlzmxQ","uuiInfo":"OlzmxQ","uui-success":"xX-Hy-","uuiSuccess":"xX-Hy-","uui-warning":"YwDsDF","uuiWarning":"YwDsDF","uui-highlight":"j2RIro","uuiHighlight":"j2RIro","uui-typography-size-12":"UH-yOr","uuiTypographySize12":"UH-yOr","uui-typography-size-14":"bzlRD2","uuiTypographySize14":"bzlRD2","uui-typography-size-16":"lSIhFc","uuiTypographySize16":"lSIhFc","root":"HvMIHG"};
593
596
 
594
597
  function applyButtonMods(mods) {
595
598
  return [
@@ -607,7 +610,7 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
607
610
  };
608
611
  });
609
612
 
610
- var css$1x = {"root":"ib43H-"};
613
+ var css$1x = {"root":"AfKa9Z"};
611
614
 
612
615
  function applyIconButtonMods(props) {
613
616
  return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
@@ -644,7 +647,7 @@ function getIconClass(props) {
644
647
  return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
645
648
  }
646
649
 
647
- var css$1w = {"uui-typography":"W9w8AI","uuiTypography":"W9w8AI","hero-header":"aat7bG","heroHeader":"aat7bG","promo-header":"J5EtvE","promoHeader":"J5EtvE","uui-critical":"BVwpz5","uuiCritical":"BVwpz5","uui-info":"p1Gm-X","uuiInfo":"p1Gm-X","uui-success":"HXlqrI","uuiSuccess":"HXlqrI","uui-warning":"R--mrk","uuiWarning":"R--mrk","uui-highlight":"_18Cl0U","uuiHighlight":"_18Cl0U","uui-typography-size-12":"DGIzV8","uuiTypographySize12":"DGIzV8","uui-typography-size-14":"S9NUY6","uuiTypographySize14":"S9NUY6","uui-typography-size-16":"nlgiU2","uuiTypographySize16":"nlgiU2","root":"GT7p97"};
650
+ var css$1w = {"uui-typography":"aG1yb4","uuiTypography":"aG1yb4","hero-header":"KZL7GZ","heroHeader":"KZL7GZ","promo-header":"AKFgJQ","promoHeader":"AKFgJQ","uui-critical":"Mpe6nw","uuiCritical":"Mpe6nw","uui-info":"_9X6SvV","uuiInfo":"_9X6SvV","uui-success":"hr7Ih8","uuiSuccess":"hr7Ih8","uui-warning":"xsvl9J","uuiWarning":"xsvl9J","uui-highlight":"_0utKAL","uuiHighlight":"_0utKAL","uui-typography-size-12":"mQXsLk","uuiTypographySize12":"mQXsLk","uui-typography-size-14":"mEYuVk","uuiTypographySize14":"mEYuVk","uui-typography-size-16":"vZsskA","uuiTypographySize16":"vZsskA","root":"_8LiVxE"};
648
651
 
649
652
  const DEFAULT_COLOR = 'primary';
650
653
  const DEFAULT_WEIGHT = 'semibold';
@@ -668,14 +671,14 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
668
671
  ];
669
672
  const captionStyles = cx(uuiElement.caption, props.underline && `uui-underline-${props.underline}`, `uui-link-button-weight-${props.weight || DEFAULT_WEIGHT}`);
670
673
  const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : systemIcons.foldingArrow;
671
- return (React.createElement(Clickable, Object.assign({}, props, { type: "button", cx: rootStyles, ref: ref }),
674
+ return (React.createElement(Clickable, { ...props, type: "button", cx: rootStyles, ref: ref },
672
675
  props.icon && props.iconPosition !== 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
673
676
  props.caption && (React.createElement("div", { className: captionStyles }, props.caption)),
674
677
  props.icon && props.iconPosition === 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
675
678
  props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
676
679
  });
677
680
 
678
- var css$1v = {"root":"V3XUeU"};
681
+ var css$1v = {"root":"BHjFtp"};
679
682
 
680
683
  const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
681
684
  return (React__default.createElement("div", { ref: ref, className: cx([
@@ -687,7 +690,7 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
687
690
  ]) }, props.caption));
688
691
  });
689
692
 
690
- var css$1u = {"uui-typography":"PdMM0H","uuiTypography":"PdMM0H","hero-header":"Takt8q","heroHeader":"Takt8q","promo-header":"MSW-fd","promoHeader":"MSW-fd","uui-critical":"CXtEiX","uuiCritical":"CXtEiX","uui-info":"V0ULJX","uuiInfo":"V0ULJX","uui-success":"DVR-Iw","uuiSuccess":"DVR-Iw","uui-warning":"ywGozG","uuiWarning":"ywGozG","uui-highlight":"jMGB9c","uuiHighlight":"jMGB9c","uui-typography-size-12":"_31XAup","uuiTypographySize12":"_31XAup","uui-typography-size-14":"_40ujv-","uuiTypographySize14":"_40ujv-","uui-typography-size-16":"o5dyOP","uuiTypographySize16":"o5dyOP","root":"NLd4pG","withNotify":"eKXddi"};
693
+ var css$1u = {"uui-typography":"XgybYi","uuiTypography":"XgybYi","hero-header":"_--IdMl","heroHeader":"_--IdMl","promo-header":"zG-y2b","promoHeader":"zG-y2b","uui-critical":"HcFuw0","uuiCritical":"HcFuw0","uui-info":"z-5IS0","uuiInfo":"z-5IS0","uui-success":"gDjbEZ","uuiSuccess":"gDjbEZ","uui-warning":"_17p90c","uuiWarning":"_17p90c","uui-highlight":"CO-FJz","uuiHighlight":"CO-FJz","uui-typography-size-12":"TU0Qwg","uuiTypographySize12":"TU0Qwg","uui-typography-size-14":"C2oF-G","uuiTypographySize14":"C2oF-G","uui-typography-size-16":"maPK5D","uuiTypographySize16":"maPK5D","root":"jrYvx3","withNotify":"thcBak"};
691
694
 
692
695
  const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
693
696
  const styles = [
@@ -699,7 +702,12 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
699
702
  ];
700
703
  const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : systemIcons.foldingArrow;
701
704
  const ClearIcon = props.clearIcon ? props.clearIcon : systemIcons.clear;
702
- return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ role: 'tab', 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
705
+ return (React__default.createElement(Clickable, { ...props, rawProps: {
706
+ role: 'tab',
707
+ 'aria-haspopup': props.isDropdown,
708
+ 'aria-expanded': props.isOpen,
709
+ ...props.rawProps,
710
+ }, cx: styles, ref: ref },
703
711
  props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
704
712
  (props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
705
713
  props.caption,
@@ -710,7 +718,7 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
710
718
  props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
711
719
  });
712
720
 
713
- var css$1t = {"uui-typography":"NWoX0g","uuiTypography":"NWoX0g","hero-header":"UD7Ng9","heroHeader":"UD7Ng9","promo-header":"_3YreFr","promoHeader":"_3YreFr","uui-critical":"Pw8OQ0","uuiCritical":"Pw8OQ0","uui-info":"cYpzz4","uuiInfo":"cYpzz4","uui-success":"XQdwTF","uuiSuccess":"XQdwTF","uui-warning":"uWzrYD","uuiWarning":"uWzrYD","uui-highlight":"_2kIKzc","uuiHighlight":"_2kIKzc","uui-typography-size-12":"e5ugfF","uuiTypographySize12":"e5ugfF","uui-typography-size-14":"sChJbt","uuiTypographySize14":"sChJbt","uui-typography-size-16":"YFsysW","uuiTypographySize16":"YFsysW","root":"-a7FhF"};
721
+ var css$1t = {"uui-typography":"TwB5Mq","uuiTypography":"TwB5Mq","hero-header":"_-2C2rC","heroHeader":"_-2C2rC","promo-header":"r7JvNr","promoHeader":"r7JvNr","uui-critical":"HXS6Z3","uuiCritical":"HXS6Z3","uui-info":"cAsZDW","uuiInfo":"cAsZDW","uui-success":"xbCOkl","uuiSuccess":"xbCOkl","uui-warning":"SXT6JU","uuiWarning":"SXT6JU","uui-highlight":"_8SW1SU","uuiHighlight":"_8SW1SU","uui-typography-size-12":"K8Tj1g","uuiTypographySize12":"K8Tj1g","uui-typography-size-14":"ZaYLiI","uuiTypographySize14":"ZaYLiI","uui-typography-size-16":"eDWrT-","uuiTypographySize16":"eDWrT-","root":"TOEmn0"};
714
722
 
715
723
  function applyVerticalTabButtonMods() {
716
724
  return [css$1t.root, 'uui-vertical-tab-button'];
@@ -732,7 +740,7 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
732
740
  };
733
741
  var ForwardRef$C = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
734
742
 
735
- var css$1s = {"uui-typography":"LDavZ8","uuiTypography":"LDavZ8","hero-header":"-CcmzP","heroHeader":"-CcmzP","promo-header":"sUJ1S1","promoHeader":"sUJ1S1","uui-critical":"zE7rNh","uuiCritical":"zE7rNh","uui-info":"VFPayN","uuiInfo":"VFPayN","uui-success":"nYke7K","uuiSuccess":"nYke7K","uui-warning":"_1xpNhz","uuiWarning":"_1xpNhz","uui-highlight":"_97qfQd","uuiHighlight":"_97qfQd","uui-typography-size-12":"USS7ud","uuiTypographySize12":"USS7ud","uui-typography-size-14":"ODMwr-","uuiTypographySize14":"ODMwr-","uui-typography-size-16":"PtoTkF","uuiTypographySize16":"PtoTkF","root":"TIRiFl","mode-cell":"j-ZDOb","modeCell":"j-ZDOb"};
743
+ var css$1s = {"uui-typography":"qtMIOQ","uuiTypography":"qtMIOQ","hero-header":"dh8gE-","heroHeader":"dh8gE-","promo-header":"ULap8l","promoHeader":"ULap8l","uui-critical":"g4cEVM","uuiCritical":"g4cEVM","uui-info":"FZYaWn","uuiInfo":"FZYaWn","uui-success":"di-rDD","uuiSuccess":"di-rDD","uui-warning":"_1GUoTy","uuiWarning":"_1GUoTy","uui-highlight":"h8aXTP","uuiHighlight":"h8aXTP","uui-typography-size-12":"_9b0Xyb","uuiTypographySize12":"_9b0Xyb","uui-typography-size-14":"rT6uMb","uuiTypographySize14":"rT6uMb","uui-typography-size-16":"fViKtD","uuiTypographySize16":"fViKtD","root":"KUQaqG","mode-cell":"_--g61Q","modeCell":"_--g61Q"};
736
744
 
737
745
  function applyCheckboxMods(mods) {
738
746
  return [
@@ -767,7 +775,7 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
767
775
  };
768
776
  var ForwardRef$B = /*#__PURE__*/forwardRef(SvgRadioDotFill);
769
777
 
770
- var css$1r = {"uui-typography":"AOHxLm","uuiTypography":"AOHxLm","hero-header":"neEBaX","heroHeader":"neEBaX","promo-header":"NC2f0G","promoHeader":"NC2f0G","uui-critical":"xV-cGD","uuiCritical":"xV-cGD","uui-info":"NQHoSh","uuiInfo":"NQHoSh","uui-success":"KwnS8X","uuiSuccess":"KwnS8X","uui-warning":"AF-Pq2","uuiWarning":"AF-Pq2","uui-highlight":"VWybo3","uuiHighlight":"VWybo3","uui-typography-size-12":"_5QpM62","uuiTypographySize12":"_5QpM62","uui-typography-size-14":"UZjCd4","uuiTypographySize14":"UZjCd4","uui-typography-size-16":"NO-JyM","uuiTypographySize16":"NO-JyM","root":"bV1rpE"};
778
+ var css$1r = {"uui-typography":"_4TUpIr","uuiTypography":"_4TUpIr","hero-header":"gNpeVM","heroHeader":"gNpeVM","promo-header":"xe4NUR","promoHeader":"xe4NUR","uui-critical":"U6OefO","uuiCritical":"U6OefO","uui-info":"OQ7872","uuiInfo":"OQ7872","uui-success":"PQC9eD","uuiSuccess":"PQC9eD","uui-warning":"iED3zD","uuiWarning":"iED3zD","uui-highlight":"OgFxlm","uuiHighlight":"OgFxlm","uui-typography-size-12":"G0Gn4T","uuiTypographySize12":"G0Gn4T","uui-typography-size-14":"Xu9fEg","uuiTypographySize14":"Xu9fEg","uui-typography-size-16":"bjjW9O","uuiTypographySize16":"bjjW9O","root":"wAKIi5"};
771
779
 
772
780
  function applyRadioInputMods(mods) {
773
781
  return [
@@ -779,7 +787,7 @@ function applyRadioInputMods(mods) {
779
787
  }
780
788
  const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
781
789
 
782
- var css$1q = {"root":"cmvIEZ"};
790
+ var css$1q = {"root":"gH5Fqf"};
783
791
 
784
792
  function applySwitchMods(mods) {
785
793
  return [
@@ -790,50 +798,6 @@ function applySwitchMods(mods) {
790
798
  }
791
799
  const Switch = /* @__PURE__ */withMods(uuiComponents.Switch, applySwitchMods);
792
800
 
793
- /******************************************************************************
794
- Copyright (c) Microsoft Corporation.
795
-
796
- Permission to use, copy, modify, and/or distribute this software for any
797
- purpose with or without fee is hereby granted.
798
-
799
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
800
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
801
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
802
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
803
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
804
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
805
- PERFORMANCE OF THIS SOFTWARE.
806
- ***************************************************************************** */
807
- /* global Reflect, Promise, SuppressedError, Symbol */
808
-
809
-
810
- function __rest(s, e) {
811
- var t = {};
812
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
813
- t[p] = s[p];
814
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
815
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
816
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
817
- t[p[i]] = s[p[i]];
818
- }
819
- return t;
820
- }
821
-
822
- function __awaiter(thisArg, _arguments, P, generator) {
823
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
824
- return new (P || (P = Promise))(function (resolve, reject) {
825
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
826
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
827
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
828
- step((generator = generator.apply(thisArg, _arguments || [])).next());
829
- });
830
- }
831
-
832
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
833
- var e = new Error(message);
834
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
835
- };
836
-
837
801
  /**
838
802
  * Defines the different edit modes.
839
803
  */
@@ -847,7 +811,7 @@ var EditMode;
847
811
  EditMode["INLINE"] = "inline";
848
812
  })(EditMode || (EditMode = {}));
849
813
 
850
- var textInputCss = {"uui-typography":"itlFNh","uuiTypography":"itlFNh","hero-header":"Hflnhe","heroHeader":"Hflnhe","promo-header":"o9Ppz5","promoHeader":"o9Ppz5","uui-critical":"HelPiL","uuiCritical":"HelPiL","uui-info":"Qg1Xav","uuiInfo":"Qg1Xav","uui-success":"KEvgKL","uuiSuccess":"KEvgKL","uui-warning":"sUKZhY","uuiWarning":"sUKZhY","uui-highlight":"SEr32-","uuiHighlight":"SEr32-","uui-typography-size-12":"_8T1c4w","uuiTypographySize12":"_8T1c4w","uui-typography-size-14":"OLVcac","uuiTypographySize14":"OLVcac","uui-typography-size-16":"KRysab","uuiTypographySize16":"KRysab","root":"Kox7RY","mode-form":"ZGnfFG","modeForm":"ZGnfFG","mode-inline":"JXtpNF","modeInline":"JXtpNF","mode-cell":"_4d0l0S","modeCell":"_4d0l0S"};
814
+ var textInputCss = {"uui-typography":"zNZfXK","uuiTypography":"zNZfXK","hero-header":"dPMqL5","heroHeader":"dPMqL5","promo-header":"_-9rNHB","promoHeader":"_-9rNHB","uui-critical":"JSoiXR","uuiCritical":"JSoiXR","uui-info":"cjSNAr","uuiInfo":"cjSNAr","uui-success":"NpUtVh","uuiSuccess":"NpUtVh","uui-warning":"_7-8DUw","uuiWarning":"_7-8DUw","uui-highlight":"F-IVZ-","uuiHighlight":"F-IVZ-","uui-typography-size-12":"HHI3Fu","uuiTypographySize12":"HHI3Fu","uui-typography-size-14":"cxwqnl","uuiTypographySize14":"cxwqnl","uui-typography-size-16":"qFJqPp","uuiTypographySize16":"qFJqPp","root":"e6tX96","mode-form":"_15B2D0","modeForm":"_15B2D0","mode-inline":"nLXx2z","modeInline":"nLXx2z","mode-cell":"e4lC7n","modeCell":"e4lC7n"};
851
815
 
852
816
  const DEFAULT_MODE$3 = EditMode.FORM;
853
817
  function applyTextInputMods(mods) {
@@ -864,25 +828,31 @@ const TextInput = /* @__PURE__ */withMods(TextInput$1, applyTextInputMods, () =>
864
828
  }));
865
829
  const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
866
830
  // analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
867
- const textInputProps = __rest(props, []);
831
+ const { ...textInputProps } = props;
868
832
  delete textInputProps.getValueChangeAnalyticsEvent;
869
- return (React__default.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
870
- var _a;
833
+ return (React__default.createElement(IEditableDebouncer, { ...props, render: (iEditable) => {
871
834
  const defaultOnCancel = () => iEditable.onValueChange('');
872
- return (React__default.createElement(TextInput, Object.assign({ icon: systemIcons.search, onCancel: (_a = props.onCancel) !== null && _a !== void 0 ? _a : defaultOnCancel, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable)));
873
- } })));
835
+ return (React__default.createElement(TextInput, { icon: systemIcons.search, onCancel: props.onCancel ?? defaultOnCancel, type: "search", inputMode: "search", ref: ref, ...textInputProps, ...iEditable }));
836
+ } }));
874
837
  });
875
838
 
876
- var css$1p = {"root":"XZQS9S"};
839
+ var css$1p = {"root":"pPad8U"};
877
840
 
878
841
  const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1p.root, 'uui-control-group']);
879
842
 
880
843
  function MultiSwitchComponent(props, ref) {
881
- return (React.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
844
+ return (React.createElement(ControlGroup, { ref: ref, rawProps: {
845
+ ...props.rawProps,
846
+ role: 'tablist',
847
+ 'aria-invalid': props.isInvalid,
848
+ 'aria-required': props.isRequired,
849
+ 'aria-disabled': props.isDisabled,
850
+ 'aria-readonly': props.isReadonly,
851
+ } }, props.items.map((item, index) => (React.createElement(Button, { ...props, ...item, isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } })))));
882
852
  }
883
853
  const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
884
854
 
885
- var css$1o = {"uui-typography":"_5isZrB","uuiTypography":"_5isZrB","hero-header":"VbExYC","heroHeader":"VbExYC","promo-header":"xfcoCt","promoHeader":"xfcoCt","uui-critical":"rg2Ool","uuiCritical":"rg2Ool","uui-info":"MuxqnA","uuiInfo":"MuxqnA","uui-success":"j3iugP","uuiSuccess":"j3iugP","uui-warning":"KWSVFm","uuiWarning":"KWSVFm","uui-highlight":"_0LBykU","uuiHighlight":"_0LBykU","uui-typography-size-12":"DtWWZw","uuiTypographySize12":"DtWWZw","uui-typography-size-14":"_-5v2kp","uuiTypographySize14":"_-5v2kp","uui-typography-size-16":"R245Rh","uuiTypographySize16":"R245Rh","root":"-xNKco","mode-form":"jD8FIM","modeForm":"jD8FIM","mode-cell":"ftZOMN","modeCell":"ftZOMN"};
855
+ var css$1o = {"uui-typography":"rMsYN8","uuiTypography":"rMsYN8","hero-header":"n04gOH","heroHeader":"n04gOH","promo-header":"WjExl1","promoHeader":"WjExl1","uui-critical":"_0ST-84","uuiCritical":"_0ST-84","uui-info":"_5UH-0x","uuiInfo":"_5UH-0x","uui-success":"oX-1tn","uuiSuccess":"oX-1tn","uui-warning":"uFjU02","uuiWarning":"uFjU02","uui-highlight":"NY6R1o","uuiHighlight":"NY6R1o","uui-typography-size-12":"ehAD-H","uuiTypographySize12":"ehAD-H","uui-typography-size-14":"emkF1s","uuiTypographySize14":"emkF1s","uui-typography-size-16":"H1xgt2","uuiTypographySize16":"H1xgt2","root":"_1CJBF9","mode-form":"iqOC6T","modeForm":"iqOC6T","mode-cell":"pXUx5n","modeCell":"pXUx5n"};
886
856
 
887
857
  const DEFAULT_MODE$2 = EditMode.FORM;
888
858
  function applyNumericInputMods(mods) {
@@ -894,16 +864,15 @@ function applyNumericInputMods(mods) {
894
864
  ];
895
865
  }
896
866
  const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMods, (props) => {
897
- var _a, _b;
898
867
  return {
899
868
  upIcon: systemIcons.foldingArrow,
900
869
  downIcon: systemIcons.foldingArrow,
901
- align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
902
- disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
870
+ align: props.align ?? (props.mode === 'cell' ? 'right' : 'left'),
871
+ disableArrows: props.disableArrows ?? props.mode === 'cell',
903
872
  };
904
873
  });
905
874
 
906
- var css$1n = {"uui-typography":"A3nyRJ","uuiTypography":"A3nyRJ","hero-header":"Os8J-1","heroHeader":"Os8J-1","promo-header":"vmwVvr","promoHeader":"vmwVvr","uui-critical":"_2KzENR","uuiCritical":"_2KzENR","uui-info":"_1SUkPN","uuiInfo":"_1SUkPN","uui-success":"gINMIz","uuiSuccess":"gINMIz","uui-warning":"qa69r3","uuiWarning":"qa69r3","uui-highlight":"Totjh9","uuiHighlight":"Totjh9","uui-typography-size-12":"PodXWZ","uuiTypographySize12":"PodXWZ","uui-typography-size-14":"MsDmsV","uuiTypographySize14":"MsDmsV","uui-typography-size-16":"FFViZV","uuiTypographySize16":"FFViZV","root":"nbq0kq","mode-form":"axKQQe","modeForm":"axKQQe","mode-cell":"sOMV-b","modeCell":"sOMV-b","mode-inline":"SnU1U-","modeInline":"SnU1U-"};
875
+ var css$1n = {"uui-typography":"_2cvTZo","uuiTypography":"_2cvTZo","hero-header":"lo8H-2","heroHeader":"lo8H-2","promo-header":"zbXpIF","promoHeader":"zbXpIF","uui-critical":"AeuuDQ","uuiCritical":"AeuuDQ","uui-info":"lPC3Mo","uuiInfo":"lPC3Mo","uui-success":"YA8xCI","uuiSuccess":"YA8xCI","uui-warning":"GAiOOz","uuiWarning":"GAiOOz","uui-highlight":"HlYYle","uuiHighlight":"HlYYle","uui-typography-size-12":"zWY1Xv","uuiTypographySize12":"zWY1Xv","uui-typography-size-14":"vInp5q","uuiTypographySize14":"vInp5q","uui-typography-size-16":"KeWRMd","uuiTypographySize16":"KeWRMd","root":"IPX66g","mode-form":"I4xYnV","modeForm":"I4xYnV","mode-cell":"Ji-49Z","modeCell":"Ji-49Z","mode-inline":"-dhg43","modeInline":"-dhg43"};
907
876
 
908
877
  const DEFAULT_MODE$1 = EditMode.FORM;
909
878
  function applyTextAreaMods(mods) {
@@ -1004,9 +973,9 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
1004
973
  };
1005
974
  var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
1006
975
 
1007
- var css$1m = {"uui-typography":"vJwJoc","uuiTypography":"vJwJoc","hero-header":"Eo-EXu","heroHeader":"Eo-EXu","promo-header":"m-EHYK","promoHeader":"m-EHYK","uui-critical":"YT0kAb","uuiCritical":"YT0kAb","uui-info":"C6RLre","uuiInfo":"C6RLre","uui-success":"DCmRGZ","uuiSuccess":"DCmRGZ","uui-warning":"P73Tbz","uuiWarning":"P73Tbz","uui-highlight":"OBvmsV","uuiHighlight":"OBvmsV","uui-typography-size-12":"-c-a49","uuiTypographySize12":"-c-a49","uui-typography-size-14":"iAjmQe","uuiTypographySize14":"iAjmQe","uui-typography-size-16":"y605zN","uuiTypographySize16":"y605zN","root":"qmjc9i","main-path":"PpElRq","mainPath":"PpElRq","content-wrapper":"_2vejOj","contentWrapper":"_2vejOj","content":"mmcv6z","action-wrapper":"Ov50HC","actionWrapper":"Ov50HC","icon-wrapper":"klgG3A","iconWrapper":"klgG3A","icon":"JcLe-R","close-icon":"rleKFU","closeIcon":"rleKFU"};
976
+ var css$1m = {"uui-typography":"jRaa8D","uuiTypography":"jRaa8D","hero-header":"_5zMClf","heroHeader":"_5zMClf","promo-header":"le1VyV","promoHeader":"le1VyV","uui-critical":"PtuEcv","uuiCritical":"PtuEcv","uui-info":"Wytrw3","uuiInfo":"Wytrw3","uui-success":"qz-JX9","uuiSuccess":"qz-JX9","uui-warning":"mp7hbs","uuiWarning":"mp7hbs","uui-highlight":"LpSm4-","uuiHighlight":"LpSm4-","uui-typography-size-12":"biN2HJ","uuiTypographySize12":"biN2HJ","uui-typography-size-14":"oBY-aw","uuiTypographySize14":"oBY-aw","uui-typography-size-16":"MzYqIi","uuiTypographySize16":"MzYqIi","root":"JkJJ3o","main-path":"Y9AcuA","mainPath":"Y9AcuA","content-wrapper":"_4S7Zwf","contentWrapper":"_4S7Zwf","content":"kC3V8O","action-wrapper":"JJsCnc","actionWrapper":"JJsCnc","icon-wrapper":"PYgP4U","iconWrapper":"PYgP4U","icon":"A71rtF","close-icon":"iXawI-","closeIcon":"iXawI-"};
1008
977
 
1009
- const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`) }, props.rawProps),
978
+ const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`), ...props.rawProps },
1010
979
  React.createElement("div", { className: css$1m.mainPath },
1011
980
  React.createElement("div", { className: css$1m.contentWrapper },
1012
981
  props.icon && (React.createElement("div", { className: css$1m.iconWrapper },
@@ -1015,14 +984,14 @@ const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createEleme
1015
984
  props.children,
1016
985
  props.actions && (React.createElement("div", { className: css$1m.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1m.actionLink, size: settings.sizes.alert.action[props.size || settings.sizes.defaults.alert] }))))))),
1017
986
  props.onClose && React.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1m.closeIcon })))));
1018
- const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
1019
- const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
1020
- const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
1021
- const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "error", ref: ref }, props)));
987
+ const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: ForwardRef$z, color: "warning", ref: ref, ...props }));
988
+ const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: ForwardRef$A, color: "success", ref: ref, ...props }));
989
+ const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: ForwardRef$x, color: "info", ref: ref, ...props }));
990
+ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: ForwardRef$y, color: "error", ref: ref, ...props }));
1022
991
 
1023
992
  const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
1024
993
 
1025
- var css$1l = {"root":"-aVEmC"};
994
+ var css$1l = {"root":"HWrqOp"};
1026
995
 
1027
996
  function applyDropdownContainerMods(mods) {
1028
997
  return [
@@ -1033,7 +1002,7 @@ function applyDropdownContainerMods(mods) {
1033
1002
  }
1034
1003
  const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
1035
1004
 
1036
- var css$1k = {"uui-typography":"DiGFF7","uuiTypography":"DiGFF7","hero-header":"tsXnF2","heroHeader":"tsXnF2","promo-header":"T-RE2k","promoHeader":"T-RE2k","uui-critical":"s1alFY","uuiCritical":"s1alFY","uui-info":"yRrHZQ","uuiInfo":"yRrHZQ","uui-success":"oN-ack","uuiSuccess":"oN-ack","uui-warning":"CGZVVJ","uuiWarning":"CGZVVJ","uui-highlight":"uY-hLJ","uuiHighlight":"uY-hLJ","uui-typography-size-12":"YSerdq","uuiTypographySize12":"YSerdq","uui-typography-size-14":"YlqN-o","uuiTypographySize14":"YlqN-o","uui-typography-size-16":"uXxsiC","uuiTypographySize16":"uXxsiC","submenu-root-item-rtl":"G76Tlk","submenuRootItemRtl":"G76Tlk","icon-after":"e8LKIY","iconAfter":"e8LKIY","submenu-root-item":"veENN6","submenuRootItem":"veENN6","icon-check":"-TyFKU","iconCheck":"-TyFKU","splitter-root":"_1oOz-b","splitterRoot":"_1oOz-b","splitter":"inp674","header-root":"vXhisg","headerRoot":"vXhisg","item-root":"nnN7fw","itemRoot":"nnN7fw","icon":"TXyWIZ","link":"hiAbrw","indent":"A3Du2G","selected-mark":"HlxxCm","selectedMark":"HlxxCm"};
1005
+ var css$1k = {"uui-typography":"JxGk3r","uuiTypography":"JxGk3r","hero-header":"U6BWbg","heroHeader":"U6BWbg","promo-header":"TK2Rij","promoHeader":"TK2Rij","uui-critical":"P-1cNw","uuiCritical":"P-1cNw","uui-info":"i9sspi","uuiInfo":"i9sspi","uui-success":"a-xZje","uuiSuccess":"a-xZje","uui-warning":"_0brAkU","uuiWarning":"_0brAkU","uui-highlight":"BEpawL","uuiHighlight":"BEpawL","uui-typography-size-12":"kvpapd","uuiTypographySize12":"kvpapd","uui-typography-size-14":"_6tdfOc","uuiTypographySize14":"_6tdfOc","uui-typography-size-16":"F2vjmf","uuiTypographySize16":"F2vjmf","submenu-root-item-rtl":"PbLbKR","submenuRootItemRtl":"PbLbKR","icon-after":"Jc744p","iconAfter":"Jc744p","submenu-root-item":"nRHg76","submenuRootItem":"nRHg76","icon-check":"Hhxuku","iconCheck":"Hhxuku","splitter-root":"_5d7Zs5","splitterRoot":"_5d7Zs5","splitter":"h7w0bB","header-root":"qJutrj","headerRoot":"qJutrj","item-root":"_32NRSO","itemRoot":"_32NRSO","icon":"S-4M7l","link":"OdHTMp","indent":"nZtg3u","selected-mark":"m7urWr","selectedMark":"m7urWr"};
1037
1006
 
1038
1007
  var IDropdownControlKeys;
1039
1008
  (function (IDropdownControlKeys) {
@@ -1069,10 +1038,10 @@ function DropdownMenuContainer(props) {
1069
1038
  props.onClose();
1070
1039
  }
1071
1040
  };
1072
- return (React__default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, width: props.minWidth, lockProps: { onKeyDown: handleArrowKeys }, cx: [props.cx] })));
1041
+ return (React__default.createElement(DropdownContainer, { ...props, rawProps: { ...props.rawProps, role: 'menu' }, ref: menuRef, width: props.minWidth, lockProps: { onKeyDown: handleArrowKeys }, cx: [props.cx] }));
1073
1042
  }
1074
1043
  const DropdownMenuBody = /* @__PURE__ */withMods(DropdownMenuContainer, () => ['uui-dropdownMenu-body'], (props) => {
1075
- return (Object.assign({ closeOnKey: IDropdownControlKeys.ESCAPE }, props));
1044
+ return ({ closeOnKey: IDropdownControlKeys.ESCAPE, ...props });
1076
1045
  });
1077
1046
  const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1078
1047
  const context = useContext(UuiContext);
@@ -1139,11 +1108,8 @@ function DropdownSubMenu(props) {
1139
1108
  },
1140
1109
  },
1141
1110
  ];
1142
- const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
1143
- return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
1144
- var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
1145
- return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
1146
- } }));
1111
+ const isRtl = window?.document.dir === 'rtl';
1112
+ return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
1147
1113
  }
1148
1114
  function DropdownMenuSwitchButton(props) {
1149
1115
  const context = useContext(UuiContext);
@@ -1166,7 +1132,7 @@ function DropdownMenuSwitchButton(props) {
1166
1132
  React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
1167
1133
  }
1168
1134
 
1169
- var css$1j = {"uui-typography":"XKK1zZ","uuiTypography":"XKK1zZ","hero-header":"VvIFOi","heroHeader":"VvIFOi","promo-header":"fI8u9G","promoHeader":"fI8u9G","uui-critical":"A8DPKi","uuiCritical":"A8DPKi","uui-info":"Arby7t","uuiInfo":"Arby7t","uui-success":"PAZjcE","uuiSuccess":"PAZjcE","uui-warning":"wLd9k6","uuiWarning":"wLd9k6","uui-highlight":"UrJpWA","uuiHighlight":"UrJpWA","uui-typography-size-12":"qLUDBb","uuiTypographySize12":"qLUDBb","uui-typography-size-14":"YfDsoL","uuiTypographySize14":"YfDsoL","uui-typography-size-16":"_0rcVnx","uuiTypographySize16":"_0rcVnx","root":"B8TwvW","mode-block":"Ieg-Fb","modeBlock":"Ieg-Fb","mode-inline":"CIPZOH","modeInline":"CIPZOH","padding-0":"CEN91C","padding0":"CEN91C","padding-6":"GBHp3a","padding6":"GBHp3a","padding-12":"ehWx9d","padding12":"ehWx9d","padding-18":"yxANkA","padding18":"yxANkA"};
1135
+ var css$1j = {"uui-typography":"CgKQYP","uuiTypography":"CgKQYP","hero-header":"_6vMJ6d","heroHeader":"_6vMJ6d","promo-header":"h1uEZP","promoHeader":"h1uEZP","uui-critical":"k-2Z6-","uuiCritical":"k-2Z6-","uui-info":"fhs9Z6","uuiInfo":"fhs9Z6","uui-success":"_6L8ufS","uuiSuccess":"_6L8ufS","uui-warning":"VSqlSE","uuiWarning":"VSqlSE","uui-highlight":"no1Rap","uuiHighlight":"no1Rap","uui-typography-size-12":"xUUQtO","uuiTypographySize12":"xUUQtO","uui-typography-size-14":"kygc6x","uuiTypographySize14":"kygc6x","uui-typography-size-16":"-HoNFq","uuiTypographySize16":"-HoNFq","root":"bU4gN9","mode-block":"yUUbQ5","modeBlock":"yUUbQ5","mode-inline":"fF4eBM","modeInline":"fF4eBM","padding-0":"Z6RG-t","padding0":"Z6RG-t","padding-6":"EaUPkb","padding6":"EaUPkb","padding-12":"wdBKKF","padding12":"wdBKKF","padding-18":"BhqqS9","padding18":"BhqqS9"};
1170
1136
 
1171
1137
  function applyAccordionMods(mods) {
1172
1138
  return [
@@ -1179,7 +1145,7 @@ const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordio
1179
1145
  dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
1180
1146
  }));
1181
1147
 
1182
- var css$1i = {"uui-typography":"_3NfhKO","uuiTypography":"_3NfhKO","hero-header":"ENoZCV","heroHeader":"ENoZCV","promo-header":"zcSQ7K","promoHeader":"zcSQ7K","uui-critical":"WhGux-","uuiCritical":"WhGux-","uui-info":"wZiy1L","uuiInfo":"wZiy1L","uui-success":"wdkAVa","uuiSuccess":"wdkAVa","uui-warning":"Kdv-SN","uuiWarning":"Kdv-SN","uui-highlight":"XyBadb","uuiHighlight":"XyBadb","uui-typography-size-12":"_2dDPok","uuiTypographySize12":"_2dDPok","uui-typography-size-14":"drrDaG","uuiTypographySize14":"drrDaG","uui-typography-size-16":"tQypcH","uuiTypographySize16":"tQypcH","root":"N6yA3J","border-top":"I23bYE","borderTop":"I23bYE","border-bottom":"CZTyF0","borderBottom":"CZTyF0","top-shadow":"-sUNQZ","topShadow":"-sUNQZ","padding-6":"_6uc6Q1","padding6":"_6uc6Q1","padding-12":"iXT6-0","padding12":"iXT6-0","padding-18":"-iXhjg","padding18":"-iXhjg","padding-24":"eG-zZ5","padding24":"eG-zZ5","margin-24":"VmBCwy","margin24":"VmBCwy","margin-12":"lTYCPR","margin12":"lTYCPR","vPadding-12":"U8IQsS","vPadding12":"U8IQsS","vPadding-18":"Yur7Yr","vPadding18":"Yur7Yr","vPadding-24":"AN2OZj","vPadding24":"AN2OZj","vPadding-36":"RPy32-","vPadding36":"RPy32-","vPadding-48":"suGsJK","vPadding48":"suGsJK","spacing-6":"LhxRgh","spacing6":"LhxRgh","spacing-12":"ou7l80","spacing12":"ou7l80","spacing-18":"Ji0JVM","spacing18":"Ji0JVM","uui-surface-main":"vGAOZW","uuiSurfaceMain":"vGAOZW"};
1148
+ var css$1i = {"uui-typography":"DhYBOW","uuiTypography":"DhYBOW","hero-header":"CiLuHB","heroHeader":"CiLuHB","promo-header":"qPtC9d","promoHeader":"qPtC9d","uui-critical":"r-aEUE","uuiCritical":"r-aEUE","uui-info":"FhZybS","uuiInfo":"FhZybS","uui-success":"Pq0aFN","uuiSuccess":"Pq0aFN","uui-warning":"_3j8-MJ","uuiWarning":"_3j8-MJ","uui-highlight":"TgJMmO","uuiHighlight":"TgJMmO","uui-typography-size-12":"-oK0HQ","uuiTypographySize12":"-oK0HQ","uui-typography-size-14":"vu-vgh","uuiTypographySize14":"vu-vgh","uui-typography-size-16":"_2H3leL","uuiTypographySize16":"_2H3leL","root":"Ao6Hj2","border-top":"_4AGh9j","borderTop":"_4AGh9j","border-bottom":"OR4zYF","borderBottom":"OR4zYF","top-shadow":"_59iuFU","topShadow":"_59iuFU","padding-6":"Dqy3gZ","padding6":"Dqy3gZ","padding-12":"-o0roY","padding12":"-o0roY","padding-18":"ktZsB1","padding18":"ktZsB1","padding-24":"f24kOU","padding24":"f24kOU","margin-24":"MSo0N4","margin24":"MSo0N4","margin-12":"HMlNWZ","margin12":"HMlNWZ","vPadding-12":"BDo3-H","vPadding12":"BDo3-H","vPadding-18":"c8nadH","vPadding18":"c8nadH","vPadding-24":"iGmDpH","vPadding24":"iGmDpH","vPadding-36":"JYko2M","vPadding36":"JYko2M","vPadding-48":"-z8W0G","vPadding48":"-z8W0G","spacing-6":"e99vvh","spacing6":"e99vvh","spacing-12":"bdbFDQ","spacing12":"bdbFDQ","spacing-18":"_9upTDQ","spacing18":"_9upTDQ","uui-surface-main":"wHDxmT","uuiSurfaceMain":"wHDxmT"};
1183
1149
 
1184
1150
  const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1i.flexCell]);
1185
1151
 
@@ -1203,7 +1169,7 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
1203
1169
  ];
1204
1170
  });
1205
1171
 
1206
- var css$1h = {"root":"RLp36b","margin-24":"-StR5d","margin24":"-StR5d","padding-12":"XX5sAK","padding12":"XX5sAK","padding-24":"tL-fG6","padding24":"tL-fG6","shadow":"UMQJ0E","uui-surface-main":"LtETpD","uuiSurfaceMain":"LtETpD"};
1172
+ var css$1h = {"root":"PNkdRB","margin-24":"eVud-x","margin24":"eVud-x","padding-12":"smITTc","padding12":"smITTc","padding-24":"BW0Ipq","padding24":"BW0Ipq","shadow":"xO3500","uui-surface-main":"uNofCb","uuiSurfaceMain":"uNofCb"};
1207
1173
 
1208
1174
  const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
1209
1175
  'uui-panel',
@@ -1213,7 +1179,7 @@ const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
1213
1179
  props.background && css$1h[`uui-${props.background}`],
1214
1180
  ]);
1215
1181
 
1216
- var css$1g = {"root":"wm-vzD"};
1182
+ var css$1g = {"root":"uWyvVx"};
1217
1183
 
1218
1184
  function applyTooltipMods(mods) {
1219
1185
  return [
@@ -1223,7 +1189,7 @@ function applyTooltipMods(mods) {
1223
1189
  }
1224
1190
  const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
1225
1191
 
1226
- var css$1f = {"uui-typography":"lZ4QQQ","uuiTypography":"lZ4QQQ","hero-header":"aWMNTg","heroHeader":"aWMNTg","promo-header":"eDBUDU","promoHeader":"eDBUDU","uui-critical":"XIp-GX","uuiCritical":"XIp-GX","uui-info":"HU1tEG","uuiInfo":"HU1tEG","uui-success":"KKav-f","uuiSuccess":"KKav-f","uui-warning":"Kr2Ctm","uuiWarning":"Kr2Ctm","uui-highlight":"lkHdKg","uuiHighlight":"lkHdKg","uui-typography-size-12":"QcCHSN","uuiTypographySize12":"QcCHSN","uui-typography-size-14":"EGSgXo","uuiTypographySize14":"EGSgXo","uui-typography-size-16":"WFLbEp","uuiTypographySize16":"WFLbEp","root":"nCLvy2"};
1192
+ var css$1f = {"uui-typography":"T-igTl","uuiTypography":"T-igTl","hero-header":"sTcdmc","heroHeader":"sTcdmc","promo-header":"xk5tiS","promoHeader":"xk5tiS","uui-critical":"TWVDQ7","uuiCritical":"TWVDQ7","uui-info":"OQu6-W","uuiInfo":"OQu6-W","uui-success":"e98NNM","uuiSuccess":"e98NNM","uui-warning":"_9ljWtP","uuiWarning":"_9ljWtP","uui-highlight":"YxvD7c","uuiHighlight":"YxvD7c","uui-typography-size-12":"N7L-GS","uuiTypographySize12":"N7L-GS","uui-typography-size-14":"_3BhAIi","uuiTypographySize14":"_3BhAIi","uui-typography-size-16":"WZ-c7L","uuiTypographySize16":"WZ-c7L","root":"B3JRMb"};
1227
1193
 
1228
1194
  function applyLabeledInputMods(mods) {
1229
1195
  return [
@@ -1237,7 +1203,7 @@ const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLa
1237
1203
  infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
1238
1204
  }));
1239
1205
 
1240
- var css$1e = {"root":"F53N3m"};
1206
+ var css$1e = {"root":"YwQMzV"};
1241
1207
 
1242
1208
  function RadioGroup(props) {
1243
1209
  const direction = props.direction || 'vertical';
@@ -1246,13 +1212,13 @@ function RadioGroup(props) {
1246
1212
  props.onValueChange(newVal);
1247
1213
  }
1248
1214
  };
1249
- return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$1e.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
1250
- const restItemProps = __rest(i, ["id", "name", "renderName"]);
1251
- return (React.createElement(RadioInput, Object.assign({ name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
1215
+ return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$1e.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
1216
+ const { id, name, renderName, ...restItemProps } = i;
1217
+ return (React.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
1252
1218
  })));
1253
1219
  }
1254
1220
 
1255
- var css$1d = {"root":"gOBBB1"};
1221
+ var css$1d = {"root":"aGPEmM"};
1256
1222
 
1257
1223
  function applyScrollBarsMods() {
1258
1224
  return [
@@ -1261,13 +1227,13 @@ function applyScrollBarsMods() {
1261
1227
  }
1262
1228
  const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
1263
1229
 
1264
- var css$1c = {"scroll-container":"geAXsC","scrollContainer":"geAXsC","list-container":"N7Y-0F","listContainer":"N7Y-0F"};
1230
+ var css$1c = {"scroll-container":"vM3l-E","scrollContainer":"vM3l-E","list-container":"MjKIEF","listContainer":"MjKIEF"};
1265
1231
 
1266
- var css$1b = {"root":"_4pk5NY"};
1232
+ var css$1b = {"root":"-jHAxV"};
1267
1233
 
1268
1234
  const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
1269
1235
 
1270
- var css$1a = {"uui-typography":"ZncXcm","uuiTypography":"ZncXcm","hero-header":"Hqkiu3","heroHeader":"Hqkiu3","promo-header":"-YUnze","promoHeader":"-YUnze","uui-critical":"HtU1n-","uuiCritical":"HtU1n-","uui-info":"YcxIP5","uuiInfo":"YcxIP5","uui-success":"T92GRR","uuiSuccess":"T92GRR","uui-warning":"PbcR0E","uuiWarning":"PbcR0E","uui-highlight":"zXj5HX","uuiHighlight":"zXj5HX","uui-typography-size-12":"Ane-3t","uuiTypographySize12":"Ane-3t","uui-typography-size-14":"PrFcxf","uuiTypographySize14":"PrFcxf","uui-typography-size-16":"-Bjflo","uuiTypographySize16":"-Bjflo","root":"o2L401"};
1236
+ var css$1a = {"uui-typography":"wINWrT","uuiTypography":"wINWrT","hero-header":"LQQJsW","heroHeader":"LQQJsW","promo-header":"_2x23Ru","promoHeader":"_2x23Ru","uui-critical":"Typxix","uuiCritical":"Typxix","uui-info":"lWSRGr","uuiInfo":"lWSRGr","uui-success":"UCxqpD","uuiSuccess":"UCxqpD","uui-warning":"xY3Anp","uuiWarning":"xY3Anp","uui-highlight":"QiK4fR","uuiHighlight":"QiK4fR","uui-typography-size-12":"nLqPm6","uuiTypographySize12":"nLqPm6","uui-typography-size-14":"yqNKvM","uuiTypographySize14":"yqNKvM","uui-typography-size-16":"mN51M9","uuiTypographySize16":"mN51M9","root":"_3uD5XL"};
1271
1237
 
1272
1238
  const DEFAULT_FILL = 'solid';
1273
1239
  function applyBadgeMods(mods) {
@@ -1282,7 +1248,11 @@ function applyBadgeMods(mods) {
1282
1248
  const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1283
1249
  const styles = [applyBadgeMods(props), props.cx];
1284
1250
  const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : systemIcons.foldingArrow;
1285
- return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
1251
+ return (React__default.createElement(Clickable, { ...props, rawProps: {
1252
+ 'aria-haspopup': props.isDropdown,
1253
+ 'aria-expanded': props.isOpen,
1254
+ ...props.rawProps,
1255
+ }, cx: styles, ref: ref },
1286
1256
  (props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
1287
1257
  props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
1288
1258
  props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
@@ -1291,7 +1261,7 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1291
1261
  props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
1292
1262
  });
1293
1263
 
1294
- var css$19 = {"uui-typography":"a99qrG","uuiTypography":"a99qrG","hero-header":"D0dIao","heroHeader":"D0dIao","promo-header":"aekPZQ","promoHeader":"aekPZQ","uui-critical":"-j6fHr","uuiCritical":"-j6fHr","uui-info":"Ci4TiX","uuiInfo":"Ci4TiX","uui-success":"bTE1u4","uuiSuccess":"bTE1u4","uui-warning":"F0y45K","uuiWarning":"F0y45K","uui-highlight":"_87eWfu","uuiHighlight":"_87eWfu","uui-typography-size-12":"_0ezOqp","uuiTypographySize12":"_0ezOqp","uui-typography-size-14":"MKa5Jj","uuiTypographySize14":"MKa5Jj","uui-typography-size-16":"H--TNr","uuiTypographySize16":"H--TNr","root":"FGqP1C"};
1264
+ var css$19 = {"uui-typography":"X4EVHt","uuiTypography":"X4EVHt","hero-header":"SZ-km2","heroHeader":"SZ-km2","promo-header":"Lod3FT","promoHeader":"Lod3FT","uui-critical":"TNUu3k","uuiCritical":"TNUu3k","uui-info":"DQUvgw","uuiInfo":"DQUvgw","uui-success":"RgQnnm","uuiSuccess":"RgQnnm","uui-warning":"jgpeRj","uuiWarning":"jgpeRj","uui-highlight":"GAndMe","uuiHighlight":"GAndMe","uui-typography-size-12":"Y0GVqS","uuiTypographySize12":"Y0GVqS","uui-typography-size-14":"d8ZFfU","uuiTypographySize14":"d8ZFfU","uui-typography-size-16":"lKeobP","uuiTypographySize16":"lKeobP","root":"hva0fm"};
1295
1265
 
1296
1266
  function applyTagMods(props) {
1297
1267
  return [
@@ -1306,7 +1276,11 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1306
1276
  const styles = [applyTagMods(props), props.cx];
1307
1277
  const ClearIcon = props.clearIcon ? props.clearIcon : systemIcons.clear;
1308
1278
  const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : systemIcons.foldingArrow;
1309
- return (React__default.createElement(Clickable, Object.assign({}, props, { rawProps: Object.assign({ 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: styles, ref: ref }),
1279
+ return (React__default.createElement(Clickable, { ...props, rawProps: {
1280
+ 'aria-haspopup': props.isDropdown,
1281
+ 'aria-expanded': props.isOpen,
1282
+ ...props.rawProps,
1283
+ }, cx: styles, ref: ref },
1310
1284
  props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
1311
1285
  props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
1312
1286
  props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.sizes.tag.countIndicator[(props.size || settings.sizes.defaults.tag)], caption: props.count })),
@@ -1315,7 +1289,7 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1315
1289
  props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
1316
1290
  });
1317
1291
 
1318
- var css$18 = {"root":"CS-CbB","uui-spinner":"P8ZWTq","uuiSpinner":"P8ZWTq"};
1292
+ var css$18 = {"root":"_5-5FbO","uui-spinner":"UAl0TH","uuiSpinner":"UAl0TH"};
1319
1293
 
1320
1294
  function applySpinnerMods() {
1321
1295
  return [css$18.root, 'uui-spinner'];
@@ -1352,31 +1326,31 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
1352
1326
  };
1353
1327
  var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
1354
1328
 
1355
- var css$17 = {"root":"_8LG5wp","page":"CMYWrc","spacer":"_7Uk5Rg","mode-ghost":"_7a-IGm","modeGhost":"_7a-IGm"};
1329
+ var css$17 = {"root":"eue7eI","page":"Lnfra2","spacer":"lUP1NV","mode-ghost":"_-3TcNM","modeGhost":"_-3TcNM"};
1356
1330
 
1357
1331
  function Paginator(props) {
1358
- const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
1332
+ const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`), ...params.rawProps },
1359
1333
  React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
1360
1334
  params.pages.map((page, index) => {
1361
1335
  if (page.type === 'spacer') {
1362
1336
  return (React__default.createElement(Button, { cx: cx(css$17.spacer, css$17.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
1363
1337
  }
1364
1338
  else {
1365
- return (React__default.createElement(Button, { cx: cx(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
1339
+ return (React__default.createElement(Button, { cx: cx(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
1366
1340
  }
1367
1341
  }),
1368
1342
  React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
1369
- return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
1343
+ return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
1370
1344
  }
1371
1345
 
1372
- var css$16 = {"root":"mGGvyw","progress-bar":"aDkidS","progressBar":"aDkidS","progressBar-indeterminate":"xx1xaq","progressBarIndeterminate":"xx1xaq","size-12":"BeBRSs","size12":"BeBRSs","size-18":"EwQMcv","size18":"EwQMcv","size-24":"Ff1Mgv","size24":"Ff1Mgv"};
1346
+ var css$16 = {"root":"Ui04BQ","progress-bar":"t-pysN","progressBar":"t-pysN","progressBar-indeterminate":"_3UEyv9","progressBarIndeterminate":"_3UEyv9","size-12":"txgUvq","size12":"txgUvq","size-18":"y3ekno","size18":"y3ekno","size-24":"_3WWnkl","size24":"_3WWnkl"};
1373
1347
 
1374
1348
  const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
1375
1349
  return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
1376
1350
  React.createElement("div", { className: cx(css$16.progressBar) })));
1377
1351
  });
1378
1352
 
1379
- var css$15 = {"root":"l9RNUU","striped":"rj3Acb","animate-stripes":"fJQ-0Q","animateStripes":"fJQ-0Q","size-12":"n8rPf8","size12":"n8rPf8","size-18":"c1NECx","size18":"c1NECx","size-24":"_1YUw06","size24":"_1YUw06"};
1353
+ var css$15 = {"root":"JKSAUm","striped":"_8Q78We","animate-stripes":"jMmjSz","animateStripes":"jMmjSz","size-12":"PWpZwo","size12":"PWpZwo","size-18":"_7C6N-Q","size18":"_7C6N-Q","size-24":"EIRvt2","size24":"EIRvt2"};
1380
1354
 
1381
1355
  const DEFAULT_SIZE = '12';
1382
1356
  function applyProgressBarMods(mods) {
@@ -1391,14 +1365,14 @@ const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProg
1391
1365
  hideLabel: props.hideLabel || props.striped,
1392
1366
  }));
1393
1367
 
1394
- var css$14 = {"root":"Gom-7C"};
1368
+ var css$14 = {"root":"_1fYWrr"};
1395
1369
 
1396
1370
  const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
1397
1371
  const { progress } = props;
1398
1372
  return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$14.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$14.root, props.cx) }));
1399
1373
  });
1400
1374
 
1401
- var css$13 = {"root":"am-1v4"};
1375
+ var css$13 = {"root":"_1PMRxZ"};
1402
1376
 
1403
1377
  const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
1404
1378
  return (React__default.createElement("div", { ref: ref, className: cx([
@@ -1413,10 +1387,9 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
1413
1387
  React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
1414
1388
  });
1415
1389
 
1416
- var css$12 = {"drag-handle":"_3vRPHF","dragHandle":"_3vRPHF","icon-container":"b1Q5g0","iconContainer":"b1Q5g0"};
1390
+ var css$12 = {"drag-handle":"bVdnQg","dragHandle":"bVdnQg","icon-container":"lGy9jY","iconContainer":"lGy9jY"};
1417
1391
 
1418
1392
  function DataRowAddons(props) {
1419
- var _a, _b;
1420
1393
  const row = props.rowProps;
1421
1394
  const getIndent = () => {
1422
1395
  return (row.indent - 1) * (settings.sizes.rowAddons.indentUnit[props.size] || settings.sizes.rowAddons.defaults.indentUnit);
@@ -1425,8 +1398,8 @@ function DataRowAddons(props) {
1425
1398
  return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
1426
1399
  };
1427
1400
  return (React__default.createElement(React__default.Fragment, null,
1428
- ((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
1429
- ((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
1401
+ row.dnd?.srcData && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
1402
+ row?.checkbox?.isVisible && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
1430
1403
  row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
1431
1404
  'aria-label': row.isFolded ? 'Unfold' : 'Fold',
1432
1405
  role: 'button',
@@ -1435,7 +1408,7 @@ function DataRowAddons(props) {
1435
1408
  ], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
1436
1409
  }
1437
1410
 
1438
- var css$11 = {"root":"_5xd8tX"};
1411
+ var css$11 = {"root":"kni8YE"};
1439
1412
 
1440
1413
  const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
1441
1414
 
@@ -1449,17 +1422,13 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
1449
1422
  });
1450
1423
  React.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
1451
1424
  const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
1452
- const renderRows = () => {
1453
- var _a;
1454
- return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
1455
- listContainerRef, estimatedHeight, offsetY, scrollShadows,
1456
- })) || (React.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
1457
- React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
1458
- };
1425
+ const renderRows = () => props.renderRows?.({
1426
+ listContainerRef, estimatedHeight, offsetY, scrollShadows,
1427
+ }) || (React.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
1428
+ React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
1459
1429
  const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
1460
1430
  const scrollBarsRef = React.useCallback((scrollbars) => {
1461
- var _a;
1462
- if (!((_a = scrollbars === null || scrollbars === void 0 ? void 0 : scrollbars.container) === null || _a === void 0 ? void 0 : _a.firstChild))
1431
+ if (!scrollbars?.container?.firstChild)
1463
1432
  return;
1464
1433
  scrollContainerRef.current = scrollbars.container.firstChild;
1465
1434
  }, []);
@@ -1472,11 +1441,20 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
1472
1441
  });
1473
1442
  const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
1474
1443
  return (React.createElement(React.Fragment, null,
1475
- React.createElement("div", Object.assign({}, props.rawProps, { style: Object.assign(Object.assign({}, props.style), { position: 'relative', flex: '1 1 auto', display: 'flex', flexDirection: 'column', overflow: props.isLoading ? 'hidden' : 'scroll', marginRight: props.isLoading ? 0 : props.style.marginRight, marginBottom: props.isLoading ? 0 : props.style.marginBottom }), ref: ref }), props.children),
1444
+ React.createElement("div", { ...props.rawProps, style: {
1445
+ ...props.style,
1446
+ position: 'relative',
1447
+ flex: '1 1 auto',
1448
+ display: 'flex',
1449
+ flexDirection: 'column',
1450
+ overflow: props.isLoading ? 'hidden' : 'scroll',
1451
+ marginRight: props.isLoading ? 0 : props.style.marginRight,
1452
+ marginBottom: props.isLoading ? 0 : props.style.marginBottom,
1453
+ }, ref: ref }, props.children),
1476
1454
  React.createElement(Blocker, { isEnabled: props.isLoading })));
1477
1455
  });
1478
1456
 
1479
- var css$10 = {"root":"p28nrp"};
1457
+ var css$10 = {"root":"UL-aip"};
1480
1458
 
1481
1459
  function CheckboxGroup(props) {
1482
1460
  const currentValue = props.value || [];
@@ -1492,13 +1470,13 @@ function CheckboxGroup(props) {
1492
1470
  }
1493
1471
  props.onValueChange(newSelection);
1494
1472
  };
1495
- return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$10.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
1496
- const restItemProps = __rest(i, ["id", "name", "renderName"]);
1497
- return (React.createElement(Checkbox, Object.assign({ renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size }, restItemProps)));
1473
+ return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$10.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
1474
+ const { id, name, renderName, ...restItemProps } = i;
1475
+ return (React.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
1498
1476
  })));
1499
1477
  }
1500
1478
 
1501
- var css$$ = {"uui-typography":"oRF78a","uuiTypography":"oRF78a","hero-header":"nNUDpM","heroHeader":"nNUDpM","promo-header":"PVCN1S","promoHeader":"PVCN1S","uui-critical":"puV9Ij","uuiCritical":"puV9Ij","uui-info":"kcYNYX","uuiInfo":"kcYNYX","uui-success":"_4FDoqx","uuiSuccess":"_4FDoqx","uui-warning":"zLAYpg","uuiWarning":"zLAYpg","uui-highlight":"_2RrQYo","uuiHighlight":"_2RrQYo","uui-typography-size-12":"HY3dbK","uuiTypographySize12":"HY3dbK","uui-typography-size-14":"SBEeNj","uuiTypographySize14":"SBEeNj","uui-typography-size-16":"NIVWBt","uuiTypographySize16":"NIVWBt","root":"em8zbz","modal-blocker":"nnpq8-","modalBlocker":"nnpq8-","animateModalBlocker":"_01ch-5","modal":"PntIXt","modal-footer":"BuiJVQ","modalFooter":"BuiJVQ","modal-header":"ttPb0q","modalHeader":"ttPb0q"};
1479
+ var css$$ = {"uui-typography":"gInCGU","uuiTypography":"gInCGU","hero-header":"kpNzyJ","heroHeader":"kpNzyJ","promo-header":"pZiUIW","promoHeader":"pZiUIW","uui-critical":"_2Pf70a","uuiCritical":"_2Pf70a","uui-info":"anDNCg","uuiInfo":"anDNCg","uui-success":"y5vVHH","uuiSuccess":"y5vVHH","uui-warning":"t5K1lD","uuiWarning":"t5K1lD","uui-highlight":"Y9fjFK","uuiHighlight":"Y9fjFK","uui-typography-size-12":"qkK9KS","uuiTypographySize12":"qkK9KS","uui-typography-size-14":"wBCON0","uuiTypographySize14":"wBCON0","uui-typography-size-16":"_2AQwAM","uuiTypographySize16":"_2AQwAM","root":"sRlfwN","modal-blocker":"cQITcY","modalBlocker":"cQITcY","animateModalBlocker":"BzsLWR","modal":"a1vP52","modal-footer":"LOY06E","modalFooter":"LOY06E","modal-header":"_3FbyNZ","modalHeader":"_3FbyNZ"};
1502
1480
 
1503
1481
  const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$$.modalBlocker]);
1504
1482
  const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, css$$.modal], (props) => {
@@ -1506,9 +1484,12 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, cs
1506
1484
  const height = props.height || 'auto';
1507
1485
  const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
1508
1486
  return {
1509
- style: Object.assign(Object.assign({}, props.style), { width,
1487
+ style: {
1488
+ ...props.style,
1489
+ width,
1510
1490
  height,
1511
- maxHeight }),
1491
+ maxHeight,
1492
+ },
1512
1493
  };
1513
1494
  });
1514
1495
  class ModalHeader extends React__default.Component {
@@ -1531,27 +1512,33 @@ class ModalFooter extends React__default.Component {
1531
1512
  }
1532
1513
  }
1533
1514
 
1534
- const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { dataPickerBody: {
1515
+ const TREE_SHAKEABLE_INIT = () => ({
1516
+ ...i18n$1,
1517
+ dataPickerBody: {
1535
1518
  searchPlaceholder: 'Search',
1536
1519
  noRecordsMessage: 'No records found',
1537
1520
  noRecordsSubTitle: 'Check your spelling, or search for a different keyword',
1538
1521
  typeSearchToLoadMessage: 'Type search to load items',
1539
- }, pickerModal: {
1522
+ },
1523
+ pickerModal: {
1540
1524
  headerTitle: 'Please select',
1541
1525
  searchPlaceholder: 'Type text for quick search',
1542
1526
  cancelButton: 'Cancel',
1543
1527
  selectButton: 'Select',
1544
1528
  clearAllButton: 'CLEAR ALL',
1545
1529
  selectAllButton: 'SELECT ALL',
1546
- }, pickerInput: {
1530
+ },
1531
+ pickerInput: {
1547
1532
  showOnlySelectedLabel: 'Show only selected',
1548
1533
  clearSelectionButton: 'CLEAR ALL',
1549
1534
  clearSelectionButtonSingle: 'CLEAR',
1550
1535
  selectAllButton: 'SELECT ALL',
1551
1536
  doneButton: 'DONE',
1552
- }, notificationCard: {
1537
+ },
1538
+ notificationCard: {
1553
1539
  closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
1554
- }, form: {
1540
+ },
1541
+ form: {
1555
1542
  notifications: {
1556
1543
  actionButtonCaption: 'Restore',
1557
1544
  unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
@@ -1561,10 +1548,12 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1561
1548
  discardButton: 'Discard',
1562
1549
  saveButton: 'Save',
1563
1550
  },
1564
- }, rangeDatePicker: {
1551
+ },
1552
+ rangeDatePicker: {
1565
1553
  pickerPlaceholderFrom: 'From:',
1566
1554
  pickerPlaceholderTo: 'To:',
1567
- }, tables: {
1555
+ },
1556
+ tables: {
1568
1557
  noResultsBlock: {
1569
1558
  title: 'No results found',
1570
1559
  message: 'We can’t find any item matching your request',
@@ -1598,10 +1587,12 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1598
1587
  collapseAllTooltip: 'Collapse All',
1599
1588
  expandAllTooltip: 'Expand All',
1600
1589
  },
1601
- }, pickerFilterHeader: {
1590
+ },
1591
+ pickerFilterHeader: {
1602
1592
  sortAscending: 'Sort Ascending',
1603
1593
  sortDescending: 'Sort Descending',
1604
- }, filterToolbar: {
1594
+ },
1595
+ filterToolbar: {
1605
1596
  addCaption: 'Add filter',
1606
1597
  datePicker: {
1607
1598
  placeholder: 'Select date',
@@ -1616,19 +1607,24 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1616
1607
  pickerInput: {
1617
1608
  itemsPlaceholder: 'items',
1618
1609
  },
1619
- }, presetPanel: {
1610
+ },
1611
+ presetPanel: {
1620
1612
  addCaption: 'Add Preset',
1621
- }, confirmationModal: {
1613
+ },
1614
+ confirmationModal: {
1622
1615
  discardButton: 'Discard',
1623
1616
  saveButton: 'Save',
1624
- }, fileUpload: {
1617
+ },
1618
+ fileUpload: {
1625
1619
  labelStart: 'Drop files to attach or',
1626
1620
  browse: 'browse',
1627
1621
  labelEnd: 'your local files',
1628
- }, fileCard: {
1622
+ },
1623
+ fileCard: {
1629
1624
  fileSizeProgress: ' of ',
1630
1625
  failedUploadErrorMessage: 'Upload failed',
1631
- }, errorHandler: {
1626
+ },
1627
+ errorHandler: {
1632
1628
  errorPageConfig: {
1633
1629
  notFound: {
1634
1630
  title: 'Oooops! We couldn’t find this page',
@@ -1670,7 +1666,8 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1670
1666
  },
1671
1667
  },
1672
1668
  supportMessage: undefined,
1673
- } }));
1669
+ },
1670
+ });
1674
1671
  const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
1675
1672
 
1676
1673
  var _path$u;
@@ -1688,42 +1685,40 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
1688
1685
  };
1689
1686
  var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
1690
1687
 
1691
- var css$_ = {"uui-typography":"_2j9Uly","uuiTypography":"_2j9Uly","hero-header":"Pq6iUX","heroHeader":"Pq6iUX","promo-header":"nBdfH-","promoHeader":"nBdfH-","uui-critical":"_9U-Bog","uuiCritical":"_9U-Bog","uui-info":"AtGJqs","uuiInfo":"AtGJqs","uui-success":"B7qokm","uuiSuccess":"B7qokm","uui-warning":"_3Em-6B","uuiWarning":"_3Em-6B","uui-highlight":"aUhArS","uuiHighlight":"aUhArS","uui-typography-size-12":"_9yYuZI","uuiTypographySize12":"_9yYuZI","uui-typography-size-14":"M3xVvg","uuiTypographySize14":"M3xVvg","uui-typography-size-16":"TMPvfU","uuiTypographySize16":"TMPvfU","root":"anPnav","icon-wrapper":"UvKHtk","iconWrapper":"UvKHtk","action-wrapper":"ryE5fx","actionWrapper":"ryE5fx","action-link":"UNc6tu","actionLink":"UNc6tu","close-icon":"nRrN0J","closeIcon":"nRrN0J","main-path":"g6QAV4","mainPath":"g6QAV4","content":"PylA9b","close-wrapper":"p0x--f","closeWrapper":"p0x--f","notification-wrapper":"_2BvtZO","notificationWrapper":"_2BvtZO","clear-button":"_6vcWjw","clearButton":"_6vcWjw"};
1688
+ var css$_ = {"uui-typography":"hIDTgu","uuiTypography":"hIDTgu","hero-header":"_6j0JB-","heroHeader":"_6j0JB-","promo-header":"sXB-Yv","promoHeader":"sXB-Yv","uui-critical":"RgW8h-","uuiCritical":"RgW8h-","uui-info":"t2epvI","uuiInfo":"t2epvI","uui-success":"R-SQSB","uuiSuccess":"R-SQSB","uui-warning":"Ht8j3v","uuiWarning":"Ht8j3v","uui-highlight":"dBOGGa","uuiHighlight":"dBOGGa","uui-typography-size-12":"teIHWv","uuiTypographySize12":"teIHWv","uui-typography-size-14":"wYDCc2","uuiTypographySize14":"wYDCc2","uui-typography-size-16":"i4VmOh","uuiTypographySize16":"i4VmOh","root":"B0PdoA","icon-wrapper":"BNCRdh","iconWrapper":"BNCRdh","action-wrapper":"nmiJvO","actionWrapper":"nmiJvO","action-link":"eY4lkY","actionLink":"eY4lkY","close-icon":"_1z8-Su","closeIcon":"_1z8-Su","main-path":"UuWPyA","mainPath":"UuWPyA","content":"-NGeEP","close-wrapper":"e0-xaV","closeWrapper":"e0-xaV","notification-wrapper":"Q9jdIq","notificationWrapper":"Q9jdIq","clear-button":"iiR11n","clearButton":"iiR11n"};
1692
1689
 
1693
1690
  const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1694
1691
  const notificationCardNode = React__default.useRef(null);
1695
1692
  React__default.useImperativeHandle(ref, () => notificationCardNode.current, [notificationCardNode.current]);
1696
1693
  React__default.useLayoutEffect(() => {
1697
- var _a, _b;
1698
- (_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', props.clearTimer);
1699
- (_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', props.refreshTimer);
1694
+ notificationCardNode.current?.addEventListener('mouseenter', props.clearTimer);
1695
+ notificationCardNode.current?.addEventListener('mouseleave', props.refreshTimer);
1700
1696
  return () => {
1701
- var _a, _b;
1702
- (_a = notificationCardNode.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', props.clearTimer);
1703
- (_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
1697
+ notificationCardNode.current?.removeEventListener('mouseenter', props.clearTimer);
1698
+ notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
1704
1699
  };
1705
1700
  }, []);
1706
- return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode }, props.rawProps),
1701
+ return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode, ...props.rawProps },
1707
1702
  React__default.createElement("div", { className: css$_.mainPath },
1708
1703
  props.icon && (React__default.createElement("div", { className: css$_.iconWrapper },
1709
1704
  React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
1710
1705
  React__default.createElement("div", { className: css$_.content },
1711
1706
  props.children,
1712
- props.actions && (React__default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$_.actionLink, size: "36", rawProps: action.rawProps })))))),
1707
+ props.actions && (React__default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$_.actionLink, size: settings.sizes.notificationCard.action, rawProps: action.rawProps })))))),
1713
1708
  props.onClose && (React__default.createElement("div", { className: css$_.closeWrapper },
1714
1709
  React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
1715
1710
  });
1716
- const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
1717
- const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
1718
- const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$u, color: "info" }, props, { ref: ref, cx: props.cx }))));
1719
- const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
1711
+ const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$z, color: "warning", ...props, ref: ref, cx: props.cx })));
1712
+ const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$A, color: "success", ...props, ref: ref, cx: props.cx })));
1713
+ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$u, color: "info", ...props, ref: ref, cx: props.cx })));
1714
+ const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$y, color: "error", ...props, ref: ref, cx: props.cx })));
1720
1715
  function ClearNotification() {
1721
1716
  const uuiCtx = useUuiContext();
1722
1717
  return (React__default.createElement("div", { className: cx(css$_.notificationWrapper, css$_.clearButton) },
1723
1718
  React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
1724
1719
  }
1725
1720
 
1726
- var css$Z = {"footer":"f3nmaV"};
1721
+ var css$Z = {"footer":"SCOYSK"};
1727
1722
 
1728
1723
  class ConfirmationModal extends React.Component {
1729
1724
  render() {
@@ -1731,7 +1726,7 @@ class ConfirmationModal extends React.Component {
1731
1726
  if (this.props.bodyContent) {
1732
1727
  bodyContent = React.createElement(Panel, { background: "surface-main", margin: "24" }, this.props.bodyContent);
1733
1728
  }
1734
- return (React.createElement(ModalBlocker, Object.assign({}, this.props),
1729
+ return (React.createElement(ModalBlocker, { ...this.props },
1735
1730
  React.createElement(ModalWindow, { width: 420 },
1736
1731
  React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
1737
1732
  React.createElement(ScrollBars, null, bodyContent),
@@ -1765,7 +1760,7 @@ function useReliableForceUpdate() {
1765
1760
  return red[1];
1766
1761
  }
1767
1762
 
1768
- var css$Y = {"root":"KUuvbE","timepicker-input":"KFsYKm","timepickerInput":"KFsYKm","ltr-always":"_5shvGB","ltrAlways":"_5shvGB"};
1763
+ var css$Y = {"root":"_91UT88","timepicker-input":"_1cUq68","timepickerInput":"_1cUq68","ltr-always":"eHZE80","ltrAlways":"eHZE80"};
1769
1764
 
1770
1765
  const uuiTimePicker = {
1771
1766
  container: 'uui-timepicker-container',
@@ -1804,7 +1799,7 @@ function TimePickerBody(props) {
1804
1799
  const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
1805
1800
  onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
1806
1801
  };
1807
- return (React.createElement("div", Object.assign({ className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
1802
+ return (React.createElement("div", { className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
1808
1803
  React.createElement("div", { className: css$Y.ltrAlways },
1809
1804
  React.createElement("div", { className: uuiTimePicker.elementContainer },
1810
1805
  React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
@@ -1886,7 +1881,11 @@ function TimePicker(props) {
1886
1881
  useEffect(() => {
1887
1882
  if (valueToTimeString(props.value, props.format) !== state.value) {
1888
1883
  const stringValue = valueToTimeString(props.value, props.format);
1889
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: stringValue, inputValue: stringValue })));
1884
+ setState((prevState) => ({
1885
+ ...prevState,
1886
+ value: stringValue,
1887
+ inputValue: stringValue,
1888
+ }));
1890
1889
  }
1891
1890
  }, [props.value, props.format]);
1892
1891
  const getFormat = () => props.format === 24 ? 'HH:mm' : 'hh:mm A';
@@ -1902,10 +1901,10 @@ function TimePicker(props) {
1902
1901
  props.onValueChange(null);
1903
1902
  };
1904
1903
  const onToggle = (value) => {
1905
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { isOpen: value })));
1904
+ setState((prevState) => ({ ...prevState, isOpen: value }));
1906
1905
  };
1907
1906
  const saveTime = (newTime) => {
1908
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { inputValue: newTime })));
1907
+ setState((prevState) => ({ ...prevState, inputValue: newTime }));
1909
1908
  props.onValueChange(formatStringTimeToObject(newTime));
1910
1909
  };
1911
1910
  const getTimeFromInputValue = (newValue) => {
@@ -1920,45 +1919,41 @@ function TimePicker(props) {
1920
1919
  saveTime(inputValue);
1921
1920
  };
1922
1921
  const handleFocus = (e) => {
1923
- var _a;
1924
1922
  onToggle(true);
1925
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e);
1923
+ props.onFocus?.(e);
1926
1924
  };
1927
1925
  const handleInputChange = (newValue) => {
1928
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { inputValue: newValue })));
1926
+ setState((prevState) => ({ ...prevState, inputValue: newValue }));
1929
1927
  if (newValue) {
1930
1928
  const result = getTimeFromInputValue(newValue);
1931
1929
  if (isTimeValid(result)) {
1932
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: result })));
1930
+ setState((prevState) => ({ ...prevState, value: result }));
1933
1931
  }
1934
1932
  }
1935
1933
  };
1936
1934
  const handleBlur = (e) => {
1937
- var _a;
1938
1935
  if (isFocusReceiverInsideFocusLock(e))
1939
1936
  return;
1940
1937
  onToggle(false);
1941
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
1938
+ props.onBlur?.(e);
1942
1939
  if (state.value === '' || state.inputValue === '') {
1943
1940
  props.onValueChange(null);
1944
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: null, inputValue: null })));
1941
+ setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
1945
1942
  }
1946
1943
  state.value && state.inputValue && saveTime(state.value);
1947
1944
  };
1948
1945
  const renderInput = (inputProps) => {
1949
- var _a;
1950
- return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$Y.root, css$Y.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
1946
+ return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$Y.root, css$Y.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
1951
1947
  };
1952
1948
  const renderBody = (bodyProps) => {
1953
- var _a;
1954
- const timePickerBodyProps = __rest(props, ["forwardedRef", "onValueChange"]);
1955
- return (!props.isDisabled && !props.isReadonly && (React__default.createElement(DropdownContainer, Object.assign({}, bodyProps, { focusLock: false }),
1956
- React__default.createElement(TimePickerBody, Object.assign({}, timePickerBodyProps, { onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body, cx: props.bodyCx })))));
1949
+ const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
1950
+ return (!props.isDisabled && !props.isReadonly && (React__default.createElement(DropdownContainer, { ...bodyProps, focusLock: false },
1951
+ React__default.createElement(TimePickerBody, { ...timePickerBodyProps, onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: props.rawProps?.body, cx: props.bodyCx }))));
1957
1952
  };
1958
1953
  return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
1959
1954
  }
1960
1955
 
1961
- var css$X = {"root":"OMj525"};
1956
+ var css$X = {"root":"TVTN3d"};
1962
1957
 
1963
1958
  function applyInputAddonMods() {
1964
1959
  return [
@@ -1967,7 +1962,7 @@ function applyInputAddonMods() {
1967
1962
  }
1968
1963
  const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
1969
1964
 
1970
- var css$W = {"root":"xZsJEr"};
1965
+ var css$W = {"root":"cjkBkz"};
1971
1966
 
1972
1967
  function applySliderMods() {
1973
1968
  return [css$W.root, 'uui-color-neutral'];
@@ -1990,7 +1985,7 @@ var SvgStarFilled = function SvgStarFilled(props, ref) {
1990
1985
  };
1991
1986
  var ForwardRef$t = /*#__PURE__*/forwardRef(SvgStarFilled);
1992
1987
 
1993
- var css$V = {"root":"JNaMlU","tooltip":"_9jekLy"};
1988
+ var css$V = {"root":"NwwNlH","tooltip":"wT3YBf"};
1994
1989
 
1995
1990
  function applyRatingMods(mods) {
1996
1991
  return [
@@ -2026,17 +2021,16 @@ const getMonthOnOpen = (selectedDate, focus) => {
2026
2021
  return uuiDayjs.dayjs(selectedDate[focus]);
2027
2022
  }
2028
2023
  else if (selectedDate.from) {
2029
- return uuiDayjs.dayjs(selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.from);
2024
+ return uuiDayjs.dayjs(selectedDate?.from);
2030
2025
  }
2031
2026
  else if (selectedDate.to) {
2032
- return uuiDayjs.dayjs(selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.to);
2027
+ return uuiDayjs.dayjs(selectedDate?.to);
2033
2028
  }
2034
2029
  return uuiDayjs.dayjs();
2035
2030
  };
2036
2031
  const isValidDate = (input, format, filter) => {
2037
- var _a, _b;
2038
2032
  const parsedDate = uuiDayjs.dayjs(input, supportedDateFormats(format), true);
2039
- return (_b = (_a = parsedDate.isValid()) !== null && _a !== void 0 ? _a : filter === null || filter === void 0 ? void 0 : filter(parsedDate)) !== null && _b !== void 0 ? _b : true;
2033
+ return parsedDate.isValid() ?? filter?.(parsedDate) ?? true;
2040
2034
  };
2041
2035
  const isValidRange = (range) => {
2042
2036
  const from = uuiDayjs.dayjs(range.from);
@@ -2132,7 +2126,7 @@ const getNextYearsList = (currentDate) => {
2132
2126
  return currentDate.add(16, 'year');
2133
2127
  };
2134
2128
 
2135
- var css$U = {"root":"X64YlL","container":"F9YS9g"};
2129
+ var css$U = {"root":"AS-ujT","container":"lYmM14"};
2136
2130
 
2137
2131
  const uuiHeader = {
2138
2132
  container: 'uui-datepicker-header-container',
@@ -2216,14 +2210,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
2216
2210
  React.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
2217
2211
  }
2218
2212
 
2219
- var css$T = {"uui-typography":"_1go1Hp","uuiTypography":"_1go1Hp","hero-header":"BFz4Zq","heroHeader":"BFz4Zq","promo-header":"a-HHNt","promoHeader":"a-HHNt","uui-critical":"W09qIP","uuiCritical":"W09qIP","uui-info":"_99c9x5","uuiInfo":"_99c9x5","uui-success":"-BJ2Y6","uuiSuccess":"-BJ2Y6","uui-warning":"_19gDZx","uuiWarning":"_19gDZx","uui-highlight":"_6lPaaL","uuiHighlight":"_6lPaaL","uui-typography-size-12":"lUq2Wf","uuiTypographySize12":"lUq2Wf","uui-typography-size-14":"vvFIxn","uuiTypographySize14":"vvFIxn","uui-typography-size-16":"_9BxYm5","uuiTypographySize16":"_9BxYm5","root":"_7Q26y0"};
2213
+ var css$T = {"uui-typography":"JlXZBE","uuiTypography":"JlXZBE","hero-header":"oJ4hJk","heroHeader":"oJ4hJk","promo-header":"WVMvTR","promoHeader":"WVMvTR","uui-critical":"iuVHDj","uuiCritical":"iuVHDj","uui-info":"Klq7cX","uuiInfo":"Klq7cX","uui-success":"_33KUGa","uuiSuccess":"_33KUGa","uui-warning":"IhoxV2","uuiWarning":"IhoxV2","uui-highlight":"_7Q7pXj","uuiHighlight":"_7Q7pXj","uui-typography-size-12":"gWL8X1","uuiTypographySize12":"gWL8X1","uui-typography-size-14":"W1WNEe","uuiTypographySize14":"W1WNEe","uui-typography-size-16":"-D6wjG","uuiTypographySize16":"-D6wjG","root":"DXjRI0"};
2220
2214
 
2221
2215
  function applyDateSelectionMods() {
2222
2216
  return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
2223
2217
  }
2224
2218
  const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
2225
2219
 
2226
- var css$S = {"uui-typography":"zwbWX5","uuiTypography":"zwbWX5","hero-header":"z3q1x7","heroHeader":"z3q1x7","promo-header":"_5JUlxQ","promoHeader":"_5JUlxQ","uui-critical":"mYndIO","uuiCritical":"mYndIO","uui-info":"ILNAsH","uuiInfo":"ILNAsH","uui-success":"eEWbnm","uuiSuccess":"eEWbnm","uui-warning":"Y07qkc","uuiWarning":"Y07qkc","uui-highlight":"Fufh33","uuiHighlight":"Fufh33","uui-typography-size-12":"o27lG2","uuiTypographySize12":"o27lG2","uui-typography-size-14":"_7PeVDW","uuiTypographySize14":"_7PeVDW","uui-typography-size-16":"lTgU7x","uuiTypographySize16":"lTgU7x","root":"_41oou3"};
2220
+ var css$S = {"uui-typography":"HQEjX7","uuiTypography":"HQEjX7","hero-header":"d3rRM6","heroHeader":"d3rRM6","promo-header":"dpE7Fv","promoHeader":"dpE7Fv","uui-critical":"S80Nek","uuiCritical":"S80Nek","uui-info":"kpdxBN","uuiInfo":"kpdxBN","uui-success":"d337-U","uuiSuccess":"d337-U","uui-warning":"-QrFtX","uuiWarning":"-QrFtX","uui-highlight":"IfnHBu","uuiHighlight":"IfnHBu","uui-typography-size-12":"_1abHAd","uuiTypographySize12":"_1abHAd","uui-typography-size-14":"IwqACr","uuiTypographySize14":"IwqACr","uui-typography-size-16":"JQVZf7","uuiTypographySize16":"JQVZf7","root":"_2aGpDq"};
2227
2221
 
2228
2222
  const uuiDatePickerBody = {
2229
2223
  wrapper: 'uui-datepicker-body-wrapper',
@@ -2238,7 +2232,7 @@ function DatePickerBodyComp(props, ref) {
2238
2232
  setMonth(getNewMonth(value));
2239
2233
  setView('DAY_SELECTION');
2240
2234
  }, [value, setMonth]);
2241
- return (React__default.createElement(StatelessDatePickerBody, Object.assign({ ref: ref }, props, { month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) })));
2235
+ return (React__default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
2242
2236
  }
2243
2237
  const StatelessDatePickerBody = /* @__PURE__ */forwardRef(StatelessDatePickerBodyComp);
2244
2238
  function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, }, ref) {
@@ -2266,7 +2260,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
2266
2260
  return (React__default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled }));
2267
2261
  }
2268
2262
  };
2269
- return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
2263
+ return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes), ...rawProps },
2270
2264
  React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
2271
2265
  React__default.createElement(DatePickerHeader, { value: {
2272
2266
  view,
@@ -2306,8 +2300,7 @@ function DatePickerComponent(props, ref) {
2306
2300
  setBodyIsOpen(false);
2307
2301
  };
2308
2302
  const onBlur = (e) => {
2309
- var _a;
2310
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
2303
+ props.onBlur?.(e);
2311
2304
  if (isValidDate(inputValue, format, props.filter)) {
2312
2305
  setInputValue(toCustomDateFormat(inputValue, format));
2313
2306
  onValueChange(toValueDateFormat(inputValue, format));
@@ -2324,37 +2317,33 @@ function DatePickerComponent(props, ref) {
2324
2317
  }
2325
2318
  };
2326
2319
  const renderInput = (renderProps) => {
2327
- var _a;
2328
2320
  const allowClear = !props.disableClear && !!inputValue;
2329
- return (React__default.createElement(TextInput, Object.assign({}, renderProps, { isDropdown: false, cx: cx$1(props.inputCx, isBodyOpen && uuiMod.focus), icon: props.mode !== EditMode.CELL && systemIcons.calendar ? systemIcons.calendar : undefined, iconPosition: props.iconPosition || 'left', placeholder: props.placeholder ? props.placeholder : format, size: props.size || settings.sizes.defaults.datePicker, value: inputValue || undefined, onValueChange: (v) => {
2321
+ return (React__default.createElement(TextInput, { ...renderProps, isDropdown: false, cx: cx$1(props.inputCx, isBodyOpen && uuiMod.focus), icon: props.mode !== EditMode.CELL && systemIcons.calendar ? systemIcons.calendar : undefined, iconPosition: props.iconPosition || 'left', placeholder: props.placeholder ? props.placeholder : format, size: props.size || settings.sizes.defaults.datePicker, value: inputValue || undefined, onValueChange: (v) => {
2330
2322
  setInputValue(v || '');
2331
2323
  }, onCancel: allowClear ? () => {
2332
2324
  if (!props.disableClear && !!inputValue) {
2333
2325
  onValueChange(null);
2334
2326
  }
2335
2327
  } : undefined, isInvalid: props.isInvalid, isDisabled: props.isDisabled, isReadonly: props.isReadonly, tabIndex: props.isReadonly || props.isDisabled ? -1 : 0, onFocus: (e) => {
2336
- var _a;
2337
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e);
2338
- }, onKeyDown: onInputKeyDown, onBlur: onBlur, mode: props.mode || defaultMode$1, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input, id: props.id })));
2328
+ props.onFocus?.(e);
2329
+ }, onKeyDown: onInputKeyDown, onBlur: onBlur, mode: props.mode || defaultMode$1, rawProps: props.rawProps?.input, id: props.id }));
2339
2330
  };
2340
2331
  const renderBody = (renderProps) => {
2341
- var _a, _b;
2342
- return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps),
2343
- React__default.createElement(DatePickerBody, { value: value, onValueChange: onBodyValueChange, cx: cx$1(props.bodyCx), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }), (_b = props.renderFooter) === null || _b === void 0 ? void 0 :
2344
- _b.call(props)));
2332
+ return (React__default.createElement(DropdownContainer, { ...renderProps },
2333
+ React__default.createElement(DatePickerBody, { value: value, onValueChange: onBodyValueChange, cx: cx$1(props.bodyCx), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay, rawProps: props.rawProps?.body }),
2334
+ props.renderFooter?.()));
2345
2335
  };
2346
2336
  return (React__default.createElement(Dropdown$1, { value: isBodyOpen, modifiers: modifiers$1, placement: props.placement, forwardedRef: ref, onValueChange: (v) => {
2347
2337
  setBodyIsOpen(v);
2348
2338
  }, renderTarget: (renderProps) => {
2349
- var _a;
2350
- return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || renderInput(renderProps);
2339
+ return props.renderTarget?.(renderProps) || renderInput(renderProps);
2351
2340
  }, renderBody: (renderProps) => {
2352
2341
  return renderBody(renderProps);
2353
2342
  } }));
2354
2343
  }
2355
2344
  const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
2356
2345
 
2357
- var css$R = {"uui-typography":"EPFaYy","uuiTypography":"EPFaYy","hero-header":"tWg5MN","heroHeader":"tWg5MN","promo-header":"I6qxBX","promoHeader":"I6qxBX","uui-critical":"_87X-yU","uuiCritical":"_87X-yU","uui-info":"-zl8wZ","uuiInfo":"-zl8wZ","uui-success":"-w1or8","uuiSuccess":"-w1or8","uui-warning":"jOq-dE","uuiWarning":"jOq-dE","uui-highlight":"XqkLxp","uuiHighlight":"XqkLxp","uui-typography-size-12":"-S-SLw","uuiTypographySize12":"-S-SLw","uui-typography-size-14":"wU4GTF","uuiTypographySize14":"wU4GTF","uui-typography-size-16":"MNgWUo","uuiTypographySize16":"MNgWUo","date-input":"FYnBik","dateInput":"FYnBik","root":"O8pLBE","separator":"q6gjtu","mode-form":"_8bntty","modeForm":"_8bntty","mode-cell":"jk2P-2","modeCell":"jk2P-2"};
2346
+ var css$R = {"uui-typography":"gGi85F","uuiTypography":"gGi85F","hero-header":"IgdOBu","heroHeader":"IgdOBu","promo-header":"A5L1GG","promoHeader":"A5L1GG","uui-critical":"iy2RzG","uuiCritical":"iy2RzG","uui-info":"d9EKQD","uuiInfo":"d9EKQD","uui-success":"exeSmj","uuiSuccess":"exeSmj","uui-warning":"IQlKk-","uuiWarning":"IQlKk-","uui-highlight":"LbIsFQ","uuiHighlight":"LbIsFQ","uui-typography-size-12":"KPQvWL","uuiTypographySize12":"KPQvWL","uui-typography-size-14":"c2sx6w","uuiTypographySize14":"c2sx6w","uui-typography-size-16":"MEV9BY","uuiTypographySize16":"MEV9BY","date-input":"zuz15H","dateInput":"zuz15H","root":"dSmm6U","separator":"_67c0TD","mode-form":"Py0BlD","modeForm":"Py0BlD","mode-cell":"cMERyF","modeCell":"cMERyF"};
2358
2347
 
2359
2348
  const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
2360
2349
  const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
@@ -2362,21 +2351,30 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
2362
2351
  setInputValue(toCustomDateRangeFormat(value, format));
2363
2352
  }, [format, value, setInputValue]);
2364
2353
  const onInputChange = (newValue, inputType) => {
2365
- setInputValue(Object.assign(Object.assign({}, inputValue), { [inputType]: newValue }));
2354
+ setInputValue({
2355
+ ...inputValue,
2356
+ [inputType]: newValue,
2357
+ });
2366
2358
  };
2367
2359
  const handleFocus = (event, inputType) => {
2368
2360
  onFocusInput(event, inputType);
2369
2361
  };
2370
2362
  const handleBlur = (event, inputType) => {
2371
- onBlurInput === null || onBlurInput === void 0 ? void 0 : onBlurInput(event, inputType);
2363
+ onBlurInput?.(event, inputType);
2372
2364
  const selectedDate = toValueDateRangeFormat(inputValue, format);
2373
2365
  if (isValidRange(selectedDate) && (!filter || filter(uuiDayjs.dayjs(selectedDate[inputType])))) {
2374
2366
  setInputValue(toCustomDateRangeFormat(selectedDate, format));
2375
2367
  onValueChange(selectedDate);
2376
2368
  }
2377
2369
  else {
2378
- setInputValue(Object.assign(Object.assign({}, inputValue), { [inputType]: null }));
2379
- onValueChange(Object.assign(Object.assign({}, selectedDate), { [inputType]: null }));
2370
+ setInputValue({
2371
+ ...inputValue,
2372
+ [inputType]: null,
2373
+ });
2374
+ onValueChange({
2375
+ ...selectedDate,
2376
+ [inputType]: null,
2377
+ });
2380
2378
  }
2381
2379
  };
2382
2380
  const onInputKeyDown = (e) => {
@@ -2389,14 +2387,14 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
2389
2387
  return (
2390
2388
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
2391
2389
  React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
2392
- React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$R.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
2390
+ React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$R.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
2393
2391
  React__default.createElement("div", { className: css$R.separator }),
2394
2392
  React__default.createElement(TextInput, { cx: cx$1(css$R.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
2395
2393
  onValueChange(defaultRangeValue);
2396
- } : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
2394
+ } : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
2397
2395
  });
2398
2396
 
2399
- var css$Q = {"uui-typography":"A08ovM","uuiTypography":"A08ovM","hero-header":"KL9qOj","heroHeader":"KL9qOj","promo-header":"XHNQd5","promoHeader":"XHNQd5","uui-critical":"gAZwV5","uuiCritical":"gAZwV5","uui-info":"b3ecPA","uuiInfo":"b3ecPA","uui-success":"qu-Yn8","uuiSuccess":"qu-Yn8","uui-warning":"eg4MqB","uuiWarning":"eg4MqB","uui-highlight":"E3gj4f","uuiHighlight":"E3gj4f","uui-typography-size-12":"SAgf0P","uuiTypographySize12":"SAgf0P","uui-typography-size-14":"NDoB9U","uuiTypographySize14":"NDoB9U","uui-typography-size-16":"ghf7-1","uuiTypographySize16":"ghf7-1","root":"C8Ip3d"};
2397
+ var css$Q = {"uui-typography":"YZRUhG","uuiTypography":"YZRUhG","hero-header":"VsSK-V","heroHeader":"VsSK-V","promo-header":"exVwMJ","promoHeader":"exVwMJ","uui-critical":"aP02T9","uuiCritical":"aP02T9","uui-info":"FdyqHN","uuiInfo":"FdyqHN","uui-success":"Qg4D2i","uuiSuccess":"Qg4D2i","uui-warning":"O88rH-","uuiWarning":"O88rH-","uui-highlight":"j-FNZd","uuiHighlight":"j-FNZd","uui-typography-size-12":"dr8QLg","uuiTypographySize12":"dr8QLg","uui-typography-size-14":"x4g4cz","uuiTypographySize14":"x4g4cz","uui-typography-size-16":"_5oWBLO","uuiTypographySize16":"_5oWBLO","root":"_1e9V04"};
2400
2398
 
2401
2399
  const uuiPresets = {
2402
2400
  container: 'uui-presets-container',
@@ -2404,15 +2402,19 @@ const uuiPresets = {
2404
2402
  item: 'uui-presets-item',
2405
2403
  };
2406
2404
  const getPresets = (presets) => {
2407
- return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
2405
+ return Object.keys(presets).map((key) => ({
2406
+ ...presets[key].getRange(),
2407
+ name: presets[key].name,
2408
+ key,
2409
+ })).sort((a, b) => a.order - b.order);
2408
2410
  };
2409
2411
  function CalendarPresets(props) {
2410
- return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
2412
+ return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx), ...props.rawProps },
2411
2413
  React.createElement("div", { className: uuiPresets.header }, "Presets"),
2412
2414
  getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
2413
2415
  }
2414
2416
 
2415
- var css$P = {"uui-typography":"Zs-vhU","uuiTypography":"Zs-vhU","hero-header":"Ammbec","heroHeader":"Ammbec","promo-header":"M-NFe5","promoHeader":"M-NFe5","uui-critical":"deZZsd","uuiCritical":"deZZsd","uui-info":"nBxyPX","uuiInfo":"nBxyPX","uui-success":"I1Kx5e","uuiSuccess":"I1Kx5e","uui-warning":"DG35kP","uuiWarning":"DG35kP","uui-highlight":"dZYMV7","uuiHighlight":"dZYMV7","uui-typography-size-12":"tvCqeb","uuiTypographySize12":"tvCqeb","uui-typography-size-14":"_6w7Msy","uuiTypographySize14":"_6w7Msy","uui-typography-size-16":"nY8zxb","uuiTypographySize16":"nY8zxb","root":"KJ3hOy","container":"PPV-zT","day-selection":"poG-ne","daySelection":"poG-ne","from-picker":"Xqj399","fromPicker":"Xqj399","to-picker":"wI-hNj","toPicker":"wI-hNj","bodes-wrapper":"NGa3lw","bodesWrapper":"NGa3lw","blocker":"_06mXCK"};
2417
+ var css$P = {"uui-typography":"pxtxU-","uuiTypography":"pxtxU-","hero-header":"cjXZ-y","heroHeader":"cjXZ-y","promo-header":"b-scZm","promoHeader":"b-scZm","uui-critical":"NH5hfs","uuiCritical":"NH5hfs","uui-info":"RkAKYL","uuiInfo":"RkAKYL","uui-success":"D3veL8","uuiSuccess":"D3veL8","uui-warning":"SuPW6H","uuiWarning":"SuPW6H","uui-highlight":"lm2GRC","uuiHighlight":"lm2GRC","uui-typography-size-12":"N-19Fk","uuiTypographySize12":"N-19Fk","uui-typography-size-14":"TTQR9J","uuiTypographySize14":"TTQR9J","uui-typography-size-16":"F9kWoA","uuiTypographySize16":"F9kWoA","root":"ZI3bVF","container":"_1HgaOx","day-selection":"L2DvXA","daySelection":"L2DvXA","from-picker":"_56frkW","fromPicker":"_56frkW","to-picker":"bfxvrA","toPicker":"bfxvrA","bodes-wrapper":"KJ-thA","bodesWrapper":"KJ-thA","blocker":"sLX3dg"};
2416
2418
 
2417
2419
  const uuiRangeDatePickerBody = {
2418
2420
  inRange: 'uui-range-datepicker-in-range',
@@ -2510,8 +2512,8 @@ function RangeDatePickerBodyComp(props, ref) {
2510
2512
  // selectedDate can be null, other params should always have values
2511
2513
  const newRange = v ? getRange(v) : selectedDate;
2512
2514
  let newInFocus = null;
2513
- const fromChanged = selectedDate.from !== (newRange === null || newRange === void 0 ? void 0 : newRange.from);
2514
- const toChanged = selectedDate.to !== (newRange === null || newRange === void 0 ? void 0 : newRange.to);
2515
+ const fromChanged = selectedDate.from !== newRange?.from;
2516
+ const toChanged = selectedDate.to !== newRange?.to;
2515
2517
  if (inFocus === 'from' && fromChanged) {
2516
2518
  newInFocus = 'to';
2517
2519
  }
@@ -2521,11 +2523,11 @@ function RangeDatePickerBodyComp(props, ref) {
2521
2523
  setActiveMonth(part);
2522
2524
  props.onValueChange({
2523
2525
  selectedDate: newRange ? newRange : selectedDate,
2524
- inFocus: newInFocus !== null && newInFocus !== void 0 ? newInFocus : inFocus,
2526
+ inFocus: newInFocus ?? inFocus,
2525
2527
  });
2526
2528
  };
2527
2529
  const renderDay = (renderProps) => {
2528
- return (React__default.createElement(Day, Object.assign({}, renderProps, { cx: getDayCX(renderProps.value, selectedDate) })));
2530
+ return (React__default.createElement(Day, { ...renderProps, cx: getDayCX(renderProps.value, selectedDate) }));
2529
2531
  };
2530
2532
  const from = {
2531
2533
  month,
@@ -2553,17 +2555,17 @@ function RangeDatePickerBodyComp(props, ref) {
2553
2555
  });
2554
2556
  }, presets: presets })));
2555
2557
  };
2556
- return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
2558
+ return (React__default.createElement("div", { ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
2557
2559
  React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
2558
2560
  React__default.createElement(FlexCell, { width: "auto" },
2559
2561
  React__default.createElement(FlexRow, null,
2560
2562
  React__default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
2561
- React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
2563
+ React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$P.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
2562
2564
  setMonth(m);
2563
- }, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
2564
- React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
2565
+ }, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
2566
+ React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$P.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
2565
2567
  setMonth(m.subtract(1, 'month'));
2566
- }, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
2568
+ }, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
2567
2569
  view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
2568
2570
  left: activeMonth === 'from' ? '50%' : undefined,
2569
2571
  right: activeMonth === 'to' ? '50%' : undefined,
@@ -2573,9 +2575,9 @@ function RangeDatePickerBodyComp(props, ref) {
2573
2575
  }
2574
2576
  const getDayCX = (day, selectedDate) => {
2575
2577
  const dayValue = day.valueOf();
2576
- const fromValue = (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.from)
2578
+ const fromValue = selectedDate?.from
2577
2579
  ? uuiDayjs.dayjs(selectedDate.from).valueOf() : null;
2578
- const toValue = (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.to)
2580
+ const toValue = selectedDate?.to
2579
2581
  ? uuiDayjs.dayjs(selectedDate.to).valueOf() : null;
2580
2582
  const inRange = fromValue
2581
2583
  && toValue
@@ -2587,7 +2589,7 @@ const getDayCX = (day, selectedDate) => {
2587
2589
  return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
2588
2590
  };
2589
2591
 
2590
- var css$O = {"dropdown-container":"-z-4Dl","dropdownContainer":"-z-4Dl"};
2592
+ var css$O = {"dropdown-container":"KpYPSG","dropdownContainer":"KpYPSG"};
2591
2593
 
2592
2594
  const modifiers = [{
2593
2595
  name: 'offset',
@@ -2601,8 +2603,8 @@ function RangeDatePickerComponent(props, ref) {
2601
2603
  const [inFocus, setInFocus] = useState(null);
2602
2604
  const targetRef = React__default.useRef(null);
2603
2605
  const onValueChange = (newValue) => {
2604
- const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
2605
- const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
2606
+ const fromChanged = value?.from !== newValue?.from;
2607
+ const toChanged = value?.to !== newValue?.to;
2606
2608
  if (fromChanged || toChanged) {
2607
2609
  props.onValueChange(newValue);
2608
2610
  if (props.getValueChangeAnalyticsEvent) {
@@ -2612,17 +2614,15 @@ function RangeDatePickerComponent(props, ref) {
2612
2614
  }
2613
2615
  };
2614
2616
  const onOpenChange = (newIsOpen) => {
2615
- var _a;
2616
2617
  setIsOpen(newIsOpen);
2617
- (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
2618
+ props.onOpenChange?.(newIsOpen);
2618
2619
  if (!inFocus && newIsOpen) {
2619
2620
  setInFocus('from');
2620
2621
  targetRef.current.querySelector('.uui-input').focus();
2621
2622
  }
2622
2623
  };
2623
2624
  const onBodyValueChange = (newValue) => {
2624
- var _a;
2625
- setInFocus((_a = newValue.inFocus) !== null && _a !== void 0 ? _a : inFocus);
2625
+ setInFocus(newValue.inFocus ?? inFocus);
2626
2626
  onValueChange(newValue.selectedDate);
2627
2627
  const toChanged = value.to !== newValue.selectedDate.to;
2628
2628
  const closeBody = newValue.selectedDate.from && newValue.selectedDate.to
@@ -2633,19 +2633,14 @@ function RangeDatePickerComponent(props, ref) {
2633
2633
  }
2634
2634
  };
2635
2635
  const renderBody = (renderProps) => {
2636
- var _a;
2637
- return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
2638
- console.log('lock', node);
2639
- return true;
2640
- } }),
2636
+ return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: true },
2641
2637
  React__default.createElement(FlexRow, null,
2642
2638
  React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
2643
2639
  selectedDate: _value,
2644
2640
  inFocus,
2645
2641
  }, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => {
2646
- var _a;
2647
- return (_a = props.renderFooter) === null || _a === void 0 ? void 0 : _a.call(props, value);
2648
- }, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
2642
+ return props.renderFooter?.(value);
2643
+ }, isHoliday: props.isHoliday, rawProps: props.rawProps?.body }))));
2649
2644
  };
2650
2645
  const handleEscape = (e) => {
2651
2646
  if (e.key === 'Escape' && isOpen) {
@@ -2654,17 +2649,15 @@ function RangeDatePickerComponent(props, ref) {
2654
2649
  }
2655
2650
  };
2656
2651
  return (React__default.createElement(Dropdown$1, { renderTarget: (renderProps) => {
2657
- var _a;
2658
- return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: props.size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
2659
- var _a;
2660
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e, type);
2652
+ return props.renderTarget?.(renderProps) || (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: props.size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
2653
+ props.onFocus?.(e, type);
2661
2654
  setInFocus(type);
2662
- }, onBlurInput: (e, type) => { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
2655
+ }, onBlurInput: (e, type) => { props.onBlur?.(e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
2663
2656
  }, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
2664
2657
  }
2665
2658
  const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
2666
2659
 
2667
- var css$N = {"root":"_--rqHV","blocker":"YGgN11","marker":"PwvMNp","top":"iTI5KI","bottom":"DOVNhM","left":"gXiDfM","right":"l5vLvq","inside":"SvEyhK"};
2660
+ var css$N = {"root":"s39rzC","blocker":"qWTO0E","marker":"k65eme","top":"xwn4gn","bottom":"gqT8Pp","left":"wwolZT","right":"-sq0O5","inside":"Lu2MGv"};
2668
2661
 
2669
2662
  function DropMarker(props) {
2670
2663
  return props.isDndInProgress
@@ -2674,12 +2667,12 @@ function DropMarker(props) {
2674
2667
  css$N.root,
2675
2668
  css$N.marker,
2676
2669
  css$N[props.position],
2677
- props === null || props === void 0 ? void 0 : props.cx,
2670
+ props?.cx,
2678
2671
  ]) })))
2679
2672
  : null;
2680
2673
  }
2681
2674
 
2682
- var css$M = {"root":"A3dldn","line-height":"FJ-kyL","lineHeight":"FJ-kyL","font-size":"a8Gc3b","fontSize":"a8Gc3b"};
2675
+ var css$M = {"root":"eQWLok","line-height":"wJB92U","lineHeight":"wJB92U","font-size":"KXfmdz","fontSize":"KXfmdz"};
2683
2676
 
2684
2677
  function applyTextMods(mods) {
2685
2678
  return [
@@ -2695,16 +2688,18 @@ function applyTextMods(mods) {
2695
2688
  ];
2696
2689
  }
2697
2690
  const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
2698
- var _a;
2699
- const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
2691
+ const style = props?.rawProps?.style || {};
2700
2692
  props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
2701
2693
  props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
2702
2694
  return {
2703
- rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
2695
+ rawProps: {
2696
+ ...props?.rawProps,
2697
+ style: style,
2698
+ },
2704
2699
  };
2705
2700
  });
2706
2701
 
2707
- var css$L = {"root":"YlTVbm","loading-word":"qIJzK-","loadingWord":"qIJzK-","animated-loading":"BXzop3","animatedLoading":"BXzop3","skeleton_loading":"Cs-67S","skeletonLoading":"Cs-67S"};
2702
+ var css$L = {"root":"QHvxBJ","loading-word":"KzrlUD","loadingWord":"KzrlUD","animated-loading":"aqf8fw","animatedLoading":"aqf8fw","skeleton_loading":"bftHZw","skeletonLoading":"bftHZw"};
2708
2703
 
2709
2704
  const TextPlaceholder = (props) => {
2710
2705
  const pattern = '&nbsp;';
@@ -2716,20 +2711,20 @@ const TextPlaceholder = (props) => {
2716
2711
  }
2717
2712
  return words;
2718
2713
  }, [props.wordsCount]);
2719
- return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
2714
+ return (React.createElement("div", { "aria-busy": true, className: cx(css$L.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
2720
2715
  props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
2721
2716
  ]), dangerouslySetInnerHTML: { __html: it } })))));
2722
2717
  };
2723
2718
 
2724
2719
  const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
2725
2720
 
2726
- var css$K = {"uui-typography":"kLBxhD","uuiTypography":"kLBxhD","hero-header":"B-Tt2c","heroHeader":"B-Tt2c","promo-header":"c6G5ZX","promoHeader":"c6G5ZX","uui-critical":"_2yoqbT","uuiCritical":"_2yoqbT","uui-info":"N4UlG2","uuiInfo":"N4UlG2","uui-success":"erNU-s","uuiSuccess":"erNU-s","uui-warning":"g-VHkV","uuiWarning":"g-VHkV","uui-highlight":"_2P5CxQ","uuiHighlight":"_2P5CxQ","uui-typography-size-12":"iIIOO1","uuiTypographySize12":"iIIOO1","uui-typography-size-14":"_5Dt71s","uuiTypographySize14":"_5Dt71s","uui-typography-size-16":"cdshSz","uuiTypographySize16":"cdshSz","modal":"uTQev6","search-wrapper":"iueTZa","searchWrapper":"iueTZa","no-data":"jua5BE","noData":"jua5BE","type-search-to-load-size-24":"S3Uy4W","typeSearchToLoadSize24":"S3Uy4W"};
2721
+ var css$K = {"uui-typography":"GzEwGa","uuiTypography":"GzEwGa","hero-header":"mBTY-p","heroHeader":"mBTY-p","promo-header":"zSY6rk","promoHeader":"zSY6rk","uui-critical":"_4mMnc5","uuiCritical":"_4mMnc5","uui-info":"cENHCL","uuiInfo":"cENHCL","uui-success":"VGvm1N","uuiSuccess":"VGvm1N","uui-warning":"zrpOB-","uuiWarning":"zrpOB-","uui-highlight":"SaidTM","uuiHighlight":"SaidTM","uui-typography-size-12":"gVAKar","uuiTypographySize12":"gVAKar","uui-typography-size-14":"eJqLIV","uuiTypographySize14":"eJqLIV","uui-typography-size-16":"B3m5vL","uuiTypographySize16":"B3m5vL","modal":"KXp2Fv","search-wrapper":"IlzjuW","searchWrapper":"IlzjuW","no-data":"nBLknf","noData":"nBLknf","type-search-to-load-size-24":"GuxY9O","typeSearchToLoadSize24":"GuxY9O"};
2727
2722
 
2728
2723
  class DataPickerBody extends PickerBodyBase {
2729
2724
  constructor() {
2730
2725
  super(...arguments);
2731
2726
  this.lens = Lens.onEditableComponent(this);
2732
- this.searchLens = this.lens.prop('search');
2727
+ this.searchLens = this.lens.prop('search').default('');
2733
2728
  this.getSearchSize = () => (isMobile() ? settings.sizes.pickerInput.body.mobile.searchInput : this.props.searchSize);
2734
2729
  }
2735
2730
  renderEmpty() {
@@ -2766,12 +2761,12 @@ class DataPickerBody extends PickerBodyBase {
2766
2761
  return (React__default.createElement(React__default.Fragment, null,
2767
2762
  this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
2768
2763
  React__default.createElement(FlexCell$1, { grow: 1 },
2769
- React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
2770
- React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : this.renderEmpty())));
2764
+ React__default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
2765
+ React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })) : this.renderEmpty())));
2771
2766
  }
2772
2767
  }
2773
2768
 
2774
- var css$J = {"footer":"ZUAwBd"};
2769
+ var css$J = {"footer":"itU8zU"};
2775
2770
 
2776
2771
  function DataPickerFooterImpl(props) {
2777
2772
  const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
@@ -2782,11 +2777,12 @@ function DataPickerFooterImpl(props) {
2782
2777
  const clearAllText = i18n.pickerInput.clearSelectionButton;
2783
2778
  const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
2784
2779
  const selectAllText = i18n.pickerInput.selectAllButton;
2785
- const isSearching = search === null || search === void 0 ? void 0 : search.length;
2786
- const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
2780
+ const isSearching = search?.length;
2781
+ const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
2787
2782
  const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
2788
2783
  return !hideFooter && (React__default.createElement(FlexRow, { cx: css$J.footer },
2789
- !isSinglePicker && (React__default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
2784
+ !isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
2785
+ React__default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
2790
2786
  React__default.createElement(FlexSpacer, null),
2791
2787
  React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
2792
2788
  view.selectAll && !hasSelection && (React__default.createElement(LinkButton, { key: "SelectAll/ClearAll" // We use the same key for these buttons, because we need to leave focus on it after click, so we need to react doesn't remount it.
@@ -2796,13 +2792,13 @@ function DataPickerFooterImpl(props) {
2796
2792
  }
2797
2793
  const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
2798
2794
 
2799
- var css$I = {"header":"_3DSq5k","title":"By9VJ2","close":"gU-Ide"};
2795
+ var css$I = {"header":"_3n-qfU","title":"h0Yzay","close":"Ubv-e5"};
2800
2796
 
2801
2797
  const DataPickerHeaderImpl = (props) => {
2802
2798
  const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
2803
2799
  return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
2804
2800
  React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
2805
- React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
2801
+ React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => props.close?.(), cx: css$I.close })));
2806
2802
  };
2807
2803
  const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
2808
2804
 
@@ -2821,7 +2817,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
2821
2817
  };
2822
2818
  var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
2823
2819
 
2824
- var css$H = {"uui-typography":"QEjom7","uuiTypography":"QEjom7","hero-header":"a57md4","heroHeader":"a57md4","promo-header":"Z-aeOW","promoHeader":"Z-aeOW","uui-critical":"UpKyOz","uuiCritical":"UpKyOz","uui-info":"kQ-xQZ","uuiInfo":"kQ-xQZ","uui-success":"DBdFW6","uuiSuccess":"DBdFW6","uui-warning":"vRDH22","uuiWarning":"vRDH22","uui-highlight":"KkiaV1","uuiHighlight":"KkiaV1","uui-typography-size-12":"_8yeFrM","uuiTypographySize12":"_8yeFrM","uui-typography-size-14":"H-BPdm","uuiTypographySize14":"H-BPdm","uui-typography-size-16":"BChWwY","uuiTypographySize16":"BChWwY","root":"IsNXt-","align-widgets-top":"_29-1Aq","alignWidgetsTop":"_29-1Aq","align-widgets-center":"jcw52X","alignWidgetsCenter":"jcw52X","icon-container":"upZuXl","iconContainer":"upZuXl","loading-cell":"-Mv0B9","loadingCell":"-Mv0B9","content-wrapper":"_5VUVOh","contentWrapper":"_5VUVOh","render-item":"-mCBNO","renderItem":"-mCBNO","icon-wrapper":"s-8Qbv","iconWrapper":"s-8Qbv","icon-default":"_7j-rSv","iconDefault":"_7j-rSv","selected-mark":"QHaYST","selectedMark":"QHaYST"};
2820
+ var css$H = {"uui-typography":"_6hgF6R","uuiTypography":"_6hgF6R","hero-header":"ZeDzP9","heroHeader":"ZeDzP9","promo-header":"g6yqSL","promoHeader":"g6yqSL","uui-critical":"YnfZye","uuiCritical":"YnfZye","uui-info":"_9-XPH5","uuiInfo":"_9-XPH5","uui-success":"PsJWR0","uuiSuccess":"PsJWR0","uui-warning":"RM8EhK","uuiWarning":"RM8EhK","uui-highlight":"gm79d5","uuiHighlight":"gm79d5","uui-typography-size-12":"SzgSsd","uuiTypographySize12":"SzgSsd","uui-typography-size-14":"K8Zf-B","uuiTypographySize14":"K8Zf-B","uui-typography-size-16":"eP6uR2","uuiTypographySize16":"eP6uR2","root":"_5II2o4","align-widgets-top":"OnL4Jy","alignWidgetsTop":"OnL4Jy","align-widgets-center":"_0AyqS5","alignWidgetsCenter":"_0AyqS5","icon-container":"_78nVA6","iconContainer":"_78nVA6","loading-cell":"_8j5Wkr","loadingCell":"_8j5Wkr","content-wrapper":"jmw-rL","contentWrapper":"jmw-rL","render-item":"Ej70i1","renderItem":"Ej70i1","icon-wrapper":"_2Ptlir","iconWrapper":"_2Ptlir","icon-default":"RE0cha","iconDefault":"RE0cha","selected-mark":"N-Hbkk","selectedMark":"N-Hbkk"};
2825
2821
 
2826
2822
  function DataPickerCell(props) {
2827
2823
  const ref = React.useRef();
@@ -2854,11 +2850,11 @@ function DataPickerCell(props) {
2854
2850
  ], style: props.padding && {
2855
2851
  '--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
2856
2852
  } },
2857
- React.createElement(DataRowAddons, Object.assign({ size: props.size }, props, { tabIndex: -1 })),
2853
+ React.createElement(DataRowAddons, { size: props.size, ...props, tabIndex: -1 }),
2858
2854
  getWrappedContent()));
2859
2855
  }
2860
2856
 
2861
- var css$G = {"uui-typography":"siNryl","uuiTypography":"siNryl","hero-header":"h4KG3O","heroHeader":"h4KG3O","promo-header":"_5-T5lb","promoHeader":"_5-T5lb","uui-critical":"vyoGOH","uuiCritical":"vyoGOH","uui-info":"HwzBBi","uuiInfo":"HwzBBi","uui-success":"KOaiCH","uuiSuccess":"KOaiCH","uui-warning":"_3Uh2w3","uuiWarning":"_3Uh2w3","uui-highlight":"vCWV0I","uuiHighlight":"vCWV0I","uui-typography-size-12":"j67G62","uuiTypographySize12":"j67G62","uui-typography-size-14":"_5gMjDd","uuiTypographySize14":"_5gMjDd","uui-typography-size-16":"_3buSmf","uuiTypographySize16":"_3buSmf","picker-row":"s4cSju","pickerRow":"s4cSju"};
2857
+ var css$G = {"uui-typography":"TdkT8z","uuiTypography":"TdkT8z","hero-header":"s2mPsm","heroHeader":"s2mPsm","promo-header":"AG1vlN","promoHeader":"AG1vlN","uui-critical":"biNm3e","uuiCritical":"biNm3e","uui-info":"O2gZt0","uuiInfo":"O2gZt0","uui-success":"_1Peuck","uuiSuccess":"_1Peuck","uui-warning":"tPRKd-","uuiWarning":"tPRKd-","uui-highlight":"BzmLqY","uuiHighlight":"BzmLqY","uui-typography-size-12":"R-j-Tj","uuiTypographySize12":"R-j-Tj","uui-typography-size-14":"zQXGIH","uuiTypographySize14":"zQXGIH","uui-typography-size-16":"A-EV4y","uuiTypographySize16":"A-EV4y","picker-row":"_6ZMOvS","pickerRow":"_6ZMOvS"};
2862
2858
 
2863
2859
  class DataPickerRow extends React.Component {
2864
2860
  constructor() {
@@ -2868,20 +2864,20 @@ class DataPickerRow extends React.Component {
2868
2864
  };
2869
2865
  }
2870
2866
  render() {
2871
- return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
2867
+ return (React.createElement(DataPickerRow$1, { ...this.props, cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent }));
2872
2868
  }
2873
2869
  }
2874
2870
 
2875
- var css$F = {"uui-typography":"Q42XwY","uuiTypography":"Q42XwY","hero-header":"SBm4ka","heroHeader":"SBm4ka","promo-header":"Rr-TZA","promoHeader":"Rr-TZA","uui-critical":"eRjik3","uuiCritical":"eRjik3","uui-info":"dND8ON","uuiInfo":"dND8ON","uui-success":"kMevo2","uuiSuccess":"kMevo2","uui-warning":"NtSFhq","uuiWarning":"NtSFhq","uui-highlight":"CnMBPs","uuiHighlight":"CnMBPs","uui-typography-size-12":"Bx1rUq","uuiTypographySize12":"Bx1rUq","uui-typography-size-14":"d7zbkD","uuiTypographySize14":"d7zbkD","uui-typography-size-16":"_6eeSmd","uuiTypographySize16":"_6eeSmd","done":"A2IPf3","container":"xEmc0l"};
2871
+ var css$F = {"uui-typography":"NFRbTo","uuiTypography":"NFRbTo","hero-header":"DE0BU7","heroHeader":"DE0BU7","promo-header":"zkKVJi","promoHeader":"zkKVJi","uui-critical":"zMu-e4","uuiCritical":"zMu-e4","uui-info":"xJic-z","uuiInfo":"xJic-z","uui-success":"n7DPEm","uuiSuccess":"n7DPEm","uui-warning":"HjlGV0","uuiWarning":"HjlGV0","uui-highlight":"GVNd-5","uuiHighlight":"GVNd-5","uui-typography-size-12":"Z3Or7J","uuiTypographySize12":"Z3Or7J","uui-typography-size-14":"ON3Hax","uuiTypographySize14":"ON3Hax","uui-typography-size-16":"FEI3pM","uuiTypographySize16":"FEI3pM","done":"cWHVY9","container":"_65JFOF"};
2876
2872
 
2877
2873
  const PickerBodyMobileView = (props) => {
2878
2874
  const isMobileView = isMobile();
2879
2875
  const maxWidth = isMobileView ? 'auto' : props.maxWidth;
2880
2876
  const maxHeight = isMobileView ? 'auto' : props.maxHeight;
2881
- return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
2877
+ return (React__default.createElement(DropdownContainer, { ...props, maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true },
2882
2878
  isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
2883
2879
  props.children,
2884
- isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
2880
+ isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
2885
2881
  };
2886
2882
 
2887
2883
  var _path$r, _path2$4;
@@ -2906,20 +2902,20 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
2906
2902
  };
2907
2903
  var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
2908
2904
 
2909
- var css$E = {"uui-typography":"Agv7jz","uuiTypography":"Agv7jz","hero-header":"wx8SkL","heroHeader":"wx8SkL","promo-header":"NfLVB0","promoHeader":"NfLVB0","uui-critical":"Apm-ly","uuiCritical":"Apm-ly","uui-info":"GStFcu","uuiInfo":"GStFcu","uui-success":"RsRT6M","uuiSuccess":"RsRT6M","uui-warning":"QBkx5-","uuiWarning":"QBkx5-","uui-highlight":"kPZe7A","uuiHighlight":"kPZe7A","uui-typography-size-12":"jrS3Lr","uuiTypographySize12":"jrS3Lr","uui-typography-size-14":"RqawC2","uuiTypographySize14":"RqawC2","uui-typography-size-16":"_022Kyr","uuiTypographySize16":"_022Kyr","sub-header-wrapper":"RXI25w","subHeaderWrapper":"RXI25w","switch":"CSj-Gj","no-found-modal-container":"_-8xXTh","noFoundModalContainer":"_-8xXTh","no-found-modal-container-icon":"_7SrDIk","noFoundModalContainerIcon":"_7SrDIk","no-found-modal-container-text":"_4OYeCI","noFoundModalContainerText":"_4OYeCI"};
2905
+ var css$E = {"uui-typography":"yEfbCP","uuiTypography":"yEfbCP","hero-header":"sF3tSK","heroHeader":"sF3tSK","promo-header":"RhUX8w","promoHeader":"RhUX8w","uui-critical":"WSyAjb","uuiCritical":"WSyAjb","uui-info":"JER2iI","uuiInfo":"JER2iI","uui-success":"bLn4e8","uuiSuccess":"bLn4e8","uui-warning":"U-gRRF","uuiWarning":"U-gRRF","uui-highlight":"QslQax","uuiHighlight":"QslQax","uui-typography-size-12":"E1-U8i","uuiTypographySize12":"E1-U8i","uui-typography-size-14":"CUMbQk","uuiTypographySize14":"CUMbQk","uui-typography-size-16":"ap4O-X","uuiTypographySize16":"ap4O-X","sub-header-wrapper":"qUWBHl","subHeaderWrapper":"qUWBHl","switch":"f6xCws","no-found-modal-container":"x8lKEp","noFoundModalContainer":"x8lKEp","no-found-modal-container-icon":"Dt5YDI","noFoundModalContainerIcon":"Dt5YDI","no-found-modal-container-text":"f3K28B","noFoundModalContainerText":"f3K28B"};
2910
2906
 
2911
2907
  const mergeHighlightRanges = (ranges) => {
2912
2908
  const mergedRanges = [];
2913
2909
  ranges.forEach((range) => {
2914
2910
  if (!mergedRanges.length) {
2915
- mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
2911
+ mergedRanges.push({ ...range, isHighlighted: true });
2916
2912
  }
2917
2913
  const lastRange = mergedRanges[mergedRanges.length - 1];
2918
2914
  if (range.from >= lastRange.from && range.from <= lastRange.to && range.to > lastRange.to) {
2919
2915
  lastRange.to = range.to;
2920
2916
  }
2921
2917
  if (lastRange.to < range.from) {
2922
- mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
2918
+ mergedRanges.push({ ...range, isHighlighted: true });
2923
2919
  }
2924
2920
  });
2925
2921
  return mergedRanges;
@@ -2960,7 +2956,7 @@ const getHighlightRanges = (str, search) => {
2960
2956
  };
2961
2957
  const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
2962
2958
  const rangeStr = str.substring(range.from, range.to);
2963
- return (React__default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: 'uui-highlight' } : {})), rangeStr));
2959
+ return (React__default.createElement("span", { key: `${rangeStr}-${index}`, ...(range.isHighlighted ? { className: 'uui-highlight' } : {}) }, rangeStr));
2964
2960
  });
2965
2961
  const getHighlightedSearchMatches = (str, search) => {
2966
2962
  if (!search || !str) {
@@ -2973,14 +2969,13 @@ const getHighlightedSearchMatches = (str, search) => {
2973
2969
  return getDecoratedText(str, ranges);
2974
2970
  };
2975
2971
 
2976
- var css$D = {"root":"CIG2Xr","column-gap":"Tm0Fwb","columnGap":"Tm0Fwb","multiline":"_4WyMTB","text":"Zx9mSy"};
2972
+ var css$D = {"root":"Bar58j","column-gap":"gXVnxb","columnGap":"gXVnxb","multiline":"BXvqf5","text":"BDIk9t"};
2977
2973
 
2978
2974
  function PickerItem(props) {
2979
- var _a;
2980
2975
  const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, cx, } = props;
2981
2976
  const itemSize = size || settings.sizes.pickerInput.body.dropdown.row.cell.item.default;
2982
2977
  const isMultiline = !!(props.title && props.subtitle);
2983
- const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
2978
+ const { search } = props.dataSourceState ?? {};
2984
2979
  const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
2985
2980
  const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
2986
2981
  return (React.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
@@ -3007,10 +3002,10 @@ function PickerModal(props) {
3007
3002
  };
3008
3003
  const renderItem = (item, rowProps, dsState) => {
3009
3004
  const { flattenSearchResults } = view.getConfig();
3010
- return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: "36", dataSourceState: dsState }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
3005
+ return (React__default.createElement(PickerItem, { title: getName(item), size: "36", dataSourceState: dsState, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
3011
3006
  };
3012
3007
  const renderRow = (rowProps) => {
3013
- return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, padding: "24", size: "36", renderItem: (item, itemProps) => renderItem(item, itemProps, dataSourceState) })));
3008
+ return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, padding: "24", size: "36", renderItem: (item, itemProps) => renderItem(item, itemProps, dataSourceState) }));
3014
3009
  };
3015
3010
  const renderFooter = () => {
3016
3011
  const hasSelection = view.getSelectedRowsCount() > 0;
@@ -3030,40 +3025,44 @@ function PickerModal(props) {
3030
3025
  };
3031
3026
  const dataRows = getRows();
3032
3027
  const rows = dataRows.map((row) => renderRow(row));
3033
- return (React__default.createElement(ModalBlocker, Object.assign({}, props),
3028
+ return (React__default.createElement(ModalBlocker, { ...props },
3034
3029
  React__default.createElement(ModalWindow, { width: 600, height: 700 },
3035
3030
  React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
3036
3031
  React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
3037
3032
  React__default.createElement(FlexRow, { vPadding: "24" },
3038
- React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
3033
+ React__default.createElement(SearchInput, { ...dataSourceStateLens.prop('search').toProps(), onKeyDown: (e) => handleDataSourceKeyboard({
3039
3034
  value: getDataSourceState(),
3040
3035
  onValueChange: handleDataSourceValueChange,
3041
3036
  listView: view,
3042
3037
  rows: dataRows,
3043
3038
  searchPosition: 'body',
3044
- }, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
3045
- !isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
3039
+ }, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } })),
3040
+ !isSingleSelect() && (React__default.createElement(Switch, { cx: css$E.switch, size: "18", ...getFooterProps().showSelected, isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" })),
3046
3041
  props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
3047
- React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
3042
+ React__default.createElement(DataPickerBody, { ...getListProps(), value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" }),
3048
3043
  React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
3049
3044
  }
3050
3045
 
3051
- var css$C = {"tooltip":"tRTd0b"};
3046
+ var css$C = {"tooltip":"tOwKnj"};
3052
3047
 
3053
3048
  const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
3054
- var _a;
3055
- const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerInput.toggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React.createElement(TextPlaceholder, null) : props.caption });
3049
+ const tagProps = {
3050
+ ...props,
3051
+ tabIndex: -1,
3052
+ size: settings.sizes.pickerInput.toggler.tag[props.size],
3053
+ caption: props.rowProps?.isLoading ? React.createElement(TextPlaceholder, null) : props.caption,
3054
+ };
3056
3055
  if (props.isCollapsed) {
3057
3056
  const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
3058
3057
  return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
3059
- React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
3058
+ React.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps })));
3060
3059
  }
3061
3060
  else {
3062
- return React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps));
3061
+ return React.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps });
3063
3062
  }
3064
3063
  });
3065
3064
 
3066
- var css$B = {"uui-typography":"_8-2JIG","uuiTypography":"_8-2JIG","hero-header":"wWipjp","heroHeader":"wWipjp","promo-header":"GPkrL4","promoHeader":"GPkrL4","uui-critical":"oGCOPd","uuiCritical":"oGCOPd","uui-info":"cI2eNu","uuiInfo":"cI2eNu","uui-success":"_4g8S8T","uuiSuccess":"_4g8S8T","uui-warning":"MEOaaP","uuiWarning":"MEOaaP","uui-highlight":"ZsaslH","uuiHighlight":"ZsaslH","uui-typography-size-12":"wEekFQ","uuiTypographySize12":"wEekFQ","uui-typography-size-14":"ZgDNR3","uuiTypographySize14":"ZgDNR3","uui-typography-size-16":"-kF8WU","uuiTypographySize16":"-kF8WU","root":"ayaBYN","mode-form":"ZASwiN","modeForm":"ZASwiN","mode-cell":"mqVyi3","modeCell":"mqVyi3","mode-inline":"q-cZAP","modeInline":"q-cZAP"};
3065
+ var css$B = {"uui-typography":"LK4Et4","uuiTypography":"LK4Et4","hero-header":"-eKS0N","heroHeader":"-eKS0N","promo-header":"_1OJbnM","promoHeader":"_1OJbnM","uui-critical":"_0-ntQT","uuiCritical":"_0-ntQT","uui-info":"V-xL2y","uuiInfo":"V-xL2y","uui-success":"MfLpwo","uuiSuccess":"MfLpwo","uui-warning":"QD50RW","uuiWarning":"QD50RW","uui-highlight":"pEfqsT","uuiHighlight":"pEfqsT","uui-typography-size-12":"qaP1hY","uuiTypographySize12":"qaP1hY","uui-typography-size-14":"_19EcGo","uuiTypographySize14":"_19EcGo","uui-typography-size-16":"d9Q-kW","uuiTypographySize16":"d9Q-kW","root":"_1O0y1J","mode-form":"Ree3EU","modeForm":"Ree3EU","mode-cell":"PUIRV6","modeCell":"PUIRV6","mode-inline":"i0-l5P","modeInline":"i0-l5P"};
3067
3066
 
3068
3067
  const defaultMode = EditMode.FORM;
3069
3068
  function applyPickerTogglerMods(mods) {
@@ -3076,28 +3075,27 @@ function applyPickerTogglerMods(mods) {
3076
3075
  }
3077
3076
  function PickerTogglerComponent(props, ref) {
3078
3077
  const renderItem = (itemProps) => {
3079
- const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: (props.size || settings.sizes.pickerInput.toggler.defaults.tag) });
3078
+ const itemPropsWithSize = { ...itemProps, size: (props.size || settings.sizes.pickerInput.toggler.defaults.tag) };
3080
3079
  if (!!props.renderItem) {
3081
3080
  return props.renderItem(itemPropsWithSize);
3082
3081
  }
3083
- return (React.createElement(PickerTogglerTag, Object.assign({}, itemPropsWithSize, { getName: props.getName })));
3082
+ return (React.createElement(PickerTogglerTag, { ...itemPropsWithSize, getName: props.getName }));
3084
3083
  };
3085
- return (React.createElement(PickerToggler$1, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: renderItem, getName: props.getName, cancelIcon: systemIcons.clear, dropdownIcon: systemIcons.foldingArrow })));
3084
+ return (React.createElement(PickerToggler$1, { ...props, ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: renderItem, getName: props.getName, cancelIcon: systemIcons.clear, dropdownIcon: systemIcons.foldingArrow }));
3086
3085
  }
3087
3086
  const PickerToggler = /* @__PURE__ */React.forwardRef(PickerTogglerComponent);
3088
3087
 
3089
- function PickerInputComponent(_a, ref) {
3090
- var { highlightSearchMatches = true } = _a, props = __rest(_a, ["highlightSearchMatches"]);
3088
+ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref) {
3091
3089
  const toggleModalOpening = () => {
3092
- const { renderFooter, rawProps } = props, restProps = __rest(props, ["renderFooter", "rawProps"]);
3090
+ const { renderFooter, rawProps, ...restProps } = props;
3093
3091
  context.uuiModals
3094
- .show((modalProps) => (React__default.createElement(PickerModal, Object.assign({}, restProps, { rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.body }, modalProps, { caption: getPlaceholder(), initialValue: props.value, renderRow: renderRow, selectionMode: props.selectionMode, valueType: props.valueType }))))
3092
+ .show((modalProps) => (React__default.createElement(PickerModal, { ...restProps, rawProps: rawProps?.body, ...modalProps, caption: getPlaceholder(), initialValue: props.value, renderRow: renderRow, selectionMode: props.selectionMode, valueType: props.valueType })))
3095
3093
  .then((newSelection) => {
3096
3094
  handleSelectionValueChange(newSelection);
3097
3095
  })
3098
3096
  .catch(() => { });
3099
3097
  };
3100
- const { view, context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, closePickerBody, openPickerBody, handlePickerInputKeyboard, } = usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
3098
+ const { view, context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, closePickerBody, openPickerBody, handlePickerInputKeyboard, } = usePickerInput({ ...props, toggleModalOpening });
3101
3099
  const dropdownRef = useRef(null);
3102
3100
  useImperativeHandle(ref, () => {
3103
3101
  if (dropdownRef.current) {
@@ -3113,12 +3111,17 @@ function PickerInputComponent(_a, ref) {
3113
3111
  };
3114
3112
  };
3115
3113
  const renderTarget = (targetProps) => {
3116
- const renderTargetFn = props.renderToggler || ((props) => React__default.createElement(PickerToggler, Object.assign({}, props)));
3117
- return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn(Object.assign(Object.assign(Object.assign(Object.assign({}, getTogglerMods()), targetProps), editableProps), { onKeyDown: (e) => handlePickerInputKeyboard(rows, e, editableProps.value) })) }));
3114
+ const renderTargetFn = props.renderToggler || ((props) => React__default.createElement(PickerToggler, { ...props }));
3115
+ return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn({
3116
+ ...getTogglerMods(),
3117
+ ...targetProps,
3118
+ ...editableProps,
3119
+ onKeyDown: (e) => handlePickerInputKeyboard(rows, e, editableProps.value),
3120
+ }) }));
3118
3121
  };
3119
3122
  const renderFooter = () => {
3120
3123
  const footerProps = getFooterProps();
3121
- return props.renderFooter ? props.renderFooter(footerProps) : React__default.createElement(DataPickerFooter, Object.assign({}, footerProps, { size: props.size }));
3124
+ return props.renderFooter ? props.renderFooter(footerProps) : React__default.createElement(DataPickerFooter, { ...footerProps, size: props.size });
3122
3125
  };
3123
3126
  const getRowSize = () => {
3124
3127
  if (isMobile()) {
@@ -3138,32 +3141,31 @@ function PickerInputComponent(_a, ref) {
3138
3141
  };
3139
3142
  const renderRowItem = (item, rowProps, dsState) => {
3140
3143
  const { flattenSearchResults } = view.getConfig();
3141
- return (React__default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), rowProps)));
3144
+ return (React__default.createElement(PickerItem, { title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
3142
3145
  };
3143
3146
  const renderRow = (rowProps, dsState) => {
3144
- return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: getRowSize(), padding: (props.editMode === 'modal' ? settings.sizes.pickerInput.body.modal.padding : settings.sizes.pickerInput.body.dropdown.padding), renderItem: (item, itemProps) => renderRowItem(item, itemProps, dsState) })));
3147
+ return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__default.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: getRowSize(), padding: (props.editMode === 'modal' ? settings.sizes.pickerInput.body.modal.padding : settings.sizes.pickerInput.body.dropdown.padding), renderItem: (item, itemProps) => renderRowItem(item, itemProps, dsState) }));
3145
3148
  };
3146
3149
  const renderBody = (bodyProps, rows) => {
3147
3150
  const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
3148
3151
  const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.sizes.pickerInput.body.dropdown.height;
3149
3152
  const minBodyWidth = props.minBodyWidth || settings.sizes.pickerInput.body.dropdown.width;
3150
3153
  return (React__default.createElement(PickerBodyMobileView, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
3151
- React__default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode })),
3154
+ React__default.createElement(DataPickerBody, { ...bodyProps, rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode }),
3152
3155
  renderFooter()));
3153
3156
  };
3154
3157
  const rows = getRows();
3155
3158
  const renderItem = props.renderTag ? props.renderTag : null;
3156
3159
  return (React__default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
3157
3160
  const targetProps = getTogglerProps();
3158
- return renderTarget(Object.assign(Object.assign(Object.assign({}, dropdownProps), targetProps), { renderItem }));
3159
- }, renderBody: (bodyProps) => renderBody(Object.assign(Object.assign(Object.assign({}, bodyProps), getPickerBodyProps(rows)), getListProps()), rows), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, modifiers: popperModifiers, closeBodyOnTogglerHidden: !isMobile(), portalTarget: props.portalTarget, ref: dropdownRef }));
3161
+ return renderTarget({ ...dropdownProps, ...targetProps, renderItem });
3162
+ }, renderBody: (bodyProps) => renderBody({ ...bodyProps, ...getPickerBodyProps(rows), ...getListProps() }, rows), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, modifiers: popperModifiers, closeBodyOnTogglerHidden: !isMobile(), portalTarget: props.portalTarget, ref: dropdownRef }));
3160
3163
  }
3161
3164
  const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
3162
3165
 
3163
- var css$A = {"row":"H1rqOc"};
3166
+ var css$A = {"row":"TZIqhl"};
3164
3167
 
3165
3168
  function PickerListItem(props) {
3166
- var _a;
3167
3169
  let label;
3168
3170
  if (props.isLoading) {
3169
3171
  label = React__default.createElement(TextPlaceholder, { wordsCount: 2 });
@@ -3173,31 +3175,31 @@ function PickerListItem(props) {
3173
3175
  }
3174
3176
  let component;
3175
3177
  if (props.checkbox) {
3176
- component = (React__default.createElement(Checkbox, Object.assign({}, props.checkbox, { isDisabled: props.isLoading || props.checkbox.isDisabled || props.isDisabled, label: label, value: props.isChecked, onValueChange: () => props.onCheck(props) })));
3178
+ component = (React__default.createElement(Checkbox, { ...props.checkbox, isDisabled: props.isLoading || props.checkbox.isDisabled || props.isDisabled, label: label, value: props.isChecked, onValueChange: () => props.onCheck(props) }));
3177
3179
  }
3178
3180
  else {
3179
3181
  component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
3180
3182
  }
3181
- return (React__default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$A.row }), component));
3183
+ return (React__default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
3182
3184
  }
3183
3185
 
3184
- var css$z = {"root":"e4VKR4"};
3186
+ var css$z = {"root":"LruoJN"};
3185
3187
 
3186
3188
  function PickerList(props) {
3187
3189
  const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
3188
3190
  const defaultRenderRow = (row) => {
3189
- return React__default.createElement(PickerListItem, Object.assign({ getName: (item) => getName(item) }, row, { key: row.rowKey }));
3191
+ return React__default.createElement(PickerListItem, { getName: (item) => getName(item), ...row, key: row.rowKey });
3190
3192
  };
3191
3193
  const handleShowPicker = () => {
3192
3194
  context.uuiModals
3193
- .show((modalProps) => (React__default.createElement(PickerModal, Object.assign({}, modalProps, props, { caption: props.placeholder || `Please select ${getEntityName() ? getEntityName() : ''}`, initialValue: props.value, selectionMode: props.selectionMode, valueType: props.valueType }))))
3195
+ .show((modalProps) => (React__default.createElement(PickerModal, { ...modalProps, ...props, caption: props.placeholder || `Please select ${getEntityName() ? getEntityName() : ''}`, initialValue: props.value, selectionMode: props.selectionMode, valueType: props.valueType })))
3194
3196
  .then((value) => {
3195
3197
  appendLastSelected([...getSelectedIdsArray(value)]);
3196
3198
  props.onValueChange(value);
3197
3199
  })
3198
3200
  .catch(() => { });
3199
3201
  };
3200
- const defaultRenderToggler = (props) => React__default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
3202
+ const defaultRenderToggler = (props) => React__default.createElement(LinkButton, { caption: "Show all", ...props });
3201
3203
  const viewProps = view.getListProps();
3202
3204
  const selectedRows = onlySelectedView.getVisibleRows();
3203
3205
  const rows = buildRowsList();
@@ -3207,7 +3209,7 @@ function PickerList(props) {
3207
3209
  return (React__default.createElement("div", { className: cx('uui-picker-list', css$z.root) },
3208
3210
  !rows.length
3209
3211
  && (props.noOptionsMessage || (React__default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
3210
- rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
3212
+ rows.map((row) => renderRow({ ...row, isDisabled: props.isDisabled }, dataSourceState)),
3211
3213
  showPicker
3212
3214
  && renderToggler({
3213
3215
  onClick: handleShowPicker,
@@ -3216,19 +3218,19 @@ function PickerList(props) {
3216
3218
  }, selectedRows)));
3217
3219
  }
3218
3220
 
3219
- var css$y = {"uui-typography":"qzMRbe","uuiTypography":"qzMRbe","hero-header":"qFQgK4","heroHeader":"qFQgK4","promo-header":"U7F0Ar","promoHeader":"U7F0Ar","uui-critical":"_9Tc-za","uuiCritical":"_9Tc-za","uui-info":"OlvXe5","uuiInfo":"OlvXe5","uui-success":"zLmW2S","uuiSuccess":"zLmW2S","uui-warning":"Y2fYLp","uuiWarning":"Y2fYLp","uui-highlight":"ecIYZ6","uuiHighlight":"ecIYZ6","uui-typography-size-12":"_78h-wO","uuiTypographySize12":"_78h-wO","uui-typography-size-14":"kj52on","uuiTypographySize14":"kj52on","uui-typography-size-16":"_5Sk-1s","uuiTypographySize16":"_5Sk-1s","root":"nAP9Em","wrapper":"Xq5-k5","align-widgets-top":"L-pM0S","alignWidgetsTop":"L-pM0S","align-widgets-center":"_0lhC8U","alignWidgetsCenter":"_0lhC8U"};
3221
+ var css$y = {"uui-typography":"RYztsP","uuiTypography":"RYztsP","hero-header":"_5WHzNy","heroHeader":"_5WHzNy","promo-header":"mur3MX","promoHeader":"mur3MX","uui-critical":"ePSTR5","uuiCritical":"ePSTR5","uui-info":"_3bs9CC","uuiInfo":"_3bs9CC","uui-success":"tasW46","uuiSuccess":"tasW46","uui-warning":"cqv2S7","uuiWarning":"cqv2S7","uui-highlight":"-YG6mi","uuiHighlight":"-YG6mi","uui-typography-size-12":"qzeaAO","uuiTypographySize12":"qzeaAO","uui-typography-size-14":"A9W-Bn","uuiTypographySize14":"A9W-Bn","uui-typography-size-16":"nOPnNo","uuiTypographySize16":"nOPnNo","root":"weeM0b","wrapper":"_22ViS7","align-widgets-top":"QGEOCA","alignWidgetsTop":"QGEOCA","align-widgets-center":"bzBoSx","alignWidgetsCenter":"bzBoSx"};
3220
3222
 
3221
3223
  function DataTableCell(initialProps) {
3222
- const props = Object.assign({}, initialProps);
3224
+ const props = { ...initialProps };
3223
3225
  if (props.isFirstColumn) {
3224
- props.addons = React.createElement(DataRowAddons, Object.assign({ size: props.size }, props));
3226
+ props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
3225
3227
  }
3226
3228
  props.renderPlaceholder = props.renderPlaceholder
3227
3229
  || (() => (React.createElement(Text, { key: "t", size: settings.sizes.dataTable.body.row.cell.text[props.size] },
3228
3230
  React.createElement(TextPlaceholder, { isNotAnimated: true }))));
3229
3231
  props.renderUnknown = props.renderUnknown
3230
3232
  || (() => (React.createElement(Text, { key: "t", size: settings.sizes.dataTable.body.row.cell.text[props.size] }, "Unknown")));
3231
- props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
3233
+ props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
3232
3234
  const isEditable = !!props.onValueChange;
3233
3235
  const getLeftPadding = () => {
3234
3236
  const { rowProps: { isLoading }, columnsGap, isFirstColumn } = props;
@@ -3262,18 +3264,18 @@ function DataTableCell(initialProps) {
3262
3264
  '--uui-dt-cell-padding-start': `${getLeftPadding()}px`,
3263
3265
  '--uui-dt-cell-padding-end': `${getRightPadding()}px`,
3264
3266
  };
3265
- return React.createElement(DataTableCell$1, Object.assign({}, props));
3267
+ return React.createElement(DataTableCell$1, { ...props });
3266
3268
  }
3267
3269
 
3268
- var css$x = {"uui-typography":"GkXzpz","uuiTypography":"GkXzpz","hero-header":"fYml6e","heroHeader":"fYml6e","promo-header":"D4B7sB","promoHeader":"D4B7sB","uui-critical":"TB2gZb","uuiCritical":"TB2gZb","uui-info":"ofoNqb","uuiInfo":"ofoNqb","uui-success":"LUIc42","uuiSuccess":"LUIc42","uui-warning":"_9jh8nW","uuiWarning":"_9jh8nW","uui-highlight":"_28BL3a","uuiHighlight":"_28BL3a","uui-typography-size-12":"p248df","uuiTypographySize12":"p248df","uui-typography-size-14":"thBWdA","uuiTypographySize14":"thBWdA","uui-typography-size-16":"BDqfms","uuiTypographySize16":"BDqfms","root":"NXIoza"};
3270
+ var css$x = {"uui-typography":"jRF85f","uuiTypography":"jRF85f","hero-header":"hrpjqF","heroHeader":"hrpjqF","promo-header":"aXrZtG","promoHeader":"aXrZtG","uui-critical":"Switwu","uuiCritical":"Switwu","uui-info":"_6Zoy3q","uuiInfo":"_6Zoy3q","uui-success":"mEyab4","uuiSuccess":"mEyab4","uui-warning":"-rXh5T","uuiWarning":"-rXh5T","uui-highlight":"bE7yCn","uuiHighlight":"bE7yCn","uui-typography-size-12":"yjbcUX","uuiTypographySize12":"yjbcUX","uui-typography-size-14":"-OcZrI","uuiTypographySize14":"-OcZrI","uui-typography-size-16":"M9E1Qe","uuiTypographySize16":"M9E1Qe","root":"-ejH6-"};
3269
3271
 
3270
3272
  // Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
3271
3273
  // As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
3272
3274
  const renderCell = (props) => {
3273
3275
  const mods = props.rowProps;
3274
- return React.createElement(DataTableCell, Object.assign({}, props, { size: mods.size, columnsGap: mods.columnsGap }));
3276
+ return React.createElement(DataTableCell, { ...props, key: props.key, size: mods.size, columnsGap: mods.columnsGap });
3275
3277
  };
3276
- const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
3278
+ const renderDropMarkers = (props) => React.createElement(DropMarker, { ...props, enableBlocker: true });
3277
3279
  const propsMods = { renderCell, renderDropMarkers };
3278
3280
  const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
3279
3281
  return [
@@ -3281,7 +3283,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
3281
3283
  ];
3282
3284
  }, () => propsMods);
3283
3285
 
3284
- var css$w = {"uui-typography":"_5jAcAt","uuiTypography":"_5jAcAt","hero-header":"_9yRcMn","heroHeader":"_9yRcMn","promo-header":"No4iDf","promoHeader":"No4iDf","uui-critical":"GwVOVf","uuiCritical":"GwVOVf","uui-info":"-gXwLz","uuiInfo":"-gXwLz","uui-success":"iJpTFR","uuiSuccess":"iJpTFR","uui-warning":"GYU0d6","uuiWarning":"GYU0d6","uui-highlight":"QQhdR1","uuiHighlight":"QQhdR1","uui-typography-size-12":"YAPrdY","uuiTypographySize12":"YAPrdY","uui-typography-size-14":"eE4-Zz","uuiTypographySize14":"eE4-Zz","uui-typography-size-16":"UMBJGR","uuiTypographySize16":"UMBJGR","sorting-panel-container":"qgFDBH","sortingPanelContainer":"qgFDBH"};
3286
+ var css$w = {"uui-typography":"n5KDWe","uuiTypography":"n5KDWe","hero-header":"qUkqiE","heroHeader":"qUkqiE","promo-header":"WAE5QM","promoHeader":"WAE5QM","uui-critical":"MO98l4","uuiCritical":"MO98l4","uui-info":"ERyTmB","uuiInfo":"ERyTmB","uui-success":"xCUi9A","uuiSuccess":"xCUi9A","uui-warning":"a1-iG9","uuiWarning":"a1-iG9","uui-highlight":"b0shby","uuiHighlight":"b0shby","uui-typography-size-12":"nfitxU","uuiTypographySize12":"nfitxU","uui-typography-size-14":"Y8UjXC","uuiTypographySize14":"Y8UjXC","uui-typography-size-16":"N6IEIJ","uuiTypographySize16":"N6IEIJ","sorting-panel-container":"dMznDn","sortingPanelContainer":"dMznDn"};
3285
3287
 
3286
3288
  var _path$q;
3287
3289
  function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
@@ -3411,7 +3413,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
3411
3413
  };
3412
3414
  var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
3413
3415
 
3414
- var css$v = {"uui-typography":"sc3GGL","uuiTypography":"sc3GGL","hero-header":"IHFSU6","heroHeader":"IHFSU6","promo-header":"fuFPcS","promoHeader":"fuFPcS","uui-critical":"ovMA-V","uuiCritical":"ovMA-V","uui-info":"dCW-Gz","uuiInfo":"dCW-Gz","uui-success":"-zgdwv","uuiSuccess":"-zgdwv","uui-warning":"yHN-q6","uuiWarning":"yHN-q6","uui-highlight":"Vzy9Mf","uuiHighlight":"Vzy9Mf","uui-typography-size-12":"HOBB8K","uuiTypographySize12":"HOBB8K","uui-typography-size-14":"sFEiRq","uuiTypographySize14":"sFEiRq","uui-typography-size-16":"_5iwiV8","uuiTypographySize16":"_5iwiV8","root":"fzDe8F","caption-wrapper":"LLqYj-","captionWrapper":"LLqYj-","sort-icon":"ObEuQs","sortIcon":"ObEuQs","dropdown-icon":"X9HwqX","dropdownIcon":"X9HwqX","infoIcon":"FK-R8r","resizable":"NcIr6a","align-right":"OLfgXT","alignRight":"OLfgXT","align-center":"s-UBG-","alignCenter":"s-UBG-","caption":"iMHHL9","truncate":"_7H7aI4","checkbox":"_3ViXiD","icon":"_6JSpcq","fold-all-icon":"Z28-SM","foldAllIcon":"Z28-SM","cell-tooltip":"qfmVq5","cellTooltip":"qfmVq5","upper-case":"IV466O","upperCase":"IV466O","resizing-marker":"IOAWs7","resizingMarker":"IOAWs7","pinned-right":"GhhnQz","pinnedRight":"GhhnQz","draggable":"KdgSfm","ghost":"jfa-pM","is-dragged-out":"iaPn1X","isDraggedOut":"iaPn1X","dnd-marker-left":"xIv1QF","dndMarkerLeft":"xIv1QF","dnd-marker-right":"JEREa3","dndMarkerRight":"JEREa3","cell-tooltip-wrapper":"-QpoPQ","cellTooltipWrapper":"-QpoPQ","cell-tooltip-text":"XQCoRa","cellTooltipText":"XQCoRa","tooltip-caption":"sU3Efo","tooltipCaption":"sU3Efo","tooltip-info":"CeAJv9","tooltipInfo":"CeAJv9"};
3416
+ var css$v = {"uui-typography":"jUd3gW","uuiTypography":"jUd3gW","hero-header":"v8csVw","heroHeader":"v8csVw","promo-header":"NxS9a3","promoHeader":"NxS9a3","uui-critical":"voSD1D","uuiCritical":"voSD1D","uui-info":"cjjcwy","uuiInfo":"cjjcwy","uui-success":"_17NlmN","uuiSuccess":"_17NlmN","uui-warning":"_7GSqg2","uuiWarning":"_7GSqg2","uui-highlight":"gNHaer","uuiHighlight":"gNHaer","uui-typography-size-12":"BfXbkP","uuiTypographySize12":"BfXbkP","uui-typography-size-14":"Wy6K2D","uuiTypographySize14":"Wy6K2D","uui-typography-size-16":"zcFPUV","uuiTypographySize16":"zcFPUV","root":"_5pOK1a","caption-wrapper":"_8AxwSB","captionWrapper":"_8AxwSB","sort-icon":"TZrhNu","sortIcon":"TZrhNu","dropdown-icon":"NUgmJ8","dropdownIcon":"NUgmJ8","infoIcon":"CMz-VS","resizable":"n5h3N2","align-right":"gT8MDC","alignRight":"gT8MDC","align-center":"cQPcnl","alignCenter":"cQPcnl","caption":"hTJRh2","truncate":"xAkbxc","checkbox":"_6XfSvF","icon":"x15-9k","fold-all-icon":"FhD8Gn","foldAllIcon":"FhD8Gn","cell-tooltip":"QQGZJl","cellTooltip":"QQGZJl","upper-case":"-uF25u","upperCase":"-uF25u","resizing-marker":"KXgVWN","resizingMarker":"KXgVWN","pinned-right":"_2hx856","pinnedRight":"_2hx856","draggable":"GI-8fY","ghost":"MgLEzK","is-dragged-out":"cGgrxe","isDraggedOut":"cGgrxe","dnd-marker-left":"Hd-vmZ","dndMarkerLeft":"Hd-vmZ","dnd-marker-right":"kUY9Uv","dndMarkerRight":"kUY9Uv","cell-tooltip-wrapper":"Ox8-SU","cellTooltipWrapper":"Ox8-SU","cell-tooltip-text":"TYDUv3","cellTooltipText":"TYDUv3","tooltip-caption":"TAWCub","tooltipCaption":"TAWCub","tooltip-info":"Yf8ifB","tooltipInfo":"Yf8ifB"};
3415
3417
 
3416
3418
  class DataTableHeaderCell extends React.Component {
3417
3419
  constructor() {
@@ -3439,7 +3441,7 @@ class DataTableHeaderCell extends React.Component {
3439
3441
  };
3440
3442
  this.renderHeaderCheckbox = () => {
3441
3443
  if (this.props.selectAll && this.props.isFirstColumn) {
3442
- return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$v.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
3444
+ return (React.createElement(Checkbox, { size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size], ...this.props.selectAll, cx: cx$1(css$v.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
3443
3445
  }
3444
3446
  };
3445
3447
  this.renderFoldAllIcon = () => {
@@ -3473,9 +3475,8 @@ class DataTableHeaderCell extends React.Component {
3473
3475
  return columnsGap ? +columnsGap / 2 : settings.sizes.dataTable.header.row.cell.defaults.resizeMarker;
3474
3476
  };
3475
3477
  this.renderCellContent = (props, dropdownProps) => {
3476
- var _a;
3477
- const isResizable = (_a = this.props.column.allowResizing) !== null && _a !== void 0 ? _a : this.props.allowColumnsResizing;
3478
- const onClickEvent = !props.isResizing && (!this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick);
3478
+ const isResizable = this.props.column.allowResizing ?? this.props.allowColumnsResizing;
3479
+ const onClickEvent = !props.isResizing && (!this.props.column.renderFilter ? props.toggleSort : dropdownProps?.onClick);
3479
3480
  const computeStyles = {
3480
3481
  '--uui-dt-header-cell-icon-size': `${settings.sizes.dataTable.header.row.cell.iconSize[this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size]}px`,
3481
3482
  '--uui-dt-header-cell-padding-start': `${this.getLeftPadding()}px`,
@@ -3483,10 +3484,13 @@ class DataTableHeaderCell extends React.Component {
3483
3484
  '--uui-dt-header-cell-resizing-marker-width': `${this.getResizingMarkerWidth()}px`,
3484
3485
  };
3485
3486
  return (React.createElement(DataTableCellContainer, { column: this.props.column, ref: (ref) => {
3486
- var _a;
3487
3487
  props.ref(ref);
3488
- (_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
3489
- }, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers), style: computeStyles },
3488
+ dropdownProps?.ref?.(ref);
3489
+ }, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: {
3490
+ role: 'columnheader',
3491
+ 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none',
3492
+ ...props.eventHandlers,
3493
+ }, style: computeStyles },
3490
3494
  this.renderHeaderCheckbox(),
3491
3495
  this.renderFoldAllIcon(),
3492
3496
  this.getColumnCaption(),
@@ -3498,7 +3502,7 @@ class DataTableHeaderCell extends React.Component {
3498
3502
  if (this.props.column.renderHeaderCell) {
3499
3503
  return this.props.column.renderHeaderCell(this.props);
3500
3504
  }
3501
- return (React.createElement(DataTableHeaderCell$1, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent })));
3505
+ return (React.createElement(DataTableHeaderCell$1, { ...this.props, renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
3502
3506
  }
3503
3507
  }
3504
3508
 
@@ -3517,9 +3521,9 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
3517
3521
  };
3518
3522
  var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
3519
3523
 
3520
- var css$u = {"uui-typography":"Bow-fm","uuiTypography":"Bow-fm","hero-header":"qY1YZl","heroHeader":"qY1YZl","promo-header":"U8Gcz0","promoHeader":"U8Gcz0","uui-critical":"r9uIYT","uuiCritical":"r9uIYT","uui-info":"lLvF9U","uuiInfo":"lLvF9U","uui-success":"FSolER","uuiSuccess":"FSolER","uui-warning":"EfLFzX","uuiWarning":"EfLFzX","uui-highlight":"YXCn-6","uuiHighlight":"YXCn-6","uui-typography-size-12":"_0bfHBB","uuiTypographySize12":"_0bfHBB","uui-typography-size-14":"WcKIEd","uuiTypographySize14":"WcKIEd","uui-typography-size-16":"b4HZYH","uuiTypographySize16":"b4HZYH","root":"Z0YVFi"};
3524
+ var css$u = {"uui-typography":"_0H9Mfl","uuiTypography":"_0H9Mfl","hero-header":"_8CcB94","heroHeader":"_8CcB94","promo-header":"_8cj8c1","promoHeader":"_8cj8c1","uui-critical":"x--iY8","uuiCritical":"x--iY8","uui-info":"DvdRbo","uuiInfo":"DvdRbo","uui-success":"fxD6Up","uuiSuccess":"fxD6Up","uui-warning":"dlD9z3","uuiWarning":"dlD9z3","uui-highlight":"Sh0wvV","uuiHighlight":"Sh0wvV","uui-typography-size-12":"_2PALh9","uuiTypographySize12":"_2PALh9","uui-typography-size-14":"LWpsIi","uuiTypographySize14":"LWpsIi","uui-typography-size-16":"Fg2aKP","uuiTypographySize16":"Fg2aKP","root":"xlG0jn"};
3521
3525
 
3522
- var css$t = {"uui-typography":"DBE38L","uuiTypography":"DBE38L","hero-header":"MnG0sq","heroHeader":"MnG0sq","promo-header":"gCQNm8","promoHeader":"gCQNm8","uui-critical":"urGusd","uuiCritical":"urGusd","uui-info":"_6Ye4-o","uuiInfo":"_6Ye4-o","uui-success":"QL0g6D","uuiSuccess":"QL0g6D","uui-warning":"aVWEMz","uuiWarning":"aVWEMz","uui-highlight":"_7f5kqI","uuiHighlight":"_7f5kqI","uui-typography-size-12":"TDF-7z","uuiTypographySize12":"TDF-7z","uui-typography-size-14":"BoHmAS","uuiTypographySize14":"BoHmAS","uui-typography-size-16":"aGJ7oE","uuiTypographySize16":"aGJ7oE","root":"FsPyk5","caption-wrapper":"_2cqAzs","captionWrapper":"_2cqAzs","align-center":"HNeYPA","alignCenter":"HNeYPA","caption":"akN00U","truncate":"_9odKFZ","group-cell-tooltip":"-ipjT-","groupCellTooltip":"-ipjT-","upper-case":"_3YPvIE","upperCase":"_3YPvIE","group-cell-tooltip-wrapper":"YpRLWc","groupCellTooltipWrapper":"YpRLWc","group-cell-tooltip-text":"_8iYK3K","groupCellTooltipText":"_8iYK3K","tooltip-caption":"RnhS6-","tooltipCaption":"RnhS6-","tooltip-info":"QyMgAT","tooltipInfo":"QyMgAT"};
3526
+ var css$t = {"uui-typography":"_4lrUJF","uuiTypography":"_4lrUJF","hero-header":"efF-Jl","heroHeader":"efF-Jl","promo-header":"_5-Jjvl","promoHeader":"_5-Jjvl","uui-critical":"QNeqBC","uuiCritical":"QNeqBC","uui-info":"Aonphu","uuiInfo":"Aonphu","uui-success":"eYKVzR","uuiSuccess":"eYKVzR","uui-warning":"P1gIoD","uuiWarning":"P1gIoD","uui-highlight":"GgKXqq","uuiHighlight":"GgKXqq","uui-typography-size-12":"yZ6Al1","uuiTypographySize12":"yZ6Al1","uui-typography-size-14":"On9Fo4","uuiTypographySize14":"On9Fo4","uui-typography-size-16":"N99C40","uuiTypographySize16":"N99C40","root":"kOd20z","caption-wrapper":"_8UN4Ok","captionWrapper":"_8UN4Ok","align-center":"vmSpZz","alignCenter":"vmSpZz","caption":"jZuYog","truncate":"_8eTk5w","group-cell-tooltip":"k8sv-r","groupCellTooltip":"k8sv-r","upper-case":"RRjT-j","upperCase":"RRjT-j","group-cell-tooltip-wrapper":"_6kwC-y","groupCellTooltipWrapper":"_6kwC-y","group-cell-tooltip-text":"FXkRVd","groupCellTooltipText":"FXkRVd","tooltip-caption":"R7fiSf","tooltipCaption":"R7fiSf","tooltip-info":"_0QtDpn","tooltipInfo":"_0QtDpn"};
3523
3527
 
3524
3528
  class DataTableHeaderGroupCell extends React.Component {
3525
3529
  constructor() {
@@ -3558,7 +3562,10 @@ class DataTableHeaderGroupCell extends React.Component {
3558
3562
  };
3559
3563
  return (React.createElement(DataTableCellContainer, { column: this.props.group, ref: (ref) => {
3560
3564
  props.ref(ref);
3561
- }, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: Object.assign({ role: 'columnheader' }, props.eventHandlers), style: computeStyles }, this.getColumnCaption()));
3565
+ }, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: {
3566
+ role: 'columnheader',
3567
+ ...props.eventHandlers,
3568
+ }, style: computeStyles }, this.getColumnCaption()));
3562
3569
  };
3563
3570
  }
3564
3571
  render() {
@@ -3574,8 +3581,8 @@ class DataTableHeaderGroupCell extends React.Component {
3574
3581
  }
3575
3582
 
3576
3583
  const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
3577
- renderCell: (props) => (React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
3578
- renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
3584
+ renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
3585
+ renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap })),
3579
3586
  renderConfigButton: () => (React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.sizes.dataTable.header.row.cell.iconSize[mods.size || settings.sizes.dataTable.header.row.default]}`], color: "neutral", icon: ForwardRef$j })),
3580
3587
  }));
3581
3588
 
@@ -3584,16 +3591,15 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
3584
3591
  const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
3585
3592
  const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
3586
3593
 
3587
- var css$s = {"uui-typography":"_3l-875","uuiTypography":"_3l-875","hero-header":"DZi8cw","heroHeader":"DZi8cw","promo-header":"aAvyES","promoHeader":"aAvyES","uui-critical":"z6-E2W","uuiCritical":"z6-E2W","uui-info":"Mm3jci","uuiInfo":"Mm3jci","uui-success":"_2X-e7k","uuiSuccess":"_2X-e7k","uui-warning":"IvcBZR","uuiWarning":"IvcBZR","uui-highlight":"_1cOHZy","uuiHighlight":"_1cOHZy","uui-typography-size-12":"yAlFz2","uuiTypographySize12":"yAlFz2","uui-typography-size-14":"CFxsCx","uuiTypographySize14":"CFxsCx","uui-typography-size-16":"e-xqXG","uuiTypographySize16":"e-xqXG","root":"gu-Cli","title-wrapper":"JuYUtS","titleWrapper":"JuYUtS","title":"aivagZ","text-wrapper":"TW4f8M","textWrapper":"TW4f8M","selection":"c-pci5","postfix":"Gfryg4","selected":"fpGZ8G"};
3594
+ var css$s = {"uui-typography":"HJEpVN","uuiTypography":"HJEpVN","hero-header":"BwhQKL","heroHeader":"BwhQKL","promo-header":"_0nBmPn","promoHeader":"_0nBmPn","uui-critical":"HsG0Ly","uuiCritical":"HsG0Ly","uui-info":"u3Tpna","uuiInfo":"u3Tpna","uui-success":"qVdo-O","uuiSuccess":"qVdo-O","uui-warning":"FfXuSa","uuiWarning":"FfXuSa","uui-highlight":"zK2rdC","uuiHighlight":"zK2rdC","uui-typography-size-12":"lbni6K","uuiTypographySize12":"lbni6K","uui-typography-size-14":"jlBJC-","uuiTypographySize14":"jlBJC-","uui-typography-size-16":"ptkloB","uuiTypographySize16":"ptkloB","root":"ybsbgK","title-wrapper":"bBq1kL","titleWrapper":"bBq1kL","title":"AawIVw","text-wrapper":"RwaX3E","textWrapper":"RwaX3E","selection":"_150n4z","postfix":"GrN49N","selected":"_93zBIG"};
3588
3595
 
3589
3596
  const defaultSize = '36';
3590
3597
  const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3591
3598
  const togglerPickerOpened = (e) => {
3592
- var _a;
3593
3599
  if (props.isDisabled)
3594
3600
  return;
3595
3601
  e.preventDefault();
3596
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
3602
+ props.onClick?.();
3597
3603
  };
3598
3604
  const onKeyDownHandler = (e) => {
3599
3605
  if (props.isDisabled)
@@ -3611,12 +3617,12 @@ const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3611
3617
  const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
3612
3618
  React.createElement(Text, { color: "primary", size: props.size, cx: css$s.selection }, i),
3613
3619
  (props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
3614
- return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
3620
+ return (React.createElement(FlexRow$1, { ...props, rawProps: {
3615
3621
  style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
3616
3622
  role: 'button',
3617
3623
  tabIndex: props.isDisabled ? -1 : 0,
3618
3624
  onKeyDown: onKeyDownHandler,
3619
- }, cx: cx(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiElement.inputBox, uuiMarkers.clickable, props.isOpen && uuiMod.opened, `size-${props.size || defaultSize}`, props.cx), onClick: togglerPickerOpened, ref: ref }),
3625
+ }, cx: cx(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiElement.inputBox, uuiMarkers.clickable, props.isOpen && uuiMod.opened, `size-${props.size || defaultSize}`, props.cx), onClick: togglerPickerOpened, ref: ref },
3620
3626
  React.createElement(FlexRow$1, { cx: css$s.titleWrapper },
3621
3627
  React.createElement(Text, { size: props.size, cx: css$s.title }, getTitle),
3622
3628
  props.selection && (React.createElement("div", { className: css$s.textWrapper },
@@ -3626,12 +3632,10 @@ const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3626
3632
  });
3627
3633
 
3628
3634
  const pickerHeight = 300;
3629
- function FilterPickerBody(_a) {
3630
- var _b;
3631
- var { highlightSearchMatches = true } = _a, restProps = __rest(_a, ["highlightSearchMatches"]);
3632
- const props = Object.assign(Object.assign({}, restProps), { highlightSearchMatches });
3635
+ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
3636
+ const props = { ...restProps, highlightSearchMatches };
3633
3637
  const shouldShowBody = () => props.isOpen;
3634
- const { view, getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput(Object.assign(Object.assign({}, props), { shouldShowBody }));
3638
+ const { view, getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput({ ...props, shouldShowBody });
3635
3639
  const prevValue = usePrevious(props.value);
3636
3640
  const prevOpened = usePrevious(props.isOpen);
3637
3641
  React.useLayoutEffect(() => {
@@ -3651,45 +3655,44 @@ function FilterPickerBody(_a) {
3651
3655
  };
3652
3656
  const renderItem = (item, rowProps, dsState) => {
3653
3657
  const { flattenSearchResults } = view.getConfig();
3654
- return (React.createElement(PickerItem, Object.assign({ title: getName(item), highlightSearchMatches: highlightSearchMatches }, (flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), { dataSourceState: dsState, size: settings.sizes.filtersPanel.pickerInput.body.default }, rowProps)));
3658
+ return (React.createElement(PickerItem, { title: getName(item), highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dsState) } : {}), dataSourceState: dsState, size: settings.sizes.filtersPanel.pickerInput.body.default, ...rowProps }));
3655
3659
  };
3656
3660
  const onSelect = (row) => {
3657
- handleDataSourceValueChange((currentDataSourceState) => (Object.assign(Object.assign({}, currentDataSourceState), { search: '', selectedId: row.id })));
3661
+ handleDataSourceValueChange((currentDataSourceState) => ({ ...currentDataSourceState, search: '', selectedId: row.id }));
3658
3662
  };
3659
3663
  const renderRow = (rowProps, dsState) => {
3660
3664
  if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
3661
3665
  rowProps.onSelect = onSelect;
3662
3666
  }
3663
- return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, size: settings.sizes.filtersPanel.pickerInput.body.default, padding: "12", renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) })));
3667
+ return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React.createElement(DataPickerRow, { ...rowProps, key: rowProps.rowKey, size: settings.sizes.filtersPanel.pickerInput.body.default, padding: "12", renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) }));
3664
3668
  };
3665
3669
  const renderFooter = () => {
3666
- return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: settings.sizes.filtersPanel.pickerInput.body.default }));
3670
+ const footerProps = getFooterProps();
3671
+ return props.renderFooter ? props.renderFooter(footerProps) : React.createElement(DataPickerFooter, { ...footerProps, size: settings.sizes.filtersPanel.pickerInput.body.default });
3667
3672
  };
3668
3673
  const renderBody = (bodyProps, rows) => {
3669
3674
  const renderedDataRows = rows.map((props) => renderRow(props, dataSourceState));
3670
3675
  const maxHeight = isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
3671
3676
  const maxWidth = isMobile() ? undefined : 360;
3672
3677
  return (React.createElement(React.Fragment, null,
3673
- React.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.sizes.filtersPanel.pickerInput.body.default, editMode: "dropdown" })),
3678
+ React.createElement(DataPickerBody, { ...bodyProps, selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.sizes.filtersPanel.pickerInput.body.default, editMode: "dropdown" }),
3674
3679
  renderFooter()));
3675
3680
  };
3676
3681
  const rows = getRows();
3677
- return renderBody(Object.assign(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), { showSearch: (_b = props.showSearch) !== null && _b !== void 0 ? _b : true }), rows);
3682
+ return renderBody({ ...getPickerBodyProps(rows), ...getListProps(), showSearch: props.showSearch ?? true }, rows);
3678
3683
  }
3679
3684
 
3680
3685
  function FilterDatePickerBody(props) {
3681
- var _a;
3682
3686
  const { value } = props;
3683
3687
  const context = useUuiContext();
3684
3688
  const handleValueChange = (newValue) => {
3685
- var _a;
3686
3689
  props.onValueChange(newValue);
3687
3690
  if (props.getValueChangeAnalyticsEvent) {
3688
3691
  const event = props.getValueChangeAnalyticsEvent(newValue, value);
3689
3692
  context.uuiAnalytics.sendEvent(event);
3690
3693
  }
3691
3694
  if (newValue) {
3692
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
3695
+ props.onClose?.();
3693
3696
  }
3694
3697
  };
3695
3698
  const handleBodyChange = (newValue) => {
@@ -3699,7 +3702,7 @@ function FilterDatePickerBody(props) {
3699
3702
  };
3700
3703
  return (React__default.createElement(Fragment, null,
3701
3704
  React__default.createElement(FlexRow, { borderBottom: true },
3702
- React__default.createElement(DatePickerBody, { filter: props.filter, value: value, onValueChange: handleBodyChange, renderDay: props.renderDay, isHoliday: props.isHoliday, rawProps: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
3705
+ React__default.createElement(DatePickerBody, { filter: props.filter, value: value, onValueChange: handleBodyChange, renderDay: props.renderDay, isHoliday: props.isHoliday, rawProps: props.rawProps?.body })),
3703
3706
  React__default.createElement(FlexCell, { alignSelf: "stretch" },
3704
3707
  React__default.createElement(FlexRow, { padding: "24", vPadding: "12" },
3705
3708
  React__default.createElement(Text, null, value ? uuiDayjs.dayjs(value).format('MMM DD, YYYY') : ''),
@@ -3714,16 +3717,15 @@ function FilterRangeDatePickerBody(props) {
3714
3717
  const value = _value || defaultRangeValue; // also handles null in comparison to default value
3715
3718
  const context = useUuiContext();
3716
3719
  const onOpenChange = (newIsOpen) => {
3717
- var _a, _b;
3718
3720
  {
3719
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
3721
+ props.onClose?.();
3720
3722
  }
3721
- (_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
3723
+ props.onOpenChange?.(newIsOpen);
3722
3724
  };
3723
3725
  const [inFocus, setInFocus] = useState('from');
3724
3726
  const onValueChange = (newValue) => {
3725
- const fromChanged = (value === null || value === void 0 ? void 0 : value.from) !== (newValue === null || newValue === void 0 ? void 0 : newValue.from);
3726
- const toChanged = (value === null || value === void 0 ? void 0 : value.to) !== (newValue === null || newValue === void 0 ? void 0 : newValue.to);
3727
+ const fromChanged = value?.from !== newValue?.from;
3728
+ const toChanged = value?.to !== newValue?.to;
3727
3729
  if (fromChanged || toChanged) {
3728
3730
  props.onValueChange(newValue);
3729
3731
  if (props.getValueChangeAnalyticsEvent) {
@@ -3733,8 +3735,7 @@ function FilterRangeDatePickerBody(props) {
3733
3735
  }
3734
3736
  };
3735
3737
  const onBodyValueChange = (newValue) => {
3736
- var _a;
3737
- setInFocus((_a = newValue.inFocus) !== null && _a !== void 0 ? _a : inFocus);
3738
+ setInFocus(newValue.inFocus ?? inFocus);
3738
3739
  onValueChange(newValue.selectedDate);
3739
3740
  const toChanged = value.to !== newValue.selectedDate.to;
3740
3741
  const closeBody = newValue.selectedDate.from && newValue.selectedDate.to
@@ -3762,30 +3763,28 @@ function FilterRangeDatePickerBody(props) {
3762
3763
  React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
3763
3764
  }
3764
3765
 
3765
- var css$r = {"container":"_0nZcpb"};
3766
+ var css$r = {"container":"c3JCJ4"};
3766
3767
 
3767
3768
  function FilterNumericBody(props) {
3768
- var _a, _b;
3769
- const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
3769
+ const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
3770
3770
  const isWrongRange = (from, to) => {
3771
3771
  if (!to && to !== 0)
3772
3772
  return false;
3773
3773
  return from > to;
3774
3774
  };
3775
3775
  const rangeValueHandler = (type) => (val) => {
3776
- var _a, _b;
3777
3776
  const value = props.value;
3778
3777
  switch (type) {
3779
3778
  case 'from': {
3780
3779
  props.onValueChange({
3781
3780
  from: val,
3782
- to: (_a = value === null || value === void 0 ? void 0 : value.to) !== null && _a !== void 0 ? _a : null,
3781
+ to: value?.to ?? null,
3783
3782
  });
3784
3783
  break;
3785
3784
  }
3786
3785
  case 'to': {
3787
3786
  props.onValueChange({
3788
- from: (_b = value === null || value === void 0 ? void 0 : value.from) !== null && _b !== void 0 ? _b : null,
3787
+ from: value?.from ?? null,
3789
3788
  to: val,
3790
3789
  });
3791
3790
  break;
@@ -3816,9 +3815,9 @@ function FilterNumericBody(props) {
3816
3815
  return (React__default.createElement("div", null,
3817
3816
  React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$r.container },
3818
3817
  React__default.createElement(FlexCell, { width: "100%" },
3819
- React__default.createElement(NumericInput, { value: (_a = value === null || value === void 0 ? void 0 : value.from) !== null && _a !== void 0 ? _a : null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
3818
+ React__default.createElement(NumericInput, { value: value?.from ?? null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
3820
3819
  React__default.createElement(FlexCell, { width: "100%" },
3821
- React__default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "36", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value === null || value === void 0 ? void 0 : value.from, value === null || value === void 0 ? void 0 : value.to) }))),
3820
+ React__default.createElement(NumericInput, { value: value?.to ?? null, onValueChange: rangeValueHandler('to'), size: "36", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value?.from, value?.to) }))),
3822
3821
  renderFooter()));
3823
3822
  }
3824
3823
  return (React__default.createElement("div", null,
@@ -3831,15 +3830,15 @@ function FilterNumericBody(props) {
3831
3830
  function FilterItemBody(props) {
3832
3831
  switch (props.type) {
3833
3832
  case 'singlePicker':
3834
- return React__default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "single", valueType: "id" }));
3833
+ return React__default.createElement(FilterPickerBody, { ...props, selectionMode: "single", valueType: "id" });
3835
3834
  case 'numeric':
3836
- return React__default.createElement(FilterNumericBody, Object.assign({}, props));
3835
+ return React__default.createElement(FilterNumericBody, { ...props });
3837
3836
  case 'multiPicker':
3838
- return React__default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "multi", valueType: "id" }));
3837
+ return React__default.createElement(FilterPickerBody, { ...props, selectionMode: "multi", valueType: "id" });
3839
3838
  case 'datePicker':
3840
- return React__default.createElement(FilterDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY' }));
3839
+ return React__default.createElement(FilterDatePickerBody, { ...props, format: props.format || 'DD/MM/YYYY' });
3841
3840
  case 'rangeDatePicker':
3842
- return React__default.createElement(FilterRangeDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } }));
3841
+ return React__default.createElement(FilterRangeDatePickerBody, { ...props, format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } });
3843
3842
  case 'custom':
3844
3843
  return props.render(props);
3845
3844
  }
@@ -3860,7 +3859,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
3860
3859
  };
3861
3860
  var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
3862
3861
 
3863
- var css$q = {"uui-typography":"VpgPW6","uuiTypography":"VpgPW6","hero-header":"gXfwIM","heroHeader":"gXfwIM","promo-header":"Xca3He","promoHeader":"Xca3He","uui-critical":"-gV-0r","uuiCritical":"-gV-0r","uui-info":"W-UkNi","uuiInfo":"W-UkNi","uui-success":"kQh8g-","uuiSuccess":"kQh8g-","uui-warning":"f65mM5","uuiWarning":"f65mM5","uui-highlight":"X6U1lW","uuiHighlight":"X6U1lW","uui-typography-size-12":"XVmpMZ","uuiTypographySize12":"XVmpMZ","uui-typography-size-14":"_1JW4Bz","uuiTypographySize14":"_1JW4Bz","uui-typography-size-16":"lvgolB","uuiTypographySize16":"lvgolB","header":"u5l1wo","removeButton":"JQaFVP","with-search":"_7VOEQN","withSearch":"_7VOEQN"};
3862
+ var css$q = {"uui-typography":"qvu7Ns","uuiTypography":"qvu7Ns","hero-header":"ctH1L1","heroHeader":"ctH1L1","promo-header":"DquA5-","promoHeader":"DquA5-","uui-critical":"LkAlyc","uuiCritical":"LkAlyc","uui-info":"-I6QlJ","uuiInfo":"-I6QlJ","uui-success":"Lsv0K4","uuiSuccess":"Lsv0K4","uui-warning":"p4LhDx","uuiWarning":"p4LhDx","uui-highlight":"W9bDDe","uuiHighlight":"W9bDDe","uui-typography-size-12":"Q39pas","uuiTypographySize12":"Q39pas","uui-typography-size-14":"e8oAeF","uuiTypographySize14":"e8oAeF","uui-typography-size-16":"S2Sdma","uuiTypographySize16":"S2Sdma","header":"Arg8Tu","removeButton":"bOhBEq","with-search":"pp7nr1","withSearch":"pp7nr1"};
3864
3863
 
3865
3864
  function useView(props, value) {
3866
3865
  const forceUpdate = useForceUpdate();
@@ -3875,11 +3874,11 @@ function useView(props, value) {
3875
3874
  dataSourceState.checked = value;
3876
3875
  }
3877
3876
  }
3878
- return useViewFn === null || useViewFn === void 0 ? void 0 : useViewFn(dataSourceState, forceUpdate, { showSelectedOnly: true });
3877
+ return useViewFn?.(dataSourceState, forceUpdate, { showSelectedOnly: true });
3879
3878
  }
3880
3879
  function FiltersToolbarItemImpl(props) {
3881
3880
  const { maxCount = 2 } = props;
3882
- const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
3881
+ const isPickersType = props?.type === 'multiPicker' || props?.type === 'singlePicker';
3883
3882
  const isMobileScreen = isMobile();
3884
3883
  const popperModifiers = useMemo(() => {
3885
3884
  const modifiers = [
@@ -3902,11 +3901,10 @@ function FiltersToolbarItemImpl(props) {
3902
3901
  return modifiers;
3903
3902
  }, [isPickersType]);
3904
3903
  const getDefaultPredicate = () => {
3905
- var _a, _b;
3906
3904
  if (!props.predicates) {
3907
3905
  return null;
3908
3906
  }
3909
- return Object.keys(props.value || {})[0] || ((_a = props.predicates.find((i) => i.isDefault)) === null || _a === void 0 ? void 0 : _a.predicate) || ((_b = props.predicates) === null || _b === void 0 ? void 0 : _b[0].predicate);
3907
+ return Object.keys(props.value || {})[0] || props.predicates.find((i) => i.isDefault)?.predicate || props.predicates?.[0].predicate;
3910
3908
  };
3911
3909
  const [isOpen, isOpenChange] = useState(props.autoFocus);
3912
3910
  const [predicate, setPredicate] = useState(getDefaultPredicate());
@@ -3948,23 +3946,19 @@ function FiltersToolbarItemImpl(props) {
3948
3946
  }
3949
3947
  setPredicate(val);
3950
3948
  };
3951
- const renderHeader = (hideTitle) => {
3952
- var _a;
3953
- return (React__default.createElement("div", { className: cx(css$q.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$q.withSearch)) },
3954
- props.predicates ? (React__default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (!hideTitle && (React__default.createElement(Text, { color: "secondary", size: "24", fontSize: "14" }, props.title))),
3955
- !(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__default.createElement(LinkButton, { cx: css$q.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$i }))));
3956
- };
3949
+ const renderHeader = (hideTitle) => (React__default.createElement("div", { className: cx(css$q.header, isPickersType && (props.showSearch ?? css$q.withSearch)) },
3950
+ props.predicates ? (React__default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (!hideTitle && (React__default.createElement(Text, { color: "secondary", size: "24", fontSize: "14" }, props.title))),
3951
+ !props?.isAlwaysVisible && (React__default.createElement(LinkButton, { cx: css$q.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$i }))));
3957
3952
  const renderBody = (dropdownProps) => {
3958
3953
  const hideHeaderTitle = isPickersType && isMobileScreen;
3959
- return isPickersType ? (React__default.createElement(PickerBodyMobileView, Object.assign({}, dropdownProps, { cx: UUI_FILTERS_PANEL_ITEM_BODY, title: props.title, width: 360, onClose: () => isOpenChange(false) }),
3954
+ return isPickersType ? (React__default.createElement(PickerBodyMobileView, { ...dropdownProps, cx: UUI_FILTERS_PANEL_ITEM_BODY, title: props.title, width: 360, onClose: () => isOpenChange(false) },
3960
3955
  renderHeader(hideHeaderTitle),
3961
- React__default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__default.createElement(DropdownContainer, Object.assign({ cx: UUI_FILTERS_PANEL_ITEM_BODY }, dropdownProps),
3956
+ React__default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))) : (React__default.createElement(DropdownContainer, { cx: UUI_FILTERS_PANEL_ITEM_BODY, ...dropdownProps },
3962
3957
  renderHeader(hideHeaderTitle),
3963
- React__default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))));
3958
+ React__default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })));
3964
3959
  };
3965
3960
  const getValue = () => {
3966
- var _a;
3967
- return predicate ? (_a = props.value) === null || _a === void 0 ? void 0 : _a[predicate] : props.value;
3961
+ return predicate ? props.value?.[predicate] : props.value;
3968
3962
  };
3969
3963
  const getPickerItemName = (item, config) => {
3970
3964
  if (item.isLoading) {
@@ -3983,13 +3977,13 @@ function FiltersToolbarItemImpl(props) {
3983
3977
  case 'multiPicker': {
3984
3978
  let isLoading = false;
3985
3979
  const selection = currentValue
3986
- ? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, maxCount).map((i) => {
3980
+ ? currentValue?.slice(0, maxCount).map((i) => {
3987
3981
  const item = view.getById(i, null);
3988
- isLoading = item === null || item === void 0 ? void 0 : item.isLoading;
3982
+ isLoading = item?.isLoading;
3989
3983
  return getPickerItemName(item, props);
3990
3984
  })
3991
3985
  : currentValue;
3992
- const postfix = (!isLoading && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
3986
+ const postfix = (!isLoading && currentValue?.length > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
3993
3987
  return { selection, postfix };
3994
3988
  }
3995
3989
  case 'numeric': {
@@ -3999,7 +3993,7 @@ function FiltersToolbarItemImpl(props) {
3999
3993
  return { selection: undefined };
4000
3994
  }
4001
3995
  const selection = isRangePredicate
4002
- ? `${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) !== 0 ? 'Min' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)} - ${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) !== 0 ? 'Max' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)}`
3996
+ ? `${!currentValue?.from && currentValue?.from !== 0 ? 'Min' : decimalFormat(currentValue?.from)} - ${!currentValue?.to && currentValue?.to !== 0 ? 'Max' : decimalFormat(currentValue?.to)}`
4003
3997
  : `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
4004
3998
  return { selection: [selection] };
4005
3999
  }
@@ -4018,11 +4012,11 @@ function FiltersToolbarItemImpl(props) {
4018
4012
  if (!currentValue || (!currentValue.from && !currentValue.to)) {
4019
4013
  return { selection: undefined };
4020
4014
  }
4021
- const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
4022
- ? uuiDayjs.dayjs(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
4015
+ const currentValueFrom = currentValue?.from
4016
+ ? uuiDayjs.dayjs(currentValue?.from).format(props.format || defaultFormat)
4023
4017
  : i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
4024
- const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
4025
- ? uuiDayjs.dayjs(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
4018
+ const currentValueTo = currentValue?.to
4019
+ ? uuiDayjs.dayjs(currentValue?.to).format(props.format || defaultFormat)
4026
4020
  : i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
4027
4021
  const selection = `${currentValueFrom} - ${currentValueTo}`;
4028
4022
  return { selection: [selection] };
@@ -4038,7 +4032,7 @@ function FiltersToolbarItemImpl(props) {
4038
4032
  return props.togglerWidth;
4039
4033
  return props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : 300;
4040
4034
  };
4041
- const renderTarget = (dropdownProps) => (React__default.createElement(FilterPanelItemToggler, Object.assign({}, dropdownProps, getTogglerValue(), { title: props.title, predicateName: props.value ? predicateName : null, maxWidth: getTogglerWidth(), size: props.size })));
4035
+ const renderTarget = (dropdownProps) => (React__default.createElement(FilterPanelItemToggler, { ...dropdownProps, ...getTogglerValue(), title: props.title, predicateName: props.value ? predicateName : null, maxWidth: getTogglerWidth(), size: props.size }));
4042
4036
  return (React__default.createElement(Dropdown$1, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !isMobile(), value: isOpen, onValueChange: isOpenChange, modifiers: popperModifiers }));
4043
4037
  }
4044
4038
  const FiltersPanelItem = /* @__PURE__ */React__default.memo(FiltersToolbarItemImpl);
@@ -4105,15 +4099,13 @@ function FiltersToolbarImpl(props) {
4105
4099
  getId: (item) => item.field,
4106
4100
  }, []);
4107
4101
  const onFiltersChange = (updatedFilters) => {
4108
- var _a, _b;
4109
4102
  const newConfig = {};
4110
4103
  const newFilter = {};
4111
- const filtersConfig = Object.values((_a = tableState.filtersConfig) !== null && _a !== void 0 ? _a : {});
4104
+ const filtersConfig = Object.values(tableState.filtersConfig ?? {});
4112
4105
  const sortedOrders = orderBy(filtersConfig, ({ order }) => order);
4113
- let lastItemOrder = (sortedOrders === null || sortedOrders === void 0 ? void 0 : sortedOrders.length) ? (_b = sortedOrders[sortedOrders.length - 1]) === null || _b === void 0 ? void 0 : _b.order : null;
4106
+ let lastItemOrder = sortedOrders?.length ? sortedOrders[sortedOrders.length - 1]?.order : null;
4114
4107
  updatedFilters.forEach((filter) => {
4115
- var _a, _b;
4116
- let order = (_b = (_a = tableState === null || tableState === void 0 ? void 0 : tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[filter === null || filter === void 0 ? void 0 : filter.field]) === null || _b === void 0 ? void 0 : _b.order;
4108
+ let order = tableState?.filtersConfig?.[filter?.field]?.order;
4117
4109
  if (!order) {
4118
4110
  order = getOrderBetween(lastItemOrder, null);
4119
4111
  lastItemOrder = order;
@@ -4124,28 +4116,39 @@ function FiltersToolbarImpl(props) {
4124
4116
  newFilter[filter.field] = tableState.filter[filter.field];
4125
4117
  }
4126
4118
  });
4127
- setTableState(Object.assign(Object.assign({}, tableState), { filtersConfig: newConfig, filter: newFilter }));
4119
+ setTableState({
4120
+ ...tableState,
4121
+ filtersConfig: newConfig,
4122
+ filter: newFilter,
4123
+ });
4128
4124
  };
4129
4125
  const handleFilterChange = (newFilter) => {
4130
- const filter = normalizeFilterWithPredicates(Object.assign(Object.assign({}, tableState.filter), newFilter));
4131
- setTableState(Object.assign(Object.assign({}, tableState), { filter: filter }));
4126
+ const filter = normalizeFilterWithPredicates({ ...tableState.filter, ...newFilter });
4127
+ setTableState({
4128
+ ...tableState,
4129
+ filter: filter,
4130
+ });
4132
4131
  };
4133
4132
  const removeFilter = (field) => {
4134
- const filterConfig = Object.assign({}, tableState.filtersConfig);
4133
+ const filterConfig = { ...tableState.filtersConfig };
4135
4134
  delete filterConfig[field];
4136
- const filter = Object.assign({}, tableState.filter);
4135
+ const filter = { ...tableState.filter };
4137
4136
  delete filter[field];
4138
- const newTableState = Object.assign(Object.assign({}, tableState), { filtersConfig: filterConfig, filter: filter });
4139
- setTableState(Object.assign({}, newTableState));
4137
+ const newTableState = {
4138
+ ...tableState,
4139
+ filtersConfig: filterConfig,
4140
+ filter: filter,
4141
+ };
4142
+ setTableState({ ...newTableState });
4140
4143
  };
4141
4144
  const selectedFilters = useMemo(() => {
4142
4145
  const filtersConfig = tableState.filtersConfig || {};
4143
4146
  return filters.filter((filter) => {
4144
- return filter.isAlwaysVisible || (filtersConfig[filter === null || filter === void 0 ? void 0 : filter.field] ? filtersConfig[filter === null || filter === void 0 ? void 0 : filter.field].isVisible : false);
4147
+ return filter.isAlwaysVisible || (filtersConfig[filter?.field] ? filtersConfig[filter?.field].isVisible : false);
4145
4148
  });
4146
4149
  }, [tableState.filtersConfig, filters]);
4147
4150
  const sortedActiveFilters = useMemo(() => {
4148
- return orderBy(selectedFilters, (f) => { var _a, _b; return (_b = (_a = tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[f.field]) === null || _b === void 0 ? void 0 : _b.order; });
4151
+ return orderBy(selectedFilters, (f) => tableState.filtersConfig?.[f.field]?.order);
4149
4152
  }, [filters, tableState.filtersConfig]);
4150
4153
  const renderAddFilterToggler = useCallback((togglerProps) => {
4151
4154
  return (React__default.createElement(Button, { size: props.size, onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$h, iconPosition: "left", fill: "ghost", color: "primary", cx: UUI_FILTERS_PANEL_ADD_BUTTON }));
@@ -4159,29 +4162,25 @@ function FiltersToolbarImpl(props) {
4159
4162
  }), []);
4160
4163
  const isAllFiltersAlwaysVisible = props.filters.every((i) => i.isAlwaysVisible);
4161
4164
  useEffect(() => {
4162
- var _a, _b;
4163
4165
  if (sortedActiveFilters.length && newFilterId && sortedActiveFilters.find(({ field }) => field === newFilterId)) {
4164
4166
  // PickerInput should be closed after filterId update and opening the filter's body.
4165
4167
  // Otherwise, the focus will be not set in the search input of the filter's body.
4166
- (_b = (_a = pickerInputRef.current) === null || _a === void 0 ? void 0 : _a.closePickerBody) === null || _b === void 0 ? void 0 : _b.call(_a);
4168
+ pickerInputRef.current?.closePickerBody?.();
4167
4169
  // Reset new filter id, after first render with autofocus
4168
4170
  setNewFilterId(null);
4169
4171
  }
4170
4172
  }, [newFilterId, sortedActiveFilters]);
4171
4173
  return (React__default.createElement(React__default.Fragment, null,
4172
- sortedActiveFilters.map((f) => {
4173
- var _a;
4174
- return (React__default.createElement(FlexCell$1, { width: "auto", key: f.field },
4175
- React__default.createElement(FiltersPanelItem, Object.assign({}, f, { value: (_a = tableState.filter) === null || _a === void 0 ? void 0 : _a[f.field], onValueChange: handleFilterChange, key: f.field, autoFocus: newFilterId === f.field, removeFilter: removeFilter, size: props.size }))));
4176
- }),
4177
- !isAllFiltersAlwaysVisible && (React__default.createElement(PickerInput, { dataSource: dataSource, value: selectedFilters, onValueChange: onFiltersChange, selectionMode: "multi", valueType: "entity", renderRow: (props) => (React__default.createElement(DataPickerRow, Object.assign({}, props, { padding: "12", key: props.key, onCheck: (row) => {
4174
+ sortedActiveFilters.map((f) => (React__default.createElement(FlexCell$1, { width: "auto", key: f.field },
4175
+ React__default.createElement(FiltersPanelItem, { ...f, value: tableState.filter?.[f.field], onValueChange: handleFilterChange, key: f.field, autoFocus: newFilterId === f.field, removeFilter: removeFilter, size: props.size })))),
4176
+ !isAllFiltersAlwaysVisible && (React__default.createElement(PickerInput, { dataSource: dataSource, value: selectedFilters, onValueChange: onFiltersChange, selectionMode: "multi", valueType: "entity", renderRow: (props) => (React__default.createElement(DataPickerRow, { ...props, padding: "12", key: props.key, onCheck: (row) => {
4178
4177
  props.onCheck && props.onCheck(row);
4179
4178
  setNewFilterId(row.value.field);
4180
- }, renderItem: (item, rowProps) => React__default.createElement(PickerItem, Object.assign({}, rowProps, { title: item.title })) }))), getName: (i) => i.title, renderToggler: renderAddFilterToggler, emptyValue: [], getRowOptions: getRowOptions, fixedBodyPosition: true, size: props.size, bodyCx: UUI_FILTERS_PANEL_ADD_BUTTON_BODY, ref: pickerInputRef }))));
4179
+ }, renderItem: (item, rowProps) => React__default.createElement(PickerItem, { ...rowProps, title: item.title }) })), getName: (i) => i.title, renderToggler: renderAddFilterToggler, emptyValue: [], getRowOptions: getRowOptions, fixedBodyPosition: true, size: props.size, bodyCx: UUI_FILTERS_PANEL_ADD_BUTTON_BODY, ref: pickerInputRef }))));
4181
4180
  }
4182
4181
  const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
4183
4182
 
4184
- var css$p = {"divider":"t4m0u4","dropdownDeleteIcon":"MztmR2","presetsWrapper":"CYMNjg","addPresetContainer":"Xc4fYF","dropContainer":"EujozW"};
4183
+ var css$p = {"divider":"_7iuoU9","dropdownDeleteIcon":"J817q0","presetsWrapper":"v-gzst","addPresetContainer":"tcsdlr","dropContainer":"ZCf6qC"};
4185
4184
 
4186
4185
  var _path$g;
4187
4186
  function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
@@ -4294,24 +4293,31 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
4294
4293
  };
4295
4294
  var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
4296
4295
 
4297
- var css$o = {"delete-button":"VKis39","deleteButton":"VKis39","tab-button":"Dmjc9r","tabButton":"Dmjc9r","targetOpen":"bb1Oir"};
4296
+ var css$o = {"delete-button":"Y9lBdW","deleteButton":"Y9lBdW","tab-button":"rm6KAH","tabButton":"rm6KAH","targetOpen":"gzF18H"};
4298
4297
 
4299
4298
  function PresetActionsDropdown(props) {
4300
4299
  const { uuiNotifications } = useUuiContext();
4301
- const copyUrlToClipboard = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4302
- yield navigator.clipboard.writeText(props.getPresetLink(props.preset));
4300
+ const copyUrlToClipboard = useCallback(async () => {
4301
+ await navigator.clipboard.writeText(props.getPresetLink(props.preset));
4303
4302
  successNotificationHandler('Link copied!');
4304
- }), []);
4305
- const saveInCurrent = useCallback((preset) => __awaiter(this, void 0, void 0, function* () {
4306
- const newPreset = Object.assign(Object.assign({}, preset), { filter: props.tableState.filter, sorting: props.tableState.sorting, columnsConfig: props.tableState.columnsConfig, filtersConfig: props.tableState.filtersConfig, viewState: props.tableState.viewState });
4307
- yield props.updatePreset(newPreset);
4303
+ }, []);
4304
+ const saveInCurrent = useCallback(async (preset) => {
4305
+ const newPreset = {
4306
+ ...preset,
4307
+ filter: props.tableState.filter,
4308
+ sorting: props.tableState.sorting,
4309
+ columnsConfig: props.tableState.columnsConfig,
4310
+ filtersConfig: props.tableState.filtersConfig,
4311
+ viewState: props.tableState.viewState,
4312
+ };
4313
+ await props.updatePreset(newPreset);
4308
4314
  successNotificationHandler('Changes saved!');
4309
- }), [
4315
+ }, [
4310
4316
  props.tableState.filter, props.tableState.columnsConfig, props.tableState.filtersConfig,
4311
4317
  ]);
4312
4318
  const successNotificationHandler = useCallback((text) => {
4313
4319
  uuiNotifications
4314
- .show((props) => (React__default.createElement(SuccessNotification, Object.assign({}, props),
4320
+ .show((props) => (React__default.createElement(SuccessNotification, { ...props },
4315
4321
  React__default.createElement(Text, { size: "36", fontSize: "14" }, text))), { duration: 3 })
4316
4322
  .catch(() => null);
4317
4323
  }, []);
@@ -4324,16 +4330,16 @@ function PresetActionsDropdown(props) {
4324
4330
  const duplicateHandler = useCallback(() => {
4325
4331
  props.duplicatePreset(props.preset);
4326
4332
  }, [props.preset]);
4327
- const deleteHandler = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4328
- yield props.deletePreset(props.preset);
4329
- }), [
4333
+ const deleteHandler = useCallback(async () => {
4334
+ await props.deletePreset(props.preset);
4335
+ }, [
4330
4336
  props.activePresetId, props.deletePreset, props.preset,
4331
4337
  ]);
4332
4338
  const renderBody = (dropdownProps) => {
4333
4339
  const isReadonlyPreset = props.preset.isReadonly;
4334
4340
  const isPresetChanged = props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset);
4335
4341
  const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
4336
- return (React__default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
4342
+ return (React__default.createElement(DropdownMenuBody, { ...dropdownProps },
4337
4343
  isPresetChanged && (React__default.createElement(React__default.Fragment, null,
4338
4344
  !isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
4339
4345
  React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
@@ -4349,12 +4355,12 @@ function PresetActionsDropdown(props) {
4349
4355
  React__default.createElement(DropdownMenuButton, { icon: ForwardRef$i, caption: "Delete", cx: css$o.deleteButton, onClick: deleteHandler })))));
4350
4356
  };
4351
4357
  const renderTarget = useCallback((dropdownProps) => {
4352
- return (React__default.createElement(IconButton, Object.assign({ cx: [css$o.tabButton, dropdownProps.isOpen && css$o.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral' }, dropdownProps, { icon: ForwardRef$g, size: "18" })));
4358
+ return (React__default.createElement(IconButton, { cx: [css$o.tabButton, dropdownProps.isOpen && css$o.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral', ...dropdownProps, icon: ForwardRef$g, size: "18" }));
4353
4359
  }, []);
4354
4360
  return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
4355
4361
  }
4356
4362
 
4357
- var css$n = {"preset-input-cell":"_82YUmx","presetInputCell":"_82YUmx","preset-input":"_3zuAZ5","presetInput":"_3zuAZ5"};
4363
+ var css$n = {"preset-input-cell":"_4ZmOXl","presetInputCell":"_4ZmOXl","preset-input":"TBFX5G","presetInput":"TBFX5G"};
4358
4364
 
4359
4365
  const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
4360
4366
  const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
@@ -4362,21 +4368,20 @@ const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
4362
4368
  const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
4363
4369
 
4364
4370
  function PresetInput(props) {
4365
- var _a;
4366
- const [presetCaption, setPresetCaption] = useState(((_a = props.preset) === null || _a === void 0 ? void 0 : _a.name) || '');
4371
+ const [presetCaption, setPresetCaption] = useState(props.preset?.name || '');
4367
4372
  const [readonly, setReadonly] = useState(false);
4368
4373
  const cancelActionHandler = useCallback(() => {
4369
4374
  setPresetCaption('');
4370
4375
  props.onCancel();
4371
4376
  }, [props.onCancel]);
4372
- const acceptActionHandler = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4377
+ const acceptActionHandler = useCallback(async () => {
4373
4378
  setReadonly(() => true);
4374
4379
  if (presetCaption) {
4375
- yield props.onSuccess(presetCaption);
4380
+ await props.onSuccess(presetCaption);
4376
4381
  }
4377
4382
  props.onCancel();
4378
4383
  setReadonly(() => false);
4379
- }), [presetCaption]);
4384
+ }, [presetCaption]);
4380
4385
  const newPresetOnBlurHandler = useCallback(() => {
4381
4386
  if (presetCaption.length) {
4382
4387
  return;
@@ -4387,7 +4392,7 @@ function PresetInput(props) {
4387
4392
  React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
4388
4393
  }
4389
4394
 
4390
- var css$m = {"preset":"inMSQG","activePreset":"_4uLHpX"};
4395
+ var css$m = {"preset":"MiMUsH","activePreset":"Pcg6QT"};
4391
4396
 
4392
4397
  function Preset(props) {
4393
4398
  const [isRenamePreset, setIsRenamePreset] = useState(false);
@@ -4401,11 +4406,14 @@ function Preset(props) {
4401
4406
  }
4402
4407
  }, []);
4403
4408
  const handlePresetRename = useCallback((name) => {
4404
- const newPreset = Object.assign(Object.assign({}, props.preset), { name: name });
4409
+ const newPreset = {
4410
+ ...props.preset,
4411
+ name: name,
4412
+ };
4405
4413
  return props.updatePreset(newPreset);
4406
4414
  }, [props.preset]);
4407
4415
  const isPresetActive = props.activePresetId === props.preset.id;
4408
- const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), [props.preset, props.tableState, props.activePresetId]);
4416
+ const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, { renamePreset: setPresetForRename, ...props }), [props.preset, props.tableState, props.activePresetId]);
4409
4417
  return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$m.preset, isPresetActive && css$m.activePreset, UUI_PRESETS_PANEL_PRESET], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isLinkActive: isPresetActive }))));
4410
4418
  }
4411
4419
 
@@ -4434,9 +4442,9 @@ function PresetsPanel(props) {
4434
4442
  const cancelAddingPreset = useCallback(() => {
4435
4443
  setIsAddingPreset(false);
4436
4444
  }, []);
4437
- const presetApi = __rest(props, ["presets"]);
4445
+ const { presets, ...presetApi } = props;
4438
4446
  const renderPreset = (preset) => {
4439
- return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
4447
+ return React__default.createElement(Preset, { key: preset.id, preset: preset, addPreset: setAddingPreset, ...presetApi });
4440
4448
  };
4441
4449
  const renderAddPresetButton = useCallback(() => {
4442
4450
  return (React__default.createElement("div", { key: "addingPresetBlock", className: css$p.addPresetContainer }, !isAddingPreset ? (React__default.createElement(Button, { cx: UUI_PRESETS_PANEL_ADD_BUTTON, size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$h, iconPosition: "left", fill: "ghost", color: "primary" })) : (React__default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
@@ -4447,8 +4455,8 @@ function PresetsPanel(props) {
4447
4455
  const renderMoreButtonDropdown = (item, hiddenItems) => {
4448
4456
  return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
4449
4457
  React__default.createElement("div", { className: css$p.divider }),
4450
- React__default.createElement(Button, Object.assign({ cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: (propsBody) => (React__default.createElement(DropdownMenuBody, Object.assign({ minWidth: 230 }, propsBody),
4451
- React__default.createElement(ScrollBars$1, null, hiddenItems.map((hiddenItem) => (React__default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$9, iconPosition: "right", cx: css$p.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
4458
+ React__default.createElement(Button, { cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${hiddenItems?.length || ''} more`, ...props }))), renderBody: (propsBody) => (React__default.createElement(DropdownMenuBody, { minWidth: 230, maxHeight: 300, ...propsBody },
4459
+ React__default.createElement(ScrollBars, null, hiddenItems.map((hiddenItem) => (React__default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$9, iconPosition: "right", cx: css$p.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
4452
4460
  };
4453
4461
  const getPresetPriority = (preset, index) => {
4454
4462
  return preset.id === props.activePresetId ? 100499 : 1000 - index;
@@ -4483,18 +4491,21 @@ const defaultPredicates = {
4483
4491
 
4484
4492
  const useColumnsWithFilters = (initialColumns, filters) => {
4485
4493
  const makeFilterRenderCallback = useCallback((key) => function (filterLens, dropdownProps) {
4486
- const filter = filters === null || filters === void 0 ? void 0 : filters.find((f) => f.columnKey === key);
4494
+ const filter = filters?.find((f) => f.columnKey === key);
4487
4495
  if (!filter)
4488
4496
  return null;
4489
4497
  const props = filterLens.prop(filter.field).toProps();
4490
- return React__default.createElement(FilterItemBody, Object.assign({}, props, filter, dropdownProps));
4498
+ return React__default.createElement(FilterItemBody, { ...props, ...filter, ...dropdownProps });
4491
4499
  }, [filters]);
4492
4500
  const columns = useMemo(() => {
4493
4501
  if (filters) {
4494
4502
  const filterKeys = filters.map((f) => f.columnKey);
4495
4503
  const newColumns = (initialColumns.map((column) => {
4496
4504
  if (filterKeys.includes(column.key)) {
4497
- return Object.assign(Object.assign({}, column), { renderFilter: makeFilterRenderCallback(column.key) });
4505
+ return {
4506
+ ...column,
4507
+ renderFilter: makeFilterRenderCallback(column.key),
4508
+ };
4498
4509
  }
4499
4510
  else {
4500
4511
  return column;
@@ -4562,7 +4573,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
4562
4573
  };
4563
4574
  var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
4564
4575
 
4565
- var css$l = {"unpin-icon":"cf6YMf","unpinIcon":"cf6YMf","pin-toggler-icon":"SYfZIc","pinTogglerIcon":"SYfZIc"};
4576
+ var css$l = {"unpin-icon":"LDl5-y","unpinIcon":"LDl5-y","pin-toggler-icon":"DGjIx-","pinTogglerIcon":"DGjIx-"};
4566
4577
 
4567
4578
  function PinIconButton(props) {
4568
4579
  const i18nLocal = i18n.tables.columnsConfigurationModal;
@@ -4621,7 +4632,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
4621
4632
  };
4622
4633
  var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
4623
4634
 
4624
- var css$k = {"uui-typography":"d8pHaf","uuiTypography":"d8pHaf","hero-header":"qpa9ZK","heroHeader":"qpa9ZK","promo-header":"nPYYzR","promoHeader":"nPYYzR","uui-critical":"BMMswN","uuiCritical":"BMMswN","uui-info":"OjktOM","uuiInfo":"OjktOM","uui-success":"_0lBfbU","uuiSuccess":"_0lBfbU","uui-warning":"UTZpv6","uuiWarning":"UTZpv6","uui-highlight":"adz8fp","uuiHighlight":"adz8fp","uui-typography-size-12":"otEmix","uuiTypographySize12":"otEmix","uui-typography-size-14":"KGicnl","uuiTypographySize14":"KGicnl","uui-typography-size-16":"_2bDfs9","uuiTypographySize16":"_2bDfs9","row-wrapper":"YRsRJa","rowWrapper":"YRsRJa","pin-icon-button":"w5dk-g","pinIconButton":"w5dk-g","not-pinned":"sFzX9p","notPinned":"sFzX9p","checkbox":"qDXSPX","drag-handle":"KhhcM6","dragHandle":"KhhcM6","dnd-disabled":"YnNWsG","dndDisabled":"YnNWsG"};
4635
+ var css$k = {"uui-typography":"U04m0F","uuiTypography":"U04m0F","hero-header":"sB2zAD","heroHeader":"sB2zAD","promo-header":"gwQmVC","promoHeader":"gwQmVC","uui-critical":"dLxwal","uuiCritical":"dLxwal","uui-info":"_8jTknB","uuiInfo":"_8jTknB","uui-success":"o66GbS","uuiSuccess":"o66GbS","uui-warning":"V0maZO","uuiWarning":"V0maZO","uui-highlight":"YVTNhW","uuiHighlight":"YVTNhW","uui-typography-size-12":"_6Q59SA","uuiTypographySize12":"_6Q59SA","uui-typography-size-14":"_8UMwoC","uuiTypographySize14":"_8UMwoC","uui-typography-size-16":"_0bOgOV","uuiTypographySize16":"_0bOgOV","row-wrapper":"fBBHUL","rowWrapper":"fBBHUL","pin-icon-button":"OTgPp-","pinIconButton":"OTgPp-","not-pinned":"ofo2Lk","notPinned":"ofo2Lk","checkbox":"IjdU7K","drag-handle":"KWR0AF","dragHandle":"KWR0AF","dnd-disabled":"f2Zrv-","dndDisabled":"f2Zrv-"};
4625
4636
 
4626
4637
  const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
4627
4638
  const { column } = props;
@@ -4632,19 +4643,19 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
4632
4643
  const data = { column, columnConfig };
4633
4644
  const renderContent = (dndActorParams) => {
4634
4645
  const wrapperClasses = cx$1(css$k.rowWrapper, !isPinned && css$k.notPinned, dndActorParams.isDragGhost && uuiDndState.dragGhost, 'uui-dt-columns-config-row');
4635
- const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
4636
- const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
4637
- return (React.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: Object.assign({}, restEventHandlers), alignItems: "top" },
4646
+ const { onTouchStart, onPointerDown, ...restEventHandlers } = dndActorParams.eventHandlers;
4647
+ const { ref, ...dndActorPropsWithoutRef } = dndActorParams;
4648
+ return (React.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: { ...restEventHandlers }, alignItems: "top" },
4638
4649
  React.createElement(DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: cx$1(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
4639
4650
  React.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isReadonly: column.isAlwaysVisible || column.isLocked, cx: css$k.checkbox }),
4640
4651
  React.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
4641
4652
  React.createElement(PinIconButton, { pinPosition: pinPosition, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
4642
- React.createElement(DropMarker, Object.assign({}, dndActorPropsWithoutRef))));
4653
+ React.createElement(DropMarker, { ...dndActorPropsWithoutRef })));
4643
4654
  };
4644
4655
  return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
4645
4656
  });
4646
4657
 
4647
- var css$j = {"uui-typography":"B-hVZ-","uuiTypography":"B-hVZ-","hero-header":"fvqoAC","heroHeader":"fvqoAC","promo-header":"Lklm6Z","promoHeader":"Lklm6Z","uui-critical":"E09FGq","uuiCritical":"E09FGq","uui-info":"_6cAFBo","uuiInfo":"_6cAFBo","uui-success":"WJq3IS","uuiSuccess":"WJq3IS","uui-warning":"_2kJzu0","uuiWarning":"_2kJzu0","uui-highlight":"ebgdlG","uuiHighlight":"ebgdlG","uui-typography-size-12":"W1Ib4Y","uuiTypographySize12":"W1Ib4Y","uui-typography-size-14":"t-8JPK","uuiTypographySize14":"t-8JPK","uui-typography-size-16":"CBjZtU","uuiTypographySize16":"CBjZtU","root":"_8RwIyD","main-panel":"xSl-2c","mainPanel":"xSl-2c","group":"fAXKsz","group-title":"IgcuW-","groupTitle":"IgcuW-","group-items":"OEsNiQ","groupItems":"OEsNiQ","no-data":"Mfg6Im","noData":"Mfg6Im","no-data-title":"g-h-Xo","noDataTitle":"g-h-Xo","no-data-sub-title":"pBk8Ao","noDataSubTitle":"pBk8Ao","h-divider":"ZZO0Bj","hDivider":"ZZO0Bj","search-area":"_8zOLj9","searchArea":"_8zOLj9","subgroup-accordion":"s99Ifl","subgroupAccordion":"s99Ifl","subgroup":"Mnwg3B","subgroup-title":"DK4Yuq","subgroupTitle":"DK4Yuq"};
4658
+ var css$j = {"uui-typography":"eelq-2","uuiTypography":"eelq-2","hero-header":"TZtsWw","heroHeader":"TZtsWw","promo-header":"KL3GEw","promoHeader":"KL3GEw","uui-critical":"_3KP2oE","uuiCritical":"_3KP2oE","uui-info":"Syi-b1","uuiInfo":"Syi-b1","uui-success":"wX-iy-","uuiSuccess":"wX-iy-","uui-warning":"cN2MuR","uuiWarning":"cN2MuR","uui-highlight":"MOyWqf","uuiHighlight":"MOyWqf","uui-typography-size-12":"TJDeud","uuiTypographySize12":"TJDeud","uui-typography-size-14":"lAFwsI","uuiTypographySize14":"lAFwsI","uui-typography-size-16":"FxLMtM","uuiTypographySize16":"FxLMtM","root":"nyI3JQ","main-panel":"-PAc2A","mainPanel":"-PAc2A","group":"GOeTWI","group-title":"fyde8A","groupTitle":"fyde8A","group-items":"GLMD7D","groupItems":"GLMD7D","no-data":"gp8AIr","noData":"gp8AIr","no-data-title":"whpYJ-","noDataTitle":"whpYJ-","no-data-sub-title":"-srCJi","noDataSubTitle":"-srCJi","h-divider":"lldlY3","hDivider":"lldlY3","search-area":"cELzvQ","searchArea":"cELzvQ","subgroup-accordion":"ITMcnk","subgroupAccordion":"ITMcnk","subgroup":"RmYidO","subgroup-title":"dGRI4v","subgroupTitle":"dGRI4v"};
4648
4659
 
4649
4660
  const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
4650
4661
  React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
@@ -4652,7 +4663,7 @@ const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx:
4652
4663
  React.createElement(FlexSpacer, null)));
4653
4664
  function ColumnsConfigurationModal(props) {
4654
4665
  const i18n$1 = i18n.tables.columnsConfigurationModal;
4655
- const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
4666
+ const { columns, columnsConfig: initialColumnsConfig, defaultConfig, ...modalProps } = props;
4656
4667
  const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, hasAnySelectedColumns, } = useColumnsConfiguration({
4657
4668
  initialColumnsConfig,
4658
4669
  columns,
@@ -4692,14 +4703,14 @@ function ColumnsConfigurationModal(props) {
4692
4703
  React.createElement(SubGroup, { renderItem: props.renderItem, items: items })));
4693
4704
  };
4694
4705
  const applyButton = React.createElement(Button, { caption: i18n$1.applyButton, isDisabled: !hasAnySelectedColumns, color: "primary", onClick: apply });
4695
- return (React.createElement(ModalBlocker, Object.assign({}, modalProps),
4706
+ return (React.createElement(ModalBlocker, { ...modalProps },
4696
4707
  React.createElement(ModalWindow, { cx: css$j.root, height: "95dvh", maxHeight: "95dvh", width: settings.sizes.dataTable.columnsConfigurationModal.width },
4697
4708
  React.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
4698
4709
  React.createElement(FlexRow, { borderBottom: true, cx: css$j.searchArea },
4699
4710
  React.createElement(SearchInput, { size: settings.sizes.dataTable.columnsConfigurationModal.search, value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
4700
4711
  React.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React.createElement(DropdownMenuBody, { minWidth: 100 },
4701
4712
  React.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
4702
- React.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => (React.createElement(Button, Object.assign({}, props, { fill: "none", icon: ForwardRef$g, size: settings.sizes.dataTable.columnsConfigurationModal.search, color: "secondary", isDropdown: false }))) })),
4713
+ React.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => (React.createElement(Button, { ...props, fill: "none", icon: ForwardRef$g, size: settings.sizes.dataTable.columnsConfigurationModal.search, color: "secondary", isDropdown: false })) })),
4703
4714
  React.createElement(Panel, { background: "surface-main", cx: css$j.mainPanel },
4704
4715
  React.createElement(ScrollBars, null,
4705
4716
  renderVisible(),
@@ -4733,7 +4744,7 @@ function SubGroup(props) {
4733
4744
  return null;
4734
4745
  }
4735
4746
 
4736
- var css$i = {"listContainer":"hyk6v-","header":"_8DYALG","group":"viPtnd","stickyHeader":"_2dULfL"};
4747
+ var css$i = {"listContainer":"C0rsxR","header":"tMYAav","group":"_3xhDg7","stickyHeader":"_2vTwqy"};
4737
4748
 
4738
4749
  const getChildrenAndRest = (row, rows) => {
4739
4750
  const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
@@ -4749,9 +4760,8 @@ const getChildrenAndRest = (row, rows) => {
4749
4760
  };
4750
4761
 
4751
4762
  function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
4752
- var _a, _b;
4753
4763
  const rowRef = useRef();
4754
- const childrenPinnedTop = row.isPinned ? (top + ((_b = (_a = rowRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0)) : top;
4764
+ const childrenPinnedTop = row.isPinned ? (top + (rowRef.current?.clientHeight ?? 0)) : top;
4755
4765
  return (React__default.createElement("div", { className: css$i.group, key: row.rowKey },
4756
4766
  React__default.createElement("div", { className: row.isPinned ? css$i.stickyHeader : css$i.header,
4757
4767
  // Gaps between pinned parents should be removed by -1 from top height.
@@ -4782,10 +4792,9 @@ function DataRowsGroups({ rows, renderRow, top = 1, }) {
4782
4792
  }
4783
4793
 
4784
4794
  function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
4785
- var _a;
4786
4795
  return (React__default.createElement("div", { className: css$i.listContainer, style: { minHeight: `${estimatedHeight}px` } },
4787
4796
  React__default.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY } },
4788
- React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: (_a = headerRef === null || headerRef === void 0 ? void 0 : headerRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight }))));
4797
+ React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
4789
4798
  }
4790
4799
 
4791
4800
  var _path$4, _path2, _path3, _path4, _path5, _path6, _g, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
@@ -4799,7 +4808,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4799
4808
  xmlns: "http://www.w3.org/2000/svg",
4800
4809
  ref: ref
4801
4810
  }, props), /*#__PURE__*/React.createElement("g", {
4802
- clipPath: "url(#sn7n3ic4pqzlruud4_a)"
4811
+ clipPath: "url(#jh5qb18b7f57b0okg_a)"
4803
4812
  }, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
4804
4813
  d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
4805
4814
  fill: "#F5F6FA"
@@ -4820,7 +4829,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4820
4829
  d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
4821
4830
  fill: "#1D1E26"
4822
4831
  })), /*#__PURE__*/React.createElement("mask", {
4823
- id: "sn7n3ib94n84i8g8p_b",
4832
+ id: "jh5qb10r5b9oczmaq_b",
4824
4833
  style: {
4825
4834
  maskType: "alpha"
4826
4835
  },
@@ -4833,7 +4842,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4833
4842
  d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
4834
4843
  fill: "#9BDEFF"
4835
4844
  }))), _g || (_g = /*#__PURE__*/React.createElement("g", {
4836
- mask: "url(#sn7n3ib94n84i8g8p_b)",
4845
+ mask: "url(#jh5qb10r5b9oczmaq_b)",
4837
4846
  fillRule: "evenodd",
4838
4847
  clipRule: "evenodd"
4839
4848
  }, /*#__PURE__*/React.createElement("path", {
@@ -4919,7 +4928,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4919
4928
  d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
4920
4929
  fill: "#fff"
4921
4930
  }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
4922
- id: "sn7n3ic4pqzlruud4_a"
4931
+ id: "jh5qb18b7f57b0okg_a"
4923
4932
  }, /*#__PURE__*/React.createElement("path", {
4924
4933
  fill: "#fff",
4925
4934
  transform: "translate(.552)",
@@ -4928,46 +4937,44 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4928
4937
  };
4929
4938
  var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
4930
4939
 
4931
- var css$h = {"root":"uMWgnN","sticky-header":"rKECzF","stickyHeader":"rKECzF","no-results":"PO4aRk","noResults":"PO4aRk","icon":"cgkoIv","title":"XLFZH6"};
4940
+ var css$h = {"root":"ifknUI","sticky-header":"_8fg0PP","stickyHeader":"_8fg0PP","no-results":"_6tMOnw","noResults":"_6tMOnw","icon":"_5ka1G-","title":"Q-I1Hc"};
4932
4941
 
4933
4942
  function DataTable(props) {
4934
- var _a, _b, _c, _d;
4935
4943
  const { uuiModals } = useUuiContext();
4936
4944
  const headerRef = React.useRef();
4937
4945
  const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
4938
- const { columns, config, defaultConfig } = useColumnsConfig(columnsWithFilters, (_a = props.value) === null || _a === void 0 ? void 0 : _a.columnsConfig);
4946
+ const { columns, config, defaultConfig } = useColumnsConfig(columnsWithFilters, props.value?.columnsConfig);
4939
4947
  const defaultRenderRow = React.useCallback((rowProps) => {
4940
- return (React.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size || settings.sizes.dataTable.body.row.default, columnsGap: props.columnsGap, borderBottom: props.border }, rowProps, { cx: css$h.cell })));
4948
+ return (React.createElement(DataTableRow, { size: props.size || settings.sizes.dataTable.body.row.default, columnsGap: props.columnsGap, borderBottom: props.border, ...rowProps, key: rowProps.rowKey, cx: css$h.cell }));
4941
4949
  }, []);
4942
- const renderRow = (row) => { var _a; return ((_a = props.renderRow) !== null && _a !== void 0 ? _a : defaultRenderRow)(Object.assign(Object.assign({}, row), { columns })); };
4943
- const rows = (_d = (_c = (_b = props.getRows) === null || _b === void 0 ? void 0 : _b.call(props)) !== null && _c !== void 0 ? _c : props.rows) !== null && _d !== void 0 ? _d : [];
4950
+ const renderRow = (row) => (props.renderRow ?? defaultRenderRow)({ ...row, columns });
4951
+ const rows = props.getRows?.() ?? props.rows ?? [];
4944
4952
  const renderNoResultsBlock = React.useCallback(() => {
4945
- var _a;
4946
- return (React.createElement("div", { className: css$h.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React.createElement(React.Fragment, null,
4953
+ return (React.createElement("div", { className: css$h.noResults }, props.renderNoResultsBlock ? (props.renderNoResultsBlock?.()) : (React.createElement(React.Fragment, null,
4947
4954
  React.createElement(IconContainer, { cx: css$h.icon, icon: ForwardRef$4 }),
4948
4955
  React.createElement(Text, { cx: css$h.title, fontSize: "24", lineHeight: "30", color: "primary", fontWeight: "600" }, i18n.tables.noResultsBlock.title),
4949
4956
  React.createElement(Text, { fontSize: "16", lineHeight: "24", color: "primary" }, i18n.tables.noResultsBlock.message)))));
4950
4957
  }, [props.renderNoResultsBlock]);
4951
4958
  const onConfigurationButtonClick = React.useCallback(() => {
4952
- const configProps = { columns: props.columns, columnsConfig: Object.assign({}, config), defaultConfig };
4959
+ const configProps = { columns: props.columns, columnsConfig: { ...config }, defaultConfig };
4953
4960
  uuiModals
4954
4961
  .show((modalProps) => {
4955
4962
  return (props.renderColumnsConfigurationModal
4956
- ? props.renderColumnsConfigurationModal(Object.assign(Object.assign({}, configProps), modalProps))
4957
- : (React.createElement(ColumnsConfigurationModal, Object.assign({}, modalProps, { columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig }))));
4963
+ ? props.renderColumnsConfigurationModal({ ...configProps, ...modalProps })
4964
+ : (React.createElement(ColumnsConfigurationModal, { ...modalProps, columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig })));
4958
4965
  })
4959
- .then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
4966
+ .then((columnsConfig) => props.onValueChange({ ...props.value, columnsConfig }))
4960
4967
  .catch(() => null);
4961
4968
  }, [
4962
4969
  props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
4963
4970
  ]);
4964
4971
  const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
4965
4972
  React.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
4966
- React.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
4973
+ React.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: { ...props.value, columnsConfig: config }, onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
4967
4974
  React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
4968
4975
  [uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
4969
4976
  }) })),
4970
- props.exactRowsCount !== 0 ? (React.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
4977
+ props.exactRowsCount !== 0 ? (React.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock?.()))), [
4971
4978
  props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
4972
4979
  ]);
4973
4980
  return (React.createElement(DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
@@ -4979,9 +4986,9 @@ function DataTable(props) {
4979
4986
  } }))));
4980
4987
  }
4981
4988
 
4982
- var css$g = {"root":"V4OjU4"};
4989
+ var css$g = {"root":"biBVzu"};
4983
4990
 
4984
- var css$f = {"root":"zSIjMr","burger-content":"_5ONd5P","burgerContent":"_5ONd5P"};
4991
+ var css$f = {"root":"mQZNWd","burger-content":"sjQg4q","burgerContent":"sjQg4q"};
4985
4992
 
4986
4993
  var _path$3;
4987
4994
  function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
@@ -5024,7 +5031,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
5024
5031
  };
5025
5032
  var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
5026
5033
 
5027
- var css$e = {"uui-typography":"_4vvL-0","uuiTypography":"_4vvL-0","hero-header":"uVteDZ","heroHeader":"uVteDZ","promo-header":"p8536P","promoHeader":"p8536P","uui-critical":"QguHXy","uuiCritical":"QguHXy","uui-info":"d8KT1N","uuiInfo":"d8KT1N","uui-success":"TjEyup","uuiSuccess":"TjEyup","uui-warning":"FLhnxT","uuiWarning":"FLhnxT","uui-highlight":"Qt4-6L","uuiHighlight":"Qt4-6L","uui-typography-size-12":"rSEoch","uuiTypographySize12":"rSEoch","uui-typography-size-14":"VuvWI-","uuiTypographySize14":"VuvWI-","uui-typography-size-16":"Zjh5oK","uuiTypographySize16":"Zjh5oK","root":"gzbXPQ","button-primary":"-qDtJG","buttonPrimary":"-qDtJG","button-secondary":"mlb--2","buttonSecondary":"mlb--2","hasIcon":"KZeKRu","dropdown":"-BNlGE"};
5034
+ var css$e = {"uui-typography":"oEMxeW","uuiTypography":"oEMxeW","hero-header":"_94sjry","heroHeader":"_94sjry","promo-header":"d3wHyu","promoHeader":"d3wHyu","uui-critical":"gAmL0l","uuiCritical":"gAmL0l","uui-info":"s0-Vzm","uuiInfo":"s0-Vzm","uui-success":"T0IT3z","uuiSuccess":"T0IT3z","uui-warning":"IIYlBt","uuiWarning":"IIYlBt","uui-highlight":"tlNybw","uuiHighlight":"tlNybw","uui-typography-size-12":"VGNF1l","uuiTypographySize12":"VGNF1l","uui-typography-size-14":"m342hq","uuiTypographySize14":"m342hq","uui-typography-size-16":"dxGluB","uuiTypographySize16":"dxGluB","root":"WzEXui","button-primary":"_-43jHC","buttonPrimary":"_-43jHC","button-secondary":"OdRVBc","buttonSecondary":"OdRVBc","hasIcon":"jYxpEj","dropdown":"MmiIdl"};
5028
5035
 
5029
5036
  const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
5030
5037
  css$e.root,
@@ -5035,13 +5042,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
5035
5042
  props.icon && css$e.hasIcon,
5036
5043
  ], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
5037
5044
 
5038
- var css$d = {"search-input":"IdsMKW","searchInput":"IdsMKW"};
5045
+ var css$d = {"search-input":"vwBoI2","searchInput":"vwBoI2"};
5039
5046
 
5040
5047
  function BurgerSearch(props) {
5041
5048
  return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$O, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
5042
5049
  }
5043
5050
 
5044
- var css$c = {"root":"VOoNK-","group-header":"JpEiMn","groupHeader":"JpEiMn","group-name":"_9oZZ0R","groupName":"_9oZZ0R","line":"HpmXfD"};
5051
+ var css$c = {"root":"_3nOrn6","group-header":"d6Ib-6","groupHeader":"d6Ib-6","group-name":"jTPcEQ","groupName":"jTPcEQ","line":"M463wg"};
5045
5052
 
5046
5053
  function BurgerGroupHeader(props) {
5047
5054
  return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
@@ -5049,15 +5056,21 @@ function BurgerGroupHeader(props) {
5049
5056
  React.createElement("span", { className: css$c.groupName }, props.caption)));
5050
5057
  }
5051
5058
 
5052
- var css$b = {"uui-typography":"Y3QUYF","uuiTypography":"Y3QUYF","hero-header":"cKqM9H","heroHeader":"cKqM9H","promo-header":"zV1p76","promoHeader":"zV1p76","uui-critical":"aGTFJU","uuiCritical":"aGTFJU","uui-info":"_2WYX8z","uuiInfo":"_2WYX8z","uui-success":"_1bGfgI","uuiSuccess":"_1bGfgI","uui-warning":"PgS8ZR","uuiWarning":"PgS8ZR","uui-highlight":"HOXMdb","uuiHighlight":"HOXMdb","uui-typography-size-12":"hv4mIp","uuiTypographySize12":"hv4mIp","uui-typography-size-14":"_5ItI6S","uuiTypographySize14":"_5ItI6S","uui-typography-size-16":"ugo5iu","uuiTypographySize16":"ugo5iu","root":"PgtKlP","type-primary":"ov3R-D","typePrimary":"ov3R-D","type-secondary":"_5uYerB","typeSecondary":"_5uYerB"};
5059
+ var css$b = {"uui-typography":"RS7dUA","uuiTypography":"RS7dUA","hero-header":"xljCqy","heroHeader":"xljCqy","promo-header":"AGIR-2","promoHeader":"AGIR-2","uui-critical":"jnsUE8","uuiCritical":"jnsUE8","uui-info":"_1lWxQi","uuiInfo":"_1lWxQi","uui-success":"eahP4f","uuiSuccess":"eahP4f","uui-warning":"SAIv2D","uuiWarning":"SAIv2D","uui-highlight":"_3VmznQ","uuiHighlight":"_3VmznQ","uui-typography-size-12":"PUv7b1","uuiTypographySize12":"PUv7b1","uui-typography-size-14":"hMdJHb","uuiTypographySize14":"hMdJHb","uui-typography-size-16":"zQZTre","uuiTypographySize16":"zQZTre","root":"nsSLaR","type-primary":"yVZmeU","typePrimary":"yVZmeU","type-secondary":"G0W34C","typeSecondary":"G0W34C"};
5053
5060
 
5054
5061
  const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
5055
- const { type } = props, clickableProps = __rest(props, ["type"]);
5056
- return (React.createElement(Clickable, Object.assign({}, clickableProps, { rawProps: Object.assign({ role: 'menuitem', 'aria-haspopup': props.isDropdown, 'aria-expanded': props.isOpen }, props.rawProps), cx: [
5062
+ const { type, ...clickableProps } = props;
5063
+ return (React.createElement(Clickable, { ...clickableProps, rawProps: {
5064
+ 'aria-expanded': props.isOpen,
5065
+ 'aria-current': props.isLinkActive
5066
+ ? 'page'
5067
+ : undefined,
5068
+ ...props.rawProps,
5069
+ }, cx: [
5057
5070
  css$b.root,
5058
5071
  css$b['type-' + (type || 'primary')],
5059
5072
  props.cx,
5060
- ], ref: ref }),
5073
+ ], ref: ref },
5061
5074
  props.icon && props.iconPosition !== 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: props.onIconClick })),
5062
5075
  props.caption && (React.createElement("div", { className: uuiElement.caption }, props.caption)),
5063
5076
  props.count !== undefined && props.count !== null && (React.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
@@ -5065,11 +5078,11 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
5065
5078
  props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
5066
5079
  });
5067
5080
 
5068
- var css$a = {"dropdown-body":"annmFL","dropdownBody":"annmFL"};
5081
+ var css$a = {"dropdown-body":"sMjO5o","dropdownBody":"sMjO5o"};
5069
5082
 
5070
5083
  class MainMenuDropdown extends React.Component {
5071
5084
  render() {
5072
- return (React.createElement(Dropdown$1, { renderTarget: (props) => (React.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: (props) => {
5085
+ return (React.createElement(Dropdown$1, { renderTarget: (props) => (React.createElement(MainMenuButton, { caption: this.props.caption, ...props, rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true })), renderBody: (props) => {
5073
5086
  const handleEscape = (e) => {
5074
5087
  if (e.key === 'Escape' && props.isOpen) {
5075
5088
  props.onClose();
@@ -5077,16 +5090,19 @@ class MainMenuDropdown extends React.Component {
5077
5090
  };
5078
5091
  return (React.createElement(FocusLock, { returnFocus: true, persistentFocus: true, lockProps: { onKeyDown: handleEscape } },
5079
5092
  React.createElement("div", { className: cx(css$a.dropdownBody, 'uui-main_menu-dropdown') }, this.props.renderBody
5080
- ? this.props.renderBody(Object.assign({}, props))
5093
+ ? this.props.renderBody({ ...props })
5081
5094
  : React.Children.map(this.props.children, (item) => {
5082
5095
  if (!item)
5083
5096
  return item;
5084
- return React.createElement(item.type, Object.assign(Object.assign({}, item.props), { onClick: item.props.onClick
5097
+ return React.createElement(item.type, {
5098
+ ...item.props,
5099
+ onClick: item.props.onClick
5085
5100
  ? () => {
5086
5101
  item.props.onClick();
5087
5102
  props.onClose();
5088
5103
  }
5089
- : null }));
5104
+ : null,
5105
+ });
5090
5106
  }))));
5091
5107
  }, placement: "bottom-start" }));
5092
5108
  }
@@ -5120,69 +5136,66 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
5120
5136
  };
5121
5137
  var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
5122
5138
 
5123
- var css$9 = {"global-menu-btn":"H5QeUe","globalMenuBtn":"H5QeUe","global-menu-icon":"_1whPkM","globalMenuIcon":"_1whPkM"};
5139
+ var css$9 = {"global-menu-btn":"S1-IiH","globalMenuBtn":"S1-IiH","global-menu-icon":"Mz6D1b","globalMenuIcon":"Mz6D1b"};
5124
5140
 
5125
- const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx) }, props.rawProps),
5141
+ const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx), ...props.rawProps },
5126
5142
  React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
5127
5143
 
5128
- var css$8 = {"container":"VWM2pz","open":"fmZkwp","folding-arrow":"x55JGF","foldingArrow":"x55JGF"};
5144
+ var css$8 = {"container":"jjD6PH","open":"qAyc-j","folding-arrow":"e5DzUH","foldingArrow":"e5DzUH"};
5129
5145
 
5130
- const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick },
5146
+ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
5131
5147
  React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
5132
5148
  props.icon && React.createElement(IconContainer, { icon: props.icon }),
5133
5149
  props.isDropdown && (React.createElement("div", null,
5134
5150
  React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
5135
5151
 
5136
- var css$7 = {"search-input":"cWLbQr","searchInput":"cWLbQr"};
5152
+ var css$7 = {"search-input":"IbLOaY","searchInput":"IbLOaY"};
5137
5153
 
5138
- const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
5139
- var _a;
5140
- return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$O, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$R }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
5141
- } }))));
5154
+ const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$O, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
5142
5155
 
5143
- var css$6 = {"container":"iiAKp-"};
5156
+ var css$6 = {"container":"_7WXFQI"};
5144
5157
 
5145
- const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container) }, props))));
5158
+ const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
5146
5159
 
5147
- var css$5 = {"root":"vh7agE"};
5160
+ var css$5 = {"root":"_0B5wW8"};
5148
5161
 
5149
5162
  const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
5150
5163
 
5151
5164
  function Form(props) {
5152
5165
  const context = useUuiContext();
5153
5166
  const beforeLeave = React.useCallback(() => {
5154
- return context.uuiModals.show((modalProps) => React.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
5167
+ return context.uuiModals.show((modalProps) => React.createElement(ConfirmationModal, { caption: i18n.form.modals.beforeLeaveMessage, ...modalProps }));
5155
5168
  }, [context.uuiModals]);
5156
5169
  const loadUnsavedChanges = () => {
5157
5170
  return context.uuiNotifications
5158
- .show((props) => (React.createElement(WarningNotification, Object.assign({}, props, { actions: [
5171
+ .show((props) => (React.createElement(WarningNotification, { ...props, actions: [
5159
5172
  {
5160
5173
  name: i18n.form.notifications.actionButtonCaption,
5161
5174
  action: props.onSuccess,
5162
5175
  },
5163
- ] }),
5176
+ ] },
5164
5177
  React.createElement(RichTextView, null,
5165
5178
  React.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
5166
5179
  };
5167
- return React.createElement(Form$1, Object.assign({ loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave }, props));
5180
+ return React.createElement(Form$1, { loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave, ...props });
5168
5181
  }
5169
5182
 
5170
5183
  function useForm(props) {
5171
5184
  const context = useUuiContext();
5172
5185
  const beforeLeave = useCallback(() => {
5173
- return context.uuiModals.show((modalProps) => React__default.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
5186
+ return context.uuiModals.show((modalProps) => React__default.createElement(ConfirmationModal, { caption: i18n.form.modals.beforeLeaveMessage, ...modalProps }));
5174
5187
  }, [context.uuiModals]);
5175
5188
  const loadUnsavedChanges = () => {
5176
- return context.uuiNotifications.show((props) => (React__default.createElement(WarningNotification, Object.assign({}, props, { actions: [
5189
+ return context.uuiNotifications.show((props) => (React__default.createElement(WarningNotification, { ...props, actions: [
5177
5190
  {
5178
5191
  name: i18n.form.notifications.actionButtonCaption,
5179
5192
  action: props.onSuccess,
5180
5193
  },
5181
- ] }),
5194
+ ] },
5182
5195
  React__default.createElement(RichTextView, null,
5183
5196
  React__default.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
5184
5197
  };
5185
- return useForm$1(Object.assign({ beforeLeave, loadUnsavedChanges }, props));
5198
+ return useForm$1({ beforeLeave, loadUnsavedChanges, ...props });
5186
5199
  }
5187
5200
 
5188
5201
  var _path;
@@ -5202,33 +5215,33 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
5202
5215
  };
5203
5216
  var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
5204
5217
 
5205
- var css$4 = {"root":"F6d1xs","drop-start":"kvLszj","dropStart":"kvLszj","drop-over":"j0EVHB","dropOver":"j0EVHB","link":"nfnSDx","drop-area":"u0f-4o","dropArea":"u0f-4o","drop-caption":"hjIMfl","dropCaption":"hjIMfl","icon-blue":"l-4dsw","iconBlue":"l-4dsw"};
5218
+ var css$4 = {"root":"PvmBQ0","drop-start":"Ld5H3f","dropStart":"Ld5H3f","drop-over":"fn0Ty8","dropOver":"fn0Ty8","link":"Yyk1uq","drop-area":"_4duI3R","dropArea":"_4duI3R","drop-caption":"ecL9CV","dropCaption":"ecL9CV","icon-blue":"xIhk4E","iconBlue":"xIhk4E"};
5206
5219
 
5207
5220
  function DropSpot(props) {
5208
5221
  const getInfoText = typeof props.infoText === 'string'
5209
- ? (React.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", color: "tertiary" }, props.infoText)) : props === null || props === void 0 ? void 0 : props.infoText;
5222
+ ? (React.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", color: "tertiary" }, props.infoText)) : props?.infoText;
5210
5223
  const renderAttachmentArea = (params) => {
5211
- return (React.createElement("div", Object.assign({ className: cx$1(css$4.root, props.cx, params.isDragStart && css$4.dropStart, params.isDraggingOver && css$4.dropOver) }, props.rawProps),
5212
- React.createElement("div", Object.assign({}, params.eventHandlers, { className: css$4.dropArea }),
5224
+ return (React.createElement("div", { className: cx$1(css$4.root, props.cx, params.isDragStart && css$4.dropStart, params.isDraggingOver && css$4.dropOver), ...props.rawProps },
5225
+ React.createElement("div", { ...params.eventHandlers, className: css$4.dropArea },
5213
5226
  React.createElement(FlexRow, { size: "24" },
5214
5227
  React.createElement(IconContainer, { icon: ForwardRef, cx: css$4.iconBlue }),
5215
5228
  React.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", cx: css$4.dropCaption }, i18n.fileUpload.labelStart),
5216
5229
  React.createElement(UploadFileToggler, { onFilesAdded: props.onUploadFiles, render: (props) => (React.createElement(RichTextView, null,
5217
- React.createElement(LinkButton, Object.assign({ caption: i18n.fileUpload.browse }, props, { cx: css$4.link })))), accept: props.accept, single: props.single })),
5230
+ React.createElement(LinkButton, { caption: i18n.fileUpload.browse, ...props, cx: css$4.link }))), accept: props.accept, single: props.single })),
5218
5231
  getInfoText)));
5219
5232
  };
5220
5233
  return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
5221
5234
  }
5222
5235
 
5223
- var css$3 = {"uui-typography":"sdgL2t","uuiTypography":"sdgL2t","hero-header":"vUYR-0","heroHeader":"vUYR-0","promo-header":"BZBF-B","promoHeader":"BZBF-B","uui-critical":"soy8vG","uuiCritical":"soy8vG","uui-info":"xKH1-q","uuiInfo":"xKH1-q","uui-success":"lgBSzJ","uuiSuccess":"lgBSzJ","uui-warning":"tUty0Y","uuiWarning":"tUty0Y","uui-highlight":"LVmUfr","uuiHighlight":"LVmUfr","uui-typography-size-12":"O7t1pE","uuiTypographySize12":"O7t1pE","uui-typography-size-14":"BW-QqS","uuiTypographySize14":"BW-QqS","uui-typography-size-16":"o3b0ZZ","uuiTypographySize16":"o3b0ZZ","root":"_1w6HQH","file-name":"XXUE9V","fileName":"XXUE9V","default-color":"tMn2pl","defaultColor":"tMn2pl","doc-color":"Ethh0a","docColor":"Ethh0a","xls-color":"S9oagQ","xlsColor":"S9oagQ","pdf-color":"nqwZvA","pdfColor":"nqwZvA","movie-color":"YY7fY9","movieColor":"YY7fY9","img-color":"wAdJSn","imgColor":"wAdJSn","mov-color":"gl5Dnj","movColor":"gl5Dnj","error-block":"ZtAuIG","errorBlock":"ZtAuIG","icons-block":"IQStmG","iconsBlock":"IQStmG"};
5236
+ var css$3 = {"uui-typography":"i-o-9M","uuiTypography":"i-o-9M","hero-header":"-Gl1sO","heroHeader":"-Gl1sO","promo-header":"gGT8RD","promoHeader":"gGT8RD","uui-critical":"zhJADN","uuiCritical":"zhJADN","uui-info":"ORT7bI","uuiInfo":"ORT7bI","uui-success":"Gzi8-l","uuiSuccess":"Gzi8-l","uui-warning":"_3xQjpr","uuiWarning":"_3xQjpr","uui-highlight":"_60kiI9","uuiHighlight":"_60kiI9","uui-typography-size-12":"dVQO26","uuiTypographySize12":"dVQO26","uui-typography-size-14":"n7wFwa","uuiTypographySize14":"n7wFwa","uui-typography-size-16":"N1krOu","uuiTypographySize16":"N1krOu","root":"qUu7ZU","file-name":"WiU0ph","fileName":"WiU0ph","default-color":"I5UhjC","defaultColor":"I5UhjC","doc-color":"_96KZ3I","docColor":"_96KZ3I","xls-color":"z-n7Ym","xlsColor":"z-n7Ym","pdf-color":"knWl-9","pdfColor":"knWl-9","movie-color":"uauU51","movieColor":"uauU51","img-color":"XmgIYX","imgColor":"XmgIYX","mov-color":"RGIDw2","movColor":"RGIDw2","error-block":"NCZbfx","errorBlock":"NCZbfx","icons-block":"dI5Stv","iconsBlock":"dI5Stv"};
5224
5237
 
5225
- var css$2 = {"root":"lj1LMF"};
5238
+ var css$2 = {"root":"eYf6C-"};
5226
5239
 
5227
5240
  const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
5228
5241
  const outsetRadius = props.size / 2 - 1;
5229
5242
  const insetRadius = props.size / 2 - 3;
5230
5243
  const circumference = insetRadius * Math.PI;
5231
- return (React.createElement("svg", Object.assign({ className: css$2.root, width: props.size, height: props.size, ref: ref }, props.rawProps),
5244
+ return (React.createElement("svg", { className: css$2.root, width: props.size, height: props.size, ref: ref, ...props.rawProps },
5232
5245
  React.createElement("circle", { strokeDasharray: circumference, strokeDashoffset: circumference - (props.progress / 100) * circumference, strokeWidth: insetRadius, fill: "transparent", r: insetRadius / 2, cx: props.size / 2, cy: props.size / 2 }),
5233
5246
  React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
5234
5247
  });
@@ -5273,8 +5286,8 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
5273
5286
  }
5274
5287
  };
5275
5288
  const { cx: componentCx, width, file: { progress, size, name, extension, error, abortXHR, }, onClick, } = props;
5276
- const fileExtension = extension || (name === null || name === void 0 ? void 0 : name.split('.').pop());
5277
- const fileName = name === null || name === void 0 ? void 0 : name.split('.').slice(0, -1).join('');
5289
+ const fileExtension = extension || name?.split('.').pop();
5290
+ const fileName = name?.split('.').slice(0, -1).join('');
5278
5291
  const isLoading = progress < 100;
5279
5292
  const isCrossShow = ((!isLoadingShow && isLoading) || !isLoading) && onClick;
5280
5293
  const mouseLeaveHandler = (e) => {
@@ -5297,12 +5310,12 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
5297
5310
  progress && progress < 100 && abortXHR();
5298
5311
  onClick();
5299
5312
  };
5300
- return (React.createElement(FlexCell, { ref: ref, cx: cx$1(css$3.root, 'uui-file_card', (isLoading || (error === null || error === void 0 ? void 0 : error.isError)) && uuiMod.loading, componentCx, (error === null || error === void 0 ? void 0 : error.isError) && uuiMod.error), minWidth: width, width: !width ? '100%' : undefined },
5313
+ return (React.createElement(FlexCell, { ref: ref, cx: cx$1(css$3.root, 'uui-file_card', (isLoading || error?.isError) && uuiMod.loading, componentCx, error?.isError && uuiMod.error), minWidth: width, width: !width ? '100%' : undefined },
5301
5314
  React.createElement(FlexRow, { size: "36", alignItems: "top", columnGap: "6" },
5302
5315
  fileExtension && getIcon(fileExtension),
5303
5316
  React.createElement(FlexCell, { width: "100%" },
5304
- React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: (progress < 100 || (error === null || error === void 0 ? void 0 : error.isError)) ? 'tertiary' : 'primary', cx: css$3.fileName }, fileName),
5305
- (error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
5317
+ React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: (progress < 100 || error?.isError) ? 'tertiary' : 'primary', cx: css$3.fileName }, fileName),
5318
+ error?.isError ? renderErrorContent() : renderSuccessfulContent()),
5306
5319
  React.createElement("div", { className: cx$1(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
5307
5320
  isLoadingShow && isLoading && React.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
5308
5321
  isCrossShow && React.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
@@ -5350,7 +5363,7 @@ const getErrorPageConfig = () => ({
5350
5363
  },
5351
5364
  });
5352
5365
 
5353
- var css$1 = {"container":"xgn-pi"};
5366
+ var css$1 = {"container":"edU7GL"};
5354
5367
 
5355
5368
  const ErrorPage = (props) => {
5356
5369
  const isMobileScreen = isMobile();
@@ -5359,10 +5372,10 @@ const ErrorPage = (props) => {
5359
5372
  React__default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
5360
5373
  React__default.createElement("div", { className: "uui-error-title" }, props.title),
5361
5374
  React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle),
5362
- (props === null || props === void 0 ? void 0 : props.supportLink) && React__default.createElement("div", { className: "uui-error-support-link" }, props === null || props === void 0 ? void 0 : props.supportLink))));
5375
+ props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
5363
5376
  };
5364
5377
 
5365
- var css = {"recovery-spinner":"IOcJLD","recoverySpinner":"IOcJLD","recovery-message":"_3nkaAx","recoveryMessage":"_3nkaAx","modal-blocker":"Y6rYRM","modalBlocker":"Y6rYRM","modalFadeIn":"S0Ey6J"};
5378
+ var css = {"recovery-spinner":"AT29bs","recoverySpinner":"AT29bs","recovery-message":"_3QYXFN","recoveryMessage":"_3QYXFN","modal-blocker":"z4Kp7l","modalBlocker":"z4Kp7l","modalFadeIn":"CbzFLT"};
5366
5379
 
5367
5380
  function ErrorHandler(props) {
5368
5381
  const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
@@ -5377,7 +5390,7 @@ function ErrorHandler(props) {
5377
5390
  props.onNotificationError(c);
5378
5391
  }
5379
5392
  else {
5380
- uuiNotifications.show((notificationProps) => (React__default.createElement(ErrorNotification, Object.assign({}, notificationProps),
5393
+ uuiNotifications.show((notificationProps) => (React__default.createElement(ErrorNotification, { ...notificationProps },
5381
5394
  React__default.createElement(Text, { size: "36" }, c.responseData && c.responseData.errorMessage))));
5382
5395
  }
5383
5396
  c.dismissError();
@@ -5399,7 +5412,7 @@ function ErrorHandler(props) {
5399
5412
  ".")))))));
5400
5413
  };
5401
5414
  const renderErrorPage = (errorInform) => {
5402
- return React__default.createElement(ErrorPage, Object.assign({ cx: props.cx }, errorInform));
5415
+ return React__default.createElement(ErrorPage, { cx: props.cx, ...errorInform });
5403
5416
  };
5404
5417
  if (errorType === 'error') {
5405
5418
  uuiModals.closeAll();