skillgrid 0.0.34-dev-40511-42085-40506-alert-placeholder-modal-fix.1208465 → 0.0.34-dev-40511-42085-40506-alert-placeholder-modal-fix.1210374

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Je from "react";
2
2
  import be, { forwardRef as U, Fragment as Ht, useState as gt, useEffect as ut, useRef as Vt, useCallback as jt, useMemo as Qe, createContext as tr, useContext as er, useLayoutEffect as zr, useImperativeHandle as Br, useId as me } from "react";
3
- import { clsx as S } from "clsx";
3
+ import { clsx as w } from "clsx";
4
4
  import { useFloating as Ar, useTransitionStyles as Or, useDismiss as Pr, useRole as Dr, useInteractions as Fr, useMergeRefs as Wr, FloatingPortal as Hr, FloatingOverlay as Vr, FloatingFocusManager as qr } from "@floating-ui/react";
5
5
  import Zr from "rc-tooltip";
6
6
  import './index.css';function Xr(t) {
@@ -20,13 +20,13 @@ var Me;
20
20
  function Yr() {
21
21
  if (Me) return Dt;
22
22
  Me = 1;
23
- var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
24
24
  function l(c, u, f) {
25
- var d, g = {}, m = null, h = null;
26
- f !== void 0 && (m = "" + f), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (h = u.ref);
27
- for (d in u) a.call(u, d) && !s.hasOwnProperty(d) && (g[d] = u[d]);
28
- if (c && c.defaultProps) for (d in u = c.defaultProps, u) g[d] === void 0 && (g[d] = u[d]);
29
- return { $$typeof: r, type: c, key: m, ref: h, props: g, _owner: i.current };
25
+ var d, h = {}, b = null, m = null;
26
+ f !== void 0 && (b = "" + f), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (m = u.ref);
27
+ for (d in u) s.call(u, d) && !a.hasOwnProperty(d) && (h[d] = u[d]);
28
+ if (c && c.defaultProps) for (d in u = c.defaultProps, u) h[d] === void 0 && (h[d] = u[d]);
29
+ return { $$typeof: r, type: c, key: b, ref: m, props: h, _owner: i.current };
30
30
  }
31
31
  return Dt.Fragment = n, Dt.jsx = l, Dt.jsxs = l, Dt;
32
32
  }
@@ -43,11 +43,11 @@ var Ft = {};
43
43
  var ze;
44
44
  function Gr() {
45
45
  return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
46
- var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
47
- function b(e) {
46
+ var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
47
+ function g(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
50
- var _ = x && e[x] || e[C];
50
+ var _ = x && e[x] || e[S];
51
51
  return typeof _ == "function" ? _ : null;
52
52
  }
53
53
  var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -55,10 +55,10 @@ function Gr() {
55
55
  {
56
56
  for (var _ = arguments.length, v = new Array(_ > 1 ? _ - 1 : 0), j = 1; j < _; j++)
57
57
  v[j - 1] = arguments[j];
58
- w("error", e, v);
58
+ C("error", e, v);
59
59
  }
60
60
  }
61
- function w(e, _, v) {
61
+ function C(e, _, v) {
62
62
  {
63
63
  var j = y.ReactDebugCurrentFrame, A = j.getStackAddendum();
64
64
  A !== "" && (_ += "%s", v = v.concat([A]));
@@ -71,7 +71,7 @@ function Gr() {
71
71
  var k = !1, T = !1, $ = !1, E = !1, z = !1, B;
72
72
  B = Symbol.for("react.module.reference");
73
73
  function F(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || z || e === i || e === f || e === d || E || e === h || k || T || $ || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === l || e.$$typeof === c || e.$$typeof === u || // This needs to include all possible module reference object
74
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === a || z || e === i || e === f || e === d || E || e === m || k || T || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === l || e.$$typeof === c || e.$$typeof === u || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
@@ -95,11 +95,11 @@ function Gr() {
95
95
  if (typeof e == "string")
96
96
  return e;
97
97
  switch (e) {
98
- case a:
98
+ case s:
99
99
  return "Fragment";
100
100
  case n:
101
101
  return "Portal";
102
- case s:
102
+ case a:
103
103
  return "Profiler";
104
104
  case i:
105
105
  return "StrictMode";
@@ -118,10 +118,10 @@ function Gr() {
118
118
  return D(v._context) + ".Provider";
119
119
  case u:
120
120
  return q(e, e.render, "ForwardRef");
121
- case g:
121
+ case h:
122
122
  var j = e.displayName || null;
123
123
  return j !== null ? j : L(e.type) || "Memo";
124
- case m: {
124
+ case b: {
125
125
  var A = e, P = A._payload, N = A._init;
126
126
  try {
127
127
  return L(N(P));
@@ -308,9 +308,9 @@ function Gr() {
308
308
  switch (e.$$typeof) {
309
309
  case u:
310
310
  return re(e.render);
311
- case g:
311
+ case h:
312
312
  return Q(e.type, _, v);
313
- case m: {
313
+ case b: {
314
314
  var j = e, A = j._payload, P = j._init;
315
315
  try {
316
316
  return Q(P(A), _, v);
@@ -531,7 +531,7 @@ Check the top-level render call using <` + v + ">.");
531
531
  else if (ie(e))
532
532
  e._store && (e._store.validated = !0);
533
533
  else if (e) {
534
- var A = b(e);
534
+ var A = g(e);
535
535
  if (typeof A == "function" && A !== e.entries)
536
536
  for (var P = A.call(e), N; !(N = P.next()).done; )
537
537
  ie(N.value) && Ee(N.value, _);
@@ -548,7 +548,7 @@ Check the top-level render call using <` + v + ">.");
548
548
  v = _.propTypes;
549
549
  else if (typeof _ == "object" && (_.$$typeof === u || // Note: Memo only checks outer props here.
550
550
  // Inner props are checked in the reconciler.
551
- _.$$typeof === g))
551
+ _.$$typeof === h))
552
552
  v = _.propTypes;
553
553
  else
554
554
  return;
@@ -617,7 +617,7 @@ React keys must be passed directly to JSX without using spread:
617
617
  <%s key={someKey} {...props} />`, le, Rt, Nr, Rt), Ie[Rt + le] = !0;
618
618
  }
619
619
  }
620
- return e === a ? $r(Y) : jr(Y), Y;
620
+ return e === s ? $r(Y) : jr(Y), Y;
621
621
  }
622
622
  }
623
623
  function Tr(e, _, v) {
@@ -627,7 +627,7 @@ React keys must be passed directly to JSX without using spread:
627
627
  return Ne(e, _, v, !1);
628
628
  }
629
629
  var Rr = Er, Ir = Tr;
630
- Ft.Fragment = a, Ft.jsx = Rr, Ft.jsxs = Ir;
630
+ Ft.Fragment = s, Ft.jsx = Rr, Ft.jsxs = Ir;
631
631
  }()), Ft;
632
632
  }
633
633
  var Be;
@@ -762,28 +762,28 @@ function Qn() {
762
762
  (function() {
763
763
  var r = {}.hasOwnProperty;
764
764
  function n() {
765
- for (var s = "", l = 0; l < arguments.length; l++) {
765
+ for (var a = "", l = 0; l < arguments.length; l++) {
766
766
  var c = arguments[l];
767
- c && (s = i(s, a(c)));
767
+ c && (a = i(a, s(c)));
768
768
  }
769
- return s;
769
+ return a;
770
770
  }
771
- function a(s) {
772
- if (typeof s == "string" || typeof s == "number")
773
- return s;
774
- if (typeof s != "object")
771
+ function s(a) {
772
+ if (typeof a == "string" || typeof a == "number")
773
+ return a;
774
+ if (typeof a != "object")
775
775
  return "";
776
- if (Array.isArray(s))
777
- return n.apply(null, s);
778
- if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
779
- return s.toString();
776
+ if (Array.isArray(a))
777
+ return n.apply(null, a);
778
+ if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
779
+ return a.toString();
780
780
  var l = "";
781
- for (var c in s)
782
- r.call(s, c) && s[c] && (l = i(l, c));
781
+ for (var c in a)
782
+ r.call(a, c) && a[c] && (l = i(l, c));
783
783
  return l;
784
784
  }
785
- function i(s, l) {
786
- return l ? s ? s + " " + l : s + l : s;
785
+ function i(a, l) {
786
+ return l ? a ? a + " " + l : a + l : a;
787
787
  }
788
788
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
789
789
  })();
@@ -795,9 +795,9 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
795
795
  size: t = 24,
796
796
  variant: r = "accent",
797
797
  className: n,
798
- "data-testid": a = "loader",
798
+ "data-testid": s = "loader",
799
799
  style: i,
800
- ...s
800
+ ...a
801
801
  }, l) => {
802
802
  const c = Et(
803
803
  Wt.loader,
@@ -813,9 +813,9 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
813
813
  fill: "none",
814
814
  viewBox: "0 0 16 16",
815
815
  xmlns: "http://www.w3.org/2000/svg",
816
- "data-testid": a,
816
+ "data-testid": s,
817
817
  style: i,
818
- ...s,
818
+ ...a,
819
819
  children: /* @__PURE__ */ o.jsx(
820
820
  "path",
821
821
  {
@@ -831,17 +831,17 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
831
831
  ), eo = U((t, r) => {
832
832
  const {
833
833
  loading: n = !1,
834
- size: a = 24,
834
+ size: s = 24,
835
835
  variant: i = "accent",
836
- children: s,
836
+ children: a,
837
837
  className: l,
838
838
  style: c,
839
839
  "data-testid": u,
840
840
  ...f
841
841
  } = t, d = Et(Wt.container, l);
842
842
  return /* @__PURE__ */ o.jsxs("div", { ref: r, className: d, style: c, "data-testid": u, ...f, children: [
843
- s,
844
- n && /* @__PURE__ */ o.jsx("div", { className: Wt.overlay, children: /* @__PURE__ */ o.jsx(rr, { size: a, variant: i, "data-testid": `${u}-spinner` }) })
843
+ a,
844
+ n && /* @__PURE__ */ o.jsx("div", { className: Wt.overlay, children: /* @__PURE__ */ o.jsx(rr, { size: s, variant: i, "data-testid": `${u}-spinner` }) })
845
845
  ] });
846
846
  }), nr = U((t, r) => t.children ? /* @__PURE__ */ o.jsx(
847
847
  eo,
@@ -872,7 +872,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
872
872
  width: t = 24,
873
873
  height: r = 24,
874
874
  className: n = "",
875
- color: a = "currentColor",
875
+ color: s = "currentColor",
876
876
  ...i
877
877
  }) => /* @__PURE__ */ o.jsx(
878
878
  "svg",
@@ -887,7 +887,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
887
887
  "path",
888
888
  {
889
889
  d: "M19 12H5m0 0 7 7m-7-7 7-7",
890
- stroke: a,
890
+ stroke: s,
891
891
  strokeLinecap: "round",
892
892
  strokeLinejoin: "round",
893
893
  strokeWidth: "2"
@@ -903,65 +903,65 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
903
903
  iconRight: t,
904
904
  iconLeft: r,
905
905
  children: n,
906
- postfix: a,
906
+ postfix: s,
907
907
  subcaption: i,
908
- size: s,
908
+ size: a,
909
909
  isAsButton: l
910
910
  }) => {
911
- const c = !!(i && l && s === "l"), u = !!(!n && l && r), f = l && !!(c && !n && a || a && !c);
911
+ const c = !!(i && l && a === "l"), u = !!(!n && l && r), f = l && !!(c && !n && s || s && !c);
912
912
  return /* @__PURE__ */ o.jsxs(Ht, { children: [
913
913
  c && n && /* @__PURE__ */ o.jsxs(Ht, { children: [
914
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: S(O.label, O.labelText), children: n }),
914
+ /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: w(O.label, O.labelText), children: n }),
915
915
  /* @__PURE__ */ o.jsx(
916
916
  "span",
917
917
  {
918
918
  "data-testid": "button-subcaption",
919
- className: S(O.subcaption, G["typography-label-4-regular"]),
919
+ className: w(O.subcaption, G["typography-label-4-regular"]),
920
920
  children: i
921
921
  }
922
922
  )
923
923
  ] }),
924
924
  !c && n && /* @__PURE__ */ o.jsxs("span", { "data-testid": "button-label", className: O.label, children: [
925
925
  r && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className: O.icon, children: r }),
926
- /* @__PURE__ */ o.jsx("span", { className: S(O.labelText, { [O.isLink]: !l }), children: n }),
927
- !l && t && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: S(O.icon, O.iconRight), children: t })
926
+ /* @__PURE__ */ o.jsx("span", { className: w(O.labelText, { [O.isLink]: !l }), children: n }),
927
+ !l && t && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: w(O.icon, O.iconRight), children: t })
928
928
  ] }),
929
929
  u && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: O.icon, children: l ? r : t }),
930
930
  f && /* @__PURE__ */ o.jsx("div", { "data-testid": "button-right-group", className: O.rightGroup, children: /* @__PURE__ */ o.jsx(
931
931
  "span",
932
932
  {
933
933
  "data-testid": "button-postfix",
934
- className: S(O.postfix, G["typography-subtitle-2-semibold"]),
935
- children: a
934
+ className: w(O.postfix, G["typography-subtitle-2-semibold"]),
935
+ children: s
936
936
  }
937
937
  ) })
938
938
  ] });
939
939
  }, ye = U((t, r) => {
940
940
  const {
941
941
  mode: n = "primary",
942
- size: a = "m",
942
+ size: s = "m",
943
943
  buttonStyle: i = Ae(t) ? "neutral" : "accent",
944
- disabled: s = !1,
944
+ disabled: a = !1,
945
945
  className: l,
946
946
  children: c,
947
947
  tabIndex: u
948
- } = t, f = n === "tertiary", d = Ae(t), g = Qr(t), m = f && "paddings" in t ? t.paddings ?? !0 : !0, h = d ? t.subcaption : void 0, x = d ? t.postfix : void 0, C = d ? t.stretched : void 0, b = !(g && t.size === void 0), y = g && b ? t.iconLeft : void 0, p = g && b ? t.iconRight : void 0, w = !!(d && "loading" in t && t.loading), k = d ? s : s || w, T = !k && !w, $ = d ? t.iconLeft : void 0, E = !!(!c && (d && $ && !x || g && p)), z = typeof C == "object" ? C.justify === "space-between" : void 0, B = ao(a), F = G[B], q = g ? Dn(t.size ?? "m") : void 0, D = q ? G[q] : void 0, L = Fn(k, n, i), M = k || w ? -1 : u, W = S(
948
+ } = t, f = n === "tertiary", d = Ae(t), h = Qr(t), b = f && "paddings" in t ? t.paddings ?? !0 : !0, m = d ? t.subcaption : void 0, x = d ? t.postfix : void 0, S = d ? t.stretched : void 0, g = !(h && t.size === void 0), y = h && g ? t.iconLeft : void 0, p = h && g ? t.iconRight : void 0, C = !!(d && "loading" in t && t.loading), k = d ? a : a || C, T = !k && !C, $ = d ? t.iconLeft : void 0, E = !!(!c && (d && $ && !x || h && p)), z = typeof S == "object" ? S.justify === "space-between" : void 0, B = ao(s), F = G[B], q = h ? Dn(t.size ?? "m") : void 0, D = q ? G[q] : void 0, L = Fn(k, n, i), M = k || C ? -1 : u, W = w(
949
949
  O.button,
950
- O[a],
950
+ O[s],
951
951
  O[n],
952
952
  O[i],
953
- g && D,
953
+ h && D,
954
954
  d && F,
955
955
  {
956
956
  [O.disabled]: k,
957
957
  [O.loading]: d && "loading" in t && t.loading,
958
- [O.stretched]: C,
958
+ [O.stretched]: S,
959
959
  [O.spaceBetween]: z,
960
- [O.withSubcaption]: !!(h && a === "l" && c),
960
+ [O.withSubcaption]: !!(m && s === "l" && c),
961
961
  [O.iconOnly]: E,
962
- [O.link]: g,
963
- [O.underline]: g && "showUnderline" in t && t.showUnderline,
964
- [O.noPaddings]: f && d && !m
962
+ [O.link]: h,
963
+ [O.underline]: h && "showUnderline" in t && t.showUnderline,
964
+ [O.noPaddings]: f && d && !b
965
965
  },
966
966
  l
967
967
  ), H = {
@@ -969,8 +969,8 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
969
969
  iconLeft: d ? $ : y,
970
970
  children: c,
971
971
  postfix: x,
972
- subcaption: h,
973
- size: a,
972
+ subcaption: m,
973
+ size: s,
974
974
  isAsButton: d
975
975
  };
976
976
  if (Kr(t)) {
@@ -996,7 +996,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
996
996
  tabIndex: M,
997
997
  onClick: Tt,
998
998
  "data-testid": at,
999
- "aria-disabled": k || w,
999
+ "aria-disabled": k || C,
1000
1000
  style: ot,
1001
1001
  target: xt,
1002
1002
  rel: it,
@@ -1006,7 +1006,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
1006
1006
  );
1007
1007
  }
1008
1008
  if (Jr(t)) {
1009
- const { type: Z = "button", onClick: K, style: ot, "data-testid": rt, ...J } = t, at = Oe(J), st = a === "l" ? 24 : 16, wt = (xt) => {
1009
+ const { type: Z = "button", onClick: K, style: ot, "data-testid": rt, ...J } = t, at = Oe(J), st = s === "l" ? 24 : 16, wt = (xt) => {
1010
1010
  T && K && K(xt);
1011
1011
  };
1012
1012
  return /* @__PURE__ */ o.jsxs(
@@ -1019,12 +1019,12 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
1019
1019
  tabIndex: M,
1020
1020
  onClick: wt,
1021
1021
  "data-testid": rt,
1022
- "aria-disabled": k || w,
1022
+ "aria-disabled": k || C,
1023
1023
  style: ot,
1024
1024
  ...at,
1025
1025
  children: [
1026
- /* @__PURE__ */ o.jsx("div", { className: S(O.content, { [O.contentHidden]: w }), children: /* @__PURE__ */ o.jsx(De, { ...H }) }),
1027
- w && /* @__PURE__ */ o.jsx("div", { className: O.loaderWrapper, children: /* @__PURE__ */ o.jsx(
1026
+ /* @__PURE__ */ o.jsx("div", { className: w(O.content, { [O.contentHidden]: C }), children: /* @__PURE__ */ o.jsx(De, { ...H }) }),
1027
+ C && /* @__PURE__ */ o.jsx("div", { className: O.loaderWrapper, children: /* @__PURE__ */ o.jsx(
1028
1028
  nr,
1029
1029
  {
1030
1030
  variant: L,
@@ -1042,14 +1042,14 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
1042
1042
  ye.displayName = "Button";
1043
1043
  const or = U(
1044
1044
  (t, r) => {
1045
- const { iconLeft: n, className: a, ...i } = t, l = {
1045
+ const { iconLeft: n, className: s, ...i } = t, l = {
1046
1046
  ...i,
1047
1047
  displayAs: "button",
1048
1048
  mode: "tertiary",
1049
1049
  buttonStyle: "neutral",
1050
1050
  size: "m",
1051
1051
  iconLeft: n ?? /* @__PURE__ */ o.jsx(no, {}),
1052
- className: S(O.backButton, G["typography-subtitle-1-semibold"], a)
1052
+ className: w(O.backButton, G["typography-subtitle-1-semibold"], s)
1053
1053
  };
1054
1054
  return /* @__PURE__ */ o.jsx(ye, { ref: r, ...l });
1055
1055
  }
@@ -1085,8 +1085,8 @@ function fo(t) {
1085
1085
  function te(t) {
1086
1086
  const r = typeof t == "string" ? t : JSON.stringify(t);
1087
1087
  let n = 5381;
1088
- for (let a = 0; a < r.length; a++) {
1089
- const i = r.charCodeAt(a);
1088
+ for (let s = 0; s < r.length; s++) {
1089
+ const i = r.charCodeAt(s);
1090
1090
  n = (n << 5) + n + i;
1091
1091
  }
1092
1092
  return n >>> 0;
@@ -1102,8 +1102,8 @@ const go = (t, r, n) => Math.min(Math.max(t, r), n), ho = [
1102
1102
  ];
1103
1103
  function bo(t, r = ho) {
1104
1104
  if (!t) return "gray";
1105
- const n = te(t), a = Math.abs(n) % r.length;
1106
- return r[a];
1105
+ const n = te(t), s = Math.abs(n) % r.length;
1106
+ return r[s];
1107
1107
  }
1108
1108
  const We = 2;
1109
1109
  function mo(t) {
@@ -1147,74 +1147,74 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1147
1147
  }, Jt = U((t, r) => {
1148
1148
  const {
1149
1149
  style: n,
1150
- size: a = 40,
1150
+ size: s = 40,
1151
1151
  isLoading: i = !1,
1152
- isDisabled: s = !1,
1152
+ isDisabled: a = !1,
1153
1153
  shape: l = "circle",
1154
1154
  variant: c = "filled",
1155
1155
  placeholderType: u = "neutral",
1156
1156
  name: f,
1157
1157
  imgSrc: d,
1158
- imgAlt: g,
1159
- icon: m,
1160
- imgProps: h,
1158
+ imgAlt: h,
1159
+ icon: b,
1160
+ imgProps: m,
1161
1161
  colorScheme: x,
1162
- className: C,
1163
- "data-testid": b,
1162
+ className: S,
1163
+ "data-testid": g,
1164
1164
  ...y
1165
- } = t, { onClick: p, onPointerDown: w } = y, T = !s && !i && (!!p || !!w), [$, E] = gt(!1);
1165
+ } = t, { onClick: p, onPointerDown: C } = y, T = !a && !i && (!!p || !!C), [$, E] = gt(!1);
1166
1166
  ut(() => {
1167
1167
  d && E(!1);
1168
1168
  }, [d]);
1169
- const z = d && !$ ? "image" : m ? "icon" : f ? "name" : "placeholder", B = x || z === "name" && bo(f) || "gray", F = Co(a), q = xo(a, l), D = S(
1170
- C,
1169
+ const z = d && !$ ? "image" : b ? "icon" : f ? "name" : "placeholder", B = x || z === "name" && bo(f) || "gray", F = Co(s), q = xo(s, l), D = w(
1170
+ S,
1171
1171
  Ct.avatar,
1172
1172
  Ct[`variant-${c}`],
1173
1173
  Ct[`color-${B}`],
1174
1174
  G[F],
1175
1175
  {
1176
- [Ct.disabled]: s,
1176
+ [Ct.disabled]: a,
1177
1177
  [Ct.loading]: i,
1178
1178
  [Ct.clickable]: T
1179
1179
  }
1180
1180
  ), L = {
1181
- "--avatar-size": `${a}px`,
1181
+ "--avatar-size": `${s}px`,
1182
1182
  "--avatar-border-radius": `${q}px`,
1183
1183
  ...n
1184
1184
  }, M = {
1185
- icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: Ct.icon, children: m == null ? void 0 : m({}) }),
1185
+ icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: Ct.icon, children: b == null ? void 0 : b({}) }),
1186
1186
  name: () => /* @__PURE__ */ o.jsx(
1187
1187
  "span",
1188
1188
  {
1189
1189
  role: "textbox",
1190
1190
  "data-testid": "avatar-name",
1191
1191
  className: Ct.name,
1192
- title: g || void 0,
1192
+ title: h || void 0,
1193
1193
  children: mo(f || "")
1194
1194
  }
1195
1195
  ),
1196
1196
  placeholder: () => /* @__PURE__ */ o.jsx(
1197
1197
  "img",
1198
1198
  {
1199
- ...h,
1199
+ ...m,
1200
1200
  "data-testid": "avatar-placeholder",
1201
1201
  className: Ct.image,
1202
1202
  src: jo[u],
1203
- alt: g || void 0
1203
+ alt: h || void 0
1204
1204
  }
1205
1205
  ),
1206
1206
  image: () => /* @__PURE__ */ o.jsx(
1207
1207
  "img",
1208
1208
  {
1209
1209
  "data-testid": "avatar-image",
1210
- ...h,
1210
+ ...m,
1211
1211
  className: Ct.image,
1212
1212
  src: d || void 0,
1213
- alt: g || void 0,
1213
+ alt: h || void 0,
1214
1214
  onLoad: () => E(!1),
1215
1215
  onError: (H) => {
1216
1216
  var Z;
1217
- E(!0), (Z = h == null ? void 0 : h.onError) == null || Z.call(h, H);
1217
+ E(!0), (Z = m == null ? void 0 : m.onError) == null || Z.call(m, H);
1218
1218
  }
1219
1219
  }
1220
1220
  )
@@ -1228,8 +1228,8 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1228
1228
  onClick: W,
1229
1229
  className: D,
1230
1230
  style: L,
1231
- "data-testid": b,
1232
- "aria-disabled": s || i,
1231
+ "data-testid": g,
1232
+ "aria-disabled": a || i,
1233
1233
  children: M[z](null)
1234
1234
  }
1235
1235
  );
@@ -1239,8 +1239,8 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1239
1239
  if (!t) return null;
1240
1240
  let r = t;
1241
1241
  for (; r; ) {
1242
- const a = window.getComputedStyle(r).backgroundColor;
1243
- if (!Eo(a)) return a;
1242
+ const s = window.getComputedStyle(r).backgroundColor;
1243
+ if (!Eo(s)) return s;
1244
1244
  r = r.parentElement;
1245
1245
  }
1246
1246
  return null;
@@ -1248,8 +1248,8 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1248
1248
  const t = Vt(null), [r, n] = gt(null);
1249
1249
  return ut(() => {
1250
1250
  if (t.current) {
1251
- const a = Ro(t.current);
1252
- n(a);
1251
+ const s = Ro(t.current);
1252
+ n(s);
1253
1253
  }
1254
1254
  }, []), { ref: t, bgColor: r };
1255
1255
  };
@@ -1276,27 +1276,27 @@ const Mo = 2, zo = (t) => {
1276
1276
  const {
1277
1277
  avatars: r = [],
1278
1278
  size: n = 40,
1279
- overlap: a = 0.3,
1279
+ overlap: s = 0.3,
1280
1280
  shape: i = "circle",
1281
- overflowCount: s = 0,
1281
+ overflowCount: a = 0,
1282
1282
  overflowProps: l,
1283
1283
  cutoutBackground: c
1284
- } = t, f = -(n * a) + Mo, { ref: d, bgColor: g } = xe(), m = c || g || "#ffffff", h = Et(To.avatarGroup), x = {
1285
- "--avatar-cutout-bg": m
1284
+ } = t, f = -(n * s) + Mo, { ref: d, bgColor: h } = xe(), b = c || h || "#ffffff", m = Et(To.avatarGroup), x = {
1285
+ "--avatar-cutout-bg": b
1286
1286
  };
1287
- return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: h, ref: d, style: x, children: [
1288
- r.map((C, b) => {
1289
- if (C.wrapper) {
1290
- const y = C.wrapper;
1287
+ return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: m, ref: d, style: x, children: [
1288
+ r.map((S, g) => {
1289
+ if (S.wrapper) {
1290
+ const y = S.wrapper;
1291
1291
  return /* @__PURE__ */ o.jsx(
1292
1292
  "div",
1293
1293
  {
1294
1294
  style: {
1295
1295
  marginRight: f
1296
1296
  },
1297
- children: /* @__PURE__ */ o.jsx(y, { children: /* @__PURE__ */ o.jsx(Jt, { size: n, shape: i, ...C }) })
1297
+ children: /* @__PURE__ */ o.jsx(y, { children: /* @__PURE__ */ o.jsx(Jt, { size: n, shape: i, ...S }) })
1298
1298
  },
1299
- te(C) + b
1299
+ te(S) + g
1300
1300
  );
1301
1301
  }
1302
1302
  return /* @__PURE__ */ o.jsx(
@@ -1305,17 +1305,17 @@ const Mo = 2, zo = (t) => {
1305
1305
  style: {
1306
1306
  marginRight: f
1307
1307
  },
1308
- children: /* @__PURE__ */ o.jsx(Jt, { size: n, shape: i, ...C })
1308
+ children: /* @__PURE__ */ o.jsx(Jt, { size: n, shape: i, ...S })
1309
1309
  },
1310
- te(C) + b
1310
+ te(S) + g
1311
1311
  );
1312
1312
  }),
1313
- s > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
1313
+ a > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
1314
1314
  Jt,
1315
1315
  {
1316
1316
  size: n,
1317
1317
  shape: i,
1318
- icon: () => fo(s),
1318
+ icon: () => fo(a),
1319
1319
  colorScheme: "gray",
1320
1320
  variant: "light",
1321
1321
  ...l
@@ -1380,19 +1380,19 @@ function Fo({
1380
1380
  open: t,
1381
1381
  onOpenChange: r,
1382
1382
  placement: n = "center",
1383
- disableOutsideClick: a = !1,
1383
+ disableOutsideClick: s = !1,
1384
1384
  disableEscapeKey: i = !1
1385
1385
  }) {
1386
- const s = jt(
1387
- (C) => {
1388
- r == null || r(C);
1386
+ const a = jt(
1387
+ (S) => {
1388
+ r == null || r(S);
1389
1389
  },
1390
1390
  [r]
1391
1391
  ), l = Po(n), { context: c, refs: u } = Ar({
1392
1392
  open: t,
1393
- onOpenChange: s,
1393
+ onOpenChange: a,
1394
1394
  placement: l
1395
- }), f = Do(n), { isMounted: d, styles: g } = Or(c, {
1395
+ }), f = Do(n), { isMounted: d, styles: h } = Or(c, {
1396
1396
  duration: 200,
1397
1397
  common: {
1398
1398
  transitionProperty: "opacity, transform",
@@ -1402,17 +1402,17 @@ function Fo({
1402
1402
  opacity: 0
1403
1403
  },
1404
1404
  ...f
1405
- }), m = Pr(c, {
1406
- outsidePress: !a,
1405
+ }), b = Pr(c, {
1406
+ outsidePress: !s,
1407
1407
  outsidePressEvent: "mousedown",
1408
1408
  escapeKey: !i
1409
- }), h = Dr(c, { role: "dialog" }), { getFloatingProps: x } = Fr([m, h]);
1409
+ }), m = Dr(c, { role: "dialog" }), { getFloatingProps: x } = Fr([b, m]);
1410
1410
  return Qe(
1411
1411
  () => ({
1412
1412
  /** Состояние для условного рендеринга с поддержкой анимации закрытия. */
1413
1413
  isMounted: d,
1414
1414
  /** Стили для CSS-переходов (анимации). */
1415
- transitionStyles: g,
1415
+ transitionStyles: h,
1416
1416
  /** Контекст Floating UI. */
1417
1417
  context: c,
1418
1418
  /** Ссылки на элементы для Floating UI. */
@@ -1420,53 +1420,58 @@ function Fo({
1420
1420
  /** Пропсы для плавающего элемента. */
1421
1421
  getFloatingProps: x
1422
1422
  }),
1423
- [d, g, c, u, x]
1423
+ [d, h, c, u, x]
1424
1424
  );
1425
1425
  }
1426
1426
  const ar = U((t, r) => {
1427
1427
  const {
1428
1428
  placement: n = "default",
1429
- open: a,
1429
+ open: s,
1430
1430
  onOpenChange: i,
1431
- overlayClassName: s,
1431
+ overlayProps: a,
1432
1432
  children: l,
1433
1433
  disableOutsideClick: c = !1,
1434
1434
  disableEscapeKey: u = !1,
1435
- className: f,
1436
- style: d,
1437
- "data-testid": g,
1435
+ disableOverlay: f = !1,
1436
+ className: d,
1437
+ style: h,
1438
+ "data-testid": b,
1438
1439
  ...m
1439
1440
  } = t;
1440
- a === void 0 && console.error(
1441
+ s === void 0 && console.error(
1441
1442
  "Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange."
1442
1443
  );
1443
- const h = Fo({
1444
- open: a,
1444
+ const x = Fo({
1445
+ open: s,
1445
1446
  onOpenChange: i,
1446
1447
  placement: n,
1447
1448
  disableOutsideClick: c,
1448
1449
  disableEscapeKey: u
1449
- }), { isMounted: x, transitionStyles: C } = h, b = Wr([r, h.refs.setFloating]);
1450
- return x ? /* @__PURE__ */ o.jsxs(Hr, { children: [
1451
- /* @__PURE__ */ o.jsx(
1450
+ }), { isMounted: S, transitionStyles: g } = x, y = Wr([r, x.refs.setFloating]);
1451
+ return S ? /* @__PURE__ */ o.jsxs(Hr, { children: [
1452
+ !f && /* @__PURE__ */ o.jsx(
1452
1453
  Vr,
1453
1454
  {
1454
1455
  "data-testid": "dialog-overlay",
1455
- className: S(de.overlay, s),
1456
- lockScroll: !0,
1457
- style: { opacity: C == null ? void 0 : C.opacity, transition: C == null ? void 0 : C.transition }
1456
+ className: w(de.overlay, a == null ? void 0 : a.className),
1457
+ lockScroll: (a == null ? void 0 : a.lockScroll) ?? !0,
1458
+ style: {
1459
+ opacity: g == null ? void 0 : g.opacity,
1460
+ transition: g == null ? void 0 : g.transition,
1461
+ ...a == null ? void 0 : a.style
1462
+ }
1458
1463
  }
1459
1464
  ),
1460
- /* @__PURE__ */ o.jsx(qr, { context: h.context, children: /* @__PURE__ */ o.jsx(
1465
+ /* @__PURE__ */ o.jsx(qr, { context: x.context, children: /* @__PURE__ */ o.jsx(
1461
1466
  "div",
1462
1467
  {
1463
- ref: b,
1468
+ ref: y,
1464
1469
  "aria-modal": "true",
1465
1470
  role: "dialog",
1466
- className: S(f, de.container, de[`placement-${n}`]),
1467
- style: { ...d, ...C },
1468
- "data-testid": g,
1469
- ...h.getFloatingProps(m),
1471
+ className: w(d, de.container, de[`placement-${n}`]),
1472
+ style: { ...h, ...g },
1473
+ "data-testid": b,
1474
+ ...x.getFloatingProps(m),
1470
1475
  children: l
1471
1476
  }
1472
1477
  ) })
@@ -1511,16 +1516,16 @@ const ar = U((t, r) => {
1511
1516
  const r = Je.forwardRef(
1512
1517
  ({
1513
1518
  size: n = 3,
1514
- children: a,
1519
+ children: s,
1515
1520
  className: i,
1516
- "data-testid": s,
1521
+ "data-testid": a,
1517
1522
  as: l,
1518
1523
  fontWeight: c = "semibold",
1519
1524
  disabled: u = !1,
1520
1525
  typographyStyle: f = "primary",
1521
1526
  ...d
1522
- }, g) => {
1523
- const m = l || ia[n], h = S(
1527
+ }, h) => {
1528
+ const b = l || ia[n], m = w(
1524
1529
  Pt.typography,
1525
1530
  G[`typography-${t}-${n}-${c}`],
1526
1531
  Pt[f],
@@ -1529,7 +1534,7 @@ const ar = U((t, r) => {
1529
1534
  },
1530
1535
  i
1531
1536
  );
1532
- return a ? /* @__PURE__ */ o.jsx(m, { ref: g, className: h, "data-testid": s, ...d, children: a }) : null;
1537
+ return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: m, "data-testid": a, ...d, children: s }) : null;
1533
1538
  }
1534
1539
  );
1535
1540
  return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
@@ -1537,16 +1542,16 @@ const ar = U((t, r) => {
1537
1542
  const r = Je.forwardRef(
1538
1543
  ({
1539
1544
  size: n = 3,
1540
- children: a,
1545
+ children: s,
1541
1546
  className: i,
1542
- "data-testid": s,
1547
+ "data-testid": a,
1543
1548
  as: l = "p",
1544
1549
  fontWeight: c = "regular",
1545
1550
  disabled: u = !1,
1546
1551
  typographyStyle: f = "primary",
1547
1552
  ...d
1548
- }, g) => {
1549
- const m = l, h = S(
1553
+ }, h) => {
1554
+ const b = l, m = w(
1550
1555
  Pt.typography,
1551
1556
  G[`typography-${t}-${n}-${c}`],
1552
1557
  Pt[f],
@@ -1555,14 +1560,14 @@ const ar = U((t, r) => {
1555
1560
  },
1556
1561
  i
1557
1562
  );
1558
- return a ? /* @__PURE__ */ o.jsx(
1559
- m,
1563
+ return s ? /* @__PURE__ */ o.jsx(
1564
+ b,
1560
1565
  {
1561
- ref: g,
1562
- className: h,
1563
- "data-testid": s,
1566
+ ref: h,
1567
+ className: m,
1568
+ "data-testid": a,
1564
1569
  ...d,
1565
- children: a
1570
+ children: s
1566
1571
  }
1567
1572
  ) : null;
1568
1573
  }
@@ -1577,7 +1582,7 @@ const ar = U((t, r) => {
1577
1582
  "right-drawer",
1578
1583
  "left-drawer"
1579
1584
  ], ua = (t) => {
1580
- const { closeButtonProps: r, onOpenChange: n } = t, { wrapper: a, ...i } = r || {}, s = {
1585
+ const { closeButtonProps: r, onOpenChange: n } = t, { wrapper: s, ...i } = r || {}, a = {
1581
1586
  size: "xs",
1582
1587
  mode: "primary",
1583
1588
  buttonStyle: "gray",
@@ -1586,50 +1591,50 @@ const ar = U((t, r) => {
1586
1591
  onClick: () => n(!1),
1587
1592
  ...i
1588
1593
  };
1589
- return a ? /* @__PURE__ */ o.jsx(a, { children: /* @__PURE__ */ o.jsx(ge, { ...s }) }) : /* @__PURE__ */ o.jsx(ge, { ...s });
1594
+ return s ? /* @__PURE__ */ o.jsx(s, { children: /* @__PURE__ */ o.jsx(ge, { ...a }) }) : /* @__PURE__ */ o.jsx(ge, { ...a });
1590
1595
  }, q1 = U((t, r) => {
1591
1596
  const {
1592
1597
  open: n,
1593
- onOpenChange: a,
1598
+ onOpenChange: s,
1594
1599
  size: i,
1595
- placement: s = "default",
1600
+ placement: a = "default",
1596
1601
  showCloseButton: l = !0,
1597
1602
  closeButtonProps: c,
1598
1603
  title: u,
1599
1604
  subTitle: f,
1600
1605
  actions: d,
1601
- children: g,
1602
- footer: m,
1603
- hideHeaderDivider: h,
1606
+ children: h,
1607
+ footer: b,
1608
+ hideHeaderDivider: m,
1604
1609
  hideFooterDivider: x,
1605
- className: C,
1606
- classNames: b,
1610
+ className: S,
1611
+ classNames: g,
1607
1612
  styles: y,
1608
1613
  ...p
1609
- } = t, w = da.includes(s), k = !!(u || f || d);
1614
+ } = t, C = da.includes(a), k = !!(u || f || d);
1610
1615
  return /* @__PURE__ */ o.jsx(
1611
1616
  ar,
1612
1617
  {
1613
1618
  open: n,
1614
- onOpenChange: a,
1615
- placement: s,
1619
+ onOpenChange: s,
1620
+ placement: a,
1616
1621
  ref: r,
1617
1622
  style: { width: i },
1618
1623
  ...p,
1619
1624
  children: /* @__PURE__ */ o.jsxs(
1620
1625
  "div",
1621
1626
  {
1622
- className: S(bt.container, C, b == null ? void 0 : b.container),
1627
+ className: w(bt.container, S, g == null ? void 0 : g.container),
1623
1628
  style: { width: i, ...y == null ? void 0 : y.container },
1624
1629
  "data-testid": p["data-testid"] ? `${p["data-testid"]}-container` : void 0,
1625
1630
  children: [
1626
- k && /* @__PURE__ */ o.jsxs("div", { className: S(bt.header, b == null ? void 0 : b.header), style: y == null ? void 0 : y.header, children: [
1627
- /* @__PURE__ */ o.jsx("div", { className: S(bt.title, b == null ? void 0 : b.title), style: y == null ? void 0 : y.title, children: typeof u == "string" ? /* @__PURE__ */ o.jsx(ca, { size: 5, className: bt["title-text"], children: u }) : u }),
1631
+ k && /* @__PURE__ */ o.jsxs("div", { className: w(bt.header, g == null ? void 0 : g.header), style: y == null ? void 0 : y.header, children: [
1632
+ /* @__PURE__ */ o.jsx("div", { className: w(bt.title, g == null ? void 0 : g.title), style: y == null ? void 0 : y.title, children: typeof u == "string" ? /* @__PURE__ */ o.jsx(ca, { size: 5, className: bt["title-text"], children: u }) : u }),
1628
1633
  /* @__PURE__ */ o.jsxs("div", { className: bt.actions, children: [
1629
1634
  d,
1630
- l && /* @__PURE__ */ o.jsx(ua, { closeButtonProps: c, onOpenChange: a })
1635
+ l && /* @__PURE__ */ o.jsx(ua, { closeButtonProps: c, onOpenChange: s })
1631
1636
  ] }),
1632
- f && /* @__PURE__ */ o.jsx("div", { className: S(bt.subTitle, b == null ? void 0 : b.subTitle), style: y == null ? void 0 : y.subTitle, children: typeof f == "string" ? /* @__PURE__ */ o.jsx(
1637
+ f && /* @__PURE__ */ o.jsx("div", { className: w(bt.subTitle, g == null ? void 0 : g.subTitle), style: y == null ? void 0 : y.subTitle, children: typeof f == "string" ? /* @__PURE__ */ o.jsx(
1633
1638
  la,
1634
1639
  {
1635
1640
  size: 2,
@@ -1639,23 +1644,23 @@ const ar = U((t, r) => {
1639
1644
  }
1640
1645
  ) : f })
1641
1646
  ] }),
1642
- !h && k && /* @__PURE__ */ o.jsx("hr", { className: bt.divider }),
1647
+ !m && k && /* @__PURE__ */ o.jsx("hr", { className: bt.divider }),
1643
1648
  /* @__PURE__ */ o.jsx(
1644
1649
  "div",
1645
1650
  {
1646
- className: S(
1647
- w ? bt["content-for-side-drawer"] : bt.content,
1648
- b == null ? void 0 : b.content
1651
+ className: w(
1652
+ C ? bt["content-for-side-drawer"] : bt.content,
1653
+ g == null ? void 0 : g.content
1649
1654
  ),
1650
1655
  style: {
1651
1656
  ...y == null ? void 0 : y.content
1652
1657
  },
1653
1658
  "data-testid": p["data-testid"] ? `${p["data-testid"]}-content` : void 0,
1654
- children: g
1659
+ children: h
1655
1660
  }
1656
1661
  ),
1657
- !x && m && /* @__PURE__ */ o.jsx("hr", { className: bt.divider }),
1658
- m && /* @__PURE__ */ o.jsx("div", { className: S(bt.footer, b == null ? void 0 : b.footer), style: y == null ? void 0 : y.footer, children: m })
1662
+ !x && b && /* @__PURE__ */ o.jsx("hr", { className: bt.divider }),
1663
+ b && /* @__PURE__ */ o.jsx("div", { className: w(bt.footer, g == null ? void 0 : g.footer), style: y == null ? void 0 : y.footer, children: b })
1659
1664
  ]
1660
1665
  }
1661
1666
  )
@@ -1779,9 +1784,9 @@ const La = (t) => {
1779
1784
  const {
1780
1785
  iconSlot: r,
1781
1786
  title: n,
1782
- subTitle: a,
1787
+ subTitle: s,
1783
1788
  styles: i,
1784
- classNames: s,
1789
+ classNames: a,
1785
1790
  children: l,
1786
1791
  "data-testid": c,
1787
1792
  size: u = "m"
@@ -1789,30 +1794,30 @@ const La = (t) => {
1789
1794
  return /* @__PURE__ */ o.jsxs(
1790
1795
  "div",
1791
1796
  {
1792
- className: S(Bt.container, s == null ? void 0 : s.container),
1797
+ className: w(Bt.container, a == null ? void 0 : a.container),
1793
1798
  style: i == null ? void 0 : i.container,
1794
1799
  "data-testid": c,
1795
1800
  children: [
1796
- r && /* @__PURE__ */ o.jsx("div", { style: i == null ? void 0 : i.iconSlot, className: S(Bt.iconSlot, s == null ? void 0 : s.iconSlot), children: r }),
1797
- (n || a) && /* @__PURE__ */ o.jsxs("div", { className: S(Bt.textBlock, s == null ? void 0 : s.textBlock), children: [
1801
+ r && /* @__PURE__ */ o.jsx("div", { style: i == null ? void 0 : i.iconSlot, className: w(Bt.iconSlot, a == null ? void 0 : a.iconSlot), children: r }),
1802
+ (n || s) && /* @__PURE__ */ o.jsxs("div", { className: w(Bt.textBlock, a == null ? void 0 : a.textBlock), children: [
1798
1803
  n && /* @__PURE__ */ o.jsx(
1799
1804
  "p",
1800
1805
  {
1801
1806
  style: i == null ? void 0 : i.title,
1802
- className: S(Bt.title, G[f.title], s == null ? void 0 : s.title),
1807
+ className: w(Bt.title, G[f.title], a == null ? void 0 : a.title),
1803
1808
  children: n
1804
1809
  }
1805
1810
  ),
1806
- a && /* @__PURE__ */ o.jsx(
1811
+ s && /* @__PURE__ */ o.jsx(
1807
1812
  "p",
1808
1813
  {
1809
1814
  style: i == null ? void 0 : i.subTitle,
1810
- className: S(Bt.subtitle, G[f.subtitle], s == null ? void 0 : s.subTitle),
1811
- children: a
1815
+ className: w(Bt.subtitle, G[f.subtitle], a == null ? void 0 : a.subTitle),
1816
+ children: s
1812
1817
  }
1813
1818
  )
1814
1819
  ] }),
1815
- l && /* @__PURE__ */ o.jsx("div", { className: S(Bt.children, s == null ? void 0 : s.children), children: l })
1820
+ l && /* @__PURE__ */ o.jsx("div", { className: w(Bt.children, a == null ? void 0 : a.children), children: l })
1816
1821
  ]
1817
1822
  }
1818
1823
  );
@@ -1820,14 +1825,14 @@ const La = (t) => {
1820
1825
  const {
1821
1826
  open: r,
1822
1827
  onOpenChange: n,
1823
- placement: a = "default",
1828
+ placement: s = "default",
1824
1829
  variant: i = "info",
1825
- title: s,
1830
+ title: a,
1826
1831
  description: l,
1827
1832
  children: c,
1828
1833
  variantAvatarProps: u,
1829
1834
  "data-testid": f
1830
- } = t, { icon: d, colorScheme: g } = (Gt == null ? void 0 : Gt[i]) || Gt.info, h = i === "avatar" ? {
1835
+ } = t, { icon: d, colorScheme: h } = (Gt == null ? void 0 : Gt[i]) || Gt.info, m = i === "avatar" ? {
1831
1836
  size: 48,
1832
1837
  colorScheme: "gray",
1833
1838
  variant: "light",
@@ -1836,7 +1841,7 @@ const La = (t) => {
1836
1841
  } : {
1837
1842
  size: 48,
1838
1843
  icon: d,
1839
- colorScheme: g,
1844
+ colorScheme: h,
1840
1845
  variant: "light",
1841
1846
  style: { fontSize: 24, outline: "none" },
1842
1847
  "data-testid": "alert-icon"
@@ -1846,16 +1851,16 @@ const La = (t) => {
1846
1851
  {
1847
1852
  open: r,
1848
1853
  onOpenChange: n,
1849
- placement: a,
1854
+ placement: s,
1850
1855
  "data-testid": f,
1851
1856
  className: ma.container,
1852
1857
  children: /* @__PURE__ */ o.jsx(
1853
1858
  La,
1854
1859
  {
1855
- title: s,
1860
+ title: a,
1856
1861
  subTitle: l,
1857
1862
  size: "m",
1858
- iconSlot: /* @__PURE__ */ o.jsx(Bo, { ...h }),
1863
+ iconSlot: /* @__PURE__ */ o.jsx(Bo, { ...m }),
1859
1864
  children: c
1860
1865
  }
1861
1866
  )
@@ -1902,26 +1907,26 @@ const La = (t) => {
1902
1907
  }, Na = U((t, r) => {
1903
1908
  const {
1904
1909
  icon: n,
1905
- children: a,
1910
+ children: s,
1906
1911
  variant: i = "filled",
1907
- label: s,
1912
+ label: a,
1908
1913
  isHidden: l = !1,
1909
1914
  colorScheme: c = "red",
1910
1915
  size: u = 20,
1911
1916
  position: f = "top-right",
1912
1917
  positionOffset: d = { x: 0, y: 0 },
1913
- cutoutBackground: g,
1914
- isDisabled: m,
1915
- className: h,
1918
+ cutoutBackground: h,
1919
+ isDisabled: b,
1920
+ className: m,
1916
1921
  "data-testid": x = "badge",
1917
- ...C
1918
- } = t, { onClick: b, onPointerDown: y } = C, { ref: p, bgColor: w } = xe(), k = g || w, $ = !m && (!!b || !!y), E = Et(St.badge__container, St[`position-${f}`]), z = Et(
1919
- h,
1922
+ ...S
1923
+ } = t, { onClick: g, onPointerDown: y } = S, { ref: p, bgColor: C } = xe(), k = h || C, $ = !b && (!!g || !!y), E = Et(St.badge__container, St[`position-${f}`]), z = Et(
1924
+ m,
1920
1925
  St.badge__content,
1921
1926
  St[`color-${c}`],
1922
1927
  St[`variant-${i}`],
1923
1928
  {
1924
- [St.disabled]: m,
1929
+ [St.disabled]: b,
1925
1930
  [St.icon]: !!n,
1926
1931
  [St.interactive]: $
1927
1932
  }
@@ -1931,11 +1936,11 @@ const La = (t) => {
1931
1936
  "--badge-offset-y": `${d.y}px`,
1932
1937
  ...k && { "--badge-cutout-bg": k },
1933
1938
  ...i === "transparent" && { "--badge-cutout-bg": "transparent" }
1934
- }, F = (n == null ? void 0 : n({})) || s, q = (D) => {
1935
- $ && (b == null || b(D));
1939
+ }, F = (n == null ? void 0 : n({})) || a, q = (D) => {
1940
+ $ && (g == null || g(D));
1936
1941
  };
1937
1942
  return /* @__PURE__ */ o.jsxs("div", { className: St.wrapper, ref: p, "data-testid": x + "-wrapper", children: [
1938
- a,
1943
+ s,
1939
1944
  !l && /* @__PURE__ */ o.jsx(
1940
1945
  "span",
1941
1946
  {
@@ -1945,12 +1950,12 @@ const La = (t) => {
1945
1950
  children: /* @__PURE__ */ o.jsx(
1946
1951
  "span",
1947
1952
  {
1948
- ...C,
1953
+ ...S,
1949
1954
  onClick: q,
1950
1955
  className: z,
1951
1956
  "data-testid": x + "-content",
1952
1957
  ref: r,
1953
- "aria-disabled": m,
1958
+ "aria-disabled": b,
1954
1959
  children: F
1955
1960
  }
1956
1961
  )
@@ -1961,7 +1966,7 @@ const La = (t) => {
1961
1966
  container: Ma,
1962
1967
  image: za,
1963
1968
  loading: Ba
1964
- }, Aa = ({ width: t = 48, height: r = 48, className: n, "data-testid": a }) => /* @__PURE__ */ o.jsx(
1969
+ }, Aa = ({ width: t = 48, height: r = 48, className: n, "data-testid": s }) => /* @__PURE__ */ o.jsx(
1965
1970
  "svg",
1966
1971
  {
1967
1972
  width: t,
@@ -1970,7 +1975,7 @@ const La = (t) => {
1970
1975
  fill: "none",
1971
1976
  xmlns: "http://www.w3.org/2000/svg",
1972
1977
  className: n,
1973
- "data-testid": a,
1978
+ "data-testid": s,
1974
1979
  children: /* @__PURE__ */ o.jsx(
1975
1980
  "path",
1976
1981
  {
@@ -1985,15 +1990,15 @@ const La = (t) => {
1985
1990
  ), X1 = U((t, r) => {
1986
1991
  const {
1987
1992
  alt: n = "",
1988
- loading: a = "lazy",
1993
+ loading: s = "lazy",
1989
1994
  src: i,
1990
- isLoading: s = !1,
1995
+ isLoading: a = !1,
1991
1996
  className: l,
1992
1997
  "data-testid": c = "image",
1993
1998
  onError: u,
1994
1999
  onLoad: f,
1995
2000
  ...d
1996
- } = t, [g, m] = gt("loading"), h = g === "error", x = (s || g === "loading") && !h, C = g === "loaded" && !s, b = Et(
2001
+ } = t, [h, b] = gt("loading"), m = h === "error", x = (a || h === "loading") && !m, S = h === "loaded" && !a, g = Et(
1997
2002
  ue.image,
1998
2003
  {
1999
2004
  [ue.loading]: x
@@ -2001,15 +2006,15 @@ const La = (t) => {
2001
2006
  l
2002
2007
  ), y = jt(
2003
2008
  (k) => {
2004
- m("loaded"), f == null || f(k);
2009
+ b("loaded"), f == null || f(k);
2005
2010
  },
2006
2011
  [f]
2007
2012
  ), p = jt(
2008
2013
  (k) => {
2009
- m("error"), u == null || u(k);
2014
+ b("error"), u == null || u(k);
2010
2015
  },
2011
2016
  [u]
2012
- ), w = {
2017
+ ), C = {
2013
2018
  loader: /* @__PURE__ */ o.jsxs(Ht, { children: [
2014
2019
  /* @__PURE__ */ o.jsx(nr, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
2015
2020
  /* @__PURE__ */ o.jsx(
@@ -2030,22 +2035,22 @@ const La = (t) => {
2030
2035
  ref: r,
2031
2036
  alt: n,
2032
2037
  "data-testid": c,
2033
- loading: a,
2038
+ loading: s,
2034
2039
  src: i,
2035
- className: b
2040
+ className: g
2036
2041
  }
2037
2042
  )
2038
2043
  };
2039
2044
  return ut(() => {
2040
2045
  if (!i) {
2041
- m("error");
2046
+ b("error");
2042
2047
  return;
2043
2048
  }
2044
- m("loading");
2049
+ b("loading");
2045
2050
  }, [i]), /* @__PURE__ */ o.jsxs("div", { className: ue.container, "data-testid": `${c}-container`, ...d, children: [
2046
- x && w.loader,
2047
- h && w.error,
2048
- C && w.image
2051
+ x && C.loader,
2052
+ m && C.error,
2053
+ S && C.image
2049
2054
  ] });
2050
2055
  }), Oa = {}, sr = tr({
2051
2056
  locale: Oa
@@ -2084,12 +2089,12 @@ const La = (t) => {
2084
2089
  locale: t = {},
2085
2090
  theme: r,
2086
2091
  children: n,
2087
- className: a
2092
+ className: s
2088
2093
  }) => (zr(() => {
2089
2094
  if (r) {
2090
2095
  const i = document.documentElement;
2091
- Object.entries(r).forEach(([s, l]) => {
2092
- i.style.setProperty(s, l);
2096
+ Object.entries(r).forEach(([a, l]) => {
2097
+ i.style.setProperty(a, l);
2093
2098
  });
2094
2099
  }
2095
2100
  }, [r]), /* @__PURE__ */ o.jsxs(Ht, { children: [
@@ -2097,7 +2102,7 @@ const La = (t) => {
2097
2102
  "div",
2098
2103
  {
2099
2104
  "data-testid": "ConfigProvider-component",
2100
- className: S(Da, Fa, Wa, Ha, Va, _s, G, a)
2105
+ className: w(Da, Fa, Wa, Ha, Va, _s, G, s)
2101
2106
  }
2102
2107
  ),
2103
2108
  /* @__PURE__ */ o.jsx(sr.Provider, { value: { locale: t }, children: n })
@@ -2121,37 +2126,37 @@ const La = (t) => {
2121
2126
  }, K1 = U((t, r) => {
2122
2127
  const {
2123
2128
  className: n,
2124
- children: a,
2129
+ children: s,
2125
2130
  componentStyle: i = "neutral",
2126
- size: s = "medium",
2131
+ size: a = "medium",
2127
2132
  disabled: l = !1,
2128
- showLabel: c = !!a,
2133
+ showLabel: c = !!s,
2129
2134
  slotStart: u,
2130
2135
  slotEnd: f,
2131
2136
  slotStartWrapperProps: d = {},
2132
- slotEndWrapperProps: g = {},
2133
- "data-testid": m
2134
- } = t, { className: h, ...x } = d, { className: C, ...b } = g;
2137
+ slotEndWrapperProps: h = {},
2138
+ "data-testid": b
2139
+ } = t, { className: m, ...x } = d, { className: S, ...g } = h;
2135
2140
  return /* @__PURE__ */ o.jsxs(
2136
2141
  "div",
2137
2142
  {
2138
- className: S(
2143
+ className: w(
2139
2144
  It.tag,
2140
- It[s],
2145
+ It[a],
2141
2146
  It[i],
2142
2147
  {
2143
2148
  [It.disabled]: l,
2144
- [G["typography-label-3-regular"]]: s === "medium",
2145
- [G["typography-subtitle-1-semibold"]]: s === "large"
2149
+ [G["typography-label-3-regular"]]: a === "medium",
2150
+ [G["typography-subtitle-1-semibold"]]: a === "large"
2146
2151
  },
2147
2152
  n
2148
2153
  ),
2149
- "data-testid": m || "tag-component",
2154
+ "data-testid": b || "tag-component",
2150
2155
  ref: r,
2151
2156
  children: [
2152
- u && /* @__PURE__ */ o.jsx("span", { className: S([It.iconWrapper, h]), ...x, children: u }),
2153
- c && /* @__PURE__ */ o.jsx("span", { className: S([It.label]), children: a }),
2154
- f && /* @__PURE__ */ o.jsx("span", { className: S([It.iconWrapper, C]), ...b, children: f })
2157
+ u && /* @__PURE__ */ o.jsx("span", { className: w([It.iconWrapper, m]), ...x, children: u }),
2158
+ c && /* @__PURE__ */ o.jsx("span", { className: w([It.label]), children: s }),
2159
+ f && /* @__PURE__ */ o.jsx("span", { className: w([It.iconWrapper, S]), ...g, children: f })
2155
2160
  ]
2156
2161
  }
2157
2162
  );
@@ -2169,7 +2174,7 @@ const La = (t) => {
2169
2174
  width: t = 12,
2170
2175
  height: r = 9,
2171
2176
  className: n = "",
2172
- color: a = "currentColor",
2177
+ color: s = "currentColor",
2173
2178
  ...i
2174
2179
  }) => /* @__PURE__ */ o.jsx(
2175
2180
  "svg",
@@ -2187,7 +2192,7 @@ const La = (t) => {
2187
2192
  fillRule: "evenodd",
2188
2193
  clipRule: "evenodd",
2189
2194
  d: "M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",
2190
- fill: a
2195
+ fill: s
2191
2196
  }
2192
2197
  )
2193
2198
  }
@@ -2195,7 +2200,7 @@ const La = (t) => {
2195
2200
  width: t = 12,
2196
2201
  height: r = 2,
2197
2202
  className: n = "",
2198
- color: a = "currentColor",
2203
+ color: s = "currentColor",
2199
2204
  ...i
2200
2205
  }) => /* @__PURE__ */ o.jsx(
2201
2206
  "svg",
@@ -2213,7 +2218,7 @@ const La = (t) => {
2213
2218
  fillRule: "evenodd",
2214
2219
  clipRule: "evenodd",
2215
2220
  d: "M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",
2216
- fill: a
2221
+ fill: s
2217
2222
  }
2218
2223
  )
2219
2224
  }
@@ -2224,10 +2229,10 @@ const La = (t) => {
2224
2229
  size: t,
2225
2230
  isChecked: r,
2226
2231
  isDisabled: n,
2227
- indeterminate: a,
2232
+ indeterminate: s,
2228
2233
  dataTestId: i
2229
2234
  }) => {
2230
- const { width: s, height: l } = Fs[t];
2235
+ const { width: a, height: l } = Fs[t];
2231
2236
  return /* @__PURE__ */ o.jsx(
2232
2237
  "div",
2233
2238
  {
@@ -2235,29 +2240,29 @@ const La = (t) => {
2235
2240
  "data-testid": `${i}-icon`,
2236
2241
  "data-checked": r,
2237
2242
  "data-disabled": n,
2238
- "data-indeterminate": a,
2239
- children: a ? /* @__PURE__ */ o.jsx(Ds, { width: s, height: l }) : /* @__PURE__ */ o.jsx(Ps, { width: s, height: l })
2243
+ "data-indeterminate": s,
2244
+ children: s ? /* @__PURE__ */ o.jsx(Ds, { width: a, height: l }) : /* @__PURE__ */ o.jsx(Ps, { width: a, height: l })
2240
2245
  }
2241
2246
  );
2242
2247
  }, J1 = U((t, r) => {
2243
2248
  const {
2244
2249
  name: n,
2245
- value: a,
2250
+ value: s,
2246
2251
  size: i = "medium",
2247
- indeterminate: s = !1,
2252
+ indeterminate: a = !1,
2248
2253
  loading: l = !1,
2249
2254
  error: c,
2250
2255
  disabled: u = !1,
2251
2256
  containerClassName: f,
2252
2257
  className: d,
2253
- containerStyle: g,
2254
- style: m,
2255
- children: h,
2258
+ containerStyle: h,
2259
+ style: b,
2260
+ children: m,
2256
2261
  clickableLabel: x = !0,
2257
- tabIndex: C,
2258
- onChange: b,
2262
+ tabIndex: S,
2263
+ onChange: g,
2259
2264
  "data-testid": y = "checkbox"
2260
- } = t, [p, w] = gt(!1), k = a ?? p, T = u || l, $ = !!c, E = k || s, z = S(Lt.container, Lt[i], f), B = S(
2265
+ } = t, [p, C] = gt(!1), k = s ?? p, T = u || l, $ = !!c, E = k || a, z = w(Lt.container, Lt[i], f), B = w(
2261
2266
  Lt.checkbox,
2262
2267
  Lt[i],
2263
2268
  {
@@ -2265,12 +2270,12 @@ const La = (t) => {
2265
2270
  },
2266
2271
  d
2267
2272
  ), F = (M) => {
2268
- T || (w(M.target.checked), b == null || b(M.target.checked, M));
2273
+ T || (C(M.target.checked), g == null || g(M.target.checked, M));
2269
2274
  }, q = (M) => {
2270
2275
  if (M.key === "Enter" && !T) {
2271
2276
  M.preventDefault();
2272
2277
  const W = !E;
2273
- w(W), b == null || b(W);
2278
+ C(W), g == null || g(W);
2274
2279
  }
2275
2280
  }, D = (M) => {
2276
2281
  x || M.preventDefault();
@@ -2280,16 +2285,16 @@ const La = (t) => {
2280
2285
  {
2281
2286
  className: z,
2282
2287
  htmlFor: n,
2283
- style: g,
2288
+ style: h,
2284
2289
  "data-testid": y,
2285
2290
  "data-clickable-label": x,
2286
2291
  children: [
2287
2292
  /* @__PURE__ */ o.jsx("div", { className: Lt.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
2288
2293
  "div",
2289
2294
  {
2290
- tabIndex: C || 0,
2295
+ tabIndex: S || 0,
2291
2296
  className: B,
2292
- style: m,
2297
+ style: b,
2293
2298
  onKeyDown: q,
2294
2299
  "aria-checked": E,
2295
2300
  "aria-disabled": T,
@@ -2322,21 +2327,21 @@ const La = (t) => {
2322
2327
  size: i,
2323
2328
  isChecked: E,
2324
2329
  isDisabled: T,
2325
- indeterminate: s,
2330
+ indeterminate: a,
2326
2331
  dataTestId: y
2327
2332
  }
2328
2333
  )
2329
2334
  ]
2330
2335
  }
2331
2336
  ) }),
2332
- h && /* @__PURE__ */ o.jsx(
2337
+ m && /* @__PURE__ */ o.jsx(
2333
2338
  "span",
2334
2339
  {
2335
2340
  "data-testid": `${y}-label-text`,
2336
2341
  "data-clickable-label": x,
2337
2342
  className: Lt.label,
2338
2343
  onClick: D,
2339
- children: h
2344
+ children: m
2340
2345
  }
2341
2346
  )
2342
2347
  ]
@@ -2397,7 +2402,7 @@ const La = (t) => {
2397
2402
  width: t = 8,
2398
2403
  height: r = 8,
2399
2404
  className: n,
2400
- color: a = "#AABBCA"
2405
+ color: s = "#AABBCA"
2401
2406
  }) => /* @__PURE__ */ o.jsx(
2402
2407
  "svg",
2403
2408
  {
@@ -2413,7 +2418,7 @@ const La = (t) => {
2413
2418
  fillRule: "evenodd",
2414
2419
  clipRule: "evenodd",
2415
2420
  d: "M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",
2416
- fill: a
2421
+ fill: s
2417
2422
  }
2418
2423
  )
2419
2424
  }
@@ -2421,13 +2426,13 @@ const La = (t) => {
2421
2426
  className: t = "",
2422
2427
  style: r,
2423
2428
  size: n = "md",
2424
- color: a = "currentColor",
2429
+ color: s = "currentColor",
2425
2430
  onClick: i,
2426
- ...s
2431
+ ...a
2427
2432
  }) => {
2428
2433
  const c = {
2429
2434
  display: "inline-block",
2430
- color: a,
2435
+ color: s,
2431
2436
  ...{
2432
2437
  xxxs: { width: "8px", height: "8px" },
2433
2438
  xxs: { width: "12px", height: "12px" },
@@ -2447,7 +2452,7 @@ const La = (t) => {
2447
2452
  fill: "none",
2448
2453
  xmlns: "http://www.w3.org/2000/svg",
2449
2454
  onClick: i,
2450
- ...s,
2455
+ ...a,
2451
2456
  children: /* @__PURE__ */ o.jsx(
2452
2457
  "path",
2453
2458
  {
@@ -2461,95 +2466,95 @@ const La = (t) => {
2461
2466
  }
2462
2467
  );
2463
2468
  }, Ri = (t, r) => {
2464
- const n = Vt(null), a = Vt(null);
2469
+ const n = Vt(null), s = Vt(null);
2465
2470
  return ut(() => {
2466
- const i = r === "textarea" ? n.current : a.current;
2471
+ const i = r === "textarea" ? n.current : s.current;
2467
2472
  i && i.value !== t && (i.value = t || "");
2468
2473
  }, [t, r]), {
2469
2474
  textareaRef: n,
2470
- inputRef: a,
2471
- currentRef: r === "textarea" ? n : a
2475
+ inputRef: s,
2476
+ currentRef: r === "textarea" ? n : s
2472
2477
  };
2473
2478
  }, Ii = (t, r, n) => {
2474
- const a = () => {
2479
+ const s = () => {
2475
2480
  if (!n.current || r !== "hug") return;
2476
2481
  const i = n.current.scrollTop;
2477
2482
  if (n.current.style.setProperty("height", "auto", "important"), !t) return;
2478
- const s = n.current.scrollHeight + "px";
2479
- n.current.style.setProperty("height", s, "important"), n.current.scrollTop = i;
2483
+ const a = n.current.scrollHeight + "px";
2484
+ n.current.style.setProperty("height", a, "important"), n.current.scrollTop = i;
2480
2485
  const l = n.current.closest(`.${I.wrapper}`);
2481
2486
  l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
2482
2487
  };
2483
- return ut(a, [t, r]), ut(() => {
2484
- r === "hug" && n.current && a();
2485
- }, []), { resizeTextArea: a };
2486
- }, Ni = (t, r, n, a) => ({ handleGripMouseDown: jt(
2487
- (s) => {
2488
- if (!t || r || n || !(a === "fixed" || !a)) return;
2489
- s.preventDefault(), s.stopPropagation();
2490
- const l = s.currentTarget.closest(`.${I.wrapper}`);
2488
+ return ut(s, [t, r]), ut(() => {
2489
+ r === "hug" && n.current && s();
2490
+ }, []), { resizeTextArea: s };
2491
+ }, Ni = (t, r, n, s) => ({ handleGripMouseDown: jt(
2492
+ (a) => {
2493
+ if (!t || r || n || !(s === "fixed" || !s)) return;
2494
+ a.preventDefault(), a.stopPropagation();
2495
+ const l = a.currentTarget.closest(`.${I.wrapper}`);
2491
2496
  if (!l) return;
2492
- const c = s.clientY, u = l.clientHeight, f = (g) => {
2493
- const m = g.clientY - c, h = Math.min(100, u), x = Math.max(h, u + m);
2497
+ const c = a.clientY, u = l.clientHeight, f = (h) => {
2498
+ const b = h.clientY - c, m = Math.min(100, u), x = Math.max(m, u + b);
2494
2499
  l.style.height = `${x}px`;
2495
2500
  }, d = () => {
2496
2501
  document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", d);
2497
2502
  };
2498
2503
  document.addEventListener("mousemove", f), document.addEventListener("mouseup", d);
2499
2504
  },
2500
- [t, r, n, a]
2505
+ [t, r, n, s]
2501
2506
  ) }), Xe = 30, Mi = U(
2502
2507
  ({
2503
2508
  component: t = "input",
2504
2509
  size: r = "L",
2505
2510
  value: n = "",
2506
- placeholder: a,
2511
+ placeholder: s,
2507
2512
  disabled: i = !1,
2508
- loading: s = !1,
2513
+ loading: a = !1,
2509
2514
  onFocus: l,
2510
2515
  onBlur: c,
2511
2516
  onChange: u,
2512
2517
  onKeyDown: f,
2513
2518
  onKeyUp: d,
2514
- maxLength: g,
2515
- className: m,
2516
- style: h,
2519
+ maxLength: h,
2520
+ className: b,
2521
+ style: m,
2517
2522
  truncate: x = !1,
2518
- shouldShowFloatingLabelClass: C = !1,
2519
- "aria-invalid": b,
2523
+ shouldShowFloatingLabelClass: S = !1,
2524
+ "aria-invalid": g,
2520
2525
  "aria-errormessage": y,
2521
2526
  id: p,
2522
- resize: w,
2527
+ resize: C,
2523
2528
  ...k
2524
2529
  }, T) => {
2525
2530
  const { textareaRef: $, inputRef: E, currentRef: z } = Ri(n, t);
2526
- if (Ii(n, w, $), Br(T, () => z.current, [z]), t === "textarea")
2531
+ if (Ii(n, C, $), Br(T, () => z.current, [z]), t === "textarea")
2527
2532
  return /* @__PURE__ */ o.jsx(
2528
2533
  "textarea",
2529
2534
  {
2530
2535
  ref: $,
2531
2536
  id: p,
2532
2537
  value: n,
2533
- placeholder: a,
2534
- disabled: i || s,
2538
+ placeholder: s,
2539
+ disabled: i || a,
2535
2540
  onFocus: l,
2536
2541
  onBlur: c,
2537
2542
  onChange: u,
2538
2543
  onKeyDown: f,
2539
2544
  onKeyUp: d,
2540
- maxLength: g,
2541
- className: S(
2545
+ maxLength: h,
2546
+ className: w(
2542
2547
  I.textarea,
2543
2548
  I[`size-${r}`],
2544
- C && I["with-floating-label"],
2545
- m
2549
+ S && I["with-floating-label"],
2550
+ b
2546
2551
  ),
2547
- style: h,
2548
- "aria-invalid": b,
2552
+ style: m,
2553
+ "aria-invalid": g,
2549
2554
  "aria-errormessage": y,
2550
2555
  "aria-describedby": y ? `${p}-error` : void 0,
2551
2556
  tabIndex: 0,
2552
- "data-resize": w,
2557
+ "data-resize": C,
2553
2558
  ...k
2554
2559
  }
2555
2560
  );
@@ -2560,23 +2565,23 @@ const La = (t) => {
2560
2565
  ref: E,
2561
2566
  id: p,
2562
2567
  value: n,
2563
- placeholder: a,
2564
- disabled: i || s,
2568
+ placeholder: s,
2569
+ disabled: i || a,
2565
2570
  onFocus: l,
2566
2571
  onBlur: c,
2567
2572
  onChange: u,
2568
2573
  onKeyDown: f,
2569
2574
  onKeyUp: d,
2570
- maxLength: g,
2571
- className: S(
2575
+ maxLength: h,
2576
+ className: w(
2572
2577
  I.input,
2573
2578
  I[`size-${r}`],
2574
- C && I["with-floating-label"],
2579
+ S && I["with-floating-label"],
2575
2580
  x && I.truncate,
2576
- m
2581
+ b
2577
2582
  ),
2578
- style: h,
2579
- "aria-invalid": b,
2583
+ style: m,
2584
+ "aria-invalid": g,
2580
2585
  "aria-errormessage": y,
2581
2586
  "aria-describedby": y ? `${p}-error` : void 0,
2582
2587
  tabIndex: 0,
@@ -2593,23 +2598,23 @@ const La = (t) => {
2593
2598
  children: t,
2594
2599
  size: r = "L",
2595
2600
  error: n = !1,
2596
- disabled: a = !1,
2601
+ disabled: s = !1,
2597
2602
  loading: i = !1,
2598
- className: s,
2603
+ className: a,
2599
2604
  wrapperProps: l,
2600
2605
  wrapperStyles: c,
2601
2606
  floatingLabelStyles: u,
2602
2607
  prefixStyles: f,
2603
2608
  suffixStyles: d,
2604
- labelProps: g,
2605
- helperProps: m,
2606
- showLimit: h = !1,
2609
+ labelProps: h,
2610
+ helperProps: b,
2611
+ showLimit: m = !1,
2607
2612
  maxLength: x,
2608
- hint: C,
2609
- showHint: b = !1,
2613
+ hint: S,
2614
+ showHint: g = !1,
2610
2615
  showHintOnEmpty: y = !1,
2611
2616
  prefix: p,
2612
- suffix: w,
2617
+ suffix: C,
2613
2618
  onSuffixClick: k,
2614
2619
  placeholder: T,
2615
2620
  showLabel: $ = !0,
@@ -2622,22 +2627,22 @@ const La = (t) => {
2622
2627
  showGrip: L = !1,
2623
2628
  ...M
2624
2629
  }, W) => {
2625
- const H = me(), Z = F || H, K = b && C && (z || y), ot = C && C.length > Xe ? C.substring(0, Xe) + "..." : C, rt = S(
2630
+ const H = me(), Z = F || H, K = g && S && (z || y), ot = S && S.length > Xe ? S.substring(0, Xe) + "..." : S, rt = w(
2626
2631
  I.wrapper,
2627
2632
  I[`size-${r}`],
2628
2633
  n && I.error,
2629
- a && I.disabled,
2634
+ s && I.disabled,
2630
2635
  i && I.loading,
2631
2636
  K && I["has-hint"],
2632
- w && I["has-suffix"],
2633
- h && I["has-limit"],
2634
- s
2635
- ), J = S(
2637
+ C && I["has-suffix"],
2638
+ m && I["has-limit"],
2639
+ a
2640
+ ), J = w(
2636
2641
  I.floatingLabel,
2637
2642
  I[r],
2638
2643
  z && I.filled,
2639
2644
  E
2640
- ), { handleGripMouseDown: at } = Ni(L, a, i, D);
2645
+ ), { handleGripMouseDown: at } = Ni(L, s, i, D);
2641
2646
  return /* @__PURE__ */ o.jsxs("div", { ref: W, className: I.inputBase, "data-testid": "input-base-wrapper", ...M, children: [
2642
2647
  /* @__PURE__ */ o.jsxs(
2643
2648
  "div",
@@ -2649,14 +2654,14 @@ const La = (t) => {
2649
2654
  ...l,
2650
2655
  children: [
2651
2656
  p && /* @__PURE__ */ o.jsx("label", { htmlFor: Z, className: I.leftSection, style: f, children: p }),
2652
- w && /* @__PURE__ */ o.jsx(
2657
+ C && /* @__PURE__ */ o.jsx(
2653
2658
  "label",
2654
2659
  {
2655
2660
  htmlFor: Z,
2656
2661
  className: I.rightSection,
2657
2662
  style: d,
2658
2663
  onClick: k,
2659
- children: w
2664
+ children: C
2660
2665
  }
2661
2666
  ),
2662
2667
  T && $ && /* @__PURE__ */ o.jsx(
@@ -2665,12 +2670,12 @@ const La = (t) => {
2665
2670
  htmlFor: Z,
2666
2671
  className: J,
2667
2672
  style: u,
2668
- ...g,
2673
+ ...h,
2669
2674
  children: T
2670
2675
  }
2671
2676
  ),
2672
2677
  t,
2673
- L && !h && (D === "fixed" || !D) && /* @__PURE__ */ o.jsx(
2678
+ L && !m && (D === "fixed" || !D) && /* @__PURE__ */ o.jsx(
2674
2679
  "div",
2675
2680
  {
2676
2681
  className: I.gripHandle,
@@ -2684,12 +2689,12 @@ const La = (t) => {
2684
2689
  K && /* @__PURE__ */ o.jsx(
2685
2690
  "div",
2686
2691
  {
2687
- className: S(I.hint, z && I.truncate),
2688
- "data-disabled": a || i,
2692
+ className: w(I.hint, z && I.truncate),
2693
+ "data-disabled": s || i,
2689
2694
  children: ot
2690
2695
  }
2691
2696
  ),
2692
- h && x && /* @__PURE__ */ o.jsxs("div", { className: I.characterLimit, children: [
2697
+ m && x && /* @__PURE__ */ o.jsxs("div", { className: I.characterLimit, children: [
2693
2698
  (q || "").length,
2694
2699
  " из ",
2695
2700
  x
@@ -2700,12 +2705,12 @@ const La = (t) => {
2700
2705
  B && /* @__PURE__ */ o.jsx(
2701
2706
  "div",
2702
2707
  {
2703
- className: S(
2708
+ className: w(
2704
2709
  I.helper,
2705
2710
  n && I.error,
2706
- (a || i) && I.disabled
2711
+ (s || i) && I.disabled
2707
2712
  ),
2708
- ...m,
2713
+ ...b,
2709
2714
  id: n ? `${Z}-error` : void 0,
2710
2715
  children: B
2711
2716
  }
@@ -2721,23 +2726,23 @@ const Ye = Object.assign(Mi, {
2721
2726
  component: t = "input",
2722
2727
  size: r = "L",
2723
2728
  className: n,
2724
- error: a = !1,
2729
+ error: s = !1,
2725
2730
  disabled: i = !1,
2726
- loading: s = !1,
2731
+ loading: a = !1,
2727
2732
  placeholder: l,
2728
2733
  showLabel: c = !0,
2729
2734
  labelClassName: u,
2730
2735
  helper: f,
2731
2736
  prefix: d,
2732
- suffix: g,
2733
- id: m,
2734
- onFocus: h,
2737
+ suffix: h,
2738
+ id: b,
2739
+ onFocus: m,
2735
2740
  onBlur: x,
2736
- onKeyDown: C,
2737
- onSuffixClick: b,
2741
+ onKeyDown: S,
2742
+ onSuffixClick: g,
2738
2743
  onChange: y,
2739
2744
  value: p = "",
2740
- wrapperProps: w,
2745
+ wrapperProps: C,
2741
2746
  wrapperStyles: k,
2742
2747
  floatingLabelStyles: T,
2743
2748
  prefixStyles: $,
@@ -2756,15 +2761,15 @@ const Ye = Object.assign(Mi, {
2756
2761
  showGrip: ot = !1,
2757
2762
  ...rt
2758
2763
  }, J) => {
2759
- const at = me(), st = m || at, [wt, xt] = gt(p), it = p !== void 0 ? p : wt, Tt = (it || "").length > 0, pt = it || "", Nt = c && (r === "XL" || t === "textarea") && !d, ee = jt(
2764
+ const at = me(), st = b || at, [wt, xt] = gt(p), it = p !== void 0 ? p : wt, Tt = (it || "").length > 0, pt = it || "", Nt = c && (r === "XL" || t === "textarea") && !d, ee = jt(
2760
2765
  (Q) => {
2761
2766
  var tt;
2762
- i || s || (h == null || h(), (tt = L == null ? void 0 : L.onFocus) == null || tt.call(
2767
+ i || a || (m == null || m(), (tt = L == null ? void 0 : L.onFocus) == null || tt.call(
2763
2768
  L,
2764
2769
  Q
2765
2770
  ));
2766
2771
  },
2767
- [h, L, i, s]
2772
+ [m, L, i, a]
2768
2773
  ), Zt = jt(
2769
2774
  (Q) => {
2770
2775
  var tt;
@@ -2791,14 +2796,14 @@ const Ye = Object.assign(Mi, {
2791
2796
  ), ne = jt(
2792
2797
  (Q) => {
2793
2798
  var vt;
2794
- if (i || s) return;
2799
+ if (i || a) return;
2795
2800
  const tt = Q.target.value;
2796
2801
  xt(tt), y == null || y(tt, Q), (vt = L == null ? void 0 : L.onChange) == null || vt.call(
2797
2802
  L,
2798
2803
  Q
2799
2804
  );
2800
2805
  },
2801
- [y, L, i, s]
2806
+ [y, L, i, a]
2802
2807
  );
2803
2808
  return ut(() => {
2804
2809
  xt(p || "");
@@ -2807,11 +2812,11 @@ const Ye = Object.assign(Mi, {
2807
2812
  {
2808
2813
  ref: J,
2809
2814
  size: r,
2810
- error: a,
2811
- disabled: i || s,
2812
- loading: s,
2813
- className: S(n, t === "textarea" && I["textarea-wrapper"]),
2814
- wrapperProps: w,
2815
+ error: s,
2816
+ disabled: i || a,
2817
+ loading: a,
2818
+ className: w(n, t === "textarea" && I["textarea-wrapper"]),
2819
+ wrapperProps: C,
2815
2820
  wrapperStyles: k,
2816
2821
  floatingLabelStyles: T,
2817
2822
  prefixStyles: $,
@@ -2824,8 +2829,8 @@ const Ye = Object.assign(Mi, {
2824
2829
  showHint: W,
2825
2830
  showHintOnEmpty: H,
2826
2831
  prefix: d,
2827
- suffix: g,
2828
- onSuffixClick: b,
2832
+ suffix: h,
2833
+ onSuffixClick: g,
2829
2834
  placeholder: l,
2830
2835
  showLabel: c,
2831
2836
  labelClassName: u,
@@ -2844,19 +2849,19 @@ const Ye = Object.assign(Mi, {
2844
2849
  value: pt,
2845
2850
  placeholder: l,
2846
2851
  disabled: i,
2847
- loading: s,
2852
+ loading: a,
2848
2853
  onFocus: ee,
2849
2854
  onBlur: re,
2850
2855
  onChange: ne,
2851
- onKeyDown: C,
2856
+ onKeyDown: S,
2852
2857
  onKeyUp: Zt,
2853
2858
  maxLength: D,
2854
2859
  truncate: Z,
2855
2860
  "data-empty": !Tt,
2856
2861
  shouldShowFloatingLabelClass: Nt,
2857
2862
  style: t === "textarea" ? z : void 0,
2858
- "aria-invalid": !!a,
2859
- "aria-errormessage": a ? `${st}-error` : void 0,
2863
+ "aria-invalid": !!s,
2864
+ "aria-errormessage": s ? `${st}-error` : void 0,
2860
2865
  id: st,
2861
2866
  resize: K,
2862
2867
  ...L
@@ -2870,12 +2875,12 @@ const Ye = Object.assign(Mi, {
2870
2875
  M: "M",
2871
2876
  L: "L",
2872
2877
  XL: "XL"
2873
- }, zi = (t, r, n, a) => {
2878
+ }, zi = (t, r, n, s) => {
2874
2879
  switch (t) {
2875
2880
  case V.XL:
2876
2881
  return r && n ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
2877
2882
  case V.L:
2878
- return a ? "12px 12px 12px 12px" : "12px 16px 12px 16px";
2883
+ return s ? "12px 12px 12px 12px" : "12px 16px 12px 16px";
2879
2884
  case V.M:
2880
2885
  return "10px 12px 10px 12px";
2881
2886
  case V.S:
@@ -2918,7 +2923,7 @@ const Ye = Object.assign(Mi, {
2918
2923
  default:
2919
2924
  return 12;
2920
2925
  }
2921
- }, Pi = (t, r, n, a) => ({
2926
+ }, Pi = (t, r, n, s) => ({
2922
2927
  wrapperStyles: {
2923
2928
  minHeight: t,
2924
2929
  maxHeight: t,
@@ -2932,13 +2937,13 @@ const Ye = Object.assign(Mi, {
2932
2937
  paddingRight: `${n}px`
2933
2938
  },
2934
2939
  suffixStyles: {
2935
- right: `${a}px`,
2940
+ right: `${s}px`,
2936
2941
  maxWidth: "32px",
2937
2942
  maxHeight: "32px",
2938
2943
  padding: "6px",
2939
2944
  cursor: "pointer"
2940
2945
  }
2941
- }), Di = (t, r, n, a) => ({
2946
+ }), Di = (t, r, n, s) => ({
2942
2947
  wrapperStyles: {
2943
2948
  height: t,
2944
2949
  minHeight: t,
@@ -2954,13 +2959,13 @@ const Ye = Object.assign(Mi, {
2954
2959
  paddingRight: `${n}px`
2955
2960
  },
2956
2961
  suffixStyles: {
2957
- right: `${a}px`,
2962
+ right: `${s}px`,
2958
2963
  maxWidth: "40px",
2959
2964
  maxHeight: "40px",
2960
2965
  padding: "8px",
2961
2966
  cursor: "pointer"
2962
2967
  }
2963
- }), Fi = (t, r, n, a) => ({
2968
+ }), Fi = (t, r, n, s) => ({
2964
2969
  wrapperStyles: {
2965
2970
  minHeight: t,
2966
2971
  maxHeight: t,
@@ -2974,7 +2979,7 @@ const Ye = Object.assign(Mi, {
2974
2979
  paddingRight: `${n}px`
2975
2980
  },
2976
2981
  suffixStyles: {
2977
- right: `${a}px`,
2982
+ right: `${s}px`,
2978
2983
  maxWidth: "40px",
2979
2984
  maxHeight: "40px",
2980
2985
  padding: "8px",
@@ -2983,7 +2988,7 @@ const Ye = Object.assign(Mi, {
2983
2988
  alignItems: "center",
2984
2989
  justifyContent: "center"
2985
2990
  }
2986
- }), Wi = (t, r, n, a) => ({
2991
+ }), Wi = (t, r, n, s) => ({
2987
2992
  wrapperStyles: {
2988
2993
  minHeight: t,
2989
2994
  maxHeight: t,
@@ -2997,23 +3002,23 @@ const Ye = Object.assign(Mi, {
2997
3002
  paddingRight: `${n}px`
2998
3003
  },
2999
3004
  suffixStyles: {
3000
- right: `${a}px`,
3005
+ right: `${s}px`,
3001
3006
  maxWidth: "32px",
3002
3007
  maxHeight: "32px",
3003
3008
  padding: "6px",
3004
3009
  cursor: "pointer"
3005
3010
  }
3006
- }), Hi = (t, r, n, a) => {
3007
- const i = Bi(t), s = zi(t, r, n, a), l = Oi(t), c = Ai(t);
3011
+ }), Hi = (t, r, n, s) => {
3012
+ const i = Bi(t), a = zi(t, r, n, s), l = Oi(t), c = Ai(t);
3008
3013
  switch (t) {
3009
3014
  case V.XL:
3010
- return Di(i, s, l, c);
3015
+ return Di(i, a, l, c);
3011
3016
  case V.L:
3012
- return Fi(i, s, l, c);
3017
+ return Fi(i, a, l, c);
3013
3018
  case V.M:
3014
- return Wi(i, s, l, c);
3019
+ return Wi(i, a, l, c);
3015
3020
  case V.S:
3016
- return Pi(i, s, l, c);
3021
+ return Pi(i, a, l, c);
3017
3022
  default:
3018
3023
  return {
3019
3024
  wrapperStyles: {},
@@ -3027,23 +3032,23 @@ const Ye = Object.assign(Mi, {
3027
3032
  value: t = "",
3028
3033
  onChange: r,
3029
3034
  type: n = "text",
3030
- placeholder: a,
3035
+ placeholder: s,
3031
3036
  maxLength: i,
3032
- minLength: s,
3037
+ minLength: a,
3033
3038
  autoComplete: l,
3034
3039
  autoFocus: c,
3035
3040
  size: u = V.L,
3036
3041
  inputProps: f,
3037
3042
  error: d,
3038
- disabled: g,
3039
- loading: m,
3040
- helper: h,
3043
+ disabled: h,
3044
+ loading: b,
3045
+ helper: m,
3041
3046
  prefix: x,
3042
- suffix: C,
3043
- clearable: b = !1,
3047
+ suffix: S,
3048
+ clearable: g = !1,
3044
3049
  id: y,
3045
3050
  showLabel: p = !0,
3046
- onFocus: w,
3051
+ onFocus: C,
3047
3052
  onBlur: k,
3048
3053
  onSuffixClick: T,
3049
3054
  onClear: $,
@@ -3057,7 +3062,7 @@ const Ye = Object.assign(Mi, {
3057
3062
  helperProps: M,
3058
3063
  ...W
3059
3064
  }, H) => {
3060
- const Z = (t || "").length > 0, K = u === V.XL, ot = !!x, rt = K && p && !x, J = b && Z && !(g || m), at = () => {
3065
+ const Z = (t || "").length > 0, K = u === V.XL, ot = !!x, rt = K && p && !x, J = g && Z && !(h || b), at = () => {
3061
3066
  r == null || r(""), $ == null || $();
3062
3067
  }, st = () => {
3063
3068
  J && at(), T == null || T();
@@ -3069,9 +3074,9 @@ const Ye = Object.assign(Mi, {
3069
3074
  style: { cursor: "pointer" },
3070
3075
  "data-testid": "x-icon"
3071
3076
  }
3072
- ) : C, xt = {
3077
+ ) : S, xt = {
3073
3078
  type: n,
3074
- minLength: s,
3079
+ minLength: a,
3075
3080
  autoComplete: l,
3076
3081
  autoFocus: c,
3077
3082
  ...f
@@ -3081,19 +3086,19 @@ const Ye = Object.assign(Mi, {
3081
3086
  {
3082
3087
  size: u,
3083
3088
  error: d,
3084
- disabled: g || m,
3085
- loading: m,
3086
- helper: h,
3089
+ disabled: h || b,
3090
+ loading: b,
3091
+ helper: m,
3087
3092
  prefix: x,
3088
3093
  suffix: wt,
3089
3094
  id: y,
3090
3095
  showLabel: rt,
3091
- onFocus: w,
3096
+ onFocus: C,
3092
3097
  onBlur: k,
3093
3098
  onSuffixClick: st,
3094
3099
  onChange: r,
3095
3100
  value: t,
3096
- placeholder: a,
3101
+ placeholder: s,
3097
3102
  className: E,
3098
3103
  wrapperStyles: it.wrapperStyles,
3099
3104
  floatingLabelStyles: it.floatingLabelStyles,
@@ -3205,15 +3210,15 @@ const Ye = Object.assign(Mi, {
3205
3210
  return "L";
3206
3211
  }
3207
3212
  return t;
3208
- }, Gi = (t) => Vi[t], Ui = (t) => Qt[t], Ki = (t, r, n, a) => {
3209
- const i = qi(t, r), s = Zi(t, r), l = Xi(t, r, n);
3213
+ }, Gi = (t) => Vi[t], Ui = (t) => Qt[t], Ki = (t, r, n, s) => {
3214
+ const i = qi(t, r), a = Zi(t, r), l = Xi(t, r, n);
3210
3215
  return {
3211
3216
  wrapperStyles: {
3212
3217
  minHeight: i,
3213
3218
  // Для fill resize устанавливаем height: 100%
3214
- ...a === Kt.FILL && { height: "100%" },
3219
+ ...s === Kt.FILL && { height: "100%" },
3215
3220
  // Для fixed resize устанавливаем фиксированную высоту
3216
- ...a === Kt.FIXED && r && { height: i },
3221
+ ...s === Kt.FIXED && r && { height: i },
3217
3222
  boxSizing: "border-box",
3218
3223
  padding: l
3219
3224
  },
@@ -3228,11 +3233,11 @@ const Ye = Object.assign(Mi, {
3228
3233
  boxSizing: "border-box"
3229
3234
  },
3230
3235
  textareaStyles: {
3231
- minHeight: s,
3236
+ minHeight: a,
3232
3237
  // Для fill resize flex: 1
3233
- ...a === Kt.FILL && { flex: 1, minHeight: 0 },
3238
+ ...s === Kt.FILL && { flex: 1, minHeight: 0 },
3234
3239
  // Для fixed resize фиксированная высота
3235
- ...a === Kt.FIXED && r && { height: s }
3240
+ ...s === Kt.FIXED && r && { height: a }
3236
3241
  }
3237
3242
  };
3238
3243
  }, tc = U(
@@ -3240,23 +3245,23 @@ const Ye = Object.assign(Mi, {
3240
3245
  value: t = "",
3241
3246
  onChange: r,
3242
3247
  placeholder: n,
3243
- maxLength: a,
3248
+ maxLength: s,
3244
3249
  minLength: i,
3245
- autoFocus: s,
3250
+ autoFocus: a,
3246
3251
  size: l = ft.L,
3247
3252
  textareaProps: c,
3248
3253
  error: u,
3249
3254
  disabled: f,
3250
3255
  loading: d,
3251
- helper: g,
3252
- suffix: m,
3253
- clearable: h = !1,
3256
+ helper: h,
3257
+ suffix: b,
3258
+ clearable: m = !1,
3254
3259
  id: x,
3255
- showLabel: C = !0,
3256
- onFocus: b,
3260
+ showLabel: S = !0,
3261
+ onFocus: g,
3257
3262
  onBlur: y,
3258
3263
  onClear: p,
3259
- onKeyDown: w,
3264
+ onKeyDown: C,
3260
3265
  className: k,
3261
3266
  rows: T = 1,
3262
3267
  showLimit: $ = !1,
@@ -3268,7 +3273,7 @@ const Ye = Object.assign(Mi, {
3268
3273
  resize: D,
3269
3274
  ...L
3270
3275
  }, M) => {
3271
- const W = (t || "").length > 0, H = C && !!n && (l === ft.M || q !== 48), Z = h && W && !(f || d), K = () => {
3276
+ const W = (t || "").length > 0, H = S && !!n && (l === ft.M || q !== 48), Z = m && W && !(f || d), K = () => {
3272
3277
  r == null || r(""), p == null || p();
3273
3278
  }, ot = () => {
3274
3279
  Z && K();
@@ -3280,10 +3285,10 @@ const Ye = Object.assign(Mi, {
3280
3285
  style: { cursor: "pointer" },
3281
3286
  "data-testid": "x-icon"
3282
3287
  }
3283
- ) : m, J = Ki(l, q, H && W, D), at = Yi(l, q), st = {
3288
+ ) : b, J = Ki(l, q, H && W, D), at = Yi(l, q), st = {
3284
3289
  rows: T,
3285
3290
  minLength: i,
3286
- autoFocus: s,
3291
+ autoFocus: a,
3287
3292
  resize: D,
3288
3293
  ...c
3289
3294
  };
@@ -3297,13 +3302,13 @@ const Ye = Object.assign(Mi, {
3297
3302
  disabled: f || d,
3298
3303
  loading: d,
3299
3304
  onSuffixClick: ot,
3300
- helper: g,
3305
+ helper: h,
3301
3306
  suffix: rt,
3302
3307
  id: x,
3303
3308
  showLabel: H,
3304
- onFocus: b,
3309
+ onFocus: g,
3305
3310
  onBlur: y,
3306
- onKeyDown: w,
3311
+ onKeyDown: C,
3307
3312
  onChange: r,
3308
3313
  value: t || "",
3309
3314
  placeholder: n,
@@ -3317,7 +3322,7 @@ const Ye = Object.assign(Mi, {
3317
3322
  labelProps: z,
3318
3323
  helperProps: B,
3319
3324
  showLimit: $ && (q === 112 || l === ft.M),
3320
- maxLength: a,
3325
+ maxLength: s,
3321
3326
  inputProps: st,
3322
3327
  resize: D,
3323
3328
  showGrip: F,
@@ -3333,13 +3338,13 @@ const Ye = Object.assign(Mi, {
3333
3338
  title: t,
3334
3339
  error: r,
3335
3340
  className: n = "",
3336
- style: a,
3341
+ style: s,
3337
3342
  disabled: i = !1,
3338
- "data-testid": s,
3343
+ "data-testid": a,
3339
3344
  "aria-label": l,
3340
3345
  "aria-describedby": c
3341
3346
  }) => {
3342
- const u = !!r, f = S(
3347
+ const u = !!r, f = w(
3343
3348
  _e.helper,
3344
3349
  u && _e["helper--error"],
3345
3350
  i && _e["helper--disabled"],
@@ -3349,8 +3354,8 @@ const Ye = Object.assign(Mi, {
3349
3354
  "div",
3350
3355
  {
3351
3356
  className: f,
3352
- style: a,
3353
- "data-testid": s,
3357
+ style: s,
3358
+ "data-testid": a,
3354
3359
  "aria-label": l,
3355
3360
  "aria-describedby": c,
3356
3361
  children: /* @__PURE__ */ o.jsx("p", { children: d })
@@ -3377,43 +3382,43 @@ const Ye = Object.assign(Mi, {
3377
3382
  (t, r) => {
3378
3383
  const {
3379
3384
  name: n,
3380
- id: a,
3385
+ id: s,
3381
3386
  value: i,
3382
- size: s = "large",
3387
+ size: a = "large",
3383
3388
  loading: l = !1,
3384
3389
  error: c,
3385
3390
  disabled: u = !1,
3386
3391
  checked: f = !1,
3387
3392
  containerClassName: d,
3388
- className: g,
3389
- children: m,
3390
- clickable: h = "all",
3393
+ className: h,
3394
+ children: b,
3395
+ clickable: m = "all",
3391
3396
  mode: x = "default",
3392
- tabIndex: C,
3393
- style: b,
3397
+ tabIndex: S,
3398
+ style: g,
3394
3399
  containerStyle: y,
3395
3400
  onChange: p,
3396
- "data-testid": w,
3401
+ "data-testid": C,
3397
3402
  ...k
3398
- } = t, T = !!c, $ = u || l, E = h === "all", z = x === "card", B = _t[`${s}Card`], F = a ?? n, q = (H) => {
3403
+ } = t, T = !!c, $ = u || l, E = m === "all", z = x === "card", B = _t[`${a}Card`], F = s ?? n, q = (H) => {
3399
3404
  $ || p == null || p(i, H);
3400
3405
  }, D = (H) => {
3401
3406
  H.key === "Enter" && !$ && (H.preventDefault(), p == null || p(i));
3402
3407
  }, L = (H) => H.stopPropagation(), M = () => /* @__PURE__ */ o.jsxs(
3403
3408
  "div",
3404
3409
  {
3405
- className: S(
3410
+ className: w(
3406
3411
  _t.radio,
3407
- _t[s],
3412
+ _t[a],
3408
3413
  {
3409
3414
  [_t.checked]: f,
3410
3415
  [_t.disabled]: $,
3411
3416
  [_t.error]: T && !$
3412
3417
  },
3413
- g
3418
+ h
3414
3419
  ),
3415
- style: b,
3416
- tabIndex: C || 1,
3420
+ style: g,
3421
+ tabIndex: S || 1,
3417
3422
  "data-testid": `${fl}${F}`,
3418
3423
  children: [
3419
3424
  /* @__PURE__ */ o.jsx(
@@ -3442,31 +3447,31 @@ const Ye = Object.assign(Mi, {
3442
3447
  {
3443
3448
  "aria-checked": f,
3444
3449
  "aria-disabled": $,
3445
- "data-testid": E ? w : gl,
3450
+ "data-testid": E ? C : gl,
3446
3451
  htmlFor: F,
3447
3452
  style: y,
3448
- className: S(_t.label, {
3449
- [S(_t.container, _t[x], d)]: E,
3453
+ className: w(_t.label, {
3454
+ [w(_t.container, _t[x], d)]: E,
3450
3455
  [B]: E && z
3451
3456
  }),
3452
3457
  onKeyDown: D,
3453
3458
  ...k,
3454
3459
  children: [
3455
3460
  M(),
3456
- E && m
3461
+ E && b
3457
3462
  ]
3458
3463
  }
3459
3464
  );
3460
3465
  return E ? W() : /* @__PURE__ */ o.jsxs(
3461
3466
  "div",
3462
3467
  {
3463
- className: S(_t.container, _t[x], d, {
3468
+ className: w(_t.container, _t[x], d, {
3464
3469
  [B]: z
3465
3470
  }),
3466
- "data-testid": w,
3471
+ "data-testid": C,
3467
3472
  children: [
3468
3473
  W(),
3469
- m
3474
+ b
3470
3475
  ]
3471
3476
  }
3472
3477
  );
@@ -3479,39 +3484,39 @@ const Ye = Object.assign(Mi, {
3479
3484
  (t, r) => {
3480
3485
  const {
3481
3486
  id: n,
3482
- name: a,
3487
+ name: s,
3483
3488
  value: i,
3484
- options: s,
3489
+ options: a,
3485
3490
  className: l,
3486
3491
  radioClassName: c,
3487
3492
  disabled: u = !1,
3488
3493
  layout: f = "vertical",
3489
3494
  "data-testid": d,
3490
- ...g
3495
+ ...h
3491
3496
  } = t;
3492
3497
  return /* @__PURE__ */ o.jsx(
3493
3498
  "div",
3494
3499
  {
3495
3500
  className: Et(Ge.group, Ge[f], l),
3496
- "data-testid": d ?? `radio-group-${a}`,
3501
+ "data-testid": d ?? `radio-group-${s}`,
3497
3502
  id: n,
3498
3503
  ref: r,
3499
- children: s.map(({ label: m, value: h, disabled: x }) => {
3500
- const C = `${a}-${String(h)}`, b = String(h) === String(i);
3504
+ children: a.map(({ label: b, value: m, disabled: x }) => {
3505
+ const S = `${s}-${String(m)}`, g = String(m) === String(i);
3501
3506
  return /* @__PURE__ */ o.jsx(
3502
3507
  dr,
3503
3508
  {
3504
- id: C,
3505
- checked: b,
3506
- "data-testid": C,
3509
+ id: S,
3510
+ checked: g,
3511
+ "data-testid": S,
3507
3512
  disabled: u || x,
3508
- name: a,
3509
- value: h,
3513
+ name: s,
3514
+ value: m,
3510
3515
  className: c,
3511
- ...g,
3512
- children: m
3516
+ ...h,
3517
+ children: b
3513
3518
  },
3514
- C
3519
+ S
3515
3520
  );
3516
3521
  })
3517
3522
  }
@@ -3528,15 +3533,15 @@ const Ye = Object.assign(Mi, {
3528
3533
  lg: kl,
3529
3534
  xl: Ll
3530
3535
  }, jl = (t) => {
3531
- const { children: r, className: n, "data-testid": a = "list-item" } = t;
3532
- return /* @__PURE__ */ o.jsx("li", { "data-testid": a, className: n, children: r });
3536
+ const { children: r, className: n, "data-testid": s = "list-item" } = t;
3537
+ return /* @__PURE__ */ o.jsx("li", { "data-testid": s, className: n, children: r });
3533
3538
  }, nc = Object.assign(
3534
3539
  U((t, r) => {
3535
3540
  const {
3536
3541
  variant: n = "unordered",
3537
- className: a,
3542
+ className: s,
3538
3543
  children: i,
3539
- size: s = "md",
3544
+ size: a = "md",
3540
3545
  "data-testid": l = "list",
3541
3546
  ...c
3542
3547
  } = t, u = n === "ordered" ? "ol" : "ul";
@@ -3545,7 +3550,7 @@ const Ye = Object.assign(Mi, {
3545
3550
  {
3546
3551
  "data-testid": l,
3547
3552
  ref: r,
3548
- className: Et(fe.root, fe[n], fe[s], a),
3553
+ className: Et(fe.root, fe[n], fe[a], s),
3549
3554
  ...n === "ordered" && c,
3550
3555
  children: i
3551
3556
  }
@@ -3569,9 +3574,9 @@ const Ye = Object.assign(Mi, {
3569
3574
  children: t,
3570
3575
  withControls: r = !0,
3571
3576
  className: n,
3572
- size: a
3577
+ size: s
3573
3578
  }) => {
3574
- const i = Vt(null), [s, l] = gt(!1), [c, u] = gt(!1), { ref: f, bgColor: d } = xe(), g = f ?? { current: null }, m = d ?? Dl, h = r && s, x = r && c, C = ({ direction: p }) => /* @__PURE__ */ o.jsx(
3579
+ const i = Vt(null), [a, l] = gt(!1), [c, u] = gt(!1), { ref: f, bgColor: d } = xe(), h = f ?? { current: null }, b = d ?? Dl, m = r && a, x = r && c, S = ({ direction: p }) => /* @__PURE__ */ o.jsx(
3575
3580
  "svg",
3576
3581
  {
3577
3582
  height: "12px",
@@ -3586,60 +3591,60 @@ const Ye = Object.assign(Mi, {
3586
3591
  }
3587
3592
  ) })
3588
3593
  }
3589
- ), b = () => {
3594
+ ), g = () => {
3590
3595
  const p = i.current;
3591
3596
  if (!p) return;
3592
- const w = Math.round(p.scrollLeft), k = Math.round(p.scrollLeft + p.clientWidth), T = Math.round(p.scrollWidth);
3593
- l(w > 0), u(k < T);
3597
+ const C = Math.round(p.scrollLeft), k = Math.round(p.scrollLeft + p.clientWidth), T = Math.round(p.scrollWidth);
3598
+ l(C > 0), u(k < T);
3594
3599
  }, y = (p) => {
3595
- const w = i.current;
3596
- if (!w) return;
3597
- const k = w.clientWidth;
3598
- w.scrollBy({ left: p === "left" ? -k : k, behavior: "smooth" });
3600
+ const C = i.current;
3601
+ if (!C) return;
3602
+ const k = C.clientWidth;
3603
+ C.scrollBy({ left: p === "left" ? -k : k, behavior: "smooth" });
3599
3604
  };
3600
3605
  return ut(() => {
3601
3606
  const p = i.current;
3602
3607
  if (!p) return;
3603
- const w = (k) => {
3608
+ const C = (k) => {
3604
3609
  Math.abs(k.deltaX) > Math.abs(k.deltaY) || p.scrollWidth > p.clientWidth && (k.preventDefault(), p.scrollBy({ left: k.deltaY, behavior: "auto" }));
3605
3610
  };
3606
- return p.addEventListener("wheel", w, { passive: !1 }), () => p.removeEventListener("wheel", w);
3611
+ return p.addEventListener("wheel", C, { passive: !1 }), () => p.removeEventListener("wheel", C);
3607
3612
  }, []), ut(() => {
3608
- b();
3613
+ g();
3609
3614
  const p = i.current;
3610
3615
  if (p)
3611
- return p.addEventListener("scroll", b, { passive: !0 }), window.addEventListener("resize", b), () => {
3612
- p.removeEventListener("scroll", b), window.removeEventListener("resize", b);
3616
+ return p.addEventListener("scroll", g, { passive: !0 }), window.addEventListener("resize", g), () => {
3617
+ p.removeEventListener("scroll", g), window.removeEventListener("resize", g);
3613
3618
  };
3614
- }, []), /* @__PURE__ */ o.jsxs("div", { ref: g, className: S(ct.wrapper, n), children: [
3615
- h && /* @__PURE__ */ o.jsx(
3619
+ }, []), /* @__PURE__ */ o.jsxs("div", { ref: h, className: w(ct.wrapper, n), children: [
3620
+ m && /* @__PURE__ */ o.jsx(
3616
3621
  "div",
3617
3622
  {
3618
- className: S(ct.mask, ct.maskLeft, s && ct.visible),
3623
+ className: w(ct.mask, ct.maskLeft, a && ct.visible),
3619
3624
  style: {
3620
- background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
3625
+ background: `linear-gradient(to right, ${b} 17%, transparent 80%)`
3621
3626
  }
3622
3627
  }
3623
3628
  ),
3624
3629
  x && /* @__PURE__ */ o.jsx(
3625
3630
  "div",
3626
3631
  {
3627
- className: S(ct.mask, ct.maskRight, c && ct.visible),
3632
+ className: w(ct.mask, ct.maskRight, c && ct.visible),
3628
3633
  style: {
3629
- background: `linear-gradient(to left, ${m} 17%, transparent 80%)`
3634
+ background: `linear-gradient(to left, ${b} 17%, transparent 80%)`
3630
3635
  }
3631
3636
  }
3632
3637
  ),
3633
3638
  /* @__PURE__ */ o.jsx("div", { ref: i, className: ct.viewport, children: t }),
3634
- h && /* @__PURE__ */ o.jsx(
3639
+ m && /* @__PURE__ */ o.jsx(
3635
3640
  "button",
3636
3641
  {
3637
3642
  type: "button",
3638
3643
  tabIndex: -1,
3639
3644
  "aria-hidden": "true",
3640
- className: S(ct.control, ct.left, ct[a]),
3645
+ className: w(ct.control, ct.left, ct[s]),
3641
3646
  onClick: () => y("left"),
3642
- children: /* @__PURE__ */ o.jsx(C, { direction: "left" })
3647
+ children: /* @__PURE__ */ o.jsx(S, { direction: "left" })
3643
3648
  }
3644
3649
  ),
3645
3650
  x && /* @__PURE__ */ o.jsx(
@@ -3648,9 +3653,9 @@ const Ye = Object.assign(Mi, {
3648
3653
  type: "button",
3649
3654
  tabIndex: -1,
3650
3655
  "aria-hidden": "true",
3651
- className: S(ct.control, ct.right, ct[a]),
3656
+ className: w(ct.control, ct.right, ct[s]),
3652
3657
  onClick: () => y("right"),
3653
- children: /* @__PURE__ */ o.jsx(C, { direction: "right" })
3658
+ children: /* @__PURE__ */ o.jsx(S, { direction: "right" })
3654
3659
  }
3655
3660
  )
3656
3661
  ] });
@@ -3675,19 +3680,19 @@ const Ye = Object.assign(Mi, {
3675
3680
  children: t,
3676
3681
  defaultActiveTab: r,
3677
3682
  activeTab: n,
3678
- onChange: a
3683
+ onChange: s
3679
3684
  }) => {
3680
- const [i, s] = gt(r), l = n !== void 0, c = l ? n : i, u = (f) => {
3681
- l || s(f), a && a(f);
3685
+ const [i, a] = gt(r), l = n !== void 0, c = l ? n : i, u = (f) => {
3686
+ l || a(f), s && s(f);
3682
3687
  };
3683
3688
  return /* @__PURE__ */ o.jsx(ur.Provider, { value: { activeTab: c, setTab: u }, children: t });
3684
3689
  }, a1 = ({
3685
3690
  mode: t,
3686
3691
  item: r,
3687
3692
  isActive: n,
3688
- showBadge: a,
3693
+ showBadge: s,
3689
3694
  badgeProps: i,
3690
- size: s,
3695
+ size: a,
3691
3696
  isDisabled: l,
3692
3697
  onSelectTab: c
3693
3698
  }) => {
@@ -3695,22 +3700,22 @@ const Ye = Object.assign(Mi, {
3695
3700
  value: u,
3696
3701
  label: f,
3697
3702
  prefix: d,
3698
- prefixWrapperProps: g = {},
3699
- postfix: m,
3700
- postfixWrapperProps: h = {}
3701
- } = r, { className: x, ...C } = g, { className: b, ...y } = h, p = {
3703
+ prefixWrapperProps: h = {},
3704
+ postfix: b,
3705
+ postfixWrapperProps: m = {}
3706
+ } = r, { className: x, ...S } = h, { className: g, ...y } = m, p = {
3702
3707
  primary: G["typography-label-3-medium"],
3703
3708
  secondary: G["typography-label-3-regular"],
3704
3709
  prefix: G["typography-label-3-medium"],
3705
3710
  postfix: G["typography-label-3-medium"]
3706
- }, w = {
3711
+ }, C = {
3707
3712
  size: r1,
3708
3713
  position: n1,
3709
3714
  ...i
3710
- }, k = S(et.tab, et[t], et[s], {
3715
+ }, k = w(et.tab, et[t], et[a], {
3711
3716
  [et.selected]: n,
3712
3717
  [et.disabled]: l
3713
- }), T = S(
3718
+ }), T = w(
3714
3719
  et.tabPrefix,
3715
3720
  x,
3716
3721
  et[t],
@@ -3719,16 +3724,16 @@ const Ye = Object.assign(Mi, {
3719
3724
  [et.selected]: n,
3720
3725
  [et.disabled]: l
3721
3726
  }
3722
- ), $ = S(
3727
+ ), $ = w(
3723
3728
  et.tabPostfix,
3724
- b,
3729
+ g,
3725
3730
  et[t],
3726
3731
  p.postfix,
3727
3732
  {
3728
3733
  [et.selected]: n,
3729
3734
  [et.disabled]: l
3730
3735
  }
3731
- ), E = S(et.tabLabel, et[t], p[t]), z = (F) => {
3736
+ ), E = w(et.tabLabel, et[t], p[t]), z = (F) => {
3732
3737
  n || l || (c(u), F.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
3733
3738
  }, B = /* @__PURE__ */ o.jsxs(
3734
3739
  "button",
@@ -3746,39 +3751,39 @@ const Ye = Object.assign(Mi, {
3746
3751
  "span",
3747
3752
  {
3748
3753
  className: T,
3749
- ...C,
3754
+ ...S,
3750
3755
  "data-testid": `tab-prefix-${u}`,
3751
3756
  children: d
3752
3757
  }
3753
3758
  ),
3754
3759
  /* @__PURE__ */ o.jsx("span", { className: E, "data-testid": `tab-label-${u}`, children: f }),
3755
- m && /* @__PURE__ */ o.jsx(
3760
+ b && /* @__PURE__ */ o.jsx(
3756
3761
  "span",
3757
3762
  {
3758
3763
  className: $,
3759
3764
  ...y,
3760
3765
  "data-testid": `tab-postfix-${u}`,
3761
- children: m
3766
+ children: b
3762
3767
  }
3763
3768
  )
3764
3769
  ]
3765
3770
  }
3766
3771
  );
3767
- return a ? /* @__PURE__ */ o.jsx(Na, { ...w, "data-testid": `tab-badge-${u}`, children: B }) : B;
3772
+ return s ? /* @__PURE__ */ o.jsx(Na, { ...C, "data-testid": `tab-badge-${u}`, children: B }) : B;
3768
3773
  }, s1 = ({
3769
3774
  mode: t,
3770
3775
  items: r,
3771
3776
  size: n = t1,
3772
- isAllItemsDisabled: a = e1
3777
+ isAllItemsDisabled: s = e1
3773
3778
  }) => {
3774
- const { activeTab: i, setTab: s } = pr(), l = No();
3779
+ const { activeTab: i, setTab: a } = pr(), l = No();
3775
3780
  return /* @__PURE__ */ o.jsx(Fl, { size: n, withControls: l, children: /* @__PURE__ */ o.jsx(
3776
3781
  "div",
3777
3782
  {
3778
3783
  role: "tablist",
3779
3784
  "data-testid": "tabs-bar",
3780
3785
  "aria-orientation": "horizontal",
3781
- className: S(et.tabBar, et[t]),
3786
+ className: w(et.tabBar, et[t]),
3782
3787
  children: r.map((c) => /* @__PURE__ */ o.jsx(
3783
3788
  a1,
3784
3789
  {
@@ -3788,8 +3793,8 @@ const Ye = Object.assign(Mi, {
3788
3793
  showBadge: c.showBadge,
3789
3794
  badgeProps: c.badgeProps,
3790
3795
  isActive: i === c.value,
3791
- isDisabled: a || c.isDisabled,
3792
- onSelectTab: s
3796
+ isDisabled: s || c.isDisabled,
3797
+ onSelectTab: a
3793
3798
  },
3794
3799
  c.value
3795
3800
  ))
@@ -3805,8 +3810,8 @@ const Ye = Object.assign(Mi, {
3805
3810
  children: r
3806
3811
  }
3807
3812
  ), l1 = ({ children: t, ...r }) => {
3808
- const { activeTab: n } = pr(), a = Array.isArray(t) ? t : [t], i = (s, l) => be.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
3809
- return /* @__PURE__ */ o.jsx("div", { "data-testid": "tab-content", ...r, children: a.map((s) => i(s, "tabValue") && String(s.props.tabValue) === n ? s : null) });
3813
+ const { activeTab: n } = pr(), s = Array.isArray(t) ? t : [t], i = (a, l) => be.isValidElement(a) && typeof a.props == "object" && a.props !== null && l in a.props;
3814
+ return /* @__PURE__ */ o.jsx("div", { "data-testid": "tab-content", ...r, children: s.map((a) => i(a, "tabValue") && String(a.props.tabValue) === n ? a : null) });
3810
3815
  }, oc = {
3811
3816
  Provider: o1,
3812
3817
  Content: l1,
@@ -4000,28 +4005,28 @@ const Ye = Object.assign(Mi, {
4000
4005
  ]
4001
4006
  }
4002
4007
  }, E1 = (t, r, n) => ({ ...r, ...n ?? {}, ...t }), R1 = (t, r, n) => {
4003
- const a = go(r, 1, 3), i = T1[n][a];
4008
+ const s = go(r, 1, 3), i = T1[n][s];
4004
4009
  return i[Math.min(t, i.length - 1)];
4005
4010
  }, Ue = ({
4006
4011
  text: t,
4007
4012
  title: r,
4008
4013
  media: n,
4009
- variant: a = "neutral",
4014
+ variant: s = "neutral",
4010
4015
  size: i,
4011
- classNames: s = {},
4016
+ classNames: a = {},
4012
4017
  onClose: l,
4013
4018
  buttons: c,
4014
4019
  buttonProps: u,
4015
4020
  showClose: f
4016
4021
  }) => {
4017
- const d = ["neutral", "accent"].includes(a) ? "contrast" : "primary", g = i === "m", m = !!(r && g), h = !!(n && g), x = c && !!c.length, C = !!(f && g) || !f && g && !x, b = i === "xs" ? 4 : 3;
4022
+ const d = ["neutral", "accent"].includes(s) ? "contrast" : "primary", h = i === "m", b = !!(r && h), m = !!(n && h), x = c && !!c.length, S = !!(f && h) || !f && h && !x, g = i === "xs" ? 4 : 3;
4018
4023
  return /* @__PURE__ */ o.jsxs("div", { className: dt.content, children: [
4019
- h && /* @__PURE__ */ o.jsx("div", { className: S(dt.mediaWrapper, s.mediaWrapper), children: n }),
4020
- /* @__PURE__ */ o.jsxs("div", { className: s.textWrapper, children: [
4021
- m && /* @__PURE__ */ o.jsx(
4024
+ m && /* @__PURE__ */ o.jsx("div", { className: w(dt.mediaWrapper, a.mediaWrapper), children: n }),
4025
+ /* @__PURE__ */ o.jsxs("div", { className: a.textWrapper, children: [
4026
+ b && /* @__PURE__ */ o.jsx(
4022
4027
  he.Subtitle,
4023
4028
  {
4024
- className: S(dt.typography, dt.title, s.typography),
4029
+ className: w(dt.typography, dt.title, a.typography),
4025
4030
  size: 1,
4026
4031
  as: "h3",
4027
4032
  typographyStyle: d,
@@ -4031,19 +4036,19 @@ const Ye = Object.assign(Mi, {
4031
4036
  /* @__PURE__ */ o.jsx(
4032
4037
  he.Label,
4033
4038
  {
4034
- className: S(dt.typography, dt.text, s.typography),
4039
+ className: w(dt.typography, dt.text, a.typography),
4035
4040
  typographyStyle: d,
4036
- size: b,
4041
+ size: g,
4037
4042
  children: t
4038
4043
  }
4039
4044
  )
4040
4045
  ] }),
4041
- C && /* @__PURE__ */ o.jsx(
4046
+ S && /* @__PURE__ */ o.jsx(
4042
4047
  "button",
4043
4048
  {
4044
4049
  type: "button",
4045
- className: S(dt.closeButton, dt[a], s.closeButton, {
4046
- [dt.hasMedia]: h
4050
+ className: w(dt.closeButton, dt[s], a.closeButton, {
4051
+ [dt.hasMedia]: m
4047
4052
  }),
4048
4053
  onClick: l,
4049
4054
  "aria-label": "Закрыть подсказку",
@@ -4051,8 +4056,8 @@ const Ye = Object.assign(Mi, {
4051
4056
  children: /* @__PURE__ */ o.jsx(k1, {})
4052
4057
  }
4053
4058
  ),
4054
- g && x && /* @__PURE__ */ o.jsx("div", { className: dt.buttonStack, children: c.map((y, p) => {
4055
- const w = R1(p, c.length, a), k = E1(y, w, u), { closeOnClick: T, ...$ } = k, E = (z) => {
4059
+ h && x && /* @__PURE__ */ o.jsx("div", { className: dt.buttonStack, children: c.map((y, p) => {
4060
+ const C = R1(p, c.length, s), k = E1(y, C, u), { closeOnClick: T, ...$ } = k, E = (z) => {
4056
4061
  var B;
4057
4062
  (B = $.onClick) == null || B.call($, z), T && (l == null || l());
4058
4063
  };
@@ -4063,43 +4068,43 @@ const Ye = Object.assign(Mi, {
4063
4068
  customContent: t,
4064
4069
  children: r,
4065
4070
  placement: n = "top",
4066
- contentClassNames: a,
4071
+ contentClassNames: s,
4067
4072
  mouseEnterDelay: i = 0,
4068
- mouseLeaveDelay: s = 0.1,
4073
+ mouseLeaveDelay: a = 0.1,
4069
4074
  showArrow: l = !0,
4070
4075
  showClose: c = !0,
4071
4076
  trigger: u = "hover",
4072
4077
  variant: f = "neutral",
4073
4078
  size: d = "s",
4074
- text: g,
4075
- title: m,
4076
- media: h,
4079
+ text: h,
4080
+ title: b,
4081
+ media: m,
4077
4082
  buttons: x,
4078
- buttonProps: C,
4079
- onClose: b,
4083
+ buttonProps: S,
4084
+ onClose: g,
4080
4085
  ...y
4081
4086
  }) => {
4082
- const [p, w] = gt(!1), [k, T] = gt(!1), $ = d === "m" ? j1 : $1, E = () => {
4083
- w(!1), b == null || b();
4087
+ const [p, C] = gt(!1), [k, T] = gt(!1), $ = d === "m" ? j1 : $1, E = () => {
4088
+ C(!1), g == null || g();
4084
4089
  }, z = t || (d === "m" ? /* @__PURE__ */ o.jsx(
4085
4090
  Ue,
4086
4091
  {
4087
- classNames: a,
4088
- text: g,
4092
+ classNames: s,
4093
+ text: h,
4089
4094
  variant: f,
4090
4095
  size: d,
4091
4096
  onClose: E,
4092
- title: m,
4093
- media: h,
4097
+ title: b,
4098
+ media: m,
4094
4099
  showClose: c,
4095
4100
  buttons: x,
4096
- buttonProps: C
4101
+ buttonProps: S
4097
4102
  }
4098
4103
  ) : /* @__PURE__ */ o.jsx(
4099
4104
  Ue,
4100
4105
  {
4101
- classNames: a,
4102
- text: g,
4106
+ classNames: s,
4107
+ text: h,
4103
4108
  variant: f,
4104
4109
  size: d,
4105
4110
  onClose: E
@@ -4115,16 +4120,16 @@ const Ye = Object.assign(Mi, {
4115
4120
  Zr,
4116
4121
  {
4117
4122
  visible: p,
4118
- onVisibleChange: w,
4123
+ onVisibleChange: C,
4119
4124
  classNames: {
4120
- root: S(dt.root, dt[f], dt[d], k && dt.open),
4125
+ root: w(dt.root, dt[f], dt[d], k && dt.open),
4121
4126
  ...y.classNames
4122
4127
  },
4123
4128
  placement: n,
4124
4129
  overlay: () => z,
4125
4130
  trigger: u,
4126
4131
  mouseEnterDelay: i,
4127
- mouseLeaveDelay: s,
4132
+ mouseLeaveDelay: a,
4128
4133
  motion: { motionName: "tooltipMotion" },
4129
4134
  builtinPlacements: $,
4130
4135
  showArrow: l ? {
@@ -4155,34 +4160,34 @@ const Ye = Object.assign(Mi, {
4155
4160
  const {
4156
4161
  className: r,
4157
4162
  defaultValue: n,
4158
- value: a,
4163
+ value: s,
4159
4164
  size: i = "m",
4160
- segments: s,
4165
+ segments: a,
4161
4166
  stretched: l,
4162
4167
  mode: c = "label",
4163
4168
  onChange: u
4164
- } = t, f = me(), [d, g] = gt(n || s[0].value), [m, h] = gt({ width: 0, left: 0 }), x = Vt(null);
4169
+ } = t, f = me(), [d, h] = gt(n || a[0].value), [b, m] = gt({ width: 0, left: 0 }), x = Vt(null);
4165
4170
  ut(() => {
4166
- a && g(a);
4167
- }, [a]), ut(() => {
4168
- C();
4169
- }, [d, s, i, l, c]);
4170
- const C = () => {
4171
+ s && h(s);
4172
+ }, [s]), ut(() => {
4173
+ S();
4174
+ }, [d, a, i, l, c]);
4175
+ const S = () => {
4171
4176
  if (!(x != null && x.current)) return;
4172
- const w = x.current.querySelector(
4177
+ const C = x.current.querySelector(
4173
4178
  '[data-is-active-segment="true"]'
4174
4179
  );
4175
- w && h({
4176
- width: w.offsetWidth,
4177
- left: w.offsetLeft
4180
+ C && m({
4181
+ width: C.offsetWidth,
4182
+ left: C.offsetLeft
4178
4183
  });
4179
- }, b = (p = s.find((w) => w.value === d)) == null ? void 0 : p.label, y = (w) => {
4180
- g(w), u == null || u(w);
4184
+ }, g = (p = a.find((C) => C.value === d)) == null ? void 0 : p.label, y = (C) => {
4185
+ h(C), u == null || u(C);
4181
4186
  };
4182
- return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
4187
+ return (a == null ? void 0 : a.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
4183
4188
  "div",
4184
4189
  {
4185
- className: S(
4190
+ className: w(
4186
4191
  Ot.segmentedControl,
4187
4192
  Ot[i],
4188
4193
  Ot[c],
@@ -4194,7 +4199,7 @@ const Ye = Object.assign(Mi, {
4194
4199
  "data-testid": "segmented-control-container",
4195
4200
  ref: x,
4196
4201
  children: [
4197
- s == null ? void 0 : s.map(({ label: w, value: k }, T) => {
4202
+ a == null ? void 0 : a.map(({ label: C, value: k }, T) => {
4198
4203
  const $ = () => y(k);
4199
4204
  return /* @__PURE__ */ o.jsxs(Ht, { children: [
4200
4205
  /* @__PURE__ */ o.jsx(
@@ -4211,10 +4216,10 @@ const Ye = Object.assign(Mi, {
4211
4216
  "label",
4212
4217
  {
4213
4218
  "data-is-active-segment": d === k,
4214
- className: S(Ot.segment, Ke[i]),
4219
+ className: w(Ot.segment, Ke[i]),
4215
4220
  htmlFor: f + JSON.stringify(k),
4216
4221
  "data-testid": "segmented-control-segment",
4217
- children: w
4222
+ children: C
4218
4223
  }
4219
4224
  )
4220
4225
  ] }, te(JSON.stringify(k)) + T);
@@ -4222,13 +4227,13 @@ const Ye = Object.assign(Mi, {
4222
4227
  /* @__PURE__ */ o.jsx(
4223
4228
  "div",
4224
4229
  {
4225
- className: S(Ot.activeSegmentIndicator, Ke[i]),
4230
+ className: w(Ot.activeSegmentIndicator, Ke[i]),
4226
4231
  "data-testid": "segmented-control-active-segment",
4227
4232
  style: {
4228
- width: m.width,
4229
- left: m.left
4233
+ width: b.width,
4234
+ left: b.left
4230
4235
  },
4231
- children: b
4236
+ children: g
4232
4237
  }
4233
4238
  )
4234
4239
  ]