@livechat/design-system-react-components 1.16.8 → 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,12 +2797,12 @@ 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";
2800
+ ), f = r ? "var(--content-disabled)" : "var(--content-default)", v = m ? Fr : Rr, w = _ && _.place === "left", C = _ && b !== "password" && _.place === "right";
2801
2801
  return /* @__PURE__ */ e.createElement(
2802
2802
  R,
2803
2803
  {
2804
2804
  as: "div",
2805
- className: v,
2805
+ className: h,
2806
2806
  "aria-disabled": r,
2807
2807
  "tab-index": "0"
2808
2808
  },
@@ -2812,7 +2812,7 @@ const bc = (t) => {
2812
2812
  x(E({}, c), {
2813
2813
  ref: d,
2814
2814
  onFocus: ($) => {
2815
- p(!0), h == null || h($);
2815
+ p(!0), k == null || k($);
2816
2816
  },
2817
2817
  onBlur: ($) => {
2818
2818
  p(!1), g == null || g($);
@@ -2828,7 +2828,7 @@ const bc = (t) => {
2828
2828
  disabled: r,
2829
2829
  kind: "text",
2830
2830
  size: "compact",
2831
- icon: /* @__PURE__ */ e.createElement(T, { customColor: f, source: k }),
2831
+ icon: /* @__PURE__ */ e.createElement(T, { customColor: f, source: v }),
2832
2832
  onClick: () => y(($) => !$),
2833
2833
  className: Ce[`${Ne}__visibility-button`]
2834
2834
  }
@@ -3100,12 +3100,12 @@ const bc = (t) => {
3100
3100
  [rt[`${_t}--disabled`]]: l
3101
3101
  },
3102
3102
  t
3103
- ), 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 = ($) => {
3104
3104
  const B = parseInt(r, 10) + $;
3105
- return b(h(B));
3106
- }, v = ($) => {
3105
+ return b(k(B));
3106
+ }, h = ($) => {
3107
3107
  $.key === re.arrowDown && ($.preventDefault(), g(-1)), $.key === re.arrowUp && ($.preventDefault(), g(1));
3108
- }, f = ($, B) => B !== void 0 && parseInt($, 10) === B, k = ($) => {
3108
+ }, f = ($, B) => B !== void 0 && parseInt($, 10) === B, v = ($) => {
3109
3109
  $.preventDefault(), $.stopPropagation();
3110
3110
  const B = $.currentTarget.value.replace(
3111
3111
  /((?!([-]|([-]?\d+))).)/,
@@ -3114,7 +3114,7 @@ const bc = (t) => {
3114
3114
  if (B === "" || B === "-")
3115
3115
  return b(B);
3116
3116
  const N = parseInt(B, 10);
3117
- return b(h(N));
3117
+ return b(k(N));
3118
3118
  }, w = () => {
3119
3119
  var $;
3120
3120
  return ($ = m.current) == null || $.focus(), g(1);
@@ -3130,8 +3130,8 @@ const bc = (t) => {
3130
3130
  }, s), {
3131
3131
  value: r,
3132
3132
  disabled: l,
3133
- onChange: k,
3134
- onKeyDown: v,
3133
+ onChange: v,
3134
+ onKeyDown: h,
3135
3135
  min: o,
3136
3136
  max: _
3137
3137
  })
@@ -3318,18 +3318,18 @@ const wt = "select-all", Ao = (t, a) => {
3318
3318
  getFloatingProps: m,
3319
3319
  getItemProps: y,
3320
3320
  emptyStateText: b = "No results found",
3321
- pickerType: h = "single",
3321
+ pickerType: k = "single",
3322
3322
  listClassName: g,
3323
- virtuosoProps: v
3323
+ virtuosoProps: h
3324
3324
  }) => {
3325
- 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;
3326
3326
  e.useLayoutEffect(() => {
3327
3327
  var N;
3328
3328
  l && !c && d !== null && ((N = f.current) == null || N.focus({ preventScroll: !0 }));
3329
3329
  }, [l, d, c, f]);
3330
3330
  const $ = e.useCallback(
3331
3331
  (N) => {
3332
- N !== k && (N < va ? w(N + (C - 1) * Io) : w(va));
3332
+ N !== v && (N < va ? w(N + (C - 1) * Io) : w(va));
3333
3333
  },
3334
3334
  [C]
3335
3335
  );
@@ -3365,7 +3365,7 @@ const wt = "select-all", Ao = (t, a) => {
3365
3365
  "div",
3366
3366
  E({
3367
3367
  tabIndex: 0,
3368
- "aria-multiselectable": h === "multi",
3368
+ "aria-multiselectable": k === "multi",
3369
3369
  className: ot["listbox-wrapper"],
3370
3370
  ref: f
3371
3371
  }, m({
@@ -3383,11 +3383,11 @@ const wt = "select-all", Ao = (t, a) => {
3383
3383
  e_,
3384
3384
  x(E({
3385
3385
  totalListHeightChanged: $,
3386
- style: { height: `${k}px`, maxHeight: _ },
3386
+ style: { height: `${v}px`, maxHeight: _ },
3387
3387
  totalCount: o.length,
3388
3388
  data: o,
3389
3389
  increaseViewportBy: 200
3390
- }, v), {
3390
+ }, h), {
3391
3391
  itemContent: (N, O) => /* @__PURE__ */ e.createElement(
3392
3392
  Fo,
3393
3393
  {
@@ -3446,7 +3446,7 @@ const wt = "select-all", Ao = (t, a) => {
3446
3446
  d && oe[`${te}--disabled`],
3447
3447
  s && oe[`${te}--focused`],
3448
3448
  i && oe[`${te}--error`]
3449
- ), b = !c && l && !d && !n, h = (g) => {
3449
+ ), b = !c && l && !d && !n, k = (g) => {
3450
3450
  g.stopPropagation(), p();
3451
3451
  };
3452
3452
  return /* @__PURE__ */ e.createElement(
@@ -3483,7 +3483,7 @@ const wt = "select-all", Ao = (t, a) => {
3483
3483
  {
3484
3484
  "data-testid": `${te}__clear-icon`,
3485
3485
  className: oe[`${te}__clear-icon`],
3486
- onClick: h
3486
+ onClick: k
3487
3487
  },
3488
3488
  /* @__PURE__ */ e.createElement(T, { kind: "primary", size: "small", source: Se })
3489
3489
  ),
@@ -3552,13 +3552,13 @@ const wt = "select-all", Ao = (t, a) => {
3552
3552
  [Re[`${Me}--outline`]]: c,
3553
3553
  [Re[`${Me}--${Wo(s)}`]]: !!s
3554
3554
  }
3555
- ), b = _ === "small" ? "small" : "medium", h = _ === "small" ? "sm" : "md", g = () => s ? c ? {
3555
+ ), b = _ === "small" ? "small" : "medium", k = _ === "small" ? "sm" : "md", g = () => s ? c ? {
3556
3556
  style: {
3557
3557
  backgroundColor: "transparent",
3558
3558
  color: s,
3559
3559
  borderColor: s
3560
3560
  }
3561
- } : { style: { backgroundColor: s } } : {}, v = () => {
3561
+ } : { style: { backgroundColor: s } } : {}, h = () => {
3562
3562
  if (s)
3563
3563
  return c ? s : Pa(s, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
3564
3564
  };
@@ -3568,14 +3568,14 @@ const wt = "select-all", Ao = (t, a) => {
3568
3568
  className: y
3569
3569
  }, i), g()), {
3570
3570
  as: "div",
3571
- size: h
3571
+ size: k
3572
3572
  }),
3573
3573
  d && /* @__PURE__ */ e.createElement(
3574
3574
  "div",
3575
3575
  {
3576
3576
  "data-testid": "lc-tag-left-node",
3577
3577
  className: Re[`${Me}__node`],
3578
- style: { color: v() }
3578
+ style: { color: h() }
3579
3579
  },
3580
3580
  d
3581
3581
  ),
@@ -3584,7 +3584,7 @@ const wt = "select-all", Ao = (t, a) => {
3584
3584
  "div",
3585
3585
  {
3586
3586
  "data-testid": "lc-tag-right-node",
3587
- style: { color: v() }
3587
+ style: { color: h() }
3588
3588
  },
3589
3589
  n
3590
3590
  ),
@@ -3604,7 +3604,7 @@ const wt = "select-all", Ao = (t, a) => {
3604
3604
  "data-dismiss-icon": !0,
3605
3605
  source: Se,
3606
3606
  size: b,
3607
- customColor: v()
3607
+ customColor: h()
3608
3608
  }
3609
3609
  )
3610
3610
  )
@@ -3646,22 +3646,22 @@ const wt = "select-all", Ao = (t, a) => {
3646
3646
  e.useEffect(() => {
3647
3647
  c && (i(""), b.current && (b.current.value = "", b.current.focus()));
3648
3648
  }, [o, c]);
3649
- 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(
3650
3650
  T,
3651
3651
  {
3652
- source: k.icon,
3652
+ source: v.icon,
3653
3653
  className: le[`${ce}__item__icon`]
3654
3654
  }
3655
- ), k.avatarSrc && /* @__PURE__ */ e.createElement(
3655
+ ), v.avatarSrc && /* @__PURE__ */ e.createElement(
3656
3656
  "img",
3657
3657
  {
3658
- src: k.avatarSrc,
3658
+ src: v.avatarSrc,
3659
3659
  alt: "",
3660
3660
  className: le[`${ce}__item__avatar`]
3661
3661
  }
3662
- ), /* @__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) => {
3663
3663
  var w, C;
3664
- (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);
3665
3665
  }, f = () => /* @__PURE__ */ e.createElement(
3666
3666
  "input",
3667
3667
  {
@@ -3672,7 +3672,7 @@ const wt = "select-all", Ao = (t, a) => {
3672
3672
  ),
3673
3673
  placeholder: _,
3674
3674
  onChange: g,
3675
- onKeyDown: v,
3675
+ onKeyDown: h,
3676
3676
  autoFocus: !0,
3677
3677
  value: p
3678
3678
  }
@@ -3693,20 +3693,20 @@ const wt = "select-all", Ao = (t, a) => {
3693
3693
  [le[`${ce}--single`]]: l === "single"
3694
3694
  })
3695
3695
  },
3696
- /* @__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(
3697
3697
  Er,
3698
3698
  {
3699
- key: k.name,
3699
+ key: v.name,
3700
3700
  className: u(
3701
3701
  le[`${ce}__tag`],
3702
3702
  le[`${ce}__tag--${d}`]
3703
3703
  ),
3704
3704
  dismissible: !r,
3705
3705
  onRemove: (w) => {
3706
- w.stopPropagation(), n(k.key);
3706
+ w.stopPropagation(), n(v.key);
3707
3707
  }
3708
3708
  },
3709
- h(k)
3709
+ k(v)
3710
3710
  ))),
3711
3711
  y && f()
3712
3712
  );
@@ -3720,7 +3720,7 @@ const wt = "select-all", Ao = (t, a) => {
3720
3720
  isOpen: c,
3721
3721
  onVisibilityChange: d
3722
3722
  }) => {
3723
- 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({
3724
3724
  nodeId: n,
3725
3725
  open: c,
3726
3726
  strategy: _,
@@ -3742,13 +3742,13 @@ const wt = "select-all", Ao = (t, a) => {
3742
3742
  padding: Yo
3743
3743
  })
3744
3744
  ]
3745
- }), C = Jt(k, E({
3745
+ }), C = Jt(v, E({
3746
3746
  enabled: !t,
3747
3747
  keyboardHandlers: !1,
3748
3748
  toggle: !1
3749
- }, 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, {
3750
3750
  enabled: a.length > 0 && !t,
3751
- listRef: h,
3751
+ listRef: k,
3752
3752
  activeIndex: p,
3753
3753
  onNavigate: m,
3754
3754
  virtual: !0,
@@ -3764,14 +3764,14 @@ const wt = "select-all", Ao = (t, a) => {
3764
3764
  getReferenceProps: O,
3765
3765
  getFloatingProps: P,
3766
3766
  getItemProps: M,
3767
- setReference: v.setReference,
3767
+ setReference: h.setReference,
3768
3768
  floatingStyles: f,
3769
3769
  isPositioned: w,
3770
- context: k,
3770
+ context: v,
3771
3771
  nodeId: n,
3772
- setFloating: v.setFloating,
3772
+ setFloating: h.setFloating,
3773
3773
  activeIndex: p,
3774
- listElementsRef: h,
3774
+ listElementsRef: k,
3775
3775
  virtualItemRef: g,
3776
3776
  maxHeight: y,
3777
3777
  pointer: s,
@@ -3788,27 +3788,27 @@ const wt = "select-all", Ao = (t, a) => {
3788
3788
  const [c, d] = e.useState(
3789
3789
  () => (t == null ? void 0 : t.map(ar)) || []
3790
3790
  ), s = t !== void 0 ? (t == null ? void 0 : t.map(ar)) || [] : c, [i, p] = e.useState(""), m = e.useMemo(() => {
3791
- const v = r === "multi" && _;
3791
+ const h = r === "multi" && _;
3792
3792
  let f = a;
3793
- return i && (f = f.filter((k) => {
3794
- if (k.groupHeader)
3793
+ return i && (f = f.filter((v) => {
3794
+ if (v.groupHeader)
3795
3795
  return !1;
3796
3796
  const w = i.toLowerCase();
3797
- return k.name.toLowerCase().includes(w);
3798
- })), v && f.length > 1 && (f = [
3797
+ return v.name.toLowerCase().includes(w);
3798
+ })), h && f.length > 1 && (f = [
3799
3799
  {
3800
3800
  key: wt,
3801
3801
  name: _
3802
3802
  },
3803
3803
  ...f
3804
3804
  ]), f;
3805
- }, [i, a, r, _]), y = (v) => {
3806
- const f = m.find((k) => k.key === v);
3807
- !f || f.disabled || (r === "single" ? (l(!1), d(() => (o([f]), [v]))) : v === wt ? s.length === xa(m).length ? d(() => (o(null), [])) : d(() => {
3808
- const k = xa(m);
3809
- return o(k), k.map(({ key: w }) => w);
3810
- }) : d((k) => {
3811
- 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];
3812
3812
  return o(a.filter(({ key: C }) => w.includes(C))), w;
3813
3813
  }));
3814
3814
  };
@@ -3817,8 +3817,8 @@ const wt = "select-all", Ao = (t, a) => {
3817
3817
  items: m,
3818
3818
  searchPhrase: i,
3819
3819
  handleSelect: y,
3820
- handleOnFilter: (v) => p(v),
3821
- handleItemRemove: (v) => y(v),
3820
+ handleOnFilter: (h) => p(h),
3821
+ handleItemRemove: (h) => y(h),
3822
3822
  handleClear: () => {
3823
3823
  l(!1), d([]), o(null), p("");
3824
3824
  }
@@ -3842,11 +3842,11 @@ const wt = "select-all", Ao = (t, a) => {
3842
3842
  type: m = "single",
3843
3843
  searchDisabled: y = !1,
3844
3844
  hideClearButton: b,
3845
- isVisible: h,
3845
+ isVisible: k,
3846
3846
  onOpen: g,
3847
- onClose: v,
3847
+ onClose: h,
3848
3848
  openedOnInit: f = !1,
3849
- clearSearchAfterSelection: k,
3849
+ clearSearchAfterSelection: v,
3850
3850
  onSelect: w,
3851
3851
  placement: C,
3852
3852
  floatingStrategy: $,
@@ -3881,8 +3881,8 @@ const wt = "select-all", Ao = (t, a) => {
3881
3881
  "useClickHookProps",
3882
3882
  "virtuosoProps"
3883
3883
  ]);
3884
- const [ue, Q] = e.useState(f), De = h !== void 0, me = De ? h : ue, Te = (_e, Aa) => {
3885
- _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);
3886
3886
  }, {
3887
3887
  selectedKeys: Pe,
3888
3888
  items: Be,
@@ -3951,7 +3951,7 @@ const wt = "select-all", Ao = (t, a) => {
3951
3951
  selectedItems: c,
3952
3952
  type: m,
3953
3953
  size: d,
3954
- clearSearchAfterSelection: k,
3954
+ clearSearchAfterSelection: v,
3955
3955
  onItemRemove: I,
3956
3956
  onSelect: je,
3957
3957
  onFilter: Ze,
@@ -4001,8 +4001,8 @@ const wt = "select-all", Ao = (t, a) => {
4001
4001
  useClickHookProps: y,
4002
4002
  floatingStrategy: b
4003
4003
  }) => {
4004
- 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) => {
4005
- 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);
4006
4006
  }, { refs: N, context: O, floatingStyles: P } = Vt({
4007
4007
  nodeId: f,
4008
4008
  open: w,
@@ -4035,7 +4035,7 @@ const wt = "select-all", Ao = (t, a) => {
4035
4035
  }, De()),
4036
4036
  C ? /* @__PURE__ */ e.createElement(R, { as: "div" }, _) : _
4037
4037
  ))));
4038
- return v === null ? /* @__PURE__ */ e.createElement(Xr, null, Te) : Te;
4038
+ return h === null ? /* @__PURE__ */ e.createElement(Xr, null, Te) : Te;
4039
4039
  }, jo = [
4040
4040
  "normal",
4041
4041
  "error",
@@ -4089,7 +4089,7 @@ const ht = {
4089
4089
  ), y = 2 * Math.PI * ((p - i) / 2), b = {
4090
4090
  strokeDasharray: y.toFixed(3),
4091
4091
  strokeDashoffset: `${((100 - s) / 100 * y).toFixed(3)}px`
4092
- }, h = `${p / 2} ${p / 2} ${p} ${p}`;
4092
+ }, k = `${p / 2} ${p / 2} ${p} ${p}`;
4093
4093
  return /* @__PURE__ */ e.createElement(
4094
4094
  "div",
4095
4095
  E({
@@ -4097,7 +4097,7 @@ const ht = {
4097
4097
  ref: l,
4098
4098
  role: "progressbar"
4099
4099
  }, o),
4100
- /* @__PURE__ */ e.createElement("svg", { viewBox: h }, /* @__PURE__ */ e.createElement(
4100
+ /* @__PURE__ */ e.createElement("svg", { viewBox: k }, /* @__PURE__ */ e.createElement(
4101
4101
  "circle",
4102
4102
  {
4103
4103
  className: ht[`${vt}__bg-line--${t}`],
@@ -4202,12 +4202,12 @@ const ht = {
4202
4202
  t
4203
4203
  );
4204
4204
  e.useEffect(() => {
4205
- const h = () => i.current && i.current.offsetWidth <= _l ? m("small") : i.current && i.current.offsetWidth >= ol ? m("large") : m("medium"), g = ur(
4206
- 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,
4207
4207
  ll
4208
4208
  );
4209
- return window.addEventListener("resize", g), h(), () => {
4210
- g.cancel(), window.removeEventListener("resize", h);
4209
+ return window.addEventListener("resize", g), k(), () => {
4210
+ g.cancel(), window.removeEventListener("resize", g);
4211
4211
  };
4212
4212
  }, []);
4213
4213
  const b = /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__footer`] }, a && /* @__PURE__ */ e.createElement(
@@ -4347,7 +4347,7 @@ const ht = {
4347
4347
  className: c,
4348
4348
  onChange: d
4349
4349
  }) => {
4350
- 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(
4351
4351
  c,
4352
4352
  Ae[we],
4353
4353
  Ae[`${we}--${o}`],
@@ -4362,12 +4362,12 @@ const ht = {
4362
4362
  const g = ($) => {
4363
4363
  const B = $.currentTarget.value;
4364
4364
  d(B);
4365
- }, v = () => {
4365
+ }, h = () => {
4366
4366
  d("");
4367
4367
  }, f = () => {
4368
4368
  var $;
4369
4369
  ($ = m.current) == null || $.focus();
4370
- }, k = () => {
4370
+ }, v = () => {
4371
4371
  t && s(!1), p(!0);
4372
4372
  }, w = () => {
4373
4373
  t && !l && s(!0), p(!1);
@@ -4379,7 +4379,7 @@ const ht = {
4379
4379
  {
4380
4380
  "aria-expanded": b,
4381
4381
  role: "search",
4382
- className: h,
4382
+ className: k,
4383
4383
  onClick: f
4384
4384
  },
4385
4385
  /* @__PURE__ */ e.createElement(
@@ -4402,7 +4402,7 @@ const ht = {
4402
4402
  placeholder: _,
4403
4403
  onChange: g,
4404
4404
  onBlur: w,
4405
- onFocus: k,
4405
+ onFocus: v,
4406
4406
  onKeyDown: C,
4407
4407
  disabled: a
4408
4408
  }
@@ -4413,7 +4413,7 @@ const ht = {
4413
4413
  "aria-label": "Clear search",
4414
4414
  title: "Clear search",
4415
4415
  className: Ae[`${we}__clear-icon`],
4416
- onClick: v,
4416
+ onClick: h,
4417
4417
  icon: /* @__PURE__ */ e.createElement(T, { source: Se, kind: "primary" }),
4418
4418
  kind: "text",
4419
4419
  size: "compact"
@@ -4480,14 +4480,14 @@ const ht = {
4480
4480
  "innerRef",
4481
4481
  "ariaLabel"
4482
4482
  ]);
4483
- const y = o !== void 0, [b, h] = e.useState(
4483
+ const y = o !== void 0, [b, k] = e.useState(
4484
4484
  () => y ? o : a
4485
- ), 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(
4486
4486
  ne[ae],
4487
4487
  ne[`${ae}--${c}`],
4488
4488
  t
4489
4489
  ), N = (O) => {
4490
- l == null || l(O, !g), y || (O.stopPropagation(), h((P) => !P));
4490
+ l == null || l(O, !g), y || (O.stopPropagation(), k((P) => !P));
4491
4491
  };
4492
4492
  return /* @__PURE__ */ e.createElement("span", { className: B }, /* @__PURE__ */ e.createElement(
4493
4493
  "input",
@@ -4522,7 +4522,7 @@ const ht = {
4522
4522
  ne[`${ae}__slider--${c}--${w}`]
4523
4523
  )
4524
4524
  },
4525
- v && /* @__PURE__ */ e.createElement(
4525
+ h && /* @__PURE__ */ e.createElement(
4526
4526
  Ba,
4527
4527
  {
4528
4528
  className: u(
@@ -4536,7 +4536,7 @@ const ht = {
4536
4536
  {
4537
4537
  className: ne[`${ae}__icon`],
4538
4538
  "data-testid": "lock-icon",
4539
- size: k,
4539
+ size: v,
4540
4540
  source: Lr,
4541
4541
  kind: "primary"
4542
4542
  }
@@ -4633,8 +4633,8 @@ const ht = {
4633
4633
  }
4634
4634
  }, y = (b) => {
4635
4635
  b.preventDefault();
4636
- const h = b.clipboardData.getData("text/plain");
4637
- document.execCommand("insertHTML", !1, Ha(h));
4636
+ const k = b.clipboardData.getData("text/plain");
4637
+ document.execCommand("insertHTML", !1, Ha(k));
4638
4638
  };
4639
4639
  return /* @__PURE__ */ e.createElement(
4640
4640
  "div",
@@ -4724,27 +4724,27 @@ const ht = {
4724
4724
  [Et[`${Ht}--error`]]: o
4725
4725
  },
4726
4726
  d
4727
- ), h = u(
4727
+ ), k = u(
4728
4728
  n,
4729
4729
  Et[`${Ht}__input`],
4730
4730
  Et[`${Ht}__input--${c}`]
4731
- ), [g, v] = e.useState(""), f = e.useRef(null), k = (P) => {
4732
- r([...a || [], P]), v("");
4731
+ ), [g, h] = e.useState(""), f = e.useRef(null), v = (P) => {
4732
+ r([...a || [], P]), h("");
4733
4733
  }, w = (P) => {
4734
4734
  const M = [...a || []];
4735
4735
  M.splice(P, 1), r(M);
4736
- }, C = (P) => v(P.target.value), $ = (P) => {
4736
+ }, C = (P) => h(P.target.value), $ = (P) => {
4737
4737
  if (El.includes(P.key)) {
4738
4738
  if (P.preventDefault(), g === "")
4739
4739
  return;
4740
- k(g);
4740
+ v(g);
4741
4741
  } else if ($l.includes(P.key)) {
4742
4742
  if (g !== "" || !(a != null && a.length))
4743
4743
  return;
4744
4744
  w(a.length - 1);
4745
4745
  }
4746
4746
  }, B = (P) => {
4747
- i && k(g), s == null || s(P);
4747
+ i && v(g), s == null || s(P);
4748
4748
  }, N = (P, M) => {
4749
4749
  const z = [...a || []];
4750
4750
  z.reduce(
@@ -4773,7 +4773,7 @@ const ht = {
4773
4773
  x(E({}, p), {
4774
4774
  id: t,
4775
4775
  ref: f,
4776
- className: h,
4776
+ className: k,
4777
4777
  placeholder: l,
4778
4778
  value: g,
4779
4779
  onChange: C,
@@ -5102,10 +5102,10 @@ const ht = {
5102
5102
  onCloseButtonClick: i,
5103
5103
  onRetryButtonClick: p
5104
5104
  }) => {
5105
- 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, {
5106
5106
  [G[`${se}--error`]]: b,
5107
- [G[`${se}--success`]]: h
5108
- }), v = !(b && (p || i)), f = () => y(!m);
5107
+ [G[`${se}--success`]]: k
5108
+ }), h = !(b && (p || i)), f = () => y(!m);
5109
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(
5110
5110
  Rl,
5111
5111
  {
@@ -5128,7 +5128,7 @@ const ht = {
5128
5128
  className: G[`${se}__wrapper`],
5129
5129
  onClick: f
5130
5130
  },
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 : _)), 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(
5132
5132
  "button",
5133
5133
  {
5134
5134
  className: G[`${Ge}__collapse-button`],