@livechat/design-system-react-components 1.0.0-beta.12 → 1.0.0-beta.13

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/dsrc.es.js CHANGED
@@ -23,7 +23,7 @@ var Ot = (t, a, r) => (Lt(t, typeof a != "symbol" ? a + "" : a, r), r);
23
23
  import * as e from "react";
24
24
  import { useReducer as er, useRef as tr, useEffect as tt, useCallback as ht, useMemo as kt } from "react";
25
25
  import { ChevronDown as bt, Close as Te, Info as Zt, Warning as Ta, CheckCircle as Da, Block as Ia, Person as ar, ChevronUp as Ft, VisibilityOn as rr, VisibilityOff as _r, Check as Xt, Search as or, LockBlackFilled as lr, Refresh as cr, Error as nr } from "@livechat/design-system-icons/react/tabler";
26
- import g, { clsx as He } from "clsx";
26
+ import g, { clsx as Le } from "clsx";
27
27
  import { useFloating as Aa, offset as Ba, flip as Pa, autoUpdate as Fa, arrow as sr } from "@floating-ui/react-dom";
28
28
  import { css as at, cx as ir } from "@emotion/css";
29
29
  import { CSSTransition as ea, TransitionGroup as Ra } from "react-transition-group";
@@ -31,7 +31,7 @@ import { Close as Ma, DoubleArrowLeft as dr, ChevronLeft as ur, ChevronRight as
31
31
  import La from "lodash.debounce";
32
32
  import { getContrast as ta } from "polished";
33
33
  import gr from "react-day-picker";
34
- import { subMonths as Xe, differenceInCalendarMonths as la, addMonths as ca, isSameMonth as qt, isSameDay as Jt, isAfter as jt, differenceInCalendarDays as Oa } from "date-fns";
34
+ import { subMonths as Xe, differenceInCalendarMonths as la, addMonths as ca, isSameMonth as qt, isSameDay as Jt, isAfter as Kt, differenceInCalendarDays as Oa } from "date-fns";
35
35
  import * as fr from "react-dom";
36
36
  import na from "lodash.escape";
37
37
  const il = {
@@ -449,14 +449,14 @@ const il = {
449
449
  closeOnEsc: s = !0
450
450
  }) => {
451
451
  const [i, u] = e.useState(!1), m = e.useRef(!1), d = typeof r == "string", {
452
- x: b,
452
+ x: v,
453
453
  y: f,
454
454
  reference: p,
455
- floating: v,
456
- strategy: $,
455
+ floating: b,
456
+ strategy: E,
457
457
  refs: h,
458
- update: y,
459
- placement: N
458
+ update: N,
459
+ placement: $
460
460
  } = Aa({
461
461
  middleware: [Ba(4), Pa(c)],
462
462
  placement: l
@@ -474,13 +474,13 @@ const il = {
474
474
  };
475
475
  }, [s]), e.useEffect(() => {
476
476
  if (!(!h.reference.current || !h.floating.current))
477
- return Fa(h.reference.current, h.floating.current, y);
478
- }, [h.reference, h.floating, y, N, i]);
479
- function E(x) {
477
+ return Fa(h.reference.current, h.floating.current, N);
478
+ }, [h.reference, h.floating, N, $, i]);
479
+ function y(x) {
480
480
  h.floating.current && h.floating.current.contains(x.target) || (h.reference.current && h.reference.current.contains(x.target) ? u((H) => !H) : u(!1));
481
481
  }
482
- e.useEffect(() => (document.addEventListener("mousedown", E), () => {
483
- document.removeEventListener("mousedown", E);
482
+ e.useEffect(() => (document.addEventListener("mousedown", y), () => {
483
+ document.removeEventListener("mousedown", y);
484
484
  }), []);
485
485
  const k = g(Ht.popover, _, {
486
486
  [Ht["popover--visible"]]: i
@@ -491,120 +491,120 @@ const il = {
491
491
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: C, ref: p }, t()), /* @__PURE__ */ e.createElement(
492
492
  "div",
493
493
  {
494
- ref: v,
494
+ ref: b,
495
495
  className: k,
496
496
  style: {
497
- position: $,
497
+ position: E,
498
498
  top: f != null ? f : "",
499
- left: b != null ? b : ""
499
+ left: v != null ? v : ""
500
500
  }
501
501
  },
502
502
  d ? /* @__PURE__ */ e.createElement(P, { as: "div" }, r) : r
503
503
  ));
504
- }, Pe = {
504
+ }, Ue = {
505
505
  "action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
506
506
  "action-menu__list": "lc-ActionMenu-module__action-menu__list___9pNUX",
507
507
  "action-menu__list__group-header": "lc-ActionMenu-module__action-menu__list__group-header___n-DTq",
508
508
  "action-menu__list__item": "lc-ActionMenu-module__action-menu__list__item___n-OgH",
509
509
  "action-menu__list__item--with-divider": "lc-ActionMenu-module__action-menu__list__item--with-divider___2H3Vm",
510
- "action-menu__list__item--disabled": "lc-ActionMenu-module__action-menu__list__item--disabled___MgaX8",
511
- "action-menu__list__item--active": "lc-ActionMenu-module__action-menu__list__item--active___CakY-"
512
- }, Fe = "action-menu", yr = (i) => {
513
- var u = i, {
510
+ "action-menu__list__item--disabled": "lc-ActionMenu-module__action-menu__list__item--disabled___MgaX8"
511
+ }, We = "action-menu", yr = (s) => {
512
+ var i = s, {
514
513
  className: t,
515
514
  triggerClassName: a,
516
515
  options: r,
517
516
  triggerRenderer: _,
518
517
  placement: o = "bottom-end",
519
518
  openedOnInit: l = !1,
520
- keepOpenOnClick: c,
521
- activeOptionKeys: n
522
- } = u, s = B(u, [
519
+ keepOpenOnClick: c
520
+ } = i, n = B(i, [
523
521
  "className",
524
522
  "triggerClassName",
525
523
  "options",
526
524
  "triggerRenderer",
527
525
  "placement",
528
526
  "openedOnInit",
529
- "keepOpenOnClick",
530
- "activeOptionKeys"
527
+ "keepOpenOnClick"
531
528
  ]);
532
- const [m, d] = e.useState(l), b = e.useRef(-1), f = (y) => {
533
- var k, C;
534
- const N = b.current;
535
- let E = N + y;
536
- for (; (k = r[E]) != null && k.disabled || (C = r[E]) != null && C.groupHeader; )
537
- if (E += y, E === -1) {
538
- E = N;
529
+ const [u, m] = e.useState(l), d = e.useRef(-1), v = e.useRef(null), f = ($) => {
530
+ var C, x;
531
+ const y = d.current;
532
+ let k = y + $;
533
+ for (; (C = r[k]) != null && C.disabled || (x = r[k]) != null && x.groupHeader; )
534
+ if (k += $, k === -1) {
535
+ k = y;
539
536
  break;
540
537
  }
541
- return E;
542
- }, p = (y) => {
543
- var N, E;
544
- y.key === L.arrowUp && b.current > 0 && (y.preventDefault(), b.current = f(-1), (N = document.getElementById(`list-item-${b.current}`)) == null || N.focus()), y.key === L.arrowDown && b.current + 1 < r.length && (y.preventDefault(), b.current = f(1), (E = document.getElementById(`list-item-${b.current}`)) == null || E.focus());
538
+ return k;
539
+ }, p = ($) => {
540
+ var C, x;
541
+ d.current = f($);
542
+ const y = (C = v.current) == null ? void 0 : C.children, k = y && ((x = y[d.current]) == null ? void 0 : x.children[0]);
543
+ return k == null ? void 0 : k.focus();
544
+ }, b = ($) => {
545
+ $.key === L.arrowUp && d.current > 0 && ($.preventDefault(), p(-1)), $.key === L.arrowDown && d.current + 1 < r.length && ($.preventDefault(), p(1));
545
546
  };
546
547
  e.useEffect(() => {
547
- if (m)
548
- return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
549
- b.current = -1;
550
- }, [m, p]);
551
- const v = () => {
552
- d(!0);
553
- }, $ = (y) => {
554
- y == null || y(), c || d(!1);
555
- }, h = (y, N) => y.groupHeader ? /* @__PURE__ */ e.createElement(
548
+ if (u)
549
+ return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
550
+ d.current = -1;
551
+ }, [u, b]);
552
+ const E = () => {
553
+ m(!0);
554
+ }, h = ($, y) => {
555
+ d.current = $, y == null || y(), c || m(!1);
556
+ }, N = ($, y) => $.groupHeader ? /* @__PURE__ */ e.createElement(
556
557
  "li",
557
558
  {
558
- key: y.key,
559
+ key: $.key,
559
560
  role: "none",
560
- className: Pe[`${Fe}__list__group-header`]
561
+ className: Ue[`${We}__list__group-header`]
561
562
  },
562
- y.element
563
- ) : /* @__PURE__ */ e.createElement("li", { key: y.key, role: "none" }, /* @__PURE__ */ e.createElement(
563
+ $.element
564
+ ) : /* @__PURE__ */ e.createElement("li", { key: $.key, role: "none" }, /* @__PURE__ */ e.createElement(
564
565
  "button",
565
566
  {
566
- id: `list-item-${N}`,
567
- "data-testid": y.key,
567
+ "data-testid": $.key,
568
568
  tabIndex: -1,
569
- key: y.key,
570
- disabled: y.disabled,
571
- onClick: () => $(y.onClick),
569
+ key: $.key,
570
+ disabled: $.disabled,
571
+ onClick: () => h(y, $.onClick),
572
572
  role: "menuitem",
573
- className: g(Pe[`${Fe}__list__item`], {
574
- [Pe[`${Fe}__list__item--disabled`]]: y.disabled,
575
- [Pe[`${Fe}__list__item--with-divider`]]: y.withDivider,
576
- [Pe[`${Fe}__list__item--active`]]: n == null ? void 0 : n.includes(y.key)
573
+ className: g(Ue[`${We}__list__item`], {
574
+ [Ue[`${We}__list__item--disabled`]]: $.disabled,
575
+ [Ue[`${We}__list__item--with-divider`]]: $.withDivider
577
576
  })
578
577
  },
579
- y.element
578
+ $.element
580
579
  ));
581
580
  return /* @__PURE__ */ e.createElement(
582
581
  kr,
583
582
  {
584
- isVisible: m,
583
+ isVisible: u,
585
584
  placement: o,
586
- onClose: () => d(!1),
585
+ onClose: () => m(!1),
587
586
  triggerRenderer: () => /* @__PURE__ */ e.createElement(
588
587
  "button",
589
588
  {
590
589
  "data-testid": "action-menu-trigger-button",
591
590
  className: g(
592
- Pe[`${Fe}__trigger-button`],
591
+ Ue[`${We}__trigger-button`],
593
592
  a
594
593
  ),
595
- onClick: v
594
+ onClick: E
596
595
  },
597
596
  _
598
597
  )
599
598
  },
600
599
  /* @__PURE__ */ e.createElement(
601
600
  "ul",
602
- A(w({}, s), {
603
- className: g(Pe[`${Fe}__list`], t),
601
+ A(w({}, n), {
602
+ className: g(Ue[`${We}__list`], t),
604
603
  role: "menu",
605
- "aria-hidden": !m
604
+ "aria-hidden": !u,
605
+ ref: v
606
606
  }),
607
- r.map(h)
607
+ r.map(N)
608
608
  )
609
609
  );
610
610
  }, rt = {
@@ -759,7 +759,7 @@ const il = {
759
759
  "btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
760
760
  }, oe = "btn", M = e.forwardRef(
761
761
  (p, f) => {
762
- var v = p, {
762
+ var b = p, {
763
763
  loading: t = !1,
764
764
  disabled: a = !1,
765
765
  type: r = "button",
@@ -773,7 +773,7 @@ const il = {
773
773
  children: u,
774
774
  href: m,
775
775
  onClick: d
776
- } = v, b = B(v, [
776
+ } = b, v = B(b, [
777
777
  "loading",
778
778
  "disabled",
779
779
  "type",
@@ -788,7 +788,7 @@ const il = {
788
788
  "href",
789
789
  "onClick"
790
790
  ]);
791
- const $ = t || a, h = !u && c, y = ["text", "link", "link-light"].includes(o), N = m ? "a" : "button", E = () => {
791
+ const E = t || a, h = !u && c, N = ["text", "link", "link-light"].includes(o), $ = m ? "a" : "button", y = () => {
792
792
  if (o === "primary" || o === "destructive")
793
793
  return {
794
794
  primaryColor: "var(--action-primary-default)",
@@ -803,28 +803,28 @@ const il = {
803
803
  [_e[`${oe}--loading`]]: t,
804
804
  [_e[`${oe}--full-width`]]: _,
805
805
  [_e[`${oe}--icon-only`]]: h,
806
- [_e[`${oe}--icon-only--bg`]]: h && y,
807
- [_e[`${oe}--disabled`]]: $
806
+ [_e[`${oe}--icon-only--bg`]]: h && N,
807
+ [_e[`${oe}--disabled`]]: E
808
808
  }
809
809
  );
810
810
  return /* @__PURE__ */ e.createElement(
811
- N,
811
+ $,
812
812
  w({
813
813
  ref: f,
814
814
  className: k,
815
- "aria-disabled": $,
815
+ "aria-disabled": E,
816
816
  type: r,
817
- href: $ ? void 0 : m,
818
- onClick: $ ? void 0 : d,
819
- disabled: $
820
- }, b),
817
+ href: E ? void 0 : m,
818
+ onClick: E ? void 0 : d,
819
+ disabled: E
820
+ }, v),
821
821
  t && /* @__PURE__ */ e.createElement(
822
822
  aa,
823
823
  w({
824
824
  size: "small",
825
825
  label: s,
826
826
  className: _e[`${oe}__loader`]
827
- }, E())
827
+ }, y())
828
828
  ),
829
829
  c && e.cloneElement(c, {
830
830
  className: g(
@@ -881,17 +881,17 @@ const il = {
881
881
  transitionDelay: u,
882
882
  handleMouseEnter: m,
883
883
  handleMouseLeave: d,
884
- handleCloseAction: b,
884
+ handleCloseAction: v,
885
885
  arrowRef: f,
886
886
  childrenElements: p,
887
- fullSpaceContent: v
887
+ fullSpaceContent: b
888
888
  }) => {
889
889
  const {
890
- x: $,
890
+ x: E,
891
891
  y: h,
892
- reference: y,
893
- floating: N,
894
- strategy: E,
892
+ reference: N,
893
+ floating: $,
894
+ strategy: y,
895
895
  update: k,
896
896
  refs: C,
897
897
  placement: x,
@@ -901,27 +901,27 @@ const il = {
901
901
  if (!(!C.reference.current || !C.floating.current))
902
902
  return Fa(C.reference.current, C.floating.current, k);
903
903
  }, [C.reference, C.floating, k, x, t]), e.useEffect(() => {
904
- r && y(r);
905
- }, [y, r]);
906
- const ne = o && re ? re + o : re, ze = _ && H ? H + _ : H, Ge = g(S[l], c, {
904
+ r && N(r);
905
+ }, [N, r]);
906
+ const ne = o && re ? re + o : re, Oe = _ && H ? H + _ : H, He = g(S[l], c, {
907
907
  [S[`${l}--invert`]]: n === "invert",
908
908
  [S[`${l}--important`]]: n === "important",
909
- [S[`${l}--full-space`]]: v
909
+ [S[`${l}--full-space`]]: b
910
910
  }), De = /* @__PURE__ */ e.createElement(
911
911
  "div",
912
912
  {
913
- ref: N,
913
+ ref: $,
914
914
  style: {
915
- position: E,
915
+ position: y,
916
916
  top: h != null ? h : "",
917
- left: $ != null ? $ : ""
917
+ left: E != null ? E : ""
918
918
  },
919
- className: Ge,
919
+ className: He,
920
920
  onMouseEnter: m,
921
921
  onMouseLeave: d
922
922
  },
923
923
  e.Children.map(p, (ye) => e.isValidElement(ye) ? e.cloneElement(ye, w({
924
- handleCloseAction: b,
924
+ handleCloseAction: v,
925
925
  theme: n
926
926
  }, ye.props)) : null),
927
927
  /* @__PURE__ */ e.createElement(
@@ -930,16 +930,16 @@ const il = {
930
930
  ref: f,
931
931
  className: g([S[`${l}__arrow`]]),
932
932
  "data-arrow-placement": x,
933
- style: { top: ne, left: ze }
933
+ style: { top: ne, left: Oe }
934
934
  }
935
935
  )
936
936
  );
937
- function Ue() {
937
+ function ze() {
938
938
  if (s) {
939
939
  const ye = at`
940
940
  pointer-events: none;
941
941
  opacity: 0;
942
- `, We = at`
942
+ `, Ge = at`
943
943
  opacity: 1;
944
944
  transition-property: opacity;
945
945
  transition-duration: ${i}ms;
@@ -964,7 +964,7 @@ const il = {
964
964
  classNames: {
965
965
  enter: ye,
966
966
  enterDone: se,
967
- enterActive: We,
967
+ enterActive: Ge,
968
968
  exit: F,
969
969
  exitActive: U
970
970
  }
@@ -974,7 +974,7 @@ const il = {
974
974
  } else
975
975
  return t && De;
976
976
  }
977
- return /* @__PURE__ */ e.createElement(e.Fragment, null, Ue());
977
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, ze());
978
978
  };
979
979
  function za(t) {
980
980
  switch (t) {
@@ -998,41 +998,41 @@ const Mr = (t) => new Promise((a) => setTimeout(a, t)), ua = "tooltip", Ga = (t)
998
998
  transitionDuration: u = 200,
999
999
  transitionDelay: m = 0,
1000
1000
  hoverOutDelayTimeout: d = 100,
1001
- offsetMainAxis: b = 8,
1001
+ offsetMainAxis: v = 8,
1002
1002
  triggerOnClick: f = !1,
1003
1003
  arrowOffsetY: p,
1004
- arrowOffsetX: v,
1005
- fullSpaceContent: $,
1004
+ arrowOffsetX: b,
1005
+ fullSpaceContent: E,
1006
1006
  onOpen: h,
1007
- onClose: y
1008
- } = t, N = e.useRef(!0), E = s !== void 0, k = e.useRef(null), [C, x] = e.useState(s), H = e.useRef(!1), re = Aa({
1007
+ onClose: N
1008
+ } = t, $ = e.useRef(!0), y = s !== void 0, k = e.useRef(null), [C, x] = e.useState(s), H = e.useRef(!1), re = Aa({
1009
1009
  middleware: [
1010
- Ba({ mainAxis: b }),
1010
+ Ba({ mainAxis: v }),
1011
1011
  sr({ element: k }),
1012
1012
  Pa()
1013
1013
  ],
1014
1014
  placement: n
1015
1015
  }), ne = (se) => {
1016
- se ? !C && (h == null || h()) : C && (y == null || y()), E || x(se);
1016
+ se ? !C && (h == null || h()) : C && (N == null || N()), y || x(se);
1017
1017
  };
1018
1018
  e.useEffect(() => {
1019
- if (N.current) {
1020
- N.current = !1;
1019
+ if ($.current) {
1020
+ $.current = !1;
1021
1021
  return;
1022
1022
  }
1023
- s === !0 && (h == null || h()), s === !1 && (y == null || y()), x(s);
1023
+ s === !0 && (h == null || h()), s === !1 && (N == null || N()), x(s);
1024
1024
  }, [s]), e.useEffect(() => (document.addEventListener("keydown", De), () => {
1025
1025
  document.removeEventListener("keydown", De);
1026
1026
  }), []);
1027
- const ze = () => {
1028
- f || E || (H.current = !0, ne(!0));
1029
- }, Ge = () => {
1030
- f || E || (H.current = !1, Mr(d).then(() => {
1027
+ const Oe = () => {
1028
+ f || y || (H.current = !0, ne(!0));
1029
+ }, He = () => {
1030
+ f || y || (H.current = !1, Mr(d).then(() => {
1031
1031
  H.current || ne(!1);
1032
1032
  }));
1033
1033
  }, De = (se) => {
1034
1034
  (se instanceof KeyboardEvent && se.key === "Escape" || se.type === "click") && ne(!1);
1035
- }, Ue = /* @__PURE__ */ e.createElement(
1035
+ }, ze = /* @__PURE__ */ e.createElement(
1036
1036
  Rr,
1037
1037
  {
1038
1038
  baseClass: ua,
@@ -1040,31 +1040,31 @@ const Mr = (t) => new Promise((a) => setTimeout(a, t)), ua = "tooltip", Ga = (t)
1040
1040
  visible: C,
1041
1041
  floatingOptions: re,
1042
1042
  arrowRef: k,
1043
- handleMouseEnter: ze,
1044
- handleMouseLeave: Ge,
1043
+ handleMouseEnter: Oe,
1044
+ handleMouseLeave: He,
1045
1045
  handleCloseAction: De,
1046
1046
  childrenElements: _,
1047
1047
  transitionDuration: u,
1048
1048
  transitionDelay: m,
1049
1049
  referenceElement: r,
1050
- arrowOffsetX: v,
1050
+ arrowOffsetX: b,
1051
1051
  arrowOffsetY: p,
1052
1052
  theme: c,
1053
1053
  withFadeAnimation: i,
1054
- fullSpaceContent: $
1054
+ fullSpaceContent: E
1055
1055
  }
1056
1056
  );
1057
1057
  if (r)
1058
- return Ue;
1058
+ return ze;
1059
1059
  const ye = () => {
1060
1060
  ne(!C);
1061
- }, We = () => {
1062
- if (!E)
1061
+ }, Ge = () => {
1062
+ if (!y)
1063
1063
  return f ? {
1064
1064
  onClick: ye
1065
1065
  } : {
1066
- onMouseEnter: ze,
1067
- onMouseLeave: Ge
1066
+ onMouseEnter: Oe,
1067
+ onMouseLeave: He
1068
1068
  };
1069
1069
  };
1070
1070
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
@@ -1072,9 +1072,9 @@ const Mr = (t) => new Promise((a) => setTimeout(a, t)), ua = "tooltip", Ga = (t)
1072
1072
  w({
1073
1073
  className: g(S[`${ua}__wrapper`], l),
1074
1074
  ref: re.reference
1075
- }, We()),
1075
+ }, Ge()),
1076
1076
  a()
1077
- ), Ue);
1077
+ ), ze);
1078
1078
  }, gl = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), lt = "tooltip", fl = ({ header: t, text: a, closeWithX: r, theme: _, handleCloseAction: o }) => /* @__PURE__ */ e.createElement("div", null, r && /* @__PURE__ */ e.createElement(
1079
1079
  M,
1080
1080
  {
@@ -1422,33 +1422,33 @@ const ma = 8, pa = "guide-tooltip", ga = (t, a) => new Or(t, a), vl = (t) => {
1422
1422
  const [l, c] = e.useState([]), n = r === "scroll", s = g(Se[nt], t), i = {
1423
1423
  root: document.querySelector(`${a}`),
1424
1424
  threshold: 1
1425
- }, u = !n && l.length !== 0, m = (b) => {
1426
- b.map((f) => {
1425
+ }, u = !n && l.length !== 0, m = (v) => {
1426
+ v.map((f) => {
1427
1427
  const p = l.includes(f.target.id);
1428
1428
  if (!f.isIntersecting) {
1429
- f.target.setAttribute("tabindex", "-1"), p || c((v) => [
1430
- ...v,
1429
+ f.target.setAttribute("tabindex", "-1"), p || c((b) => [
1430
+ ...b,
1431
1431
  f.target.id
1432
1432
  ]);
1433
1433
  return;
1434
1434
  }
1435
- f.target.removeAttribute("tabindex"), p && c(l.filter((v) => v !== f.target.id));
1435
+ f.target.removeAttribute("tabindex"), p && c(l.filter((b) => b !== f.target.id));
1436
1436
  });
1437
1437
  };
1438
1438
  e.useEffect(() => {
1439
- const b = !!window.IntersectionObserver;
1440
- if (!n && b) {
1439
+ const v = !!window.IntersectionObserver;
1440
+ if (!n && v) {
1441
1441
  const f = document.querySelectorAll(
1442
1442
  `.${Se[`${nt}__items__button`]}`
1443
1443
  ), p = new IntersectionObserver(
1444
1444
  m,
1445
1445
  i
1446
1446
  );
1447
- return f.forEach((v) => p.observe(v)), () => p.disconnect();
1447
+ return f.forEach((b) => p.observe(b)), () => p.disconnect();
1448
1448
  }
1449
1449
  }, [l, n]);
1450
- const d = (b) => _.filter(
1451
- (p) => b.find((v) => v === p.key)
1450
+ const d = (v) => _.filter(
1451
+ (p) => v.find((b) => b === p.key)
1452
1452
  ).map((p) => ({
1453
1453
  key: p.key,
1454
1454
  element: /* @__PURE__ */ e.createElement(Er, { leftNode: p.element }, p.label),
@@ -1461,10 +1461,10 @@ const ma = 8, pa = "guide-tooltip", ga = (t, a) => new Or(t, a), vl = (t) => {
1461
1461
  [Se[`${nt}__items--scroll`]]: n
1462
1462
  })
1463
1463
  },
1464
- _.map((b) => /* @__PURE__ */ e.createElement(
1464
+ _.map((v) => /* @__PURE__ */ e.createElement(
1465
1465
  Hr,
1466
1466
  {
1467
- option: b,
1467
+ option: v,
1468
1468
  menuItemsKeys: l,
1469
1469
  activeOptionKey: o
1470
1470
  }
@@ -1531,10 +1531,10 @@ const ma = 8, pa = "guide-tooltip", ga = (t, a) => new Or(t, a), vl = (t) => {
1531
1531
  a
1532
1532
  );
1533
1533
  return e.useEffect(() => {
1534
- const b = () => i.current && i.current.offsetWidth <= 400 ? m("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? m("medium") : m(null), f = La(() => {
1535
- b();
1534
+ const v = () => i.current && i.current.offsetWidth <= 400 ? m("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? m("medium") : m(null), f = La(() => {
1535
+ v();
1536
1536
  }, 500);
1537
- return window.addEventListener("resize", f), b(), () => window.removeEventListener("resize", f);
1537
+ return window.addEventListener("resize", f), v(), () => window.removeEventListener("resize", f);
1538
1538
  }), /* @__PURE__ */ e.createElement("div", w({ ref: i, className: d }, c), /* @__PURE__ */ e.createElement(
1539
1539
  D,
1540
1540
  A(w({}, qr[o]), {
@@ -1570,7 +1570,7 @@ function Jr(t) {
1570
1570
  const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
1571
1571
  return `var(${fa[a % fa.length]})`;
1572
1572
  }
1573
- function jr(t = "", a = 2) {
1573
+ function Kr(t = "", a = 2) {
1574
1574
  const r = t.split(/\s+/);
1575
1575
  if (a < 1)
1576
1576
  return "";
@@ -1581,7 +1581,7 @@ function jr(t = "", a = 2) {
1581
1581
  _.push(r[o].charAt(0));
1582
1582
  return _.join("").toUpperCase();
1583
1583
  }
1584
- function Kr(t) {
1584
+ function jr(t) {
1585
1585
  let a = t;
1586
1586
  if (t.startsWith("var(--") && t.endsWith(")")) {
1587
1587
  const r = t.slice(4, -1);
@@ -1649,12 +1649,12 @@ const Qr = "lc-Avatar-module__avatar___1zTCE", Zr = "lc-Avatar-module__avatar__s
1649
1649
  type: s,
1650
1650
  withRim: i = !1
1651
1651
  }) => {
1652
- const u = s === "image" && !l, [m, d] = e.useState(u), b = s === "image" && !!l && !m, f = s === "text", p = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, v = jr(n, p), $ = r || Jr(n), h = $ ? Kr($) : void 0, y = f ? { backgroundColor: $ } : {}, N = g(w({
1652
+ const u = s === "image" && !l, [m, d] = e.useState(u), v = s === "image" && !!l && !m, f = s === "text", p = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, b = Kr(n, p), E = r || Jr(n), h = E ? jr(E) : void 0, N = f ? { backgroundColor: E } : {}, $ = g(w({
1653
1653
  [ee[Y]]: !0,
1654
1654
  [ee[`${Y}--${_}`]]: !0,
1655
1655
  [ee[`${Y}--${o}`]]: !0,
1656
1656
  [ee[`${Y}--with-rim`]]: i
1657
- }, a ? { [`${a}`]: a } : {})), E = g(
1657
+ }, a ? { [`${a}`]: a } : {})), y = g(
1658
1658
  ee[`${Y}__status`],
1659
1659
  ee[`${Y}__status--${_}`],
1660
1660
  ee[`${Y}__status--${o}`],
@@ -1668,7 +1668,7 @@ const Qr = "lc-Avatar-module__avatar___1zTCE", Zr = "lc-Avatar-module__avatar__s
1668
1668
  ), x = e.useCallback(() => d(!0), []);
1669
1669
  return e.useEffect(() => {
1670
1670
  d(u);
1671
- }, [u]), /* @__PURE__ */ e.createElement("div", { className: N, style: y }, i && /* @__PURE__ */ e.createElement(
1671
+ }, [u]), /* @__PURE__ */ e.createElement("div", { className: $, style: N }, i && /* @__PURE__ */ e.createElement(
1672
1672
  "div",
1673
1673
  {
1674
1674
  "data-testid": `${Y}__rim`,
@@ -1678,9 +1678,9 @@ const Qr = "lc-Avatar-module__avatar___1zTCE", Zr = "lc-Avatar-module__avatar__s
1678
1678
  "div",
1679
1679
  {
1680
1680
  "data-testid": `${Y}__status`,
1681
- className: E
1681
+ className: y
1682
1682
  }
1683
- ), b && /* @__PURE__ */ e.createElement(
1683
+ ), v && /* @__PURE__ */ e.createElement(
1684
1684
  "img",
1685
1685
  {
1686
1686
  className: ee[`${Y}__image`],
@@ -1688,7 +1688,7 @@ const Qr = "lc-Avatar-module__avatar___1zTCE", Zr = "lc-Avatar-module__avatar__s
1688
1688
  alt: t,
1689
1689
  onError: x
1690
1690
  }
1691
- ), f && /* @__PURE__ */ e.createElement("span", { style: { color: h } }, v), m && /* @__PURE__ */ e.createElement(
1691
+ ), f && /* @__PURE__ */ e.createElement("span", { style: { color: h } }, b), m && /* @__PURE__ */ e.createElement(
1692
1692
  D,
1693
1693
  {
1694
1694
  "data-testid": `${Y}__icon`,
@@ -1759,23 +1759,23 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1759
1759
  e.useEffect(() => {
1760
1760
  u && i(o);
1761
1761
  }, [o]);
1762
- const m = (b, f) => {
1763
- u || i(b), c(b, f);
1764
- }, d = a.map(({ id: b, label: f, loading: p, disabled: v, icon: $ }) => {
1765
- const h = b === s, y = h ? wt["btn--active"] : "", N = h ? !1 : p;
1762
+ const m = (v, f) => {
1763
+ u || i(v), c(v, f);
1764
+ }, d = a.map(({ id: v, label: f, loading: p, disabled: b, icon: E }) => {
1765
+ const h = v === s, N = h ? wt["btn--active"] : "", $ = h ? !1 : p;
1766
1766
  return /* @__PURE__ */ e.createElement(
1767
1767
  M,
1768
1768
  {
1769
- key: b,
1769
+ key: v,
1770
1770
  fullWidth: l,
1771
- loading: N,
1772
- disabled: v,
1771
+ loading: $,
1772
+ disabled: b,
1773
1773
  "aria-pressed": h,
1774
1774
  kind: "secondary",
1775
- icon: $,
1776
- className: g(wt.btn, wt[`btn--${t}`], y),
1777
- onClick: (E) => {
1778
- m(b, E);
1775
+ icon: E,
1776
+ className: g(wt.btn, wt[`btn--${t}`], N),
1777
+ onClick: (y) => {
1778
+ m(v, y);
1779
1779
  }
1780
1780
  },
1781
1781
  f
@@ -1816,8 +1816,8 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1816
1816
  "src",
1817
1817
  "title"
1818
1818
  ]);
1819
- const [m, d] = e.useState(!1), b = m ? Ft : bt, f = m ? "Hide" : "Show more", p = (a == null ? void 0 : a.length) > 0, v = !!l, $ = p || v, h = n, y = c, N = y ? "" : te[h_];
1820
- return /* @__PURE__ */ e.createElement("div", w({ className: g(te[ft], _) }, s), h && /* @__PURE__ */ e.createElement("div", { className: g(te[Pt], N) }, y && /* @__PURE__ */ e.createElement(
1819
+ const [m, d] = e.useState(!1), v = m ? Ft : bt, f = m ? "Hide" : "Show more", p = (a == null ? void 0 : a.length) > 0, b = !!l, E = p || b, h = n, N = c, $ = N ? "" : te[h_];
1820
+ return /* @__PURE__ */ e.createElement("div", w({ className: g(te[ft], _) }, s), h && /* @__PURE__ */ e.createElement("div", { className: g(te[Pt], $) }, N && /* @__PURE__ */ e.createElement(
1821
1821
  "img",
1822
1822
  {
1823
1823
  alt: t,
@@ -1832,15 +1832,15 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1832
1832
  className: te[`${ft}__expanded-content`]
1833
1833
  },
1834
1834
  l
1835
- ), $ && /* @__PURE__ */ e.createElement("div", { className: te[Ct] }, /* @__PURE__ */ e.createElement("div", { className: te[`${Ct}__line`] }), /* @__PURE__ */ e.createElement("div", { className: te[`${Ct}__buttons`] }, p && a.map(
1836
- ({ kind: E, onClick: k, children: C }) => /* @__PURE__ */ e.createElement(M, { size: "compact", kind: E, onClick: k }, C)
1837
- ), v && /* @__PURE__ */ e.createElement(
1835
+ ), E && /* @__PURE__ */ e.createElement("div", { className: te[Ct] }, /* @__PURE__ */ e.createElement("div", { className: te[`${Ct}__line`] }), /* @__PURE__ */ e.createElement("div", { className: te[`${Ct}__buttons`] }, p && a.map(
1836
+ ({ kind: y, onClick: k, children: C }) => /* @__PURE__ */ e.createElement(M, { size: "compact", kind: y, onClick: k }, C)
1837
+ ), b && /* @__PURE__ */ e.createElement(
1838
1838
  M,
1839
1839
  {
1840
1840
  className: te[`${Ct}__buttons-expander`],
1841
1841
  kind: "link",
1842
1842
  iconPosition: "right",
1843
- icon: /* @__PURE__ */ e.createElement(D, { source: b }),
1843
+ icon: /* @__PURE__ */ e.createElement(D, { source: v }),
1844
1844
  onClick: () => d(!m)
1845
1845
  },
1846
1846
  f
@@ -1857,7 +1857,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1857
1857
  ]);
1858
1858
  const l = g(k_[y_], a);
1859
1859
  return /* @__PURE__ */ e.createElement(P, A(w({ as: "span", size: "sm" }, r), { className: l }), t);
1860
- }, E_ = "lc-Checkbox-module__checkbox___G7nTf", $_ = "lc-Checkbox-module__checkbox__label___-o01x", w_ = "lc-Checkbox-module__checkbox__text___P2SIq", C_ = "lc-Checkbox-module__checkbox__input___YLbVF", N_ = "lc-Checkbox-module__checkbox__checkmark___16pfY", x_ = "lc-Checkbox-module__checkbox__square___MHUyd", S_ = "lc-Checkbox-module__checkbox__helper___YSJ-n", Re = {
1860
+ }, E_ = "lc-Checkbox-module__checkbox___G7nTf", $_ = "lc-Checkbox-module__checkbox__label___-o01x", w_ = "lc-Checkbox-module__checkbox__text___P2SIq", C_ = "lc-Checkbox-module__checkbox__input___YLbVF", N_ = "lc-Checkbox-module__checkbox__checkmark___16pfY", x_ = "lc-Checkbox-module__checkbox__square___MHUyd", S_ = "lc-Checkbox-module__checkbox__helper___YSJ-n", Pe = {
1861
1861
  checkbox: E_,
1862
1862
  checkbox__label: $_,
1863
1863
  checkbox__text: w_,
@@ -1867,28 +1867,28 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1867
1867
  checkbox__square: x_,
1868
1868
  "checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
1869
1869
  checkbox__helper: S_
1870
- }, Me = "checkbox", wl = e.forwardRef(
1870
+ }, Fe = "checkbox", wl = e.forwardRef(
1871
1871
  (n, c) => {
1872
1872
  var s = n, { checked: t, disabled: a, children: r, description: _, className: o } = s, l = B(s, ["checked", "disabled", "children", "description", "className"]);
1873
1873
  return /* @__PURE__ */ e.createElement(
1874
1874
  "div",
1875
1875
  {
1876
- className: g(Re[Me], o, {
1877
- [Re[`${Me}--selected`]]: t,
1878
- [Re[`${Me}--disabled`]]: a
1876
+ className: g(Pe[Fe], o, {
1877
+ [Pe[`${Fe}--selected`]]: t,
1878
+ [Pe[`${Fe}--disabled`]]: a
1879
1879
  })
1880
1880
  },
1881
- /* @__PURE__ */ e.createElement("label", { className: Re[`${Me}__label`] }, /* @__PURE__ */ e.createElement(
1881
+ /* @__PURE__ */ e.createElement("label", { className: Pe[`${Fe}__label`] }, /* @__PURE__ */ e.createElement(
1882
1882
  "input",
1883
1883
  A(w({}, l), {
1884
1884
  ref: c,
1885
1885
  checked: t,
1886
1886
  disabled: a,
1887
- className: Re[`${Me}__input`],
1887
+ className: Pe[`${Fe}__input`],
1888
1888
  type: "checkbox"
1889
1889
  })
1890
- ), r && /* @__PURE__ */ e.createElement(P, { as: "div", size: "md", className: Re[`${Me}__text`] }, r)),
1891
- _ && /* @__PURE__ */ e.createElement(Rt, { className: Re[`${Me}__helper`] }, _)
1890
+ ), r && /* @__PURE__ */ e.createElement(P, { as: "div", size: "md", className: Pe[`${Fe}__text`] }, r)),
1891
+ _ && /* @__PURE__ */ e.createElement(Rt, { className: Pe[`${Fe}__helper`] }, _)
1892
1892
  );
1893
1893
  }
1894
1894
  ), T = {
@@ -1941,34 +1941,34 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1941
1941
  toMonth: m
1942
1942
  } = t, d = () => {
1943
1943
  typeof a == "function" && a();
1944
- }, b = () => {
1944
+ }, v = () => {
1945
1945
  typeof _ == "function" && _();
1946
1946
  }, f = () => {
1947
1947
  if (!u) {
1948
1948
  const h = Xe(i, 12);
1949
1949
  return r(h);
1950
1950
  }
1951
- const v = Math.abs(la(i, u)), $ = Xe(
1951
+ const b = Math.abs(la(i, u)), E = Xe(
1952
1952
  i,
1953
- !Number.isNaN(v) && v > 12 ? 12 : v
1953
+ !Number.isNaN(b) && b > 12 ? 12 : b
1954
1954
  );
1955
- return r($);
1955
+ return r(E);
1956
1956
  }, p = () => {
1957
1957
  if (!m) {
1958
1958
  const h = ca(i, 12);
1959
1959
  return r(h);
1960
1960
  }
1961
- const v = Math.abs(la(m, i)), $ = ca(
1961
+ const b = Math.abs(la(m, i)), E = ca(
1962
1962
  i,
1963
- !Number.isNaN(v) && v > 12 ? 12 : v
1963
+ !Number.isNaN(b) && b > 12 ? 12 : b
1964
1964
  );
1965
- return s === 2 && qt($, m) ? r(Xe($, 1)) : r($);
1965
+ return s === 2 && qt(E, m) ? r(Xe(E, 1)) : r(E);
1966
1966
  };
1967
1967
  return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: T[`${ba}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
1968
1968
  "button",
1969
1969
  {
1970
1970
  "data-testid": "date-picker-prev-year-button",
1971
- className: He({
1971
+ className: Le({
1972
1972
  [n.navButtonPrev]: !0,
1973
1973
  [n.navButtonInteractionDisabled]: !l
1974
1974
  }),
@@ -1979,7 +1979,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1979
1979
  "button",
1980
1980
  {
1981
1981
  "data-testid": "date-picker-prev-month-button",
1982
- className: He({
1982
+ className: Le({
1983
1983
  [n.navButtonPrev]: !0,
1984
1984
  [n.navButtonInteractionDisabled]: !l
1985
1985
  }),
@@ -1990,18 +1990,18 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
1990
1990
  "button",
1991
1991
  {
1992
1992
  "data-testid": "date-picker-next-month-button",
1993
- className: He({
1993
+ className: Le({
1994
1994
  [n.navButtonNext]: !0,
1995
1995
  [n.navButtonInteractionDisabled]: !o
1996
1996
  }),
1997
- onClick: b
1997
+ onClick: v
1998
1998
  },
1999
1999
  /* @__PURE__ */ e.createElement(D, { source: mr, kind: "subtle" })
2000
2000
  ), /* @__PURE__ */ e.createElement(
2001
2001
  "button",
2002
2002
  {
2003
2003
  "data-testid": "date-picker-next-year-button",
2004
- className: He({
2004
+ className: Le({
2005
2005
  [n.navButtonNext]: !0,
2006
2006
  [n.navButtonInteractionDisabled]: !o
2007
2007
  }),
@@ -2011,7 +2011,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2011
2011
  )));
2012
2012
  }, I = "date-picker", Ua = (t, a) => {
2013
2013
  const { from: r, to: _ } = a;
2014
- return !(_ && !Jt(t, _) && jt(t, _) || r && !Jt(t, r) && !jt(t, r));
2014
+ return !(_ && !Jt(t, _) && Kt(t, _) || r && !Jt(t, r) && !Kt(t, r));
2015
2015
  }, Wa = (t, a, r) => a ? t && !qt(t, a) || r && qt(a, r) ? Xe(a, 1) : a : Xe(r || /* @__PURE__ */ new Date(), 1), D_ = (t, a) => {
2016
2016
  const r = {
2017
2017
  [T[`${I}__day--monday`]]: { daysOfWeek: [1] },
@@ -2040,7 +2040,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2040
2040
  );
2041
2041
  return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
2042
2042
  }, A_ = (t, a) => w({
2043
- container: He({
2043
+ container: Le({
2044
2044
  [T[`${I}`]]: !0,
2045
2045
  [T[`${I}--range`]]: t
2046
2046
  }),
@@ -2049,11 +2049,11 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2049
2049
  months: T[`${I}__months`],
2050
2050
  month: T[`${I}__month`],
2051
2051
  navBar: T[`${I}__nav-bar`],
2052
- navButtonPrev: He(
2052
+ navButtonPrev: Le(
2053
2053
  T[`${I}__nav-button`],
2054
2054
  T[`${I}__nav-button--prev`]
2055
2055
  ),
2056
- navButtonNext: He(
2056
+ navButtonNext: Le(
2057
2057
  T[`${I}__nav-button`],
2058
2058
  T[`${I}__nav-button--next`]
2059
2059
  ),
@@ -2078,7 +2078,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2078
2078
  const a = t.getDate();
2079
2079
  return /* @__PURE__ */ e.createElement("div", { className: T[`${ha}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: T[`${ha}__day-content`] }, a));
2080
2080
  }, P_ = (t) => {
2081
- const $ = t, {
2081
+ const E = t, {
2082
2082
  classNames: a,
2083
2083
  range: r,
2084
2084
  toMonth: _,
@@ -2089,7 +2089,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2089
2089
  navbarElement: s,
2090
2090
  renderDay: i,
2091
2091
  innerRef: u
2092
- } = $, m = B($, [
2092
+ } = E, m = B(E, [
2093
2093
  "classNames",
2094
2094
  "range",
2095
2095
  "toMonth",
@@ -2100,11 +2100,11 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2100
2100
  "navbarElement",
2101
2101
  "renderDay",
2102
2102
  "innerRef"
2103
- ]), [d, b] = e.useState(o || /* @__PURE__ */ new Date());
2103
+ ]), [d, v] = e.useState(o || /* @__PURE__ */ new Date());
2104
2104
  e.useEffect(() => {
2105
- o && o !== d && b(o);
2105
+ o && o !== d && v(o);
2106
2106
  }, [o, d]), e.useEffect(() => {
2107
- _ && (Ua(d, { from: l, to: _ }) || b(_));
2107
+ _ && (Ua(d, { from: l, to: _ }) || v(_));
2108
2108
  }, [d, t.toMonth, t.fromMonth]);
2109
2109
  const f = e.useCallback(
2110
2110
  (h) => {
@@ -2112,13 +2112,13 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2112
2112
  t.onMonthChange(h);
2113
2113
  return;
2114
2114
  }
2115
- b(h);
2115
+ v(h);
2116
2116
  },
2117
2117
  [o, t.onMonthChange]
2118
2118
  );
2119
2119
  let p = 1;
2120
2120
  (c === 0 || c && c < 7) && (p = c);
2121
- const v = e.useMemo(
2121
+ const b = e.useMemo(
2122
2122
  () => A_(r, a),
2123
2123
  [r, a]
2124
2124
  );
@@ -2129,7 +2129,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2129
2129
  T_,
2130
2130
  {
2131
2131
  month: d,
2132
- classNames: v,
2132
+ classNames: b,
2133
2133
  numberOfMonths: n,
2134
2134
  onMonthChange: f,
2135
2135
  toMonth: _,
@@ -2137,7 +2137,7 @@ const c_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
2137
2137
  }
2138
2138
  ),
2139
2139
  ref: u,
2140
- classNames: v,
2140
+ classNames: b,
2141
2141
  numberOfMonths: n,
2142
2142
  toMonth: _,
2143
2143
  fromMonth: l,
@@ -2252,14 +2252,14 @@ const R_ = (t) => {
2252
2252
  payload: { date: p }
2253
2253
  });
2254
2254
  }, [o, r, _]), tt(() => {
2255
- const { from: p, selectedItem: v, to: $ } = s;
2256
- if (!(p && $))
2255
+ const { from: p, selectedItem: b, to: E } = s;
2256
+ if (!(p && E))
2257
2257
  return;
2258
- const h = pt(v, t);
2258
+ const h = pt(b, t);
2259
2259
  h && (l == null || l(A(w({}, h), {
2260
2260
  value: {
2261
2261
  from: p,
2262
- to: $
2262
+ to: E
2263
2263
  }
2264
2264
  })));
2265
2265
  }, [s.from, s.to, s.selectedItem, t, l]), tt(() => {
@@ -2272,16 +2272,16 @@ const R_ = (t) => {
2272
2272
  }
2273
2273
  if (!pt(p, t))
2274
2274
  return;
2275
- const $ = t.reduce(
2276
- (h, y) => A(w({}, h), { [y.id]: y }),
2275
+ const E = t.reduce(
2276
+ (h, N) => A(w({}, h), { [N.id]: N }),
2277
2277
  {}
2278
2278
  );
2279
- l($[p]);
2279
+ l(E[p]);
2280
2280
  }, [l, s.selectedItem, t]);
2281
2281
  const u = ht(
2282
2282
  (p) => {
2283
- const v = o ? Oa(o, p) >= 0 : !0;
2284
- !va(s.from, s.to) && v && i({
2283
+ const b = o ? Oa(o, p) >= 0 : !0;
2284
+ !va(s.from, s.to) && b && i({
2285
2285
  type: O.NEW_TEMPORARY_TO_VALUE,
2286
2286
  payload: { date: p }
2287
2287
  });
@@ -2289,11 +2289,11 @@ const R_ = (t) => {
2289
2289
  [o, s.from, s.to]
2290
2290
  ), m = ht(
2291
2291
  (p) => {
2292
- const { from: v, to: $ } = s;
2293
- Ua(p, { to: o }) && (va(v, $) ? i({
2292
+ const { from: b, to: E } = s;
2293
+ Ua(p, { to: o }) && (va(b, E) ? i({
2294
2294
  type: O.SELECT_FIRST_DAY,
2295
2295
  payload: { date: p }
2296
- }) : v && Jt(p, v) || v && jt(p, v) ? i({
2296
+ }) : b && Jt(p, b) || b && Kt(p, b) ? i({
2297
2297
  type: O.SELECT_SECOND_DAY_AS_TO,
2298
2298
  payload: { date: p }
2299
2299
  }) : i({
@@ -2317,25 +2317,25 @@ const R_ = (t) => {
2317
2317
  });
2318
2318
  },
2319
2319
  [t]
2320
- ), b = ht((p) => {
2320
+ ), v = ht((p) => {
2321
2321
  i({
2322
2322
  type: O.CURRENT_MONTH_CHANGE,
2323
2323
  payload: { date: p }
2324
2324
  });
2325
2325
  }, []);
2326
2326
  return c((() => {
2327
- const { currentMonth: p, from: v, selectedItem: $, temporaryTo: h, to: y } = s, N = kt(
2328
- () => D_(v, h),
2329
- [v, h]
2330
- ), E = kt(() => pt($, t), [t, $]), k = kt(() => [v, { from: v, to: h }], [v, h]), C = kt(() => o ? { after: o } : void 0, [o]);
2327
+ const { currentMonth: p, from: b, selectedItem: E, temporaryTo: h, to: N } = s, $ = kt(
2328
+ () => D_(b, h),
2329
+ [b, h]
2330
+ ), y = kt(() => pt(E, t), [t, E]), k = kt(() => [b, { from: b, to: h }], [b, h]), C = kt(() => o ? { after: o } : void 0, [o]);
2331
2331
  return {
2332
2332
  select: {
2333
2333
  onItemSelect: d,
2334
- selected: $ || ""
2334
+ selected: E || ""
2335
2335
  },
2336
2336
  inputs: {
2337
- fromDate: v,
2338
- toDate: y
2337
+ fromDate: b,
2338
+ toDate: N
2339
2339
  },
2340
2340
  datepicker: {
2341
2341
  range: !0,
@@ -2343,14 +2343,14 @@ const R_ = (t) => {
2343
2343
  numberOfMonths: 2,
2344
2344
  onDayClick: m,
2345
2345
  selectedDays: k,
2346
- modifiers: N,
2346
+ modifiers: $,
2347
2347
  initialMonth: o && Xe(o, 1),
2348
2348
  toMonth: o,
2349
2349
  disabledDays: C,
2350
2350
  onDayMouseEnter: u,
2351
- onMonthChange: b
2351
+ onMonthChange: v
2352
2352
  },
2353
- selectedOption: E
2353
+ selectedOption: y
2354
2354
  };
2355
2355
  })());
2356
2356
  };
@@ -2469,8 +2469,8 @@ const ka = {
2469
2469
  l
2470
2470
  );
2471
2471
  return e.useEffect(() => {
2472
- const b = i;
2473
- return t && b.current ? m(`${b.current.clientHeight}px`) : m("auto");
2472
+ const v = i;
2473
+ return t && v.current ? m(`${v.current.clientHeight}px`) : m("auto");
2474
2474
  }), /* @__PURE__ */ e.createElement("div", { className: d }, s && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
2475
2475
  "div",
2476
2476
  {
@@ -2605,7 +2605,7 @@ const ka = {
2605
2605
  "className",
2606
2606
  "cropOnBlur"
2607
2607
  ]);
2608
- const [u, m] = e.useState(!1), [d, b] = e.useState(!1), { type: f, onFocus: p, onBlur: v } = c, $ = g(
2608
+ const [u, m] = e.useState(!1), [d, v] = e.useState(!1), { type: f, onFocus: p, onBlur: b } = c, E = g(
2609
2609
  o,
2610
2610
  he[ke],
2611
2611
  he[`${ke}--${t}`],
@@ -2615,8 +2615,8 @@ const ka = {
2615
2615
  [he[`${ke}--error`]]: a,
2616
2616
  [he[`${ke}--crop`]]: l
2617
2617
  }
2618
- ), h = r ? "var(--content-disabled)" : "var(--content-default)", y = d ? rr : _r, N = _ && _.place === "left", E = _ && f !== "password" && _.place === "right";
2619
- return /* @__PURE__ */ e.createElement("div", { className: $, "aria-disabled": r, "tab-index": "0" }, N && Ea(_, r), /* @__PURE__ */ e.createElement(
2618
+ ), h = r ? "var(--content-disabled)" : "var(--content-default)", N = d ? rr : _r, $ = _ && _.place === "left", y = _ && f !== "password" && _.place === "right";
2619
+ return /* @__PURE__ */ e.createElement("div", { className: E, "aria-disabled": r, "tab-index": "0" }, $ && Ea(_, r), /* @__PURE__ */ e.createElement(
2620
2620
  "input",
2621
2621
  A(w({}, c), {
2622
2622
  ref: n,
@@ -2624,19 +2624,19 @@ const ka = {
2624
2624
  m(!0), p == null || p(k);
2625
2625
  },
2626
2626
  onBlur: (k) => {
2627
- m(!1), v == null || v(k);
2627
+ m(!1), b == null || b(k);
2628
2628
  },
2629
2629
  disabled: r,
2630
2630
  type: f && !d ? f : "text"
2631
2631
  })
2632
- ), E && Ea(_, r), f === "password" && /* @__PURE__ */ e.createElement(
2632
+ ), y && Ea(_, r), f === "password" && /* @__PURE__ */ e.createElement(
2633
2633
  M,
2634
2634
  {
2635
2635
  disabled: r,
2636
2636
  kind: "text",
2637
2637
  size: "compact",
2638
- icon: /* @__PURE__ */ e.createElement(D, { customColor: h, source: y }),
2639
- onClick: () => b((k) => !k),
2638
+ icon: /* @__PURE__ */ e.createElement(D, { customColor: h, source: N }),
2639
+ onClick: () => v((k) => !k),
2640
2640
  className: he[`${ke}__visibility-button`]
2641
2641
  }
2642
2642
  ));
@@ -2675,7 +2675,7 @@ const ka = {
2675
2675
  modal__heading: q_,
2676
2676
  "modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
2677
2677
  modal__footer: J_
2678
- }, St = "modal-base", j_ = (n) => {
2678
+ }, St = "modal-base", K_ = (n) => {
2679
2679
  var s = n, {
2680
2680
  children: t,
2681
2681
  className: a = "",
@@ -2743,7 +2743,7 @@ const ka = {
2743
2743
  onClick: r,
2744
2744
  icon: /* @__PURE__ */ e.createElement(D, { source: Te, size: "medium", customColor: a })
2745
2745
  }
2746
- ), Le = "modal", Il = (i) => {
2746
+ ), Re = "modal", Il = (i) => {
2747
2747
  var u = i, {
2748
2748
  children: t,
2749
2749
  className: a = "",
@@ -2763,22 +2763,22 @@ const ka = {
2763
2763
  "onClose",
2764
2764
  "contentClassName"
2765
2765
  ]);
2766
- const m = g(ae[Le], a), d = typeof t == "string", b = (f) => {
2766
+ const m = g(ae[Re], a), d = typeof t == "string", v = (f) => {
2767
2767
  f.preventDefault(), f.stopPropagation(), c();
2768
2768
  };
2769
2769
  return /* @__PURE__ */ e.createElement(
2770
- j_,
2770
+ K_,
2771
2771
  w({
2772
2772
  className: m,
2773
2773
  fullSpaceContent: o,
2774
2774
  onClose: c
2775
2775
  }, s),
2776
- _ && /* @__PURE__ */ e.createElement("div", { className: ae[`${Le}__label-header`] }, /* @__PURE__ */ e.createElement(
2776
+ _ && /* @__PURE__ */ e.createElement("div", { className: ae[`${Re}__label-header`] }, /* @__PURE__ */ e.createElement(
2777
2777
  et,
2778
2778
  {
2779
2779
  size: "md",
2780
2780
  as: "div",
2781
- className: ae[`${Le}__label-heading`]
2781
+ className: ae[`${Re}__label-heading`]
2782
2782
  },
2783
2783
  _
2784
2784
  ), /* @__PURE__ */ e.createElement(
@@ -2786,27 +2786,27 @@ const ka = {
2786
2786
  {
2787
2787
  labelType: !!_,
2788
2788
  customColor: "var(--color-white)",
2789
- onClick: b
2789
+ onClick: v
2790
2790
  }
2791
2791
  )),
2792
- !_ && r && /* @__PURE__ */ e.createElement("div", { className: ae[`${Le}__header`] }, /* @__PURE__ */ e.createElement(
2792
+ !_ && r && /* @__PURE__ */ e.createElement("div", { className: ae[`${Re}__header`] }, /* @__PURE__ */ e.createElement(
2793
2793
  et,
2794
2794
  {
2795
2795
  size: "md",
2796
2796
  as: "div",
2797
- className: ae[`${Le}__heading`]
2797
+ className: ae[`${Re}__heading`]
2798
2798
  },
2799
2799
  r
2800
- ), /* @__PURE__ */ e.createElement(Ca, { onClick: b })),
2800
+ ), /* @__PURE__ */ e.createElement(Ca, { onClick: v })),
2801
2801
  /* @__PURE__ */ e.createElement(
2802
2802
  "div",
2803
2803
  {
2804
2804
  "data-testid": "modal-body",
2805
- className: g(ae[`${Le}__body`], n)
2805
+ className: g(ae[`${Re}__body`], n)
2806
2806
  },
2807
2807
  d ? /* @__PURE__ */ e.createElement(P, { as: "div" }, t) : t
2808
2808
  ),
2809
- l && /* @__PURE__ */ e.createElement("div", { className: ae[`${Le}__footer`] }, l)
2809
+ l && /* @__PURE__ */ e.createElement("div", { className: ae[`${Re}__footer`] }, l)
2810
2810
  );
2811
2811
  }, Al = ({
2812
2812
  children: t,
@@ -2891,7 +2891,7 @@ const ka = {
2891
2891
  "style",
2892
2892
  "onChange"
2893
2893
  ]);
2894
- const d = e.useRef(null), b = g(
2894
+ const d = e.useRef(null), v = g(
2895
2895
  qe[Je],
2896
2896
  {
2897
2897
  [qe[`${Je}--error`]]: a,
@@ -2899,12 +2899,12 @@ const ka = {
2899
2899
  [qe[`${Je}--disabled`]]: l
2900
2900
  },
2901
2901
  t
2902
- ), f = (k) => s(String(k)), p = (k) => _ !== void 0 && k > _ ? _ : o !== void 0 && k < o ? o : k, v = (k) => {
2902
+ ), f = (k) => s(String(k)), p = (k) => _ !== void 0 && k > _ ? _ : o !== void 0 && k < o ? o : k, b = (k) => {
2903
2903
  const C = parseInt(r, 10) + k;
2904
2904
  return f(p(C));
2905
- }, $ = (k) => {
2906
- k.key === L.arrowDown && (k.preventDefault(), v(-1)), k.key === L.arrowUp && (k.preventDefault(), v(1));
2907
- }, h = (k, C) => C !== void 0 && parseInt(k, 10) === C, y = (k) => {
2905
+ }, E = (k) => {
2906
+ k.key === L.arrowDown && (k.preventDefault(), b(-1)), k.key === L.arrowUp && (k.preventDefault(), b(1));
2907
+ }, h = (k, C) => C !== void 0 && parseInt(k, 10) === C, N = (k) => {
2908
2908
  k.preventDefault(), k.stopPropagation();
2909
2909
  const C = k.currentTarget.value.replace(
2910
2910
  /((?!([-]|([-]?\d+))).)/,
@@ -2914,14 +2914,14 @@ const ka = {
2914
2914
  return f(C);
2915
2915
  const x = parseInt(C, 10);
2916
2916
  return f(p(x));
2917
- }, N = () => {
2917
+ }, $ = () => {
2918
2918
  var k;
2919
- return (k = d.current) == null || k.focus(), v(1);
2920
- }, E = () => {
2919
+ return (k = d.current) == null || k.focus(), b(1);
2920
+ }, y = () => {
2921
2921
  var k;
2922
- return (k = d.current) == null || k.focus(), v(-1);
2922
+ return (k = d.current) == null || k.focus(), b(-1);
2923
2923
  };
2924
- return /* @__PURE__ */ e.createElement("div", { className: b, style: n }, /* @__PURE__ */ e.createElement(
2924
+ return /* @__PURE__ */ e.createElement("div", { className: v, style: n }, /* @__PURE__ */ e.createElement(
2925
2925
  "input",
2926
2926
  A(w({
2927
2927
  type: "text",
@@ -2929,8 +2929,8 @@ const ka = {
2929
2929
  }, i), {
2930
2930
  value: r,
2931
2931
  disabled: l,
2932
- onChange: y,
2933
- onKeyDown: $,
2932
+ onChange: N,
2933
+ onKeyDown: E,
2934
2934
  min: o,
2935
2935
  max: _
2936
2936
  })
@@ -2939,7 +2939,7 @@ const ka = {
2939
2939
  {
2940
2940
  tabIndex: -1,
2941
2941
  disabled: l || h(r, _),
2942
- onClick: N,
2942
+ onClick: $,
2943
2943
  "aria-label": "Increment value",
2944
2944
  className: qe[`${Je}__increment`],
2945
2945
  type: "button"
@@ -2959,7 +2959,7 @@ const ka = {
2959
2959
  disabled: l || h(r, o),
2960
2960
  "aria-label": "Decrement value",
2961
2961
  className: qe[`${Je}__decrement`],
2962
- onClick: E,
2962
+ onClick: y,
2963
2963
  type: "button"
2964
2964
  },
2965
2965
  /* @__PURE__ */ e.createElement(
@@ -2972,7 +2972,7 @@ const ka = {
2972
2972
  )
2973
2973
  )));
2974
2974
  }, Qe = "select-all";
2975
- function K_(t, a) {
2975
+ function j_(t, a) {
2976
2976
  const r = {};
2977
2977
  if (a && a.length > 1) {
2978
2978
  const _ = t.map((o) => o.key).filter((o) => a.includes(o));
@@ -3078,7 +3078,7 @@ const W = {
3078
3078
  }
3079
3079
  )
3080
3080
  );
3081
- }, Kt = "picker-list", Na = `${Kt}__item`, Z_ = ({
3081
+ }, jt = "picker-list", Na = `${jt}__item`, Z_ = ({
3082
3082
  isOpen: t,
3083
3083
  items: a,
3084
3084
  selectedItemsKeys: r,
@@ -3089,12 +3089,12 @@ const W = {
3089
3089
  onSelect: n,
3090
3090
  onSelectAll: s
3091
3091
  }) => {
3092
- const i = g(W[Kt], {
3093
- [W[`${Kt}__no-results`]]: a.length === 0
3092
+ const i = g(W[jt], {
3093
+ [W[`${jt}__no-results`]]: a.length === 0
3094
3094
  }), [u, m] = e.useState(
3095
3095
  null
3096
- ), d = e.useRef(-1), b = e.useRef(0), f = e.useRef(null), [p, v] = e.useState({}), $ = (x) => {
3097
- if (x.key === L.esc && (x.preventDefault(), c()), x.key === L.arrowUp && d.current > 0 && (x.preventDefault(), d.current = y(), m(a[d.current].key)), x.key === L.arrowDown && d.current + 1 < a.length && (x.preventDefault(), d.current = N(), m(a[d.current].key)), x.key === L.enter && !a[d.current].disabled) {
3096
+ ), d = e.useRef(-1), v = e.useRef(0), f = e.useRef(null), [p, b] = e.useState({}), E = (x) => {
3097
+ if (x.key === L.esc && (x.preventDefault(), c()), x.key === L.arrowUp && d.current > 0 && (x.preventDefault(), d.current = N(), m(a[d.current].key)), x.key === L.arrowDown && d.current + 1 < a.length && (x.preventDefault(), d.current = $(), m(a[d.current].key)), x.key === L.enter && a[d.current] && !a[d.current].disabled) {
3098
3098
  if (x.preventDefault(), a[d.current].key === Qe)
3099
3099
  return s();
3100
3100
  n(a[d.current]);
@@ -3102,26 +3102,26 @@ const W = {
3102
3102
  };
3103
3103
  e.useEffect(() => {
3104
3104
  if (d.current > -1 && a.length > 0 && a[d.current] && m(a[d.current].key), t)
3105
- return document.addEventListener("keydown", $), () => document.removeEventListener("keydown", $);
3106
- d.current = -1, b.current = 0, m(null);
3107
- }, [a, t, $]), e.useEffect(() => {
3108
- v(K_(a, r));
3105
+ return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
3106
+ d.current = -1, v.current = 0, m(null);
3107
+ }, [a, t, E]), e.useEffect(() => {
3108
+ b(j_(a, r));
3109
3109
  }, [r, a]);
3110
- const h = (x) => !!a[x] && (a[x].disabled || a[x].groupHeader), y = () => {
3110
+ const h = (x) => !!a[x] && (a[x].disabled || a[x].groupHeader), N = () => {
3111
3111
  for (d.current = d.current - 1; h(d.current) && (d.current = d.current - 1, !!h(d.current)); )
3112
3112
  ;
3113
- return b.current = d.current, d.current;
3114
- }, N = () => {
3113
+ return v.current = d.current, d.current;
3114
+ }, $ = () => {
3115
3115
  if (d.current = d.current + 1, !h(d.current))
3116
- return b.current = d.current, d.current;
3116
+ return v.current = d.current, d.current;
3117
3117
  for (; h(d.current); ) {
3118
3118
  if (d.current = d.current + 1, d.current === a.length && !h(d.current))
3119
- return b.current;
3119
+ return v.current;
3120
3120
  if (!h(d.current))
3121
3121
  break;
3122
3122
  }
3123
- return b.current = d.current, d.current;
3124
- }, E = () => s(), k = (x) => r ? r.includes(x) : !1, C = () => !l || l && !o ? null : /* @__PURE__ */ e.createElement(
3123
+ return v.current = d.current, d.current;
3124
+ }, y = () => s(), k = (x) => r ? r.includes(x) : !1, C = () => !l || l && !o ? null : /* @__PURE__ */ e.createElement(
3125
3125
  "li",
3126
3126
  {
3127
3127
  ref: (x) => {
@@ -3135,7 +3135,7 @@ const W = {
3135
3135
  W[Na],
3136
3136
  W[`${Na}--select-all`]
3137
3137
  ),
3138
- onClick: E
3138
+ onClick: y
3139
3139
  },
3140
3140
  o
3141
3141
  );
@@ -3176,7 +3176,7 @@ const W = {
3176
3176
  "picker-trigger--disabled": "lc-Trigger-module__picker-trigger--disabled___7H4tD",
3177
3177
  "picker-trigger--focused": "lc-Trigger-module__picker-trigger--focused___vTr39",
3178
3178
  "picker-trigger--error": "lc-Trigger-module__picker-trigger--error___Rh8Qd"
3179
- }, j = "picker-trigger", X_ = ({
3179
+ }, K = "picker-trigger", X_ = ({
3180
3180
  children: t,
3181
3181
  isSearchDisabled: a,
3182
3182
  isDisabled: r,
@@ -3191,18 +3191,18 @@ const W = {
3191
3191
  onClear: m,
3192
3192
  testId: d
3193
3193
  }) => {
3194
- const b = e.useRef(null), f = g(
3195
- Q[j],
3196
- Q[`${j}--${s}`],
3197
- n && Q[`${j}--multi-select`],
3198
- n && o && Q[`${j}--multi-select--with-items`],
3199
- r && Q[`${j}--disabled`],
3200
- l && Q[`${j}--focused`],
3201
- _ && Q[`${j}--error`]
3194
+ const v = e.useRef(null), f = g(
3195
+ Q[K],
3196
+ Q[`${K}--${s}`],
3197
+ n && Q[`${K}--multi-select`],
3198
+ n && o && Q[`${K}--multi-select--with-items`],
3199
+ r && Q[`${K}--disabled`],
3200
+ l && Q[`${K}--focused`],
3201
+ _ && Q[`${K}--error`]
3202
3202
  );
3203
3203
  e.useEffect(() => {
3204
- const h = (y) => {
3205
- document.activeElement === b.current && y.key !== L.tab && u(y);
3204
+ const h = (N) => {
3205
+ document.activeElement === v.current && N.key !== L.tab && u(N);
3206
3206
  };
3207
3207
  return a || document.addEventListener("keydown", h), () => {
3208
3208
  a || document.removeEventListener("keydown", h);
@@ -3210,13 +3210,13 @@ const W = {
3210
3210
  }, [a]);
3211
3211
  const p = (h) => {
3212
3212
  u(h);
3213
- }, v = (h) => {
3213
+ }, b = (h) => {
3214
3214
  h.stopPropagation(), m();
3215
- }, $ = !i && o && !r && !c;
3215
+ }, E = !i && o && !r && !c;
3216
3216
  return /* @__PURE__ */ e.createElement(
3217
3217
  "div",
3218
3218
  {
3219
- ref: b,
3219
+ ref: v,
3220
3220
  className: f,
3221
3221
  onClick: p,
3222
3222
  tabIndex: 0,
@@ -3226,9 +3226,9 @@ const W = {
3226
3226
  "div",
3227
3227
  {
3228
3228
  className: g(
3229
- Q[`${j}__content`],
3230
- Q[`${j}__content--${s}`],
3231
- n && o && Q[`${j}__content--with-items`]
3229
+ Q[`${K}__content`],
3230
+ Q[`${K}__content--${s}`],
3231
+ n && o && Q[`${K}__content--with-items`]
3232
3232
  )
3233
3233
  },
3234
3234
  t
@@ -3237,23 +3237,23 @@ const W = {
3237
3237
  "div",
3238
3238
  {
3239
3239
  className: g(
3240
- Q[`${j}__controls`],
3241
- Q[`${j}__controls--${s}`]
3240
+ Q[`${K}__controls`],
3241
+ Q[`${K}__controls--${s}`]
3242
3242
  )
3243
3243
  },
3244
- $ && /* @__PURE__ */ e.createElement(
3244
+ E && /* @__PURE__ */ e.createElement(
3245
3245
  "div",
3246
3246
  {
3247
- "data-testid": `${j}__clear-icon`,
3248
- className: Q[`${j}__clear-icon`],
3249
- onClick: v
3247
+ "data-testid": `${K}__clear-icon`,
3248
+ className: Q[`${K}__clear-icon`],
3249
+ onClick: b
3250
3250
  },
3251
3251
  /* @__PURE__ */ e.createElement(D, { kind: "primary", size: "small", source: Te })
3252
3252
  ),
3253
3253
  /* @__PURE__ */ e.createElement(
3254
3254
  D,
3255
3255
  {
3256
- className: Q[`${j}__chevron-icon`],
3256
+ className: Q[`${K}__chevron-icon`],
3257
3257
  source: l ? Ft : bt,
3258
3258
  size: "medium",
3259
3259
  disabled: r
@@ -3305,7 +3305,7 @@ const W = {
3305
3305
  "rightNode",
3306
3306
  "customColor"
3307
3307
  ]);
3308
- const b = g(
3308
+ const v = g(
3309
3309
  Ee[$e],
3310
3310
  t,
3311
3311
  Ee[`${$e}--${_}`],
@@ -3321,14 +3321,14 @@ const W = {
3321
3321
  color: i,
3322
3322
  borderColor: i
3323
3323
  }
3324
- } : { style: { backgroundColor: i } } : {}, v = () => {
3324
+ } : { style: { backgroundColor: i } } : {}, b = () => {
3325
3325
  if (i)
3326
3326
  return c ? i : ta(i, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
3327
3327
  };
3328
3328
  return /* @__PURE__ */ e.createElement(
3329
3329
  P,
3330
3330
  A(w(w({
3331
- className: b
3331
+ className: v
3332
3332
  }, u), p()), {
3333
3333
  as: "div",
3334
3334
  size: "md"
@@ -3338,7 +3338,7 @@ const W = {
3338
3338
  {
3339
3339
  "data-testid": "lc-tag-left-node",
3340
3340
  className: Ee[`${$e}__node`],
3341
- style: { color: v() }
3341
+ style: { color: b() }
3342
3342
  },
3343
3343
  n
3344
3344
  ),
@@ -3347,7 +3347,7 @@ const W = {
3347
3347
  "div",
3348
3348
  {
3349
3349
  "data-testid": "lc-tag-right-node",
3350
- style: { color: v() }
3350
+ style: { color: b() }
3351
3351
  },
3352
3352
  s
3353
3353
  ),
@@ -3365,7 +3365,7 @@ const W = {
3365
3365
  "data-dismiss-icon": !0,
3366
3366
  source: Te,
3367
3367
  size: f,
3368
- customColor: v()
3368
+ customColor: b()
3369
3369
  }
3370
3370
  )
3371
3371
  )
@@ -3415,7 +3415,7 @@ const W = {
3415
3415
  alt: "",
3416
3416
  className: le[`${ce}__item__avatar`]
3417
3417
  }
3418
- ), /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item__content`] }, p.name)), b = (p) => {
3418
+ ), /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item__content`] }, p.name)), v = (p) => {
3419
3419
  i(p.target.value);
3420
3420
  }, f = () => /* @__PURE__ */ e.createElement(
3421
3421
  "input",
@@ -3426,7 +3426,7 @@ const W = {
3426
3426
  le[`${ce}__input--${n}`]
3427
3427
  ),
3428
3428
  placeholder: "Select option",
3429
- onChange: b,
3429
+ onChange: v,
3430
3430
  autoFocus: !0
3431
3431
  }
3432
3432
  );
@@ -3455,8 +3455,8 @@ const W = {
3455
3455
  }, co = "lc-Picker-module__picker___GRj9W", no = "lc-Picker-module__picker__container___s0PUc", xa = {
3456
3456
  picker: co,
3457
3457
  picker__container: no
3458
- }, Sa = "picker", Fl = ($) => {
3459
- var h = $, {
3458
+ }, Sa = "picker", Fl = (E) => {
3459
+ var h = E, {
3460
3460
  className: t,
3461
3461
  disabled: a,
3462
3462
  error: r,
@@ -3470,10 +3470,10 @@ const W = {
3470
3470
  type: u = "single",
3471
3471
  searchDisabled: m = !1,
3472
3472
  hideClearButton: d,
3473
- openedOnInit: b = !1,
3473
+ openedOnInit: v = !1,
3474
3474
  clearSearchAfterSelection: f,
3475
3475
  onSelect: p
3476
- } = h, v = B(h, [
3476
+ } = h, b = B(h, [
3477
3477
  "className",
3478
3478
  "disabled",
3479
3479
  "error",
@@ -3491,29 +3491,29 @@ const W = {
3491
3491
  "clearSearchAfterSelection",
3492
3492
  "onSelect"
3493
3493
  ]);
3494
- const [y, N] = e.useState(b), [E, k] = e.useState(null), C = e.useRef(null), x = g(xa[Sa], t);
3494
+ const [N, $] = e.useState(v), [y, k] = e.useState(null), C = e.useRef(null), x = g(xa[Sa], t);
3495
3495
  e.useEffect(() => {
3496
- if (y) {
3496
+ if (N) {
3497
3497
  const F = (q) => {
3498
3498
  var Be;
3499
- (Be = C.current) != null && Be.contains(q.target) || N(!1);
3499
+ (Be = C.current) != null && Be.contains(q.target) || $(!1);
3500
3500
  }, U = (q) => {
3501
- q.key === L.tab && N(!1);
3501
+ q.key === L.tab && $(!1);
3502
3502
  };
3503
3503
  return document.addEventListener("mousedown", F), document.addEventListener("keydown", U), () => {
3504
3504
  document.removeEventListener("mousedown", F), document.addEventListener("keydown", U);
3505
3505
  };
3506
3506
  } else
3507
3507
  k(null);
3508
- }, [y]);
3508
+ }, [N]);
3509
3509
  const H = (F) => {
3510
3510
  const U = F.target;
3511
- a || U.getAttribute("data-dismiss-icon") || N((q) => !q);
3511
+ a || U.getAttribute("data-dismiss-icon") || $((q) => !q);
3512
3512
  }, re = () => {
3513
- N(!1);
3513
+ $(!1);
3514
3514
  }, ne = (F) => {
3515
3515
  if (u === "single")
3516
- return N(!1), p([F]);
3516
+ return $(!1), p([F]);
3517
3517
  const U = F.key, q = se;
3518
3518
  if (!q)
3519
3519
  return p([F]);
@@ -3522,34 +3522,34 @@ const W = {
3522
3522
  ) ? q.filter((Mt) => Mt !== U) : q.concat(U);
3523
3523
  if ((Be == null ? void 0 : Be.length) === 0)
3524
3524
  return p(null);
3525
- const Ka = _.filter(
3525
+ const ja = _.filter(
3526
3526
  (Mt) => Be.includes(Mt.key)
3527
3527
  );
3528
- p(Ka);
3529
- }, ze = (F) => !F.disabled && !F.groupHeader && F.key !== Qe, Ge = () => {
3530
- N(!1);
3531
- const F = We.filter(ze);
3528
+ p(ja);
3529
+ }, Oe = (F) => !F.disabled && !F.groupHeader && F.key !== Qe, He = () => {
3530
+ $(!1);
3531
+ const F = Ge.filter(Oe);
3532
3532
  p(F);
3533
3533
  }, De = () => {
3534
- N(!1), p(null);
3535
- }, Ue = (F) => k(F), ye = (F) => {
3534
+ $(!1), p(null);
3535
+ }, ze = (F) => k(F), ye = (F) => {
3536
3536
  const U = o ? o.filter((q) => q !== F) : null;
3537
3537
  if ((U == null ? void 0 : U.length) === 0)
3538
3538
  return p(null);
3539
3539
  p(U);
3540
- }, We = e.useMemo(() => E ? _.filter((F) => {
3540
+ }, Ge = e.useMemo(() => y ? _.filter((F) => {
3541
3541
  if (F.groupHeader)
3542
3542
  return !1;
3543
- const U = E.toLowerCase();
3543
+ const U = y.toLowerCase();
3544
3544
  return F.name.toLowerCase().includes(U);
3545
- }) : _, [E, _]), se = e.useMemo(() => o ? o.map((F) => F.key) : null, [o]);
3546
- return /* @__PURE__ */ e.createElement("div", { ref: C, className: x, id: v.id }, /* @__PURE__ */ e.createElement("div", { className: xa[`${Sa}__container`] }, /* @__PURE__ */ e.createElement(
3545
+ }) : _, [y, _]), se = e.useMemo(() => o ? o.map((F) => F.key) : null, [o]);
3546
+ return /* @__PURE__ */ e.createElement("div", { ref: C, className: x, id: b.id }, /* @__PURE__ */ e.createElement("div", { className: xa[`${Sa}__container`] }, /* @__PURE__ */ e.createElement(
3547
3547
  X_,
3548
3548
  {
3549
- testId: v["data-testid"],
3549
+ testId: b["data-testid"],
3550
3550
  isSearchDisabled: m,
3551
3551
  isError: r,
3552
- isOpen: y,
3552
+ isOpen: N,
3553
3553
  isDisabled: a,
3554
3554
  isItemSelected: !!o,
3555
3555
  isRequired: n,
@@ -3562,7 +3562,7 @@ const W = {
3562
3562
  /* @__PURE__ */ e.createElement(
3563
3563
  lo,
3564
3564
  {
3565
- isOpen: y,
3565
+ isOpen: N,
3566
3566
  isSearchDisabled: m,
3567
3567
  isDisabled: a,
3568
3568
  placeholder: c,
@@ -3571,21 +3571,21 @@ const W = {
3571
3571
  size: l,
3572
3572
  clearSearchAfterSelection: f,
3573
3573
  onItemRemove: ye,
3574
- onFilter: Ue
3574
+ onFilter: ze
3575
3575
  }
3576
3576
  )
3577
3577
  ), /* @__PURE__ */ e.createElement(
3578
3578
  Z_,
3579
3579
  {
3580
3580
  selectedItemsKeys: se,
3581
- items: We,
3582
- isOpen: y,
3581
+ items: Ge,
3582
+ isOpen: N,
3583
3583
  isMultiSelect: u === "multi",
3584
3584
  emptyStateText: s,
3585
3585
  selectAllOptionText: i,
3586
3586
  onClose: re,
3587
3587
  onSelect: ne,
3588
- onSelectAll: Ge
3588
+ onSelectAll: He
3589
3589
  }
3590
3590
  )));
3591
3591
  }, so = [
@@ -3638,9 +3638,9 @@ const dt = {
3638
3638
  [dt[`${ut}--${t}`]]: t
3639
3639
  },
3640
3640
  r
3641
- ), b = 2 * Math.PI * ((m - u) / 2), f = {
3642
- strokeDasharray: b.toFixed(3),
3643
- strokeDashoffset: `${((100 - i) / 100 * b).toFixed(3)}px`
3641
+ ), v = 2 * Math.PI * ((m - u) / 2), f = {
3642
+ strokeDasharray: v.toFixed(3),
3643
+ strokeDashoffset: `${((100 - i) / 100 * v).toFixed(3)}px`
3644
3644
  }, p = `${m / 2} ${m / 2} ${m} ${m}`;
3645
3645
  return /* @__PURE__ */ e.createElement(
3646
3646
  "div",
@@ -3744,7 +3744,7 @@ const dt = {
3744
3744
  onClose: s,
3745
3745
  onLinkClick: i
3746
3746
  }) => {
3747
- const u = e.useRef(null), [m, d] = e.useState("medium"), b = g(
3747
+ const u = e.useRef(null), [m, d] = e.useState("medium"), v = g(
3748
3748
  de[ue],
3749
3749
  {
3750
3750
  [de[`${ue}--light`]]: l,
@@ -3754,12 +3754,12 @@ const dt = {
3754
3754
  t
3755
3755
  );
3756
3756
  e.useEffect(() => {
3757
- const p = () => u.current && u.current.offsetWidth <= fo ? d("small") : u.current && u.current.offsetWidth >= bo ? d("large") : d("medium"), v = La(
3757
+ const p = () => u.current && u.current.offsetWidth <= fo ? d("small") : u.current && u.current.offsetWidth >= bo ? d("large") : d("medium"), b = La(
3758
3758
  p,
3759
3759
  vo
3760
3760
  );
3761
- return window.addEventListener("resize", v), p(), () => {
3762
- v.cancel(), window.removeEventListener("resize", p);
3761
+ return window.addEventListener("resize", b), p(), () => {
3762
+ b.cancel(), window.removeEventListener("resize", p);
3763
3763
  };
3764
3764
  }, []);
3765
3765
  const f = /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__footer`] }, a && /* @__PURE__ */ e.createElement(
@@ -3772,7 +3772,7 @@ const dt = {
3772
3772
  },
3773
3773
  a
3774
3774
  ), c && /* @__PURE__ */ e.createElement(M, { size: "compact", kind: "text", onClick: i }, c));
3775
- return /* @__PURE__ */ e.createElement("div", { ref: u, className: b }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: de[`${ue}__img`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__header`] }, _), /* @__PURE__ */ e.createElement(P, { as: "div" }, r), m !== "large" && f), m === "large" && f), s && /* @__PURE__ */ e.createElement(
3775
+ return /* @__PURE__ */ e.createElement("div", { ref: u, className: v }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: de[`${ue}__img`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__header`] }, _), /* @__PURE__ */ e.createElement(P, { as: "div" }, r), m !== "large" && f), m === "large" && f), s && /* @__PURE__ */ e.createElement(
3776
3776
  "button",
3777
3777
  {
3778
3778
  type: "button",
@@ -3790,7 +3790,7 @@ const dt = {
3790
3790
  "promo-banner-v2__additional-content": "lc-PromoBannerV2-module__promo-banner-v2__additional-content___LpU9B",
3791
3791
  "promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
3792
3792
  "promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC"
3793
- }, Oe = "promo-banner-v2", Ml = ({
3793
+ }, Me = "promo-banner-v2", Ml = ({
3794
3794
  children: t,
3795
3795
  className: a,
3796
3796
  additionalContent: r,
@@ -3798,8 +3798,8 @@ const dt = {
3798
3798
  secondaryButton: o,
3799
3799
  onClose: l
3800
3800
  }) => {
3801
- const c = g(Ie[Oe], a);
3802
- return /* @__PURE__ */ e.createElement("div", { className: Ie["main-wrapper"] }, /* @__PURE__ */ e.createElement("div", { role: "banner", className: c }, /* @__PURE__ */ e.createElement("div", { className: Ie[`${Oe}__content`] }, t, (_ || o) && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Oe}__content__cta`] }, _ && /* @__PURE__ */ e.createElement(
3801
+ const c = g(Ie[Me], a);
3802
+ return /* @__PURE__ */ e.createElement("div", { className: Ie["main-wrapper"] }, /* @__PURE__ */ e.createElement("div", { role: "banner", className: c }, /* @__PURE__ */ e.createElement("div", { className: Ie[`${Me}__content`] }, t, (_ || o) && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Me}__content__cta`] }, _ && /* @__PURE__ */ e.createElement(
3803
3803
  M,
3804
3804
  {
3805
3805
  kind: (_ == null ? void 0 : _.kind) || "high-contrast",
@@ -3811,13 +3811,13 @@ const dt = {
3811
3811
  {
3812
3812
  kind: (o == null ? void 0 : o.kind) || "text",
3813
3813
  onClick: o.handleClick,
3814
- className: Ie[`${Oe}__content__cta__secondary`]
3814
+ className: Ie[`${Me}__content__cta__secondary`]
3815
3815
  },
3816
3816
  o.label
3817
- ))), r && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Oe}__additional-content`] }, r), l && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Oe}__close`] }, /* @__PURE__ */ e.createElement(
3817
+ ))), r && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Me}__additional-content`] }, r), l && /* @__PURE__ */ e.createElement("div", { className: Ie[`${Me}__close`] }, /* @__PURE__ */ e.createElement(
3818
3818
  M,
3819
3819
  {
3820
- className: Ie[`${Oe}__close__btn`],
3820
+ className: Ie[`${Me}__close__btn`],
3821
3821
  onClick: l,
3822
3822
  icon: /* @__PURE__ */ e.createElement(D, { source: Te, kind: "primary" }),
3823
3823
  kind: "plain",
@@ -3875,7 +3875,7 @@ const dt = {
3875
3875
  className: c,
3876
3876
  onChange: n
3877
3877
  }) => {
3878
- const [s, i] = e.useState(!0), [u, m] = e.useState(!1), d = e.useRef(null), b = !!l && !a && !r, f = t && !s && "true", p = g(
3878
+ const [s, i] = e.useState(!0), [u, m] = e.useState(!1), d = e.useRef(null), v = !!l && !a && !r, f = t && !s && "true", p = g(
3879
3879
  c,
3880
3880
  ve[pe],
3881
3881
  ve[`${pe}--${o}`],
@@ -3887,19 +3887,19 @@ const dt = {
3887
3887
  e.useEffect(() => {
3888
3888
  t && l && i(!1);
3889
3889
  }, [t]);
3890
- const v = (k) => {
3890
+ const b = (k) => {
3891
3891
  const C = k.currentTarget.value;
3892
3892
  n(C);
3893
- }, $ = () => {
3893
+ }, E = () => {
3894
3894
  n("");
3895
3895
  }, h = () => {
3896
3896
  var k;
3897
3897
  (k = d.current) == null || k.focus();
3898
- }, y = () => {
3899
- t && i(!1), m(!0);
3900
3898
  }, N = () => {
3899
+ t && i(!1), m(!0);
3900
+ }, $ = () => {
3901
3901
  t && !l && i(!0), m(!1);
3902
- }, E = (k) => {
3902
+ }, y = (k) => {
3903
3903
  k.key === L.enter && (k.preventDefault(), n(l));
3904
3904
  };
3905
3905
  return /* @__PURE__ */ e.createElement(
@@ -3928,20 +3928,20 @@ const dt = {
3928
3928
  type: "text",
3929
3929
  value: l,
3930
3930
  placeholder: _,
3931
- onChange: v,
3932
- onBlur: N,
3933
- onFocus: y,
3934
- onKeyDown: E,
3931
+ onChange: b,
3932
+ onBlur: $,
3933
+ onFocus: N,
3934
+ onKeyDown: y,
3935
3935
  disabled: a
3936
3936
  }
3937
3937
  ),
3938
- b && /* @__PURE__ */ e.createElement(
3938
+ v && /* @__PURE__ */ e.createElement(
3939
3939
  M,
3940
3940
  {
3941
3941
  "aria-label": "Clear search",
3942
3942
  title: "Clear search",
3943
3943
  className: ve[`${pe}__clear-icon`],
3944
- onClick: $,
3944
+ onClick: E,
3945
3945
  icon: /* @__PURE__ */ e.createElement(D, { source: Te, kind: "primary" }),
3946
3946
  kind: "text",
3947
3947
  size: "compact"
@@ -3984,12 +3984,12 @@ const dt = {
3984
3984
  "switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
3985
3985
  "switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
3986
3986
  switch__icon: Co
3987
- }, K = "switch", Hl = (m) => {
3987
+ }, j = "switch", Hl = (m) => {
3988
3988
  var d = m, {
3989
3989
  className: t = "",
3990
3990
  defaultOn: a = !1,
3991
3991
  disabled: r = !1,
3992
- name: _ = K,
3992
+ name: _ = j,
3993
3993
  on: o,
3994
3994
  onChange: l,
3995
3995
  size: c = "large",
@@ -4008,69 +4008,69 @@ const dt = {
4008
4008
  "innerRef",
4009
4009
  "ariaLabel"
4010
4010
  ]);
4011
- const b = o !== void 0, [f, p] = e.useState(
4012
- () => b ? o : a
4013
- ), v = b ? o : f, $ = n === "loading", h = n === "locked", y = c === "large" ? "small" : "xsmall", N = v ? "on" : "off", E = r || $ || h, k = E ? "disabled" : "enabled", C = g(
4014
- Z[K],
4015
- Z[`${K}--${c}`],
4011
+ const v = o !== void 0, [f, p] = e.useState(
4012
+ () => v ? o : a
4013
+ ), b = v ? o : f, E = n === "loading", h = n === "locked", N = c === "large" ? "small" : "xsmall", $ = b ? "on" : "off", y = r || E || h, k = y ? "disabled" : "enabled", C = g(
4014
+ Z[j],
4015
+ Z[`${j}--${c}`],
4016
4016
  t
4017
4017
  ), x = (H) => {
4018
- l == null || l(H, !v), b || (H.stopPropagation(), p((re) => !re));
4018
+ l == null || l(H, !b), v || (H.stopPropagation(), p((re) => !re));
4019
4019
  };
4020
4020
  return /* @__PURE__ */ e.createElement("span", { className: C }, /* @__PURE__ */ e.createElement(
4021
4021
  "input",
4022
4022
  w({
4023
4023
  type: "checkbox",
4024
4024
  className: g(
4025
- Z[`${K}__input`],
4026
- Z[`${K}__input--${k}`]
4025
+ Z[`${j}__input`],
4026
+ Z[`${j}__input--${k}`]
4027
4027
  ),
4028
4028
  onChange: x,
4029
- checked: v,
4029
+ checked: b,
4030
4030
  name: _,
4031
4031
  ref: s,
4032
- disabled: E,
4032
+ disabled: y,
4033
4033
  "aria-label": i
4034
4034
  }, u)
4035
- ), /* @__PURE__ */ e.createElement("span", { className: Z[`${K}__container`] }, /* @__PURE__ */ e.createElement(
4035
+ ), /* @__PURE__ */ e.createElement("span", { className: Z[`${j}__container`] }, /* @__PURE__ */ e.createElement(
4036
4036
  "span",
4037
4037
  {
4038
4038
  className: g(
4039
- Z[`${K}__track`],
4040
- Z[`${K}__track--${N}`],
4041
- Z[`${K}__track--${k}`]
4039
+ Z[`${j}__track`],
4040
+ Z[`${j}__track--${$}`],
4041
+ Z[`${j}__track--${k}`]
4042
4042
  )
4043
4043
  }
4044
4044
  ), /* @__PURE__ */ e.createElement(
4045
4045
  "span",
4046
4046
  {
4047
4047
  className: g(
4048
- Z[`${K}__slider`],
4049
- Z[`${K}__slider--${c}`],
4050
- Z[`${K}__slider--${c}--${N}`]
4048
+ Z[`${j}__slider`],
4049
+ Z[`${j}__slider--${c}`],
4050
+ Z[`${j}__slider--${c}--${$}`]
4051
4051
  )
4052
4052
  },
4053
- $ && /* @__PURE__ */ e.createElement(
4053
+ E && /* @__PURE__ */ e.createElement(
4054
4054
  aa,
4055
4055
  {
4056
4056
  className: g(
4057
- Z[`${K}__loader`],
4058
- Z[`${K}__loader--${c}`]
4057
+ Z[`${j}__loader`],
4058
+ Z[`${j}__loader--${c}`]
4059
4059
  )
4060
4060
  }
4061
4061
  ),
4062
4062
  h && /* @__PURE__ */ e.createElement(
4063
4063
  D,
4064
4064
  {
4065
- className: Z[`${K}__icon`],
4065
+ className: Z[`${j}__icon`],
4066
4066
  "data-testid": "lock-icon",
4067
- size: y,
4067
+ size: N,
4068
4068
  source: lr,
4069
4069
  kind: "primary"
4070
4070
  }
4071
4071
  )
4072
4072
  )));
4073
- }, No = "lc-Tab-module__tab___fME7u", xo = "lc-Tab-module__tab__count___gc8tA", So = "lc-Tab-module__tab__badge___W9c-T", je = {
4073
+ }, No = "lc-Tab-module__tab___fME7u", xo = "lc-Tab-module__tab__count___gc8tA", So = "lc-Tab-module__tab__badge___W9c-T", Ke = {
4074
4074
  tab: No,
4075
4075
  tab__count: xo,
4076
4076
  "tab--compact": "lc-Tab-module__tab--compact___4qead",
@@ -4079,7 +4079,7 @@ const dt = {
4079
4079
  tab__badge: So,
4080
4080
  "tab--selected": "lc-Tab-module__tab--selected___c0EkL",
4081
4081
  "tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
4082
- }, Ke = "tab", zl = (n) => {
4082
+ }, je = "tab", zl = (n) => {
4083
4083
  var s = n, {
4084
4084
  children: t,
4085
4085
  className: a,
@@ -4104,34 +4104,34 @@ const dt = {
4104
4104
  bold: _,
4105
4105
  className: g(
4106
4106
  a,
4107
- je[Ke],
4108
- je[`${Ke}--${l}`],
4109
- _ && je[`${Ke}--selected`],
4110
- i && je[`${Ke}--disabled`]
4107
+ Ke[je],
4108
+ Ke[`${je}--${l}`],
4109
+ _ && Ke[`${je}--selected`],
4110
+ i && Ke[`${je}--disabled`]
4111
4111
  )
4112
4112
  }),
4113
4113
  t,
4114
- u && /* @__PURE__ */ e.createElement(P, { as: "span", size: "md", className: je[`${Ke}__count`] }, "(", r, ")"),
4114
+ u && /* @__PURE__ */ e.createElement(P, { as: "span", size: "md", className: Ke[`${je}__count`] }, "(", r, ")"),
4115
4115
  m && /* @__PURE__ */ e.createElement(
4116
4116
  o_,
4117
4117
  {
4118
4118
  "data-testid": "tab-badge",
4119
4119
  count: r,
4120
4120
  size: "compact",
4121
- className: je[`${Ke}__badge`]
4121
+ className: Ke[`${je}__badge`]
4122
4122
  }
4123
4123
  )
4124
4124
  );
4125
4125
  }, To = "lc-TabsWrapper-module__tabs___Y2xyD", Do = "lc-TabsWrapper-module__tabs__list___i6tVO", Ja = {
4126
4126
  tabs: To,
4127
4127
  tabs__list: Do
4128
- }, ja = "tabs", Gl = ({
4128
+ }, Ka = "tabs", Gl = ({
4129
4129
  className: t,
4130
4130
  children: a
4131
- }) => /* @__PURE__ */ e.createElement("div", { className: g(Ja[ja], t) }, a), Ul = ({
4131
+ }) => /* @__PURE__ */ e.createElement("div", { className: g(Ja[Ka], t) }, a), Ul = ({
4132
4132
  className: t,
4133
4133
  children: a
4134
- }) => /* @__PURE__ */ e.createElement("div", { className: g(Ja[`${ja}__list`], t) }, a), Io = ({
4134
+ }) => /* @__PURE__ */ e.createElement("div", { className: g(Ja[`${Ka}__list`], t) }, a), Io = ({
4135
4135
  className: t = "",
4136
4136
  innerEditableRef: a,
4137
4137
  inputRef: r,
@@ -4159,7 +4159,7 @@ const dt = {
4159
4159
  }
4160
4160
  _(f.innerText);
4161
4161
  }
4162
- }, b = (f) => {
4162
+ }, v = (f) => {
4163
4163
  f.preventDefault();
4164
4164
  const p = f.clipboardData.getData("text/plain");
4165
4165
  document.execCommand("insertHTML", !1, na(p));
@@ -4170,7 +4170,7 @@ const dt = {
4170
4170
  ref: a,
4171
4171
  className: t,
4172
4172
  contentEditable: !0,
4173
- onPaste: b,
4173
+ onPaste: v,
4174
4174
  onBlur: d,
4175
4175
  onKeyDown: m,
4176
4176
  dangerouslySetInnerHTML: { __html: na(l) }
@@ -4243,44 +4243,44 @@ const dt = {
4243
4243
  }), m = g(
4244
4244
  gt[`${It}__input`],
4245
4245
  gt[`${It}__input--${c}`]
4246
- ), [d, b] = e.useState(""), f = e.useRef(null), p = (E) => {
4247
- r([...a || [], E]), b("");
4248
- }, v = (E) => {
4246
+ ), [d, v] = e.useState(""), f = e.useRef(null), p = (y) => {
4247
+ r([...a || [], y]), v("");
4248
+ }, b = (y) => {
4249
4249
  const k = [...a || []];
4250
- k.splice(E, 1), r(k);
4251
- }, $ = (E) => b(E.target.value), h = (E) => {
4252
- if (Po.includes(E.key)) {
4253
- if (E.preventDefault(), d === "")
4250
+ k.splice(y, 1), r(k);
4251
+ }, E = (y) => v(y.target.value), h = (y) => {
4252
+ if (Po.includes(y.key)) {
4253
+ if (y.preventDefault(), d === "")
4254
4254
  return;
4255
4255
  p(d);
4256
- } else if (Fo.includes(E.key)) {
4256
+ } else if (Fo.includes(y.key)) {
4257
4257
  if (d !== "" || !(a != null && a.length))
4258
4258
  return;
4259
- v(a.length - 1);
4259
+ b(a.length - 1);
4260
4260
  }
4261
- }, y = (E, k) => {
4261
+ }, N = (y, k) => {
4262
4262
  const C = [...a || []];
4263
4263
  C.reduce(
4264
- (H, re, ne) => H + (re === k && ne !== E ? 1 : 0),
4264
+ (H, re, ne) => H + (re === k && ne !== y ? 1 : 0),
4265
4265
  0
4266
- ) > 0 ? C.splice(E, 1) : C[E] = k, r(C);
4267
- }, N = (E) => {
4268
- E.preventDefault();
4269
- const C = E.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
4266
+ ) > 0 ? C.splice(y, 1) : C[y] = k, r(C);
4267
+ }, $ = (y) => {
4268
+ y.preventDefault();
4269
+ const C = y.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
4270
4270
  r([...a || [], ...C]);
4271
4271
  };
4272
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: u }, a == null ? void 0 : a.map((E, k) => /* @__PURE__ */ e.createElement(
4272
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: u }, a == null ? void 0 : a.map((y, k) => /* @__PURE__ */ e.createElement(
4273
4273
  Bo,
4274
4274
  {
4275
4275
  index: k,
4276
- key: `${k}${E}`,
4277
- update: y,
4278
- remove: v,
4276
+ key: `${k}${y}`,
4277
+ update: N,
4278
+ remove: b,
4279
4279
  inputRef: f,
4280
4280
  validator: _,
4281
4281
  size: c
4282
4282
  },
4283
- E
4283
+ y
4284
4284
  )), /* @__PURE__ */ e.createElement(
4285
4285
  "input",
4286
4286
  A(w({}, n), {
@@ -4289,9 +4289,9 @@ const dt = {
4289
4289
  className: m,
4290
4290
  placeholder: l,
4291
4291
  value: d,
4292
- onChange: $,
4292
+ onChange: E,
4293
4293
  onKeyDown: h,
4294
- onPaste: N
4294
+ onPaste: $
4295
4295
  })
4296
4296
  )), o && /* @__PURE__ */ e.createElement(ra, null, o));
4297
4297
  }, Mo = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, Lo = "name@company.com", Oo = (t) => Mo.test(t), Wl = ({
@@ -4418,7 +4418,7 @@ const dt = {
4418
4418
  },
4419
4419
  t
4420
4420
  );
4421
- return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(Ra, { component: null }, a.map(({ id: s, kind: i, content: u, removable: m, action: d, onClose: b }) => /* @__PURE__ */ e.createElement(
4421
+ return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(Ra, { component: null }, a.map(({ id: s, kind: i, content: u, removable: m, action: d, onClose: v }) => /* @__PURE__ */ e.createElement(
4422
4422
  ea,
4423
4423
  {
4424
4424
  key: s,
@@ -4434,7 +4434,7 @@ const dt = {
4434
4434
  Vo,
4435
4435
  {
4436
4436
  kind: i,
4437
- onClose: b,
4437
+ onClose: v,
4438
4438
  removable: m,
4439
4439
  action: d
4440
4440
  },
@@ -4455,14 +4455,14 @@ const dt = {
4455
4455
  [At[`${Bt}--error`]]: a
4456
4456
  }), d = (f) => {
4457
4457
  u(!1), n == null || n(f);
4458
- }, b = (f) => {
4458
+ }, v = (f) => {
4459
4459
  u(!0), s == null || s(f);
4460
4460
  };
4461
4461
  return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
4462
4462
  "textarea",
4463
4463
  A(w({}, r), {
4464
4464
  ref: _,
4465
- onFocus: b,
4465
+ onFocus: v,
4466
4466
  onBlur: d
4467
4467
  })
4468
4468
  ));
@@ -4585,7 +4585,7 @@ const dt = {
4585
4585
  "upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
4586
4586
  "upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
4587
4587
  "upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
4588
- }, X = "upload-bar", xe = `${X}__wrapper__header`, jo = 300, Ko = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__success-icon`] }, /* @__PURE__ */ e.createElement(D, { source: Xt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__error-icon`] }, /* @__PURE__ */ e.createElement(D, { source: nr })) : /* @__PURE__ */ e.createElement(
4588
+ }, X = "upload-bar", xe = `${X}__wrapper__header`, Ko = 300, jo = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__success-icon`] }, /* @__PURE__ */ e.createElement(D, { source: Xt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__error-icon`] }, /* @__PURE__ */ e.createElement(D, { source: nr })) : /* @__PURE__ */ e.createElement(
4589
4589
  po,
4590
4590
  {
4591
4591
  className: R[`${xe}__loader`],
@@ -4606,11 +4606,11 @@ const dt = {
4606
4606
  onCloseButtonClick: u,
4607
4607
  onRetryButtonClick: m
4608
4608
  }) => {
4609
- const [d, b] = e.useState(o || !1), f = c === "error", p = c === "success", v = g(R[X], a, {
4609
+ const [d, v] = e.useState(o || !1), f = c === "error", p = c === "success", b = g(R[X], a, {
4610
4610
  [R[`${X}--error`]]: f,
4611
4611
  [R[`${X}--success`]]: p
4612
- }), $ = !(f && (m || u)), h = () => b(!d);
4613
- return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement("div", { className: R[`${X}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: R[`${xe}`] }, /* @__PURE__ */ e.createElement(
4612
+ }), E = !(f && (m || u)), h = () => v(!d);
4613
+ return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("div", { className: R[`${X}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: R[`${xe}`] }, /* @__PURE__ */ e.createElement(
4614
4614
  Jo,
4615
4615
  {
4616
4616
  title: f && l || _,
@@ -4626,13 +4626,13 @@ const dt = {
4626
4626
  onCloseButtonClick: u,
4627
4627
  onRetryButtonClick: m
4628
4628
  }
4629
- ))) : /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
4629
+ ))) : /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement(
4630
4630
  "div",
4631
4631
  {
4632
4632
  className: R[`${X}__wrapper`],
4633
4633
  onClick: h
4634
4634
  },
4635
- /* @__PURE__ */ e.createElement("div", { className: R[`${xe}`] }, /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__icon`] }, Ko(c, r)), /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__title`] }, /* @__PURE__ */ e.createElement(P, { size: "sm", as: "div" }, f ? l : _)), $ && /* @__PURE__ */ e.createElement(
4635
+ /* @__PURE__ */ e.createElement("div", { className: R[`${xe}`] }, /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__icon`] }, jo(c, r)), /* @__PURE__ */ e.createElement("div", { className: R[`${xe}__title`] }, /* @__PURE__ */ e.createElement(P, { size: "sm", as: "div" }, f ? l : _)), E && /* @__PURE__ */ e.createElement(
4636
4636
  "button",
4637
4637
  {
4638
4638
  className: R[`${xe}__collapse-button`],
@@ -4651,7 +4651,7 @@ const dt = {
4651
4651
  ), /* @__PURE__ */ e.createElement(Ra, { component: null }, d && /* @__PURE__ */ e.createElement(
4652
4652
  ea,
4653
4653
  {
4654
- timeout: jo,
4654
+ timeout: Ko,
4655
4655
  classNames: {
4656
4656
  enter: R[`${X}__files--enter`],
4657
4657
  enterActive: R[`${X}__files--enter-active`],
@@ -4694,7 +4694,7 @@ export {
4694
4694
  Dl as Link,
4695
4695
  aa as Loader,
4696
4696
  Il as Modal,
4697
- j_ as ModalBase,
4697
+ K_ as ModalBase,
4698
4698
  Ca as ModalCloseButton,
4699
4699
  Bl as ModalHeader,
4700
4700
  Al as ModalPortal,