@livechat/design-system-react-components 1.16.7 → 1.16.9

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
@@ -477,7 +477,7 @@ const jl = {
477
477
  "action-menu__list__item--selected": "lc-ActionMenu-module__action-menu__list__item--selected___eevlJ",
478
478
  "action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo"
479
479
  }, Ve = "action-menu", r_ = (b) => {
480
- var h = b, {
480
+ var k = b, {
481
481
  className: t,
482
482
  triggerClassName: a,
483
483
  options: r,
@@ -491,7 +491,7 @@ const jl = {
491
491
  onOpen: i,
492
492
  floatingStrategy: p,
493
493
  selectedOptions: m
494
- } = h, y = A(h, [
494
+ } = k, y = A(k, [
495
495
  "className",
496
496
  "triggerClassName",
497
497
  "options",
@@ -506,7 +506,7 @@ const jl = {
506
506
  "floatingStrategy",
507
507
  "selectedOptions"
508
508
  ]);
509
- const g = n !== void 0, [v, f] = e.useState(l), k = e.useRef(-1), w = e.useRef(null), C = g ? n : v, $ = () => {
509
+ const g = n !== void 0, [h, f] = e.useState(l), v = e.useRef(-1), w = e.useRef(null), C = g ? n : h, $ = () => {
510
510
  C ? (s == null || s(), !g && f(!1)) : (i == null || i(), !g && f(!0));
511
511
  }, { x: B, y: N, strategy: O, refs: P, context: M } = Vt({
512
512
  middleware: [Yt(4), qt(d)],
@@ -535,7 +535,7 @@ const jl = {
535
535
  })
536
536
  }), Pe = (I) => {
537
537
  var j, Fe;
538
- const X = k.current;
538
+ const X = v.current;
539
539
  let q = X + I;
540
540
  for (; (j = r[q]) != null && j.disabled || (Fe = r[q]) != null && Fe.groupHeader; )
541
541
  if (q += I, q === -1) {
@@ -545,19 +545,19 @@ const jl = {
545
545
  return q;
546
546
  }, Be = (I) => {
547
547
  var j, Fe;
548
- k.current = Pe(I);
549
- const X = (j = w.current) == null ? void 0 : j.children, q = X && ((Fe = X[k.current]) == null ? void 0 : Fe.children[0]);
548
+ v.current = Pe(I);
549
+ const X = (j = w.current) == null ? void 0 : j.children, q = X && ((Fe = X[v.current]) == null ? void 0 : Fe.children[0]);
550
550
  return q == null ? void 0 : q.focus();
551
551
  }, Ke = (I) => {
552
- I.key === re.arrowUp && k.current > 0 && (I.preventDefault(), Be(-1)), I.key === re.arrowDown && k.current + 1 < r.length && (I.preventDefault(), Be(1));
552
+ I.key === re.arrowUp && v.current > 0 && (I.preventDefault(), Be(-1)), I.key === re.arrowDown && v.current + 1 < r.length && (I.preventDefault(), Be(1));
553
553
  };
554
554
  e.useEffect(() => {
555
555
  if (C)
556
556
  return document.addEventListener("keydown", Ke), () => document.removeEventListener("keydown", Ke);
557
- k.current = -1;
557
+ v.current = -1;
558
558
  }, [C, Ke]);
559
559
  const je = (I, X) => {
560
- k.current = I, X == null || X(), !g && !c && (f(!1), s == null || s());
560
+ v.current = I, X == null || X(), !g && !c && (f(!1), s == null || s());
561
561
  }, Ze = (I, X) => I.groupHeader ? /* @__PURE__ */ e.createElement(
562
562
  "li",
563
563
  {
@@ -816,8 +816,8 @@ const jl = {
816
816
  "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
817
817
  "btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
818
818
  }, ge = "btn", U = e.forwardRef(
819
- (h, b) => {
820
- var g = h, {
819
+ (k, b) => {
820
+ var g = k, {
821
821
  loading: t = !1,
822
822
  disabled: a = !1,
823
823
  type: r = "button",
@@ -846,7 +846,7 @@ const jl = {
846
846
  "href",
847
847
  "onClick"
848
848
  ]);
849
- const v = t || a, f = !i && c, k = ["text", "link", "link-light"].includes(o), w = p ? "a" : "button", C = u(
849
+ const h = t || a, f = !i && c, v = ["text", "link", "link-light"].includes(o), w = p ? "a" : "button", C = u(
850
850
  s,
851
851
  pe[ge],
852
852
  pe[`${ge}--${o}`],
@@ -854,10 +854,10 @@ const jl = {
854
854
  {
855
855
  [pe[`${ge}--loading`]]: t,
856
856
  [pe[`${ge}--full-width`]]: _,
857
- [pe[`${ge}--with-${d}-icon`]]: c && !f && !k,
857
+ [pe[`${ge}--with-${d}-icon`]]: c && !f && !v,
858
858
  [pe[`${ge}--icon-only`]]: f,
859
- [pe[`${ge}--icon-only--bg`]]: f && k,
860
- [pe[`${ge}--disabled`]]: v
859
+ [pe[`${ge}--icon-only--bg`]]: f && v,
860
+ [pe[`${ge}--disabled`]]: h
861
861
  }
862
862
  );
863
863
  return /* @__PURE__ */ e.createElement(
@@ -865,10 +865,10 @@ const jl = {
865
865
  E(E({
866
866
  ref: b,
867
867
  className: C,
868
- "aria-disabled": v,
868
+ "aria-disabled": h,
869
869
  type: r,
870
- disabled: v
871
- }, !v && { href: p, onClick: m }), y),
870
+ disabled: h
871
+ }, !h && { href: p, onClick: m }), y),
872
872
  t && /* @__PURE__ */ e.createElement(
873
873
  Ba,
874
874
  E({
@@ -952,11 +952,11 @@ const g_ = "lc-Tooltip-module__tooltip___QOOAr", b_ = "lc-Tooltip-module__toolti
952
952
  transitionDuration: m = 200,
953
953
  hoverOnDuration: y,
954
954
  hoverOffDuration: b,
955
- transitionDelay: h = 0,
955
+ transitionDelay: k = 0,
956
956
  hoverOnDelay: g,
957
- hoverOffDelay: v,
957
+ hoverOffDelay: h,
958
958
  triggerOnClick: f = !1,
959
- offsetMainAxis: k = 8,
959
+ offsetMainAxis: v = 8,
960
960
  referenceElement: w,
961
961
  activationThreshold: C = 0,
962
962
  useDismissHookProps: $,
@@ -974,7 +974,7 @@ const g_ = "lc-Tooltip-module__tooltip___QOOAr", b_ = "lc-Tooltip-module__toolti
974
974
  n && S[`${Dt}--full-space`]
975
975
  ), Ke = typeof _ == "function", je = (_e) => {
976
976
  _e !== Te && (_e ? i == null || i() : s == null || s(), !ue && De(_e));
977
- }, Ze = (_e) => p ? _e != null ? _e : m : 0, I = (_e) => _e != null ? _e : h, {
977
+ }, Ze = (_e) => p ? _e != null ? _e : m : 0, I = (_e) => _e != null ? _e : k, {
978
978
  floatingStyles: X,
979
979
  refs: q,
980
980
  context: j,
@@ -982,7 +982,7 @@ const g_ = "lc-Tooltip-module__tooltip___QOOAr", b_ = "lc-Tooltip-module__toolti
982
982
  placement: ta
983
983
  } = Vt({
984
984
  middleware: [
985
- Yt({ mainAxis: k }),
985
+ Yt({ mainAxis: v }),
986
986
  Ta(),
987
987
  qt(),
988
988
  zr({ element: me })
@@ -997,7 +997,7 @@ const g_ = "lc-Tooltip-module__tooltip___QOOAr", b_ = "lc-Tooltip-module__toolti
997
997
  restMs: C,
998
998
  delay: {
999
999
  open: I(g),
1000
- close: I(v || N)
1000
+ close: I(h || N)
1001
1001
  },
1002
1002
  enabled: !f,
1003
1003
  handleClose: M ? null : Ur()
@@ -1399,37 +1399,37 @@ const Ua = 8, Wa = "guide-tooltip", Va = (t, a) => new v_(t, a), ic = (t) => {
1399
1399
  root: document.querySelector(`${a}`),
1400
1400
  threshold: 1
1401
1401
  }, m = !n && c.length !== 0, y = (g) => {
1402
- g.map((v) => {
1403
- const f = c.includes(v.target.id);
1404
- if (!v.isIntersecting) {
1405
- v.target.setAttribute("tabindex", "-1"), f || d((k) => [
1406
- ...k,
1407
- v.target.id
1402
+ g.map((h) => {
1403
+ const f = c.includes(h.target.id);
1404
+ if (!h.isIntersecting) {
1405
+ h.target.setAttribute("tabindex", "-1"), f || d((v) => [
1406
+ ...v,
1407
+ h.target.id
1408
1408
  ]);
1409
1409
  return;
1410
1410
  }
1411
- v.target.removeAttribute("tabindex"), f && d(c.filter((k) => k !== v.target.id));
1411
+ h.target.removeAttribute("tabindex"), f && d(c.filter((v) => v !== h.target.id));
1412
1412
  });
1413
1413
  };
1414
1414
  e.useEffect(() => {
1415
1415
  const g = !!window.IntersectionObserver;
1416
1416
  if (!n && g) {
1417
- const v = document.querySelectorAll(
1417
+ const h = document.querySelectorAll(
1418
1418
  `.${ie[`${et}__items__button`]}`
1419
1419
  ), f = new IntersectionObserver(
1420
1420
  y,
1421
1421
  p
1422
1422
  );
1423
- return v.forEach((k) => f.observe(k)), () => f.disconnect();
1423
+ return h.forEach((v) => f.observe(v)), () => f.disconnect();
1424
1424
  }
1425
1425
  }, [c, n]);
1426
1426
  const b = (g) => _.filter(
1427
- (f) => g.find((k) => k === f.key)
1427
+ (f) => g.find((v) => v === f.key)
1428
1428
  ).map((f) => ({
1429
1429
  key: f.key,
1430
1430
  element: /* @__PURE__ */ e.createElement(o_, { leftNode: f.element }, f.label),
1431
1431
  onClick: f.onClick
1432
- })), h = _.filter((g) => c.find((v) => v === g.key)).find((g) => g.key === o);
1432
+ })), k = _.filter((g) => c.find((h) => h === g.key)).find((g) => g.key === o);
1433
1433
  return /* @__PURE__ */ e.createElement("div", { id: a, className: s }, /* @__PURE__ */ e.createElement(
1434
1434
  "div",
1435
1435
  {
@@ -1459,7 +1459,7 @@ const Ua = 8, Wa = "guide-tooltip", Va = (t, a) => new v_(t, a), ic = (t) => {
1459
1459
  {
1460
1460
  className: u(
1461
1461
  ie[`${i}__button`],
1462
- h && ie[`${i}__button--active`]
1462
+ k && ie[`${i}__button--active`]
1463
1463
  ),
1464
1464
  kind: "plain",
1465
1465
  icon: /* @__PURE__ */ e.createElement(
@@ -1471,14 +1471,14 @@ const Ua = 8, Wa = "guide-tooltip", Va = (t, a) => new v_(t, a), ic = (t) => {
1471
1471
  ),
1472
1472
  iconPosition: "right"
1473
1473
  },
1474
- h && /* @__PURE__ */ e.createElement(
1474
+ k && /* @__PURE__ */ e.createElement(
1475
1475
  "div",
1476
1476
  {
1477
1477
  className: u(
1478
1478
  ie[`${i}__button__with-item`]
1479
1479
  )
1480
1480
  },
1481
- h.element
1481
+ k.element
1482
1482
  )
1483
1483
  )
1484
1484
  }
@@ -1679,7 +1679,7 @@ const B_ = "lc-Avatar-module__avatar___1zTCE", I_ = "lc-Avatar-module__avatar__s
1679
1679
  "type",
1680
1680
  "withRim"
1681
1681
  ]);
1682
- const y = n === "image" && !l, [b, h] = e.useState(y), g = n === "image" && !!l && !b, v = n === "text", f = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, k = T_(d, f), w = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), C = r || D_(d), $ = C ? P_(C) : void 0, B = v ? { backgroundColor: C } : {}, N = u(E({
1682
+ const y = n === "image" && !l, [b, k] = e.useState(y), g = n === "image" && !!l && !b, h = n === "text", f = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, v = T_(d, f), w = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), C = r || D_(d), $ = C ? P_(C) : void 0, B = h ? { backgroundColor: C } : {}, N = u(E({
1683
1683
  [be[J]]: !0,
1684
1684
  [be[`${J}--${_}`]]: !0,
1685
1685
  [be[`${J}--${o}`]]: !0,
@@ -1695,9 +1695,9 @@ const B_ = "lc-Avatar-module__avatar___1zTCE", I_ = "lc-Avatar-module__avatar__s
1695
1695
  ), M = u(
1696
1696
  be[`${J}__rim`],
1697
1697
  be[`${J}__rim--${o}`]
1698
- ), z = (Q) => w ? "2xs" : ["medium"].includes(Q) ? "xs" : ["large", "xlarge"].includes(Q) ? "sm" : ["xxlarge"].includes(Q) ? "lg" : "xl", ue = e.useCallback(() => h(!0), []);
1698
+ ), z = (Q) => w ? "2xs" : ["medium"].includes(Q) ? "xs" : ["large", "xlarge"].includes(Q) ? "sm" : ["xxlarge"].includes(Q) ? "lg" : "xl", ue = e.useCallback(() => k(!0), []);
1699
1699
  return e.useEffect(() => {
1700
- h(y);
1700
+ k(y);
1701
1701
  }, [y]), /* @__PURE__ */ e.createElement("div", E({ className: N, style: B }, i), s && /* @__PURE__ */ e.createElement(
1702
1702
  "div",
1703
1703
  {
@@ -1718,7 +1718,7 @@ const B_ = "lc-Avatar-module__avatar___1zTCE", I_ = "lc-Avatar-module__avatar__s
1718
1718
  alt: t,
1719
1719
  onError: ue
1720
1720
  }
1721
- ), v && /* @__PURE__ */ e.createElement(
1721
+ ), h && /* @__PURE__ */ e.createElement(
1722
1722
  xe,
1723
1723
  {
1724
1724
  as: "span",
@@ -1727,7 +1727,7 @@ const B_ = "lc-Avatar-module__avatar___1zTCE", I_ = "lc-Avatar-module__avatar__s
1727
1727
  bold: w,
1728
1728
  uppercase: w
1729
1729
  },
1730
- k
1730
+ v
1731
1731
  ), b && /* @__PURE__ */ e.createElement(
1732
1732
  T,
1733
1733
  {
@@ -1801,8 +1801,8 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
1801
1801
  }, [o]);
1802
1802
  const p = (y, b) => {
1803
1803
  i || s(y), c(y, b);
1804
- }, m = a.map(({ id: y, label: b, loading: h, disabled: g, icon: v }) => {
1805
- const f = y === n, k = f ? It["btn--active"] : "", w = f ? !1 : h;
1804
+ }, m = a.map(({ id: y, label: b, loading: k, disabled: g, icon: h }) => {
1805
+ const f = y === n, v = f ? It["btn--active"] : "", w = f ? !1 : k;
1806
1806
  return /* @__PURE__ */ e.createElement(
1807
1807
  U,
1808
1808
  {
@@ -1812,8 +1812,8 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
1812
1812
  disabled: g,
1813
1813
  "aria-pressed": f,
1814
1814
  kind: "secondary",
1815
- icon: v,
1816
- className: u(It.btn, It[`btn--${t}`], k),
1815
+ icon: h,
1816
+ className: u(It.btn, It[`btn--${t}`], v),
1817
1817
  onClick: (C) => {
1818
1818
  p(y, C);
1819
1819
  }
@@ -1856,8 +1856,8 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
1856
1856
  "src",
1857
1857
  "title"
1858
1858
  ]);
1859
- const [p, m] = e.useState(!1), y = p ? Wt : Ct, b = p ? "Hide" : "Show more", h = (a == null ? void 0 : a.length) > 0, g = !!l, v = h || g, f = d, k = c, w = k ? "" : fe[eo];
1860
- return /* @__PURE__ */ e.createElement("div", E({ className: u(fe[$t], _) }, n), f && /* @__PURE__ */ e.createElement("div", { className: u(fe[Gt], w) }, k && /* @__PURE__ */ e.createElement(
1859
+ const [p, m] = e.useState(!1), y = p ? Wt : Ct, b = p ? "Hide" : "Show more", k = (a == null ? void 0 : a.length) > 0, g = !!l, h = k || g, f = d, v = c, w = v ? "" : fe[eo];
1860
+ return /* @__PURE__ */ e.createElement("div", E({ className: u(fe[$t], _) }, n), f && /* @__PURE__ */ e.createElement("div", { className: u(fe[Gt], w) }, v && /* @__PURE__ */ e.createElement(
1861
1861
  "img",
1862
1862
  {
1863
1863
  alt: t,
@@ -1872,7 +1872,7 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
1872
1872
  className: fe[`${$t}__expanded-content`]
1873
1873
  },
1874
1874
  l
1875
- ), v && /* @__PURE__ */ e.createElement("div", { className: fe[At] }, /* @__PURE__ */ e.createElement("div", { className: fe[`${At}__line`] }), /* @__PURE__ */ e.createElement("div", { className: fe[`${At}__buttons`] }, h && a.map(
1875
+ ), h && /* @__PURE__ */ e.createElement("div", { className: fe[At] }, /* @__PURE__ */ e.createElement("div", { className: fe[`${At}__line`] }), /* @__PURE__ */ e.createElement("div", { className: fe[`${At}__buttons`] }, k && a.map(
1876
1876
  ({ kind: C, onClick: $, children: B }) => /* @__PURE__ */ e.createElement(U, { size: "compact", kind: C, onClick: $ }, B)
1877
1877
  ), g && /* @__PURE__ */ e.createElement(
1878
1878
  U,
@@ -1988,21 +1988,21 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
1988
1988
  const f = st(s, 12);
1989
1989
  return r(f);
1990
1990
  }
1991
- const g = Math.abs(Ma(s, i)), v = st(
1991
+ const g = Math.abs(Ma(s, i)), h = st(
1992
1992
  s,
1993
1993
  !Number.isNaN(g) && g > 12 ? 12 : g
1994
1994
  );
1995
- return r(v);
1996
- }, h = () => {
1995
+ return r(h);
1996
+ }, k = () => {
1997
1997
  if (!p) {
1998
1998
  const f = La(s, 12);
1999
1999
  return r(f);
2000
2000
  }
2001
- const g = Math.abs(Ma(p, s)), v = La(
2001
+ const g = Math.abs(Ma(p, s)), h = La(
2002
2002
  s,
2003
2003
  !Number.isNaN(g) && g > 12 ? 12 : g
2004
2004
  );
2005
- return n === 2 && wa(v, p) ? r(st(v, 1)) : r(v);
2005
+ return n === 2 && wa(h, p) ? r(st(h, 1)) : r(h);
2006
2006
  };
2007
2007
  return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: D[`${qa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
2008
2008
  "button",
@@ -2045,7 +2045,7 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
2045
2045
  [d.navButtonNext]: !0,
2046
2046
  [d.navButtonInteractionDisabled]: !o
2047
2047
  }),
2048
- onClick: h
2048
+ onClick: k
2049
2049
  },
2050
2050
  /* @__PURE__ */ e.createElement(T, { source: Ar, kind: "subtle" })
2051
2051
  )));
@@ -2118,7 +2118,7 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
2118
2118
  const a = t.getDate();
2119
2119
  return /* @__PURE__ */ e.createElement("div", { className: D[`${Ja}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: D[`${Ja}__day-content`] }, a));
2120
2120
  }, fo = (t) => {
2121
- const v = t, {
2121
+ const h = t, {
2122
2122
  classNames: a,
2123
2123
  range: r,
2124
2124
  toMonth: _,
@@ -2129,7 +2129,7 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
2129
2129
  navbarElement: n,
2130
2130
  renderDay: s,
2131
2131
  innerRef: i
2132
- } = v, p = A(v, [
2132
+ } = h, p = A(h, [
2133
2133
  "classNames",
2134
2134
  "range",
2135
2135
  "toMonth",
@@ -2156,8 +2156,8 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
2156
2156
  },
2157
2157
  [o, t.onMonthChange]
2158
2158
  );
2159
- let h = 1;
2160
- (c === 0 || c && c < 7) && (h = c);
2159
+ let k = 1;
2160
+ (c === 0 || c && c < 7) && (k = c);
2161
2161
  const g = e.useMemo(
2162
2162
  () => go(r, a),
2163
2163
  [r, a]
@@ -2181,7 +2181,7 @@ const G_ = "lc-SegmentedControl-module__btn___tfsvL", It = {
2181
2181
  numberOfMonths: d,
2182
2182
  toMonth: _,
2183
2183
  fromMonth: l,
2184
- firstDayOfWeek: h,
2184
+ firstDayOfWeek: k,
2185
2185
  month: m,
2186
2186
  renderDay: s || bo
2187
2187
  }, p)
@@ -2282,104 +2282,104 @@ const vo = (t) => {
2282
2282
  payload: { date: _ }
2283
2283
  });
2284
2284
  }, [_]), nt(() => {
2285
- const h = yr(
2285
+ const k = yr(
2286
2286
  r,
2287
2287
  _,
2288
2288
  o
2289
2289
  );
2290
2290
  s({
2291
2291
  type: W.CURRENT_MONTH_CHANGE,
2292
- payload: { date: h }
2292
+ payload: { date: k }
2293
2293
  });
2294
2294
  }, [o, r, _]), nt(() => {
2295
- const { from: h, selectedItem: g, to: v } = n;
2296
- if (!(h && v))
2295
+ const { from: k, selectedItem: g, to: h } = n;
2296
+ if (!(k && h))
2297
2297
  return;
2298
2298
  const f = yt(g, t);
2299
2299
  f && (l == null || l(x(E({}, f), {
2300
2300
  value: {
2301
- from: h,
2302
- to: v
2301
+ from: k,
2302
+ to: h
2303
2303
  }
2304
2304
  })));
2305
2305
  }, [n.from, n.to, n.selectedItem, t, l]), nt(() => {
2306
- const { selectedItem: h } = n;
2307
- if (h === d.current)
2306
+ const { selectedItem: k } = n;
2307
+ if (k === d.current)
2308
2308
  return;
2309
- if (!h) {
2309
+ if (!k) {
2310
2310
  l(null);
2311
2311
  return;
2312
2312
  }
2313
- if (!yt(h, t))
2313
+ if (!yt(k, t))
2314
2314
  return;
2315
- const v = t.reduce(
2316
- (f, k) => x(E({}, f), { [k.id]: k }),
2315
+ const h = t.reduce(
2316
+ (f, v) => x(E({}, f), { [v.id]: v }),
2317
2317
  {}
2318
2318
  );
2319
- l(v[h]);
2319
+ l(h[k]);
2320
2320
  }, [l, n.selectedItem, t]);
2321
2321
  const i = xt(
2322
- (h) => {
2323
- const g = o ? mr(o, h) >= 0 : !0;
2322
+ (k) => {
2323
+ const g = o ? mr(o, k) >= 0 : !0;
2324
2324
  !Ka(n.from, n.to) && g && s({
2325
2325
  type: W.NEW_TEMPORARY_TO_VALUE,
2326
- payload: { date: h }
2326
+ payload: { date: k }
2327
2327
  });
2328
2328
  },
2329
2329
  [o, n.from, n.to]
2330
2330
  ), p = xt(
2331
- (h) => {
2332
- const { from: g, to: v } = n;
2333
- kr(h, { to: o }) && (Ka(g, v) ? s({
2331
+ (k) => {
2332
+ const { from: g, to: h } = n;
2333
+ kr(k, { to: o }) && (Ka(g, h) ? s({
2334
2334
  type: W.SELECT_FIRST_DAY,
2335
- payload: { date: h }
2336
- }) : g && Ca(h, g) || g && Na(h, g) ? s({
2335
+ payload: { date: k }
2336
+ }) : g && Ca(k, g) || g && Na(k, g) ? s({
2337
2337
  type: W.SELECT_SECOND_DAY_AS_TO,
2338
- payload: { date: h }
2338
+ payload: { date: k }
2339
2339
  }) : s({
2340
2340
  type: W.SELECT_SECOND_DAY_AS_FROM,
2341
- payload: { date: h }
2341
+ payload: { date: k }
2342
2342
  }));
2343
2343
  },
2344
2344
  [o, n.from, n.to]
2345
2345
  ), m = xt(
2346
- (h) => {
2347
- if (h === null) {
2346
+ (k) => {
2347
+ if (k === null) {
2348
2348
  s({
2349
2349
  type: W.NEW_SELECTED_ITEM,
2350
2350
  payload: { selectedItem: null }
2351
2351
  });
2352
2352
  return;
2353
2353
  }
2354
- yt(h, t) && s({
2354
+ yt(k, t) && s({
2355
2355
  type: W.NEW_SELECTED_ITEM,
2356
- payload: { selectedItem: h }
2356
+ payload: { selectedItem: k }
2357
2357
  });
2358
2358
  },
2359
2359
  [t]
2360
- ), y = xt((h) => {
2360
+ ), y = xt((k) => {
2361
2361
  s({
2362
2362
  type: W.CURRENT_MONTH_CHANGE,
2363
- payload: { date: h }
2363
+ payload: { date: k }
2364
2364
  });
2365
2365
  }, []);
2366
2366
  return c((() => {
2367
- const { currentMonth: h, from: g, selectedItem: v, temporaryTo: f, to: k } = n, w = St(
2367
+ const { currentMonth: k, from: g, selectedItem: h, temporaryTo: f, to: v } = n, w = St(
2368
2368
  () => mo(g, f),
2369
2369
  [g, f]
2370
- ), C = St(() => yt(v, t), [t, v]), $ = St(() => [g, { from: g, to: f }], [g, f]), B = St(() => o ? { after: o } : void 0, [o]);
2370
+ ), C = St(() => yt(h, t), [t, h]), $ = St(() => [g, { from: g, to: f }], [g, f]), B = St(() => o ? { after: o } : void 0, [o]);
2371
2371
  return {
2372
2372
  select: {
2373
2373
  onItemSelect: m,
2374
- selected: v || ""
2374
+ selected: h || ""
2375
2375
  },
2376
2376
  inputs: {
2377
2377
  fromDate: g,
2378
- toDate: k
2378
+ toDate: v
2379
2379
  },
2380
2380
  datepicker: {
2381
2381
  range: !0,
2382
- month: h,
2382
+ month: k,
2383
2383
  numberOfMonths: 2,
2384
2384
  onDayClick: p,
2385
2385
  selectedDays: $,
@@ -2446,22 +2446,22 @@ const bc = (t) => {
2446
2446
  hideLabelOnOpen: n,
2447
2447
  onClick: s
2448
2448
  }) => {
2449
- const [i, p] = e.useState(d), [m, y] = e.useState(0), b = e.useRef(null), h = u(
2449
+ const [i, p] = e.useState(d), [m, y] = e.useState(0), b = e.useRef(null), k = u(
2450
2450
  L[H],
2451
2451
  l && L[`${H}--with-divider`],
2452
2452
  a
2453
- ), g = n && i, v = typeof o == "string", f = (k) => {
2454
- p((w) => !w), k.currentTarget.blur(), s == null || s();
2453
+ ), g = n && i, h = typeof o == "string", f = (v) => {
2454
+ p((w) => !w), v.currentTarget.blur(), s == null || s();
2455
2455
  };
2456
2456
  return e.useEffect(() => {
2457
- const k = !!window.IntersectionObserver;
2458
- if (b.current && k) {
2457
+ const v = !!window.IntersectionObserver;
2458
+ if (b.current && v) {
2459
2459
  const w = new ResizeObserver(() => {
2460
2460
  b.current && m !== b.current.offsetHeight && y(b.current.offsetHeight);
2461
2461
  });
2462
2462
  return w.observe(b.current), () => w.disconnect();
2463
2463
  }
2464
- }, [b]), /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement(
2464
+ }, [b]), /* @__PURE__ */ e.createElement("div", { className: k }, /* @__PURE__ */ e.createElement(
2465
2465
  "div",
2466
2466
  {
2467
2467
  className: u(
@@ -2483,7 +2483,7 @@ const bc = (t) => {
2483
2483
  )
2484
2484
  },
2485
2485
  r && /* @__PURE__ */ e.createElement("div", { className: L[`${H}__label__left-node`] }, r),
2486
- v ? /* @__PURE__ */ e.createElement(
2486
+ h ? /* @__PURE__ */ e.createElement(
2487
2487
  xe,
2488
2488
  {
2489
2489
  size: "xs",
@@ -2786,7 +2786,7 @@ const bc = (t) => {
2786
2786
  "className",
2787
2787
  "cropOnBlur"
2788
2788
  ]);
2789
- const [i, p] = e.useState(!1), [m, y] = e.useState(!1), { type: b, onFocus: h, onBlur: g } = c, v = u(
2789
+ const [i, p] = e.useState(!1), [m, y] = e.useState(!1), { type: b, onFocus: k, onBlur: g } = c, h = u(
2790
2790
  o,
2791
2791
  Ce[Ne],
2792
2792
  Ce[`${Ne}--${t}`],
@@ -2797,31 +2797,43 @@ const bc = (t) => {
2797
2797
  [Ce[`${Ne}--crop`]]: l,
2798
2798
  [Ce[`${Ne}--read-only`]]: c.readOnly
2799
2799
  }
2800
- ), f = r ? "var(--content-disabled)" : "var(--content-default)", k = m ? Fr : Rr, w = _ && _.place === "left", C = _ && b !== "password" && _.place === "right";
2801
- return /* @__PURE__ */ e.createElement("div", { className: v, "aria-disabled": r, "tab-index": "0" }, w && ja(_, r), /* @__PURE__ */ e.createElement(R, { as: "div" }, /* @__PURE__ */ e.createElement(
2802
- "input",
2803
- x(E({}, c), {
2804
- ref: d,
2805
- onFocus: ($) => {
2806
- p(!0), h == null || h($);
2807
- },
2808
- onBlur: ($) => {
2809
- p(!1), g == null || g($);
2810
- },
2811
- disabled: r,
2812
- type: b && !m ? b : "text"
2813
- })
2814
- )), C && ja(_, r), b === "password" && /* @__PURE__ */ e.createElement(
2815
- U,
2800
+ ), f = r ? "var(--content-disabled)" : "var(--content-default)", v = m ? Fr : Rr, w = _ && _.place === "left", C = _ && b !== "password" && _.place === "right";
2801
+ return /* @__PURE__ */ e.createElement(
2802
+ R,
2816
2803
  {
2817
- disabled: r,
2818
- kind: "text",
2819
- size: "compact",
2820
- icon: /* @__PURE__ */ e.createElement(T, { customColor: f, source: k }),
2821
- onClick: () => y(($) => !$),
2822
- className: Ce[`${Ne}__visibility-button`]
2823
- }
2824
- ));
2804
+ as: "div",
2805
+ className: h,
2806
+ "aria-disabled": r,
2807
+ "tab-index": "0"
2808
+ },
2809
+ w && ja(_, r),
2810
+ /* @__PURE__ */ e.createElement(
2811
+ "input",
2812
+ x(E({}, c), {
2813
+ ref: d,
2814
+ onFocus: ($) => {
2815
+ p(!0), k == null || k($);
2816
+ },
2817
+ onBlur: ($) => {
2818
+ p(!1), g == null || g($);
2819
+ },
2820
+ disabled: r,
2821
+ type: b && !m ? b : "text"
2822
+ })
2823
+ ),
2824
+ C && ja(_, r),
2825
+ b === "password" && /* @__PURE__ */ e.createElement(
2826
+ U,
2827
+ {
2828
+ disabled: r,
2829
+ kind: "text",
2830
+ size: "compact",
2831
+ icon: /* @__PURE__ */ e.createElement(T, { customColor: f, source: v }),
2832
+ onClick: () => y(($) => !$),
2833
+ className: Ce[`${Ne}__visibility-button`]
2834
+ }
2835
+ )
2836
+ );
2825
2837
  }
2826
2838
  ), xo = "lc-Link-module__link___kqx52", Za = {
2827
2839
  link: xo,
@@ -3088,12 +3100,12 @@ const bc = (t) => {
3088
3100
  [rt[`${_t}--disabled`]]: l
3089
3101
  },
3090
3102
  t
3091
- ), b = ($) => n(String($)), h = ($) => _ !== void 0 && $ > _ ? _ : o !== void 0 && $ < o ? o : $, g = ($) => {
3103
+ ), b = ($) => n(String($)), k = ($) => _ !== void 0 && $ > _ ? _ : o !== void 0 && $ < o ? o : $, g = ($) => {
3092
3104
  const B = parseInt(r, 10) + $;
3093
- return b(h(B));
3094
- }, v = ($) => {
3105
+ return b(k(B));
3106
+ }, h = ($) => {
3095
3107
  $.key === re.arrowDown && ($.preventDefault(), g(-1)), $.key === re.arrowUp && ($.preventDefault(), g(1));
3096
- }, f = ($, B) => B !== void 0 && parseInt($, 10) === B, k = ($) => {
3108
+ }, f = ($, B) => B !== void 0 && parseInt($, 10) === B, v = ($) => {
3097
3109
  $.preventDefault(), $.stopPropagation();
3098
3110
  const B = $.currentTarget.value.replace(
3099
3111
  /((?!([-]|([-]?\d+))).)/,
@@ -3102,7 +3114,7 @@ const bc = (t) => {
3102
3114
  if (B === "" || B === "-")
3103
3115
  return b(B);
3104
3116
  const N = parseInt(B, 10);
3105
- return b(h(N));
3117
+ return b(k(N));
3106
3118
  }, w = () => {
3107
3119
  var $;
3108
3120
  return ($ = m.current) == null || $.focus(), g(1);
@@ -3118,8 +3130,8 @@ const bc = (t) => {
3118
3130
  }, s), {
3119
3131
  value: r,
3120
3132
  disabled: l,
3121
- onChange: k,
3122
- onKeyDown: v,
3133
+ onChange: v,
3134
+ onKeyDown: h,
3123
3135
  min: o,
3124
3136
  max: _
3125
3137
  })
@@ -3306,18 +3318,18 @@ const wt = "select-all", Ao = (t, a) => {
3306
3318
  getFloatingProps: m,
3307
3319
  getItemProps: y,
3308
3320
  emptyStateText: b = "No results found",
3309
- pickerType: h = "single",
3321
+ pickerType: k = "single",
3310
3322
  listClassName: g,
3311
- virtuosoProps: v
3323
+ virtuosoProps: h
3312
3324
  }) => {
3313
- const f = e.useRef(null), [k, w] = e.useState(va), C = o.length;
3325
+ const f = e.useRef(null), [v, w] = e.useState(va), C = o.length;
3314
3326
  e.useLayoutEffect(() => {
3315
3327
  var N;
3316
3328
  l && !c && d !== null && ((N = f.current) == null || N.focus({ preventScroll: !0 }));
3317
3329
  }, [l, d, c, f]);
3318
3330
  const $ = e.useCallback(
3319
3331
  (N) => {
3320
- N !== k && (N < va ? w(N + (C - 1) * Io) : w(va));
3332
+ N !== v && (N < va ? w(N + (C - 1) * Io) : w(va));
3321
3333
  },
3322
3334
  [C]
3323
3335
  );
@@ -3353,7 +3365,7 @@ const wt = "select-all", Ao = (t, a) => {
3353
3365
  "div",
3354
3366
  E({
3355
3367
  tabIndex: 0,
3356
- "aria-multiselectable": h === "multi",
3368
+ "aria-multiselectable": k === "multi",
3357
3369
  className: ot["listbox-wrapper"],
3358
3370
  ref: f
3359
3371
  }, m({
@@ -3371,11 +3383,11 @@ const wt = "select-all", Ao = (t, a) => {
3371
3383
  e_,
3372
3384
  x(E({
3373
3385
  totalListHeightChanged: $,
3374
- style: { height: `${k}px`, maxHeight: _ },
3386
+ style: { height: `${v}px`, maxHeight: _ },
3375
3387
  totalCount: o.length,
3376
3388
  data: o,
3377
3389
  increaseViewportBy: 200
3378
- }, v), {
3390
+ }, h), {
3379
3391
  itemContent: (N, O) => /* @__PURE__ */ e.createElement(
3380
3392
  Fo,
3381
3393
  {
@@ -3434,7 +3446,7 @@ const wt = "select-all", Ao = (t, a) => {
3434
3446
  d && oe[`${te}--disabled`],
3435
3447
  s && oe[`${te}--focused`],
3436
3448
  i && oe[`${te}--error`]
3437
- ), b = !c && l && !d && !n, h = (g) => {
3449
+ ), b = !c && l && !d && !n, k = (g) => {
3438
3450
  g.stopPropagation(), p();
3439
3451
  };
3440
3452
  return /* @__PURE__ */ e.createElement(
@@ -3471,7 +3483,7 @@ const wt = "select-all", Ao = (t, a) => {
3471
3483
  {
3472
3484
  "data-testid": `${te}__clear-icon`,
3473
3485
  className: oe[`${te}__clear-icon`],
3474
- onClick: h
3486
+ onClick: k
3475
3487
  },
3476
3488
  /* @__PURE__ */ e.createElement(T, { kind: "primary", size: "small", source: Se })
3477
3489
  ),
@@ -3540,13 +3552,13 @@ const wt = "select-all", Ao = (t, a) => {
3540
3552
  [Re[`${Me}--outline`]]: c,
3541
3553
  [Re[`${Me}--${Wo(s)}`]]: !!s
3542
3554
  }
3543
- ), b = _ === "small" ? "small" : "medium", h = _ === "small" ? "sm" : "md", g = () => s ? c ? {
3555
+ ), b = _ === "small" ? "small" : "medium", k = _ === "small" ? "sm" : "md", g = () => s ? c ? {
3544
3556
  style: {
3545
3557
  backgroundColor: "transparent",
3546
3558
  color: s,
3547
3559
  borderColor: s
3548
3560
  }
3549
- } : { style: { backgroundColor: s } } : {}, v = () => {
3561
+ } : { style: { backgroundColor: s } } : {}, h = () => {
3550
3562
  if (s)
3551
3563
  return c ? s : Pa(s, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
3552
3564
  };
@@ -3556,14 +3568,14 @@ const wt = "select-all", Ao = (t, a) => {
3556
3568
  className: y
3557
3569
  }, i), g()), {
3558
3570
  as: "div",
3559
- size: h
3571
+ size: k
3560
3572
  }),
3561
3573
  d && /* @__PURE__ */ e.createElement(
3562
3574
  "div",
3563
3575
  {
3564
3576
  "data-testid": "lc-tag-left-node",
3565
3577
  className: Re[`${Me}__node`],
3566
- style: { color: v() }
3578
+ style: { color: h() }
3567
3579
  },
3568
3580
  d
3569
3581
  ),
@@ -3572,7 +3584,7 @@ const wt = "select-all", Ao = (t, a) => {
3572
3584
  "div",
3573
3585
  {
3574
3586
  "data-testid": "lc-tag-right-node",
3575
- style: { color: v() }
3587
+ style: { color: h() }
3576
3588
  },
3577
3589
  n
3578
3590
  ),
@@ -3592,7 +3604,7 @@ const wt = "select-all", Ao = (t, a) => {
3592
3604
  "data-dismiss-icon": !0,
3593
3605
  source: Se,
3594
3606
  size: b,
3595
- customColor: v()
3607
+ customColor: h()
3596
3608
  }
3597
3609
  )
3598
3610
  )
@@ -3634,22 +3646,22 @@ const wt = "select-all", Ao = (t, a) => {
3634
3646
  e.useEffect(() => {
3635
3647
  c && (i(""), b.current && (b.current.value = "", b.current.focus()));
3636
3648
  }, [o, c]);
3637
- const h = (k) => l === "single" && t && !a ? null : k != null && k.customElement ? /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, k.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, k.icon && /* @__PURE__ */ e.createElement(
3649
+ const k = (v) => l === "single" && t && !a ? null : v != null && v.customElement ? /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, v.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, v.icon && /* @__PURE__ */ e.createElement(
3638
3650
  T,
3639
3651
  {
3640
- source: k.icon,
3652
+ source: v.icon,
3641
3653
  className: le[`${ce}__item__icon`]
3642
3654
  }
3643
- ), k.avatarSrc && /* @__PURE__ */ e.createElement(
3655
+ ), v.avatarSrc && /* @__PURE__ */ e.createElement(
3644
3656
  "img",
3645
3657
  {
3646
- src: k.avatarSrc,
3658
+ src: v.avatarSrc,
3647
3659
  alt: "",
3648
3660
  className: le[`${ce}__item__avatar`]
3649
3661
  }
3650
- ), /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item__content`] }, k.name)), g = (k) => i(k.target.value), v = (k) => {
3662
+ ), /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item__content`] }, v.name)), g = (v) => i(v.target.value), h = (v) => {
3651
3663
  var w, C;
3652
- (w = m.current) != null && w.id && k.key === "Enter" && s((C = m.current) == null ? void 0 : C.id), l === "multi" && (k.key === "Backspace" || k.key === "Delete") && !p && o && (o == null ? void 0 : o.length) > 0 && n(o[o.length - 1].key);
3664
+ (w = m.current) != null && w.id && v.key === "Enter" && s((C = m.current) == null ? void 0 : C.id), l === "multi" && (v.key === "Backspace" || v.key === "Delete") && !p && o && (o == null ? void 0 : o.length) > 0 && n(o[o.length - 1].key);
3653
3665
  }, f = () => /* @__PURE__ */ e.createElement(
3654
3666
  "input",
3655
3667
  {
@@ -3660,7 +3672,7 @@ const wt = "select-all", Ao = (t, a) => {
3660
3672
  ),
3661
3673
  placeholder: _,
3662
3674
  onChange: g,
3663
- onKeyDown: v,
3675
+ onKeyDown: h,
3664
3676
  autoFocus: !0,
3665
3677
  value: p
3666
3678
  }
@@ -3681,20 +3693,20 @@ const wt = "select-all", Ao = (t, a) => {
3681
3693
  [le[`${ce}--single`]]: l === "single"
3682
3694
  })
3683
3695
  },
3684
- /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item-container`] }, l === "single" ? h(o[0]) : o.map((k) => /* @__PURE__ */ e.createElement(
3696
+ /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item-container`] }, l === "single" ? k(o[0]) : o.map((v) => /* @__PURE__ */ e.createElement(
3685
3697
  Er,
3686
3698
  {
3687
- key: k.name,
3699
+ key: v.name,
3688
3700
  className: u(
3689
3701
  le[`${ce}__tag`],
3690
3702
  le[`${ce}__tag--${d}`]
3691
3703
  ),
3692
3704
  dismissible: !r,
3693
3705
  onRemove: (w) => {
3694
- w.stopPropagation(), n(k.key);
3706
+ w.stopPropagation(), n(v.key);
3695
3707
  }
3696
3708
  },
3697
- h(k)
3709
+ k(v)
3698
3710
  ))),
3699
3711
  y && f()
3700
3712
  );
@@ -3708,7 +3720,7 @@ const wt = "select-all", Ao = (t, a) => {
3708
3720
  isOpen: c,
3709
3721
  onVisibilityChange: d
3710
3722
  }) => {
3711
- const n = ir(), [s, i] = e.useState(!1), [p, m] = e.useState(null), [y, b] = e.useState(400), h = e.useRef([]), g = e.useRef(null), { refs: v, floatingStyles: f, context: k, isPositioned: w } = Vt({
3723
+ const n = ir(), [s, i] = e.useState(!1), [p, m] = e.useState(null), [y, b] = e.useState(400), k = e.useRef([]), g = e.useRef(null), { refs: h, floatingStyles: f, context: v, isPositioned: w } = Vt({
3712
3724
  nodeId: n,
3713
3725
  open: c,
3714
3726
  strategy: _,
@@ -3730,13 +3742,13 @@ const wt = "select-all", Ao = (t, a) => {
3730
3742
  padding: Yo
3731
3743
  })
3732
3744
  ]
3733
- }), C = Jt(k, E({
3745
+ }), C = Jt(v, E({
3734
3746
  enabled: !t,
3735
3747
  keyboardHandlers: !1,
3736
3748
  toggle: !1
3737
- }, l)), $ = Xt(k, { role: "listbox" }), B = Qt(k, o), N = Kr(k, {
3749
+ }, l)), $ = Xt(v, { role: "listbox" }), B = Qt(v, o), N = Kr(v, {
3738
3750
  enabled: a.length > 0 && !t,
3739
- listRef: h,
3751
+ listRef: k,
3740
3752
  activeIndex: p,
3741
3753
  onNavigate: m,
3742
3754
  virtual: !0,
@@ -3752,14 +3764,14 @@ const wt = "select-all", Ao = (t, a) => {
3752
3764
  getReferenceProps: O,
3753
3765
  getFloatingProps: P,
3754
3766
  getItemProps: M,
3755
- setReference: v.setReference,
3767
+ setReference: h.setReference,
3756
3768
  floatingStyles: f,
3757
3769
  isPositioned: w,
3758
- context: k,
3770
+ context: v,
3759
3771
  nodeId: n,
3760
- setFloating: v.setFloating,
3772
+ setFloating: h.setFloating,
3761
3773
  activeIndex: p,
3762
- listElementsRef: h,
3774
+ listElementsRef: k,
3763
3775
  virtualItemRef: g,
3764
3776
  maxHeight: y,
3765
3777
  pointer: s,
@@ -3776,27 +3788,27 @@ const wt = "select-all", Ao = (t, a) => {
3776
3788
  const [c, d] = e.useState(
3777
3789
  () => (t == null ? void 0 : t.map(ar)) || []
3778
3790
  ), s = t !== void 0 ? (t == null ? void 0 : t.map(ar)) || [] : c, [i, p] = e.useState(""), m = e.useMemo(() => {
3779
- const v = r === "multi" && _;
3791
+ const h = r === "multi" && _;
3780
3792
  let f = a;
3781
- return i && (f = f.filter((k) => {
3782
- if (k.groupHeader)
3793
+ return i && (f = f.filter((v) => {
3794
+ if (v.groupHeader)
3783
3795
  return !1;
3784
3796
  const w = i.toLowerCase();
3785
- return k.name.toLowerCase().includes(w);
3786
- })), v && f.length > 1 && (f = [
3797
+ return v.name.toLowerCase().includes(w);
3798
+ })), h && f.length > 1 && (f = [
3787
3799
  {
3788
3800
  key: wt,
3789
3801
  name: _
3790
3802
  },
3791
3803
  ...f
3792
3804
  ]), f;
3793
- }, [i, a, r, _]), y = (v) => {
3794
- const f = m.find((k) => k.key === v);
3795
- !f || f.disabled || (r === "single" ? (l(!1), d(() => (o([f]), [v]))) : v === wt ? s.length === xa(m).length ? d(() => (o(null), [])) : d(() => {
3796
- const k = xa(m);
3797
- return o(k), k.map(({ key: w }) => w);
3798
- }) : d((k) => {
3799
- const w = k.includes(v) ? k.filter((C) => C !== v) : [...k, v];
3805
+ }, [i, a, r, _]), y = (h) => {
3806
+ const f = m.find((v) => v.key === h);
3807
+ !f || f.disabled || (r === "single" ? (l(!1), d(() => (o([f]), [h]))) : h === wt ? s.length === xa(m).length ? d(() => (o(null), [])) : d(() => {
3808
+ const v = xa(m);
3809
+ return o(v), v.map(({ key: w }) => w);
3810
+ }) : d((v) => {
3811
+ const w = v.includes(h) ? v.filter((C) => C !== h) : [...v, h];
3800
3812
  return o(a.filter(({ key: C }) => w.includes(C))), w;
3801
3813
  }));
3802
3814
  };
@@ -3805,8 +3817,8 @@ const wt = "select-all", Ao = (t, a) => {
3805
3817
  items: m,
3806
3818
  searchPhrase: i,
3807
3819
  handleSelect: y,
3808
- handleOnFilter: (v) => p(v),
3809
- handleItemRemove: (v) => y(v),
3820
+ handleOnFilter: (h) => p(h),
3821
+ handleItemRemove: (h) => y(h),
3810
3822
  handleClear: () => {
3811
3823
  l(!1), d([]), o(null), p("");
3812
3824
  }
@@ -3830,11 +3842,11 @@ const wt = "select-all", Ao = (t, a) => {
3830
3842
  type: m = "single",
3831
3843
  searchDisabled: y = !1,
3832
3844
  hideClearButton: b,
3833
- isVisible: h,
3845
+ isVisible: k,
3834
3846
  onOpen: g,
3835
- onClose: v,
3847
+ onClose: h,
3836
3848
  openedOnInit: f = !1,
3837
- clearSearchAfterSelection: k,
3849
+ clearSearchAfterSelection: v,
3838
3850
  onSelect: w,
3839
3851
  placement: C,
3840
3852
  floatingStrategy: $,
@@ -3869,8 +3881,8 @@ const wt = "select-all", Ao = (t, a) => {
3869
3881
  "useClickHookProps",
3870
3882
  "virtuosoProps"
3871
3883
  ]);
3872
- const [ue, Q] = e.useState(f), De = h !== void 0, me = De ? h : ue, Te = (_e, Aa) => {
3873
- _e ? g == null || g(Aa) : v == null || v(Aa), !De && Q(_e);
3884
+ const [ue, Q] = e.useState(f), De = k !== void 0, me = De ? k : ue, Te = (_e, Aa) => {
3885
+ _e ? g == null || g(Aa) : h == null || h(Aa), !De && Q(_e);
3874
3886
  }, {
3875
3887
  selectedKeys: Pe,
3876
3888
  items: Be,
@@ -3939,7 +3951,7 @@ const wt = "select-all", Ao = (t, a) => {
3939
3951
  selectedItems: c,
3940
3952
  type: m,
3941
3953
  size: d,
3942
- clearSearchAfterSelection: k,
3954
+ clearSearchAfterSelection: v,
3943
3955
  onItemRemove: I,
3944
3956
  onSelect: je,
3945
3957
  onFilter: Ze,
@@ -3989,8 +4001,8 @@ const wt = "select-all", Ao = (t, a) => {
3989
4001
  useClickHookProps: y,
3990
4002
  floatingStrategy: b
3991
4003
  }) => {
3992
- const [h, g] = e.useState(i), v = Qr(), f = ir(), k = s !== void 0, w = k ? s : h, C = typeof _ == "string", $ = typeof t == "function", B = (Pe, Be) => {
3993
- Pe ? r == null || r(Be) : a == null || a(Be), !k && g(Pe);
4004
+ const [k, g] = e.useState(i), h = Qr(), f = ir(), v = s !== void 0, w = v ? s : k, C = typeof _ == "string", $ = typeof t == "function", B = (Pe, Be) => {
4005
+ Pe ? r == null || r(Be) : a == null || a(Be), !v && g(Pe);
3994
4006
  }, { refs: N, context: O, floatingStyles: P } = Vt({
3995
4007
  nodeId: f,
3996
4008
  open: w,
@@ -4023,7 +4035,7 @@ const wt = "select-all", Ao = (t, a) => {
4023
4035
  }, De()),
4024
4036
  C ? /* @__PURE__ */ e.createElement(R, { as: "div" }, _) : _
4025
4037
  ))));
4026
- return v === null ? /* @__PURE__ */ e.createElement(Xr, null, Te) : Te;
4038
+ return h === null ? /* @__PURE__ */ e.createElement(Xr, null, Te) : Te;
4027
4039
  }, jo = [
4028
4040
  "normal",
4029
4041
  "error",
@@ -4077,7 +4089,7 @@ const ht = {
4077
4089
  ), y = 2 * Math.PI * ((p - i) / 2), b = {
4078
4090
  strokeDasharray: y.toFixed(3),
4079
4091
  strokeDashoffset: `${((100 - s) / 100 * y).toFixed(3)}px`
4080
- }, h = `${p / 2} ${p / 2} ${p} ${p}`;
4092
+ }, k = `${p / 2} ${p / 2} ${p} ${p}`;
4081
4093
  return /* @__PURE__ */ e.createElement(
4082
4094
  "div",
4083
4095
  E({
@@ -4085,7 +4097,7 @@ const ht = {
4085
4097
  ref: l,
4086
4098
  role: "progressbar"
4087
4099
  }, o),
4088
- /* @__PURE__ */ e.createElement("svg", { viewBox: h }, /* @__PURE__ */ e.createElement(
4100
+ /* @__PURE__ */ e.createElement("svg", { viewBox: k }, /* @__PURE__ */ e.createElement(
4089
4101
  "circle",
4090
4102
  {
4091
4103
  className: ht[`${vt}__bg-line--${t}`],
@@ -4190,12 +4202,12 @@ const ht = {
4190
4202
  t
4191
4203
  );
4192
4204
  e.useEffect(() => {
4193
- const h = () => i.current && i.current.offsetWidth <= _l ? m("small") : i.current && i.current.offsetWidth >= ol ? m("large") : m("medium"), g = ur(
4194
- h,
4205
+ const k = () => i.current && i.current.offsetWidth <= _l ? m("small") : i.current && i.current.offsetWidth >= ol ? m("large") : m("medium"), g = ur(
4206
+ k,
4195
4207
  ll
4196
4208
  );
4197
- return window.addEventListener("resize", g), h(), () => {
4198
- g.cancel(), window.removeEventListener("resize", h);
4209
+ return window.addEventListener("resize", g), k(), () => {
4210
+ g.cancel(), window.removeEventListener("resize", g);
4199
4211
  };
4200
4212
  }, []);
4201
4213
  const b = /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__footer`] }, a && /* @__PURE__ */ e.createElement(
@@ -4335,7 +4347,7 @@ const ht = {
4335
4347
  className: c,
4336
4348
  onChange: d
4337
4349
  }) => {
4338
- const [n, s] = e.useState(!0), [i, p] = e.useState(!1), m = e.useRef(null), y = !!l && !a && !r, b = t && !n && "true", h = u(
4350
+ const [n, s] = e.useState(!0), [i, p] = e.useState(!1), m = e.useRef(null), y = !!l && !a && !r, b = t && !n && "true", k = u(
4339
4351
  c,
4340
4352
  Ae[we],
4341
4353
  Ae[`${we}--${o}`],
@@ -4350,12 +4362,12 @@ const ht = {
4350
4362
  const g = ($) => {
4351
4363
  const B = $.currentTarget.value;
4352
4364
  d(B);
4353
- }, v = () => {
4365
+ }, h = () => {
4354
4366
  d("");
4355
4367
  }, f = () => {
4356
4368
  var $;
4357
4369
  ($ = m.current) == null || $.focus();
4358
- }, k = () => {
4370
+ }, v = () => {
4359
4371
  t && s(!1), p(!0);
4360
4372
  }, w = () => {
4361
4373
  t && !l && s(!0), p(!1);
@@ -4367,7 +4379,7 @@ const ht = {
4367
4379
  {
4368
4380
  "aria-expanded": b,
4369
4381
  role: "search",
4370
- className: h,
4382
+ className: k,
4371
4383
  onClick: f
4372
4384
  },
4373
4385
  /* @__PURE__ */ e.createElement(
@@ -4390,7 +4402,7 @@ const ht = {
4390
4402
  placeholder: _,
4391
4403
  onChange: g,
4392
4404
  onBlur: w,
4393
- onFocus: k,
4405
+ onFocus: v,
4394
4406
  onKeyDown: C,
4395
4407
  disabled: a
4396
4408
  }
@@ -4401,7 +4413,7 @@ const ht = {
4401
4413
  "aria-label": "Clear search",
4402
4414
  title: "Clear search",
4403
4415
  className: Ae[`${we}__clear-icon`],
4404
- onClick: v,
4416
+ onClick: h,
4405
4417
  icon: /* @__PURE__ */ e.createElement(T, { source: Se, kind: "primary" }),
4406
4418
  kind: "text",
4407
4419
  size: "compact"
@@ -4468,14 +4480,14 @@ const ht = {
4468
4480
  "innerRef",
4469
4481
  "ariaLabel"
4470
4482
  ]);
4471
- const y = o !== void 0, [b, h] = e.useState(
4483
+ const y = o !== void 0, [b, k] = e.useState(
4472
4484
  () => y ? o : a
4473
- ), g = y ? o : b, v = d === "loading", f = d === "locked", k = c === "large" ? "small" : "xsmall", w = g ? "on" : "off", C = r || v || f, $ = C ? "disabled" : "enabled", B = u(
4485
+ ), g = y ? o : b, h = d === "loading", f = d === "locked", v = c === "large" ? "small" : "xsmall", w = g ? "on" : "off", C = r || h || f, $ = C ? "disabled" : "enabled", B = u(
4474
4486
  ne[ae],
4475
4487
  ne[`${ae}--${c}`],
4476
4488
  t
4477
4489
  ), N = (O) => {
4478
- l == null || l(O, !g), y || (O.stopPropagation(), h((P) => !P));
4490
+ l == null || l(O, !g), y || (O.stopPropagation(), k((P) => !P));
4479
4491
  };
4480
4492
  return /* @__PURE__ */ e.createElement("span", { className: B }, /* @__PURE__ */ e.createElement(
4481
4493
  "input",
@@ -4510,7 +4522,7 @@ const ht = {
4510
4522
  ne[`${ae}__slider--${c}--${w}`]
4511
4523
  )
4512
4524
  },
4513
- v && /* @__PURE__ */ e.createElement(
4525
+ h && /* @__PURE__ */ e.createElement(
4514
4526
  Ba,
4515
4527
  {
4516
4528
  className: u(
@@ -4524,7 +4536,7 @@ const ht = {
4524
4536
  {
4525
4537
  className: ne[`${ae}__icon`],
4526
4538
  "data-testid": "lock-icon",
4527
- size: k,
4539
+ size: v,
4528
4540
  source: Lr,
4529
4541
  kind: "primary"
4530
4542
  }
@@ -4621,8 +4633,8 @@ const ht = {
4621
4633
  }
4622
4634
  }, y = (b) => {
4623
4635
  b.preventDefault();
4624
- const h = b.clipboardData.getData("text/plain");
4625
- document.execCommand("insertHTML", !1, Ha(h));
4636
+ const k = b.clipboardData.getData("text/plain");
4637
+ document.execCommand("insertHTML", !1, Ha(k));
4626
4638
  };
4627
4639
  return /* @__PURE__ */ e.createElement(
4628
4640
  "div",
@@ -4712,27 +4724,27 @@ const ht = {
4712
4724
  [Et[`${Ht}--error`]]: o
4713
4725
  },
4714
4726
  d
4715
- ), h = u(
4727
+ ), k = u(
4716
4728
  n,
4717
4729
  Et[`${Ht}__input`],
4718
4730
  Et[`${Ht}__input--${c}`]
4719
- ), [g, v] = e.useState(""), f = e.useRef(null), k = (P) => {
4720
- r([...a || [], P]), v("");
4731
+ ), [g, h] = e.useState(""), f = e.useRef(null), v = (P) => {
4732
+ r([...a || [], P]), h("");
4721
4733
  }, w = (P) => {
4722
4734
  const M = [...a || []];
4723
4735
  M.splice(P, 1), r(M);
4724
- }, C = (P) => v(P.target.value), $ = (P) => {
4736
+ }, C = (P) => h(P.target.value), $ = (P) => {
4725
4737
  if (El.includes(P.key)) {
4726
4738
  if (P.preventDefault(), g === "")
4727
4739
  return;
4728
- k(g);
4740
+ v(g);
4729
4741
  } else if ($l.includes(P.key)) {
4730
4742
  if (g !== "" || !(a != null && a.length))
4731
4743
  return;
4732
4744
  w(a.length - 1);
4733
4745
  }
4734
4746
  }, B = (P) => {
4735
- i && k(g), s == null || s(P);
4747
+ i && v(g), s == null || s(P);
4736
4748
  }, N = (P, M) => {
4737
4749
  const z = [...a || []];
4738
4750
  z.reduce(
@@ -4744,7 +4756,7 @@ const ht = {
4744
4756
  const z = P.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
4745
4757
  r([...a || [], ...z]);
4746
4758
  };
4747
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: b }, a == null ? void 0 : a.map((P, M) => /* @__PURE__ */ e.createElement(
4759
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { as: "div", className: b }, a == null ? void 0 : a.map((P, M) => /* @__PURE__ */ e.createElement(
4748
4760
  yl,
4749
4761
  {
4750
4762
  index: M,
@@ -4756,12 +4768,12 @@ const ht = {
4756
4768
  size: c
4757
4769
  },
4758
4770
  P
4759
- )), /* @__PURE__ */ e.createElement(R, { as: "div" }, /* @__PURE__ */ e.createElement(
4771
+ )), /* @__PURE__ */ e.createElement(
4760
4772
  "input",
4761
4773
  x(E({}, p), {
4762
4774
  id: t,
4763
4775
  ref: f,
4764
- className: h,
4776
+ className: k,
4765
4777
  placeholder: l,
4766
4778
  value: g,
4767
4779
  onChange: C,
@@ -4769,7 +4781,7 @@ const ht = {
4769
4781
  onPaste: O,
4770
4782
  onBlur: B
4771
4783
  })
4772
- ))), o && /* @__PURE__ */ e.createElement(Ia, null, o));
4784
+ )), o && /* @__PURE__ */ e.createElement(Ia, null, o));
4773
4785
  }, Cl = /^(?:[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, Nl = "name@company.com", xl = (t) => Cl.test(t), Hc = (d) => {
4774
4786
  var n = d, {
4775
4787
  id: t,
@@ -4942,14 +4954,14 @@ const ht = {
4942
4954
  }, y = (b) => {
4943
4955
  i(!0), n == null || n(b);
4944
4956
  };
4945
- return /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement(R, { as: "div" }, /* @__PURE__ */ e.createElement(
4957
+ return /* @__PURE__ */ e.createElement(R, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
4946
4958
  "textarea",
4947
4959
  x(E({}, r), {
4948
4960
  ref: _,
4949
4961
  onFocus: y,
4950
4962
  onBlur: m
4951
4963
  })
4952
- )));
4964
+ ));
4953
4965
  }
4954
4966
  ), ka = {
4955
4967
  "file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
@@ -5090,10 +5102,10 @@ const ht = {
5090
5102
  onCloseButtonClick: i,
5091
5103
  onRetryButtonClick: p
5092
5104
  }) => {
5093
- const [m, y] = e.useState(o || !1), b = c === "error", h = c === "success", g = u(G[se], a, {
5105
+ const [m, y] = e.useState(o || !1), b = c === "error", k = c === "success", g = u(G[se], a, {
5094
5106
  [G[`${se}--error`]]: b,
5095
- [G[`${se}--success`]]: h
5096
- }), v = !(b && (p || i)), f = () => y(!m);
5107
+ [G[`${se}--success`]]: k
5108
+ }), h = !(b && (p || i)), f = () => y(!m);
5097
5109
  return s === "single" ? /* @__PURE__ */ e.createElement("div", { className: g }, /* @__PURE__ */ e.createElement("div", { className: G[`${se}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}`] }, /* @__PURE__ */ e.createElement(
5098
5110
  Rl,
5099
5111
  {
@@ -5116,7 +5128,7 @@ const ht = {
5116
5128
  className: G[`${se}__wrapper`],
5117
5129
  onClick: f
5118
5130
  },
5119
- /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}`] }, /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}__icon`] }, Ll(c, r)), /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}__title`] }, /* @__PURE__ */ e.createElement(R, { size: "sm", as: "div" }, b ? l : _)), v && /* @__PURE__ */ e.createElement(
5131
+ /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}`] }, /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}__icon`] }, Ll(c, r)), /* @__PURE__ */ e.createElement("div", { className: G[`${Ge}__title`] }, /* @__PURE__ */ e.createElement(R, { size: "sm", as: "div" }, b ? l : _)), h && /* @__PURE__ */ e.createElement(
5120
5132
  "button",
5121
5133
  {
5122
5134
  className: G[`${Ge}__collapse-button`],