@apia/components 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default, { createContext, useContext, useMemo, useEffect, useState, useRef, forwardRef, useCallback, Children, memo, isValidElement, cloneElement, lazy } from 'react';
3
+ import React__default, { createContext, useContext, useMemo, useEffect, useState, useRef, forwardRef, useCallback, useTransition, useDeferredValue, Children, memo, isValidElement, cloneElement, lazy } from 'react';
4
4
  import { shallowEqual } from '@apia/store';
5
- import { Box, getVariant, Button, Flex, spacing, Spinner, IconButton as IconButton$1, Image, Input, useBreakpointIndex, Close, responsive, Heading, injectStyles, useThemeUI, Select, focusOutline, makeStyledComponent, Label, Progress, Grid } from '@apia/theme';
6
- import { findScrollContainer, getSpecificParent, useUpdateEffect, debugDispatcher, useCombinedRefs, focus, focusSelector, getFocusSelector, screenLocker, customEvents, isChild, getDateFormat, getLabel, persistentStorage, disableChildrenFocus, enableChildrenFocus, EventEmitter, useDebouncedCallback, getIndex, addBoundary, noNaN, useMount, makeSingleImperativeComponent, useLatest, useImperativeComponentEvents, usePrevious } from '@apia/util';
5
+ import { Box, getVariant, Button, Flex, spacing, Spinner, IconButton as IconButton$1, Image, Input, useBreakpointIndex, Close, responsive, Heading, useThemeUI, injectStyles, Select, focusOutline, makeStyledComponent, Label, Progress, Grid } from '@apia/theme';
6
+ import { findScrollContainer, getSpecificParent, getLabel, useUpdateEffect, debugDispatcher, useCombinedRefs, focus, focusSelector, getFocusSelector, screenLocker, customEvents, isChild, getDateFormat, persistentStorage, disableChildrenFocus, enableChildrenFocus, EventEmitter, useDebouncedCallback, getIndex, addBoundary, noNaN, useMount, makeSingleImperativeComponent, useLatest, useImperativeComponentEvents, usePrevious, arrayOrArray } from '@apia/util';
7
7
  import { icons, Icon as Icon$1 } from '@apia/icons';
8
8
  import { uniqueId as uniqueId$1, isFunction as isFunction$1 } from 'lodash-es';
9
9
  import dayjs from 'dayjs';
@@ -16,6 +16,7 @@ import { BarLoader } from 'react-spinners';
16
16
  import AnimateHeight from 'react-animate-height';
17
17
  import { useUpdateEffect as useUpdateEffect$1 } from 'ahooks';
18
18
  import { createFAsomeStore } from '@apia/dom-store';
19
+ import { IconButton as IconButton$2 } from '@apia/components';
19
20
 
20
21
  const AccordionContext = createContext(null);
21
22
  const AccordionItemContext = createContext(null);
@@ -131,25 +132,25 @@ class AccordionHandler {
131
132
  }
132
133
  }
133
134
 
134
- var __defProp$z = Object.defineProperty;
135
- var __defProps$u = Object.defineProperties;
136
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
137
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
138
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
139
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
140
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
141
- var __spreadValues$z = (a, b) => {
135
+ var __defProp$F = Object.defineProperty;
136
+ var __defProps$w = Object.defineProperties;
137
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
138
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
139
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
140
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
141
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
142
+ var __spreadValues$F = (a, b) => {
142
143
  for (var prop in b || (b = {}))
143
- if (__hasOwnProp$A.call(b, prop))
144
- __defNormalProp$z(a, prop, b[prop]);
145
- if (__getOwnPropSymbols$A)
146
- for (var prop of __getOwnPropSymbols$A(b)) {
147
- if (__propIsEnum$A.call(b, prop))
148
- __defNormalProp$z(a, prop, b[prop]);
144
+ if (__hasOwnProp$G.call(b, prop))
145
+ __defNormalProp$F(a, prop, b[prop]);
146
+ if (__getOwnPropSymbols$G)
147
+ for (var prop of __getOwnPropSymbols$G(b)) {
148
+ if (__propIsEnum$G.call(b, prop))
149
+ __defNormalProp$F(a, prop, b[prop]);
149
150
  }
150
151
  return a;
151
152
  };
152
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
153
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
153
154
  const KeyHandler$1 = (props) => {
154
155
  const [ref, setRef] = useState(null);
155
156
  const handler = useAccordionContext();
@@ -195,31 +196,31 @@ const KeyHandler$1 = (props) => {
195
196
  const variant = handler.hooks.usePropsSelector((current) => current.variant);
196
197
  return /* @__PURE__ */ jsx(
197
198
  Box,
198
- __spreadValues$z(__spreadProps$u(__spreadValues$z({}, props), {
199
+ __spreadValues$F(__spreadProps$w(__spreadValues$F({}, props), {
199
200
  ref: setRef
200
201
  }), variant ? getVariant(variant) : void 0)
201
202
  );
202
203
  };
203
204
 
204
- var __defProp$y = Object.defineProperty;
205
- var __defProps$t = Object.defineProperties;
206
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
207
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
208
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
209
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
210
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
211
- var __spreadValues$y = (a, b) => {
205
+ var __defProp$E = Object.defineProperty;
206
+ var __defProps$v = Object.defineProperties;
207
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
208
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
209
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
210
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
211
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
212
+ var __spreadValues$E = (a, b) => {
212
213
  for (var prop in b || (b = {}))
213
- if (__hasOwnProp$z.call(b, prop))
214
- __defNormalProp$y(a, prop, b[prop]);
215
- if (__getOwnPropSymbols$z)
216
- for (var prop of __getOwnPropSymbols$z(b)) {
217
- if (__propIsEnum$z.call(b, prop))
218
- __defNormalProp$y(a, prop, b[prop]);
214
+ if (__hasOwnProp$F.call(b, prop))
215
+ __defNormalProp$E(a, prop, b[prop]);
216
+ if (__getOwnPropSymbols$F)
217
+ for (var prop of __getOwnPropSymbols$F(b)) {
218
+ if (__propIsEnum$F.call(b, prop))
219
+ __defNormalProp$E(a, prop, b[prop]);
219
220
  }
220
221
  return a;
221
222
  };
222
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
223
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
223
224
  function makeRowKey(rowIndex) {
224
225
  return `row_${typeof rowIndex === "number" ? rowIndex : rowIndex.rowIndex}`;
225
226
  }
@@ -257,7 +258,7 @@ function getDistinctors(storeId) {
257
258
  focused: state.focusedRow === distinctions.rowIndex
258
259
  }
259
260
  },
260
- etc: __spreadProps$t(__spreadValues$y({}, state.allowSelection ? {
261
+ etc: __spreadProps$v(__spreadValues$E({}, state.allowSelection ? {
261
262
  "aria-selected": state.selectedRows.includes(
262
263
  distinctions.rowIndex
263
264
  )
@@ -323,7 +324,7 @@ const keysMakers$1 = {
323
324
  };
324
325
  function getInitialState$1(initialState) {
325
326
  var _a, _b, _c;
326
- return __spreadProps$t(__spreadValues$y(__spreadValues$y({}, defaultState), initialState), {
327
+ return __spreadProps$v(__spreadValues$E(__spreadValues$E({}, defaultState), initialState), {
327
328
  searchFunction: (_a = initialState.searchFunction) != null ? _a : (label, searchString) => !!label.match(new RegExp(searchString)),
328
329
  startsWithFunction: (_b = initialState.startsWithFunction) != null ? _b : (label, searchString) => {
329
330
  return label.startsWith(searchString);
@@ -387,33 +388,33 @@ const AccordionItemButton = ({ children }) => {
387
388
  return /* @__PURE__ */ jsx(Fragment, { children });
388
389
  };
389
390
 
390
- var __defProp$x = Object.defineProperty;
391
- var __defProps$s = Object.defineProperties;
392
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
393
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
394
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
395
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
396
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
397
- var __spreadValues$x = (a, b) => {
391
+ var __defProp$D = Object.defineProperty;
392
+ var __defProps$u = Object.defineProperties;
393
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
394
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
395
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
396
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
397
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
398
+ var __spreadValues$D = (a, b) => {
398
399
  for (var prop in b || (b = {}))
399
- if (__hasOwnProp$y.call(b, prop))
400
- __defNormalProp$x(a, prop, b[prop]);
401
- if (__getOwnPropSymbols$y)
402
- for (var prop of __getOwnPropSymbols$y(b)) {
403
- if (__propIsEnum$y.call(b, prop))
404
- __defNormalProp$x(a, prop, b[prop]);
400
+ if (__hasOwnProp$E.call(b, prop))
401
+ __defNormalProp$D(a, prop, b[prop]);
402
+ if (__getOwnPropSymbols$E)
403
+ for (var prop of __getOwnPropSymbols$E(b)) {
404
+ if (__propIsEnum$E.call(b, prop))
405
+ __defNormalProp$D(a, prop, b[prop]);
405
406
  }
406
407
  return a;
407
408
  };
408
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
409
- var __objRest$d = (source, exclude) => {
409
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
410
+ var __objRest$f = (source, exclude) => {
410
411
  var target = {};
411
412
  for (var prop in source)
412
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
413
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
413
414
  target[prop] = source[prop];
414
- if (source != null && __getOwnPropSymbols$y)
415
- for (var prop of __getOwnPropSymbols$y(source)) {
416
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
415
+ if (source != null && __getOwnPropSymbols$E)
416
+ for (var prop of __getOwnPropSymbols$E(source)) {
417
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
417
418
  target[prop] = source[prop];
418
419
  }
419
420
  return target;
@@ -432,7 +433,7 @@ const BaseButton = (_a) => {
432
433
  variant = "primary",
433
434
  type = "button",
434
435
  SXProps
435
- } = _b, buttonProps = __objRest$d(_b, [
436
+ } = _b, buttonProps = __objRest$f(_b, [
436
437
  "id",
437
438
  "name",
438
439
  "onClick",
@@ -447,7 +448,7 @@ const BaseButton = (_a) => {
447
448
  ]);
448
449
  return /* @__PURE__ */ jsx(
449
450
  Button,
450
- __spreadProps$s(__spreadValues$x(__spreadProps$s(__spreadValues$x({
451
+ __spreadProps$u(__spreadValues$D(__spreadProps$u(__spreadValues$D({
451
452
  id,
452
453
  name,
453
454
  onClick
@@ -460,7 +461,7 @@ const BaseButton = (_a) => {
460
461
  Flex,
461
462
  {
462
463
  as: "span",
463
- sx: __spreadValues$x({
464
+ sx: __spreadValues$D({
464
465
  color: "inherit",
465
466
  width: "100%",
466
467
  flexDirection: "row",
@@ -482,33 +483,33 @@ const BaseButton = (_a) => {
482
483
  );
483
484
  };
484
485
 
485
- var __defProp$w = Object.defineProperty;
486
- var __defProps$r = Object.defineProperties;
487
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
488
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
489
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
490
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
491
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
492
- var __spreadValues$w = (a, b) => {
486
+ var __defProp$C = Object.defineProperty;
487
+ var __defProps$t = Object.defineProperties;
488
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
489
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
490
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
491
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
492
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
493
+ var __spreadValues$C = (a, b) => {
493
494
  for (var prop in b || (b = {}))
494
- if (__hasOwnProp$x.call(b, prop))
495
- __defNormalProp$w(a, prop, b[prop]);
496
- if (__getOwnPropSymbols$x)
497
- for (var prop of __getOwnPropSymbols$x(b)) {
498
- if (__propIsEnum$x.call(b, prop))
499
- __defNormalProp$w(a, prop, b[prop]);
495
+ if (__hasOwnProp$D.call(b, prop))
496
+ __defNormalProp$C(a, prop, b[prop]);
497
+ if (__getOwnPropSymbols$D)
498
+ for (var prop of __getOwnPropSymbols$D(b)) {
499
+ if (__propIsEnum$D.call(b, prop))
500
+ __defNormalProp$C(a, prop, b[prop]);
500
501
  }
501
502
  return a;
502
503
  };
503
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
504
- var __objRest$c = (source, exclude) => {
504
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
505
+ var __objRest$e = (source, exclude) => {
505
506
  var target = {};
506
507
  for (var prop in source)
507
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
508
+ if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
508
509
  target[prop] = source[prop];
509
- if (source != null && __getOwnPropSymbols$x)
510
- for (var prop of __getOwnPropSymbols$x(source)) {
511
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
510
+ if (source != null && __getOwnPropSymbols$D)
511
+ for (var prop of __getOwnPropSymbols$D(source)) {
512
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
512
513
  target[prop] = source[prop];
513
514
  }
514
515
  return target;
@@ -534,7 +535,7 @@ const IconButton = React.forwardRef(
534
535
  title,
535
536
  type = "button",
536
537
  variant = "icon"
537
- } = _b, rest = __objRest$c(_b, [
538
+ } = _b, rest = __objRest$e(_b, [
538
539
  "className",
539
540
  "disabled",
540
541
  "icon",
@@ -573,7 +574,7 @@ const IconButton = React.forwardRef(
573
574
  }, [icon]);
574
575
  return /* @__PURE__ */ jsx(
575
576
  IconButton$1,
576
- __spreadProps$r(__spreadValues$w(__spreadProps$r(__spreadValues$w({
577
+ __spreadProps$t(__spreadValues$C(__spreadProps$t(__spreadValues$C({
577
578
  id,
578
579
  ref,
579
580
  onClick: React.useCallback(
@@ -602,33 +603,33 @@ const IconButton = React.forwardRef(
602
603
  );
603
604
  IconButton.displayName = "IconButton";
604
605
 
605
- var __defProp$v = Object.defineProperty;
606
- var __defProps$q = Object.defineProperties;
607
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
608
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
609
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
610
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
611
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
612
- var __spreadValues$v = (a, b) => {
606
+ var __defProp$B = Object.defineProperty;
607
+ var __defProps$s = Object.defineProperties;
608
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
609
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
610
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
611
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
612
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
613
+ var __spreadValues$B = (a, b) => {
613
614
  for (var prop in b || (b = {}))
614
- if (__hasOwnProp$w.call(b, prop))
615
- __defNormalProp$v(a, prop, b[prop]);
616
- if (__getOwnPropSymbols$w)
617
- for (var prop of __getOwnPropSymbols$w(b)) {
618
- if (__propIsEnum$w.call(b, prop))
619
- __defNormalProp$v(a, prop, b[prop]);
615
+ if (__hasOwnProp$C.call(b, prop))
616
+ __defNormalProp$B(a, prop, b[prop]);
617
+ if (__getOwnPropSymbols$C)
618
+ for (var prop of __getOwnPropSymbols$C(b)) {
619
+ if (__propIsEnum$C.call(b, prop))
620
+ __defNormalProp$B(a, prop, b[prop]);
620
621
  }
621
622
  return a;
622
623
  };
623
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
624
- var __objRest$b = (source, exclude) => {
624
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
625
+ var __objRest$d = (source, exclude) => {
625
626
  var target = {};
626
627
  for (var prop in source)
627
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
628
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
628
629
  target[prop] = source[prop];
629
- if (source != null && __getOwnPropSymbols$w)
630
- for (var prop of __getOwnPropSymbols$w(source)) {
631
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
630
+ if (source != null && __getOwnPropSymbols$C)
631
+ for (var prop of __getOwnPropSymbols$C(source)) {
632
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
632
633
  target[prop] = source[prop];
633
634
  }
634
635
  return target;
@@ -640,7 +641,10 @@ const simpleButton = {
640
641
  alignItems: "center",
641
642
  justifyContent: "center",
642
643
  svg: {
643
- flexShrink: 0
644
+ flexShrink: 0,
645
+ path: {
646
+ fill: "currentColor"
647
+ }
644
648
  },
645
649
  ".toggled": {
646
650
  backgroundColor: "primary"
@@ -669,7 +673,7 @@ const SimpleButton = React.forwardRef(
669
673
  title,
670
674
  type = "button",
671
675
  variant = "primary"
672
- } = _b, buttonProps = __objRest$b(_b, [
676
+ } = _b, buttonProps = __objRest$d(_b, [
673
677
  "children",
674
678
  "className",
675
679
  "disabled",
@@ -695,7 +699,8 @@ const SimpleButton = React.forwardRef(
695
699
  right: 0,
696
700
  bottom: 0,
697
701
  display: "flex",
698
- alignItems: "center"
702
+ alignItems: "center",
703
+ justifyContent: "center"
699
704
  }),
700
705
  []
701
706
  );
@@ -708,7 +713,7 @@ const SimpleButton = React.forwardRef(
708
713
  const Icon = React.useMemo(() => icon, [icon]);
709
714
  return /* @__PURE__ */ jsxs(
710
715
  Button,
711
- __spreadProps$q(__spreadValues$v(__spreadValues$v({
716
+ __spreadProps$s(__spreadValues$B(__spreadValues$B({
712
717
  ref,
713
718
  id,
714
719
  name,
@@ -767,25 +772,25 @@ function useOtherTagButton(props) {
767
772
  };
768
773
  }
769
774
 
770
- var __defProp$u = Object.defineProperty;
771
- var __defProps$p = Object.defineProperties;
772
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
773
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
774
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
775
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
776
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
777
- var __spreadValues$u = (a, b) => {
775
+ var __defProp$A = Object.defineProperty;
776
+ var __defProps$r = Object.defineProperties;
777
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
778
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
779
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
780
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
781
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
782
+ var __spreadValues$A = (a, b) => {
778
783
  for (var prop in b || (b = {}))
779
- if (__hasOwnProp$v.call(b, prop))
780
- __defNormalProp$u(a, prop, b[prop]);
781
- if (__getOwnPropSymbols$v)
782
- for (var prop of __getOwnPropSymbols$v(b)) {
783
- if (__propIsEnum$v.call(b, prop))
784
- __defNormalProp$u(a, prop, b[prop]);
784
+ if (__hasOwnProp$B.call(b, prop))
785
+ __defNormalProp$A(a, prop, b[prop]);
786
+ if (__getOwnPropSymbols$B)
787
+ for (var prop of __getOwnPropSymbols$B(b)) {
788
+ if (__propIsEnum$B.call(b, prop))
789
+ __defNormalProp$A(a, prop, b[prop]);
785
790
  }
786
791
  return a;
787
792
  };
788
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
793
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
789
794
  const Captcha = ({
790
795
  name,
791
796
  imageUrl,
@@ -799,7 +804,7 @@ const Captcha = ({
799
804
  };
800
805
  return /* @__PURE__ */ jsxs(
801
806
  Flex,
802
- __spreadProps$p(__spreadValues$u({
807
+ __spreadProps$r(__spreadValues$A({
803
808
  sx: {
804
809
  flexDirection: "column"
805
810
  },
@@ -823,7 +828,7 @@ const Captcha = ({
823
828
  {
824
829
  icon: "Refresh",
825
830
  type: "button",
826
- "aria-label": "TODO: Etiqueta activar audio",
831
+ "aria-label": getLabel("lblCaptchaActivateAudio").text,
827
832
  onClick: handleSyncClick
828
833
  }
829
834
  ),
@@ -832,7 +837,7 @@ const Captcha = ({
832
837
  {
833
838
  icon: "Volume",
834
839
  type: "button",
835
- "aria-label": "TODO: Etiqueta activar audio",
840
+ "aria-label": getLabel("lblCaptchaActivateAudio").text,
836
841
  onClick: () => {
837
842
  }
838
843
  }
@@ -844,33 +849,33 @@ const Captcha = ({
844
849
  );
845
850
  };
846
851
 
847
- var __defProp$t = Object.defineProperty;
848
- var __defProps$o = Object.defineProperties;
849
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
850
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
851
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
852
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
853
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
854
- var __spreadValues$t = (a, b) => {
852
+ var __defProp$z = Object.defineProperty;
853
+ var __defProps$q = Object.defineProperties;
854
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
855
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
856
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
857
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
858
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
859
+ var __spreadValues$z = (a, b) => {
855
860
  for (var prop in b || (b = {}))
856
- if (__hasOwnProp$u.call(b, prop))
857
- __defNormalProp$t(a, prop, b[prop]);
858
- if (__getOwnPropSymbols$u)
859
- for (var prop of __getOwnPropSymbols$u(b)) {
860
- if (__propIsEnum$u.call(b, prop))
861
- __defNormalProp$t(a, prop, b[prop]);
861
+ if (__hasOwnProp$A.call(b, prop))
862
+ __defNormalProp$z(a, prop, b[prop]);
863
+ if (__getOwnPropSymbols$A)
864
+ for (var prop of __getOwnPropSymbols$A(b)) {
865
+ if (__propIsEnum$A.call(b, prop))
866
+ __defNormalProp$z(a, prop, b[prop]);
862
867
  }
863
868
  return a;
864
869
  };
865
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
866
- var __objRest$a = (source, exclude) => {
870
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
871
+ var __objRest$c = (source, exclude) => {
867
872
  var target = {};
868
873
  for (var prop in source)
869
- if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
874
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
870
875
  target[prop] = source[prop];
871
- if (source != null && __getOwnPropSymbols$u)
872
- for (var prop of __getOwnPropSymbols$u(source)) {
873
- if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
876
+ if (source != null && __getOwnPropSymbols$A)
877
+ for (var prop of __getOwnPropSymbols$A(source)) {
878
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
874
879
  target[prop] = source[prop];
875
880
  }
876
881
  return target;
@@ -885,7 +890,7 @@ const Checkbox$1 = forwardRef(
885
890
  name,
886
891
  native,
887
892
  indeterminate
888
- } = _b, props = __objRest$a(_b, [
893
+ } = _b, props = __objRest$c(_b, [
889
894
  "onChange",
890
895
  "required",
891
896
  "disabled",
@@ -932,7 +937,7 @@ const Checkbox$1 = forwardRef(
932
937
  // eslint-disable-next-line react/forbid-elements
933
938
  /* @__PURE__ */ jsx(
934
939
  "input",
935
- __spreadValues$t({
940
+ __spreadValues$z({
936
941
  type: "checkbox",
937
942
  onClick: props.onClick,
938
943
  "aria-checked": isChecked,
@@ -954,7 +959,7 @@ const Checkbox$1 = forwardRef(
954
959
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
955
960
  /* @__PURE__ */ jsx(
956
961
  Button,
957
- __spreadProps$o(__spreadValues$t(__spreadProps$o(__spreadValues$t({}, props), {
962
+ __spreadProps$q(__spreadValues$z(__spreadProps$q(__spreadValues$z({}, props), {
958
963
  onClick: (ev) => {
959
964
  var _a3;
960
965
  if (readOnly) {
@@ -1185,33 +1190,33 @@ function useBodyScrollLock(isLocked) {
1185
1190
  }, [isLocked]);
1186
1191
  }
1187
1192
 
1188
- var __defProp$s = Object.defineProperty;
1189
- var __defProps$n = Object.defineProperties;
1190
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1191
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1192
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1193
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1194
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1195
- var __spreadValues$s = (a, b) => {
1193
+ var __defProp$y = Object.defineProperty;
1194
+ var __defProps$p = Object.defineProperties;
1195
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
1196
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
1197
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
1198
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
1199
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1200
+ var __spreadValues$y = (a, b) => {
1196
1201
  for (var prop in b || (b = {}))
1197
- if (__hasOwnProp$t.call(b, prop))
1198
- __defNormalProp$s(a, prop, b[prop]);
1199
- if (__getOwnPropSymbols$t)
1200
- for (var prop of __getOwnPropSymbols$t(b)) {
1201
- if (__propIsEnum$t.call(b, prop))
1202
- __defNormalProp$s(a, prop, b[prop]);
1202
+ if (__hasOwnProp$z.call(b, prop))
1203
+ __defNormalProp$y(a, prop, b[prop]);
1204
+ if (__getOwnPropSymbols$z)
1205
+ for (var prop of __getOwnPropSymbols$z(b)) {
1206
+ if (__propIsEnum$z.call(b, prop))
1207
+ __defNormalProp$y(a, prop, b[prop]);
1203
1208
  }
1204
1209
  return a;
1205
1210
  };
1206
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1207
- var __objRest$9 = (source, exclude) => {
1211
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
1212
+ var __objRest$b = (source, exclude) => {
1208
1213
  var target = {};
1209
1214
  for (var prop in source)
1210
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
1215
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
1211
1216
  target[prop] = source[prop];
1212
- if (source != null && __getOwnPropSymbols$t)
1213
- for (var prop of __getOwnPropSymbols$t(source)) {
1214
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
1217
+ if (source != null && __getOwnPropSymbols$z)
1218
+ for (var prop of __getOwnPropSymbols$z(source)) {
1219
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
1215
1220
  target[prop] = source[prop];
1216
1221
  }
1217
1222
  return target;
@@ -1227,7 +1232,7 @@ const Overlay = React.forwardRef(
1227
1232
  shouldAvoidInitialFocusTrap,
1228
1233
  stretch,
1229
1234
  transitionDuration = 150
1230
- } = _b, props = __objRest$9(_b, [
1235
+ } = _b, props = __objRest$b(_b, [
1231
1236
  "children",
1232
1237
  "className",
1233
1238
  "onExited",
@@ -1253,7 +1258,7 @@ const Overlay = React.forwardRef(
1253
1258
  unmountOnExit: true,
1254
1259
  children: /* @__PURE__ */ jsx(
1255
1260
  Box,
1256
- __spreadProps$n(__spreadValues$s(__spreadProps$n(__spreadValues$s({
1261
+ __spreadProps$p(__spreadValues$y(__spreadProps$p(__spreadValues$y({
1257
1262
  className: `${className} overlay`,
1258
1263
  ref: assignRefs
1259
1264
  }, props), {
@@ -1397,25 +1402,25 @@ const DialogHeader = ({
1397
1402
  );
1398
1403
  };
1399
1404
 
1400
- var __defProp$r = Object.defineProperty;
1401
- var __defProps$m = Object.defineProperties;
1402
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
1403
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
1404
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
1405
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
1406
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1407
- var __spreadValues$r = (a, b) => {
1405
+ var __defProp$x = Object.defineProperty;
1406
+ var __defProps$o = Object.defineProperties;
1407
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
1408
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1409
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1410
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1411
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1412
+ var __spreadValues$x = (a, b) => {
1408
1413
  for (var prop in b || (b = {}))
1409
- if (__hasOwnProp$s.call(b, prop))
1410
- __defNormalProp$r(a, prop, b[prop]);
1411
- if (__getOwnPropSymbols$s)
1412
- for (var prop of __getOwnPropSymbols$s(b)) {
1413
- if (__propIsEnum$s.call(b, prop))
1414
- __defNormalProp$r(a, prop, b[prop]);
1414
+ if (__hasOwnProp$y.call(b, prop))
1415
+ __defNormalProp$x(a, prop, b[prop]);
1416
+ if (__getOwnPropSymbols$y)
1417
+ for (var prop of __getOwnPropSymbols$y(b)) {
1418
+ if (__propIsEnum$y.call(b, prop))
1419
+ __defNormalProp$x(a, prop, b[prop]);
1415
1420
  }
1416
1421
  return a;
1417
1422
  };
1418
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
1423
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
1419
1424
  const ModalContext = React__default.createContext(
1420
1425
  {}
1421
1426
  );
@@ -1501,7 +1506,7 @@ const Modal = forwardRef(
1501
1506
  getFocusSelector(":not(.modal__closeButton)")
1502
1507
  );
1503
1508
  },
1504
- __spreadProps$m(__spreadValues$r({}, initialFocusConfiguration), { focusEvenWhenScreenLocked: true })
1509
+ __spreadProps$o(__spreadValues$x({}, initialFocusConfiguration), { focusEvenWhenScreenLocked: true })
1505
1510
  );
1506
1511
  }
1507
1512
  }
@@ -1541,7 +1546,7 @@ const Modal = forwardRef(
1541
1546
  nodeRef,
1542
1547
  children: /* @__PURE__ */ jsx(
1543
1548
  Box,
1544
- __spreadProps$m(__spreadValues$r({
1549
+ __spreadProps$o(__spreadValues$x({
1545
1550
  ref: nodeRef,
1546
1551
  className: "modal__variantWrapper"
1547
1552
  }, variant ? getVariant(variant) : {}), {
@@ -1557,7 +1562,7 @@ const Modal = forwardRef(
1557
1562
  className: "modal__main",
1558
1563
  "data-scroll-lock-scrollable": true,
1559
1564
  sx: React__default.useMemo(() => {
1560
- return __spreadValues$r({
1565
+ return __spreadValues$x({
1561
1566
  variant: `layout.common.modals.${size}`
1562
1567
  }, maxWidth !== void 0 ? { maxWidth } : {});
1563
1568
  }, [maxWidth, size]),
@@ -1597,43 +1602,43 @@ const Modal = forwardRef(
1597
1602
  );
1598
1603
  Modal.displayName = "Modal";
1599
1604
 
1600
- var __defProp$q = Object.defineProperty;
1601
- var __defProps$l = Object.defineProperties;
1602
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1603
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
1604
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
1605
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
1606
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1607
- var __spreadValues$q = (a, b) => {
1605
+ var __defProp$w = Object.defineProperty;
1606
+ var __defProps$n = Object.defineProperties;
1607
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
1608
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1609
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1610
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1611
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1612
+ var __spreadValues$w = (a, b) => {
1608
1613
  for (var prop in b || (b = {}))
1609
- if (__hasOwnProp$r.call(b, prop))
1610
- __defNormalProp$q(a, prop, b[prop]);
1611
- if (__getOwnPropSymbols$r)
1612
- for (var prop of __getOwnPropSymbols$r(b)) {
1613
- if (__propIsEnum$r.call(b, prop))
1614
- __defNormalProp$q(a, prop, b[prop]);
1614
+ if (__hasOwnProp$x.call(b, prop))
1615
+ __defNormalProp$w(a, prop, b[prop]);
1616
+ if (__getOwnPropSymbols$x)
1617
+ for (var prop of __getOwnPropSymbols$x(b)) {
1618
+ if (__propIsEnum$x.call(b, prop))
1619
+ __defNormalProp$w(a, prop, b[prop]);
1615
1620
  }
1616
1621
  return a;
1617
1622
  };
1618
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1619
- var __objRest$8 = (source, exclude) => {
1623
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
1624
+ var __objRest$a = (source, exclude) => {
1620
1625
  var target = {};
1621
1626
  for (var prop in source)
1622
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
1627
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
1623
1628
  target[prop] = source[prop];
1624
- if (source != null && __getOwnPropSymbols$r)
1625
- for (var prop of __getOwnPropSymbols$r(source)) {
1626
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
1629
+ if (source != null && __getOwnPropSymbols$x)
1630
+ for (var prop of __getOwnPropSymbols$x(source)) {
1631
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
1627
1632
  target[prop] = source[prop];
1628
1633
  }
1629
1634
  return target;
1630
1635
  };
1631
1636
  const CalendarModal = React__default.forwardRef(
1632
1637
  (_a, ref) => {
1633
- var _b = _a, { handleClickDay, onCancel, calValue, locale, size } = _b, props = __objRest$8(_b, ["handleClickDay", "onCancel", "calValue", "locale", "size"]);
1638
+ var _b = _a, { handleClickDay, onCancel, calValue, locale, size } = _b, props = __objRest$a(_b, ["handleClickDay", "onCancel", "calValue", "locale", "size"]);
1634
1639
  return /* @__PURE__ */ jsx(
1635
1640
  Modal,
1636
- __spreadProps$l(__spreadValues$q({
1641
+ __spreadProps$n(__spreadValues$w({
1637
1642
  noHeader: true,
1638
1643
  size: size != null ? size : "cal",
1639
1644
  shouldCloseOnEsc: true,
@@ -1663,25 +1668,25 @@ const CalendarModal = React__default.forwardRef(
1663
1668
  );
1664
1669
  CalendarModal.displayName = "CalendarModal";
1665
1670
 
1666
- var __defProp$p = Object.defineProperty;
1667
- var __defProps$k = Object.defineProperties;
1668
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1669
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
1670
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
1671
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
1672
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1673
- var __spreadValues$p = (a, b) => {
1674
- for (var prop in b || (b = {}))
1675
- if (__hasOwnProp$q.call(b, prop))
1676
- __defNormalProp$p(a, prop, b[prop]);
1677
- if (__getOwnPropSymbols$q)
1678
- for (var prop of __getOwnPropSymbols$q(b)) {
1679
- if (__propIsEnum$q.call(b, prop))
1680
- __defNormalProp$p(a, prop, b[prop]);
1671
+ var __defProp$v = Object.defineProperty;
1672
+ var __defProps$m = Object.defineProperties;
1673
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
1674
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1675
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1676
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1677
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1678
+ var __spreadValues$v = (a, b) => {
1679
+ for (var prop in b || (b = {}))
1680
+ if (__hasOwnProp$w.call(b, prop))
1681
+ __defNormalProp$v(a, prop, b[prop]);
1682
+ if (__getOwnPropSymbols$w)
1683
+ for (var prop of __getOwnPropSymbols$w(b)) {
1684
+ if (__propIsEnum$w.call(b, prop))
1685
+ __defNormalProp$v(a, prop, b[prop]);
1681
1686
  }
1682
1687
  return a;
1683
1688
  };
1684
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1689
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
1685
1690
  function useModal(configuration) {
1686
1691
  var _a, _b, _c;
1687
1692
  const [isLoading, setIsLoading] = React__default.useState(false);
@@ -1692,7 +1697,7 @@ function useModal(configuration) {
1692
1697
  Portal,
1693
1698
  hide: hidePortal,
1694
1699
  show: showPortal
1695
- } = usePortal(__spreadProps$k(__spreadValues$p({}, configuration == null ? void 0 : configuration.portalArgs), {
1700
+ } = usePortal(__spreadProps$m(__spreadValues$v({}, configuration == null ? void 0 : configuration.portalArgs), {
1696
1701
  containerId: "AppModals",
1697
1702
  autoRemoveContainer: false,
1698
1703
  escToHide: false,
@@ -1749,32 +1754,32 @@ function useModal(configuration) {
1749
1754
  };
1750
1755
  }
1751
1756
 
1752
- var __defProp$o = Object.defineProperty;
1753
- var __defProps$j = Object.defineProperties;
1754
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1755
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
1756
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
1757
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
1758
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1759
- var __spreadValues$o = (a, b) => {
1757
+ var __defProp$u = Object.defineProperty;
1758
+ var __defProps$l = Object.defineProperties;
1759
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1760
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1761
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1762
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1763
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1764
+ var __spreadValues$u = (a, b) => {
1760
1765
  for (var prop in b || (b = {}))
1761
- if (__hasOwnProp$p.call(b, prop))
1762
- __defNormalProp$o(a, prop, b[prop]);
1763
- if (__getOwnPropSymbols$p)
1764
- for (var prop of __getOwnPropSymbols$p(b)) {
1765
- if (__propIsEnum$p.call(b, prop))
1766
- __defNormalProp$o(a, prop, b[prop]);
1766
+ if (__hasOwnProp$v.call(b, prop))
1767
+ __defNormalProp$u(a, prop, b[prop]);
1768
+ if (__getOwnPropSymbols$v)
1769
+ for (var prop of __getOwnPropSymbols$v(b)) {
1770
+ if (__propIsEnum$v.call(b, prop))
1771
+ __defNormalProp$u(a, prop, b[prop]);
1767
1772
  }
1768
1773
  return a;
1769
1774
  };
1770
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1775
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1771
1776
  const DialogButtonBar = ({
1772
1777
  children,
1773
1778
  className
1774
1779
  }) => {
1775
1780
  return /* @__PURE__ */ jsx(
1776
1781
  Box,
1777
- __spreadProps$j(__spreadValues$o({
1782
+ __spreadProps$l(__spreadValues$u({
1778
1783
  className: `${className != null ? className : ""} buttonsBar`
1779
1784
  }, getVariant("layout.common.modals.buttonsBar")), {
1780
1785
  children
@@ -1782,76 +1787,46 @@ const DialogButtonBar = ({
1782
1787
  );
1783
1788
  };
1784
1789
 
1785
- var __defProp$n = Object.defineProperty;
1786
- var __defProps$i = Object.defineProperties;
1787
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1788
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
1789
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
1790
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
1791
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1792
- var __spreadValues$n = (a, b) => {
1790
+ var __defProp$t = Object.defineProperty;
1791
+ var __defProps$k = Object.defineProperties;
1792
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1793
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
1794
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
1795
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
1796
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1797
+ var __spreadValues$t = (a, b) => {
1793
1798
  for (var prop in b || (b = {}))
1794
- if (__hasOwnProp$o.call(b, prop))
1795
- __defNormalProp$n(a, prop, b[prop]);
1796
- if (__getOwnPropSymbols$o)
1797
- for (var prop of __getOwnPropSymbols$o(b)) {
1798
- if (__propIsEnum$o.call(b, prop))
1799
- __defNormalProp$n(a, prop, b[prop]);
1799
+ if (__hasOwnProp$u.call(b, prop))
1800
+ __defNormalProp$t(a, prop, b[prop]);
1801
+ if (__getOwnPropSymbols$u)
1802
+ for (var prop of __getOwnPropSymbols$u(b)) {
1803
+ if (__propIsEnum$u.call(b, prop))
1804
+ __defNormalProp$t(a, prop, b[prop]);
1800
1805
  }
1801
1806
  return a;
1802
1807
  };
1803
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1804
- function getConfirmButton(ref) {
1805
- return ref == null ? void 0 : ref.querySelector('button[type="submit"]');
1806
- }
1807
- injectStyles("layout.common.modals.confirm", {
1808
- display: "flex",
1809
- flexDirection: "column",
1810
- gap: spacing(4),
1811
- width: "100%",
1812
- ".confirm__content": {
1813
- overflow: "auto",
1814
- flexBasis: "100%",
1815
- wordBreak: "break-word",
1816
- display: "flex",
1817
- flexDirection: "column"
1818
- },
1819
- ".confirm__buttonBar": {
1820
- display: "flex",
1821
- justifyContent: "space-between",
1822
- flexBasis: "40px",
1823
- flexGrow: 0,
1824
- flexShrink: 0,
1825
- ".confirm__defaultButtons": {
1826
- display: "flex",
1827
- gap: spacing(3)
1828
- },
1829
- ".confirm__customButtons": {
1830
- width: "auto"
1831
- }
1832
- }
1833
- });
1808
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1834
1809
  const Confirm = ({
1810
+ children,
1835
1811
  additionalButtons,
1836
1812
  additionalButtonsOnRight,
1837
- children,
1838
- confirmButtonText: confirmText = window.BTN_CONFIRM,
1839
- cancelButtonText: cancelText = window.BTN_CANCEL,
1840
- confirmButtonVariant: confirmType = "primary",
1813
+ cancelButtonText: cancelText = getLabel("btnCan").text,
1814
+ className,
1815
+ confirmButtonText: confirmText = getLabel("btnCon").text,
1816
+ confirmButtonVariant = "primary",
1817
+ contentRef,
1841
1818
  disabled,
1842
1819
  hideCancelButton,
1843
1820
  hideConfirmButton,
1844
- onConfirm: onConfirmOk,
1845
- onCancel: onConfirmCancel,
1846
1821
  isLoading,
1847
- contentRef,
1848
- className,
1822
+ onCancel,
1823
+ onConfirm,
1849
1824
  variant
1850
1825
  }) => {
1851
- const { descriptionId } = React.useContext(ModalContext);
1826
+ const { descriptionId } = useContext(ModalContext);
1852
1827
  return /* @__PURE__ */ jsxs(
1853
1828
  Box,
1854
- __spreadProps$i(__spreadValues$n({}, getVariant(variant != null ? variant : "layout.common.modals.confirm")), {
1829
+ __spreadProps$k(__spreadValues$t({}, getVariant(variant != null ? variant : "layout.common.modals.confirm")), {
1855
1830
  className: `${className != null ? className : ""} confirm`,
1856
1831
  children: [
1857
1832
  /* @__PURE__ */ jsx(Box, { ref: contentRef, className: "confirm__content", id: descriptionId, children }),
@@ -1860,14 +1835,12 @@ const Confirm = ({
1860
1835
  Box,
1861
1836
  {
1862
1837
  className: "confirm__customButtons",
1863
- onClick: React.useCallback(
1838
+ onClick: useCallback(
1864
1839
  (ev) => {
1865
- if (getSpecificParent(ev.target, (current) => {
1866
- return current.tagName === "BUTTON";
1867
- }))
1868
- onConfirmCancel == null ? void 0 : onConfirmCancel(ev);
1840
+ if (ev.target.closest("button"))
1841
+ onCancel == null ? void 0 : onCancel();
1869
1842
  },
1870
- [onConfirmCancel]
1843
+ [onCancel]
1871
1844
  ),
1872
1845
  children: additionalButtons
1873
1846
  }
@@ -1877,14 +1850,12 @@ const Confirm = ({
1877
1850
  Box,
1878
1851
  {
1879
1852
  className: "confirm__customButtonsOnRight",
1880
- onClick: React.useCallback(
1853
+ onClick: useCallback(
1881
1854
  (ev) => {
1882
- if (getSpecificParent(ev.target, (current) => {
1883
- return current.tagName === "BUTTON";
1884
- }))
1885
- onConfirmCancel == null ? void 0 : onConfirmCancel(ev);
1855
+ if (ev.target.closest("button"))
1856
+ onCancel == null ? void 0 : onCancel();
1886
1857
  },
1887
- [onConfirmCancel]
1858
+ [onCancel]
1888
1859
  ),
1889
1860
  children: additionalButtonsOnRight
1890
1861
  }
@@ -1892,9 +1863,9 @@ const Confirm = ({
1892
1863
  !hideConfirmButton && /* @__PURE__ */ jsx(
1893
1864
  SimpleButton,
1894
1865
  {
1895
- onClick: onConfirmOk,
1866
+ onClick: onConfirm,
1896
1867
  title: confirmText,
1897
- variant: confirmType,
1868
+ variant: confirmButtonVariant,
1898
1869
  disabled: isLoading != null ? isLoading : disabled,
1899
1870
  isLoading,
1900
1871
  className: "confirm__confirmButton",
@@ -1902,10 +1873,10 @@ const Confirm = ({
1902
1873
  children: confirmText
1903
1874
  }
1904
1875
  ),
1905
- onConfirmCancel && !hideCancelButton && /* @__PURE__ */ jsx(
1876
+ onCancel && !hideCancelButton && /* @__PURE__ */ jsx(
1906
1877
  SimpleButton,
1907
- __spreadProps$i(__spreadValues$n({
1908
- onClick: onConfirmCancel,
1878
+ __spreadProps$k(__spreadValues$t({
1879
+ onClick: onCancel,
1909
1880
  title: cancelText
1910
1881
  }, getVariant("secondary")), {
1911
1882
  disabled: isLoading,
@@ -1946,25 +1917,25 @@ const LinearLoader = () => {
1946
1917
  );
1947
1918
  };
1948
1919
 
1949
- var __defProp$m = Object.defineProperty;
1950
- var __defProps$h = Object.defineProperties;
1951
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
1952
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
1953
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
1954
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
1955
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1956
- var __spreadValues$m = (a, b) => {
1920
+ var __defProp$s = Object.defineProperty;
1921
+ var __defProps$j = Object.defineProperties;
1922
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1923
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
1924
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
1925
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
1926
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1927
+ var __spreadValues$s = (a, b) => {
1957
1928
  for (var prop in b || (b = {}))
1958
- if (__hasOwnProp$n.call(b, prop))
1959
- __defNormalProp$m(a, prop, b[prop]);
1960
- if (__getOwnPropSymbols$n)
1961
- for (var prop of __getOwnPropSymbols$n(b)) {
1962
- if (__propIsEnum$n.call(b, prop))
1963
- __defNormalProp$m(a, prop, b[prop]);
1929
+ if (__hasOwnProp$t.call(b, prop))
1930
+ __defNormalProp$s(a, prop, b[prop]);
1931
+ if (__getOwnPropSymbols$t)
1932
+ for (var prop of __getOwnPropSymbols$t(b)) {
1933
+ if (__propIsEnum$t.call(b, prop))
1934
+ __defNormalProp$s(a, prop, b[prop]);
1964
1935
  }
1965
1936
  return a;
1966
1937
  };
1967
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
1938
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1968
1939
  const ScreenLock = () => {
1969
1940
  const ref = React__default.useRef(null);
1970
1941
  const [hasReleasedFirstTime, setHasReleasedFirstTime] = useState(false);
@@ -1977,11 +1948,11 @@ const ScreenLock = () => {
1977
1948
  React__default.useEffect(() => {
1978
1949
  const suscriptions = [
1979
1950
  screenLocker.on("lockStateChange", (ev) => {
1980
- setLocks((current) => __spreadProps$h(__spreadValues$m({}, current), { [ev.lockName]: ev.isLocked }));
1951
+ setLocks((current) => __spreadProps$j(__spreadValues$s({}, current), { [ev.lockName]: ev.isLocked }));
1981
1952
  setHasReleasedFirstTime(ev.hasReleasedFirstTime);
1982
1953
  }),
1983
1954
  screenLocker.on("forcedStateChange", (ev) => {
1984
- setLocks((current) => __spreadProps$h(__spreadValues$m({}, current), { forced: ev.isForced }));
1955
+ setLocks((current) => __spreadProps$j(__spreadValues$s({}, current), { forced: ev.isForced }));
1985
1956
  setHasReleasedFirstTime(ev.hasReleasedFirstTime);
1986
1957
  })
1987
1958
  ];
@@ -2044,33 +2015,33 @@ const FieldErrorMessage = ({ children, name }) => {
2044
2015
  return null;
2045
2016
  };
2046
2017
 
2047
- var __defProp$l = Object.defineProperty;
2048
- var __defProps$g = Object.defineProperties;
2049
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
2050
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
2051
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
2052
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
2053
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2054
- var __spreadValues$l = (a, b) => {
2018
+ var __defProp$r = Object.defineProperty;
2019
+ var __defProps$i = Object.defineProperties;
2020
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
2021
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
2022
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
2023
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
2024
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2025
+ var __spreadValues$r = (a, b) => {
2055
2026
  for (var prop in b || (b = {}))
2056
- if (__hasOwnProp$m.call(b, prop))
2057
- __defNormalProp$l(a, prop, b[prop]);
2058
- if (__getOwnPropSymbols$m)
2059
- for (var prop of __getOwnPropSymbols$m(b)) {
2060
- if (__propIsEnum$m.call(b, prop))
2061
- __defNormalProp$l(a, prop, b[prop]);
2027
+ if (__hasOwnProp$s.call(b, prop))
2028
+ __defNormalProp$r(a, prop, b[prop]);
2029
+ if (__getOwnPropSymbols$s)
2030
+ for (var prop of __getOwnPropSymbols$s(b)) {
2031
+ if (__propIsEnum$s.call(b, prop))
2032
+ __defNormalProp$r(a, prop, b[prop]);
2062
2033
  }
2063
2034
  return a;
2064
2035
  };
2065
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
2066
- var __objRest$7 = (source, exclude) => {
2036
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
2037
+ var __objRest$9 = (source, exclude) => {
2067
2038
  var target = {};
2068
2039
  for (var prop in source)
2069
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
2040
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
2070
2041
  target[prop] = source[prop];
2071
- if (source != null && __getOwnPropSymbols$m)
2072
- for (var prop of __getOwnPropSymbols$m(source)) {
2073
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
2042
+ if (source != null && __getOwnPropSymbols$s)
2043
+ for (var prop of __getOwnPropSymbols$s(source)) {
2044
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
2074
2045
  target[prop] = source[prop];
2075
2046
  }
2076
2047
  return target;
@@ -2092,7 +2063,7 @@ const IconInput = (_a) => {
2092
2063
  onClick,
2093
2064
  onBlur,
2094
2065
  readOnly
2095
- } = _b, rest = __objRest$7(_b, [
2066
+ } = _b, rest = __objRest$9(_b, [
2096
2067
  "additionalButtons",
2097
2068
  "additionalButtonsPosition",
2098
2069
  "buttonProps",
@@ -2109,7 +2080,7 @@ const IconInput = (_a) => {
2109
2080
  "onBlur",
2110
2081
  "readOnly"
2111
2082
  ]);
2112
- const _a2 = inputProps != null ? inputProps : {}, { sx: inputSx } = _a2, actualInputProps = __objRest$7(_a2, ["sx"]);
2083
+ const _a2 = inputProps != null ? inputProps : {}, { sx: inputSx } = _a2, actualInputProps = __objRest$9(_a2, ["sx"]);
2113
2084
  const innerButtonRef = React__default.useRef(null);
2114
2085
  const assignButtonRef = useCombinedRefs(buttonRef, innerButtonRef);
2115
2086
  const innerInputRef = React__default.useRef(null);
@@ -2127,25 +2098,25 @@ const IconInput = (_a) => {
2127
2098
  );
2128
2099
  return /* @__PURE__ */ jsxs(
2129
2100
  Box,
2130
- __spreadProps$g(__spreadValues$l({}, getVariant("forms.iconInput")), {
2101
+ __spreadProps$i(__spreadValues$r({}, getVariant("forms.iconInput")), {
2131
2102
  className: `${className != null ? className : ""} iconInput`,
2132
2103
  ref: parentRef,
2133
2104
  onBlur: handleBlur,
2134
2105
  children: [
2135
2106
  /* @__PURE__ */ jsx(
2136
2107
  Input,
2137
- __spreadValues$l(__spreadValues$l({
2108
+ __spreadValues$r(__spreadValues$r({
2138
2109
  disabled: isLoading != null ? isLoading : disabled,
2139
2110
  ref: assignInputRef,
2140
2111
  readOnly,
2141
- sx: __spreadValues$l({ variant: "forms.input" }, inputSx),
2112
+ sx: __spreadValues$r({ variant: "forms.input" }, inputSx),
2142
2113
  "data-variant": "forms.input"
2143
2114
  }, rest), actualInputProps)
2144
2115
  ),
2145
2116
  additionalButtonsPosition === "before" && additionalButtons,
2146
2117
  !hideButton && /* @__PURE__ */ jsx(
2147
2118
  IconButton,
2148
- __spreadValues$l({
2119
+ __spreadValues$r({
2149
2120
  onClick,
2150
2121
  icon,
2151
2122
  disabled: readOnly != null ? readOnly : disabled,
@@ -2174,33 +2145,33 @@ const getFieldTouchedStyles = (isTouched) => {
2174
2145
  };
2175
2146
  };
2176
2147
 
2177
- var __defProp$k = Object.defineProperty;
2178
- var __defProps$f = Object.defineProperties;
2179
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
2180
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
2181
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
2182
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
2183
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2184
- var __spreadValues$k = (a, b) => {
2148
+ var __defProp$q = Object.defineProperty;
2149
+ var __defProps$h = Object.defineProperties;
2150
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2151
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
2152
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
2153
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
2154
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2155
+ var __spreadValues$q = (a, b) => {
2185
2156
  for (var prop in b || (b = {}))
2186
- if (__hasOwnProp$l.call(b, prop))
2187
- __defNormalProp$k(a, prop, b[prop]);
2188
- if (__getOwnPropSymbols$l)
2189
- for (var prop of __getOwnPropSymbols$l(b)) {
2190
- if (__propIsEnum$l.call(b, prop))
2191
- __defNormalProp$k(a, prop, b[prop]);
2157
+ if (__hasOwnProp$r.call(b, prop))
2158
+ __defNormalProp$q(a, prop, b[prop]);
2159
+ if (__getOwnPropSymbols$r)
2160
+ for (var prop of __getOwnPropSymbols$r(b)) {
2161
+ if (__propIsEnum$r.call(b, prop))
2162
+ __defNormalProp$q(a, prop, b[prop]);
2192
2163
  }
2193
2164
  return a;
2194
2165
  };
2195
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
2196
- var __objRest$6 = (source, exclude) => {
2166
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
2167
+ var __objRest$8 = (source, exclude) => {
2197
2168
  var target = {};
2198
2169
  for (var prop in source)
2199
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
2170
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
2200
2171
  target[prop] = source[prop];
2201
- if (source != null && __getOwnPropSymbols$l)
2202
- for (var prop of __getOwnPropSymbols$l(source)) {
2203
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
2172
+ if (source != null && __getOwnPropSymbols$r)
2173
+ for (var prop of __getOwnPropSymbols$r(source)) {
2174
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
2204
2175
  target[prop] = source[prop];
2205
2176
  }
2206
2177
  return target;
@@ -2228,7 +2199,7 @@ const DateInput = React__default.forwardRef(
2228
2199
  onError,
2229
2200
  renderLabel,
2230
2201
  value: outerValue
2231
- } = _b, props = __objRest$6(_b, [
2202
+ } = _b, props = __objRest$8(_b, [
2232
2203
  "allowPickBeforeToday",
2233
2204
  "buttonProps",
2234
2205
  "className",
@@ -2260,7 +2231,7 @@ const DateInput = React__default.forwardRef(
2260
2231
  resolve();
2261
2232
  });
2262
2233
  }
2263
- }), { show, hide } = _a2, modalProps = __objRest$6(_a2, ["show", "hide"]);
2234
+ }), { show, hide } = _a2, modalProps = __objRest$8(_a2, ["show", "hide"]);
2264
2235
  const [stateError, setError] = React__default.useState(error != null ? error : null);
2265
2236
  const lastEmittedValue = React__default.useRef(outerValue != null ? outerValue : "");
2266
2237
  useUpdateEffect(() => {
@@ -2348,7 +2319,7 @@ const DateInput = React__default.forwardRef(
2348
2319
  [id, onBlur]
2349
2320
  );
2350
2321
  const inputProps = React__default.useMemo(
2351
- () => __spreadProps$f(__spreadValues$k({}, props), {
2322
+ () => __spreadProps$h(__spreadValues$q({}, props), {
2352
2323
  className: "dateInput",
2353
2324
  value: renderLabel ? renderLabel(inputValue) : inputValue,
2354
2325
  ref,
@@ -2380,7 +2351,7 @@ const DateInput = React__default.forwardRef(
2380
2351
  const buttonProps = React__default.useMemo(
2381
2352
  () => {
2382
2353
  var _a3;
2383
- return __spreadValues$k({
2354
+ return __spreadValues$q({
2384
2355
  disabled: (_a3 = props.disabled) != null ? _a3 : props.readOnly,
2385
2356
  "aria-label": window.LBL_PICK_DATE
2386
2357
  }, outerButtonProps);
@@ -2408,7 +2379,7 @@ const DateInput = React__default.forwardRef(
2408
2379
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2409
2380
  /* @__PURE__ */ jsx(
2410
2381
  CalendarModal,
2411
- __spreadProps$f(__spreadValues$k({}, modalProps), {
2382
+ __spreadProps$h(__spreadValues$q({}, modalProps), {
2412
2383
  calValue,
2413
2384
  locale: DEFAULT_LOCALE,
2414
2385
  handleClickDay: selectDate,
@@ -2418,7 +2389,7 @@ const DateInput = React__default.forwardRef(
2418
2389
  ),
2419
2390
  /* @__PURE__ */ jsxs(
2420
2391
  Box,
2421
- __spreadProps$f(__spreadValues$k({}, getVariant("forms.dateInput")), {
2392
+ __spreadProps$h(__spreadValues$q({}, getVariant("forms.dateInput")), {
2422
2393
  className: `${className != null ? className : ""} dateInput`,
2423
2394
  id: `DateInput${id}`,
2424
2395
  ref: boxRef,
@@ -2451,33 +2422,33 @@ const DateInput = React__default.forwardRef(
2451
2422
  );
2452
2423
  DateInput.displayName = "DateInput";
2453
2424
 
2454
- var __defProp$j = Object.defineProperty;
2455
- var __defProps$e = Object.defineProperties;
2456
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2457
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
2458
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
2459
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
2460
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2461
- var __spreadValues$j = (a, b) => {
2425
+ var __defProp$p = Object.defineProperty;
2426
+ var __defProps$g = Object.defineProperties;
2427
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
2428
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
2429
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
2430
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
2431
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2432
+ var __spreadValues$p = (a, b) => {
2462
2433
  for (var prop in b || (b = {}))
2463
- if (__hasOwnProp$k.call(b, prop))
2464
- __defNormalProp$j(a, prop, b[prop]);
2465
- if (__getOwnPropSymbols$k)
2466
- for (var prop of __getOwnPropSymbols$k(b)) {
2467
- if (__propIsEnum$k.call(b, prop))
2468
- __defNormalProp$j(a, prop, b[prop]);
2434
+ if (__hasOwnProp$q.call(b, prop))
2435
+ __defNormalProp$p(a, prop, b[prop]);
2436
+ if (__getOwnPropSymbols$q)
2437
+ for (var prop of __getOwnPropSymbols$q(b)) {
2438
+ if (__propIsEnum$q.call(b, prop))
2439
+ __defNormalProp$p(a, prop, b[prop]);
2469
2440
  }
2470
2441
  return a;
2471
2442
  };
2472
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2473
- var __objRest$5 = (source, exclude) => {
2443
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
2444
+ var __objRest$7 = (source, exclude) => {
2474
2445
  var target = {};
2475
2446
  for (var prop in source)
2476
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2447
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
2477
2448
  target[prop] = source[prop];
2478
- if (source != null && __getOwnPropSymbols$k)
2479
- for (var prop of __getOwnPropSymbols$k(source)) {
2480
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2449
+ if (source != null && __getOwnPropSymbols$q)
2450
+ for (var prop of __getOwnPropSymbols$q(source)) {
2451
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
2481
2452
  target[prop] = source[prop];
2482
2453
  }
2483
2454
  return target;
@@ -2557,7 +2528,7 @@ function formatValueToShow(value, avoidDecimalRestriction = false) {
2557
2528
  }
2558
2529
  const NumberInput = React__default.forwardRef(
2559
2530
  (_a, ref) => {
2560
- var _b = _a, { value, avoidDecimalRestriction } = _b, props = __objRest$5(_b, ["value", "avoidDecimalRestriction"]);
2531
+ var _b = _a, { value, avoidDecimalRestriction } = _b, props = __objRest$7(_b, ["value", "avoidDecimalRestriction"]);
2561
2532
  const [actualValue, setActualValue] = React__default.useState("");
2562
2533
  const [showValue, setShowValue] = React__default.useState("");
2563
2534
  const lastEmittedValue = React__default.useRef("");
@@ -2597,7 +2568,7 @@ const NumberInput = React__default.forwardRef(
2597
2568
  }, [value]);
2598
2569
  return /* @__PURE__ */ jsx(
2599
2570
  Input,
2600
- __spreadProps$e(__spreadValues$j({}, props), {
2571
+ __spreadProps$g(__spreadValues$p({}, props), {
2601
2572
  onFocus: React__default.useCallback(
2602
2573
  (ev) => {
2603
2574
  var _a2;
@@ -2637,33 +2608,33 @@ const RequiredMark = ({
2637
2608
  return isRequired && !isReadonly && !isFormReadonly ? /* @__PURE__ */ jsx("abbr", { className: "requiredMark", title: getLabel("msgReqField").text, children: "*" }) : null;
2638
2609
  };
2639
2610
 
2640
- var __defProp$i = Object.defineProperty;
2641
- var __defProps$d = Object.defineProperties;
2642
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2643
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2644
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2645
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2646
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2647
- var __spreadValues$i = (a, b) => {
2611
+ var __defProp$o = Object.defineProperty;
2612
+ var __defProps$f = Object.defineProperties;
2613
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
2614
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
2615
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
2616
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
2617
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2618
+ var __spreadValues$o = (a, b) => {
2648
2619
  for (var prop in b || (b = {}))
2649
- if (__hasOwnProp$j.call(b, prop))
2650
- __defNormalProp$i(a, prop, b[prop]);
2651
- if (__getOwnPropSymbols$j)
2652
- for (var prop of __getOwnPropSymbols$j(b)) {
2653
- if (__propIsEnum$j.call(b, prop))
2654
- __defNormalProp$i(a, prop, b[prop]);
2620
+ if (__hasOwnProp$p.call(b, prop))
2621
+ __defNormalProp$o(a, prop, b[prop]);
2622
+ if (__getOwnPropSymbols$p)
2623
+ for (var prop of __getOwnPropSymbols$p(b)) {
2624
+ if (__propIsEnum$p.call(b, prop))
2625
+ __defNormalProp$o(a, prop, b[prop]);
2655
2626
  }
2656
2627
  return a;
2657
2628
  };
2658
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2659
- var __objRest$4 = (source, exclude) => {
2629
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
2630
+ var __objRest$6 = (source, exclude) => {
2660
2631
  var target = {};
2661
2632
  for (var prop in source)
2662
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
2633
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
2663
2634
  target[prop] = source[prop];
2664
- if (source != null && __getOwnPropSymbols$j)
2665
- for (var prop of __getOwnPropSymbols$j(source)) {
2666
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
2635
+ if (source != null && __getOwnPropSymbols$p)
2636
+ for (var prop of __getOwnPropSymbols$p(source)) {
2637
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
2667
2638
  target[prop] = source[prop];
2668
2639
  }
2669
2640
  return target;
@@ -2687,7 +2658,7 @@ const FieldLabel = forwardRef(
2687
2658
  label,
2688
2659
  required,
2689
2660
  requiredMarkPosition = "after"
2690
- } = _b, props = __objRest$4(_b, [
2661
+ } = _b, props = __objRest$6(_b, [
2691
2662
  "as",
2692
2663
  "avoidSemicolon",
2693
2664
  "children",
@@ -2700,7 +2671,7 @@ const FieldLabel = forwardRef(
2700
2671
  var _a2, _b2;
2701
2672
  return /* @__PURE__ */ jsxs(
2702
2673
  Box,
2703
- __spreadProps$d(__spreadValues$i(__spreadProps$d(__spreadValues$i({
2674
+ __spreadProps$f(__spreadValues$o(__spreadProps$f(__spreadValues$o({
2704
2675
  as: as != null ? as : "label"
2705
2676
  }, props), {
2706
2677
  className: `fieldLabel ${(_a2 = props.className) != null ? _a2 : ""}`
@@ -2775,6 +2746,224 @@ function useIsChecked(props) {
2775
2746
  ];
2776
2747
  }
2777
2748
 
2749
+ const AutoEllipsis = ({
2750
+ children,
2751
+ findParent,
2752
+ overrideStyles
2753
+ }) => {
2754
+ const unsuscribe = useRef(() => {
2755
+ });
2756
+ const clone = useRef(null);
2757
+ const ref = useCallback(
2758
+ (el) => {
2759
+ if (!el)
2760
+ return;
2761
+ unsuscribe.current();
2762
+ function handleMouseEnter() {
2763
+ var _a;
2764
+ clone.current = el.cloneNode(true);
2765
+ Object.entries(window.getComputedStyle((_a = findParent == null ? void 0 : findParent(el)) != null ? _a : el)).forEach(
2766
+ ([name, value]) => {
2767
+ if (name.match(/webkit/))
2768
+ return;
2769
+ try {
2770
+ clone.current.style[name] = value;
2771
+ } catch (e) {
2772
+ }
2773
+ }
2774
+ );
2775
+ const bound = el.getBoundingClientRect();
2776
+ clone.current.style.position = "fixed";
2777
+ clone.current.style.left = `${bound.left - 1}px`;
2778
+ clone.current.style.top = `${bound.top - 1}px`;
2779
+ clone.current.style.width = `${bound.width + 8}px`;
2780
+ clone.current.style.whiteSpace = "break-spaces";
2781
+ clone.current.style.overflow = "visible";
2782
+ clone.current.style.textOverflow = "unset";
2783
+ clone.current.style.background = "var(--theme-ui-colors-palette-background-paper)";
2784
+ clone.current.style.color = "var(--theme-ui-colors-palette-text-primary)";
2785
+ clone.current.style.border = "1px solid";
2786
+ clone.current.style.borderColor = "var(--theme-ui-colors-palette-border-field)";
2787
+ clone.current.style.zIndex = "1000000";
2788
+ clone.current.style.height = "auto";
2789
+ clone.current.style.fill = "var(--theme-ui-colors-palette-text-primary)";
2790
+ clone.current.style.pointerEvents = "none";
2791
+ const overridenStyles = overrideStyles == null ? void 0 : overrideStyles(el);
2792
+ if (overridenStyles) {
2793
+ Object.entries(overridenStyles).forEach(([name, value]) => {
2794
+ if (name.match(/webkit/))
2795
+ return;
2796
+ try {
2797
+ clone.current.style[name] = value;
2798
+ } catch (e) {
2799
+ }
2800
+ });
2801
+ }
2802
+ clone.current.addEventListener("mouseleave", (ev) => {
2803
+ var _a2;
2804
+ if (isChild(
2805
+ ev.relatedTarget,
2806
+ (current) => current === el
2807
+ ))
2808
+ return;
2809
+ (_a2 = clone.current) == null ? void 0 : _a2.remove();
2810
+ });
2811
+ function close() {
2812
+ var _a2;
2813
+ (_a2 = clone.current) == null ? void 0 : _a2.remove();
2814
+ document.removeEventListener("scroll", close);
2815
+ }
2816
+ document.addEventListener("scroll", close);
2817
+ document.body.append(clone.current);
2818
+ const cloneBounding = clone.current.getBoundingClientRect();
2819
+ const difX = Math.abs(cloneBounding.width - bound.width);
2820
+ const difY = Math.abs(cloneBounding.height - bound.height);
2821
+ if (difX < 10 && difY < 10) {
2822
+ clone.current.remove();
2823
+ }
2824
+ }
2825
+ function handleMouseLeave(ev) {
2826
+ var _a;
2827
+ if (isChild(
2828
+ ev.relatedTarget,
2829
+ (current) => current === clone.current
2830
+ ))
2831
+ return;
2832
+ (_a = clone.current) == null ? void 0 : _a.remove();
2833
+ }
2834
+ el.addEventListener("mouseenter", handleMouseEnter);
2835
+ el.addEventListener("mouseleave", handleMouseLeave);
2836
+ unsuscribe.current = () => {
2837
+ el.removeEventListener("mouseenter", handleMouseEnter);
2838
+ el.removeEventListener("mouseleave", handleMouseLeave);
2839
+ };
2840
+ },
2841
+ [findParent, overrideStyles]
2842
+ );
2843
+ useEffect(() => {
2844
+ return () => {
2845
+ var _a;
2846
+ (_a = clone.current) == null ? void 0 : _a.remove();
2847
+ };
2848
+ }, []);
2849
+ return /* @__PURE__ */ jsx(
2850
+ Box,
2851
+ {
2852
+ ref,
2853
+ sx: {
2854
+ overflow: "hidden",
2855
+ textOverflow: "ellipsis",
2856
+ whiteSpace: "nowrap"
2857
+ },
2858
+ className: "autoellipsis__container",
2859
+ children
2860
+ }
2861
+ );
2862
+ };
2863
+
2864
+ var __defProp$n = Object.defineProperty;
2865
+ var __defProps$e = Object.defineProperties;
2866
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
2867
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
2868
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
2869
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
2870
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2871
+ var __spreadValues$n = (a, b) => {
2872
+ for (var prop in b || (b = {}))
2873
+ if (__hasOwnProp$o.call(b, prop))
2874
+ __defNormalProp$n(a, prop, b[prop]);
2875
+ if (__getOwnPropSymbols$o)
2876
+ for (var prop of __getOwnPropSymbols$o(b)) {
2877
+ if (__propIsEnum$o.call(b, prop))
2878
+ __defNormalProp$n(a, prop, b[prop]);
2879
+ }
2880
+ return a;
2881
+ };
2882
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2883
+ function calcBreakPoint(currentWidth, breakPoints) {
2884
+ let currentIndex = 0;
2885
+ while (currentIndex < breakPoints.length && currentWidth > breakPoints[currentIndex])
2886
+ currentIndex++;
2887
+ return currentIndex;
2888
+ }
2889
+ const makeResponsiveComponent = ({
2890
+ breakPoints,
2891
+ Component,
2892
+ defaultBreakpoint
2893
+ }) => {
2894
+ const setBreakpoints = {
2895
+ current: () => {
2896
+ }
2897
+ };
2898
+ return Object.assign(
2899
+ function ResponsiveComponent(props) {
2900
+ var _a;
2901
+ const [breakPoint, setCurrentBreakpoint] = useState(
2902
+ defaultBreakpoint != null ? defaultBreakpoint : 4
2903
+ );
2904
+ const [innerBreakpoints, setInnerBreakpoints] = useState(
2905
+ (_a = props.breakPoints) != null ? _a : breakPoints
2906
+ );
2907
+ setBreakpoints.current = setInnerBreakpoints;
2908
+ const [containerWidth, setContainerWidth] = useState(
2909
+ breakPoints[defaultBreakpoint != null ? defaultBreakpoint : 4]
2910
+ );
2911
+ const observer = useRef(null);
2912
+ const shouldDisconnect = useRef(false);
2913
+ const [hasRendered, setHasRendered] = useState(false);
2914
+ const [, startTransition] = useTransition();
2915
+ const ref = useCallback(
2916
+ (element) => {
2917
+ var _a2;
2918
+ if (!element)
2919
+ return;
2920
+ (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
2921
+ observer.current = new ResizeObserver((resizeProps) => {
2922
+ if (resizeProps[0].contentRect.width === 0)
2923
+ return;
2924
+ startTransition(() => {
2925
+ setContainerWidth(resizeProps[0].contentRect.width);
2926
+ setCurrentBreakpoint(
2927
+ calcBreakPoint(
2928
+ resizeProps[0].contentRect.width,
2929
+ innerBreakpoints
2930
+ )
2931
+ );
2932
+ setHasRendered(true);
2933
+ });
2934
+ });
2935
+ if (element)
2936
+ observer.current.observe(element);
2937
+ },
2938
+ [innerBreakpoints]
2939
+ );
2940
+ useEffect(() => {
2941
+ shouldDisconnect.current = false;
2942
+ return () => {
2943
+ shouldDisconnect.current = true;
2944
+ setTimeout(() => {
2945
+ var _a2;
2946
+ if (shouldDisconnect.current) {
2947
+ (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
2948
+ }
2949
+ }, 2e3);
2950
+ };
2951
+ }, [innerBreakpoints]);
2952
+ const deferBreakPoint = useDeferredValue(breakPoint);
2953
+ const deferContainerWidth = useDeferredValue(containerWidth);
2954
+ return /* @__PURE__ */ jsx(Box, { ref, children: hasRendered ? /* @__PURE__ */ jsx(
2955
+ Component,
2956
+ __spreadProps$e(__spreadValues$n({}, props), {
2957
+ breakPoint: deferBreakPoint,
2958
+ breakPointWidth: breakPoints[deferBreakPoint],
2959
+ containerWidth: deferContainerWidth
2960
+ })
2961
+ ) : null });
2962
+ },
2963
+ { setBreakpoints }
2964
+ );
2965
+ };
2966
+
2778
2967
  const DefaultAccordionItemButton = (props) => {
2779
2968
  var _a, _b, _c;
2780
2969
  const handler = useAccordionContext();
@@ -2796,6 +2985,7 @@ const DefaultAccordionItemButton = (props) => {
2796
2985
  "aria-checked": isChecked,
2797
2986
  title: props.title,
2798
2987
  "aria-label": props.ariaLabel,
2988
+ tabIndex: props.tabIndex,
2799
2989
  children: [
2800
2990
  /* @__PURE__ */ jsxs(Box, { className: "accordion__item__button__leftGroup", children: [
2801
2991
  props.checked !== void 0 && /* @__PURE__ */ jsx(
@@ -2806,13 +2996,14 @@ const DefaultAccordionItemButton = (props) => {
2806
2996
  onChange: setIsChecked
2807
2997
  }
2808
2998
  ),
2809
- /* @__PURE__ */ jsx(Box, { as: "h3", className: "accordion__item__button__label", children: (_b = (_a = props.label) != null ? _a : props.title) != null ? _b : props.ariaLabel })
2999
+ /* @__PURE__ */ jsx(Box, { as: "h3", className: "accordion__item__button__label", children: /* @__PURE__ */ jsx(AutoEllipsis, { overrideStyles: () => ({ textAlign: "left" }), children: (_b = (_a = props.label) != null ? _a : props.title) != null ? _b : props.ariaLabel }) })
2810
3000
  ] }),
2811
3001
  /* @__PURE__ */ jsx(Box, { className: "accordion__item__button__rightGroup", children: /* @__PURE__ */ jsx(
2812
3002
  Icon$1,
2813
3003
  {
2814
- name: isExpanded ? "Minus" : "Plus",
2815
- title: (_c = props.title) != null ? _c : props.ariaLabel
3004
+ name: isExpanded ? "ArrowUpThin" : "ArrowDownThin",
3005
+ title: (_c = props.title) != null ? _c : props.ariaLabel,
3006
+ size: 23
2816
3007
  }
2817
3008
  ) })
2818
3009
  ]
@@ -2820,19 +3011,19 @@ const DefaultAccordionItemButton = (props) => {
2820
3011
  );
2821
3012
  };
2822
3013
 
2823
- var __defProp$h = Object.defineProperty;
2824
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2825
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2826
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2827
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2828
- var __spreadValues$h = (a, b) => {
3014
+ var __defProp$m = Object.defineProperty;
3015
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3016
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3017
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3018
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3019
+ var __spreadValues$m = (a, b) => {
2829
3020
  for (var prop in b || (b = {}))
2830
- if (__hasOwnProp$i.call(b, prop))
2831
- __defNormalProp$h(a, prop, b[prop]);
2832
- if (__getOwnPropSymbols$i)
2833
- for (var prop of __getOwnPropSymbols$i(b)) {
2834
- if (__propIsEnum$i.call(b, prop))
2835
- __defNormalProp$h(a, prop, b[prop]);
3021
+ if (__hasOwnProp$n.call(b, prop))
3022
+ __defNormalProp$m(a, prop, b[prop]);
3023
+ if (__getOwnPropSymbols$n)
3024
+ for (var prop of __getOwnPropSymbols$n(b)) {
3025
+ if (__propIsEnum$n.call(b, prop))
3026
+ __defNormalProp$m(a, prop, b[prop]);
2836
3027
  }
2837
3028
  return a;
2838
3029
  };
@@ -2852,7 +3043,7 @@ const AccordionItemContent = ({
2852
3043
  return true;
2853
3044
  });
2854
3045
  if (button === null && buttonProps)
2855
- button = /* @__PURE__ */ jsx(DefaultAccordionItemButton, __spreadValues$h({}, buttonProps));
3046
+ button = /* @__PURE__ */ jsx(DefaultAccordionItemButton, __spreadValues$m({}, buttonProps));
2856
3047
  const handler = useAccordionContext();
2857
3048
  const isExpanded = handler.hooks.useItemStateSelector(
2858
3049
  (current) => current.isExpanded
@@ -2876,33 +3067,33 @@ const AccordionItemContent = ({
2876
3067
  ] });
2877
3068
  };
2878
3069
 
2879
- var __defProp$g = Object.defineProperty;
2880
- var __defProps$c = Object.defineProperties;
2881
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2882
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2883
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2884
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2885
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2886
- var __spreadValues$g = (a, b) => {
3070
+ var __defProp$l = Object.defineProperty;
3071
+ var __defProps$d = Object.defineProperties;
3072
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3073
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
3074
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
3075
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
3076
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3077
+ var __spreadValues$l = (a, b) => {
2887
3078
  for (var prop in b || (b = {}))
2888
- if (__hasOwnProp$h.call(b, prop))
2889
- __defNormalProp$g(a, prop, b[prop]);
2890
- if (__getOwnPropSymbols$h)
2891
- for (var prop of __getOwnPropSymbols$h(b)) {
2892
- if (__propIsEnum$h.call(b, prop))
2893
- __defNormalProp$g(a, prop, b[prop]);
3079
+ if (__hasOwnProp$m.call(b, prop))
3080
+ __defNormalProp$l(a, prop, b[prop]);
3081
+ if (__getOwnPropSymbols$m)
3082
+ for (var prop of __getOwnPropSymbols$m(b)) {
3083
+ if (__propIsEnum$m.call(b, prop))
3084
+ __defNormalProp$l(a, prop, b[prop]);
2894
3085
  }
2895
3086
  return a;
2896
3087
  };
2897
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2898
- var __objRest$3 = (source, exclude) => {
3088
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
3089
+ var __objRest$5 = (source, exclude) => {
2899
3090
  var target = {};
2900
3091
  for (var prop in source)
2901
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
3092
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
2902
3093
  target[prop] = source[prop];
2903
- if (source != null && __getOwnPropSymbols$h)
2904
- for (var prop of __getOwnPropSymbols$h(source)) {
2905
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
3094
+ if (source != null && __getOwnPropSymbols$m)
3095
+ for (var prop of __getOwnPropSymbols$m(source)) {
3096
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
2906
3097
  target[prop] = source[prop];
2907
3098
  }
2908
3099
  return target;
@@ -2911,7 +3102,7 @@ const AccordionItem = (_a) => {
2911
3102
  var _b = _a, {
2912
3103
  children,
2913
3104
  id
2914
- } = _b, props = __objRest$3(_b, [
3105
+ } = _b, props = __objRest$5(_b, [
2915
3106
  "children",
2916
3107
  "id"
2917
3108
  ]);
@@ -2922,7 +3113,7 @@ const AccordionItem = (_a) => {
2922
3113
  hasRegistered.current = true;
2923
3114
  context.registerItem(id, { isChecked: false, isExpanded: false });
2924
3115
  }
2925
- return /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsx(AccordionItemContent, __spreadProps$c(__spreadValues$g({ id }, props), { children })) });
3116
+ return /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsx(AccordionItemContent, __spreadProps$d(__spreadValues$l({ id }, props), { children })) });
2926
3117
  };
2927
3118
 
2928
3119
  const NoMemoApiaDateFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
@@ -2974,25 +3165,25 @@ const NoMemoApiaDateFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) =
2974
3165
  };
2975
3166
  const ApiaDateFilter = React.forwardRef(NoMemoApiaDateFilter);
2976
3167
 
2977
- var __defProp$f = Object.defineProperty;
2978
- var __defProps$b = Object.defineProperties;
2979
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
2980
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
2981
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
2982
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
2983
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2984
- var __spreadValues$f = (a, b) => {
3168
+ var __defProp$k = Object.defineProperty;
3169
+ var __defProps$c = Object.defineProperties;
3170
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
3171
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3172
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3173
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3174
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3175
+ var __spreadValues$k = (a, b) => {
2985
3176
  for (var prop in b || (b = {}))
2986
- if (__hasOwnProp$g.call(b, prop))
2987
- __defNormalProp$f(a, prop, b[prop]);
2988
- if (__getOwnPropSymbols$g)
2989
- for (var prop of __getOwnPropSymbols$g(b)) {
2990
- if (__propIsEnum$g.call(b, prop))
2991
- __defNormalProp$f(a, prop, b[prop]);
3177
+ if (__hasOwnProp$l.call(b, prop))
3178
+ __defNormalProp$k(a, prop, b[prop]);
3179
+ if (__getOwnPropSymbols$l)
3180
+ for (var prop of __getOwnPropSymbols$l(b)) {
3181
+ if (__propIsEnum$l.call(b, prop))
3182
+ __defNormalProp$k(a, prop, b[prop]);
2992
3183
  }
2993
3184
  return a;
2994
3185
  };
2995
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3186
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2996
3187
  const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
2997
3188
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
2998
3189
  const [value, setValue] = React.useState(
@@ -3043,7 +3234,7 @@ const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
3043
3234
  if (filter.type === "apiaNumber") {
3044
3235
  return /* @__PURE__ */ jsx(
3045
3236
  NumberInput,
3046
- __spreadProps$b(__spreadValues$f({
3237
+ __spreadProps$c(__spreadValues$k({
3047
3238
  "aria-readonly": filter.readonly,
3048
3239
  readOnly: filter.readonly,
3049
3240
  value,
@@ -3086,7 +3277,7 @@ const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
3086
3277
  }
3087
3278
  ) : /* @__PURE__ */ jsx(
3088
3279
  Input,
3089
- __spreadProps$b(__spreadValues$f({
3280
+ __spreadProps$c(__spreadValues$k({
3090
3281
  "aria-readonly": filter.readonly,
3091
3282
  readOnly: filter.readonly,
3092
3283
  value,
@@ -3115,41 +3306,41 @@ const NoMemoApiaFilter = ({ filter, onChange, onBlur, onPressEnter }, ref) => {
3115
3306
  };
3116
3307
  const ApiaFilter = React.memo(React.forwardRef(NoMemoApiaFilter));
3117
3308
 
3118
- const styles$3 = {};
3309
+ const styles$4 = {};
3119
3310
 
3120
- var __defProp$e = Object.defineProperty;
3121
- var __defProps$a = Object.defineProperties;
3122
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3123
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3124
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3125
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3126
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3127
- var __spreadValues$e = (a, b) => {
3311
+ var __defProp$j = Object.defineProperty;
3312
+ var __defProps$b = Object.defineProperties;
3313
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
3314
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3315
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3316
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3317
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3318
+ var __spreadValues$j = (a, b) => {
3128
3319
  for (var prop in b || (b = {}))
3129
- if (__hasOwnProp$f.call(b, prop))
3130
- __defNormalProp$e(a, prop, b[prop]);
3131
- if (__getOwnPropSymbols$f)
3132
- for (var prop of __getOwnPropSymbols$f(b)) {
3133
- if (__propIsEnum$f.call(b, prop))
3134
- __defNormalProp$e(a, prop, b[prop]);
3320
+ if (__hasOwnProp$k.call(b, prop))
3321
+ __defNormalProp$j(a, prop, b[prop]);
3322
+ if (__getOwnPropSymbols$k)
3323
+ for (var prop of __getOwnPropSymbols$k(b)) {
3324
+ if (__propIsEnum$k.call(b, prop))
3325
+ __defNormalProp$j(a, prop, b[prop]);
3135
3326
  }
3136
3327
  return a;
3137
3328
  };
3138
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3139
- injectStyles("layout.common.components.collapsiblePanel", styles$3);
3329
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3330
+ injectStyles("layout.common.components.collapsiblePanel", styles$4);
3140
3331
  const CollapsiblePanel = React__default.forwardRef(
3141
3332
  ({
3142
3333
  children,
3143
3334
  className,
3144
- closedIcon = "ArrowDown",
3335
+ closedIcon = "ArrowDownThin",
3145
3336
  collapsed,
3146
3337
  defaultCollapsed,
3147
3338
  disableChildrenFocus: disableChildrenFocus$1,
3148
- iconSize = "iconXs",
3339
+ iconSize = "20px",
3149
3340
  id,
3150
3341
  onClose,
3151
3342
  onOpen,
3152
- openIcon = "ArrowRight",
3343
+ openIcon = "ArrowRightThin",
3153
3344
  label,
3154
3345
  titleButtons,
3155
3346
  minHeight = 0
@@ -3210,7 +3401,7 @@ const CollapsiblePanel = React__default.forwardRef(
3210
3401
  }, [id, isCollapsed, onClose, onOpen, ref]);
3211
3402
  return /* @__PURE__ */ jsxs(
3212
3403
  Box,
3213
- __spreadProps$a(__spreadValues$e({
3404
+ __spreadProps$b(__spreadValues$j({
3214
3405
  className: `collapsiblePanel ${className != null ? className : ""}`
3215
3406
  }, getVariant("layout.common.components.collapsiblePanel")), {
3216
3407
  ref: (el) => {
@@ -3222,15 +3413,14 @@ const CollapsiblePanel = React__default.forwardRef(
3222
3413
  /* @__PURE__ */ jsxs(Box, { className: "collapsiblePanel__label", children: [
3223
3414
  /* @__PURE__ */ jsxs(
3224
3415
  Button,
3225
- __spreadProps$a(__spreadValues$e({}, getVariant("inherit")), {
3416
+ __spreadProps$b(__spreadValues$j({}, getVariant("inherit")), {
3226
3417
  "aria-expanded": !isCollapsed,
3227
3418
  onClick: (ev) => callOnOpen(true, ev),
3228
3419
  type: "button",
3229
3420
  className: "collapsiblePanel__label__button",
3230
- onKeyDown: console.log,
3231
3421
  children: [
3232
3422
  isCollapsed ? /* @__PURE__ */ jsx(Icon$1, { title: "", icon: openIcon, size: iconSize }) : /* @__PURE__ */ jsx(Icon$1, { title: "", icon: closedIcon, size: iconSize }),
3233
- label
3423
+ /* @__PURE__ */ jsx("span", { className: "title", children: label })
3234
3424
  ]
3235
3425
  })
3236
3426
  ),
@@ -3255,35 +3445,160 @@ const CollapsiblePanel = React__default.forwardRef(
3255
3445
  );
3256
3446
  CollapsiblePanel.displayName = "CollapsiblePanel";
3257
3447
 
3258
- const ListboxContext = createContext({});
3448
+ var __defProp$i = Object.defineProperty;
3449
+ var __defProps$a = Object.defineProperties;
3450
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3451
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3452
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3453
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3454
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3455
+ var __spreadValues$i = (a, b) => {
3456
+ for (var prop in b || (b = {}))
3457
+ if (__hasOwnProp$j.call(b, prop))
3458
+ __defNormalProp$i(a, prop, b[prop]);
3459
+ if (__getOwnPropSymbols$j)
3460
+ for (var prop of __getOwnPropSymbols$j(b)) {
3461
+ if (__propIsEnum$j.call(b, prop))
3462
+ __defNormalProp$i(a, prop, b[prop]);
3463
+ }
3464
+ return a;
3465
+ };
3466
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3467
+ var __objRest$4 = (source, exclude) => {
3468
+ var target = {};
3469
+ for (var prop in source)
3470
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
3471
+ target[prop] = source[prop];
3472
+ if (source != null && __getOwnPropSymbols$j)
3473
+ for (var prop of __getOwnPropSymbols$j(source)) {
3474
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
3475
+ target[prop] = source[prop];
3476
+ }
3477
+ return target;
3478
+ };
3479
+ const AlertModal = ({ children, onClose, title }) => {
3480
+ const _a = useModal({
3481
+ isDefaultOpen: true,
3482
+ onExited: onClose
3483
+ }), { hide } = _a, modalProps = __objRest$4(_a, ["hide"]);
3484
+ return /* @__PURE__ */ jsx(
3485
+ Modal,
3486
+ __spreadProps$a(__spreadValues$i({}, modalProps), {
3487
+ sx: useMemo(
3488
+ () => ({
3489
+ ".modal__content .confirm__content": {
3490
+ overflow: "visible"
3491
+ }
3492
+ }),
3493
+ []
3494
+ ),
3495
+ initialFocusGetter: useCallback((ref) => {
3496
+ return ref == null ? void 0 : ref.querySelector(".confirm__confirmButton");
3497
+ }, []),
3498
+ title,
3499
+ children: /* @__PURE__ */ jsx(
3500
+ Confirm,
3501
+ {
3502
+ onConfirm: useCallback(() => {
3503
+ hide();
3504
+ }, [hide]),
3505
+ children
3506
+ }
3507
+ )
3508
+ })
3509
+ );
3510
+ };
3259
3511
 
3260
- var __defProp$d = Object.defineProperty;
3512
+ var __defProp$h = Object.defineProperty;
3261
3513
  var __defProps$9 = Object.defineProperties;
3262
3514
  var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
3263
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3264
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3265
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3266
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3267
- var __spreadValues$d = (a, b) => {
3515
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3516
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3517
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3518
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3519
+ var __spreadValues$h = (a, b) => {
3268
3520
  for (var prop in b || (b = {}))
3269
- if (__hasOwnProp$e.call(b, prop))
3270
- __defNormalProp$d(a, prop, b[prop]);
3271
- if (__getOwnPropSymbols$e)
3272
- for (var prop of __getOwnPropSymbols$e(b)) {
3273
- if (__propIsEnum$e.call(b, prop))
3274
- __defNormalProp$d(a, prop, b[prop]);
3521
+ if (__hasOwnProp$i.call(b, prop))
3522
+ __defNormalProp$h(a, prop, b[prop]);
3523
+ if (__getOwnPropSymbols$i)
3524
+ for (var prop of __getOwnPropSymbols$i(b)) {
3525
+ if (__propIsEnum$i.call(b, prop))
3526
+ __defNormalProp$h(a, prop, b[prop]);
3275
3527
  }
3276
3528
  return a;
3277
3529
  };
3278
3530
  var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
3531
+ var __objRest$3 = (source, exclude) => {
3532
+ var target = {};
3533
+ for (var prop in source)
3534
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
3535
+ target[prop] = source[prop];
3536
+ if (source != null && __getOwnPropSymbols$i)
3537
+ for (var prop of __getOwnPropSymbols$i(source)) {
3538
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
3539
+ target[prop] = source[prop];
3540
+ }
3541
+ return target;
3542
+ };
3543
+ const ConfirmModal = (_a) => {
3544
+ var _b = _a, {
3545
+ onConfirm,
3546
+ onCancel,
3547
+ title
3548
+ } = _b, props = __objRest$3(_b, [
3549
+ "onConfirm",
3550
+ "onCancel",
3551
+ "title"
3552
+ ]);
3553
+ const hasConfirmed = useRef(false);
3554
+ const _a2 = useModal({
3555
+ isDefaultOpen: true,
3556
+ onExited: () => {
3557
+ if (hasConfirmed.current)
3558
+ onConfirm == null ? void 0 : onConfirm();
3559
+ else
3560
+ onCancel == null ? void 0 : onCancel();
3561
+ }
3562
+ }), { hide } = _a2, modalProps = __objRest$3(_a2, ["hide"]);
3563
+ const handleCancel = useCallback(() => {
3564
+ hide();
3565
+ }, [hide]);
3566
+ const handleConfirm = useCallback(() => {
3567
+ hasConfirmed.current = true;
3568
+ hide();
3569
+ }, [hide]);
3570
+ return /* @__PURE__ */ jsx(Modal, __spreadProps$9(__spreadValues$h({}, modalProps), { title, children: /* @__PURE__ */ jsx(Confirm, __spreadProps$9(__spreadValues$h({}, props), { onCancel: handleCancel, onConfirm: handleConfirm })) }));
3571
+ };
3572
+
3573
+ const ListboxContext = createContext({});
3574
+
3575
+ var __defProp$g = Object.defineProperty;
3576
+ var __defProps$8 = Object.defineProperties;
3577
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3578
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3579
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3580
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3581
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3582
+ var __spreadValues$g = (a, b) => {
3583
+ for (var prop in b || (b = {}))
3584
+ if (__hasOwnProp$h.call(b, prop))
3585
+ __defNormalProp$g(a, prop, b[prop]);
3586
+ if (__getOwnPropSymbols$h)
3587
+ for (var prop of __getOwnPropSymbols$h(b)) {
3588
+ if (__propIsEnum$h.call(b, prop))
3589
+ __defNormalProp$g(a, prop, b[prop]);
3590
+ }
3591
+ return a;
3592
+ };
3593
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
3279
3594
  var __objRest$2 = (source, exclude) => {
3280
3595
  var target = {};
3281
3596
  for (var prop in source)
3282
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
3597
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
3283
3598
  target[prop] = source[prop];
3284
- if (source != null && __getOwnPropSymbols$e)
3285
- for (var prop of __getOwnPropSymbols$e(source)) {
3286
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
3599
+ if (source != null && __getOwnPropSymbols$h)
3600
+ for (var prop of __getOwnPropSymbols$h(source)) {
3601
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
3287
3602
  target[prop] = source[prop];
3288
3603
  }
3289
3604
  return target;
@@ -3305,14 +3620,14 @@ const ListboxItem = memo(
3305
3620
  ((_a2 = domProps.className) == null ? void 0 : _a2.includes("separator")) && /* @__PURE__ */ jsx("li", { className: "separator" }),
3306
3621
  /* @__PURE__ */ jsx(
3307
3622
  "li",
3308
- __spreadProps$9(__spreadValues$d({}, domProps), {
3623
+ __spreadProps$8(__spreadValues$g({}, domProps), {
3309
3624
  className: `${(_c = (_b2 = domProps.className) == null ? void 0 : _b2.split(" ").filter((current) => current !== "separator").join(" ")) != null ? _c : ""} listbox__row`,
3310
3625
  ref,
3311
3626
  role: "option",
3312
3627
  onDoubleClick: useCallback(
3313
3628
  (ev) => {
3314
3629
  ev.preventDefault();
3315
- onDoubleClickNode == null ? void 0 : onDoubleClickNode(__spreadProps$9(__spreadValues$d({}, ev), {
3630
+ onDoubleClickNode == null ? void 0 : onDoubleClickNode(__spreadProps$8(__spreadValues$g({}, ev), {
3316
3631
  target: ev.target.closest(
3317
3632
  '[role="option"]'
3318
3633
  )
@@ -3322,7 +3637,7 @@ const ListboxItem = memo(
3322
3637
  ),
3323
3638
  onMouseDown: useCallback(
3324
3639
  (ev) => {
3325
- onClickNode == null ? void 0 : onClickNode(__spreadProps$9(__spreadValues$d({}, ev), {
3640
+ onClickNode == null ? void 0 : onClickNode(__spreadProps$8(__spreadValues$g({}, ev), {
3326
3641
  target: ev.target.closest(
3327
3642
  '[role="option"]'
3328
3643
  )
@@ -3412,25 +3727,25 @@ shout_fn = function({ clear } = { clear: true }) {
3412
3727
  }
3413
3728
  };
3414
3729
 
3415
- var __defProp$c = Object.defineProperty;
3416
- var __defProps$8 = Object.defineProperties;
3417
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3418
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
3419
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
3420
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3421
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3422
- var __spreadValues$c = (a, b) => {
3730
+ var __defProp$f = Object.defineProperty;
3731
+ var __defProps$7 = Object.defineProperties;
3732
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
3733
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3734
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3735
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3736
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3737
+ var __spreadValues$f = (a, b) => {
3423
3738
  for (var prop in b || (b = {}))
3424
- if (__hasOwnProp$d.call(b, prop))
3425
- __defNormalProp$c(a, prop, b[prop]);
3426
- if (__getOwnPropSymbols$d)
3427
- for (var prop of __getOwnPropSymbols$d(b)) {
3428
- if (__propIsEnum$d.call(b, prop))
3429
- __defNormalProp$c(a, prop, b[prop]);
3739
+ if (__hasOwnProp$g.call(b, prop))
3740
+ __defNormalProp$f(a, prop, b[prop]);
3741
+ if (__getOwnPropSymbols$g)
3742
+ for (var prop of __getOwnPropSymbols$g(b)) {
3743
+ if (__propIsEnum$g.call(b, prop))
3744
+ __defNormalProp$f(a, prop, b[prop]);
3430
3745
  }
3431
3746
  return a;
3432
3747
  };
3433
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
3748
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
3434
3749
  const ListboxKeyhandler = ({ children, className }) => {
3435
3750
  const {
3436
3751
  listboxActions,
@@ -3474,7 +3789,7 @@ const ListboxKeyhandler = ({ children, className }) => {
3474
3789
  );
3475
3790
  return /* @__PURE__ */ jsx(
3476
3791
  Box,
3477
- __spreadProps$8(__spreadValues$c({}, getVariant(variant)), {
3792
+ __spreadProps$7(__spreadValues$f({}, getVariant(variant)), {
3478
3793
  className,
3479
3794
  id,
3480
3795
  onKeyDown: useCallback(
@@ -3486,9 +3801,9 @@ const ListboxKeyhandler = ({ children, className }) => {
3486
3801
  "There is no cell on keydown event, it must be an error."
3487
3802
  );
3488
3803
  const state = getState();
3489
- onPressKeyOnNode == null ? void 0 : onPressKeyOnNode(__spreadProps$8(__spreadValues$c({}, ev), { target: cell, currentTarget: cell }));
3804
+ onPressKeyOnNode == null ? void 0 : onPressKeyOnNode(__spreadProps$7(__spreadValues$f({}, ev), { target: cell, currentTarget: cell }));
3490
3805
  if (ev.code === "Enter") {
3491
- onPressEnterOnNode == null ? void 0 : onPressEnterOnNode(__spreadProps$8(__spreadValues$c({}, ev), { target: cell, currentTarget: cell }));
3806
+ onPressEnterOnNode == null ? void 0 : onPressEnterOnNode(__spreadProps$7(__spreadValues$f({}, ev), { target: cell, currentTarget: cell }));
3492
3807
  }
3493
3808
  if (ev.isDefaultPrevented() || ev.isPropagationStopped())
3494
3809
  return;
@@ -3577,33 +3892,33 @@ const ListboxKeyhandler = ({ children, className }) => {
3577
3892
  );
3578
3893
  };
3579
3894
 
3580
- var __defProp$b = Object.defineProperty;
3581
- var __defProps$7 = Object.defineProperties;
3582
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
3583
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
3584
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
3585
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
3586
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3587
- var __spreadValues$b = (a, b) => {
3895
+ var __defProp$e = Object.defineProperty;
3896
+ var __defProps$6 = Object.defineProperties;
3897
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
3898
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3899
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3900
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3901
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3902
+ var __spreadValues$e = (a, b) => {
3588
3903
  for (var prop in b || (b = {}))
3589
- if (__hasOwnProp$c.call(b, prop))
3590
- __defNormalProp$b(a, prop, b[prop]);
3591
- if (__getOwnPropSymbols$c)
3592
- for (var prop of __getOwnPropSymbols$c(b)) {
3593
- if (__propIsEnum$c.call(b, prop))
3594
- __defNormalProp$b(a, prop, b[prop]);
3904
+ if (__hasOwnProp$f.call(b, prop))
3905
+ __defNormalProp$e(a, prop, b[prop]);
3906
+ if (__getOwnPropSymbols$f)
3907
+ for (var prop of __getOwnPropSymbols$f(b)) {
3908
+ if (__propIsEnum$f.call(b, prop))
3909
+ __defNormalProp$e(a, prop, b[prop]);
3595
3910
  }
3596
3911
  return a;
3597
3912
  };
3598
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
3913
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
3599
3914
  var __objRest$1 = (source, exclude) => {
3600
3915
  var target = {};
3601
3916
  for (var prop in source)
3602
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
3917
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
3603
3918
  target[prop] = source[prop];
3604
- if (source != null && __getOwnPropSymbols$c)
3605
- for (var prop of __getOwnPropSymbols$c(source)) {
3606
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
3919
+ if (source != null && __getOwnPropSymbols$f)
3920
+ for (var prop of __getOwnPropSymbols$f(source)) {
3921
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
3607
3922
  target[prop] = source[prop];
3608
3923
  }
3609
3924
  return target;
@@ -3638,7 +3953,7 @@ const Combobox = (_a) => {
3638
3953
  ),
3639
3954
  /* @__PURE__ */ jsx(
3640
3955
  Box,
3641
- __spreadProps$7(__spreadValues$b({
3956
+ __spreadProps$6(__spreadValues$e({
3642
3957
  as: "ul",
3643
3958
  id: `${id}__list__container`,
3644
3959
  role: "listbox",
@@ -3655,26 +3970,26 @@ const Combobox = (_a) => {
3655
3970
  ] });
3656
3971
  };
3657
3972
 
3658
- var __defProp$a = Object.defineProperty;
3659
- var __defProps$6 = Object.defineProperties;
3660
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
3661
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
3662
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
3663
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
3664
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3665
- var __spreadValues$a = (a, b) => {
3973
+ var __defProp$d = Object.defineProperty;
3974
+ var __defProps$5 = Object.defineProperties;
3975
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
3976
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3977
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3978
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3979
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3980
+ var __spreadValues$d = (a, b) => {
3666
3981
  for (var prop in b || (b = {}))
3667
- if (__hasOwnProp$b.call(b, prop))
3668
- __defNormalProp$a(a, prop, b[prop]);
3669
- if (__getOwnPropSymbols$b)
3670
- for (var prop of __getOwnPropSymbols$b(b)) {
3671
- if (__propIsEnum$b.call(b, prop))
3672
- __defNormalProp$a(a, prop, b[prop]);
3982
+ if (__hasOwnProp$e.call(b, prop))
3983
+ __defNormalProp$d(a, prop, b[prop]);
3984
+ if (__getOwnPropSymbols$e)
3985
+ for (var prop of __getOwnPropSymbols$e(b)) {
3986
+ if (__propIsEnum$e.call(b, prop))
3987
+ __defNormalProp$d(a, prop, b[prop]);
3673
3988
  }
3674
3989
  return a;
3675
3990
  };
3676
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
3677
- const styles$2 = {
3991
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3992
+ const styles$3 = {
3678
3993
  "&:focus-within": {
3679
3994
  ".listbox__list": {
3680
3995
  outline: "none"
@@ -3705,7 +4020,7 @@ const styles$2 = {
3705
4020
  whiteSpace: "nowrap",
3706
4021
  textOverflow: "ellipsis",
3707
4022
  "&:hover": (theme) => {
3708
- return __spreadProps$6(__spreadValues$a({}, theme.palette.getOneState(
4023
+ return __spreadProps$5(__spreadValues$d({}, theme.palette.getOneState(
3709
4024
  { backgroundColor: "palette.background.paper" },
3710
4025
  "hover"
3711
4026
  )), {
@@ -3715,17 +4030,17 @@ const styles$2 = {
3715
4030
  }
3716
4031
  };
3717
4032
 
3718
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3719
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3720
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
4033
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
4034
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
4035
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3721
4036
  var __objRest = (source, exclude) => {
3722
4037
  var target = {};
3723
4038
  for (var prop in source)
3724
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
4039
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
3725
4040
  target[prop] = source[prop];
3726
- if (source != null && __getOwnPropSymbols$a)
3727
- for (var prop of __getOwnPropSymbols$a(source)) {
3728
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
4041
+ if (source != null && __getOwnPropSymbols$d)
4042
+ for (var prop of __getOwnPropSymbols$d(source)) {
4043
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
3729
4044
  target[prop] = source[prop];
3730
4045
  }
3731
4046
  return target;
@@ -4179,34 +4494,34 @@ function useUpdateRowCount(children, listboxActions) {
4179
4494
  [listboxActions, children]
4180
4495
  );
4181
4496
  }
4182
-
4183
- function useListboxContextValue(props) {
4184
- return useMemo(() => props, [...Object.values(props)]);
4185
- }
4186
-
4187
- var __defProp$9 = Object.defineProperty;
4188
- var __defProps$5 = Object.defineProperties;
4189
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4190
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
4191
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
4192
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
4193
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4194
- var __spreadValues$9 = (a, b) => {
4497
+
4498
+ function useListboxContextValue(props) {
4499
+ return useMemo(() => props, [...Object.values(props)]);
4500
+ }
4501
+
4502
+ var __defProp$c = Object.defineProperty;
4503
+ var __defProps$4 = Object.defineProperties;
4504
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4505
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
4506
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
4507
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
4508
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4509
+ var __spreadValues$c = (a, b) => {
4195
4510
  for (var prop in b || (b = {}))
4196
- if (__hasOwnProp$9.call(b, prop))
4197
- __defNormalProp$9(a, prop, b[prop]);
4198
- if (__getOwnPropSymbols$9)
4199
- for (var prop of __getOwnPropSymbols$9(b)) {
4200
- if (__propIsEnum$9.call(b, prop))
4201
- __defNormalProp$9(a, prop, b[prop]);
4511
+ if (__hasOwnProp$c.call(b, prop))
4512
+ __defNormalProp$c(a, prop, b[prop]);
4513
+ if (__getOwnPropSymbols$c)
4514
+ for (var prop of __getOwnPropSymbols$c(b)) {
4515
+ if (__propIsEnum$c.call(b, prop))
4516
+ __defNormalProp$c(a, prop, b[prop]);
4202
4517
  }
4203
4518
  return a;
4204
4519
  };
4205
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4520
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4206
4521
  const NoMemoListbox = makeStyledComponent(
4207
4522
  "Listbox",
4208
4523
  "layout.components.listbox",
4209
- styles$2,
4524
+ styles$3,
4210
4525
  (props) => {
4211
4526
  var _a, _b, _c;
4212
4527
  const storeId = useMemo(() => uniqueId("Listbox"), []);
@@ -4234,12 +4549,12 @@ const NoMemoListbox = makeStyledComponent(
4234
4549
  });
4235
4550
  return /* @__PURE__ */ jsx(ListboxContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
4236
4551
  ListboxKeyhandler,
4237
- __spreadProps$5(__spreadValues$9({
4552
+ __spreadProps$4(__spreadValues$c({
4238
4553
  className: `listbox ${props.showSearchbox ? "withSearchbox" : ""} ${(_a = props.className) != null ? _a : ""}`
4239
4554
  }, props.ulProps), {
4240
- children: props.showSearchbox ? /* @__PURE__ */ jsx(Combobox, __spreadProps$5(__spreadValues$9({}, props.ulProps), { children: indexedChildren })) : /* @__PURE__ */ jsx(
4555
+ children: props.showSearchbox ? /* @__PURE__ */ jsx(Combobox, __spreadProps$4(__spreadValues$c({}, props.ulProps), { children: indexedChildren })) : /* @__PURE__ */ jsx(
4241
4556
  Box,
4242
- __spreadProps$5(__spreadValues$9({
4557
+ __spreadProps$4(__spreadValues$c({
4243
4558
  ref,
4244
4559
  as: "ul",
4245
4560
  role: "listbox",
@@ -4258,25 +4573,25 @@ const NoMemoListbox = makeStyledComponent(
4258
4573
  );
4259
4574
  const Listbox = memo(NoMemoListbox);
4260
4575
 
4261
- var __defProp$8 = Object.defineProperty;
4262
- var __defProps$4 = Object.defineProperties;
4263
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4264
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
4265
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
4266
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
4267
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4268
- var __spreadValues$8 = (a, b) => {
4576
+ var __defProp$b = Object.defineProperty;
4577
+ var __defProps$3 = Object.defineProperties;
4578
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4579
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
4580
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
4581
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
4582
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4583
+ var __spreadValues$b = (a, b) => {
4269
4584
  for (var prop in b || (b = {}))
4270
- if (__hasOwnProp$8.call(b, prop))
4271
- __defNormalProp$8(a, prop, b[prop]);
4272
- if (__getOwnPropSymbols$8)
4273
- for (var prop of __getOwnPropSymbols$8(b)) {
4274
- if (__propIsEnum$8.call(b, prop))
4275
- __defNormalProp$8(a, prop, b[prop]);
4585
+ if (__hasOwnProp$b.call(b, prop))
4586
+ __defNormalProp$b(a, prop, b[prop]);
4587
+ if (__getOwnPropSymbols$b)
4588
+ for (var prop of __getOwnPropSymbols$b(b)) {
4589
+ if (__propIsEnum$b.call(b, prop))
4590
+ __defNormalProp$b(a, prop, b[prop]);
4276
4591
  }
4277
4592
  return a;
4278
4593
  };
4279
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4594
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4280
4595
  const ProgressBar = ({
4281
4596
  id,
4282
4597
  progress = 0,
@@ -4296,7 +4611,7 @@ const ProgressBar = ({
4296
4611
  ),
4297
4612
  /* @__PURE__ */ jsx(
4298
4613
  Progress,
4299
- __spreadProps$4(__spreadValues$8({
4614
+ __spreadProps$3(__spreadValues$b({
4300
4615
  id,
4301
4616
  max: 100,
4302
4617
  value: progress
@@ -4310,26 +4625,26 @@ const ProgressBar = ({
4310
4625
  ] });
4311
4626
  };
4312
4627
 
4313
- var __defProp$7 = Object.defineProperty;
4314
- var __defProps$3 = Object.defineProperties;
4315
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4316
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
4317
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
4318
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
4319
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4320
- var __spreadValues$7 = (a, b) => {
4628
+ var __defProp$a = Object.defineProperty;
4629
+ var __defProps$2 = Object.defineProperties;
4630
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4631
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
4632
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
4633
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
4634
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4635
+ var __spreadValues$a = (a, b) => {
4321
4636
  for (var prop in b || (b = {}))
4322
- if (__hasOwnProp$7.call(b, prop))
4323
- __defNormalProp$7(a, prop, b[prop]);
4324
- if (__getOwnPropSymbols$7)
4325
- for (var prop of __getOwnPropSymbols$7(b)) {
4326
- if (__propIsEnum$7.call(b, prop))
4327
- __defNormalProp$7(a, prop, b[prop]);
4637
+ if (__hasOwnProp$a.call(b, prop))
4638
+ __defNormalProp$a(a, prop, b[prop]);
4639
+ if (__getOwnPropSymbols$a)
4640
+ for (var prop of __getOwnPropSymbols$a(b)) {
4641
+ if (__propIsEnum$a.call(b, prop))
4642
+ __defNormalProp$a(a, prop, b[prop]);
4328
4643
  }
4329
4644
  return a;
4330
4645
  };
4331
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4332
- const styles$1 = {
4646
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4647
+ const styles$2 = {
4333
4648
  height: "iconmd",
4334
4649
  width: "iconmd",
4335
4650
  background: "palette.background.paper"
@@ -4337,192 +4652,17 @@ const styles$1 = {
4337
4652
  const LoaderSpinner = makeStyledComponent(
4338
4653
  "LoaderSpinner",
4339
4654
  "layout.common.components.loaderSpinner",
4340
- styles$1,
4655
+ styles$2,
4341
4656
  ({ className }) => {
4342
4657
  return /* @__PURE__ */ jsx(
4343
4658
  Spinner,
4344
- __spreadProps$3(__spreadValues$7({}, getVariant("layout.common.components.loaderSpinner")), {
4659
+ __spreadProps$2(__spreadValues$a({}, getVariant("layout.common.components.loaderSpinner")), {
4345
4660
  className
4346
4661
  })
4347
4662
  );
4348
4663
  }
4349
4664
  );
4350
4665
 
4351
- const AutoEllipsis = ({ children }) => {
4352
- const unsuscribe = useRef(() => {
4353
- });
4354
- const clone = useRef(null);
4355
- const ref = useCallback((el) => {
4356
- if (!el)
4357
- return;
4358
- unsuscribe.current();
4359
- function handleMouseEnter() {
4360
- clone.current = el.cloneNode(true);
4361
- Object.entries(window.getComputedStyle(el)).forEach(([name, value]) => {
4362
- try {
4363
- clone.current.style[name] = value;
4364
- } catch (e) {
4365
- }
4366
- });
4367
- const bound = el.getBoundingClientRect();
4368
- clone.current.style.position = "fixed";
4369
- clone.current.style.left = `${bound.left - 1}px`;
4370
- clone.current.style.top = `${bound.top - 1}px`;
4371
- clone.current.style.width = `${bound.width + 2}px`;
4372
- clone.current.style.whiteSpace = "break-spaces";
4373
- clone.current.style.overflow = "visible";
4374
- clone.current.style.textOverflow = "unset";
4375
- clone.current.style.background = "var(--theme-ui-colors-palette-background-paper)";
4376
- clone.current.style.border = "1px solid";
4377
- clone.current.style.borderColor = "var(--theme-ui-colors-palette-border-field)";
4378
- clone.current.style.zIndex = "1000";
4379
- clone.current.style.height = "auto";
4380
- clone.current.style.pointerEvents = "none";
4381
- clone.current.addEventListener("mouseleave", (ev) => {
4382
- var _a;
4383
- if (isChild(ev.relatedTarget, (current) => current === el))
4384
- return;
4385
- (_a = clone.current) == null ? void 0 : _a.remove();
4386
- });
4387
- document.body.append(clone.current);
4388
- const cloneBounding = clone.current.getBoundingClientRect();
4389
- if (cloneBounding.width - 2 === bound.width && cloneBounding.height - 2 === bound.height) {
4390
- clone.current.remove();
4391
- }
4392
- }
4393
- function handleMouseLeave(ev) {
4394
- var _a;
4395
- if (isChild(
4396
- ev.relatedTarget,
4397
- (current) => current === clone.current
4398
- ))
4399
- return;
4400
- (_a = clone.current) == null ? void 0 : _a.remove();
4401
- }
4402
- el.addEventListener("mouseenter", handleMouseEnter);
4403
- el.addEventListener("mouseleave", handleMouseLeave);
4404
- unsuscribe.current = () => {
4405
- el.removeEventListener("mouseenter", handleMouseEnter);
4406
- el.removeEventListener("mouseleave", handleMouseLeave);
4407
- };
4408
- }, []);
4409
- return /* @__PURE__ */ jsx(
4410
- Box,
4411
- {
4412
- ref,
4413
- sx: {
4414
- overflow: "hidden",
4415
- textOverflow: "ellipsis",
4416
- whiteSpace: "nowrap"
4417
- },
4418
- children
4419
- }
4420
- );
4421
- };
4422
-
4423
- var __defProp$6 = Object.defineProperty;
4424
- var __defProps$2 = Object.defineProperties;
4425
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4426
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4427
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4428
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4429
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4430
- var __spreadValues$6 = (a, b) => {
4431
- for (var prop in b || (b = {}))
4432
- if (__hasOwnProp$6.call(b, prop))
4433
- __defNormalProp$6(a, prop, b[prop]);
4434
- if (__getOwnPropSymbols$6)
4435
- for (var prop of __getOwnPropSymbols$6(b)) {
4436
- if (__propIsEnum$6.call(b, prop))
4437
- __defNormalProp$6(a, prop, b[prop]);
4438
- }
4439
- return a;
4440
- };
4441
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4442
- function calcBreakPoint(currentWidth, breakPoints) {
4443
- let currentIndex = 0;
4444
- while (currentIndex < breakPoints.length && currentWidth > breakPoints[currentIndex])
4445
- currentIndex++;
4446
- return currentIndex;
4447
- }
4448
- const makeResponsiveComponent = ({
4449
- breakPoints,
4450
- Component,
4451
- debounce,
4452
- defaultBreakpoint
4453
- }) => {
4454
- const setBreakpoints = {
4455
- current: () => {
4456
- }
4457
- };
4458
- return Object.assign(
4459
- function ResponsiveComponent(props) {
4460
- var _a;
4461
- const [breakPoint, setCurrentBreakpoint] = useState(
4462
- defaultBreakpoint != null ? defaultBreakpoint : 4
4463
- );
4464
- const [innerBreakpoints, setInnerBreakpoints] = useState(
4465
- (_a = props.breakPoints) != null ? _a : breakPoints
4466
- );
4467
- setBreakpoints.current = setInnerBreakpoints;
4468
- const [containerWidth, setContainerWidth] = useState(
4469
- breakPoints[defaultBreakpoint != null ? defaultBreakpoint : 4]
4470
- );
4471
- const observer = useRef(null);
4472
- const timeout = useRef(0);
4473
- const shouldDisconnect = useRef(false);
4474
- const [hasRendered, setHasRendered] = useState(false);
4475
- const ref = useCallback(
4476
- (element) => {
4477
- var _a2;
4478
- if (!element)
4479
- return;
4480
- (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
4481
- observer.current = new ResizeObserver((resizeProps) => {
4482
- if (resizeProps[0].contentRect.width === 0)
4483
- return;
4484
- clearTimeout(timeout.current);
4485
- timeout.current = setTimeout(() => {
4486
- setContainerWidth(resizeProps[0].contentRect.width);
4487
- setCurrentBreakpoint(
4488
- calcBreakPoint(
4489
- resizeProps[0].contentRect.width,
4490
- innerBreakpoints
4491
- )
4492
- );
4493
- setHasRendered(true);
4494
- }, debounce != null ? debounce : 100);
4495
- });
4496
- if (element)
4497
- observer.current.observe(element);
4498
- },
4499
- [innerBreakpoints]
4500
- );
4501
- useEffect(() => {
4502
- shouldDisconnect.current = false;
4503
- return () => {
4504
- shouldDisconnect.current = true;
4505
- setTimeout(() => {
4506
- var _a2;
4507
- if (shouldDisconnect.current) {
4508
- (_a2 = observer.current) == null ? void 0 : _a2.disconnect();
4509
- }
4510
- }, 2e3);
4511
- };
4512
- }, [innerBreakpoints]);
4513
- return /* @__PURE__ */ jsx(Box, { ref, children: hasRendered ? /* @__PURE__ */ jsx(
4514
- Component,
4515
- __spreadProps$2(__spreadValues$6({}, props), {
4516
- breakPoint,
4517
- breakPointWidth: breakPoints[breakPoint],
4518
- containerWidth
4519
- })
4520
- ) : null });
4521
- },
4522
- { setBreakpoints }
4523
- );
4524
- };
4525
-
4526
4666
  const distinctors = {
4527
4667
  grid: [
4528
4668
  (_, state) => {
@@ -4699,23 +4839,23 @@ const operations = {
4699
4839
  recalculateIndexByResize
4700
4840
  };
4701
4841
 
4702
- var __defProp$5 = Object.defineProperty;
4703
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4704
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4705
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4706
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4707
- var __spreadValues$5 = (a, b) => {
4842
+ var __defProp$9 = Object.defineProperty;
4843
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
4844
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
4845
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
4846
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4847
+ var __spreadValues$9 = (a, b) => {
4708
4848
  for (var prop in b || (b = {}))
4709
- if (__hasOwnProp$5.call(b, prop))
4710
- __defNormalProp$5(a, prop, b[prop]);
4711
- if (__getOwnPropSymbols$5)
4712
- for (var prop of __getOwnPropSymbols$5(b)) {
4713
- if (__propIsEnum$5.call(b, prop))
4714
- __defNormalProp$5(a, prop, b[prop]);
4849
+ if (__hasOwnProp$9.call(b, prop))
4850
+ __defNormalProp$9(a, prop, b[prop]);
4851
+ if (__getOwnPropSymbols$9)
4852
+ for (var prop of __getOwnPropSymbols$9(b)) {
4853
+ if (__propIsEnum$9.call(b, prop))
4854
+ __defNormalProp$9(a, prop, b[prop]);
4715
4855
  }
4716
4856
  return a;
4717
4857
  };
4718
- const getInitialState = (props) => __spreadValues$5({
4858
+ const getInitialState = (props) => __spreadValues$9({
4719
4859
  focusedColumn: 1,
4720
4860
  focusedRow: 1,
4721
4861
  focusedId: 0
@@ -5019,21 +5159,21 @@ function useHandlers({
5019
5159
  };
5020
5160
  }
5021
5161
 
5022
- var __defProp$4 = Object.defineProperty;
5162
+ var __defProp$8 = Object.defineProperty;
5023
5163
  var __defProps$1 = Object.defineProperties;
5024
5164
  var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
5025
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
5026
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
5027
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
5028
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5029
- var __spreadValues$4 = (a, b) => {
5165
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
5166
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
5167
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
5168
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5169
+ var __spreadValues$8 = (a, b) => {
5030
5170
  for (var prop in b || (b = {}))
5031
- if (__hasOwnProp$4.call(b, prop))
5032
- __defNormalProp$4(a, prop, b[prop]);
5033
- if (__getOwnPropSymbols$4)
5034
- for (var prop of __getOwnPropSymbols$4(b)) {
5035
- if (__propIsEnum$4.call(b, prop))
5036
- __defNormalProp$4(a, prop, b[prop]);
5171
+ if (__hasOwnProp$8.call(b, prop))
5172
+ __defNormalProp$8(a, prop, b[prop]);
5173
+ if (__getOwnPropSymbols$8)
5174
+ for (var prop of __getOwnPropSymbols$8(b)) {
5175
+ if (__propIsEnum$8.call(b, prop))
5176
+ __defNormalProp$8(a, prop, b[prop]);
5037
5177
  }
5038
5178
  return a;
5039
5179
  };
@@ -5065,7 +5205,7 @@ const Tooltip = ({
5065
5205
  preferredOrientationY,
5066
5206
  preferredSize
5067
5207
  });
5068
- const sx = __spreadValues$4({
5208
+ const sx = __spreadValues$8({
5069
5209
  position: "fixed"
5070
5210
  }, calculatedPosition);
5071
5211
  const { handleOnClick } = useHandlers({
@@ -5079,7 +5219,7 @@ const Tooltip = ({
5079
5219
  });
5080
5220
  return /* @__PURE__ */ jsx(
5081
5221
  Box,
5082
- __spreadProps$1(__spreadValues$4({
5222
+ __spreadProps$1(__spreadValues$8({
5083
5223
  className: `tooltip__wrapper ${className != null ? className : ""}`
5084
5224
  }, getVariant(variant)), {
5085
5225
  sx,
@@ -5089,21 +5229,21 @@ const Tooltip = ({
5089
5229
  );
5090
5230
  };
5091
5231
 
5092
- var __defProp$3 = Object.defineProperty;
5232
+ var __defProp$7 = Object.defineProperty;
5093
5233
  var __defProps = Object.defineProperties;
5094
5234
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5095
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
5096
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
5097
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
5098
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5099
- var __spreadValues$3 = (a, b) => {
5235
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
5236
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
5237
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
5238
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5239
+ var __spreadValues$7 = (a, b) => {
5100
5240
  for (var prop in b || (b = {}))
5101
- if (__hasOwnProp$3.call(b, prop))
5102
- __defNormalProp$3(a, prop, b[prop]);
5103
- if (__getOwnPropSymbols$3)
5104
- for (var prop of __getOwnPropSymbols$3(b)) {
5105
- if (__propIsEnum$3.call(b, prop))
5106
- __defNormalProp$3(a, prop, b[prop]);
5241
+ if (__hasOwnProp$7.call(b, prop))
5242
+ __defNormalProp$7(a, prop, b[prop]);
5243
+ if (__getOwnPropSymbols$7)
5244
+ for (var prop of __getOwnPropSymbols$7(b)) {
5245
+ if (__propIsEnum$7.call(b, prop))
5246
+ __defNormalProp$7(a, prop, b[prop]);
5107
5247
  }
5108
5248
  return a;
5109
5249
  };
@@ -5128,7 +5268,7 @@ const [, tooltipsHandler, TooltipsProvider] = makeSingleImperativeComponent()({
5128
5268
  });
5129
5269
  if (!tooltip)
5130
5270
  return null;
5131
- return /* @__PURE__ */ jsx(Tooltip, __spreadValues$3({}, tooltip));
5271
+ return /* @__PURE__ */ jsx(Tooltip, __spreadValues$7({}, tooltip));
5132
5272
  }
5133
5273
  });
5134
5274
  function useTooltip(tooltip) {
@@ -5139,7 +5279,7 @@ function useTooltip(tooltip) {
5139
5279
  isOpen.current = true;
5140
5280
  if (!tooltip && !(otherProps == null ? void 0 : otherProps.children))
5141
5281
  throw new Error("There is no children set for the current tooltip");
5142
- tooltipsHandler("open", __spreadProps(__spreadValues$3(__spreadValues$3({}, tooltip), otherProps), {
5282
+ tooltipsHandler("open", __spreadProps(__spreadValues$7(__spreadValues$7({}, tooltip), otherProps), {
5143
5283
  onClose() {
5144
5284
  var _a, _b;
5145
5285
  (_a = tooltip == null ? void 0 : tooltip.onClose) == null ? void 0 : _a.call(tooltip);
@@ -5306,23 +5446,23 @@ const KeyHandler = ({
5306
5446
  );
5307
5447
  };
5308
5448
 
5309
- var __defProp$2 = Object.defineProperty;
5310
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
5311
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
5312
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
5313
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5314
- var __spreadValues$2 = (a, b) => {
5449
+ var __defProp$6 = Object.defineProperty;
5450
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
5451
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
5452
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
5453
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5454
+ var __spreadValues$6 = (a, b) => {
5315
5455
  for (var prop in b || (b = {}))
5316
- if (__hasOwnProp$2.call(b, prop))
5317
- __defNormalProp$2(a, prop, b[prop]);
5318
- if (__getOwnPropSymbols$2)
5319
- for (var prop of __getOwnPropSymbols$2(b)) {
5320
- if (__propIsEnum$2.call(b, prop))
5321
- __defNormalProp$2(a, prop, b[prop]);
5456
+ if (__hasOwnProp$6.call(b, prop))
5457
+ __defNormalProp$6(a, prop, b[prop]);
5458
+ if (__getOwnPropSymbols$6)
5459
+ for (var prop of __getOwnPropSymbols$6(b)) {
5460
+ if (__propIsEnum$6.call(b, prop))
5461
+ __defNormalProp$6(a, prop, b[prop]);
5322
5462
  }
5323
5463
  return a;
5324
5464
  };
5325
- const styles = {
5465
+ const styles$1 = {
5326
5466
  "&, *": {
5327
5467
  textAlign: "center"
5328
5468
  },
@@ -5341,7 +5481,7 @@ const styles = {
5341
5481
  flexDirection: "column",
5342
5482
  gap: 3,
5343
5483
  "&:hover": (theme) => {
5344
- return __spreadValues$2({}, theme.palette.getOneState(
5484
+ return __spreadValues$6({}, theme.palette.getOneState(
5345
5485
  { backgroundColor: "palette.background.paper" },
5346
5486
  "hover"
5347
5487
  ));
@@ -5358,7 +5498,7 @@ const styles = {
5358
5498
  },
5359
5499
  ".iconsList__keyHandler:focus": {
5360
5500
  outline: "none",
5361
- ".focused .iconsList__icon__wrapper": __spreadValues$2({}, focusOutline)
5501
+ ".focused .iconsList__icon__wrapper": __spreadValues$6({}, focusOutline)
5362
5502
  }
5363
5503
  };
5364
5504
 
@@ -5412,19 +5552,19 @@ function useIconRendererContext() {
5412
5552
  return context;
5413
5553
  }
5414
5554
 
5415
- var __defProp$1 = Object.defineProperty;
5416
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
5417
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
5418
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
5419
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5420
- var __spreadValues$1 = (a, b) => {
5555
+ var __defProp$5 = Object.defineProperty;
5556
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
5557
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
5558
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
5559
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5560
+ var __spreadValues$5 = (a, b) => {
5421
5561
  for (var prop in b || (b = {}))
5422
- if (__hasOwnProp$1.call(b, prop))
5423
- __defNormalProp$1(a, prop, b[prop]);
5424
- if (__getOwnPropSymbols$1)
5425
- for (var prop of __getOwnPropSymbols$1(b)) {
5426
- if (__propIsEnum$1.call(b, prop))
5427
- __defNormalProp$1(a, prop, b[prop]);
5562
+ if (__hasOwnProp$5.call(b, prop))
5563
+ __defNormalProp$5(a, prop, b[prop]);
5564
+ if (__getOwnPropSymbols$5)
5565
+ for (var prop of __getOwnPropSymbols$5(b)) {
5566
+ if (__propIsEnum$5.call(b, prop))
5567
+ __defNormalProp$5(a, prop, b[prop]);
5428
5568
  }
5429
5569
  return a;
5430
5570
  };
@@ -5451,30 +5591,31 @@ const Icon = (props) => {
5451
5591
  height: `${props.width - 4}px`
5452
5592
  },
5453
5593
  ".iconsList__icon__image": {
5454
- maxHeight: `${props.width - 8}px`
5594
+ maxHeight: `${props.width - 32}px`,
5595
+ maxWidth: `${props.width - 32}px`
5455
5596
  }
5456
5597
  }),
5457
5598
  [props.width]
5458
5599
  ),
5459
5600
  "aria-colindex": props.colIndex,
5460
- children: /* @__PURE__ */ jsx(Renderer, __spreadValues$1({}, props))
5601
+ children: /* @__PURE__ */ jsx(Renderer, __spreadValues$5({}, props))
5461
5602
  }
5462
5603
  );
5463
5604
  };
5464
5605
 
5465
- var __defProp = Object.defineProperty;
5466
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5467
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5468
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5469
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5470
- var __spreadValues = (a, b) => {
5606
+ var __defProp$4 = Object.defineProperty;
5607
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
5608
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
5609
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
5610
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5611
+ var __spreadValues$4 = (a, b) => {
5471
5612
  for (var prop in b || (b = {}))
5472
- if (__hasOwnProp.call(b, prop))
5473
- __defNormalProp(a, prop, b[prop]);
5474
- if (__getOwnPropSymbols)
5475
- for (var prop of __getOwnPropSymbols(b)) {
5476
- if (__propIsEnum.call(b, prop))
5477
- __defNormalProp(a, prop, b[prop]);
5613
+ if (__hasOwnProp$4.call(b, prop))
5614
+ __defNormalProp$4(a, prop, b[prop]);
5615
+ if (__getOwnPropSymbols$4)
5616
+ for (var prop of __getOwnPropSymbols$4(b)) {
5617
+ if (__propIsEnum$4.call(b, prop))
5618
+ __defNormalProp$4(a, prop, b[prop]);
5478
5619
  }
5479
5620
  return a;
5480
5621
  };
@@ -5486,7 +5627,7 @@ const IconWrapper = ({
5486
5627
  }) => {
5487
5628
  return icon === justToFillTheRow ? /* @__PURE__ */ jsx(Box, { sx: { width: `${iconWidth}px` }, className: "fill__the__row" }) : /* @__PURE__ */ jsx(
5488
5629
  Icon,
5489
- __spreadValues({
5630
+ __spreadValues$4({
5490
5631
  rowIndex,
5491
5632
  colIndex,
5492
5633
  width: iconWidth
@@ -5558,7 +5699,7 @@ const IconsListNonForwarded = (props, ref) => {
5558
5699
  role: "grid",
5559
5700
  "aria-rowcount": rows,
5560
5701
  "aria-colcount": breakPoint,
5561
- children: Array(rows).fill(1).map((_, i) => {
5702
+ children: arrayOrArray(rows).fill(1).map((_, i) => {
5562
5703
  const icons = getRowIcons({
5563
5704
  breakPoint,
5564
5705
  i,
@@ -5598,7 +5739,7 @@ const IconsListNonForwarded = (props, ref) => {
5598
5739
  Component: makeStyledComponent(
5599
5740
  "IconsList",
5600
5741
  "layout.common.components.iconsList",
5601
- styles,
5742
+ styles$1,
5602
5743
  styledComponent
5603
5744
  ),
5604
5745
  debounce: 50
@@ -5641,4 +5782,297 @@ function importComponent(path) {
5641
5782
  });
5642
5783
  }
5643
5784
 
5644
- export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, ApiaFilter, AutoEllipsis, BaseButton, CalendarModal, Captcha, Checkbox$1 as Checkbox, CollapsiblePanel, Confirm, DateInput, DialogButtonBar, FieldErrorMessage, FieldLabel, IconButton, IconInput, IconsList, LinearLoader, Listbox, ListboxItem, LoaderSpinner, Modal, ModalContext, NumberInput, Overlay, ProgressBar, RequiredMark, ScreenLock, SimpleButton, TooltipsProvider, WaiTypeAhead, getConfirmButton, getFieldErrorStyles, getFieldTouchedStyles, importComponent, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, tooltipsHandler, useAccordionContext, useModal, useOtherTagButton, useTooltip };
5785
+ var __defProp$3 = Object.defineProperty;
5786
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
5787
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
5788
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
5789
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5790
+ var __spreadValues$3 = (a, b) => {
5791
+ for (var prop in b || (b = {}))
5792
+ if (__hasOwnProp$3.call(b, prop))
5793
+ __defNormalProp$3(a, prop, b[prop]);
5794
+ if (__getOwnPropSymbols$3)
5795
+ for (var prop of __getOwnPropSymbols$3(b)) {
5796
+ if (__propIsEnum$3.call(b, prop))
5797
+ __defNormalProp$3(a, prop, b[prop]);
5798
+ }
5799
+ return a;
5800
+ };
5801
+ const styles = {
5802
+ backgroundColor: "palette.background.default",
5803
+ "ul.listbox__list": {
5804
+ display: "flex",
5805
+ padding: "4px",
5806
+ gap: "2px",
5807
+ "[data-separator]": {
5808
+ "&:focus, &.focused": {
5809
+ outline: "none"
5810
+ }
5811
+ },
5812
+ ".listbox__row": {
5813
+ p: 0,
5814
+ display: "flex",
5815
+ alignItems: "center",
5816
+ justifyContent: "center"
5817
+ },
5818
+ ".iconButton": {
5819
+ borderRadius: "4px",
5820
+ height: "32px",
5821
+ width: "32px",
5822
+ background: "transparent",
5823
+ svg: {
5824
+ path: {
5825
+ fill: "palette.text.primary"
5826
+ }
5827
+ },
5828
+ "&:disabled": {
5829
+ svg: {
5830
+ path: {
5831
+ fill: "palette.border.section"
5832
+ }
5833
+ }
5834
+ }
5835
+ },
5836
+ ".separator": {
5837
+ borderLeft: "1px solid",
5838
+ borderRight: "1px solid",
5839
+ borderColor: "palette.gray.750",
5840
+ height: "60%",
5841
+ width: "3px"
5842
+ },
5843
+ ".toggled": (theme) => {
5844
+ return __spreadValues$3({}, theme.palette.getOneState(
5845
+ { backgroundColor: theme.palette.background.default },
5846
+ "selected"
5847
+ ));
5848
+ }
5849
+ }
5850
+ };
5851
+
5852
+ var __defProp$2 = Object.defineProperty;
5853
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
5854
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
5855
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
5856
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5857
+ var __spreadValues$2 = (a, b) => {
5858
+ for (var prop in b || (b = {}))
5859
+ if (__hasOwnProp$2.call(b, prop))
5860
+ __defNormalProp$2(a, prop, b[prop]);
5861
+ if (__getOwnPropSymbols$2)
5862
+ for (var prop of __getOwnPropSymbols$2(b)) {
5863
+ if (__propIsEnum$2.call(b, prop))
5864
+ __defNormalProp$2(a, prop, b[prop]);
5865
+ }
5866
+ return a;
5867
+ };
5868
+ class ToolbarController extends EventEmitter {
5869
+ constructor() {
5870
+ super(...arguments);
5871
+ this.eventListeners = {};
5872
+ this.itemsState = {};
5873
+ this.hooks = {
5874
+ useItemState: (id, initialState) => {
5875
+ const [state, setState] = useState(initialState);
5876
+ useEffect(() => {
5877
+ this.itemsState[id] = initialState;
5878
+ this.on("updateItemState", (evId) => {
5879
+ if (evId === id) {
5880
+ setState(__spreadValues$2({}, this.itemsState[id]));
5881
+ }
5882
+ });
5883
+ }, []);
5884
+ return state;
5885
+ }
5886
+ };
5887
+ this.setItemState = (id, newState) => {
5888
+ this.itemsState[id] = __spreadValues$2(__spreadValues$2({}, this.itemsState[id]), newState);
5889
+ this.emit("updateItemState", id);
5890
+ };
5891
+ this.Context = ({ children }) => {
5892
+ return /* @__PURE__ */ jsx(ToolbarControllerContext.Provider, { value: this, children });
5893
+ };
5894
+ }
5895
+ }
5896
+ const ToolbarControllerContext = createContext(
5897
+ null
5898
+ );
5899
+ const useToolbarControllerContext = () => {
5900
+ const context = useContext(ToolbarControllerContext);
5901
+ if (!context)
5902
+ throw new Error("There is no Toolbar controller context");
5903
+ return context;
5904
+ };
5905
+
5906
+ var __defProp$1 = Object.defineProperty;
5907
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
5908
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
5909
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
5910
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5911
+ var __spreadValues$1 = (a, b) => {
5912
+ for (var prop in b || (b = {}))
5913
+ if (__hasOwnProp$1.call(b, prop))
5914
+ __defNormalProp$1(a, prop, b[prop]);
5915
+ if (__getOwnPropSymbols$1)
5916
+ for (var prop of __getOwnPropSymbols$1(b)) {
5917
+ if (__propIsEnum$1.call(b, prop))
5918
+ __defNormalProp$1(a, prop, b[prop]);
5919
+ }
5920
+ return a;
5921
+ };
5922
+ const ToolbarItemButton = ({
5923
+ id,
5924
+ action,
5925
+ allowToggle,
5926
+ defaultToggled,
5927
+ disabled,
5928
+ icon,
5929
+ iconSize,
5930
+ title,
5931
+ toggled: toggledProp
5932
+ }) => {
5933
+ const [innerIsToggled, setInnerIsToggled] = useState(
5934
+ toggledProp != null ? toggledProp : allowToggle ? defaultToggled != null ? defaultToggled : false : false
5935
+ );
5936
+ const [isDisabled, setIsDisabled] = useState(!!disabled);
5937
+ const lastToggledProp = useRef(toggledProp);
5938
+ if (toggledProp !== void 0 && innerIsToggled !== toggledProp && lastToggledProp.current !== toggledProp) {
5939
+ lastToggledProp.current = toggledProp;
5940
+ setInnerIsToggled(toggledProp);
5941
+ }
5942
+ const handleClick = useCallback(() => {
5943
+ if (lastToggledProp.current !== void 0) {
5944
+ action({ isToggled: !lastToggledProp.current });
5945
+ } else if (allowToggle) {
5946
+ let isToggled = false;
5947
+ setInnerIsToggled((current) => {
5948
+ isToggled = !current;
5949
+ return isToggled;
5950
+ });
5951
+ action({ isToggled });
5952
+ } else {
5953
+ action({ isToggled: false });
5954
+ }
5955
+ }, [action, allowToggle]);
5956
+ const context = useToolbarControllerContext();
5957
+ useEffect(() => {
5958
+ const unsuscribe1 = context.on("updateItemState", (evId) => {
5959
+ if (evId === id) {
5960
+ setInnerIsToggled(!!context.itemsState[evId].toggled);
5961
+ setIsDisabled(!!context.itemsState[evId].disabled);
5962
+ }
5963
+ });
5964
+ const unsuscribe2 = context.on("pressEnter", (evId) => {
5965
+ if (evId === id)
5966
+ handleClick();
5967
+ });
5968
+ return () => {
5969
+ unsuscribe1();
5970
+ unsuscribe2();
5971
+ };
5972
+ }, [context, id, handleClick]);
5973
+ useMount(() => {
5974
+ if (context.itemsState[id]) {
5975
+ if (context.itemsState[id].disabled !== void 0) {
5976
+ setIsDisabled(!!context.itemsState[id].disabled);
5977
+ }
5978
+ if (context.itemsState[id].toggled !== void 0) {
5979
+ setInnerIsToggled(!!context.itemsState[id].toggled);
5980
+ }
5981
+ } else
5982
+ context.itemsState[id] = __spreadValues$1({
5983
+ disabled: isDisabled,
5984
+ toggled: innerIsToggled
5985
+ }, context.itemsState[id]);
5986
+ });
5987
+ return /* @__PURE__ */ jsx(
5988
+ IconButton$2,
5989
+ {
5990
+ className: `toolbarItem ${innerIsToggled ? "toggled" : ""}`,
5991
+ size: iconSize != null ? iconSize : "Md",
5992
+ icon,
5993
+ onClick: handleClick,
5994
+ "data-id": id,
5995
+ title,
5996
+ disabled: isDisabled
5997
+ }
5998
+ );
5999
+ };
6000
+
6001
+ function isSeparator(params) {
6002
+ return !!params.separator;
6003
+ }
6004
+
6005
+ var __defProp = Object.defineProperty;
6006
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6007
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6008
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
6009
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6010
+ var __spreadValues = (a, b) => {
6011
+ for (var prop in b || (b = {}))
6012
+ if (__hasOwnProp.call(b, prop))
6013
+ __defNormalProp(a, prop, b[prop]);
6014
+ if (__getOwnPropSymbols)
6015
+ for (var prop of __getOwnPropSymbols(b)) {
6016
+ if (__propIsEnum.call(b, prop))
6017
+ __defNormalProp(a, prop, b[prop]);
6018
+ }
6019
+ return a;
6020
+ };
6021
+ const ToolbarItem = (props) => {
6022
+ if (isSeparator(props)) {
6023
+ return /* @__PURE__ */ jsx(Box, { className: "separator", children: "\xA0" });
6024
+ }
6025
+ return /* @__PURE__ */ jsx(ToolbarItemButton, __spreadValues({}, props));
6026
+ };
6027
+
6028
+ const Toolbar = makeStyledComponent(
6029
+ "toolbar",
6030
+ "layout.components.toolbar",
6031
+ styles,
6032
+ ({ children, getController }) => {
6033
+ const controller = useMemo(() => new ToolbarController(), []);
6034
+ let separator = 0;
6035
+ useMount(() => {
6036
+ getController == null ? void 0 : getController(controller);
6037
+ });
6038
+ return /* @__PURE__ */ jsx(controller.Context, { children: /* @__PURE__ */ jsx(
6039
+ Listbox,
6040
+ {
6041
+ className: "toolbar",
6042
+ onPressKeyOnNode: (ev) => {
6043
+ if (ev.code === "Enter" || ev.code === "Space") {
6044
+ const target = ev.target;
6045
+ const item = target.querySelector(".toolbarItem");
6046
+ const id = item.dataset.id;
6047
+ if (!id) {
6048
+ console.error("Error event", ev);
6049
+ throw new Error(
6050
+ "Cannot find target in toolbar press enter event."
6051
+ );
6052
+ }
6053
+ controller.emit("pressEnter", id);
6054
+ }
6055
+ },
6056
+ children: Children.toArray(children).map((current) => {
6057
+ const props = current == null ? void 0 : current.props;
6058
+ if (!props)
6059
+ throw new Error(
6060
+ "Toolbar items must be of ToolbarItem type and have an id defined."
6061
+ );
6062
+ const { id, title } = props;
6063
+ return /* @__PURE__ */ jsx(
6064
+ ListboxItem,
6065
+ {
6066
+ label: title,
6067
+ "data-separator": id ? void 0 : "true",
6068
+ children: current
6069
+ },
6070
+ id != null ? id : `separator${separator++}`
6071
+ );
6072
+ })
6073
+ }
6074
+ ) });
6075
+ }
6076
+ );
6077
+
6078
+ export { Accordion, AccordionContext, AccordionItem, AccordionItemButton, AccordionItemContent, AccordionItemContext, AlertModal, ApiaFilter, AutoEllipsis, BaseButton, CalendarModal, Captcha, Checkbox$1 as Checkbox, CollapsiblePanel, Confirm, ConfirmModal, DateInput, DialogButtonBar, FieldErrorMessage, FieldLabel, IconButton, IconInput, IconsList, LinearLoader, Listbox, ListboxItem, LoaderSpinner, Modal, ModalContext, NumberInput, Overlay, ProgressBar, RequiredMark, ScreenLock, SimpleButton, Toolbar, ToolbarController, ToolbarItem, TooltipsProvider, WaiTypeAhead, getFieldErrorStyles, getFieldTouchedStyles, importComponent, makeResponsiveComponent, parseNumberInputValueToNumber, parseNumberValueToNumberInput, tooltipsHandler, useAccordionContext, useModal, useOtherTagButton, useTooltip };