@epam/uui 5.12.1 → 5.13.1

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
@@ -1,7 +1,7 @@
1
1
  import * as uuiComponents from '@epam/uui-components';
2
2
  import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, DragHandle, Blocker as Blocker$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableCellContainer, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, AdaptivePanel, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
3
3
  export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer } from '@epam/uui-components';
4
- import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
4
+ import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, getDir, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
5
5
  import * as React from 'react';
6
6
  import React__default, { forwardRef, useContext, useRef, useState, useEffect, useReducer, useImperativeHandle, useCallback, useMemo, Fragment } from 'react';
7
7
  import cx from 'classnames';
@@ -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":"_7dibOv","uuiTypography":"_7dibOv","hero-header":"gZIFvf","heroHeader":"gZIFvf","promo-header":"moRTWZ","promoHeader":"moRTWZ","uui-critical":"MLpwgC","uuiCritical":"MLpwgC","uui-info":"pxwMwF","uuiInfo":"pxwMwF","uui-success":"S9TkLF","uuiSuccess":"S9TkLF","uui-warning":"CGEY2C","uuiWarning":"CGEY2C","uui-highlight":"_8G3qW7","uuiHighlight":"_8G3qW7","uui-typography-size-12":"TkLsvK","uuiTypographySize12":"TkLsvK","uui-typography-size-14":"TN1Exh","uuiTypographySize14":"TN1Exh","uui-typography-size-16":"IInzmy","uuiTypographySize16":"IInzmy","root":"MaGedW"};
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":"CskCVP"};
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":"yAjTdB","uuiTypography":"yAjTdB","hero-header":"eiLbdk","heroHeader":"eiLbdk","promo-header":"JxSksD","promoHeader":"JxSksD","uui-critical":"_3wHQBN","uuiCritical":"_3wHQBN","uui-info":"Uo61eA","uuiInfo":"Uo61eA","uui-success":"rDa8-v","uuiSuccess":"rDa8-v","uui-warning":"_6hszJC","uuiWarning":"_6hszJC","uui-highlight":"lp8xIs","uuiHighlight":"lp8xIs","uui-typography-size-12":"fxpzPt","uuiTypographySize12":"fxpzPt","uui-typography-size-14":"_1fIcMa","uuiTypographySize14":"_1fIcMa","uui-typography-size-16":"bGw9xY","uuiTypographySize16":"bGw9xY","root":"_5OaFLf"};
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":"_9eu-hk"};
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":"hAQQr7","uuiTypography":"hAQQr7","hero-header":"vz3CLE","heroHeader":"vz3CLE","promo-header":"u9izqG","promoHeader":"u9izqG","uui-critical":"stlt9a","uuiCritical":"stlt9a","uui-info":"R7oU0T","uuiInfo":"R7oU0T","uui-success":"eh7dnO","uuiSuccess":"eh7dnO","uui-warning":"_4clm04","uuiWarning":"_4clm04","uui-highlight":"_6LU4Yl","uuiHighlight":"_6LU4Yl","uui-typography-size-12":"pVRM0a","uuiTypographySize12":"pVRM0a","uui-typography-size-14":"L2XqCt","uuiTypographySize14":"L2XqCt","uui-typography-size-16":"GSfNBU","uuiTypographySize16":"GSfNBU","root":"PLiTrO","withNotify":"ZBJXWo"};
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":"xEAtNz","uuiTypography":"xEAtNz","hero-header":"hLFQfs","heroHeader":"hLFQfs","promo-header":"odFHXr","promoHeader":"odFHXr","uui-critical":"NFIL60","uuiCritical":"NFIL60","uui-info":"BTczt7","uuiInfo":"BTczt7","uui-success":"xqzoeJ","uuiSuccess":"xqzoeJ","uui-warning":"_7xxfXq","uuiWarning":"_7xxfXq","uui-highlight":"-YuGos","uuiHighlight":"-YuGos","uui-typography-size-12":"fej0KP","uuiTypographySize12":"fej0KP","uui-typography-size-14":"ie1R3W","uuiTypographySize14":"ie1R3W","uui-typography-size-16":"ljUF-F","uuiTypographySize16":"ljUF-F","root":"wDUf0r"};
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":"_1AlAFV","uuiTypography":"_1AlAFV","hero-header":"KOAXOO","heroHeader":"KOAXOO","promo-header":"_6ALMun","promoHeader":"_6ALMun","uui-critical":"fuTPAk","uuiCritical":"fuTPAk","uui-info":"_0jhg4n","uuiInfo":"_0jhg4n","uui-success":"_6h-eyE","uuiSuccess":"_6h-eyE","uui-warning":"dNu1iG","uuiWarning":"dNu1iG","uui-highlight":"f7dy9c","uuiHighlight":"f7dy9c","uui-typography-size-12":"Q8lukU","uuiTypographySize12":"Q8lukU","uui-typography-size-14":"BHb9GG","uuiTypographySize14":"BHb9GG","uui-typography-size-16":"zU0Mbv","uuiTypographySize16":"zU0Mbv","root":"febSRG","mode-cell":"FNtbGw","modeCell":"FNtbGw"};
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":"_8uVoO0","uuiTypography":"_8uVoO0","hero-header":"_5U3YGC","heroHeader":"_5U3YGC","promo-header":"aJr9b-","promoHeader":"aJr9b-","uui-critical":"Yr5VFM","uuiCritical":"Yr5VFM","uui-info":"VEBx6M","uuiInfo":"VEBx6M","uui-success":"VHbuBm","uuiSuccess":"VHbuBm","uui-warning":"iXhVRc","uuiWarning":"iXhVRc","uui-highlight":"_8vVIlz","uuiHighlight":"_8vVIlz","uui-typography-size-12":"ysKNvn","uuiTypographySize12":"ysKNvn","uui-typography-size-14":"Eh-sRw","uuiTypographySize14":"Eh-sRw","uui-typography-size-16":"edXBuN","uuiTypographySize16":"edXBuN","root":"g1-sdZ"};
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":"m5yU-S"};
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":"_7zR6D2","uuiTypography":"_7zR6D2","hero-header":"_6nT9qv","heroHeader":"_6nT9qv","promo-header":"z8E9te","promoHeader":"z8E9te","uui-critical":"EtwonQ","uuiCritical":"EtwonQ","uui-info":"r0U-l-","uuiInfo":"r0U-l-","uui-success":"KnkTH4","uuiSuccess":"KnkTH4","uui-warning":"lzioHg","uuiWarning":"lzioHg","uui-highlight":"kTscpN","uuiHighlight":"kTscpN","uui-typography-size-12":"u5Rxln","uuiTypographySize12":"u5Rxln","uui-typography-size-14":"_6m93Pa","uuiTypographySize14":"_6m93Pa","uui-typography-size-16":"fGaJKo","uuiTypographySize16":"fGaJKo","root":"wHZKXL","mode-form":"-G1W-o","modeForm":"-G1W-o","mode-inline":"L0eVsY","modeInline":"L0eVsY","mode-cell":"iQCtuQ","modeCell":"iQCtuQ"};
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":"wJ5meL"};
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":"-MvPdM","uuiTypography":"-MvPdM","hero-header":"X2IXYc","heroHeader":"X2IXYc","promo-header":"TGF17H","promoHeader":"TGF17H","uui-critical":"IZ0A73","uuiCritical":"IZ0A73","uui-info":"_3CcWb9","uuiInfo":"_3CcWb9","uui-success":"LZ0NNH","uuiSuccess":"LZ0NNH","uui-warning":"dGhl24","uuiWarning":"dGhl24","uui-highlight":"_9CMJ6I","uuiHighlight":"_9CMJ6I","uui-typography-size-12":"_8PlM3T","uuiTypographySize12":"_8PlM3T","uui-typography-size-14":"InVOJB","uuiTypographySize14":"InVOJB","uui-typography-size-16":"tYLRHC","uuiTypographySize16":"tYLRHC","root":"wBW2nC","mode-form":"Is14Gs","modeForm":"Is14Gs","mode-cell":"lTSe5c","modeCell":"lTSe5c"};
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":"evfrb5","uuiTypography":"evfrb5","hero-header":"_60uAzc","heroHeader":"_60uAzc","promo-header":"_9Gi--9","promoHeader":"_9Gi--9","uui-critical":"x3LG07","uuiCritical":"x3LG07","uui-info":"_4yuSUY","uuiInfo":"_4yuSUY","uui-success":"-NW5Xh","uuiSuccess":"-NW5Xh","uui-warning":"_0C0-Lq","uuiWarning":"_0C0-Lq","uui-highlight":"_89FZBw","uuiHighlight":"_89FZBw","uui-typography-size-12":"_4HY-tm","uuiTypographySize12":"_4HY-tm","uui-typography-size-14":"hLGEO8","uuiTypographySize14":"hLGEO8","uui-typography-size-16":"G0svc9","uuiTypographySize16":"G0svc9","root":"Uf-VvI","mode-form":"_5LiuSX","modeForm":"_5LiuSX","mode-cell":"VYPIYv","modeCell":"VYPIYv","mode-inline":"dsfAlY","modeInline":"dsfAlY"};
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":"RaWhd7","uuiTypography":"RaWhd7","hero-header":"nh86TR","heroHeader":"nh86TR","promo-header":"r5a-Ck","promoHeader":"r5a-Ck","uui-critical":"tZq3RN","uuiCritical":"tZq3RN","uui-info":"Wlc3cw","uuiInfo":"Wlc3cw","uui-success":"i0NuZD","uuiSuccess":"i0NuZD","uui-warning":"BqSxNq","uuiWarning":"BqSxNq","uui-highlight":"_2B9gEO","uuiHighlight":"_2B9gEO","uui-typography-size-12":"pbQEMF","uuiTypographySize12":"pbQEMF","uui-typography-size-14":"fZHeuG","uuiTypographySize14":"fZHeuG","uui-typography-size-16":"qqsJMo","uuiTypographySize16":"qqsJMo","root":"-GBCsp","main-path":"domvef","mainPath":"domvef","content-wrapper":"_2ZPPjg","contentWrapper":"_2ZPPjg","content":"xQKfV-","action-wrapper":"pPUonS","actionWrapper":"pPUonS","icon-wrapper":"p0UYKj","iconWrapper":"p0UYKj","icon":"ahF-TW","close-icon":"H4yNd9","closeIcon":"H4yNd9"};
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":"dK8qJe"};
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":"_6SAVBf","uuiTypography":"_6SAVBf","hero-header":"lBRI1A","heroHeader":"lBRI1A","promo-header":"cPyLf8","promoHeader":"cPyLf8","uui-critical":"leyaXM","uuiCritical":"leyaXM","uui-info":"_7GGF1f","uuiInfo":"_7GGF1f","uui-success":"K5TYKc","uuiSuccess":"K5TYKc","uui-warning":"_8P-jBG","uuiWarning":"_8P-jBG","uui-highlight":"_3-7Fc1","uuiHighlight":"_3-7Fc1","uui-typography-size-12":"gpTvUH","uuiTypographySize12":"gpTvUH","uui-typography-size-14":"_2w6tQ0","uuiTypographySize14":"_2w6tQ0","uui-typography-size-16":"_3p8JTb","uuiTypographySize16":"_3p8JTb","submenu-root-item-rtl":"-xE6Bc","submenuRootItemRtl":"-xE6Bc","icon-after":"Niwriw","iconAfter":"Niwriw","submenu-root-item":"tqWplg","submenuRootItem":"tqWplg","icon-check":"f7-k8O","iconCheck":"f7-k8O","splitter-root":"FN7VYl","splitterRoot":"FN7VYl","splitter":"PJ-DqM","header-root":"_2t0vXM","headerRoot":"_2t0vXM","item-root":"qwbSrg","itemRoot":"qwbSrg","icon":"uhubnI","link":"LqGoBn","indent":"UW-cv3","selected-mark":"HXNIDX","selectedMark":"HXNIDX"};
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);
@@ -1089,6 +1058,10 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
1089
1058
  }
1090
1059
  else if (event.key === IDropdownControlKeys.ENTER && onClick) {
1091
1060
  onClick(event);
1061
+ // Fix bug when click event is triggered after Enter key.
1062
+ // Tricky case when modal window is opened from dropdown menu and click on modal header cross is triggered, that leads to modal close.
1063
+ // https://github.com/epam/UUI/issues/2754
1064
+ event.preventDefault();
1092
1065
  }
1093
1066
  };
1094
1067
  const getMenuButtonContent = () => {
@@ -1139,11 +1112,8 @@ function DropdownSubMenu(props) {
1139
1112
  },
1140
1113
  },
1141
1114
  ];
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
- } }));
1115
+ const isRtl = getDir() === 'rtl';
1116
+ 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
1117
  }
1148
1118
  function DropdownMenuSwitchButton(props) {
1149
1119
  const context = useContext(UuiContext);
@@ -1166,7 +1136,7 @@ function DropdownMenuSwitchButton(props) {
1166
1136
  React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
1167
1137
  }
1168
1138
 
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"};
1139
+ var css$1j = {"uui-typography":"n2q1ix","uuiTypography":"n2q1ix","hero-header":"rkiAC6","heroHeader":"rkiAC6","promo-header":"BrL22Y","promoHeader":"BrL22Y","uui-critical":"hv0E1f","uuiCritical":"hv0E1f","uui-info":"akPG0b","uuiInfo":"akPG0b","uui-success":"MU69Q1","uuiSuccess":"MU69Q1","uui-warning":"g6so0E","uuiWarning":"g6so0E","uui-highlight":"k4dxEs","uuiHighlight":"k4dxEs","uui-typography-size-12":"tTD7mY","uuiTypographySize12":"tTD7mY","uui-typography-size-14":"DI6oWK","uuiTypographySize14":"DI6oWK","uui-typography-size-16":"wYjijH","uuiTypographySize16":"wYjijH","root":"Aj-P3r","mode-block":"GbKe8u","modeBlock":"GbKe8u","mode-inline":"oBRzeS","modeInline":"oBRzeS","padding-0":"nP2eBw","padding0":"nP2eBw","padding-6":"RECw5j","padding6":"RECw5j","padding-12":"Erpled","padding12":"Erpled","padding-18":"CfAnBc","padding18":"CfAnBc"};
1170
1140
 
1171
1141
  function applyAccordionMods(mods) {
1172
1142
  return [
@@ -1179,7 +1149,7 @@ const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordio
1179
1149
  dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
1180
1150
  }));
1181
1151
 
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"};
1152
+ var css$1i = {"uui-typography":"pp171X","uuiTypography":"pp171X","hero-header":"DMIhf0","heroHeader":"DMIhf0","promo-header":"msEITN","promoHeader":"msEITN","uui-critical":"AFDNiD","uuiCritical":"AFDNiD","uui-info":"i-9LNu","uuiInfo":"i-9LNu","uui-success":"yuI4De","uuiSuccess":"yuI4De","uui-warning":"S-aCNz","uuiWarning":"S-aCNz","uui-highlight":"DvCvNo","uuiHighlight":"DvCvNo","uui-typography-size-12":"pgy5S2","uuiTypographySize12":"pgy5S2","uui-typography-size-14":"PTkTVo","uuiTypographySize14":"PTkTVo","uui-typography-size-16":"ic2gis","uuiTypographySize16":"ic2gis","root":"sf8CGw","border-top":"AaxVnt","borderTop":"AaxVnt","border-bottom":"_8iSQRp","borderBottom":"_8iSQRp","top-shadow":"bE-pYh","topShadow":"bE-pYh","padding-6":"EUJtSo","padding6":"EUJtSo","padding-12":"fv2ERD","padding12":"fv2ERD","padding-18":"LT2Hnf","padding18":"LT2Hnf","padding-24":"EqM29k","padding24":"EqM29k","margin-24":"cDwiYs","margin24":"cDwiYs","margin-12":"QoTMlS","margin12":"QoTMlS","vPadding-12":"zAclLQ","vPadding12":"zAclLQ","vPadding-18":"By9D4e","vPadding18":"By9D4e","vPadding-24":"F5xSC-","vPadding24":"F5xSC-","vPadding-36":"dzKwku","vPadding36":"dzKwku","vPadding-48":"xqzxN6","vPadding48":"xqzxN6","spacing-6":"lZ3ljx","spacing6":"lZ3ljx","spacing-12":"qcG-ga","spacing12":"qcG-ga","spacing-18":"_0ccNe4","spacing18":"_0ccNe4","uui-surface-main":"niMg78","uuiSurfaceMain":"niMg78"};
1183
1153
 
1184
1154
  const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1i.flexCell]);
1185
1155
 
@@ -1203,7 +1173,7 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
1203
1173
  ];
1204
1174
  });
1205
1175
 
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"};
1176
+ var css$1h = {"root":"_4ir-Sd","margin-24":"CY630Z","margin24":"CY630Z","padding-12":"lY6v2K","padding12":"lY6v2K","padding-24":"_4JJWS1","padding24":"_4JJWS1","shadow":"PDmmV-","uui-surface-main":"vL-N-K","uuiSurfaceMain":"vL-N-K"};
1207
1177
 
1208
1178
  const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
1209
1179
  'uui-panel',
@@ -1213,7 +1183,7 @@ const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
1213
1183
  props.background && css$1h[`uui-${props.background}`],
1214
1184
  ]);
1215
1185
 
1216
- var css$1g = {"root":"wm-vzD"};
1186
+ var css$1g = {"root":"lnDOTK"};
1217
1187
 
1218
1188
  function applyTooltipMods(mods) {
1219
1189
  return [
@@ -1223,7 +1193,7 @@ function applyTooltipMods(mods) {
1223
1193
  }
1224
1194
  const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
1225
1195
 
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"};
1196
+ var css$1f = {"uui-typography":"_4xjaed","uuiTypography":"_4xjaed","hero-header":"vwPB7G","heroHeader":"vwPB7G","promo-header":"kp7Lw2","promoHeader":"kp7Lw2","uui-critical":"_2YbrOx","uuiCritical":"_2YbrOx","uui-info":"rFQfJK","uuiInfo":"rFQfJK","uui-success":"tSEss0","uuiSuccess":"tSEss0","uui-warning":"sE1ohF","uuiWarning":"sE1ohF","uui-highlight":"EwevZg","uuiHighlight":"EwevZg","uui-typography-size-12":"XOJDCB","uuiTypographySize12":"XOJDCB","uui-typography-size-14":"IhBu0o","uuiTypographySize14":"IhBu0o","uui-typography-size-16":"bo43Q6","uuiTypographySize16":"bo43Q6","root":"TmqS92"};
1227
1197
 
1228
1198
  function applyLabeledInputMods(mods) {
1229
1199
  return [
@@ -1237,7 +1207,7 @@ const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLa
1237
1207
  infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
1238
1208
  }));
1239
1209
 
1240
- var css$1e = {"root":"F53N3m"};
1210
+ var css$1e = {"root":"_5fYq2b"};
1241
1211
 
1242
1212
  function RadioGroup(props) {
1243
1213
  const direction = props.direction || 'vertical';
@@ -1246,13 +1216,13 @@ function RadioGroup(props) {
1246
1216
  props.onValueChange(newVal);
1247
1217
  }
1248
1218
  };
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)));
1219
+ 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) => {
1220
+ const { id, name, renderName, ...restItemProps } = i;
1221
+ 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
1222
  })));
1253
1223
  }
1254
1224
 
1255
- var css$1d = {"root":"gOBBB1"};
1225
+ var css$1d = {"root":"BcC8q-"};
1256
1226
 
1257
1227
  function applyScrollBarsMods() {
1258
1228
  return [
@@ -1261,13 +1231,13 @@ function applyScrollBarsMods() {
1261
1231
  }
1262
1232
  const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
1263
1233
 
1264
- var css$1c = {"scroll-container":"geAXsC","scrollContainer":"geAXsC","list-container":"N7Y-0F","listContainer":"N7Y-0F"};
1234
+ var css$1c = {"scroll-container":"jmgO1M","scrollContainer":"jmgO1M","list-container":"bxUvkw","listContainer":"bxUvkw"};
1265
1235
 
1266
- var css$1b = {"root":"_4pk5NY"};
1236
+ var css$1b = {"root":"VY3sn2"};
1267
1237
 
1268
1238
  const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
1269
1239
 
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"};
1240
+ var css$1a = {"uui-typography":"xIlPVQ","uuiTypography":"xIlPVQ","hero-header":"MzZCK1","heroHeader":"MzZCK1","promo-header":"hbKsWN","promoHeader":"hbKsWN","uui-critical":"b-nnwg","uuiCritical":"b-nnwg","uui-info":"_98ZbRH","uuiInfo":"_98ZbRH","uui-success":"FtDqz3","uuiSuccess":"FtDqz3","uui-warning":"allxpt","uuiWarning":"allxpt","uui-highlight":"lVjaZg","uuiHighlight":"lVjaZg","uui-typography-size-12":"xE6yc7","uuiTypographySize12":"xE6yc7","uui-typography-size-14":"jBKr0r","uuiTypographySize14":"jBKr0r","uui-typography-size-16":"_800qeG","uuiTypographySize16":"_800qeG","root":"e6wCXG"};
1271
1241
 
1272
1242
  const DEFAULT_FILL = 'solid';
1273
1243
  function applyBadgeMods(mods) {
@@ -1282,7 +1252,11 @@ function applyBadgeMods(mods) {
1282
1252
  const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1283
1253
  const styles = [applyBadgeMods(props), props.cx];
1284
1254
  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 }),
1255
+ return (React__default.createElement(Clickable, { ...props, rawProps: {
1256
+ 'aria-haspopup': props.isDropdown,
1257
+ 'aria-expanded': props.isOpen,
1258
+ ...props.rawProps,
1259
+ }, cx: styles, ref: ref },
1286
1260
  (props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
1287
1261
  props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
1288
1262
  props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
@@ -1291,7 +1265,7 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1291
1265
  props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
1292
1266
  });
1293
1267
 
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"};
1268
+ var css$19 = {"uui-typography":"wq4ucq","uuiTypography":"wq4ucq","hero-header":"KqwlHI","heroHeader":"KqwlHI","promo-header":"LTLeKb","promoHeader":"LTLeKb","uui-critical":"_07E-pu","uuiCritical":"_07E-pu","uui-info":"J3LXbi","uuiInfo":"J3LXbi","uui-success":"LgKXpt","uuiSuccess":"LgKXpt","uui-warning":"_2kGhrB","uuiWarning":"_2kGhrB","uui-highlight":"wdGk3P","uuiHighlight":"wdGk3P","uui-typography-size-12":"sd3cvI","uuiTypographySize12":"sd3cvI","uui-typography-size-14":"rVHw-0","uuiTypographySize14":"rVHw-0","uui-typography-size-16":"wywUg7","uuiTypographySize16":"wywUg7","root":"oJXgnE"};
1295
1269
 
1296
1270
  function applyTagMods(props) {
1297
1271
  return [
@@ -1306,7 +1280,11 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1306
1280
  const styles = [applyTagMods(props), props.cx];
1307
1281
  const ClearIcon = props.clearIcon ? props.clearIcon : systemIcons.clear;
1308
1282
  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 }),
1283
+ return (React__default.createElement(Clickable, { ...props, rawProps: {
1284
+ 'aria-haspopup': props.isDropdown,
1285
+ 'aria-expanded': props.isOpen,
1286
+ ...props.rawProps,
1287
+ }, cx: styles, ref: ref },
1310
1288
  props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
1311
1289
  props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
1312
1290
  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 +1293,7 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1315
1293
  props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
1316
1294
  });
1317
1295
 
1318
- var css$18 = {"root":"CS-CbB","uui-spinner":"P8ZWTq","uuiSpinner":"P8ZWTq"};
1296
+ var css$18 = {"root":"_5cQV3h","uui-spinner":"HICEMs","uuiSpinner":"HICEMs"};
1319
1297
 
1320
1298
  function applySpinnerMods() {
1321
1299
  return [css$18.root, 'uui-spinner'];
@@ -1352,31 +1330,31 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
1352
1330
  };
1353
1331
  var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
1354
1332
 
1355
- var css$17 = {"root":"_8LG5wp","page":"CMYWrc","spacer":"_7Uk5Rg","mode-ghost":"_7a-IGm","modeGhost":"_7a-IGm"};
1333
+ var css$17 = {"root":"rfZ1MR","page":"iaPjDd","spacer":"dhT8Rd","mode-ghost":"HXewTQ","modeGhost":"HXewTQ"};
1356
1334
 
1357
1335
  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),
1336
+ 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
1337
  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
1338
  params.pages.map((page, index) => {
1361
1339
  if (page.type === 'spacer') {
1362
1340
  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
1341
  }
1364
1342
  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 }));
1343
+ 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
1344
  }
1367
1345
  }),
1368
1346
  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 }));
1347
+ return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
1370
1348
  }
1371
1349
 
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"};
1350
+ var css$16 = {"root":"L8W6Et","progress-bar":"ey-Qki","progressBar":"ey-Qki","progressBar-indeterminate":"bGc9Dj","progressBarIndeterminate":"bGc9Dj","size-12":"-P49J8","size12":"-P49J8","size-18":"Fff-59","size18":"Fff-59","size-24":"X7MK5L","size24":"X7MK5L"};
1373
1351
 
1374
1352
  const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
1375
1353
  return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
1376
1354
  React.createElement("div", { className: cx(css$16.progressBar) })));
1377
1355
  });
1378
1356
 
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"};
1357
+ var css$15 = {"root":"dm6Lsw","striped":"QToOI8","animate-stripes":"RZ-aJ6","animateStripes":"RZ-aJ6","size-12":"lIzCJ3","size12":"lIzCJ3","size-18":"m5OxAN","size18":"m5OxAN","size-24":"_8csY9n","size24":"_8csY9n"};
1380
1358
 
1381
1359
  const DEFAULT_SIZE = '12';
1382
1360
  function applyProgressBarMods(mods) {
@@ -1391,14 +1369,14 @@ const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProg
1391
1369
  hideLabel: props.hideLabel || props.striped,
1392
1370
  }));
1393
1371
 
1394
- var css$14 = {"root":"Gom-7C"};
1372
+ var css$14 = {"root":"Mx4t5x"};
1395
1373
 
1396
1374
  const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
1397
1375
  const { progress } = props;
1398
1376
  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
1377
  });
1400
1378
 
1401
- var css$13 = {"root":"am-1v4"};
1379
+ var css$13 = {"root":"jSRuJE"};
1402
1380
 
1403
1381
  const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
1404
1382
  return (React__default.createElement("div", { ref: ref, className: cx([
@@ -1413,10 +1391,9 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
1413
1391
  React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
1414
1392
  });
1415
1393
 
1416
- var css$12 = {"drag-handle":"_3vRPHF","dragHandle":"_3vRPHF","icon-container":"b1Q5g0","iconContainer":"b1Q5g0"};
1394
+ var css$12 = {"drag-handle":"kGciVq","dragHandle":"kGciVq","icon-container":"K6hEge","iconContainer":"K6hEge"};
1417
1395
 
1418
1396
  function DataRowAddons(props) {
1419
- var _a, _b;
1420
1397
  const row = props.rowProps;
1421
1398
  const getIndent = () => {
1422
1399
  return (row.indent - 1) * (settings.sizes.rowAddons.indentUnit[props.size] || settings.sizes.rowAddons.defaults.indentUnit);
@@ -1425,8 +1402,8 @@ function DataRowAddons(props) {
1425
1402
  return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
1426
1403
  };
1427
1404
  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 })),
1405
+ row.dnd?.srcData && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
1406
+ 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
1407
  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
1408
  'aria-label': row.isFolded ? 'Unfold' : 'Fold',
1432
1409
  role: 'button',
@@ -1435,7 +1412,7 @@ function DataRowAddons(props) {
1435
1412
  ], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
1436
1413
  }
1437
1414
 
1438
- var css$11 = {"root":"_5xd8tX"};
1415
+ var css$11 = {"root":"gGlBtQ"};
1439
1416
 
1440
1417
  const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
1441
1418
 
@@ -1449,17 +1426,13 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
1449
1426
  });
1450
1427
  React.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
1451
1428
  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
- };
1429
+ const renderRows = () => props.renderRows?.({
1430
+ listContainerRef, estimatedHeight, offsetY, scrollShadows,
1431
+ }) || (React.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
1432
+ React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
1459
1433
  const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
1460
1434
  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))
1435
+ if (!scrollbars?.container?.firstChild)
1463
1436
  return;
1464
1437
  scrollContainerRef.current = scrollbars.container.firstChild;
1465
1438
  }, []);
@@ -1472,11 +1445,20 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
1472
1445
  });
1473
1446
  const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
1474
1447
  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),
1448
+ React.createElement("div", { ...props.rawProps, style: {
1449
+ ...props.style,
1450
+ position: 'relative',
1451
+ flex: '1 1 auto',
1452
+ display: 'flex',
1453
+ flexDirection: 'column',
1454
+ overflow: props.isLoading ? 'hidden' : 'scroll',
1455
+ marginRight: props.isLoading ? 0 : props.style.marginRight,
1456
+ marginBottom: props.isLoading ? 0 : props.style.marginBottom,
1457
+ }, ref: ref }, props.children),
1476
1458
  React.createElement(Blocker, { isEnabled: props.isLoading })));
1477
1459
  });
1478
1460
 
1479
- var css$10 = {"root":"p28nrp"};
1461
+ var css$10 = {"root":"iIWMH2"};
1480
1462
 
1481
1463
  function CheckboxGroup(props) {
1482
1464
  const currentValue = props.value || [];
@@ -1492,13 +1474,13 @@ function CheckboxGroup(props) {
1492
1474
  }
1493
1475
  props.onValueChange(newSelection);
1494
1476
  };
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)));
1477
+ return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$10.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
1478
+ const { id, name, renderName, ...restItemProps } = i;
1479
+ 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
1480
  })));
1499
1481
  }
1500
1482
 
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"};
1483
+ var css$$ = {"uui-typography":"PcJCQU","uuiTypography":"PcJCQU","hero-header":"_2dspKn","heroHeader":"_2dspKn","promo-header":"e-MPJs","promoHeader":"e-MPJs","uui-critical":"Si06V4","uuiCritical":"Si06V4","uui-info":"iGFaU5","uuiInfo":"iGFaU5","uui-success":"lmdfBL","uuiSuccess":"lmdfBL","uui-warning":"i6Sy--","uuiWarning":"i6Sy--","uui-highlight":"twJORj","uuiHighlight":"twJORj","uui-typography-size-12":"HGWqh6","uuiTypographySize12":"HGWqh6","uui-typography-size-14":"R1PDhL","uuiTypographySize14":"R1PDhL","uui-typography-size-16":"GQzO78","uuiTypographySize16":"GQzO78","root":"zGnbSN","modal-blocker":"geWQuv","modalBlocker":"geWQuv","animateModalBlocker":"XwnSN7","modal":"XN51uG","modal-footer":"hEzuvJ","modalFooter":"hEzuvJ","modal-header":"_3vMpLJ","modalHeader":"_3vMpLJ"};
1502
1484
 
1503
1485
  const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$$.modalBlocker]);
1504
1486
  const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, css$$.modal], (props) => {
@@ -1506,9 +1488,12 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, cs
1506
1488
  const height = props.height || 'auto';
1507
1489
  const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
1508
1490
  return {
1509
- style: Object.assign(Object.assign({}, props.style), { width,
1491
+ style: {
1492
+ ...props.style,
1493
+ width,
1510
1494
  height,
1511
- maxHeight }),
1495
+ maxHeight,
1496
+ },
1512
1497
  };
1513
1498
  });
1514
1499
  class ModalHeader extends React__default.Component {
@@ -1531,27 +1516,33 @@ class ModalFooter extends React__default.Component {
1531
1516
  }
1532
1517
  }
1533
1518
 
1534
- const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { dataPickerBody: {
1519
+ const TREE_SHAKEABLE_INIT = () => ({
1520
+ ...i18n$1,
1521
+ dataPickerBody: {
1535
1522
  searchPlaceholder: 'Search',
1536
1523
  noRecordsMessage: 'No records found',
1537
1524
  noRecordsSubTitle: 'Check your spelling, or search for a different keyword',
1538
1525
  typeSearchToLoadMessage: 'Type search to load items',
1539
- }, pickerModal: {
1526
+ },
1527
+ pickerModal: {
1540
1528
  headerTitle: 'Please select',
1541
1529
  searchPlaceholder: 'Type text for quick search',
1542
1530
  cancelButton: 'Cancel',
1543
1531
  selectButton: 'Select',
1544
1532
  clearAllButton: 'CLEAR ALL',
1545
1533
  selectAllButton: 'SELECT ALL',
1546
- }, pickerInput: {
1534
+ },
1535
+ pickerInput: {
1547
1536
  showOnlySelectedLabel: 'Show only selected',
1548
1537
  clearSelectionButton: 'CLEAR ALL',
1549
1538
  clearSelectionButtonSingle: 'CLEAR',
1550
1539
  selectAllButton: 'SELECT ALL',
1551
1540
  doneButton: 'DONE',
1552
- }, notificationCard: {
1541
+ },
1542
+ notificationCard: {
1553
1543
  closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
1554
- }, form: {
1544
+ },
1545
+ form: {
1555
1546
  notifications: {
1556
1547
  actionButtonCaption: 'Restore',
1557
1548
  unsavedChangesMessage: 'You have unsaved changes. Click Restore button if you would like to recover the data',
@@ -1561,10 +1552,12 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1561
1552
  discardButton: 'Discard',
1562
1553
  saveButton: 'Save',
1563
1554
  },
1564
- }, rangeDatePicker: {
1555
+ },
1556
+ rangeDatePicker: {
1565
1557
  pickerPlaceholderFrom: 'From:',
1566
1558
  pickerPlaceholderTo: 'To:',
1567
- }, tables: {
1559
+ },
1560
+ tables: {
1568
1561
  noResultsBlock: {
1569
1562
  title: 'No results found',
1570
1563
  message: 'We can’t find any item matching your request',
@@ -1598,10 +1591,12 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1598
1591
  collapseAllTooltip: 'Collapse All',
1599
1592
  expandAllTooltip: 'Expand All',
1600
1593
  },
1601
- }, pickerFilterHeader: {
1594
+ },
1595
+ pickerFilterHeader: {
1602
1596
  sortAscending: 'Sort Ascending',
1603
1597
  sortDescending: 'Sort Descending',
1604
- }, filterToolbar: {
1598
+ },
1599
+ filterToolbar: {
1605
1600
  addCaption: 'Add filter',
1606
1601
  datePicker: {
1607
1602
  placeholder: 'Select date',
@@ -1616,19 +1611,24 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1616
1611
  pickerInput: {
1617
1612
  itemsPlaceholder: 'items',
1618
1613
  },
1619
- }, presetPanel: {
1614
+ },
1615
+ presetPanel: {
1620
1616
  addCaption: 'Add Preset',
1621
- }, confirmationModal: {
1617
+ },
1618
+ confirmationModal: {
1622
1619
  discardButton: 'Discard',
1623
1620
  saveButton: 'Save',
1624
- }, fileUpload: {
1621
+ },
1622
+ fileUpload: {
1625
1623
  labelStart: 'Drop files to attach or',
1626
1624
  browse: 'browse',
1627
1625
  labelEnd: 'your local files',
1628
- }, fileCard: {
1626
+ },
1627
+ fileCard: {
1629
1628
  fileSizeProgress: ' of ',
1630
1629
  failedUploadErrorMessage: 'Upload failed',
1631
- }, errorHandler: {
1630
+ },
1631
+ errorHandler: {
1632
1632
  errorPageConfig: {
1633
1633
  notFound: {
1634
1634
  title: 'Oooops! We couldn’t find this page',
@@ -1670,7 +1670,8 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
1670
1670
  },
1671
1671
  },
1672
1672
  supportMessage: undefined,
1673
- } }));
1673
+ },
1674
+ });
1674
1675
  const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
1675
1676
 
1676
1677
  var _path$u;
@@ -1688,42 +1689,40 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
1688
1689
  };
1689
1690
  var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
1690
1691
 
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"};
1692
+ var css$_ = {"uui-typography":"CZAYFo","uuiTypography":"CZAYFo","hero-header":"BxKsc3","heroHeader":"BxKsc3","promo-header":"aQFW-U","promoHeader":"aQFW-U","uui-critical":"x8nMNl","uuiCritical":"x8nMNl","uui-info":"DC9aFq","uuiInfo":"DC9aFq","uui-success":"eolrUt","uuiSuccess":"eolrUt","uui-warning":"_8JmCho","uuiWarning":"_8JmCho","uui-highlight":"_7RuEUp","uuiHighlight":"_7RuEUp","uui-typography-size-12":"Ym1GH0","uuiTypographySize12":"Ym1GH0","uui-typography-size-14":"tCyaZ7","uuiTypographySize14":"tCyaZ7","uui-typography-size-16":"iyvxZb","uuiTypographySize16":"iyvxZb","root":"xvCO-c","icon-wrapper":"tPCcOO","iconWrapper":"tPCcOO","action-wrapper":"-RHRAY","actionWrapper":"-RHRAY","action-link":"_3Km2iv","actionLink":"_3Km2iv","close-icon":"BYkV9j","closeIcon":"BYkV9j","main-path":"_747uoN","mainPath":"_747uoN","content":"uCUgt3","close-wrapper":"qn3-6x","closeWrapper":"qn3-6x","notification-wrapper":"y40bAg","notificationWrapper":"y40bAg","clear-button":"C40jGK","clearButton":"C40jGK"};
1692
1693
 
1693
1694
  const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
1694
1695
  const notificationCardNode = React__default.useRef(null);
1695
1696
  React__default.useImperativeHandle(ref, () => notificationCardNode.current, [notificationCardNode.current]);
1696
1697
  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);
1698
+ notificationCardNode.current?.addEventListener('mouseenter', props.clearTimer);
1699
+ notificationCardNode.current?.addEventListener('mouseleave', props.refreshTimer);
1700
1700
  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);
1701
+ notificationCardNode.current?.removeEventListener('mouseenter', props.clearTimer);
1702
+ notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
1704
1703
  };
1705
1704
  }, []);
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),
1705
+ 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
1706
  React__default.createElement("div", { className: css$_.mainPath },
1708
1707
  props.icon && (React__default.createElement("div", { className: css$_.iconWrapper },
1709
1708
  React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
1710
1709
  React__default.createElement("div", { className: css$_.content },
1711
1710
  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 })))))),
1711
+ 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
1712
  props.onClose && (React__default.createElement("div", { className: css$_.closeWrapper },
1714
1713
  React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
1715
1714
  });
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 }))));
1715
+ const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$z, color: "warning", ...props, ref: ref, cx: props.cx })));
1716
+ const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$A, color: "success", ...props, ref: ref, cx: props.cx })));
1717
+ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$u, color: "info", ...props, ref: ref, cx: props.cx })));
1718
+ const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: ForwardRef$y, color: "error", ...props, ref: ref, cx: props.cx })));
1720
1719
  function ClearNotification() {
1721
1720
  const uuiCtx = useUuiContext();
1722
1721
  return (React__default.createElement("div", { className: cx(css$_.notificationWrapper, css$_.clearButton) },
1723
1722
  React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
1724
1723
  }
1725
1724
 
1726
- var css$Z = {"footer":"f3nmaV"};
1725
+ var css$Z = {"footer":"_4kWTPD"};
1727
1726
 
1728
1727
  class ConfirmationModal extends React.Component {
1729
1728
  render() {
@@ -1731,7 +1730,7 @@ class ConfirmationModal extends React.Component {
1731
1730
  if (this.props.bodyContent) {
1732
1731
  bodyContent = React.createElement(Panel, { background: "surface-main", margin: "24" }, this.props.bodyContent);
1733
1732
  }
1734
- return (React.createElement(ModalBlocker, Object.assign({}, this.props),
1733
+ return (React.createElement(ModalBlocker, { ...this.props },
1735
1734
  React.createElement(ModalWindow, { width: 420 },
1736
1735
  React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
1737
1736
  React.createElement(ScrollBars, null, bodyContent),
@@ -1765,7 +1764,7 @@ function useReliableForceUpdate() {
1765
1764
  return red[1];
1766
1765
  }
1767
1766
 
1768
- var css$Y = {"root":"KUuvbE","timepicker-input":"KFsYKm","timepickerInput":"KFsYKm","ltr-always":"_5shvGB","ltrAlways":"_5shvGB"};
1767
+ var css$Y = {"root":"_4RM2CO","timepicker-input":"_1QeGxW","timepickerInput":"_1QeGxW","ltr-always":"panouP","ltrAlways":"panouP"};
1769
1768
 
1770
1769
  const uuiTimePicker = {
1771
1770
  container: 'uui-timepicker-container',
@@ -1804,7 +1803,7 @@ function TimePickerBody(props) {
1804
1803
  const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
1805
1804
  onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
1806
1805
  };
1807
- return (React.createElement("div", Object.assign({ className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
1806
+ return (React.createElement("div", { className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
1808
1807
  React.createElement("div", { className: css$Y.ltrAlways },
1809
1808
  React.createElement("div", { className: uuiTimePicker.elementContainer },
1810
1809
  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 +1885,11 @@ function TimePicker(props) {
1886
1885
  useEffect(() => {
1887
1886
  if (valueToTimeString(props.value, props.format) !== state.value) {
1888
1887
  const stringValue = valueToTimeString(props.value, props.format);
1889
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: stringValue, inputValue: stringValue })));
1888
+ setState((prevState) => ({
1889
+ ...prevState,
1890
+ value: stringValue,
1891
+ inputValue: stringValue,
1892
+ }));
1890
1893
  }
1891
1894
  }, [props.value, props.format]);
1892
1895
  const getFormat = () => props.format === 24 ? 'HH:mm' : 'hh:mm A';
@@ -1902,10 +1905,10 @@ function TimePicker(props) {
1902
1905
  props.onValueChange(null);
1903
1906
  };
1904
1907
  const onToggle = (value) => {
1905
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { isOpen: value })));
1908
+ setState((prevState) => ({ ...prevState, isOpen: value }));
1906
1909
  };
1907
1910
  const saveTime = (newTime) => {
1908
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { inputValue: newTime })));
1911
+ setState((prevState) => ({ ...prevState, inputValue: newTime }));
1909
1912
  props.onValueChange(formatStringTimeToObject(newTime));
1910
1913
  };
1911
1914
  const getTimeFromInputValue = (newValue) => {
@@ -1920,45 +1923,41 @@ function TimePicker(props) {
1920
1923
  saveTime(inputValue);
1921
1924
  };
1922
1925
  const handleFocus = (e) => {
1923
- var _a;
1924
1926
  onToggle(true);
1925
- (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, e);
1927
+ props.onFocus?.(e);
1926
1928
  };
1927
1929
  const handleInputChange = (newValue) => {
1928
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { inputValue: newValue })));
1930
+ setState((prevState) => ({ ...prevState, inputValue: newValue }));
1929
1931
  if (newValue) {
1930
1932
  const result = getTimeFromInputValue(newValue);
1931
1933
  if (isTimeValid(result)) {
1932
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: result })));
1934
+ setState((prevState) => ({ ...prevState, value: result }));
1933
1935
  }
1934
1936
  }
1935
1937
  };
1936
1938
  const handleBlur = (e) => {
1937
- var _a;
1938
1939
  if (isFocusReceiverInsideFocusLock(e))
1939
1940
  return;
1940
1941
  onToggle(false);
1941
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
1942
+ props.onBlur?.(e);
1942
1943
  if (state.value === '' || state.inputValue === '') {
1943
1944
  props.onValueChange(null);
1944
- setState((prevState) => (Object.assign(Object.assign({}, prevState), { value: null, inputValue: null })));
1945
+ setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
1945
1946
  }
1946
1947
  state.value && state.inputValue && saveTime(state.value);
1947
1948
  };
1948
1949
  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 })));
1950
+ 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
1951
  };
1952
1952
  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 })))));
1953
+ const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
1954
+ return (!props.isDisabled && !props.isReadonly && (React__default.createElement(DropdownContainer, { ...bodyProps, focusLock: false },
1955
+ React__default.createElement(TimePickerBody, { ...timePickerBodyProps, onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: props.rawProps?.body, cx: props.bodyCx }))));
1957
1956
  };
1958
1957
  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
1958
  }
1960
1959
 
1961
- var css$X = {"root":"OMj525"};
1960
+ var css$X = {"root":"gL1sKD"};
1962
1961
 
1963
1962
  function applyInputAddonMods() {
1964
1963
  return [
@@ -1967,7 +1966,7 @@ function applyInputAddonMods() {
1967
1966
  }
1968
1967
  const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
1969
1968
 
1970
- var css$W = {"root":"xZsJEr"};
1969
+ var css$W = {"root":"fxU8Fs"};
1971
1970
 
1972
1971
  function applySliderMods() {
1973
1972
  return [css$W.root, 'uui-color-neutral'];
@@ -1990,7 +1989,7 @@ var SvgStarFilled = function SvgStarFilled(props, ref) {
1990
1989
  };
1991
1990
  var ForwardRef$t = /*#__PURE__*/forwardRef(SvgStarFilled);
1992
1991
 
1993
- var css$V = {"root":"JNaMlU","tooltip":"_9jekLy"};
1992
+ var css$V = {"root":"lHLS0l","tooltip":"DgL4WT"};
1994
1993
 
1995
1994
  function applyRatingMods(mods) {
1996
1995
  return [
@@ -2026,17 +2025,16 @@ const getMonthOnOpen = (selectedDate, focus) => {
2026
2025
  return uuiDayjs.dayjs(selectedDate[focus]);
2027
2026
  }
2028
2027
  else if (selectedDate.from) {
2029
- return uuiDayjs.dayjs(selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.from);
2028
+ return uuiDayjs.dayjs(selectedDate?.from);
2030
2029
  }
2031
2030
  else if (selectedDate.to) {
2032
- return uuiDayjs.dayjs(selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.to);
2031
+ return uuiDayjs.dayjs(selectedDate?.to);
2033
2032
  }
2034
2033
  return uuiDayjs.dayjs();
2035
2034
  };
2036
2035
  const isValidDate = (input, format, filter) => {
2037
- var _a, _b;
2038
2036
  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;
2037
+ return parsedDate.isValid() ?? filter?.(parsedDate) ?? true;
2040
2038
  };
2041
2039
  const isValidRange = (range) => {
2042
2040
  const from = uuiDayjs.dayjs(range.from);
@@ -2132,7 +2130,7 @@ const getNextYearsList = (currentDate) => {
2132
2130
  return currentDate.add(16, 'year');
2133
2131
  };
2134
2132
 
2135
- var css$U = {"root":"X64YlL","container":"F9YS9g"};
2133
+ var css$U = {"root":"qJiRTX","container":"_0E-6Hm"};
2136
2134
 
2137
2135
  const uuiHeader = {
2138
2136
  container: 'uui-datepicker-header-container',
@@ -2216,14 +2214,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
2216
2214
  React.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
2217
2215
  }
2218
2216
 
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"};
2217
+ var css$T = {"uui-typography":"Z0cI8G","uuiTypography":"Z0cI8G","hero-header":"UDgVzL","heroHeader":"UDgVzL","promo-header":"PIbyzs","promoHeader":"PIbyzs","uui-critical":"V18Gww","uuiCritical":"V18Gww","uui-info":"SoD5AR","uuiInfo":"SoD5AR","uui-success":"lJbLX6","uuiSuccess":"lJbLX6","uui-warning":"XynYGR","uuiWarning":"XynYGR","uui-highlight":"ONRFIU","uuiHighlight":"ONRFIU","uui-typography-size-12":"xpCIVi","uuiTypographySize12":"xpCIVi","uui-typography-size-14":"-puFet","uuiTypographySize14":"-puFet","uui-typography-size-16":"f9VjEs","uuiTypographySize16":"f9VjEs","root":"LFGtLd"};
2220
2218
 
2221
2219
  function applyDateSelectionMods() {
2222
2220
  return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
2223
2221
  }
2224
2222
  const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
2225
2223
 
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"};
2224
+ var css$S = {"uui-typography":"gJ9zSy","uuiTypography":"gJ9zSy","hero-header":"QWPvIb","heroHeader":"QWPvIb","promo-header":"KfRTte","promoHeader":"KfRTte","uui-critical":"dh-1ET","uuiCritical":"dh-1ET","uui-info":"Go0CjT","uuiInfo":"Go0CjT","uui-success":"RhjXWt","uuiSuccess":"RhjXWt","uui-warning":"-dkwvk","uuiWarning":"-dkwvk","uui-highlight":"lgqtsd","uuiHighlight":"lgqtsd","uui-typography-size-12":"j5Kfwd","uuiTypographySize12":"j5Kfwd","uui-typography-size-14":"PPqszV","uuiTypographySize14":"PPqszV","uui-typography-size-16":"CQxE2t","uuiTypographySize16":"CQxE2t","root":"IlD0DJ"};
2227
2225
 
2228
2226
  const uuiDatePickerBody = {
2229
2227
  wrapper: 'uui-datepicker-body-wrapper',
@@ -2238,7 +2236,7 @@ function DatePickerBodyComp(props, ref) {
2238
2236
  setMonth(getNewMonth(value));
2239
2237
  setView('DAY_SELECTION');
2240
2238
  }, [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) })));
2239
+ return (React__default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
2242
2240
  }
2243
2241
  const StatelessDatePickerBody = /* @__PURE__ */forwardRef(StatelessDatePickerBodyComp);
2244
2242
  function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, }, ref) {
@@ -2266,7 +2264,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
2266
2264
  return (React__default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled }));
2267
2265
  }
2268
2266
  };
2269
- return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
2267
+ return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes), ...rawProps },
2270
2268
  React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
2271
2269
  React__default.createElement(DatePickerHeader, { value: {
2272
2270
  view,
@@ -2306,8 +2304,7 @@ function DatePickerComponent(props, ref) {
2306
2304
  setBodyIsOpen(false);
2307
2305
  };
2308
2306
  const onBlur = (e) => {
2309
- var _a;
2310
- (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
2307
+ props.onBlur?.(e);
2311
2308
  if (isValidDate(inputValue, format, props.filter)) {
2312
2309
  setInputValue(toCustomDateFormat(inputValue, format));
2313
2310
  onValueChange(toValueDateFormat(inputValue, format));
@@ -2324,37 +2321,33 @@ function DatePickerComponent(props, ref) {
2324
2321
  }
2325
2322
  };
2326
2323
  const renderInput = (renderProps) => {
2327
- var _a;
2328
2324
  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) => {
2325
+ 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
2326
  setInputValue(v || '');
2331
2327
  }, onCancel: allowClear ? () => {
2332
2328
  if (!props.disableClear && !!inputValue) {
2333
2329
  onValueChange(null);
2334
2330
  }
2335
2331
  } : 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 })));
2332
+ props.onFocus?.(e);
2333
+ }, onKeyDown: onInputKeyDown, onBlur: onBlur, mode: props.mode || defaultMode$1, rawProps: props.rawProps?.input, id: props.id }));
2339
2334
  };
2340
2335
  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)));
2336
+ return (React__default.createElement(DropdownContainer, { ...renderProps },
2337
+ 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 }),
2338
+ props.renderFooter?.()));
2345
2339
  };
2346
2340
  return (React__default.createElement(Dropdown$1, { value: isBodyOpen, modifiers: modifiers$1, placement: props.placement, forwardedRef: ref, onValueChange: (v) => {
2347
2341
  setBodyIsOpen(v);
2348
2342
  }, renderTarget: (renderProps) => {
2349
- var _a;
2350
- return ((_a = props.renderTarget) === null || _a === void 0 ? void 0 : _a.call(props, renderProps)) || renderInput(renderProps);
2343
+ return props.renderTarget?.(renderProps) || renderInput(renderProps);
2351
2344
  }, renderBody: (renderProps) => {
2352
2345
  return renderBody(renderProps);
2353
2346
  } }));
2354
2347
  }
2355
2348
  const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
2356
2349
 
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"};
2350
+ var css$R = {"uui-typography":"_7MBEMg","uuiTypography":"_7MBEMg","hero-header":"-snyf3","heroHeader":"-snyf3","promo-header":"_096iuy","promoHeader":"_096iuy","uui-critical":"_53TpPX","uuiCritical":"_53TpPX","uui-info":"b88Fw2","uuiInfo":"b88Fw2","uui-success":"pxsrHI","uuiSuccess":"pxsrHI","uui-warning":"-gEboM","uuiWarning":"-gEboM","uui-highlight":"oTp6lu","uuiHighlight":"oTp6lu","uui-typography-size-12":"bvGb5l","uuiTypographySize12":"bvGb5l","uui-typography-size-14":"PPlk4K","uuiTypographySize14":"PPlk4K","uui-typography-size-16":"gcof0s","uuiTypographySize16":"gcof0s","date-input":"qjl16p","dateInput":"qjl16p","root":"hw63md","separator":"KOEopA","mode-form":"RImX4X","modeForm":"RImX4X","mode-cell":"vbvFko","modeCell":"vbvFko"};
2358
2351
 
2359
2352
  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
2353
  const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
@@ -2362,21 +2355,30 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
2362
2355
  setInputValue(toCustomDateRangeFormat(value, format));
2363
2356
  }, [format, value, setInputValue]);
2364
2357
  const onInputChange = (newValue, inputType) => {
2365
- setInputValue(Object.assign(Object.assign({}, inputValue), { [inputType]: newValue }));
2358
+ setInputValue({
2359
+ ...inputValue,
2360
+ [inputType]: newValue,
2361
+ });
2366
2362
  };
2367
2363
  const handleFocus = (event, inputType) => {
2368
2364
  onFocusInput(event, inputType);
2369
2365
  };
2370
2366
  const handleBlur = (event, inputType) => {
2371
- onBlurInput === null || onBlurInput === void 0 ? void 0 : onBlurInput(event, inputType);
2367
+ onBlurInput?.(event, inputType);
2372
2368
  const selectedDate = toValueDateRangeFormat(inputValue, format);
2373
2369
  if (isValidRange(selectedDate) && (!filter || filter(uuiDayjs.dayjs(selectedDate[inputType])))) {
2374
2370
  setInputValue(toCustomDateRangeFormat(selectedDate, format));
2375
2371
  onValueChange(selectedDate);
2376
2372
  }
2377
2373
  else {
2378
- setInputValue(Object.assign(Object.assign({}, inputValue), { [inputType]: null }));
2379
- onValueChange(Object.assign(Object.assign({}, selectedDate), { [inputType]: null }));
2374
+ setInputValue({
2375
+ ...inputValue,
2376
+ [inputType]: null,
2377
+ });
2378
+ onValueChange({
2379
+ ...selectedDate,
2380
+ [inputType]: null,
2381
+ });
2380
2382
  }
2381
2383
  };
2382
2384
  const onInputKeyDown = (e) => {
@@ -2389,14 +2391,14 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
2389
2391
  return (
2390
2392
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
2391
2393
  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 }),
2394
+ 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
2395
  React__default.createElement("div", { className: css$R.separator }),
2394
2396
  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
2397
  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 })));
2398
+ } : 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
2399
  });
2398
2400
 
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"};
2401
+ var css$Q = {"uui-typography":"qGiMQ3","uuiTypography":"qGiMQ3","hero-header":"_7BHSDp","heroHeader":"_7BHSDp","promo-header":"oBkLyU","promoHeader":"oBkLyU","uui-critical":"Df10aj","uuiCritical":"Df10aj","uui-info":"yVwrk2","uuiInfo":"yVwrk2","uui-success":"lqRL02","uuiSuccess":"lqRL02","uui-warning":"TZbnPf","uuiWarning":"TZbnPf","uui-highlight":"NzA8-I","uuiHighlight":"NzA8-I","uui-typography-size-12":"vdBLxF","uuiTypographySize12":"vdBLxF","uui-typography-size-14":"wCrKFk","uuiTypographySize14":"wCrKFk","uui-typography-size-16":"f7jjTT","uuiTypographySize16":"f7jjTT","root":"xzvvfF"};
2400
2402
 
2401
2403
  const uuiPresets = {
2402
2404
  container: 'uui-presets-container',
@@ -2404,15 +2406,19 @@ const uuiPresets = {
2404
2406
  item: 'uui-presets-item',
2405
2407
  };
2406
2408
  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);
2409
+ return Object.keys(presets).map((key) => ({
2410
+ ...presets[key].getRange(),
2411
+ name: presets[key].name,
2412
+ key,
2413
+ })).sort((a, b) => a.order - b.order);
2408
2414
  };
2409
2415
  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),
2416
+ return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx), ...props.rawProps },
2411
2417
  React.createElement("div", { className: uuiPresets.header }, "Presets"),
2412
2418
  getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
2413
2419
  }
2414
2420
 
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"};
2421
+ var css$P = {"uui-typography":"gw-vJC","uuiTypography":"gw-vJC","hero-header":"C3yLSv","heroHeader":"C3yLSv","promo-header":"L-qEqQ","promoHeader":"L-qEqQ","uui-critical":"hbT472","uuiCritical":"hbT472","uui-info":"oShiq5","uuiInfo":"oShiq5","uui-success":"vm8ATp","uuiSuccess":"vm8ATp","uui-warning":"lfDUer","uuiWarning":"lfDUer","uui-highlight":"DUWKBA","uuiHighlight":"DUWKBA","uui-typography-size-12":"pu8wpX","uuiTypographySize12":"pu8wpX","uui-typography-size-14":"XAoAZc","uuiTypographySize14":"XAoAZc","uui-typography-size-16":"LWVgDa","uuiTypographySize16":"LWVgDa","root":"iAXGQj","container":"yOZGvB","day-selection":"Gv8DYV","daySelection":"Gv8DYV","from-picker":"_0Zj3Kr","fromPicker":"_0Zj3Kr","to-picker":"DpxWFp","toPicker":"DpxWFp","bodes-wrapper":"H1G-0z","bodesWrapper":"H1G-0z","blocker":"_9MZGNA"};
2416
2422
 
2417
2423
  const uuiRangeDatePickerBody = {
2418
2424
  inRange: 'uui-range-datepicker-in-range',
@@ -2510,8 +2516,8 @@ function RangeDatePickerBodyComp(props, ref) {
2510
2516
  // selectedDate can be null, other params should always have values
2511
2517
  const newRange = v ? getRange(v) : selectedDate;
2512
2518
  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);
2519
+ const fromChanged = selectedDate.from !== newRange?.from;
2520
+ const toChanged = selectedDate.to !== newRange?.to;
2515
2521
  if (inFocus === 'from' && fromChanged) {
2516
2522
  newInFocus = 'to';
2517
2523
  }
@@ -2521,11 +2527,11 @@ function RangeDatePickerBodyComp(props, ref) {
2521
2527
  setActiveMonth(part);
2522
2528
  props.onValueChange({
2523
2529
  selectedDate: newRange ? newRange : selectedDate,
2524
- inFocus: newInFocus !== null && newInFocus !== void 0 ? newInFocus : inFocus,
2530
+ inFocus: newInFocus ?? inFocus,
2525
2531
  });
2526
2532
  };
2527
2533
  const renderDay = (renderProps) => {
2528
- return (React__default.createElement(Day, Object.assign({}, renderProps, { cx: getDayCX(renderProps.value, selectedDate) })));
2534
+ return (React__default.createElement(Day, { ...renderProps, cx: getDayCX(renderProps.value, selectedDate) }));
2529
2535
  };
2530
2536
  const from = {
2531
2537
  month,
@@ -2553,17 +2559,17 @@ function RangeDatePickerBodyComp(props, ref) {
2553
2559
  });
2554
2560
  }, presets: presets })));
2555
2561
  };
2556
- return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
2562
+ return (React__default.createElement("div", { ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
2557
2563
  React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
2558
2564
  React__default.createElement(FlexCell, { width: "auto" },
2559
2565
  React__default.createElement(FlexRow, null,
2560
2566
  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) => {
2567
+ React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$P.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
2562
2568
  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) => {
2569
+ }, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
2570
+ React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$P.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
2565
2571
  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' })),
2572
+ }, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
2567
2573
  view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
2568
2574
  left: activeMonth === 'from' ? '50%' : undefined,
2569
2575
  right: activeMonth === 'to' ? '50%' : undefined,
@@ -2573,9 +2579,9 @@ function RangeDatePickerBodyComp(props, ref) {
2573
2579
  }
2574
2580
  const getDayCX = (day, selectedDate) => {
2575
2581
  const dayValue = day.valueOf();
2576
- const fromValue = (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.from)
2582
+ const fromValue = selectedDate?.from
2577
2583
  ? uuiDayjs.dayjs(selectedDate.from).valueOf() : null;
2578
- const toValue = (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.to)
2584
+ const toValue = selectedDate?.to
2579
2585
  ? uuiDayjs.dayjs(selectedDate.to).valueOf() : null;
2580
2586
  const inRange = fromValue
2581
2587
  && toValue
@@ -2587,7 +2593,7 @@ const getDayCX = (day, selectedDate) => {
2587
2593
  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
2594
  };
2589
2595
 
2590
- var css$O = {"dropdown-container":"-z-4Dl","dropdownContainer":"-z-4Dl"};
2596
+ var css$O = {"dropdown-container":"PaTp3E","dropdownContainer":"PaTp3E"};
2591
2597
 
2592
2598
  const modifiers = [{
2593
2599
  name: 'offset',
@@ -2601,8 +2607,8 @@ function RangeDatePickerComponent(props, ref) {
2601
2607
  const [inFocus, setInFocus] = useState(null);
2602
2608
  const targetRef = React__default.useRef(null);
2603
2609
  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);
2610
+ const fromChanged = value?.from !== newValue?.from;
2611
+ const toChanged = value?.to !== newValue?.to;
2606
2612
  if (fromChanged || toChanged) {
2607
2613
  props.onValueChange(newValue);
2608
2614
  if (props.getValueChangeAnalyticsEvent) {
@@ -2612,17 +2618,15 @@ function RangeDatePickerComponent(props, ref) {
2612
2618
  }
2613
2619
  };
2614
2620
  const onOpenChange = (newIsOpen) => {
2615
- var _a;
2616
2621
  setIsOpen(newIsOpen);
2617
- (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, newIsOpen);
2622
+ props.onOpenChange?.(newIsOpen);
2618
2623
  if (!inFocus && newIsOpen) {
2619
2624
  setInFocus('from');
2620
2625
  targetRef.current.querySelector('.uui-input').focus();
2621
2626
  }
2622
2627
  };
2623
2628
  const onBodyValueChange = (newValue) => {
2624
- var _a;
2625
- setInFocus((_a = newValue.inFocus) !== null && _a !== void 0 ? _a : inFocus);
2629
+ setInFocus(newValue.inFocus ?? inFocus);
2626
2630
  onValueChange(newValue.selectedDate);
2627
2631
  const toChanged = value.to !== newValue.selectedDate.to;
2628
2632
  const closeBody = newValue.selectedDate.from && newValue.selectedDate.to
@@ -2633,19 +2637,14 @@ function RangeDatePickerComponent(props, ref) {
2633
2637
  }
2634
2638
  };
2635
2639
  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
- } }),
2640
+ return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: true },
2641
2641
  React__default.createElement(FlexRow, null,
2642
2642
  React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
2643
2643
  selectedDate: _value,
2644
2644
  inFocus,
2645
2645
  }, 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 }))));
2646
+ return props.renderFooter?.(value);
2647
+ }, isHoliday: props.isHoliday, rawProps: props.rawProps?.body }))));
2649
2648
  };
2650
2649
  const handleEscape = (e) => {
2651
2650
  if (e.key === 'Escape' && isOpen) {
@@ -2654,17 +2653,15 @@ function RangeDatePickerComponent(props, ref) {
2654
2653
  }
2655
2654
  };
2656
2655
  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);
2656
+ 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) => {
2657
+ props.onFocus?.(e, type);
2661
2658
  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 }));
2659
+ }, onBlurInput: (e, type) => { props.onBlur?.(e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
2663
2660
  }, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, modifiers: modifiers, placement: props.placement, forwardedRef: ref }));
2664
2661
  }
2665
2662
  const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
2666
2663
 
2667
- var css$N = {"root":"_--rqHV","blocker":"YGgN11","marker":"PwvMNp","top":"iTI5KI","bottom":"DOVNhM","left":"gXiDfM","right":"l5vLvq","inside":"SvEyhK"};
2664
+ var css$N = {"root":"GeuyW6","blocker":"jekCpR","marker":"qVhmyB","top":"GRZRJd","bottom":"Ecl2i6","left":"_4NM3Hs","right":"pUD5qQ","inside":"_5C8svd"};
2668
2665
 
2669
2666
  function DropMarker(props) {
2670
2667
  return props.isDndInProgress
@@ -2674,12 +2671,12 @@ function DropMarker(props) {
2674
2671
  css$N.root,
2675
2672
  css$N.marker,
2676
2673
  css$N[props.position],
2677
- props === null || props === void 0 ? void 0 : props.cx,
2674
+ props?.cx,
2678
2675
  ]) })))
2679
2676
  : null;
2680
2677
  }
2681
2678
 
2682
- var css$M = {"root":"A3dldn","line-height":"FJ-kyL","lineHeight":"FJ-kyL","font-size":"a8Gc3b","fontSize":"a8Gc3b"};
2679
+ var css$M = {"root":"FMk1Jo","line-height":"hoLW7V","lineHeight":"hoLW7V","font-size":"sm2HPY","fontSize":"sm2HPY"};
2683
2680
 
2684
2681
  function applyTextMods(mods) {
2685
2682
  return [
@@ -2695,16 +2692,18 @@ function applyTextMods(mods) {
2695
2692
  ];
2696
2693
  }
2697
2694
  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) || {};
2695
+ const style = props?.rawProps?.style || {};
2700
2696
  props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
2701
2697
  props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
2702
2698
  return {
2703
- rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
2699
+ rawProps: {
2700
+ ...props?.rawProps,
2701
+ style: style,
2702
+ },
2704
2703
  };
2705
2704
  });
2706
2705
 
2707
- var css$L = {"root":"YlTVbm","loading-word":"qIJzK-","loadingWord":"qIJzK-","animated-loading":"BXzop3","animatedLoading":"BXzop3","skeleton_loading":"Cs-67S","skeletonLoading":"Cs-67S"};
2706
+ var css$L = {"root":"-YuIl6","loading-word":"gp-qVO","loadingWord":"gp-qVO","animated-loading":"qO6G0E","animatedLoading":"qO6G0E","skeleton_loading":"rRA0VP","skeletonLoading":"rRA0VP"};
2708
2707
 
2709
2708
  const TextPlaceholder = (props) => {
2710
2709
  const pattern = '&nbsp;';
@@ -2716,20 +2715,20 @@ const TextPlaceholder = (props) => {
2716
2715
  }
2717
2716
  return words;
2718
2717
  }, [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([
2718
+ 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
2719
  props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
2721
2720
  ]), dangerouslySetInnerHTML: { __html: it } })))));
2722
2721
  };
2723
2722
 
2724
2723
  const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
2725
2724
 
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"};
2725
+ var css$K = {"uui-typography":"H8P-el","uuiTypography":"H8P-el","hero-header":"_369Gmm","heroHeader":"_369Gmm","promo-header":"RHd-3h","promoHeader":"RHd-3h","uui-critical":"HKgtQ9","uuiCritical":"HKgtQ9","uui-info":"SsbzfT","uuiInfo":"SsbzfT","uui-success":"OKhjTf","uuiSuccess":"OKhjTf","uui-warning":"DNrfA3","uuiWarning":"DNrfA3","uui-highlight":"_84Jrwx","uuiHighlight":"_84Jrwx","uui-typography-size-12":"Az-TdB","uuiTypographySize12":"Az-TdB","uui-typography-size-14":"bRUgKB","uuiTypographySize14":"bRUgKB","uui-typography-size-16":"IdwXWV","uuiTypographySize16":"IdwXWV","modal":"KHF89-","search-wrapper":"z8VD9Q","searchWrapper":"z8VD9Q","no-data":"Uh2n4V","noData":"Uh2n4V","type-search-to-load-size-24":"yfxsh1","typeSearchToLoadSize24":"yfxsh1"};
2727
2726
 
2728
2727
  class DataPickerBody extends PickerBodyBase {
2729
2728
  constructor() {
2730
2729
  super(...arguments);
2731
2730
  this.lens = Lens.onEditableComponent(this);
2732
- this.searchLens = this.lens.prop('search');
2731
+ this.searchLens = this.lens.prop('search').default('');
2733
2732
  this.getSearchSize = () => (isMobile() ? settings.sizes.pickerInput.body.mobile.searchInput : this.props.searchSize);
2734
2733
  }
2735
2734
  renderEmpty() {
@@ -2766,12 +2765,12 @@ class DataPickerBody extends PickerBodyBase {
2766
2765
  return (React__default.createElement(React__default.Fragment, null,
2767
2766
  this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
2768
2767
  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())));
2768
+ 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' } })))),
2769
+ 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
2770
  }
2772
2771
  }
2773
2772
 
2774
- var css$J = {"footer":"ZUAwBd"};
2773
+ var css$J = {"footer":"eh6i7N"};
2775
2774
 
2776
2775
  function DataPickerFooterImpl(props) {
2777
2776
  const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
@@ -2782,11 +2781,12 @@ function DataPickerFooterImpl(props) {
2782
2781
  const clearAllText = i18n.pickerInput.clearSelectionButton;
2783
2782
  const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
2784
2783
  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);
2784
+ const isSearching = search?.length;
2785
+ const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
2787
2786
  const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
2788
2787
  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 })),
2788
+ !isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
2789
+ 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
2790
  React__default.createElement(FlexSpacer, null),
2791
2791
  React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
2792
2792
  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 +2796,13 @@ function DataPickerFooterImpl(props) {
2796
2796
  }
2797
2797
  const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
2798
2798
 
2799
- var css$I = {"header":"_3DSq5k","title":"By9VJ2","close":"gU-Ide"};
2799
+ var css$I = {"header":"sd3L4n","title":"_2GU9gH","close":"PTRWJB"};
2800
2800
 
2801
2801
  const DataPickerHeaderImpl = (props) => {
2802
2802
  const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
2803
2803
  return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
2804
2804
  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 })));
2805
+ React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => props.close?.(), cx: css$I.close })));
2806
2806
  };
2807
2807
  const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
2808
2808
 
@@ -2821,7 +2821,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
2821
2821
  };
2822
2822
  var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
2823
2823
 
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"};
2824
+ var css$H = {"uui-typography":"nZLxt8","uuiTypography":"nZLxt8","hero-header":"c47uWQ","heroHeader":"c47uWQ","promo-header":"DoBQEr","promoHeader":"DoBQEr","uui-critical":"_9c0hUT","uuiCritical":"_9c0hUT","uui-info":"_-4bQEn","uuiInfo":"_-4bQEn","uui-success":"pHdvzU","uuiSuccess":"pHdvzU","uui-warning":"kWLp6c","uuiWarning":"kWLp6c","uui-highlight":"eaT4JV","uuiHighlight":"eaT4JV","uui-typography-size-12":"G-vVZ6","uuiTypographySize12":"G-vVZ6","uui-typography-size-14":"Pj65KI","uuiTypographySize14":"Pj65KI","uui-typography-size-16":"qkrHKG","uuiTypographySize16":"qkrHKG","root":"uGbvFu","align-widgets-top":"udnOpy","alignWidgetsTop":"udnOpy","align-widgets-center":"a65f-b","alignWidgetsCenter":"a65f-b","icon-container":"h4EFFt","iconContainer":"h4EFFt","loading-cell":"vNy3k9","loadingCell":"vNy3k9","content-wrapper":"VXTTYN","contentWrapper":"VXTTYN","render-item":"yByDq3","renderItem":"yByDq3","icon-wrapper":"ftmw4J","iconWrapper":"ftmw4J","icon-default":"nzyyNz","iconDefault":"nzyyNz","selected-mark":"uJYoBg","selectedMark":"uJYoBg"};
2825
2825
 
2826
2826
  function DataPickerCell(props) {
2827
2827
  const ref = React.useRef();
@@ -2854,11 +2854,11 @@ function DataPickerCell(props) {
2854
2854
  ], style: props.padding && {
2855
2855
  '--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
2856
2856
  } },
2857
- React.createElement(DataRowAddons, Object.assign({ size: props.size }, props, { tabIndex: -1 })),
2857
+ React.createElement(DataRowAddons, { size: props.size, ...props, tabIndex: -1 }),
2858
2858
  getWrappedContent()));
2859
2859
  }
2860
2860
 
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"};
2861
+ var css$G = {"uui-typography":"h5N0M3","uuiTypography":"h5N0M3","hero-header":"xF-2-8","heroHeader":"xF-2-8","promo-header":"u-ZkfT","promoHeader":"u-ZkfT","uui-critical":"V-Xxf6","uuiCritical":"V-Xxf6","uui-info":"tN4oHp","uuiInfo":"tN4oHp","uui-success":"Pt9FhS","uuiSuccess":"Pt9FhS","uui-warning":"vuLe7V","uuiWarning":"vuLe7V","uui-highlight":"sRfCZu","uuiHighlight":"sRfCZu","uui-typography-size-12":"KCnMPp","uuiTypographySize12":"KCnMPp","uui-typography-size-14":"ff5AVt","uuiTypographySize14":"ff5AVt","uui-typography-size-16":"DLyS-u","uuiTypographySize16":"DLyS-u","picker-row":"Zgke1W","pickerRow":"Zgke1W"};
2862
2862
 
2863
2863
  class DataPickerRow extends React.Component {
2864
2864
  constructor() {
@@ -2868,20 +2868,20 @@ class DataPickerRow extends React.Component {
2868
2868
  };
2869
2869
  }
2870
2870
  render() {
2871
- return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
2871
+ return (React.createElement(DataPickerRow$1, { ...this.props, cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent }));
2872
2872
  }
2873
2873
  }
2874
2874
 
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"};
2875
+ var css$F = {"uui-typography":"OHm-7l","uuiTypography":"OHm-7l","hero-header":"f9VrIb","heroHeader":"f9VrIb","promo-header":"YRAMM7","promoHeader":"YRAMM7","uui-critical":"BuiCOy","uuiCritical":"BuiCOy","uui-info":"IPiWwe","uuiInfo":"IPiWwe","uui-success":"xH-e30","uuiSuccess":"xH-e30","uui-warning":"QTAajf","uuiWarning":"QTAajf","uui-highlight":"Dpdv2R","uuiHighlight":"Dpdv2R","uui-typography-size-12":"j-wmxt","uuiTypographySize12":"j-wmxt","uui-typography-size-14":"_7nMdaq","uuiTypographySize14":"_7nMdaq","uui-typography-size-16":"lWfNTz","uuiTypographySize16":"lWfNTz","done":"-P4K4a","container":"f2Dkny"};
2876
2876
 
2877
2877
  const PickerBodyMobileView = (props) => {
2878
2878
  const isMobileView = isMobile();
2879
2879
  const maxWidth = isMobileView ? 'auto' : props.maxWidth;
2880
2880
  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 }),
2881
+ return (React__default.createElement(DropdownContainer, { ...props, maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true },
2882
2882
  isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
2883
2883
  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 })));
2884
+ 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
2885
  };
2886
2886
 
2887
2887
  var _path$r, _path2$4;
@@ -2906,20 +2906,20 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
2906
2906
  };
2907
2907
  var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
2908
2908
 
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"};
2909
+ var css$E = {"uui-typography":"gszaPU","uuiTypography":"gszaPU","hero-header":"zK6cV-","heroHeader":"zK6cV-","promo-header":"QDJ8bh","promoHeader":"QDJ8bh","uui-critical":"xSPJ-b","uuiCritical":"xSPJ-b","uui-info":"OfygXC","uuiInfo":"OfygXC","uui-success":"PzOvjJ","uuiSuccess":"PzOvjJ","uui-warning":"_4vvIX1","uuiWarning":"_4vvIX1","uui-highlight":"iRuFt8","uuiHighlight":"iRuFt8","uui-typography-size-12":"p0C-nl","uuiTypographySize12":"p0C-nl","uui-typography-size-14":"NTpycR","uuiTypographySize14":"NTpycR","uui-typography-size-16":"VGare-","uuiTypographySize16":"VGare-","sub-header-wrapper":"FGF1g9","subHeaderWrapper":"FGF1g9","switch":"UO9j9i","no-found-modal-container":"_3TdJxp","noFoundModalContainer":"_3TdJxp","no-found-modal-container-icon":"QvwIRh","noFoundModalContainerIcon":"QvwIRh","no-found-modal-container-text":"PN7apx","noFoundModalContainerText":"PN7apx"};
2910
2910
 
2911
2911
  const mergeHighlightRanges = (ranges) => {
2912
2912
  const mergedRanges = [];
2913
2913
  ranges.forEach((range) => {
2914
2914
  if (!mergedRanges.length) {
2915
- mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
2915
+ mergedRanges.push({ ...range, isHighlighted: true });
2916
2916
  }
2917
2917
  const lastRange = mergedRanges[mergedRanges.length - 1];
2918
2918
  if (range.from >= lastRange.from && range.from <= lastRange.to && range.to > lastRange.to) {
2919
2919
  lastRange.to = range.to;
2920
2920
  }
2921
2921
  if (lastRange.to < range.from) {
2922
- mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
2922
+ mergedRanges.push({ ...range, isHighlighted: true });
2923
2923
  }
2924
2924
  });
2925
2925
  return mergedRanges;
@@ -2960,7 +2960,7 @@ const getHighlightRanges = (str, search) => {
2960
2960
  };
2961
2961
  const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
2962
2962
  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));
2963
+ return (React__default.createElement("span", { key: `${rangeStr}-${index}`, ...(range.isHighlighted ? { className: 'uui-highlight' } : {}) }, rangeStr));
2964
2964
  });
2965
2965
  const getHighlightedSearchMatches = (str, search) => {
2966
2966
  if (!search || !str) {
@@ -2973,14 +2973,13 @@ const getHighlightedSearchMatches = (str, search) => {
2973
2973
  return getDecoratedText(str, ranges);
2974
2974
  };
2975
2975
 
2976
- var css$D = {"root":"CIG2Xr","column-gap":"Tm0Fwb","columnGap":"Tm0Fwb","multiline":"_4WyMTB","text":"Zx9mSy"};
2976
+ var css$D = {"root":"VtRLRH","column-gap":"-zzsUj","columnGap":"-zzsUj","multiline":"FgXwgK","text":"A1fk8n"};
2977
2977
 
2978
2978
  function PickerItem(props) {
2979
- var _a;
2980
2979
  const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, cx, } = props;
2981
2980
  const itemSize = size || settings.sizes.pickerInput.body.dropdown.row.cell.item.default;
2982
2981
  const isMultiline = !!(props.title && props.subtitle);
2983
- const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
2982
+ const { search } = props.dataSourceState ?? {};
2984
2983
  const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
2985
2984
  const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
2986
2985
  return (React.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
@@ -3007,10 +3006,10 @@ function PickerModal(props) {
3007
3006
  };
3008
3007
  const renderItem = (item, rowProps, dsState) => {
3009
3008
  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)));
3009
+ return (React__default.createElement(PickerItem, { title: getName(item), size: "36", dataSourceState: dsState, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
3011
3010
  };
3012
3011
  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) })));
3012
+ 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
3013
  };
3015
3014
  const renderFooter = () => {
3016
3015
  const hasSelection = view.getSelectedRowsCount() > 0;
@@ -3030,40 +3029,44 @@ function PickerModal(props) {
3030
3029
  };
3031
3030
  const dataRows = getRows();
3032
3031
  const rows = dataRows.map((row) => renderRow(row));
3033
- return (React__default.createElement(ModalBlocker, Object.assign({}, props),
3032
+ return (React__default.createElement(ModalBlocker, { ...props },
3034
3033
  React__default.createElement(ModalWindow, { width: 600, height: 700 },
3035
3034
  React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
3036
3035
  React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
3037
3036
  React__default.createElement(FlexRow, { vPadding: "24" },
3038
- React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
3037
+ React__default.createElement(SearchInput, { ...dataSourceStateLens.prop('search').toProps(), onKeyDown: (e) => handleDataSourceKeyboard({
3039
3038
  value: getDataSourceState(),
3040
3039
  onValueChange: handleDataSourceValueChange,
3041
3040
  listView: view,
3042
3041
  rows: dataRows,
3043
3042
  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" }))),
3043
+ }, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } })),
3044
+ !isSingleSelect() && (React__default.createElement(Switch, { cx: css$E.switch, size: "18", ...getFooterProps().showSelected, isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" })),
3046
3045
  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" })),
3046
+ React__default.createElement(DataPickerBody, { ...getListProps(), value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" }),
3048
3047
  React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
3049
3048
  }
3050
3049
 
3051
- var css$C = {"tooltip":"tRTd0b"};
3050
+ var css$C = {"tooltip":"_4LbSbc"};
3052
3051
 
3053
3052
  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 });
3053
+ const tagProps = {
3054
+ ...props,
3055
+ tabIndex: -1,
3056
+ size: settings.sizes.pickerInput.toggler.tag[props.size],
3057
+ caption: props.rowProps?.isLoading ? React.createElement(TextPlaceholder, null) : props.caption,
3058
+ };
3056
3059
  if (props.isCollapsed) {
3057
3060
  const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
3058
3061
  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))));
3062
+ React.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps })));
3060
3063
  }
3061
3064
  else {
3062
- return React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps));
3065
+ return React.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps });
3063
3066
  }
3064
3067
  });
3065
3068
 
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"};
3069
+ var css$B = {"uui-typography":"ntrG-0","uuiTypography":"ntrG-0","hero-header":"nwFaEC","heroHeader":"nwFaEC","promo-header":"vBm5Qu","promoHeader":"vBm5Qu","uui-critical":"eJIYxi","uuiCritical":"eJIYxi","uui-info":"fPTung","uuiInfo":"fPTung","uui-success":"Bqhc06","uuiSuccess":"Bqhc06","uui-warning":"ZdM0rr","uuiWarning":"ZdM0rr","uui-highlight":"f9BpYm","uuiHighlight":"f9BpYm","uui-typography-size-12":"w69eg5","uuiTypographySize12":"w69eg5","uui-typography-size-14":"Osaw0i","uuiTypographySize14":"Osaw0i","uui-typography-size-16":"JJjDWa","uuiTypographySize16":"JJjDWa","root":"_8fzsek","mode-form":"sWdmpe","modeForm":"sWdmpe","mode-cell":"jMLHqz","modeCell":"jMLHqz","mode-inline":"_9uO5b9","modeInline":"_9uO5b9"};
3067
3070
 
3068
3071
  const defaultMode = EditMode.FORM;
3069
3072
  function applyPickerTogglerMods(mods) {
@@ -3076,28 +3079,27 @@ function applyPickerTogglerMods(mods) {
3076
3079
  }
3077
3080
  function PickerTogglerComponent(props, ref) {
3078
3081
  const renderItem = (itemProps) => {
3079
- const itemPropsWithSize = Object.assign(Object.assign({}, itemProps), { size: (props.size || settings.sizes.pickerInput.toggler.defaults.tag) });
3082
+ const itemPropsWithSize = { ...itemProps, size: (props.size || settings.sizes.pickerInput.toggler.defaults.tag) };
3080
3083
  if (!!props.renderItem) {
3081
3084
  return props.renderItem(itemPropsWithSize);
3082
3085
  }
3083
- return (React.createElement(PickerTogglerTag, Object.assign({}, itemPropsWithSize, { getName: props.getName })));
3086
+ return (React.createElement(PickerTogglerTag, { ...itemPropsWithSize, getName: props.getName }));
3084
3087
  };
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 })));
3088
+ 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
3089
  }
3087
3090
  const PickerToggler = /* @__PURE__ */React.forwardRef(PickerTogglerComponent);
3088
3091
 
3089
- function PickerInputComponent(_a, ref) {
3090
- var { highlightSearchMatches = true } = _a, props = __rest(_a, ["highlightSearchMatches"]);
3092
+ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref) {
3091
3093
  const toggleModalOpening = () => {
3092
- const { renderFooter, rawProps } = props, restProps = __rest(props, ["renderFooter", "rawProps"]);
3094
+ const { renderFooter, rawProps, ...restProps } = props;
3093
3095
  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 }))))
3096
+ .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
3097
  .then((newSelection) => {
3096
3098
  handleSelectionValueChange(newSelection);
3097
3099
  })
3098
3100
  .catch(() => { });
3099
3101
  };
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 }));
3102
+ const { view, context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, closePickerBody, openPickerBody, handlePickerInputKeyboard, } = usePickerInput({ ...props, toggleModalOpening });
3101
3103
  const dropdownRef = useRef(null);
3102
3104
  useImperativeHandle(ref, () => {
3103
3105
  if (dropdownRef.current) {
@@ -3113,12 +3115,17 @@ function PickerInputComponent(_a, ref) {
3113
3115
  };
3114
3116
  };
3115
3117
  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) })) }));
3118
+ const renderTargetFn = props.renderToggler || ((props) => React__default.createElement(PickerToggler, { ...props }));
3119
+ return (React__default.createElement(IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn({
3120
+ ...getTogglerMods(),
3121
+ ...targetProps,
3122
+ ...editableProps,
3123
+ onKeyDown: (e) => handlePickerInputKeyboard(rows, e, editableProps.value),
3124
+ }) }));
3118
3125
  };
3119
3126
  const renderFooter = () => {
3120
3127
  const footerProps = getFooterProps();
3121
- return props.renderFooter ? props.renderFooter(footerProps) : React__default.createElement(DataPickerFooter, Object.assign({}, footerProps, { size: props.size }));
3128
+ return props.renderFooter ? props.renderFooter(footerProps) : React__default.createElement(DataPickerFooter, { ...footerProps, size: props.size });
3122
3129
  };
3123
3130
  const getRowSize = () => {
3124
3131
  if (isMobile()) {
@@ -3138,32 +3145,31 @@ function PickerInputComponent(_a, ref) {
3138
3145
  };
3139
3146
  const renderRowItem = (item, rowProps, dsState) => {
3140
3147
  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)));
3148
+ return (React__default.createElement(PickerItem, { title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches, ...(flattenSearchResults ? { subtitle: getSubtitle(rowProps, dataSourceState) } : {}), ...rowProps }));
3142
3149
  };
3143
3150
  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) })));
3151
+ 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
3152
  };
3146
3153
  const renderBody = (bodyProps, rows) => {
3147
3154
  const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
3148
3155
  const bodyHeight = isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.sizes.pickerInput.body.dropdown.height;
3149
3156
  const minBodyWidth = props.minBodyWidth || settings.sizes.pickerInput.body.dropdown.width;
3150
3157
  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 })),
3158
+ React__default.createElement(DataPickerBody, { ...bodyProps, rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode }),
3152
3159
  renderFooter()));
3153
3160
  };
3154
3161
  const rows = getRows();
3155
3162
  const renderItem = props.renderTag ? props.renderTag : null;
3156
3163
  return (React__default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
3157
3164
  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 }));
3165
+ return renderTarget({ ...dropdownProps, ...targetProps, renderItem });
3166
+ }, 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
3167
  }
3161
3168
  const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
3162
3169
 
3163
- var css$A = {"row":"H1rqOc"};
3170
+ var css$A = {"row":"Mc8U6v"};
3164
3171
 
3165
3172
  function PickerListItem(props) {
3166
- var _a;
3167
3173
  let label;
3168
3174
  if (props.isLoading) {
3169
3175
  label = React__default.createElement(TextPlaceholder, { wordsCount: 2 });
@@ -3173,31 +3179,31 @@ function PickerListItem(props) {
3173
3179
  }
3174
3180
  let component;
3175
3181
  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) })));
3182
+ 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
3183
  }
3178
3184
  else {
3179
3185
  component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
3180
3186
  }
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));
3187
+ 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
3188
  }
3183
3189
 
3184
- var css$z = {"root":"e4VKR4"};
3190
+ var css$z = {"root":"_6ZoVho"};
3185
3191
 
3186
3192
  function PickerList(props) {
3187
3193
  const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
3188
3194
  const defaultRenderRow = (row) => {
3189
- return React__default.createElement(PickerListItem, Object.assign({ getName: (item) => getName(item) }, row, { key: row.rowKey }));
3195
+ return React__default.createElement(PickerListItem, { getName: (item) => getName(item), ...row, key: row.rowKey });
3190
3196
  };
3191
3197
  const handleShowPicker = () => {
3192
3198
  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 }))))
3199
+ .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
3200
  .then((value) => {
3195
3201
  appendLastSelected([...getSelectedIdsArray(value)]);
3196
3202
  props.onValueChange(value);
3197
3203
  })
3198
3204
  .catch(() => { });
3199
3205
  };
3200
- const defaultRenderToggler = (props) => React__default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
3206
+ const defaultRenderToggler = (props) => React__default.createElement(LinkButton, { caption: "Show all", ...props });
3201
3207
  const viewProps = view.getListProps();
3202
3208
  const selectedRows = onlySelectedView.getVisibleRows();
3203
3209
  const rows = buildRowsList();
@@ -3207,7 +3213,7 @@ function PickerList(props) {
3207
3213
  return (React__default.createElement("div", { className: cx('uui-picker-list', css$z.root) },
3208
3214
  !rows.length
3209
3215
  && (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)),
3216
+ rows.map((row) => renderRow({ ...row, isDisabled: props.isDisabled }, dataSourceState)),
3211
3217
  showPicker
3212
3218
  && renderToggler({
3213
3219
  onClick: handleShowPicker,
@@ -3216,19 +3222,19 @@ function PickerList(props) {
3216
3222
  }, selectedRows)));
3217
3223
  }
3218
3224
 
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"};
3225
+ var css$y = {"uui-typography":"PMzyjx","uuiTypography":"PMzyjx","hero-header":"_26w-DM","heroHeader":"_26w-DM","promo-header":"w0jmtN","promoHeader":"w0jmtN","uui-critical":"_1jJZzl","uuiCritical":"_1jJZzl","uui-info":"EUPKZb","uuiInfo":"EUPKZb","uui-success":"HJ7yEx","uuiSuccess":"HJ7yEx","uui-warning":"xlQRy0","uuiWarning":"xlQRy0","uui-highlight":"lfaZ2N","uuiHighlight":"lfaZ2N","uui-typography-size-12":"nNrQf0","uuiTypographySize12":"nNrQf0","uui-typography-size-14":"AB4Y0x","uuiTypographySize14":"AB4Y0x","uui-typography-size-16":"Xjdz-E","uuiTypographySize16":"Xjdz-E","root":"fd-udR","wrapper":"UjEmod","align-widgets-top":"C0wrPg","alignWidgetsTop":"C0wrPg","align-widgets-center":"cAOHlQ","alignWidgetsCenter":"cAOHlQ"};
3220
3226
 
3221
3227
  function DataTableCell(initialProps) {
3222
- const props = Object.assign({}, initialProps);
3228
+ const props = { ...initialProps };
3223
3229
  if (props.isFirstColumn) {
3224
- props.addons = React.createElement(DataRowAddons, Object.assign({ size: props.size }, props));
3230
+ props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
3225
3231
  }
3226
3232
  props.renderPlaceholder = props.renderPlaceholder
3227
3233
  || (() => (React.createElement(Text, { key: "t", size: settings.sizes.dataTable.body.row.cell.text[props.size] },
3228
3234
  React.createElement(TextPlaceholder, { isNotAnimated: true }))));
3229
3235
  props.renderUnknown = props.renderUnknown
3230
3236
  || (() => (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));
3237
+ props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
3232
3238
  const isEditable = !!props.onValueChange;
3233
3239
  const getLeftPadding = () => {
3234
3240
  const { rowProps: { isLoading }, columnsGap, isFirstColumn } = props;
@@ -3262,18 +3268,18 @@ function DataTableCell(initialProps) {
3262
3268
  '--uui-dt-cell-padding-start': `${getLeftPadding()}px`,
3263
3269
  '--uui-dt-cell-padding-end': `${getRightPadding()}px`,
3264
3270
  };
3265
- return React.createElement(DataTableCell$1, Object.assign({}, props));
3271
+ return React.createElement(DataTableCell$1, { ...props });
3266
3272
  }
3267
3273
 
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"};
3274
+ var css$x = {"uui-typography":"bxxf--","uuiTypography":"bxxf--","hero-header":"ExGzo3","heroHeader":"ExGzo3","promo-header":"EJZNeg","promoHeader":"EJZNeg","uui-critical":"HVz-Lo","uuiCritical":"HVz-Lo","uui-info":"GHc0jr","uuiInfo":"GHc0jr","uui-success":"kIlzDu","uuiSuccess":"kIlzDu","uui-warning":"pKwli4","uuiWarning":"pKwli4","uui-highlight":"-vDuKz","uuiHighlight":"-vDuKz","uui-typography-size-12":"u2fa0f","uuiTypographySize12":"u2fa0f","uui-typography-size-14":"vHwIE6","uuiTypographySize14":"vHwIE6","uui-typography-size-16":"b5Sd87","uuiTypographySize16":"b5Sd87","root":"Uq7RaL"};
3269
3275
 
3270
3276
  // Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
3271
3277
  // 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
3278
  const renderCell = (props) => {
3273
3279
  const mods = props.rowProps;
3274
- return React.createElement(DataTableCell, Object.assign({}, props, { size: mods.size, columnsGap: mods.columnsGap }));
3280
+ return React.createElement(DataTableCell, { ...props, key: props.key, size: mods.size, columnsGap: mods.columnsGap });
3275
3281
  };
3276
- const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
3282
+ const renderDropMarkers = (props) => React.createElement(DropMarker, { ...props, enableBlocker: true });
3277
3283
  const propsMods = { renderCell, renderDropMarkers };
3278
3284
  const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
3279
3285
  return [
@@ -3281,7 +3287,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
3281
3287
  ];
3282
3288
  }, () => propsMods);
3283
3289
 
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"};
3290
+ var css$w = {"uui-typography":"cFRTw8","uuiTypography":"cFRTw8","hero-header":"LQy-1t","heroHeader":"LQy-1t","promo-header":"MJDqnA","promoHeader":"MJDqnA","uui-critical":"IypTCN","uuiCritical":"IypTCN","uui-info":"ufkSue","uuiInfo":"ufkSue","uui-success":"IxmMXw","uuiSuccess":"IxmMXw","uui-warning":"zuGVsW","uuiWarning":"zuGVsW","uui-highlight":"H9OGSF","uuiHighlight":"H9OGSF","uui-typography-size-12":"_4G7iBd","uuiTypographySize12":"_4G7iBd","uui-typography-size-14":"Odwz48","uuiTypographySize14":"Odwz48","uui-typography-size-16":"QQxNqK","uuiTypographySize16":"QQxNqK","sorting-panel-container":"OntJF0","sortingPanelContainer":"OntJF0"};
3285
3291
 
3286
3292
  var _path$q;
3287
3293
  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 +3417,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
3411
3417
  };
3412
3418
  var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
3413
3419
 
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"};
3420
+ var css$v = {"uui-typography":"bfNiMz","uuiTypography":"bfNiMz","hero-header":"Ix2R6l","heroHeader":"Ix2R6l","promo-header":"I7Ftdd","promoHeader":"I7Ftdd","uui-critical":"NXPIpj","uuiCritical":"NXPIpj","uui-info":"ND3jIx","uuiInfo":"ND3jIx","uui-success":"UJb7ky","uuiSuccess":"UJb7ky","uui-warning":"UtqHT0","uuiWarning":"UtqHT0","uui-highlight":"w4k5pe","uuiHighlight":"w4k5pe","uui-typography-size-12":"OHP904","uuiTypographySize12":"OHP904","uui-typography-size-14":"POdB4-","uuiTypographySize14":"POdB4-","uui-typography-size-16":"y3l3Q-","uuiTypographySize16":"y3l3Q-","root":"NMiTae","caption-wrapper":"WlSFtz","captionWrapper":"WlSFtz","sort-icon":"CsY6Ed","sortIcon":"CsY6Ed","dropdown-icon":"_93W2nm","dropdownIcon":"_93W2nm","infoIcon":"Evaw8Z","resizable":"pSaiNl","align-right":"U3zCYb","alignRight":"U3zCYb","align-center":"_68-NAF","alignCenter":"_68-NAF","caption":"R-EItv","truncate":"LNd8KZ","checkbox":"hMfPqw","icon":"dg9TUY","fold-all-icon":"aTtwBq","foldAllIcon":"aTtwBq","cell-tooltip":"m2DLAt","cellTooltip":"m2DLAt","upper-case":"gnKB7Y","upperCase":"gnKB7Y","resizing-marker":"HN6sWw","resizingMarker":"HN6sWw","pinned-right":"SyH0bm","pinnedRight":"SyH0bm","draggable":"eb9XB1","ghost":"EB4HYG","is-dragged-out":"PpEB00","isDraggedOut":"PpEB00","dnd-marker-left":"YX8tYV","dndMarkerLeft":"YX8tYV","dnd-marker-right":"_5GBIv0","dndMarkerRight":"_5GBIv0","cell-tooltip-wrapper":"T2cE-J","cellTooltipWrapper":"T2cE-J","cell-tooltip-text":"lAfcdU","cellTooltipText":"lAfcdU","tooltip-caption":"rx4MAN","tooltipCaption":"rx4MAN","tooltip-info":"bvcblW","tooltipInfo":"bvcblW"};
3415
3421
 
3416
3422
  class DataTableHeaderCell extends React.Component {
3417
3423
  constructor() {
@@ -3439,7 +3445,7 @@ class DataTableHeaderCell extends React.Component {
3439
3445
  };
3440
3446
  this.renderHeaderCheckbox = () => {
3441
3447
  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) })));
3448
+ 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
3449
  }
3444
3450
  };
3445
3451
  this.renderFoldAllIcon = () => {
@@ -3473,9 +3479,8 @@ class DataTableHeaderCell extends React.Component {
3473
3479
  return columnsGap ? +columnsGap / 2 : settings.sizes.dataTable.header.row.cell.defaults.resizeMarker;
3474
3480
  };
3475
3481
  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);
3482
+ const isResizable = this.props.column.allowResizing ?? this.props.allowColumnsResizing;
3483
+ const onClickEvent = !props.isResizing && (!this.props.column.renderFilter ? props.toggleSort : dropdownProps?.onClick);
3479
3484
  const computeStyles = {
3480
3485
  '--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
3486
  '--uui-dt-header-cell-padding-start': `${this.getLeftPadding()}px`,
@@ -3483,10 +3488,13 @@ class DataTableHeaderCell extends React.Component {
3483
3488
  '--uui-dt-header-cell-resizing-marker-width': `${this.getResizingMarkerWidth()}px`,
3484
3489
  };
3485
3490
  return (React.createElement(DataTableCellContainer, { column: this.props.column, ref: (ref) => {
3486
- var _a;
3487
3491
  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 },
3492
+ dropdownProps?.ref?.(ref);
3493
+ }, 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: {
3494
+ role: 'columnheader',
3495
+ 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none',
3496
+ ...props.eventHandlers,
3497
+ }, style: computeStyles },
3490
3498
  this.renderHeaderCheckbox(),
3491
3499
  this.renderFoldAllIcon(),
3492
3500
  this.getColumnCaption(),
@@ -3498,7 +3506,7 @@ class DataTableHeaderCell extends React.Component {
3498
3506
  if (this.props.column.renderHeaderCell) {
3499
3507
  return this.props.column.renderHeaderCell(this.props);
3500
3508
  }
3501
- return (React.createElement(DataTableHeaderCell$1, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent })));
3509
+ return (React.createElement(DataTableHeaderCell$1, { ...this.props, renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
3502
3510
  }
3503
3511
  }
3504
3512
 
@@ -3517,9 +3525,9 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
3517
3525
  };
3518
3526
  var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
3519
3527
 
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"};
3528
+ var css$u = {"uui-typography":"mgWXfz","uuiTypography":"mgWXfz","hero-header":"C-s3P6","heroHeader":"C-s3P6","promo-header":"aV9ZCl","promoHeader":"aV9ZCl","uui-critical":"_7I-a9f","uuiCritical":"_7I-a9f","uui-info":"AwKlW2","uuiInfo":"AwKlW2","uui-success":"zUE5dc","uuiSuccess":"zUE5dc","uui-warning":"-t1PMm","uuiWarning":"-t1PMm","uui-highlight":"_23-0XK","uuiHighlight":"_23-0XK","uui-typography-size-12":"kV0K28","uuiTypographySize12":"kV0K28","uui-typography-size-14":"US-ZYr","uuiTypographySize14":"US-ZYr","uui-typography-size-16":"_9bsjZe","uuiTypographySize16":"_9bsjZe","root":"xI4lWO"};
3521
3529
 
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"};
3530
+ var css$t = {"uui-typography":"QwffB3","uuiTypography":"QwffB3","hero-header":"gHZLap","heroHeader":"gHZLap","promo-header":"VE7asY","promoHeader":"VE7asY","uui-critical":"_9cBO8t","uuiCritical":"_9cBO8t","uui-info":"XAIsUC","uuiInfo":"XAIsUC","uui-success":"dPeMLF","uuiSuccess":"dPeMLF","uui-warning":"x2CQ-1","uuiWarning":"x2CQ-1","uui-highlight":"y0-8Ck","uuiHighlight":"y0-8Ck","uui-typography-size-12":"FwLHq0","uuiTypographySize12":"FwLHq0","uui-typography-size-14":"FsNrN3","uuiTypographySize14":"FsNrN3","uui-typography-size-16":"L27Q-U","uuiTypographySize16":"L27Q-U","root":"j9rnvX","caption-wrapper":"i50--m","captionWrapper":"i50--m","align-center":"oLZu6X","alignCenter":"oLZu6X","caption":"R3o1y9","truncate":"FkiOLs","group-cell-tooltip":"WZApoA","groupCellTooltip":"WZApoA","upper-case":"NeqCQ2","upperCase":"NeqCQ2","group-cell-tooltip-wrapper":"RV716h","groupCellTooltipWrapper":"RV716h","group-cell-tooltip-text":"U-6LLl","groupCellTooltipText":"U-6LLl","tooltip-caption":"v8mL3U","tooltipCaption":"v8mL3U","tooltip-info":"_3mJoOx","tooltipInfo":"_3mJoOx"};
3523
3531
 
3524
3532
  class DataTableHeaderGroupCell extends React.Component {
3525
3533
  constructor() {
@@ -3558,7 +3566,10 @@ class DataTableHeaderGroupCell extends React.Component {
3558
3566
  };
3559
3567
  return (React.createElement(DataTableCellContainer, { column: this.props.group, ref: (ref) => {
3560
3568
  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()));
3569
+ }, 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: {
3570
+ role: 'columnheader',
3571
+ ...props.eventHandlers,
3572
+ }, style: computeStyles }, this.getColumnCaption()));
3562
3573
  };
3563
3574
  }
3564
3575
  render() {
@@ -3574,8 +3585,8 @@ class DataTableHeaderGroupCell extends React.Component {
3574
3585
  }
3575
3586
 
3576
3587
  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 }))),
3588
+ renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
3589
+ renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap })),
3579
3590
  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
3591
  }));
3581
3592
 
@@ -3584,16 +3595,15 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
3584
3595
  const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
3585
3596
  const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
3586
3597
 
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"};
3598
+ var css$s = {"uui-typography":"Pq6E-m","uuiTypography":"Pq6E-m","hero-header":"qL10cY","heroHeader":"qL10cY","promo-header":"PRe8D8","promoHeader":"PRe8D8","uui-critical":"_6PO9uq","uuiCritical":"_6PO9uq","uui-info":"LK-ia1","uuiInfo":"LK-ia1","uui-success":"t-lku7","uuiSuccess":"t-lku7","uui-warning":"uZvSoz","uuiWarning":"uZvSoz","uui-highlight":"srwnNe","uuiHighlight":"srwnNe","uui-typography-size-12":"uJiE8w","uuiTypographySize12":"uJiE8w","uui-typography-size-14":"_9xSTmy","uuiTypographySize14":"_9xSTmy","uui-typography-size-16":"SeZ5S8","uuiTypographySize16":"SeZ5S8","root":"Fj4oQ-","title-wrapper":"G2i95t","titleWrapper":"G2i95t","title":"J4tXOQ","text-wrapper":"b8MhHd","textWrapper":"b8MhHd","selection":"CMuJMW","postfix":"Z5jYWg","selected":"SB8Nkx"};
3588
3599
 
3589
3600
  const defaultSize = '36';
3590
3601
  const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3591
3602
  const togglerPickerOpened = (e) => {
3592
- var _a;
3593
3603
  if (props.isDisabled)
3594
3604
  return;
3595
3605
  e.preventDefault();
3596
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
3606
+ props.onClick?.();
3597
3607
  };
3598
3608
  const onKeyDownHandler = (e) => {
3599
3609
  if (props.isDisabled)
@@ -3611,12 +3621,12 @@ const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3611
3621
  const getSelectionText = () => props.selection.map((i, index) => (React.createElement(React.Fragment, { key: `${i}${index}` },
3612
3622
  React.createElement(Text, { color: "primary", size: props.size, cx: css$s.selection }, i),
3613
3623
  (props.postfix || index !== props.selection.length - 1) && React.createElement("span", null, ",\u00A0"))));
3614
- return (React.createElement(FlexRow$1, Object.assign({}, props, { rawProps: {
3624
+ return (React.createElement(FlexRow$1, { ...props, rawProps: {
3615
3625
  style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
3616
3626
  role: 'button',
3617
3627
  tabIndex: props.isDisabled ? -1 : 0,
3618
3628
  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 }),
3629
+ }, 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
3630
  React.createElement(FlexRow$1, { cx: css$s.titleWrapper },
3621
3631
  React.createElement(Text, { size: props.size, cx: css$s.title }, getTitle),
3622
3632
  props.selection && (React.createElement("div", { className: css$s.textWrapper },
@@ -3626,12 +3636,10 @@ const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
3626
3636
  });
3627
3637
 
3628
3638
  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 });
3639
+ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
3640
+ const props = { ...restProps, highlightSearchMatches };
3633
3641
  const shouldShowBody = () => props.isOpen;
3634
- const { view, getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput(Object.assign(Object.assign({}, props), { shouldShowBody }));
3642
+ const { view, getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = usePickerInput({ ...props, shouldShowBody });
3635
3643
  const prevValue = usePrevious(props.value);
3636
3644
  const prevOpened = usePrevious(props.isOpen);
3637
3645
  React.useLayoutEffect(() => {
@@ -3651,45 +3659,44 @@ function FilterPickerBody(_a) {
3651
3659
  };
3652
3660
  const renderItem = (item, rowProps, dsState) => {
3653
3661
  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)));
3662
+ 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
3663
  };
3656
3664
  const onSelect = (row) => {
3657
- handleDataSourceValueChange((currentDataSourceState) => (Object.assign(Object.assign({}, currentDataSourceState), { search: '', selectedId: row.id })));
3665
+ handleDataSourceValueChange((currentDataSourceState) => ({ ...currentDataSourceState, search: '', selectedId: row.id }));
3658
3666
  };
3659
3667
  const renderRow = (rowProps, dsState) => {
3660
3668
  if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
3661
3669
  rowProps.onSelect = onSelect;
3662
3670
  }
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) })));
3671
+ 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
3672
  };
3665
3673
  const renderFooter = () => {
3666
- return React.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: settings.sizes.filtersPanel.pickerInput.body.default }));
3674
+ const footerProps = getFooterProps();
3675
+ return props.renderFooter ? props.renderFooter(footerProps) : React.createElement(DataPickerFooter, { ...footerProps, size: settings.sizes.filtersPanel.pickerInput.body.default });
3667
3676
  };
3668
3677
  const renderBody = (bodyProps, rows) => {
3669
3678
  const renderedDataRows = rows.map((props) => renderRow(props, dataSourceState));
3670
3679
  const maxHeight = isMobile() ? document.documentElement.clientHeight : props.maxBodyHeight || pickerHeight;
3671
3680
  const maxWidth = isMobile() ? undefined : 360;
3672
3681
  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" })),
3682
+ React.createElement(DataPickerBody, { ...bodyProps, selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.sizes.filtersPanel.pickerInput.body.default, editMode: "dropdown" }),
3674
3683
  renderFooter()));
3675
3684
  };
3676
3685
  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);
3686
+ return renderBody({ ...getPickerBodyProps(rows), ...getListProps(), showSearch: props.showSearch ?? true }, rows);
3678
3687
  }
3679
3688
 
3680
3689
  function FilterDatePickerBody(props) {
3681
- var _a;
3682
3690
  const { value } = props;
3683
3691
  const context = useUuiContext();
3684
3692
  const handleValueChange = (newValue) => {
3685
- var _a;
3686
3693
  props.onValueChange(newValue);
3687
3694
  if (props.getValueChangeAnalyticsEvent) {
3688
3695
  const event = props.getValueChangeAnalyticsEvent(newValue, value);
3689
3696
  context.uuiAnalytics.sendEvent(event);
3690
3697
  }
3691
3698
  if (newValue) {
3692
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
3699
+ props.onClose?.();
3693
3700
  }
3694
3701
  };
3695
3702
  const handleBodyChange = (newValue) => {
@@ -3699,7 +3706,7 @@ function FilterDatePickerBody(props) {
3699
3706
  };
3700
3707
  return (React__default.createElement(Fragment, null,
3701
3708
  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 })),
3709
+ React__default.createElement(DatePickerBody, { filter: props.filter, value: value, onValueChange: handleBodyChange, renderDay: props.renderDay, isHoliday: props.isHoliday, rawProps: props.rawProps?.body })),
3703
3710
  React__default.createElement(FlexCell, { alignSelf: "stretch" },
3704
3711
  React__default.createElement(FlexRow, { padding: "24", vPadding: "12" },
3705
3712
  React__default.createElement(Text, null, value ? uuiDayjs.dayjs(value).format('MMM DD, YYYY') : ''),
@@ -3714,16 +3721,15 @@ function FilterRangeDatePickerBody(props) {
3714
3721
  const value = _value || defaultRangeValue; // also handles null in comparison to default value
3715
3722
  const context = useUuiContext();
3716
3723
  const onOpenChange = (newIsOpen) => {
3717
- var _a, _b;
3718
3724
  {
3719
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
3725
+ props.onClose?.();
3720
3726
  }
3721
- (_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
3727
+ props.onOpenChange?.(newIsOpen);
3722
3728
  };
3723
3729
  const [inFocus, setInFocus] = useState('from');
3724
3730
  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);
3731
+ const fromChanged = value?.from !== newValue?.from;
3732
+ const toChanged = value?.to !== newValue?.to;
3727
3733
  if (fromChanged || toChanged) {
3728
3734
  props.onValueChange(newValue);
3729
3735
  if (props.getValueChangeAnalyticsEvent) {
@@ -3733,8 +3739,7 @@ function FilterRangeDatePickerBody(props) {
3733
3739
  }
3734
3740
  };
3735
3741
  const onBodyValueChange = (newValue) => {
3736
- var _a;
3737
- setInFocus((_a = newValue.inFocus) !== null && _a !== void 0 ? _a : inFocus);
3742
+ setInFocus(newValue.inFocus ?? inFocus);
3738
3743
  onValueChange(newValue.selectedDate);
3739
3744
  const toChanged = value.to !== newValue.selectedDate.to;
3740
3745
  const closeBody = newValue.selectedDate.from && newValue.selectedDate.to
@@ -3762,30 +3767,28 @@ function FilterRangeDatePickerBody(props) {
3762
3767
  React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
3763
3768
  }
3764
3769
 
3765
- var css$r = {"container":"_0nZcpb"};
3770
+ var css$r = {"container":"s3c6dE"};
3766
3771
 
3767
3772
  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';
3773
+ const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
3770
3774
  const isWrongRange = (from, to) => {
3771
3775
  if (!to && to !== 0)
3772
3776
  return false;
3773
3777
  return from > to;
3774
3778
  };
3775
3779
  const rangeValueHandler = (type) => (val) => {
3776
- var _a, _b;
3777
3780
  const value = props.value;
3778
3781
  switch (type) {
3779
3782
  case 'from': {
3780
3783
  props.onValueChange({
3781
3784
  from: val,
3782
- to: (_a = value === null || value === void 0 ? void 0 : value.to) !== null && _a !== void 0 ? _a : null,
3785
+ to: value?.to ?? null,
3783
3786
  });
3784
3787
  break;
3785
3788
  }
3786
3789
  case 'to': {
3787
3790
  props.onValueChange({
3788
- from: (_b = value === null || value === void 0 ? void 0 : value.from) !== null && _b !== void 0 ? _b : null,
3791
+ from: value?.from ?? null,
3789
3792
  to: val,
3790
3793
  });
3791
3794
  break;
@@ -3816,9 +3819,9 @@ function FilterNumericBody(props) {
3816
3819
  return (React__default.createElement("div", null,
3817
3820
  React__default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$r.container },
3818
3821
  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 } })),
3822
+ React__default.createElement(NumericInput, { value: value?.from ?? null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
3820
3823
  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) }))),
3824
+ 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
3825
  renderFooter()));
3823
3826
  }
3824
3827
  return (React__default.createElement("div", null,
@@ -3831,15 +3834,15 @@ function FilterNumericBody(props) {
3831
3834
  function FilterItemBody(props) {
3832
3835
  switch (props.type) {
3833
3836
  case 'singlePicker':
3834
- return React__default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "single", valueType: "id" }));
3837
+ return React__default.createElement(FilterPickerBody, { ...props, selectionMode: "single", valueType: "id" });
3835
3838
  case 'numeric':
3836
- return React__default.createElement(FilterNumericBody, Object.assign({}, props));
3839
+ return React__default.createElement(FilterNumericBody, { ...props });
3837
3840
  case 'multiPicker':
3838
- return React__default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "multi", valueType: "id" }));
3841
+ return React__default.createElement(FilterPickerBody, { ...props, selectionMode: "multi", valueType: "id" });
3839
3842
  case 'datePicker':
3840
- return React__default.createElement(FilterDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY' }));
3843
+ return React__default.createElement(FilterDatePickerBody, { ...props, format: props.format || 'DD/MM/YYYY' });
3841
3844
  case 'rangeDatePicker':
3842
- return React__default.createElement(FilterRangeDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } }));
3845
+ return React__default.createElement(FilterRangeDatePickerBody, { ...props, format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } });
3843
3846
  case 'custom':
3844
3847
  return props.render(props);
3845
3848
  }
@@ -3860,7 +3863,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
3860
3863
  };
3861
3864
  var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
3862
3865
 
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"};
3866
+ var css$q = {"uui-typography":"HakE-i","uuiTypography":"HakE-i","hero-header":"_3-VTBu","heroHeader":"_3-VTBu","promo-header":"Ya1V7L","promoHeader":"Ya1V7L","uui-critical":"_0yMGTM","uuiCritical":"_0yMGTM","uui-info":"sHo-4T","uuiInfo":"sHo-4T","uui-success":"V8yETW","uuiSuccess":"V8yETW","uui-warning":"NOd84J","uuiWarning":"NOd84J","uui-highlight":"yPUKhm","uuiHighlight":"yPUKhm","uui-typography-size-12":"MR-Eo4","uuiTypographySize12":"MR-Eo4","uui-typography-size-14":"_6J06ot","uuiTypographySize14":"_6J06ot","uui-typography-size-16":"wekIyY","uuiTypographySize16":"wekIyY","header":"DJtr-t","removeButton":"_7ImrsI","with-search":"OlhP3z","withSearch":"OlhP3z"};
3864
3867
 
3865
3868
  function useView(props, value) {
3866
3869
  const forceUpdate = useForceUpdate();
@@ -3875,11 +3878,11 @@ function useView(props, value) {
3875
3878
  dataSourceState.checked = value;
3876
3879
  }
3877
3880
  }
3878
- return useViewFn === null || useViewFn === void 0 ? void 0 : useViewFn(dataSourceState, forceUpdate, { showSelectedOnly: true });
3881
+ return useViewFn?.(dataSourceState, forceUpdate, { showSelectedOnly: true });
3879
3882
  }
3880
3883
  function FiltersToolbarItemImpl(props) {
3881
3884
  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';
3885
+ const isPickersType = props?.type === 'multiPicker' || props?.type === 'singlePicker';
3883
3886
  const isMobileScreen = isMobile();
3884
3887
  const popperModifiers = useMemo(() => {
3885
3888
  const modifiers = [
@@ -3902,11 +3905,10 @@ function FiltersToolbarItemImpl(props) {
3902
3905
  return modifiers;
3903
3906
  }, [isPickersType]);
3904
3907
  const getDefaultPredicate = () => {
3905
- var _a, _b;
3906
3908
  if (!props.predicates) {
3907
3909
  return null;
3908
3910
  }
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);
3911
+ return Object.keys(props.value || {})[0] || props.predicates.find((i) => i.isDefault)?.predicate || props.predicates?.[0].predicate;
3910
3912
  };
3911
3913
  const [isOpen, isOpenChange] = useState(props.autoFocus);
3912
3914
  const [predicate, setPredicate] = useState(getDefaultPredicate());
@@ -3948,23 +3950,19 @@ function FiltersToolbarItemImpl(props) {
3948
3950
  }
3949
3951
  setPredicate(val);
3950
3952
  };
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
- };
3953
+ const renderHeader = (hideTitle) => (React__default.createElement("div", { className: cx(css$q.header, isPickersType && (props.showSearch ?? 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?.isAlwaysVisible && (React__default.createElement(LinkButton, { cx: css$q.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$i }))));
3957
3956
  const renderBody = (dropdownProps) => {
3958
3957
  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) }),
3958
+ return isPickersType ? (React__default.createElement(PickerBodyMobileView, { ...dropdownProps, cx: UUI_FILTERS_PANEL_ITEM_BODY, title: props.title, width: 360, onClose: () => isOpenChange(false) },
3960
3959
  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),
3960
+ React__default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))) : (React__default.createElement(DropdownContainer, { cx: UUI_FILTERS_PANEL_ITEM_BODY, ...dropdownProps },
3962
3961
  renderHeader(hideHeaderTitle),
3963
- React__default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))));
3962
+ React__default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })));
3964
3963
  };
3965
3964
  const getValue = () => {
3966
- var _a;
3967
- return predicate ? (_a = props.value) === null || _a === void 0 ? void 0 : _a[predicate] : props.value;
3965
+ return predicate ? props.value?.[predicate] : props.value;
3968
3966
  };
3969
3967
  const getPickerItemName = (item, config) => {
3970
3968
  if (item.isLoading) {
@@ -3983,13 +3981,13 @@ function FiltersToolbarItemImpl(props) {
3983
3981
  case 'multiPicker': {
3984
3982
  let isLoading = false;
3985
3983
  const selection = currentValue
3986
- ? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, maxCount).map((i) => {
3984
+ ? currentValue?.slice(0, maxCount).map((i) => {
3987
3985
  const item = view.getById(i, null);
3988
- isLoading = item === null || item === void 0 ? void 0 : item.isLoading;
3986
+ isLoading = item?.isLoading;
3989
3987
  return getPickerItemName(item, props);
3990
3988
  })
3991
3989
  : currentValue;
3992
- const postfix = (!isLoading && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
3990
+ const postfix = (!isLoading && currentValue?.length > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
3993
3991
  return { selection, postfix };
3994
3992
  }
3995
3993
  case 'numeric': {
@@ -3999,7 +3997,7 @@ function FiltersToolbarItemImpl(props) {
3999
3997
  return { selection: undefined };
4000
3998
  }
4001
3999
  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)}`
4000
+ ? `${!currentValue?.from && currentValue?.from !== 0 ? 'Min' : decimalFormat(currentValue?.from)} - ${!currentValue?.to && currentValue?.to !== 0 ? 'Max' : decimalFormat(currentValue?.to)}`
4003
4001
  : `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
4004
4002
  return { selection: [selection] };
4005
4003
  }
@@ -4018,11 +4016,11 @@ function FiltersToolbarItemImpl(props) {
4018
4016
  if (!currentValue || (!currentValue.from && !currentValue.to)) {
4019
4017
  return { selection: undefined };
4020
4018
  }
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)
4019
+ const currentValueFrom = currentValue?.from
4020
+ ? uuiDayjs.dayjs(currentValue?.from).format(props.format || defaultFormat)
4023
4021
  : 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)
4022
+ const currentValueTo = currentValue?.to
4023
+ ? uuiDayjs.dayjs(currentValue?.to).format(props.format || defaultFormat)
4026
4024
  : i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
4027
4025
  const selection = `${currentValueFrom} - ${currentValueTo}`;
4028
4026
  return { selection: [selection] };
@@ -4038,7 +4036,7 @@ function FiltersToolbarItemImpl(props) {
4038
4036
  return props.togglerWidth;
4039
4037
  return props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : 300;
4040
4038
  };
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 })));
4039
+ const renderTarget = (dropdownProps) => (React__default.createElement(FilterPanelItemToggler, { ...dropdownProps, ...getTogglerValue(), title: props.title, predicateName: props.value ? predicateName : null, maxWidth: getTogglerWidth(), size: props.size }));
4042
4040
  return (React__default.createElement(Dropdown$1, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !isMobile(), value: isOpen, onValueChange: isOpenChange, modifiers: popperModifiers }));
4043
4041
  }
4044
4042
  const FiltersPanelItem = /* @__PURE__ */React__default.memo(FiltersToolbarItemImpl);
@@ -4105,15 +4103,13 @@ function FiltersToolbarImpl(props) {
4105
4103
  getId: (item) => item.field,
4106
4104
  }, []);
4107
4105
  const onFiltersChange = (updatedFilters) => {
4108
- var _a, _b;
4109
4106
  const newConfig = {};
4110
4107
  const newFilter = {};
4111
- const filtersConfig = Object.values((_a = tableState.filtersConfig) !== null && _a !== void 0 ? _a : {});
4108
+ const filtersConfig = Object.values(tableState.filtersConfig ?? {});
4112
4109
  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;
4110
+ let lastItemOrder = sortedOrders?.length ? sortedOrders[sortedOrders.length - 1]?.order : null;
4114
4111
  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;
4112
+ let order = tableState?.filtersConfig?.[filter?.field]?.order;
4117
4113
  if (!order) {
4118
4114
  order = getOrderBetween(lastItemOrder, null);
4119
4115
  lastItemOrder = order;
@@ -4124,28 +4120,39 @@ function FiltersToolbarImpl(props) {
4124
4120
  newFilter[filter.field] = tableState.filter[filter.field];
4125
4121
  }
4126
4122
  });
4127
- setTableState(Object.assign(Object.assign({}, tableState), { filtersConfig: newConfig, filter: newFilter }));
4123
+ setTableState({
4124
+ ...tableState,
4125
+ filtersConfig: newConfig,
4126
+ filter: newFilter,
4127
+ });
4128
4128
  };
4129
4129
  const handleFilterChange = (newFilter) => {
4130
- const filter = normalizeFilterWithPredicates(Object.assign(Object.assign({}, tableState.filter), newFilter));
4131
- setTableState(Object.assign(Object.assign({}, tableState), { filter: filter }));
4130
+ const filter = normalizeFilterWithPredicates({ ...tableState.filter, ...newFilter });
4131
+ setTableState({
4132
+ ...tableState,
4133
+ filter: filter,
4134
+ });
4132
4135
  };
4133
4136
  const removeFilter = (field) => {
4134
- const filterConfig = Object.assign({}, tableState.filtersConfig);
4137
+ const filterConfig = { ...tableState.filtersConfig };
4135
4138
  delete filterConfig[field];
4136
- const filter = Object.assign({}, tableState.filter);
4139
+ const filter = { ...tableState.filter };
4137
4140
  delete filter[field];
4138
- const newTableState = Object.assign(Object.assign({}, tableState), { filtersConfig: filterConfig, filter: filter });
4139
- setTableState(Object.assign({}, newTableState));
4141
+ const newTableState = {
4142
+ ...tableState,
4143
+ filtersConfig: filterConfig,
4144
+ filter: filter,
4145
+ };
4146
+ setTableState({ ...newTableState });
4140
4147
  };
4141
4148
  const selectedFilters = useMemo(() => {
4142
4149
  const filtersConfig = tableState.filtersConfig || {};
4143
4150
  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);
4151
+ return filter.isAlwaysVisible || (filtersConfig[filter?.field] ? filtersConfig[filter?.field].isVisible : false);
4145
4152
  });
4146
4153
  }, [tableState.filtersConfig, filters]);
4147
4154
  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; });
4155
+ return orderBy(selectedFilters, (f) => tableState.filtersConfig?.[f.field]?.order);
4149
4156
  }, [filters, tableState.filtersConfig]);
4150
4157
  const renderAddFilterToggler = useCallback((togglerProps) => {
4151
4158
  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 +4166,25 @@ function FiltersToolbarImpl(props) {
4159
4166
  }), []);
4160
4167
  const isAllFiltersAlwaysVisible = props.filters.every((i) => i.isAlwaysVisible);
4161
4168
  useEffect(() => {
4162
- var _a, _b;
4163
4169
  if (sortedActiveFilters.length && newFilterId && sortedActiveFilters.find(({ field }) => field === newFilterId)) {
4164
4170
  // PickerInput should be closed after filterId update and opening the filter's body.
4165
4171
  // 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);
4172
+ pickerInputRef.current?.closePickerBody?.();
4167
4173
  // Reset new filter id, after first render with autofocus
4168
4174
  setNewFilterId(null);
4169
4175
  }
4170
4176
  }, [newFilterId, sortedActiveFilters]);
4171
4177
  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) => {
4178
+ sortedActiveFilters.map((f) => (React__default.createElement(FlexCell$1, { width: "auto", key: f.field },
4179
+ React__default.createElement(FiltersPanelItem, { ...f, value: tableState.filter?.[f.field], onValueChange: handleFilterChange, key: f.field, autoFocus: newFilterId === f.field, removeFilter: removeFilter, size: props.size })))),
4180
+ !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
4181
  props.onCheck && props.onCheck(row);
4179
4182
  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 }))));
4183
+ }, 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
4184
  }
4182
4185
  const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
4183
4186
 
4184
- var css$p = {"divider":"t4m0u4","dropdownDeleteIcon":"MztmR2","presetsWrapper":"CYMNjg","addPresetContainer":"Xc4fYF","dropContainer":"EujozW"};
4187
+ var css$p = {"divider":"NsY86Q","dropdownDeleteIcon":"gQGLLu","presetsWrapper":"BkKuEQ","addPresetContainer":"Avklsr","dropContainer":"buEpVj"};
4185
4188
 
4186
4189
  var _path$g;
4187
4190
  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 +4297,31 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
4294
4297
  };
4295
4298
  var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
4296
4299
 
4297
- var css$o = {"delete-button":"VKis39","deleteButton":"VKis39","tab-button":"Dmjc9r","tabButton":"Dmjc9r","targetOpen":"bb1Oir"};
4300
+ var css$o = {"delete-button":"a7rcQx","deleteButton":"a7rcQx","tab-button":"s5vzEm","tabButton":"s5vzEm","targetOpen":"_3nKtqh"};
4298
4301
 
4299
4302
  function PresetActionsDropdown(props) {
4300
4303
  const { uuiNotifications } = useUuiContext();
4301
- const copyUrlToClipboard = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4302
- yield navigator.clipboard.writeText(props.getPresetLink(props.preset));
4304
+ const copyUrlToClipboard = useCallback(async () => {
4305
+ await navigator.clipboard.writeText(props.getPresetLink(props.preset));
4303
4306
  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);
4307
+ }, []);
4308
+ const saveInCurrent = useCallback(async (preset) => {
4309
+ const newPreset = {
4310
+ ...preset,
4311
+ filter: props.tableState.filter,
4312
+ sorting: props.tableState.sorting,
4313
+ columnsConfig: props.tableState.columnsConfig,
4314
+ filtersConfig: props.tableState.filtersConfig,
4315
+ viewState: props.tableState.viewState,
4316
+ };
4317
+ await props.updatePreset(newPreset);
4308
4318
  successNotificationHandler('Changes saved!');
4309
- }), [
4319
+ }, [
4310
4320
  props.tableState.filter, props.tableState.columnsConfig, props.tableState.filtersConfig,
4311
4321
  ]);
4312
4322
  const successNotificationHandler = useCallback((text) => {
4313
4323
  uuiNotifications
4314
- .show((props) => (React__default.createElement(SuccessNotification, Object.assign({}, props),
4324
+ .show((props) => (React__default.createElement(SuccessNotification, { ...props },
4315
4325
  React__default.createElement(Text, { size: "36", fontSize: "14" }, text))), { duration: 3 })
4316
4326
  .catch(() => null);
4317
4327
  }, []);
@@ -4324,16 +4334,16 @@ function PresetActionsDropdown(props) {
4324
4334
  const duplicateHandler = useCallback(() => {
4325
4335
  props.duplicatePreset(props.preset);
4326
4336
  }, [props.preset]);
4327
- const deleteHandler = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4328
- yield props.deletePreset(props.preset);
4329
- }), [
4337
+ const deleteHandler = useCallback(async () => {
4338
+ await props.deletePreset(props.preset);
4339
+ }, [
4330
4340
  props.activePresetId, props.deletePreset, props.preset,
4331
4341
  ]);
4332
4342
  const renderBody = (dropdownProps) => {
4333
4343
  const isReadonlyPreset = props.preset.isReadonly;
4334
4344
  const isPresetChanged = props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset);
4335
4345
  const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
4336
- return (React__default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
4346
+ return (React__default.createElement(DropdownMenuBody, { ...dropdownProps },
4337
4347
  isPresetChanged && (React__default.createElement(React__default.Fragment, null,
4338
4348
  !isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
4339
4349
  React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
@@ -4349,12 +4359,12 @@ function PresetActionsDropdown(props) {
4349
4359
  React__default.createElement(DropdownMenuButton, { icon: ForwardRef$i, caption: "Delete", cx: css$o.deleteButton, onClick: deleteHandler })))));
4350
4360
  };
4351
4361
  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" })));
4362
+ 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
4363
  }, []);
4354
4364
  return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
4355
4365
  }
4356
4366
 
4357
- var css$n = {"preset-input-cell":"_82YUmx","presetInputCell":"_82YUmx","preset-input":"_3zuAZ5","presetInput":"_3zuAZ5"};
4367
+ var css$n = {"preset-input-cell":"uc1qTY","presetInputCell":"uc1qTY","preset-input":"BESZSR","presetInput":"BESZSR"};
4358
4368
 
4359
4369
  const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
4360
4370
  const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
@@ -4362,21 +4372,20 @@ const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
4362
4372
  const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
4363
4373
 
4364
4374
  function PresetInput(props) {
4365
- var _a;
4366
- const [presetCaption, setPresetCaption] = useState(((_a = props.preset) === null || _a === void 0 ? void 0 : _a.name) || '');
4375
+ const [presetCaption, setPresetCaption] = useState(props.preset?.name || '');
4367
4376
  const [readonly, setReadonly] = useState(false);
4368
4377
  const cancelActionHandler = useCallback(() => {
4369
4378
  setPresetCaption('');
4370
4379
  props.onCancel();
4371
4380
  }, [props.onCancel]);
4372
- const acceptActionHandler = useCallback(() => __awaiter(this, void 0, void 0, function* () {
4381
+ const acceptActionHandler = useCallback(async () => {
4373
4382
  setReadonly(() => true);
4374
4383
  if (presetCaption) {
4375
- yield props.onSuccess(presetCaption);
4384
+ await props.onSuccess(presetCaption);
4376
4385
  }
4377
4386
  props.onCancel();
4378
4387
  setReadonly(() => false);
4379
- }), [presetCaption]);
4388
+ }, [presetCaption]);
4380
4389
  const newPresetOnBlurHandler = useCallback(() => {
4381
4390
  if (presetCaption.length) {
4382
4391
  return;
@@ -4387,7 +4396,7 @@ function PresetInput(props) {
4387
4396
  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
4397
  }
4389
4398
 
4390
- var css$m = {"preset":"inMSQG","activePreset":"_4uLHpX"};
4399
+ var css$m = {"preset":"cL478P","activePreset":"Qdt70a"};
4391
4400
 
4392
4401
  function Preset(props) {
4393
4402
  const [isRenamePreset, setIsRenamePreset] = useState(false);
@@ -4401,11 +4410,14 @@ function Preset(props) {
4401
4410
  }
4402
4411
  }, []);
4403
4412
  const handlePresetRename = useCallback((name) => {
4404
- const newPreset = Object.assign(Object.assign({}, props.preset), { name: name });
4413
+ const newPreset = {
4414
+ ...props.preset,
4415
+ name: name,
4416
+ };
4405
4417
  return props.updatePreset(newPreset);
4406
4418
  }, [props.preset]);
4407
4419
  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]);
4420
+ const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, { renamePreset: setPresetForRename, ...props }), [props.preset, props.tableState, props.activePresetId]);
4409
4421
  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
4422
  }
4411
4423
 
@@ -4434,9 +4446,9 @@ function PresetsPanel(props) {
4434
4446
  const cancelAddingPreset = useCallback(() => {
4435
4447
  setIsAddingPreset(false);
4436
4448
  }, []);
4437
- const presetApi = __rest(props, ["presets"]);
4449
+ const { presets, ...presetApi } = props;
4438
4450
  const renderPreset = (preset) => {
4439
- return React__default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
4451
+ return React__default.createElement(Preset, { key: preset.id, preset: preset, addPreset: setAddingPreset, ...presetApi });
4440
4452
  };
4441
4453
  const renderAddPresetButton = useCallback(() => {
4442
4454
  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 +4459,8 @@ function PresetsPanel(props) {
4447
4459
  const renderMoreButtonDropdown = (item, hiddenItems) => {
4448
4460
  return (React__default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__default.createElement(FlexRow, null,
4449
4461
  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)) })))))) }));
4462
+ 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 },
4463
+ 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
4464
  };
4453
4465
  const getPresetPriority = (preset, index) => {
4454
4466
  return preset.id === props.activePresetId ? 100499 : 1000 - index;
@@ -4483,18 +4495,21 @@ const defaultPredicates = {
4483
4495
 
4484
4496
  const useColumnsWithFilters = (initialColumns, filters) => {
4485
4497
  const makeFilterRenderCallback = useCallback((key) => function (filterLens, dropdownProps) {
4486
- const filter = filters === null || filters === void 0 ? void 0 : filters.find((f) => f.columnKey === key);
4498
+ const filter = filters?.find((f) => f.columnKey === key);
4487
4499
  if (!filter)
4488
4500
  return null;
4489
4501
  const props = filterLens.prop(filter.field).toProps();
4490
- return React__default.createElement(FilterItemBody, Object.assign({}, props, filter, dropdownProps));
4502
+ return React__default.createElement(FilterItemBody, { ...props, ...filter, ...dropdownProps });
4491
4503
  }, [filters]);
4492
4504
  const columns = useMemo(() => {
4493
4505
  if (filters) {
4494
4506
  const filterKeys = filters.map((f) => f.columnKey);
4495
4507
  const newColumns = (initialColumns.map((column) => {
4496
4508
  if (filterKeys.includes(column.key)) {
4497
- return Object.assign(Object.assign({}, column), { renderFilter: makeFilterRenderCallback(column.key) });
4509
+ return {
4510
+ ...column,
4511
+ renderFilter: makeFilterRenderCallback(column.key),
4512
+ };
4498
4513
  }
4499
4514
  else {
4500
4515
  return column;
@@ -4562,7 +4577,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
4562
4577
  };
4563
4578
  var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
4564
4579
 
4565
- var css$l = {"unpin-icon":"cf6YMf","unpinIcon":"cf6YMf","pin-toggler-icon":"SYfZIc","pinTogglerIcon":"SYfZIc"};
4580
+ var css$l = {"unpin-icon":"NLUjnv","unpinIcon":"NLUjnv","pin-toggler-icon":"_0oH6AT","pinTogglerIcon":"_0oH6AT"};
4566
4581
 
4567
4582
  function PinIconButton(props) {
4568
4583
  const i18nLocal = i18n.tables.columnsConfigurationModal;
@@ -4621,7 +4636,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
4621
4636
  };
4622
4637
  var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
4623
4638
 
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"};
4639
+ var css$k = {"uui-typography":"sXToSl","uuiTypography":"sXToSl","hero-header":"_2BrBlL","heroHeader":"_2BrBlL","promo-header":"u8UZYs","promoHeader":"u8UZYs","uui-critical":"YPzEL3","uuiCritical":"YPzEL3","uui-info":"_05SGTx","uuiInfo":"_05SGTx","uui-success":"tPe5fM","uuiSuccess":"tPe5fM","uui-warning":"_7ius3W","uuiWarning":"_7ius3W","uui-highlight":"L1opX1","uuiHighlight":"L1opX1","uui-typography-size-12":"HqYRCU","uuiTypographySize12":"HqYRCU","uui-typography-size-14":"HetW8-","uuiTypographySize14":"HetW8-","uui-typography-size-16":"_1q2qcr","uuiTypographySize16":"_1q2qcr","row-wrapper":"_9GM16k","rowWrapper":"_9GM16k","pin-icon-button":"o3JVi-","pinIconButton":"o3JVi-","not-pinned":"psb6FC","notPinned":"psb6FC","checkbox":"xJNPq6","drag-handle":"Nxk1sr","dragHandle":"Nxk1sr","dnd-disabled":"zg4smd","dndDisabled":"zg4smd"};
4625
4640
 
4626
4641
  const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
4627
4642
  const { column } = props;
@@ -4632,19 +4647,19 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
4632
4647
  const data = { column, columnConfig };
4633
4648
  const renderContent = (dndActorParams) => {
4634
4649
  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" },
4650
+ const { onTouchStart, onPointerDown, ...restEventHandlers } = dndActorParams.eventHandlers;
4651
+ const { ref, ...dndActorPropsWithoutRef } = dndActorParams;
4652
+ return (React.createElement(FlexRow, { size: settings.sizes.dataTable.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: { ...restEventHandlers }, alignItems: "top" },
4638
4653
  React.createElement(DragHandle, { dragHandleIcon: ForwardRef$5, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: cx$1(css$k.dragHandle, !isDndAllowed && css$k.dndDisabled) }),
4639
4654
  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
4655
  React.createElement(FlexRow, { size: null, cx: css$k.pinIconButton },
4641
4656
  React.createElement(PinIconButton, { pinPosition: pinPosition, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
4642
- React.createElement(DropMarker, Object.assign({}, dndActorPropsWithoutRef))));
4657
+ React.createElement(DropMarker, { ...dndActorPropsWithoutRef })));
4643
4658
  };
4644
4659
  return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
4645
4660
  });
4646
4661
 
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"};
4662
+ var css$j = {"uui-typography":"O2CpAp","uuiTypography":"O2CpAp","hero-header":"_4bbgm6","heroHeader":"_4bbgm6","promo-header":"C6pBKC","promoHeader":"C6pBKC","uui-critical":"_4rDAwz","uuiCritical":"_4rDAwz","uui-info":"_55QnbU","uuiInfo":"_55QnbU","uui-success":"_--JUmf","uuiSuccess":"_--JUmf","uui-warning":"ikhNfn","uuiWarning":"ikhNfn","uui-highlight":"iIg0U2","uuiHighlight":"iIg0U2","uui-typography-size-12":"_4HriOF","uuiTypographySize12":"_4HriOF","uui-typography-size-14":"hvYwKp","uuiTypographySize14":"hvYwKp","uui-typography-size-16":"RLMulW","uuiTypographySize16":"RLMulW","root":"h7ZsgT","main-panel":"_9h-QAl","mainPanel":"_9h-QAl","group":"z0zAc-","group-title":"yDJlpd","groupTitle":"yDJlpd","group-items":"l1HqL-","groupItems":"l1HqL-","no-data":"gk7pn0","noData":"gk7pn0","no-data-title":"eEw7uz","noDataTitle":"eEw7uz","no-data-sub-title":"wS3M4l","noDataSubTitle":"wS3M4l","h-divider":"_0T56ny","hDivider":"_0T56ny","search-area":"_0Fd462","searchArea":"_0Fd462","subgroup-accordion":"jgr59q","subgroupAccordion":"jgr59q","subgroup":"D-l5JE","subgroup-title":"PNBwRx","subgroupTitle":"PNBwRx"};
4648
4663
 
4649
4664
  const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
4650
4665
  React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
@@ -4652,7 +4667,7 @@ const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx:
4652
4667
  React.createElement(FlexSpacer, null)));
4653
4668
  function ColumnsConfigurationModal(props) {
4654
4669
  const i18n$1 = i18n.tables.columnsConfigurationModal;
4655
- const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
4670
+ const { columns, columnsConfig: initialColumnsConfig, defaultConfig, ...modalProps } = props;
4656
4671
  const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, hasAnySelectedColumns, } = useColumnsConfiguration({
4657
4672
  initialColumnsConfig,
4658
4673
  columns,
@@ -4692,14 +4707,14 @@ function ColumnsConfigurationModal(props) {
4692
4707
  React.createElement(SubGroup, { renderItem: props.renderItem, items: items })));
4693
4708
  };
4694
4709
  const applyButton = React.createElement(Button, { caption: i18n$1.applyButton, isDisabled: !hasAnySelectedColumns, color: "primary", onClick: apply });
4695
- return (React.createElement(ModalBlocker, Object.assign({}, modalProps),
4710
+ return (React.createElement(ModalBlocker, { ...modalProps },
4696
4711
  React.createElement(ModalWindow, { cx: css$j.root, height: "95dvh", maxHeight: "95dvh", width: settings.sizes.dataTable.columnsConfigurationModal.width },
4697
4712
  React.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
4698
4713
  React.createElement(FlexRow, { borderBottom: true, cx: css$j.searchArea },
4699
4714
  React.createElement(SearchInput, { size: settings.sizes.dataTable.columnsConfigurationModal.search, value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
4700
4715
  React.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React.createElement(DropdownMenuBody, { minWidth: 100 },
4701
4716
  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 }))) })),
4717
+ 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
4718
  React.createElement(Panel, { background: "surface-main", cx: css$j.mainPanel },
4704
4719
  React.createElement(ScrollBars, null,
4705
4720
  renderVisible(),
@@ -4733,7 +4748,7 @@ function SubGroup(props) {
4733
4748
  return null;
4734
4749
  }
4735
4750
 
4736
- var css$i = {"listContainer":"hyk6v-","header":"_8DYALG","group":"viPtnd","stickyHeader":"_2dULfL"};
4751
+ var css$i = {"listContainer":"CaJkL-","header":"-QOhAL","group":"lkVq7g","stickyHeader":"_6xC5Sm"};
4737
4752
 
4738
4753
  const getChildrenAndRest = (row, rows) => {
4739
4754
  const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
@@ -4749,9 +4764,8 @@ const getChildrenAndRest = (row, rows) => {
4749
4764
  };
4750
4765
 
4751
4766
  function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
4752
- var _a, _b;
4753
4767
  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;
4768
+ const childrenPinnedTop = row.isPinned ? (top + (rowRef.current?.clientHeight ?? 0)) : top;
4755
4769
  return (React__default.createElement("div", { className: css$i.group, key: row.rowKey },
4756
4770
  React__default.createElement("div", { className: row.isPinned ? css$i.stickyHeader : css$i.header,
4757
4771
  // Gaps between pinned parents should be removed by -1 from top height.
@@ -4782,10 +4796,9 @@ function DataRowsGroups({ rows, renderRow, top = 1, }) {
4782
4796
  }
4783
4797
 
4784
4798
  function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
4785
- var _a;
4786
4799
  return (React__default.createElement("div", { className: css$i.listContainer, style: { minHeight: `${estimatedHeight}px` } },
4787
4800
  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 }))));
4801
+ React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
4789
4802
  }
4790
4803
 
4791
4804
  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 +4812,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4799
4812
  xmlns: "http://www.w3.org/2000/svg",
4800
4813
  ref: ref
4801
4814
  }, props), /*#__PURE__*/React.createElement("g", {
4802
- clipPath: "url(#sn7n3ic4pqzlruud4_a)"
4815
+ clipPath: "url(#z7v0sbayvku4mc68_a)"
4803
4816
  }, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
4804
4817
  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
4818
  fill: "#F5F6FA"
@@ -4820,7 +4833,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4820
4833
  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
4834
  fill: "#1D1E26"
4822
4835
  })), /*#__PURE__*/React.createElement("mask", {
4823
- id: "sn7n3ib94n84i8g8p_b",
4836
+ id: "z7v0sbjimnryz7b6_b",
4824
4837
  style: {
4825
4838
  maskType: "alpha"
4826
4839
  },
@@ -4833,7 +4846,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4833
4846
  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
4847
  fill: "#9BDEFF"
4835
4848
  }))), _g || (_g = /*#__PURE__*/React.createElement("g", {
4836
- mask: "url(#sn7n3ib94n84i8g8p_b)",
4849
+ mask: "url(#z7v0sbjimnryz7b6_b)",
4837
4850
  fillRule: "evenodd",
4838
4851
  clipRule: "evenodd"
4839
4852
  }, /*#__PURE__*/React.createElement("path", {
@@ -4919,7 +4932,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4919
4932
  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
4933
  fill: "#fff"
4921
4934
  }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
4922
- id: "sn7n3ic4pqzlruud4_a"
4935
+ id: "z7v0sbayvku4mc68_a"
4923
4936
  }, /*#__PURE__*/React.createElement("path", {
4924
4937
  fill: "#fff",
4925
4938
  transform: "translate(.552)",
@@ -4928,46 +4941,44 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
4928
4941
  };
4929
4942
  var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
4930
4943
 
4931
- var css$h = {"root":"uMWgnN","sticky-header":"rKECzF","stickyHeader":"rKECzF","no-results":"PO4aRk","noResults":"PO4aRk","icon":"cgkoIv","title":"XLFZH6"};
4944
+ var css$h = {"root":"Ap3iJD","sticky-header":"zj38ZK","stickyHeader":"zj38ZK","no-results":"Ka4hFf","noResults":"Ka4hFf","icon":"QQuNKx","title":"_43mbnv"};
4932
4945
 
4933
4946
  function DataTable(props) {
4934
- var _a, _b, _c, _d;
4935
4947
  const { uuiModals } = useUuiContext();
4936
4948
  const headerRef = React.useRef();
4937
4949
  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);
4950
+ const { columns, config, defaultConfig } = useColumnsConfig(columnsWithFilters, props.value?.columnsConfig);
4939
4951
  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 })));
4952
+ 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
4953
  }, []);
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 : [];
4954
+ const renderRow = (row) => (props.renderRow ?? defaultRenderRow)({ ...row, columns });
4955
+ const rows = props.getRows?.() ?? props.rows ?? [];
4944
4956
  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,
4957
+ return (React.createElement("div", { className: css$h.noResults }, props.renderNoResultsBlock ? (props.renderNoResultsBlock?.()) : (React.createElement(React.Fragment, null,
4947
4958
  React.createElement(IconContainer, { cx: css$h.icon, icon: ForwardRef$4 }),
4948
4959
  React.createElement(Text, { cx: css$h.title, fontSize: "24", lineHeight: "30", color: "primary", fontWeight: "600" }, i18n.tables.noResultsBlock.title),
4949
4960
  React.createElement(Text, { fontSize: "16", lineHeight: "24", color: "primary" }, i18n.tables.noResultsBlock.message)))));
4950
4961
  }, [props.renderNoResultsBlock]);
4951
4962
  const onConfigurationButtonClick = React.useCallback(() => {
4952
- const configProps = { columns: props.columns, columnsConfig: Object.assign({}, config), defaultConfig };
4963
+ const configProps = { columns: props.columns, columnsConfig: { ...config }, defaultConfig };
4953
4964
  uuiModals
4954
4965
  .show((modalProps) => {
4955
4966
  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 }))));
4967
+ ? props.renderColumnsConfigurationModal({ ...configProps, ...modalProps })
4968
+ : (React.createElement(ColumnsConfigurationModal, { ...modalProps, columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig })));
4958
4969
  })
4959
- .then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
4970
+ .then((columnsConfig) => props.onValueChange({ ...props.value, columnsConfig }))
4960
4971
  .catch(() => null);
4961
4972
  }, [
4962
4973
  props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
4963
4974
  ]);
4964
4975
  const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
4965
4976
  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 }),
4977
+ 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
4978
  React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
4968
4979
  [uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
4969
4980
  }) })),
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()))), [
4981
+ props.exactRowsCount !== 0 ? (React.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock?.()))), [
4971
4982
  props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
4972
4983
  ]);
4973
4984
  return (React.createElement(DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
@@ -4979,9 +4990,9 @@ function DataTable(props) {
4979
4990
  } }))));
4980
4991
  }
4981
4992
 
4982
- var css$g = {"root":"V4OjU4"};
4993
+ var css$g = {"root":"qNrCBP"};
4983
4994
 
4984
- var css$f = {"root":"zSIjMr","burger-content":"_5ONd5P","burgerContent":"_5ONd5P"};
4995
+ var css$f = {"root":"GmA-NF","burger-content":"wiKZVH","burgerContent":"wiKZVH"};
4985
4996
 
4986
4997
  var _path$3;
4987
4998
  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 +5035,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
5024
5035
  };
5025
5036
  var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
5026
5037
 
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"};
5038
+ var css$e = {"uui-typography":"G-gjIz","uuiTypography":"G-gjIz","hero-header":"KS3v4S","heroHeader":"KS3v4S","promo-header":"Bt7aAK","promoHeader":"Bt7aAK","uui-critical":"mdJ0At","uuiCritical":"mdJ0At","uui-info":"zWYLkM","uuiInfo":"zWYLkM","uui-success":"a5Az7k","uuiSuccess":"a5Az7k","uui-warning":"BnFRGB","uuiWarning":"BnFRGB","uui-highlight":"MlJQ5K","uuiHighlight":"MlJQ5K","uui-typography-size-12":"_6FTwDt","uuiTypographySize12":"_6FTwDt","uui-typography-size-14":"_0pAh99","uuiTypographySize14":"_0pAh99","uui-typography-size-16":"vq2bZE","uuiTypographySize16":"vq2bZE","root":"GrG3pu","button-primary":"_9pck7d","buttonPrimary":"_9pck7d","button-secondary":"a-Jlwn","buttonSecondary":"a-Jlwn","hasIcon":"OwESOc","dropdown":"uMCdLT"};
5028
5039
 
5029
5040
  const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
5030
5041
  css$e.root,
@@ -5035,13 +5046,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
5035
5046
  props.icon && css$e.hasIcon,
5036
5047
  ], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
5037
5048
 
5038
- var css$d = {"search-input":"IdsMKW","searchInput":"IdsMKW"};
5049
+ var css$d = {"search-input":"rPOjPn","searchInput":"rPOjPn"};
5039
5050
 
5040
5051
  function BurgerSearch(props) {
5041
5052
  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
5053
  }
5043
5054
 
5044
- var css$c = {"root":"VOoNK-","group-header":"JpEiMn","groupHeader":"JpEiMn","group-name":"_9oZZ0R","groupName":"_9oZZ0R","line":"HpmXfD"};
5055
+ var css$c = {"root":"UF6aL1","group-header":"L9Cdn-","groupHeader":"L9Cdn-","group-name":"x-m6d8","groupName":"x-m6d8","line":"-xJC6j"};
5045
5056
 
5046
5057
  function BurgerGroupHeader(props) {
5047
5058
  return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
@@ -5049,15 +5060,21 @@ function BurgerGroupHeader(props) {
5049
5060
  React.createElement("span", { className: css$c.groupName }, props.caption)));
5050
5061
  }
5051
5062
 
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"};
5063
+ var css$b = {"uui-typography":"_55QC3h","uuiTypography":"_55QC3h","hero-header":"KqCV6n","heroHeader":"KqCV6n","promo-header":"EOhurv","promoHeader":"EOhurv","uui-critical":"TrReJX","uuiCritical":"TrReJX","uui-info":"jNiZiI","uuiInfo":"jNiZiI","uui-success":"-l-4Zu","uuiSuccess":"-l-4Zu","uui-warning":"ISwuT0","uuiWarning":"ISwuT0","uui-highlight":"UXyA50","uuiHighlight":"UXyA50","uui-typography-size-12":"Vvupc0","uuiTypographySize12":"Vvupc0","uui-typography-size-14":"DnlfTU","uuiTypographySize14":"DnlfTU","uui-typography-size-16":"LMB-Dw","uuiTypographySize16":"LMB-Dw","root":"Q8fVtx","type-primary":"ECI7yt","typePrimary":"ECI7yt","type-secondary":"xjghv8","typeSecondary":"xjghv8"};
5053
5064
 
5054
5065
  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: [
5066
+ const { type, ...clickableProps } = props;
5067
+ return (React.createElement(Clickable, { ...clickableProps, rawProps: {
5068
+ 'aria-expanded': props.isOpen,
5069
+ 'aria-current': props.isLinkActive
5070
+ ? 'page'
5071
+ : undefined,
5072
+ ...props.rawProps,
5073
+ }, cx: [
5057
5074
  css$b.root,
5058
5075
  css$b['type-' + (type || 'primary')],
5059
5076
  props.cx,
5060
- ], ref: ref }),
5077
+ ], ref: ref },
5061
5078
  props.icon && props.iconPosition !== 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: props.onIconClick })),
5062
5079
  props.caption && (React.createElement("div", { className: uuiElement.caption }, props.caption)),
5063
5080
  props.count !== undefined && props.count !== null && (React.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
@@ -5065,11 +5082,11 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
5065
5082
  props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
5066
5083
  });
5067
5084
 
5068
- var css$a = {"dropdown-body":"annmFL","dropdownBody":"annmFL"};
5085
+ var css$a = {"dropdown-body":"QT6i-w","dropdownBody":"QT6i-w"};
5069
5086
 
5070
5087
  class MainMenuDropdown extends React.Component {
5071
5088
  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) => {
5089
+ 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
5090
  const handleEscape = (e) => {
5074
5091
  if (e.key === 'Escape' && props.isOpen) {
5075
5092
  props.onClose();
@@ -5077,16 +5094,19 @@ class MainMenuDropdown extends React.Component {
5077
5094
  };
5078
5095
  return (React.createElement(FocusLock, { returnFocus: true, persistentFocus: true, lockProps: { onKeyDown: handleEscape } },
5079
5096
  React.createElement("div", { className: cx(css$a.dropdownBody, 'uui-main_menu-dropdown') }, this.props.renderBody
5080
- ? this.props.renderBody(Object.assign({}, props))
5097
+ ? this.props.renderBody({ ...props })
5081
5098
  : React.Children.map(this.props.children, (item) => {
5082
5099
  if (!item)
5083
5100
  return item;
5084
- return React.createElement(item.type, Object.assign(Object.assign({}, item.props), { onClick: item.props.onClick
5101
+ return React.createElement(item.type, {
5102
+ ...item.props,
5103
+ onClick: item.props.onClick
5085
5104
  ? () => {
5086
5105
  item.props.onClick();
5087
5106
  props.onClose();
5088
5107
  }
5089
- : null }));
5108
+ : null,
5109
+ });
5090
5110
  }))));
5091
5111
  }, placement: "bottom-start" }));
5092
5112
  }
@@ -5120,69 +5140,66 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
5120
5140
  };
5121
5141
  var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
5122
5142
 
5123
- var css$9 = {"global-menu-btn":"H5QeUe","globalMenuBtn":"H5QeUe","global-menu-icon":"_1whPkM","globalMenuIcon":"_1whPkM"};
5143
+ var css$9 = {"global-menu-btn":"UJFXPf","globalMenuBtn":"UJFXPf","global-menu-icon":"_0l1W2g","globalMenuIcon":"_0l1W2g"};
5124
5144
 
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),
5145
+ 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
5146
  React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
5127
5147
 
5128
- var css$8 = {"container":"VWM2pz","open":"fmZkwp","folding-arrow":"x55JGF","foldingArrow":"x55JGF"};
5148
+ var css$8 = {"container":"rx3dLP","open":"UksY06","folding-arrow":"Hmcc8U","foldingArrow":"Hmcc8U"};
5129
5149
 
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 },
5150
+ 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
5151
  React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
5132
5152
  props.icon && React.createElement(IconContainer, { icon: props.icon }),
5133
5153
  props.isDropdown && (React.createElement("div", null,
5134
5154
  React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
5135
5155
 
5136
- var css$7 = {"search-input":"cWLbQr","searchInput":"cWLbQr"};
5156
+ var css$7 = {"search-input":"-T8B-P","searchInput":"-T8B-P"};
5137
5157
 
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
- } }))));
5158
+ 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
5159
 
5143
- var css$6 = {"container":"iiAKp-"};
5160
+ var css$6 = {"container":"pN452V"};
5144
5161
 
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))));
5162
+ 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
5163
 
5147
- var css$5 = {"root":"vh7agE"};
5164
+ var css$5 = {"root":"MdxzMF"};
5148
5165
 
5149
5166
  const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
5150
5167
 
5151
5168
  function Form(props) {
5152
5169
  const context = useUuiContext();
5153
5170
  const beforeLeave = React.useCallback(() => {
5154
- return context.uuiModals.show((modalProps) => React.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
5171
+ return context.uuiModals.show((modalProps) => React.createElement(ConfirmationModal, { caption: i18n.form.modals.beforeLeaveMessage, ...modalProps }));
5155
5172
  }, [context.uuiModals]);
5156
5173
  const loadUnsavedChanges = () => {
5157
5174
  return context.uuiNotifications
5158
- .show((props) => (React.createElement(WarningNotification, Object.assign({}, props, { actions: [
5175
+ .show((props) => (React.createElement(WarningNotification, { ...props, actions: [
5159
5176
  {
5160
5177
  name: i18n.form.notifications.actionButtonCaption,
5161
5178
  action: props.onSuccess,
5162
5179
  },
5163
- ] }),
5180
+ ] },
5164
5181
  React.createElement(RichTextView, null,
5165
5182
  React.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
5166
5183
  };
5167
- return React.createElement(Form$1, Object.assign({ loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave }, props));
5184
+ return React.createElement(Form$1, { loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave, ...props });
5168
5185
  }
5169
5186
 
5170
5187
  function useForm(props) {
5171
5188
  const context = useUuiContext();
5172
5189
  const beforeLeave = useCallback(() => {
5173
- return context.uuiModals.show((modalProps) => React__default.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
5190
+ return context.uuiModals.show((modalProps) => React__default.createElement(ConfirmationModal, { caption: i18n.form.modals.beforeLeaveMessage, ...modalProps }));
5174
5191
  }, [context.uuiModals]);
5175
5192
  const loadUnsavedChanges = () => {
5176
- return context.uuiNotifications.show((props) => (React__default.createElement(WarningNotification, Object.assign({}, props, { actions: [
5193
+ return context.uuiNotifications.show((props) => (React__default.createElement(WarningNotification, { ...props, actions: [
5177
5194
  {
5178
5195
  name: i18n.form.notifications.actionButtonCaption,
5179
5196
  action: props.onSuccess,
5180
5197
  },
5181
- ] }),
5198
+ ] },
5182
5199
  React__default.createElement(RichTextView, null,
5183
5200
  React__default.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
5184
5201
  };
5185
- return useForm$1(Object.assign({ beforeLeave, loadUnsavedChanges }, props));
5202
+ return useForm$1({ beforeLeave, loadUnsavedChanges, ...props });
5186
5203
  }
5187
5204
 
5188
5205
  var _path;
@@ -5202,33 +5219,33 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
5202
5219
  };
5203
5220
  var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
5204
5221
 
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"};
5222
+ var css$4 = {"root":"leQoU9","drop-start":"i5rnty","dropStart":"i5rnty","drop-over":"xgmHnJ","dropOver":"xgmHnJ","link":"nBe4uS","drop-area":"e2ww3-","dropArea":"e2ww3-","drop-caption":"P4TAxl","dropCaption":"P4TAxl","icon-blue":"UhBcga","iconBlue":"UhBcga"};
5206
5223
 
5207
5224
  function DropSpot(props) {
5208
5225
  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;
5226
+ ? (React.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", color: "tertiary" }, props.infoText)) : props?.infoText;
5210
5227
  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 }),
5228
+ return (React.createElement("div", { className: cx$1(css$4.root, props.cx, params.isDragStart && css$4.dropStart, params.isDraggingOver && css$4.dropOver), ...props.rawProps },
5229
+ React.createElement("div", { ...params.eventHandlers, className: css$4.dropArea },
5213
5230
  React.createElement(FlexRow, { size: "24" },
5214
5231
  React.createElement(IconContainer, { icon: ForwardRef, cx: css$4.iconBlue }),
5215
5232
  React.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", cx: css$4.dropCaption }, i18n.fileUpload.labelStart),
5216
5233
  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 })),
5234
+ React.createElement(LinkButton, { caption: i18n.fileUpload.browse, ...props, cx: css$4.link }))), accept: props.accept, single: props.single })),
5218
5235
  getInfoText)));
5219
5236
  };
5220
5237
  return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
5221
5238
  }
5222
5239
 
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"};
5240
+ var css$3 = {"uui-typography":"_2bw14-","uuiTypography":"_2bw14-","hero-header":"s0Qm5n","heroHeader":"s0Qm5n","promo-header":"l0njlQ","promoHeader":"l0njlQ","uui-critical":"i-9Umo","uuiCritical":"i-9Umo","uui-info":"hSUZZU","uuiInfo":"hSUZZU","uui-success":"j8dncP","uuiSuccess":"j8dncP","uui-warning":"p7YTPV","uuiWarning":"p7YTPV","uui-highlight":"gjTmkw","uuiHighlight":"gjTmkw","uui-typography-size-12":"qYxWlz","uuiTypographySize12":"qYxWlz","uui-typography-size-14":"SO-hGt","uuiTypographySize14":"SO-hGt","uui-typography-size-16":"mG33ir","uuiTypographySize16":"mG33ir","root":"ZvBlWq","file-name":"yqbE9j","fileName":"yqbE9j","default-color":"CyU4xD","defaultColor":"CyU4xD","doc-color":"fyg24B","docColor":"fyg24B","xls-color":"rJD9oz","xlsColor":"rJD9oz","pdf-color":"hYMeq2","pdfColor":"hYMeq2","movie-color":"eLz3Lf","movieColor":"eLz3Lf","img-color":"e2m2-r","imgColor":"e2m2-r","mov-color":"keKyJB","movColor":"keKyJB","error-block":"_5YZJ8S","errorBlock":"_5YZJ8S","icons-block":"_0RsVZ6","iconsBlock":"_0RsVZ6"};
5224
5241
 
5225
- var css$2 = {"root":"lj1LMF"};
5242
+ var css$2 = {"root":"GD4eHq"};
5226
5243
 
5227
5244
  const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
5228
5245
  const outsetRadius = props.size / 2 - 1;
5229
5246
  const insetRadius = props.size / 2 - 3;
5230
5247
  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),
5248
+ return (React.createElement("svg", { className: css$2.root, width: props.size, height: props.size, ref: ref, ...props.rawProps },
5232
5249
  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
5250
  React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
5234
5251
  });
@@ -5273,8 +5290,8 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
5273
5290
  }
5274
5291
  };
5275
5292
  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('');
5293
+ const fileExtension = extension || name?.split('.').pop();
5294
+ const fileName = name?.split('.').slice(0, -1).join('');
5278
5295
  const isLoading = progress < 100;
5279
5296
  const isCrossShow = ((!isLoadingShow && isLoading) || !isLoading) && onClick;
5280
5297
  const mouseLeaveHandler = (e) => {
@@ -5297,12 +5314,12 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
5297
5314
  progress && progress < 100 && abortXHR();
5298
5315
  onClick();
5299
5316
  };
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 },
5317
+ 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
5318
  React.createElement(FlexRow, { size: "36", alignItems: "top", columnGap: "6" },
5302
5319
  fileExtension && getIcon(fileExtension),
5303
5320
  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()),
5321
+ React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: (progress < 100 || error?.isError) ? 'tertiary' : 'primary', cx: css$3.fileName }, fileName),
5322
+ error?.isError ? renderErrorContent() : renderSuccessfulContent()),
5306
5323
  React.createElement("div", { className: cx$1(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
5307
5324
  isLoadingShow && isLoading && React.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
5308
5325
  isCrossShow && React.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
@@ -5350,7 +5367,7 @@ const getErrorPageConfig = () => ({
5350
5367
  },
5351
5368
  });
5352
5369
 
5353
- var css$1 = {"container":"xgn-pi"};
5370
+ var css$1 = {"container":"MM-FFC"};
5354
5371
 
5355
5372
  const ErrorPage = (props) => {
5356
5373
  const isMobileScreen = isMobile();
@@ -5359,10 +5376,10 @@ const ErrorPage = (props) => {
5359
5376
  React__default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
5360
5377
  React__default.createElement("div", { className: "uui-error-title" }, props.title),
5361
5378
  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))));
5379
+ props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
5363
5380
  };
5364
5381
 
5365
- var css = {"recovery-spinner":"IOcJLD","recoverySpinner":"IOcJLD","recovery-message":"_3nkaAx","recoveryMessage":"_3nkaAx","modal-blocker":"Y6rYRM","modalBlocker":"Y6rYRM","modalFadeIn":"S0Ey6J"};
5382
+ var css = {"recovery-spinner":"YDnh-t","recoverySpinner":"YDnh-t","recovery-message":"z0nPRc","recoveryMessage":"z0nPRc","modal-blocker":"Rh2h7F","modalBlocker":"Rh2h7F","modalFadeIn":"Pj1DLO"};
5366
5383
 
5367
5384
  function ErrorHandler(props) {
5368
5385
  const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
@@ -5377,7 +5394,7 @@ function ErrorHandler(props) {
5377
5394
  props.onNotificationError(c);
5378
5395
  }
5379
5396
  else {
5380
- uuiNotifications.show((notificationProps) => (React__default.createElement(ErrorNotification, Object.assign({}, notificationProps),
5397
+ uuiNotifications.show((notificationProps) => (React__default.createElement(ErrorNotification, { ...notificationProps },
5381
5398
  React__default.createElement(Text, { size: "36" }, c.responseData && c.responseData.errorMessage))));
5382
5399
  }
5383
5400
  c.dismissError();
@@ -5399,7 +5416,7 @@ function ErrorHandler(props) {
5399
5416
  ".")))))));
5400
5417
  };
5401
5418
  const renderErrorPage = (errorInform) => {
5402
- return React__default.createElement(ErrorPage, Object.assign({ cx: props.cx }, errorInform));
5419
+ return React__default.createElement(ErrorPage, { cx: props.cx, ...errorInform });
5403
5420
  };
5404
5421
  if (errorType === 'error') {
5405
5422
  uuiModals.closeAll();