alex-evo-sh-ui-kit 1.1.97 → 1.1.99

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.
@@ -17,8 +17,8 @@ function mt() {
17
17
  an = 1;
18
18
  var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
19
19
  function r(s, i, l) {
20
- var c = null;
21
- if (l !== void 0 && (c = "" + l), i.key !== void 0 && (c = "" + i.key), "key" in i) {
20
+ var a = null;
21
+ if (l !== void 0 && (a = "" + l), i.key !== void 0 && (a = "" + i.key), "key" in i) {
22
22
  l = {};
23
23
  for (var o in i)
24
24
  o !== "key" && (l[o] = i[o]);
@@ -26,7 +26,7 @@ function mt() {
26
26
  return i = l.ref, {
27
27
  $$typeof: n,
28
28
  type: s,
29
- key: c,
29
+ key: a,
30
30
  ref: i !== void 0 ? i : null,
31
31
  props: l
32
32
  };
@@ -52,11 +52,11 @@ function ft() {
52
52
  return v.$$typeof === O ? null : v.displayName || v.name || null;
53
53
  if (typeof v == "string") return v;
54
54
  switch (v) {
55
- case p:
55
+ case _:
56
56
  return "Fragment";
57
57
  case y:
58
58
  return "Profiler";
59
- case _:
59
+ case p:
60
60
  return "StrictMode";
61
61
  case T:
62
62
  return "Suspense";
@@ -110,7 +110,7 @@ function ft() {
110
110
  }
111
111
  }
112
112
  function s(v) {
113
- if (v === p) return "<>";
113
+ if (v === _) return "<>";
114
114
  if (typeof v == "object" && v !== null && v.$$typeof === w)
115
115
  return "<...>";
116
116
  try {
@@ -127,7 +127,7 @@ function ft() {
127
127
  function l() {
128
128
  return Error("react-stack-top-frame");
129
129
  }
130
- function c(v) {
130
+ function a(v) {
131
131
  if (b.call(v, "key")) {
132
132
  var L = Object.getOwnPropertyDescriptor(v, "key").get;
133
133
  if (L && L.isReactWarning) return !1;
@@ -146,7 +146,7 @@ function ft() {
146
146
  configurable: !0
147
147
  });
148
148
  }
149
- function a() {
149
+ function c() {
150
150
  var v = n(this.type);
151
151
  return U[v] || (U[v] = !0, console.error(
152
152
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
@@ -162,7 +162,7 @@ function ft() {
162
162
  _owner: q
163
163
  }, (J !== void 0 ? J : null) !== null ? Object.defineProperty(v, "ref", {
164
164
  enumerable: !1,
165
- get: a
165
+ get: c
166
166
  }) : Object.defineProperty(v, "ref", { enumerable: !1, value: null }), v._store = {}, Object.defineProperty(v._store, "validated", {
167
167
  configurable: !1,
168
168
  enumerable: !1,
@@ -216,7 +216,7 @@ React keys must be passed directly to JSX without using spread:
216
216
  J
217
217
  ), G[J + q] = !0);
218
218
  }
219
- if (J = null, R !== void 0 && (r(R), J = "" + R), c(L) && (r(L.key), J = "" + L.key), "key" in L) {
219
+ if (J = null, R !== void 0 && (r(R), J = "" + R), a(L) && (r(L.key), J = "" + L.key), "key" in L) {
220
220
  R = {};
221
221
  for (var z in L)
222
222
  z !== "key" && (R[z] = L[z]);
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
239
239
  function h(v) {
240
240
  return typeof v == "object" && v !== null && v.$$typeof === f;
241
241
  }
242
- var x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), C = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, b = Object.prototype.hasOwnProperty, D = Array.isArray, M = console.createTask ? console.createTask : function() {
242
+ var x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), C = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, b = Object.prototype.hasOwnProperty, D = Array.isArray, M = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  x = {
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
251
251
  x,
252
252
  l
253
253
  )(), H = M(s(l)), G = {};
254
- Me.Fragment = p, Me.jsx = function(v, L, R) {
254
+ Me.Fragment = _, Me.jsx = function(v, L, R) {
255
255
  var q = 1e4 > A.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
257
  v,
@@ -305,8 +305,8 @@ const _n = (n) => /* @__PURE__ */ e.jsx(
305
305
  t.onClick && t.onClick(i);
306
306
  let l = document.createElement("span");
307
307
  l.classList.add("btn-overlay");
308
- let c = i.pageX - i.currentTarget.offsetLeft, o = i.pageY - i.currentTarget.offsetTop;
309
- l.style.left = c + "px", l.style.top = o + "px", i.currentTarget.appendChild(l), setTimeout(() => {
308
+ let a = i.pageX - i.currentTarget.offsetLeft, o = i.pageY - i.currentTarget.offsetTop;
309
+ l.style.left = a + "px", l.style.top = o + "px", i.currentTarget.appendChild(l), setTimeout(() => {
310
310
  l.remove();
311
311
  }, 500);
312
312
  }, s = {
@@ -349,7 +349,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
349
349
  }
350
350
  );
351
351
  }, vn = ({ bottom: n = 0, ...t }) => {
352
- const [r, s] = g(!1), [i, l] = g(!0), c = Y(null), o = k(() => {
352
+ const [r, s] = g(!1), [i, l] = g(!0), a = Y(null), o = k(() => {
353
353
  s(!0), setTimeout(() => {
354
354
  t.onHide(), s(!1), l(!0);
355
355
  }, 200);
@@ -359,10 +359,10 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
359
359
  }, [t.visible]), V(() => {
360
360
  !t.visible && !i && o();
361
361
  }, [t.visible, o, i]);
362
- const a = k((h) => {
363
- window.innerHeight - h.changedTouches[0].clientY <= 150 && o(), c.current && (c.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
362
+ const c = k((h) => {
363
+ window.innerHeight - h.changedTouches[0].clientY <= 150 && o(), a.current && (a.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
364
364
  }, [o]), d = (h) => {
365
- window.innerHeight - h.clientY + 20 <= 150 && o(), c.current && (c.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
365
+ window.innerHeight - h.clientY + 20 <= 150 && o(), a.current && (a.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
366
366
  }, u = () => {
367
367
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
368
368
  }, m = () => {
@@ -370,8 +370,8 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
370
370
  };
371
371
  return V(() => () => {
372
372
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
373
- }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: o, children: /* @__PURE__ */ e.jsxs("div", { ref: c, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
374
- /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: m, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
373
+ }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: o, children: /* @__PURE__ */ e.jsxs("div", { ref: a, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
374
+ /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: m, onTouchMove: c, children: /* @__PURE__ */ e.jsx("span", {}) }),
375
375
  /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
376
376
  ] }) });
377
377
  }, gn = {
@@ -407,10 +407,10 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
407
407
  density: s = "normal",
408
408
  children: i,
409
409
  style: l,
410
- className: c = "",
410
+ className: a = "",
411
411
  ...o
412
412
  }) => {
413
- const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
413
+ const c = Ce(we), d = c ? c.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
414
414
  fontSize: bn(n, d),
415
415
  fontWeight: kn(n, r),
416
416
  lineHeight: yn(n, s, d),
@@ -421,7 +421,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
421
421
  {
422
422
  ...o,
423
423
  style: h,
424
- className: `${x} ${c}`,
424
+ className: `${x} ${a}`,
425
425
  children: i
426
426
  }
427
427
  );
@@ -433,9 +433,9 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
433
433
  transparent: s = !1,
434
434
  size: i = "medium",
435
435
  onClick: l,
436
- onContextMenu: c,
436
+ onContextMenu: a,
437
437
  disabled: o = !1,
438
- style: a,
438
+ style: c,
439
439
  rippleDisabled: d = !1,
440
440
  shadow: u = 0,
441
441
  ...m
@@ -446,10 +446,10 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
446
446
  },
447
447
  [l, o]
448
448
  ), f = (j) => {
449
- const p = j.currentTarget, _ = document.createElement("span"), y = Math.max(p.clientWidth, p.clientHeight), N = y / 2;
450
- _.style.width = _.style.height = `${y}px`, _.style.left = `${j.clientX - p.getBoundingClientRect().left - N}px`, _.style.top = `${j.clientY - p.getBoundingClientRect().top - N}px`, _.classList.add("iconbutton-ripple");
451
- const C = p.getElementsByClassName("iconbutton-ripple")[0];
452
- C && C.remove(), p.appendChild(_);
449
+ const _ = j.currentTarget, p = document.createElement("span"), y = Math.max(_.clientWidth, _.clientHeight), N = y / 2;
450
+ p.style.width = p.style.height = `${y}px`, p.style.left = `${j.clientX - _.getBoundingClientRect().left - N}px`, p.style.top = `${j.clientY - _.getBoundingClientRect().top - N}px`, p.classList.add("iconbutton-ripple");
451
+ const C = _.getElementsByClassName("iconbutton-ripple")[0];
452
+ C && C.remove(), _.appendChild(p);
453
453
  };
454
454
  return /* @__PURE__ */ e.jsx(
455
455
  "button",
@@ -457,11 +457,11 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
457
457
  ref: h,
458
458
  style: {
459
459
  backgroundColor: s ? "transparent" : void 0,
460
- ...a
460
+ ...c
461
461
  },
462
462
  className: `iconbutton iconbutton--${i} ${t} container_shadow-hover-${u}`,
463
463
  onClick: x,
464
- onContextMenu: c,
464
+ onContextMenu: a,
465
465
  disabled: o,
466
466
  "aria-disabled": o,
467
467
  ...m,
@@ -471,7 +471,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
471
471
  }
472
472
  );
473
473
  ue.displayName = "IconButton";
474
- const $ = te.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24", size: i, primaryColor: l, secondaryColor: c, tertiaryColor: o, baseColor: a, ...d }, u) => /* @__PURE__ */ e.jsx(
474
+ const $ = te.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24", size: i, primaryColor: l, secondaryColor: a, tertiaryColor: o, baseColor: c, ...d }, u) => /* @__PURE__ */ e.jsx(
475
475
  "svg",
476
476
  {
477
477
  role: d.role,
@@ -1786,47 +1786,48 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1786
1786
  action: s,
1787
1787
  onHide: i,
1788
1788
  style: l,
1789
- clearStyle: c = !1,
1790
- disableBackplate: o,
1791
- marginBottom: a,
1792
- maxWidth: d = "560px",
1793
- showCloseButton: u = !1,
1794
- ariaLabel: m
1789
+ styleContent: a,
1790
+ clearStyle: o = !1,
1791
+ disableBackplate: c,
1792
+ marginBottom: d,
1793
+ maxWidth: u = "560px",
1794
+ showCloseButton: m = !1,
1795
+ ariaLabel: h
1795
1796
  }) => {
1796
- const h = () => {
1797
+ const x = () => {
1797
1798
  i && i();
1798
- }, x = {
1799
+ }, f = {
1799
1800
  ...l,
1800
- marginBottom: a,
1801
- maxWidth: typeof d == "number" ? `${d}px` : d
1801
+ marginBottom: d,
1802
+ maxWidth: typeof u == "number" ? `${u}px` : u
1802
1803
  };
1803
1804
  return /* @__PURE__ */ e.jsx(
1804
1805
  We,
1805
1806
  {
1806
- onHide: h,
1807
- disableBackplate: o,
1807
+ onHide: x,
1808
+ disableBackplate: c,
1808
1809
  children: /* @__PURE__ */ e.jsxs(
1809
1810
  "div",
1810
1811
  {
1811
- style: x,
1812
- className: `${c ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
1812
+ style: f,
1813
+ className: `${o ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
1813
1814
  role: "dialog",
1814
1815
  "aria-modal": "true",
1815
- "aria-label": m || r,
1816
+ "aria-label": h || r,
1816
1817
  children: [
1817
1818
  r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
1818
1819
  /* @__PURE__ */ e.jsx(X, { type: "heading", children: r }),
1819
- u && /* @__PURE__ */ e.jsx(
1820
+ m && /* @__PURE__ */ e.jsx(
1820
1821
  ue,
1821
1822
  {
1822
1823
  className: "dialog-template__container__header__button dialog-template__container__header__button_color_surface-container",
1823
- onClick: h,
1824
+ onClick: x,
1824
1825
  "aria-label": "Close dialog",
1825
1826
  icon: /* @__PURE__ */ e.jsx(ie, {})
1826
1827
  }
1827
1828
  )
1828
1829
  ] }),
1829
- /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__content", children: t }),
1830
+ /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__content", style: a, children: t }),
1830
1831
  s && /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__action", children: s })
1831
1832
  ]
1832
1833
  }
@@ -1893,9 +1894,9 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1893
1894
  actionText: s,
1894
1895
  cancelText: i = "Отмена",
1895
1896
  onSuccess: l,
1896
- onCancel: c,
1897
+ onCancel: a,
1897
1898
  onHide: o,
1898
- children: a,
1899
+ children: c,
1899
1900
  disableDefaultButtons: d = !1,
1900
1901
  customActions: u,
1901
1902
  btns: m
@@ -1903,8 +1904,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1903
1904
  const h = k(() => {
1904
1905
  l == null || l(), o == null || o();
1905
1906
  }, [l, o]), x = k(() => {
1906
- c == null || c(), o == null || o();
1907
- }, [c, o]), f = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1907
+ a == null || a(), o == null || o();
1908
+ }, [a, o]), f = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1908
1909
  {
1909
1910
  text: i,
1910
1911
  hide: !0,
@@ -1924,7 +1925,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1924
1925
  action: f(),
1925
1926
  children: [
1926
1927
  t && /* @__PURE__ */ e.jsx(X, { type: "body", children: t }),
1927
- a
1928
+ c
1928
1929
  ]
1929
1930
  }
1930
1931
  );
@@ -1932,10 +1933,10 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1932
1933
  n,
1933
1934
  t
1934
1935
  ) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
1935
- const [c, o] = g(null);
1936
+ const [a, o] = g(null);
1936
1937
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1937
1938
  /* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: o }),
1938
- c !== null && /* @__PURE__ */ e.jsx(_e, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(c), onHide: () => o(null) }) })
1939
+ a !== null && /* @__PURE__ */ e.jsx(_e, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(a), onHide: () => o(null) }) })
1939
1940
  ] });
1940
1941
  }, on = ({
1941
1942
  text: n,
@@ -1944,12 +1945,12 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1944
1945
  className: s = "",
1945
1946
  onClick: i,
1946
1947
  disabled: l,
1947
- ...c
1948
+ ...a
1948
1949
  }) => {
1949
- const [o, a] = g(!1), d = k(async (h) => {
1950
+ const [o, c] = g(!1), d = k(async (h) => {
1950
1951
  if (!l) {
1951
1952
  try {
1952
- await navigator.clipboard.writeText(n), a(!0), setTimeout(() => a(!1), r);
1953
+ await navigator.clipboard.writeText(n), c(!0), setTimeout(() => c(!1), r);
1953
1954
  } catch (x) {
1954
1955
  console.error("Не удалось скопировать текст", x);
1955
1956
  }
@@ -1965,7 +1966,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1965
1966
  disabled: l,
1966
1967
  "aria-label": `${m} ${n}`,
1967
1968
  className: s,
1968
- ...c
1969
+ ...a
1969
1970
  }
1970
1971
  ),
1971
1972
  /* @__PURE__ */ e.jsx(X, { type: "body", "aria-live": "polite", children: m })
@@ -1977,7 +1978,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1977
1978
  disabled: l,
1978
1979
  "aria-label": `${m} ${n}`,
1979
1980
  className: s,
1980
- ...c
1981
+ ...a
1981
1982
  }
1982
1983
  );
1983
1984
  };
@@ -1996,7 +1997,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
1996
1997
  /* CLOSE */
1997
1998
  );
1998
1999
  }, 500);
1999
- }, c = () => {
2000
+ }, a = () => {
2000
2001
  r(
2001
2002
  0
2002
2003
  /* OPEN */
@@ -2007,7 +2008,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
2007
2008
  return V(() => () => {
2008
2009
  s.current && window.clearTimeout(s.current), i.current && window.clearTimeout(i.current);
2009
2010
  }, []), {
2010
- showPopup: c,
2011
+ showPopup: a,
2011
2012
  popupState: t,
2012
2013
  hidePopup: l
2013
2014
  };
@@ -2035,25 +2036,25 @@ function Ls(n, t, r) {
2035
2036
  return s != 0 && (s == 1 ? t = 0 : s < 0.5 ? t = t * r / (s * 2) : t = t * r / (2 - s * 2)), { h: n, s: t, l: s };
2036
2037
  }
2037
2038
  function Le(n, t, r) {
2038
- var s, i, l, c, o, a, d, u;
2039
- switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h), c = Math.floor(n * 6), o = n * 6 - c, a = r * (1 - t), d = r * (1 - o * t), u = r * (1 - (1 - o) * t), c % 6) {
2039
+ var s, i, l, a, o, c, d, u;
2040
+ switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h), a = Math.floor(n * 6), o = n * 6 - a, c = r * (1 - t), d = r * (1 - o * t), u = r * (1 - (1 - o) * t), a % 6) {
2040
2041
  case 0:
2041
- s = r, i = u, l = a;
2042
+ s = r, i = u, l = c;
2042
2043
  break;
2043
2044
  case 1:
2044
- s = d, i = r, l = a;
2045
+ s = d, i = r, l = c;
2045
2046
  break;
2046
2047
  case 2:
2047
- s = a, i = r, l = u;
2048
+ s = c, i = r, l = u;
2048
2049
  break;
2049
2050
  case 3:
2050
- s = a, i = d, l = r;
2051
+ s = c, i = d, l = r;
2051
2052
  break;
2052
2053
  case 4:
2053
- s = u, i = a, l = r;
2054
+ s = u, i = c, l = r;
2054
2055
  break;
2055
2056
  case 5:
2056
- s = r, i = a, l = d;
2057
+ s = r, i = c, l = d;
2057
2058
  break;
2058
2059
  }
2059
2060
  return {
@@ -2071,31 +2072,31 @@ function ke(n, t = !1) {
2071
2072
  }
2072
2073
  function De(n, t, r) {
2073
2074
  arguments.length === 1 && (t = n.g, r = n.b, n = n.r);
2074
- var s = Math.max(n, t, r), i = Math.min(n, t, r), l = s - i, c, o = s === 0 ? 0 : l / s, a = s / 255;
2075
+ var s = Math.max(n, t, r), i = Math.min(n, t, r), l = s - i, a, o = s === 0 ? 0 : l / s, c = s / 255;
2075
2076
  switch (s) {
2076
2077
  case i:
2077
- c = 0;
2078
+ a = 0;
2078
2079
  break;
2079
2080
  case n:
2080
- c = t - r + l * (t < r ? 6 : 0), c /= 6 * l;
2081
+ a = t - r + l * (t < r ? 6 : 0), a /= 6 * l;
2081
2082
  break;
2082
2083
  case t:
2083
- c = r - n + l * 2, c /= 6 * l;
2084
+ a = r - n + l * 2, a /= 6 * l;
2084
2085
  break;
2085
2086
  case r:
2086
- c = n - t + l * 4, c /= 6 * l;
2087
+ a = n - t + l * 4, a /= 6 * l;
2087
2088
  break;
2088
2089
  }
2089
2090
  return {
2090
- h: c,
2091
+ h: a,
2091
2092
  s: o,
2092
- v: a
2093
+ v: c
2093
2094
  };
2094
2095
  }
2095
2096
  function Ne(n) {
2096
2097
  var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
2097
- n = n.replace(t, function(s, i, l, c) {
2098
- return i + i + l + l + c + c;
2098
+ n = n.replace(t, function(s, i, l, a) {
2099
+ return i + i + l + l + a + a;
2099
2100
  });
2100
2101
  var r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
2101
2102
  return r ? {
@@ -2113,23 +2114,23 @@ const qt = Ne, Jt = (n) => {
2113
2114
  function Dn(n, t, r) {
2114
2115
  if (n === 0) return r ?? "#e0e0e0";
2115
2116
  if (n === 1) return t;
2116
- const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, c = (s == null ? void 0 : s.b) ?? 224, o = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (o - i)), m = Math.round(l + n * (a - l)), h = Math.round(c + n * (d - c));
2117
+ const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, a = (s == null ? void 0 : s.b) ?? 224, o = parseInt(t.substring(1, 3), 16), c = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (o - i)), m = Math.round(l + n * (c - l)), h = Math.round(a + n * (d - a));
2117
2118
  return `rgb(${u}, ${m}, ${h})`;
2118
2119
  }
2119
2120
  const ce = (n, t, r = "", s) => {
2120
- let i, l, c, o, a, d, u, m = Math.round, h = typeof r == "string";
2121
- if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, a = ce.pSBCr(t), o = n < 0, d = r && typeof r == "string" && r != "c" ? ce.pSBCr(r) : o ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = o ? n * -1 : n, o = 1 - n, !a || !d)) return null;
2122
- s ? (i = m(o * (a.r ?? 0) + n * (d.r ?? 0)), l = m(o * (a.g ?? 0) + n * (d.g ?? 0)), c = m(o * (a.b ?? 0) + n * (d.b ?? 0))) : (i = m((o * (a.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = m((o * (a.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), c = m((o * (a.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
2123
- let x = a.a ?? 1;
2124
- return d = d.a ?? 1, a = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * o + d * n : 0, u ? "rgb" + (a ? "a(" : "(") + i + "," + l + "," + c + (a ? "," + m(x * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + c * 256 + (a ? m(x * 255) : 0)).toString(16).slice(1, a ? void 0 : -2);
2121
+ let i, l, a, o, c, d, u, m = Math.round, h = typeof r == "string";
2122
+ if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, c = ce.pSBCr(t), o = n < 0, d = r && typeof r == "string" && r != "c" ? ce.pSBCr(r) : o ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = o ? n * -1 : n, o = 1 - n, !c || !d)) return null;
2123
+ s ? (i = m(o * (c.r ?? 0) + n * (d.r ?? 0)), l = m(o * (c.g ?? 0) + n * (d.g ?? 0)), a = m(o * (c.b ?? 0) + n * (d.b ?? 0))) : (i = m((o * (c.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = m((o * (c.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), a = m((o * (c.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
2124
+ let x = c.a ?? 1;
2125
+ return d = d.a ?? 1, c = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * o + d * n : 0, u ? "rgb" + (c ? "a(" : "(") + i + "," + l + "," + a + (c ? "," + m(x * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + a * 256 + (c ? m(x * 255) : 0)).toString(16).slice(1, c ? void 0 : -2);
2125
2126
  };
2126
2127
  ce.pSBCr = (n) => {
2127
2128
  const t = parseInt;
2128
2129
  let r = n.length, s = {};
2129
2130
  if (r > 9) {
2130
- const i = n.split(","), [l, c, o, a] = i;
2131
+ const i = n.split(","), [l, a, o, c] = i;
2131
2132
  if (r = i.length, r < 3 || r > 4) return null;
2132
- s.r = t(l[3] == "a" ? l.slice(5) : l.slice(4)), s.g = t(c), s.b = t(o), s.a = a ? parseFloat(a) : -1;
2133
+ s.r = t(l[3] == "a" ? l.slice(5) : l.slice(4)), s.g = t(a), s.b = t(o), s.a = c ? parseFloat(c) : -1;
2133
2134
  } else {
2134
2135
  if (r == 8 || r == 6 || r < 4) return null;
2135
2136
  r < 6 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3] + (r > 4 ? n[4] + n[4] : ""));
@@ -2230,7 +2231,7 @@ const In = {
2230
2231
  };
2231
2232
  },
2232
2233
  Surface_container_color: (n, t) => {
2233
- const r = ce(t ? -0.2 : 0.2, n) ?? n, s = ce(t ? -0.4 : 0.4, n) ?? n, i = ce(t ? 0.2 : -0.2, n) ?? n, l = ce(t ? 0.4 : -0.4, n) ?? n, c = ce(t ? -0.5 : 0.5, n) ?? n;
2234
+ const r = ce(t ? -0.2 : 0.2, n) ?? n, s = ce(t ? -0.4 : 0.4, n) ?? n, i = ce(t ? 0.2 : -0.2, n) ?? n, l = ce(t ? 0.4 : -0.4, n) ?? n, a = ce(t ? -0.5 : 0.5, n) ?? n;
2234
2235
  return {
2235
2236
  Surface_container_color: n,
2236
2237
  On_surface_color: re(n),
@@ -2238,7 +2239,7 @@ const In = {
2238
2239
  Surface_container_lowest_color: s,
2239
2240
  Surface_container_high_color: i,
2240
2241
  Surface_container_highest_color: l,
2241
- Surface_container_hover_color: c,
2242
+ Surface_container_hover_color: a,
2242
2243
  On_surface_variant_color: ce(t ? -0.6 : 0.4, re(n)) ?? re(n)
2243
2244
  };
2244
2245
  },
@@ -2248,9 +2249,9 @@ const In = {
2248
2249
  })
2249
2250
  };
2250
2251
  function er(n, t = !1) {
2251
- const [r, s] = g({ ...In, ...n }), [i, l] = g(t), c = k(
2252
- (a, d) => {
2253
- const u = Qt[a];
2252
+ const [r, s] = g({ ...In, ...n }), [i, l] = g(t), a = k(
2253
+ (c, d) => {
2254
+ const u = Qt[c];
2254
2255
  if (!u) return;
2255
2256
  const m = u(d, i);
2256
2257
  s((h) => ({ ...h, ...m })), Object.entries(m).forEach(([h, x]) => {
@@ -2261,8 +2262,8 @@ function er(n, t = !1) {
2261
2262
  );
2262
2263
  return {
2263
2264
  colors: r,
2264
- setColor: c,
2265
- setReverse: (a) => l(a)
2265
+ setColor: a,
2266
+ setReverse: (c) => l(c)
2266
2267
  };
2267
2268
  }
2268
2269
  const nr = {
@@ -2308,33 +2309,33 @@ const nr = {
2308
2309
  function rr(n = "light") {
2309
2310
  const [t, r] = g(
2310
2311
  Xe
2311
- ), [s, i] = g(n), { colors: l, setColor: c, setReverse: o } = er(t[s].colors, t[s].reverse), a = k(
2312
+ ), [s, i] = g(n), { colors: l, setColor: a, setReverse: o } = er(t[s].colors, t[s].reverse), c = k(
2312
2313
  (x) => {
2313
2314
  const f = t[x].colors;
2314
- f && (Object.entries(f).forEach(([j, p]) => {
2315
- c(j, p);
2315
+ f && (Object.entries(f).forEach(([j, _]) => {
2316
+ a(j, _);
2316
2317
  }), o(t[x].reverse ?? !1), i(x));
2317
2318
  },
2318
- [t, c]
2319
+ [t, a]
2319
2320
  );
2320
2321
  V(() => {
2321
- a(s);
2322
- }, [s, a]);
2322
+ c(s);
2323
+ }, [s, c]);
2323
2324
  const d = k(
2324
2325
  (x, f, j) => {
2325
- r((p) => ({
2326
- ...p,
2326
+ r((_) => ({
2327
+ ..._,
2327
2328
  [x]: {
2328
- colors: { ...p[x].colors, [f]: j },
2329
- reverse: p[x].reverse
2329
+ colors: { ..._[x].colors, [f]: j },
2330
+ reverse: _[x].reverse
2330
2331
  }
2331
2332
  }));
2332
2333
  },
2333
2334
  []
2334
2335
  ), u = k((x, f = "light", j) => {
2335
- r((p) => ({
2336
- ...p,
2337
- [x]: { colors: p[f].colors, reverse: j === void 0 ? p[f].reverse : j }
2336
+ r((_) => ({
2337
+ ..._,
2338
+ [x]: { colors: _[f].colors, reverse: j === void 0 ? _[f].reverse : j }
2338
2339
  }));
2339
2340
  }, []), m = k((x) => {
2340
2341
  r((f) => {
@@ -2354,7 +2355,7 @@ function rr(n = "light") {
2354
2355
  colors: l,
2355
2356
  themes: t,
2356
2357
  activeTheme: s,
2357
- setActiveTheme: a,
2358
+ setActiveTheme: c,
2358
2359
  updateThemeColor: d,
2359
2360
  createTheme: u,
2360
2361
  deleteTheme: m,
@@ -2381,9 +2382,9 @@ const $e = () => {
2381
2382
  min: s = 0,
2382
2383
  max: i = 100,
2383
2384
  step: l = 1,
2384
- strokeWidth: c = "40px",
2385
+ strokeWidth: a = "40px",
2385
2386
  value: o,
2386
- orientation: a = "horizontal",
2387
+ orientation: c = "horizontal",
2387
2388
  styleTrack: d = "base",
2388
2389
  showValue: u = !0,
2389
2390
  valueDisplayDuration: m = 2e3,
@@ -2392,20 +2393,20 @@ const $e = () => {
2392
2393
  className: f = "",
2393
2394
  ...j
2394
2395
  }) => {
2395
- const p = Y(null), _ = Y(null), [y, N] = g(o ?? s), [C, S] = g("200px"), { colors: T } = Ce(sn), { showPopup: P, popupState: B } = Kt({ valueDisplayDuration: m }), w = n ?? T.Primary_color ?? "#0000ff";
2396
+ const _ = Y(null), p = Y(null), [y, N] = g(o ?? s), [C, S] = g("200px"), { colors: T } = Ce(sn), { showPopup: P, popupState: B } = Kt({ valueDisplayDuration: m }), w = n ?? T.Primary_color ?? "#0000ff";
2396
2397
  V(() => {
2397
2398
  var E;
2398
- if (a === "vertical" && ((E = _.current) != null && E.parentElement)) {
2399
+ if (c === "vertical" && ((E = p.current) != null && E.parentElement)) {
2399
2400
  const U = () => {
2400
2401
  var G, v;
2401
- const H = (v = (G = _.current) == null ? void 0 : G.parentElement) == null ? void 0 : v.clientHeight;
2402
+ const H = (v = (G = p.current) == null ? void 0 : G.parentElement) == null ? void 0 : v.clientHeight;
2402
2403
  H && S(`${H}px`);
2403
2404
  };
2404
2405
  U();
2405
2406
  const I = new ResizeObserver(U);
2406
- return _.current.parentElement && I.observe(_.current.parentElement), () => I.disconnect();
2407
+ return p.current.parentElement && I.observe(p.current.parentElement), () => I.disconnect();
2407
2408
  }
2408
- }, [a]), V(() => {
2409
+ }, [c]), V(() => {
2409
2410
  o !== void 0 && (N(o), W());
2410
2411
  }, [o]);
2411
2412
  const W = k(() => {
@@ -2418,34 +2419,34 @@ const $e = () => {
2418
2419
  [y, s, i]
2419
2420
  ), b = oe(() => ({
2420
2421
  ...j.style,
2421
- [a === "vertical" ? "height" : "width"]: `${A}%`,
2422
+ [c === "vertical" ? "height" : "width"]: `${A}%`,
2422
2423
  background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(A / 100, w, x)
2423
- }), [A, w, j.style, a, d]), D = oe(() => a === "vertical" ? {
2424
- "--range-width": c,
2425
- "--point-width": d === "point" ? c : "6px",
2424
+ }), [A, w, j.style, c, d]), D = oe(() => c === "vertical" ? {
2425
+ "--range-width": a,
2426
+ "--point-width": d === "point" ? a : "6px",
2426
2427
  "--point-opacity": d === "point" ? "1" : "0",
2427
2428
  "--truck-color": w,
2428
2429
  width: dn,
2429
2430
  height: C,
2430
2431
  ...j.style
2431
2432
  } : {
2432
- "--range-width": c,
2433
- "--point-width": d === "point" ? c : "6px",
2433
+ "--range-width": a,
2434
+ "--point-width": d === "point" ? a : "6px",
2434
2435
  "--point-opacity": d === "point" ? "1" : "0",
2435
2436
  "--truck-color": w,
2436
2437
  width: "100%",
2437
2438
  height: dn,
2438
2439
  ...j.style
2439
- }, [a, C, j.style, c, d, w]), M = oe(() => a === "vertical" ? {
2440
+ }, [c, C, j.style, a, d, w]), M = oe(() => c === "vertical" ? {
2440
2441
  width: C
2441
2442
  } : {
2442
2443
  width: "100%"
2443
- }, [a, C]);
2444
+ }, [c, C]);
2444
2445
  return /* @__PURE__ */ e.jsxs(
2445
2446
  "div",
2446
2447
  {
2447
- ref: _,
2448
- className: `range-wrapper ${a} ${f}`,
2448
+ ref: p,
2449
+ className: `range-wrapper ${c} ${f}`,
2449
2450
  style: D,
2450
2451
  children: [
2451
2452
  /* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
@@ -2455,7 +2456,7 @@ const $e = () => {
2455
2456
  /* @__PURE__ */ e.jsx(
2456
2457
  "input",
2457
2458
  {
2458
- ref: p,
2459
+ ref: _,
2459
2460
  type: "range",
2460
2461
  min: s,
2461
2462
  style: M,
@@ -2466,7 +2467,7 @@ const $e = () => {
2466
2467
  onFocus: j.onFocus,
2467
2468
  onBlur: j.onBlur,
2468
2469
  className: "slider-input",
2469
- "aria-orientation": a,
2470
+ "aria-orientation": c,
2470
2471
  "aria-valuenow": y,
2471
2472
  "aria-valuemin": s,
2472
2473
  "aria-valuemax": i,
@@ -2485,9 +2486,9 @@ const $e = () => {
2485
2486
  onChange: s,
2486
2487
  onFocus: i,
2487
2488
  onBlur: l,
2488
- styleRange: c = "circle",
2489
+ styleRange: a = "circle",
2489
2490
  styleTrack: o = "base",
2490
- strokeWidth: a = 20,
2491
+ strokeWidth: c = 20,
2491
2492
  radius: d = 100,
2492
2493
  colorBg: u = "var(--Surface-container-color)",
2493
2494
  colorRange: m,
@@ -2495,19 +2496,19 @@ const $e = () => {
2495
2496
  showBase: x = !0,
2496
2497
  showIndicator: f = !0,
2497
2498
  showPoint: j = !1,
2498
- rounding: p = !0,
2499
- showValue: _ = !0,
2499
+ rounding: _ = !0,
2500
+ showValue: p = !0,
2500
2501
  style: y,
2501
2502
  children: N,
2502
2503
  className: C,
2503
2504
  startColor: S
2504
2505
  }) => {
2505
- const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, b = W / 2 - a / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } = Ce(sn), U = m ?? E.Primary_color ?? "#0000ff", I = h ?? E.Primary_color ?? "#0000ff", [H, G] = g(r);
2506
+ const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, b = W / 2 - c / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } = Ce(sn), U = m ?? E.Primary_color ?? "#0000ff", I = h ?? E.Primary_color ?? "#0000ff", [H, G] = g(r);
2506
2507
  V(() => {
2507
2508
  r !== void 0 && G(r);
2508
2509
  }, [r]);
2509
2510
  const v = k(() => {
2510
- switch (c) {
2511
+ switch (a) {
2511
2512
  case "semicircle":
2512
2513
  return 180;
2513
2514
  case "brokenCircle":
@@ -2515,7 +2516,7 @@ const $e = () => {
2515
2516
  default:
2516
2517
  return 360;
2517
2518
  }
2518
- }, [c]), L = k(() => c === "semicircle" ? [b * Math.PI, b * Math.PI] : c === "brokenCircle" ? [b * Math.PI * 1.25, b * Math.PI * 1.5] : [b * Math.PI, b * Math.PI * 2], [c, b]), R = oe(
2519
+ }, [a]), L = k(() => a === "semicircle" ? [b * Math.PI, b * Math.PI] : a === "brokenCircle" ? [b * Math.PI * 1.25, b * Math.PI * 1.5] : [b * Math.PI, b * Math.PI * 2], [a, b]), R = oe(
2519
2520
  () => t !== n ? (H - n) / (t - n) * 100 : 0,
2520
2521
  [H, n, t]
2521
2522
  ), q = k(() => {
@@ -2523,23 +2524,23 @@ const $e = () => {
2523
2524
  const [Z, he] = L(), je = (H - n) * he / (t - n);
2524
2525
  if (x) {
2525
2526
  const K = T.current.querySelector('[data-el="base"]');
2526
- K && (K.style.stroke = u, K.style.strokeWidth = a.toString(), K.style.strokeLinecap = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${he}, ${b * Math.PI * 2 - he}`);
2527
+ K && (K.style.stroke = u, K.style.strokeWidth = c.toString(), K.style.strokeLinecap = _ ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${he}, ${b * Math.PI * 2 - he}`);
2527
2528
  }
2528
2529
  if (D) {
2529
2530
  const K = T.current.querySelector('[data-el="indicator"]');
2530
2531
  if (K) {
2531
2532
  const xe = parseFloat(K.dataset.percentage ?? "");
2532
- xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = o === "static-color" ? U : Dn(R / 100, U, S), K.style.strokeWidth = a.toString(), K.style.strokeLinecap = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${je}, ${b * Math.PI * 2 - je}`;
2533
+ xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = o === "static-color" ? U : Dn(R / 100, U, S), K.style.strokeWidth = c.toString(), K.style.strokeLinecap = _ ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${je}, ${b * Math.PI * 2 - je}`;
2533
2534
  }
2534
2535
  }
2535
2536
  if (M) {
2536
2537
  const K = T.current.querySelector('[data-el="point"]');
2537
2538
  if (K) {
2538
2539
  const xe = parseFloat(K.dataset.percentage ?? "");
2539
- xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = I, K.style.strokeWidth = a.toString(), K.style.strokeLinecap = "round", H === t && c === "semicircle" ? K.style.strokeDashoffset = "0" : K.style.strokeDashoffset = (Z - je).toString(), K.style.strokeDasharray = `0, ${b * Math.PI * 2}`;
2540
+ xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = I, K.style.strokeWidth = c.toString(), K.style.strokeLinecap = "round", H === t && a === "semicircle" ? K.style.strokeDashoffset = "0" : K.style.strokeDashoffset = (Z - je).toString(), K.style.strokeDasharray = `0, ${b * Math.PI * 2}`;
2540
2541
  }
2541
2542
  }
2542
- }, [H, L, t, n, b, a, u, U, I, x, D, M, p, R, S]), Q = (Z) => {
2543
+ }, [H, L, t, n, b, c, u, U, I, x, D, M, _, R, S]), Q = (Z) => {
2543
2544
  P.current = !0, document.addEventListener("mousemove", ne), document.addEventListener("mouseup", J), le(Z);
2544
2545
  }, ne = (Z) => {
2545
2546
  Z.preventDefault(), P.current && le(Z);
@@ -2559,7 +2560,7 @@ const $e = () => {
2559
2560
  document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
2560
2561
  }, []);
2561
2562
  const z = {
2562
- "--stroke-width": `${a}px`
2563
+ "--stroke-width": `${c}px`
2563
2564
  };
2564
2565
  return /* @__PURE__ */ e.jsxs("div", { style: { width: B, height: w, ...y }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
2565
2566
  /* @__PURE__ */ e.jsxs(
@@ -2603,7 +2604,7 @@ const $e = () => {
2603
2604
  ]
2604
2605
  }
2605
2606
  ),
2606
- /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${C}`, style: z, children: N ?? (_ && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(H).toString() })) })
2607
+ /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${C}`, style: z, children: N ?? (p && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(H).toString() })) })
2607
2608
  ] });
2608
2609
  }, ir = ve(
2609
2610
  ({
@@ -2613,20 +2614,20 @@ const $e = () => {
2613
2614
  position: s = "bottom-right",
2614
2615
  variant: i = "primary",
2615
2616
  className: l = "",
2616
- ...c
2617
+ ...a
2617
2618
  }, o) => {
2618
- const a = !!t;
2619
+ const c = !!t;
2619
2620
  return /* @__PURE__ */ e.jsxs(
2620
2621
  "button",
2621
2622
  {
2622
2623
  ref: o,
2623
2624
  type: "button",
2624
- className: `fab ${a ? "fab--extended" : ""} fab--${r} fab--${i} ${s !== "none" ? `fab--${s}` : ""} ${l}`,
2625
- "aria-label": a ? void 0 : c["aria-label"] || "Floating action button",
2626
- ...c,
2625
+ className: `fab ${c ? "fab--extended" : ""} fab--${r} fab--${i} ${s !== "none" ? `fab--${s}` : ""} ${l}`,
2626
+ "aria-label": c ? void 0 : a["aria-label"] || "Floating action button",
2627
+ ...a,
2627
2628
  children: [
2628
2629
  n && /* @__PURE__ */ e.jsx("span", { className: "fab__icon", children: n }),
2629
- a && /* @__PURE__ */ e.jsx("span", { className: "fab__text", children: t })
2630
+ c && /* @__PURE__ */ e.jsx("span", { className: "fab__text", children: t })
2630
2631
  ]
2631
2632
  }
2632
2633
  );
@@ -2658,10 +2659,10 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2658
2659
  }, Hn = (n, t, r, s) => {
2659
2660
  let i = { x: n, y: t };
2660
2661
  if (!r) return i;
2661
- const l = window.getComputedStyle(r), c = parseFloat(l.getPropertyValue("height")), o = parseFloat(l.getPropertyValue("width")), a = t + c - document.documentElement.clientHeight, d = n + o - document.documentElement.clientWidth;
2662
- return a > 0 && (i.y = i.y - a - ((s == null ? void 0 : s.marginBottom) ?? 0)), d > 0 && (i.x = i.x - d - ((s == null ? void 0 : s.marginRight) ?? 0)), i;
2662
+ const l = window.getComputedStyle(r), a = parseFloat(l.getPropertyValue("height")), o = parseFloat(l.getPropertyValue("width")), c = t + a - document.documentElement.clientHeight, d = n + o - document.documentElement.clientWidth;
2663
+ return c > 0 && (i.y = i.y - c - ((s == null ? void 0 : s.marginBottom) ?? 0)), d > 0 && (i.x = i.x - d - ((s == null ? void 0 : s.marginRight) ?? 0)), i;
2663
2664
  }, ar = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: l }) => {
2664
- const c = Y(null), [o, a] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2665
+ const a = Y(null), [o, c] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2665
2666
  function m(h) {
2666
2667
  for (let x of h)
2667
2668
  if (x.icon)
@@ -2669,41 +2670,41 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2669
2670
  return !1;
2670
2671
  }
2671
2672
  return V(() => {
2672
- if (!c.current)
2673
+ if (!a.current)
2673
2674
  return;
2674
- let h = Ye(c.current.parentElement);
2675
+ let h = Ye(a.current.parentElement);
2675
2676
  if (!h)
2676
2677
  return;
2677
- let x = Hn(h.left + h.width, h.top, c.current, { marginRight: h.width });
2678
- a({
2678
+ let x = Hn(h.left + h.width, h.top, a.current, { marginRight: h.width });
2679
+ c({
2679
2680
  left: x.x - h.left + "px",
2680
2681
  top: x.y - h.top + "px"
2681
2682
  }), u(!0);
2682
2683
  }, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2683
- /* @__PURE__ */ e.jsx("div", { ref: c, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...o, ...d ? {} : { display: "none" } }, children: n.map((h, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
2684
+ /* @__PURE__ */ e.jsx("div", { ref: a, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...o, ...d ? {} : { display: "none" } }, children: n.map((h, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
2684
2685
  r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
2685
2686
  ] });
2686
2687
  }, cr = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
2687
- const [c, o] = g(!1), a = k(() => {
2688
+ const [a, o] = g(!1), c = k(() => {
2688
2689
  s.subItems ? o((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
2689
2690
  }, [s.onClick]);
2690
2691
  return /* @__PURE__ */ e.jsxs("div", { className: `menu-item ${s.disabled ? "menu-item_disabled" : ""}`, children: [
2691
- /* @__PURE__ */ e.jsxs("div", { className: "menu-item__info", onClick: a, children: [
2692
+ /* @__PURE__ */ e.jsxs("div", { className: "menu-item__info", onClick: c, children: [
2692
2693
  i ? /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__icon", children: s.icon }) : null,
2693
2694
  /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__text", children: s.title }),
2694
- /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${c ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(pe, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
2695
+ /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${a ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(pe, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
2695
2696
  ] }),
2696
- c && s.subItems ? /* @__PURE__ */ e.jsx(ar, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => o(!1), smallDisplay: l }) : null
2697
+ a && s.subItems ? /* @__PURE__ */ e.jsx(ar, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => o(!1), smallDisplay: l }) : null
2697
2698
  ] });
2698
2699
  };
2699
2700
  function zn({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i }) {
2700
- function l(c) {
2701
- for (let o of c.items)
2701
+ function l(a) {
2702
+ for (let o of a.items)
2702
2703
  if (o.icon)
2703
2704
  return !0;
2704
2705
  return !1;
2705
2706
  }
2706
- return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((c, o) => /* @__PURE__ */ e.jsx(cr, { globalClick: s, autoHide: i, onHide: r, item: c, isIcon: l(n), smallDisplay: t }, o)) });
2707
+ return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((a, o) => /* @__PURE__ */ e.jsx(cr, { globalClick: s, autoHide: i, onHide: r, item: a, isIcon: l(n), smallDisplay: t }, o)) });
2707
2708
  }
2708
2709
  const or = 100, dr = (n) => {
2709
2710
  const t = Y(null), [r, s] = g({ left: "0px", top: "0px" }), i = () => {
@@ -2721,10 +2722,10 @@ const or = 100, dr = (n) => {
2721
2722
  ref: t,
2722
2723
  className: "base-menu base-menu_color_surface-container-high",
2723
2724
  style: { ...r, width: n.width, maxWidth: n.width ? "100%" : void 0 },
2724
- children: n.blocks.map((l, c) => /* @__PURE__ */ e.jsxs(te.Fragment, { children: [
2725
- c !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2725
+ children: n.blocks.map((l, a) => /* @__PURE__ */ e.jsxs(te.Fragment, { children: [
2726
+ a !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2726
2727
  /* @__PURE__ */ e.jsx(zn, { block: l, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: i })
2727
- ] }, c))
2728
+ ] }, a))
2728
2729
  }
2729
2730
  ) }) : null;
2730
2731
  }, ur = (n) => {
@@ -2734,17 +2735,17 @@ const or = 100, dr = (n) => {
2734
2735
  s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2735
2736
  /* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
2736
2737
  ] }, s)) }) });
2737
- }, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = te.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, c) => {
2738
- const [o, a] = g(!1), [d, u] = g(void 0), { screen: m } = Ce(we), h = () => {
2739
- a(!1), u(void 0);
2738
+ }, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = te.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, a) => {
2739
+ const [o, c] = g(!1), [d, u] = g(void 0), { screen: m } = Ce(we), h = () => {
2740
+ c(!1), u(void 0);
2740
2741
  }, x = (j) => {
2741
- j.stopPropagation(), a(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
2742
+ j.stopPropagation(), c(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
2742
2743
  }, f = n ?? m;
2743
2744
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2744
2745
  /* @__PURE__ */ e.jsx(
2745
2746
  ue,
2746
2747
  {
2747
- ref: c,
2748
+ ref: a,
2748
2749
  onClick: x,
2749
2750
  ...l
2750
2751
  }
@@ -2772,15 +2773,15 @@ const or = 100, dr = (n) => {
2772
2773
  readOnly: s,
2773
2774
  disabled: i,
2774
2775
  checkIcon: l = /* @__PURE__ */ e.jsx(pe, { baseColor: "var(--On-primary-color)" }),
2775
- size: c = "medium",
2776
+ size: a = "medium",
2776
2777
  className: o,
2777
- ...a
2778
+ ...c
2778
2779
  }, d) => /* @__PURE__ */ e.jsxs(
2779
2780
  "label",
2780
2781
  {
2781
2782
  className: [
2782
2783
  "checkbox-container",
2783
- `checkbox--${c}`,
2784
+ `checkbox--${a}`,
2784
2785
  i ? "checkbox--disabled" : "",
2785
2786
  o
2786
2787
  ].filter(Boolean).join(" "),
@@ -2797,7 +2798,7 @@ const or = 100, dr = (n) => {
2797
2798
  readOnly: s,
2798
2799
  disabled: i,
2799
2800
  "aria-checked": t,
2800
- ...a
2801
+ ...c
2801
2802
  }
2802
2803
  ),
2803
2804
  /* @__PURE__ */ e.jsx("span", { className: "checkbox-box", children: /* @__PURE__ */ e.jsx("span", { className: "checkbox-icon-container", children: /* @__PURE__ */ e.jsx("span", { className: "checkbox-check-icon", children: l }) }) })
@@ -2807,16 +2808,16 @@ const or = 100, dr = (n) => {
2807
2808
  );
2808
2809
  Bn.displayName = "Checkbox";
2809
2810
  const Wn = te.forwardRef(
2810
- ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: c, ...o }, a) => {
2811
+ ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: a, ...o }, c) => {
2811
2812
  const d = (m) => {
2812
2813
  m.stopPropagation(), t == null || t(m);
2813
- }, u = c ? void 0 : s;
2814
+ }, u = a ? void 0 : s;
2814
2815
  return /* @__PURE__ */ e.jsxs(
2815
2816
  "div",
2816
2817
  {
2817
2818
  ...o,
2818
- ref: a,
2819
- className: `chips ${r ? "chips--big" : ""} ${c ? "disabled" : ""} ${s ? "chips--clickable" : ""} ${l || ""}`,
2819
+ ref: c,
2820
+ className: `chips ${r ? "chips--big" : ""} ${a ? "disabled" : ""} ${s ? "chips--clickable" : ""} ${l || ""}`,
2820
2821
  onClick: u,
2821
2822
  role: o.role ?? s ? "button" : void 0,
2822
2823
  tabIndex: o.tabIndex ?? s ? 0 : void 0,
@@ -2829,7 +2830,7 @@ const Wn = te.forwardRef(
2829
2830
  className: "chips__delete",
2830
2831
  onClick: d,
2831
2832
  "aria-label": `Remove ${n}`,
2832
- disabled: c,
2833
+ disabled: a,
2833
2834
  type: "button",
2834
2835
  children: /* @__PURE__ */ e.jsx(ie, {})
2835
2836
  }
@@ -2848,15 +2849,15 @@ const Gn = ve(
2848
2849
  onChange: s,
2849
2850
  readOnly: i,
2850
2851
  checked: l,
2851
- defaultChecked: c,
2852
+ defaultChecked: a,
2852
2853
  label: o,
2853
- size: a = "medium",
2854
+ size: c = "medium",
2854
2855
  variant: d = "primary",
2855
2856
  showLabel: u = !0,
2856
2857
  className: m,
2857
2858
  ...h
2858
2859
  }, x) => {
2859
- const f = t !== void 0 ? t === r : l !== void 0 ? l : c;
2860
+ const f = t !== void 0 ? t === r : l !== void 0 ? l : a;
2860
2861
  return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
2861
2862
  /* @__PURE__ */ e.jsx(
2862
2863
  "input",
@@ -2874,7 +2875,7 @@ const Gn = ve(
2874
2875
  ...h
2875
2876
  }
2876
2877
  ),
2877
- /* @__PURE__ */ e.jsx("span", { className: `radio-button-ui radio-button-ui--${a} radio-button-ui--${d}` }),
2878
+ /* @__PURE__ */ e.jsx("span", { className: `radio-button-ui radio-button-ui--${c} radio-button-ui--${d}` }),
2878
2879
  u && o && /* @__PURE__ */ e.jsx("span", { className: "radio-button-label", children: o })
2879
2880
  ] });
2880
2881
  }
@@ -2888,26 +2889,26 @@ const Zn = ve(
2888
2889
  name: s,
2889
2890
  readOnly: i = !1,
2890
2891
  onChange: l,
2891
- className: c = "",
2892
+ className: a = "",
2892
2893
  size: o = "medium",
2893
- variant: a = "primary",
2894
+ variant: c = "primary",
2894
2895
  ...d
2895
2896
  }, u) => {
2896
2897
  const [m, h] = g([]);
2897
2898
  V(() => {
2898
2899
  h(x(t));
2899
2900
  }, [t]);
2900
- const x = (j) => j === void 0 ? [] : Array.isArray(j) ? j : [j], f = (j, p) => {
2901
+ const x = (j) => j === void 0 ? [] : Array.isArray(j) ? j : [j], f = (j, _) => {
2901
2902
  if (i) return;
2902
2903
  j.preventDefault();
2903
- let _;
2904
- r ? _ = m.includes(p) ? m.filter((y) => y !== p) : [...m, p] : _ = m.includes(p) ? [] : [p], h(_), l == null || l(_, j);
2904
+ let p;
2905
+ r ? p = m.includes(_) ? m.filter((y) => y !== _) : [...m, _] : p = m.includes(_) ? [] : [_], h(p), l == null || l(p, j);
2905
2906
  };
2906
2907
  return /* @__PURE__ */ e.jsx(
2907
2908
  "div",
2908
2909
  {
2909
2910
  ref: u,
2910
- className: `segmented-button segmented-button--${o} segmented-button--${a} ${c}`,
2911
+ className: `segmented-button segmented-button--${o} segmented-button--${c} ${a}`,
2911
2912
  role: "group",
2912
2913
  ...d,
2913
2914
  children: n.map((j) => /* @__PURE__ */ e.jsxs(
@@ -2919,7 +2920,7 @@ const Zn = ve(
2919
2920
  "aria-label": j,
2920
2921
  disabled: i,
2921
2922
  className: `segmented-button__item ${m.includes(j) ? "segmented-button__item--active" : ""}`,
2922
- onClick: (p) => f(p, j),
2923
+ onClick: (_) => f(_, j),
2923
2924
  children: [
2924
2925
  m.includes(j) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2925
2926
  /* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: j }),
@@ -2951,9 +2952,9 @@ const Yn = ve(
2951
2952
  showLabel: s = !1,
2952
2953
  labelOn: i = "On",
2953
2954
  labelOff: l = "Off",
2954
- checked: c,
2955
+ checked: a,
2955
2956
  onChange: o,
2956
- ...a
2957
+ ...c
2957
2958
  }, d) => /* @__PURE__ */ e.jsxs("label", { className: `switch-container ${r}`, children: [
2958
2959
  /* @__PURE__ */ e.jsx(
2959
2960
  "input",
@@ -2961,14 +2962,14 @@ const Yn = ve(
2961
2962
  ref: d,
2962
2963
  type: "checkbox",
2963
2964
  role: "switch",
2964
- "aria-checked": c,
2965
- checked: c,
2965
+ "aria-checked": a,
2966
+ checked: a,
2966
2967
  onChange: o,
2967
2968
  className: `switch-input switch--${n} switch--${t}`,
2968
- ...a
2969
+ ...c
2969
2970
  }
2970
2971
  ),
2971
- s && /* @__PURE__ */ e.jsx("span", { className: "switch-label", children: c ? i : l })
2972
+ s && /* @__PURE__ */ e.jsx("span", { className: "switch-label", children: a ? i : l })
2972
2973
  ] })
2973
2974
  );
2974
2975
  Yn.displayName = "Switch";
@@ -2979,12 +2980,12 @@ function hr({
2979
2980
  onHide: s,
2980
2981
  noHide: i = !1,
2981
2982
  name: l = "selection_dialog",
2982
- confirmText: c = "Выбрать",
2983
+ confirmText: a = "Выбрать",
2983
2984
  cancelText: o = "Отмена",
2984
- defaultValue: a,
2985
+ defaultValue: c,
2985
2986
  style: d
2986
2987
  }) {
2987
- const [u, m] = g(a), h = k(() => {
2988
+ const [u, m] = g(c), h = k(() => {
2988
2989
  u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
2989
2990
  }, [u, n, i, s]), x = k(() => {
2990
2991
  s == null || s();
@@ -3003,7 +3004,7 @@ function hr({
3003
3004
  onHide: x,
3004
3005
  onSuccess: h,
3005
3006
  disabled: u === void 0,
3006
- confirmText: c,
3007
+ confirmText: a,
3007
3008
  cancelText: o
3008
3009
  }
3009
3010
  ),
@@ -3016,7 +3017,7 @@ function hr({
3016
3017
  scroll: !0,
3017
3018
  maxHeight: "300px",
3018
3019
  "aria-label": "Варианты выбора",
3019
- children: t.map((j, p) => /* @__PURE__ */ e.jsx(
3020
+ children: t.map((j, _) => /* @__PURE__ */ e.jsx(
3020
3021
  "label",
3021
3022
  {
3022
3023
  "aria-disabled": j.disabled,
@@ -3041,7 +3042,7 @@ function hr({
3041
3042
  }
3042
3043
  )
3043
3044
  },
3044
- `${l}_${p}`
3045
+ `${l}_${_}`
3045
3046
  ))
3046
3047
  }
3047
3048
  ),
@@ -3077,9 +3078,9 @@ const Ve = te.forwardRef(
3077
3078
  type: s = "text",
3078
3079
  transparent: i,
3079
3080
  readOnly: l,
3080
- password: c,
3081
+ password: a,
3081
3082
  border: o,
3082
- onClear: a,
3083
+ onClear: c,
3083
3084
  icon: d,
3084
3085
  onChange: u,
3085
3086
  name: m,
@@ -3087,8 +3088,8 @@ const Ve = te.forwardRef(
3087
3088
  placeholder: x,
3088
3089
  className: f,
3089
3090
  validEmptyValue: j,
3090
- onFocus: p,
3091
- onBlur: _,
3091
+ onFocus: _,
3092
+ onBlur: p,
3092
3093
  error: y,
3093
3094
  max: N,
3094
3095
  min: C,
@@ -3104,9 +3105,9 @@ const Ve = te.forwardRef(
3104
3105
  const Q = A.current.querySelector("input");
3105
3106
  Q == null || Q.focus();
3106
3107
  }, v = (Q) => {
3107
- p == null || p(Q), E(!0);
3108
+ _ == null || _(Q), E(!0);
3108
3109
  }, L = (Q) => {
3109
- _ == null || _(Q), E(!1), I(!!Q.target.value);
3110
+ p == null || p(Q), E(!1), I(!!Q.target.value);
3110
3111
  }, R = k(
3111
3112
  (Q, ne) => D(!!(y || Q && (!ne || ne === ""))),
3112
3113
  [y]
@@ -3149,7 +3150,7 @@ const Ve = te.forwardRef(
3149
3150
  readOnly: l,
3150
3151
  disabled: T,
3151
3152
  required: !0,
3152
- type: c ? "password" : s,
3153
+ type: a ? "password" : s,
3153
3154
  className: `
3154
3155
  input-field__input-container__input
3155
3156
  ${b ? "input-field__input-container__input_error" : ""}
@@ -3178,10 +3179,10 @@ const Ve = te.forwardRef(
3178
3179
  }
3179
3180
  )
3180
3181
  ] }),
3181
- a && h && !T && /* @__PURE__ */ e.jsx("div", { className: `
3182
+ c && h && !T && /* @__PURE__ */ e.jsx("div", { className: `
3182
3183
  input-field__icon-container
3183
3184
  input-field__icon-container_clear-btn
3184
- `, onClick: a, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
3185
+ `, onClick: c, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
3185
3186
  ]
3186
3187
  }
3187
3188
  ),
@@ -3198,36 +3199,36 @@ const Vs = ({
3198
3199
  onSuccess: s,
3199
3200
  onHide: i,
3200
3201
  placeholder: l,
3201
- type: c = "text",
3202
+ type: a = "text",
3202
3203
  min: o = 0,
3203
- max: a = 100,
3204
+ max: c = 100,
3204
3205
  defaultValue: d = "",
3205
3206
  confirmText: u = "OK",
3206
3207
  cancelText: m = "Отмена",
3207
3208
  validate: h
3208
3209
  }) => {
3209
- const [x, f] = g(d), [j, p] = g(!0);
3210
+ const [x, f] = g(d), [j, _] = g(!0);
3210
3211
  V(() => {
3211
3212
  if (h)
3212
- p(h(x));
3213
- else if (c === "number") {
3213
+ _(h(x));
3214
+ else if (a === "number") {
3214
3215
  const C = Number(x);
3215
- p(!isNaN(C) && C >= o && C <= a);
3216
+ _(!isNaN(C) && C >= o && C <= c);
3216
3217
  } else
3217
- p(!0);
3218
- }, [x, h, c, o, a]);
3219
- const _ = k(() => {
3218
+ _(!0);
3219
+ }, [x, h, a, o, c]);
3220
+ const p = k(() => {
3220
3221
  j && (s == null || s(x), i == null || i());
3221
3222
  }, [x, j, s, i]), y = k(() => {
3222
3223
  i == null || i();
3223
3224
  }, [i]), N = (C) => {
3224
- if (c === "number") {
3225
+ if (a === "number") {
3225
3226
  if (C === "") {
3226
3227
  f("");
3227
3228
  return;
3228
3229
  }
3229
3230
  const S = Number(C);
3230
- isNaN(S) || (S < o && (C = String(o)), S > a && (C = String(a)), f(C));
3231
+ isNaN(S) || (S < o && (C = String(o)), S > c && (C = String(c)), f(C));
3231
3232
  } else
3232
3233
  f(C);
3233
3234
  };
@@ -3242,8 +3243,8 @@ const Vs = ({
3242
3243
  /* @__PURE__ */ e.jsx(
3243
3244
  de,
3244
3245
  {
3245
- onClick: _,
3246
- disabled: !j || c === "number" && x === "",
3246
+ onClick: p,
3247
+ disabled: !j || a === "number" && x === "",
3247
3248
  children: u
3248
3249
  }
3249
3250
  )
@@ -3254,9 +3255,9 @@ const Vs = ({
3254
3255
  /* @__PURE__ */ e.jsx(
3255
3256
  Ve,
3256
3257
  {
3257
- type: c,
3258
+ type: a,
3258
3259
  min: o,
3259
- max: a,
3260
+ max: c,
3260
3261
  border: !0,
3261
3262
  placeholder: l,
3262
3263
  value: x,
@@ -3264,11 +3265,11 @@ const Vs = ({
3264
3265
  error: !j
3265
3266
  }
3266
3267
  ),
3267
- !j && c === "number" && /* @__PURE__ */ e.jsxs(X, { type: "body", children: [
3268
+ !j && a === "number" && /* @__PURE__ */ e.jsxs(X, { type: "body", children: [
3268
3269
  "Введите число от ",
3269
3270
  o,
3270
3271
  " до ",
3271
- a
3272
+ c
3272
3273
  ] })
3273
3274
  ] })
3274
3275
  ]
@@ -3276,71 +3277,72 @@ const Vs = ({
3276
3277
  );
3277
3278
  }, Ts = ({
3278
3279
  style: n,
3279
- className: t = "",
3280
- header: r,
3281
- children: s,
3282
- onSave: i,
3283
- onHide: l,
3284
- marginBottom: c = 0,
3285
- disableBackplate: o,
3286
- saveText: a,
3287
- cancelText: d,
3288
- forceFullScreen: u,
3289
- btns: m
3280
+ styleContent: t,
3281
+ className: r = "",
3282
+ header: s,
3283
+ children: i,
3284
+ onSave: l,
3285
+ onHide: a,
3286
+ marginBottom: o = 0,
3287
+ disableBackplate: c,
3288
+ saveText: d,
3289
+ cancelText: u,
3290
+ forceFullScreen: m,
3291
+ btns: h
3290
3292
  }) => {
3291
- const { screen: h } = Ce(we);
3293
+ const { screen: x } = Ce(we);
3292
3294
  Cn(!0, document.body);
3293
- const x = () => {
3295
+ const f = () => {
3296
+ a == null || a();
3297
+ }, j = () => {
3294
3298
  l == null || l();
3295
- }, f = () => {
3296
- i == null || i();
3297
3299
  };
3298
- return u || h === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
3300
+ return m || x === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
3299
3301
  "div",
3300
3302
  {
3301
3303
  style: {
3302
3304
  ...n,
3303
- height: `calc(100vh - ${c}px)`,
3304
- paddingBottom: `${c}px`
3305
+ height: `calc(100vh - ${o}px)`,
3306
+ paddingBottom: `${o}px`
3305
3307
  },
3306
3308
  className: `
3307
3309
  full-screen-dialog
3308
3310
  full-screen-dialog__container
3309
3311
  full-screen-dialog__container_color_surface-container
3310
- ${t}`,
3312
+ ${r}`,
3311
3313
  children: [
3312
3314
  /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__container__header", children: [
3313
- /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__button", children: l && /* @__PURE__ */ e.jsx(
3315
+ /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__button", children: a && /* @__PURE__ */ e.jsx(
3314
3316
  ue,
3315
3317
  {
3316
3318
  transparent: !0,
3317
- onClick: x,
3319
+ onClick: f,
3318
3320
  icon: /* @__PURE__ */ e.jsx(ie, {}),
3319
3321
  "aria-label": "Закрыть"
3320
3322
  }
3321
3323
  ) }),
3322
- /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: r }),
3323
- /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick: f, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(X, { type: "body", weight: "bold", children: a || "Сохранить" }) }) })
3324
+ /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: s }),
3325
+ /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: l && /* @__PURE__ */ e.jsx("button", { onClick: j, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(X, { type: "body", weight: "bold", children: d || "Сохранить" }) }) })
3324
3326
  ] }),
3325
- /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
3326
- s,
3327
- m && /* @__PURE__ */ e.jsx(ze, { btns: m.filter((p) => !p.hide && !p.success) })
3327
+ /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", style: t, children: [
3328
+ i,
3329
+ h && /* @__PURE__ */ e.jsx(ze, { btns: h.filter((p) => !p.hide && !p.success) })
3328
3330
  ] })
3329
3331
  ]
3330
3332
  }
3331
3333
  ) : /* @__PURE__ */ e.jsx(
3332
3334
  Ze,
3333
3335
  {
3334
- disableBackplate: o,
3336
+ disableBackplate: c,
3335
3337
  style: n,
3336
- header: r,
3337
- className: `full-screen-dialog ${t}`,
3338
- onHide: x,
3339
- action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3340
- l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
3341
- l && /* @__PURE__ */ e.jsx(ye, { onClick: f, children: a ?? "Сохранить" })
3342
- ] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
3343
- children: s
3338
+ header: s,
3339
+ className: `full-screen-dialog ${r}`,
3340
+ onHide: f,
3341
+ action: h === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3342
+ a && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: f, children: u ?? "Отмена" }),
3343
+ a && /* @__PURE__ */ e.jsx(ye, { onClick: j, children: d ?? "Сохранить" })
3344
+ ] }) : /* @__PURE__ */ e.jsx(ze, { btns: h, onHide: a, onSuccess: l }),
3345
+ children: i
3344
3346
  }
3345
3347
  );
3346
3348
  }, mr = ve(
@@ -3351,9 +3353,9 @@ const Vs = ({
3351
3353
  alt: s,
3352
3354
  header: i,
3353
3355
  subhead: l,
3354
- text: c,
3356
+ text: a,
3355
3357
  children: o,
3356
- iconButtonCell: a,
3358
+ iconButtonCell: c,
3357
3359
  onClick: d,
3358
3360
  screenSize: u,
3359
3361
  rootApp: m = "#root",
@@ -3361,8 +3363,8 @@ const Vs = ({
3361
3363
  loading: x = !1,
3362
3364
  style: f,
3363
3365
  elevation: j = 6,
3364
- ...p
3365
- }, _) => {
3366
+ ..._
3367
+ }, p) => {
3366
3368
  const { screen: y } = Ce(we), N = u ?? y, C = `elevation-${Math.min(24, Math.max(0, j))}`, S = (B) => {
3367
3369
  T(B) && (d == null || d(B), P(B));
3368
3370
  }, T = (B) => {
@@ -3377,11 +3379,11 @@ const Vs = ({
3377
3379
  return /* @__PURE__ */ e.jsxs(
3378
3380
  "div",
3379
3381
  {
3380
- ref: _,
3382
+ ref: p,
3381
3383
  style: f,
3382
3384
  className: `${n} card card--${h} ${C} ${x ? "card--loading" : ""}`,
3383
3385
  onClick: S,
3384
- ...p,
3386
+ ..._,
3385
3387
  children: [
3386
3388
  /* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
3387
3389
  r && /* @__PURE__ */ e.jsxs("div", { className: "card-image-container", children: [
@@ -3389,7 +3391,7 @@ const Vs = ({
3389
3391
  x && /* @__PURE__ */ e.jsx("div", { className: "card-image-overlay" })
3390
3392
  ] }),
3391
3393
  /* @__PURE__ */ e.jsxs("div", { className: "card-content", children: [
3392
- (i || a) && /* @__PURE__ */ e.jsxs("div", { className: "card-header", children: [
3394
+ (i || c) && /* @__PURE__ */ e.jsxs("div", { className: "card-header", children: [
3393
3395
  i && /* @__PURE__ */ e.jsx(
3394
3396
  X,
3395
3397
  {
@@ -3400,7 +3402,7 @@ const Vs = ({
3400
3402
  children: i
3401
3403
  }
3402
3404
  ),
3403
- a && /* @__PURE__ */ e.jsx("div", { className: "card-icon-button", children: a })
3405
+ c && /* @__PURE__ */ e.jsx("div", { className: "card-icon-button", children: c })
3404
3406
  ] }),
3405
3407
  l && /* @__PURE__ */ e.jsx(
3406
3408
  X,
@@ -3412,13 +3414,13 @@ const Vs = ({
3412
3414
  children: l
3413
3415
  }
3414
3416
  ),
3415
- c && /* @__PURE__ */ e.jsx(
3417
+ a && /* @__PURE__ */ e.jsx(
3416
3418
  X,
3417
3419
  {
3418
3420
  type: "body",
3419
3421
  screensize: N,
3420
3422
  className: "card-text",
3421
- children: c
3423
+ children: a
3422
3424
  }
3423
3425
  ),
3424
3426
  o && /* @__PURE__ */ e.jsx("div", { className: "card-children", children: o }),
@@ -3431,19 +3433,19 @@ const Vs = ({
3431
3433
  }
3432
3434
  );
3433
3435
  mr.displayName = "Card";
3434
- const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: c = !0 }) => {
3435
- const [o, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (p) => {
3436
- p.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
3437
- }, f = (p) => {
3438
- p.button == 1 && c && (u({ x: p.clientX, y: p.clientY }), a(!0), document.body.style.cursor = "move");
3439
- }, j = k((p) => {
3440
- o && (h((_) => {
3436
+ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: a = !0 }) => {
3437
+ const [o, c] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (_) => {
3438
+ _.button == 1 && (c(!1), u(null), document.body.style.cursor = "auto");
3439
+ }, f = (_) => {
3440
+ _.button == 1 && a && (u({ x: _.clientX, y: _.clientY }), c(!0), document.body.style.cursor = "move");
3441
+ }, j = k((_) => {
3442
+ o && (h((p) => {
3441
3443
  if (!d)
3442
- return _;
3443
- const y = p.clientX - d.x, N = p.clientY - d.y;
3444
- let C = _.x + y, S = _.y + N;
3444
+ return p;
3445
+ const y = _.clientX - d.x, N = _.clientY - d.y;
3446
+ let C = p.x + y, S = p.y + N;
3445
3447
  return { x: C, y: S };
3446
- }), u({ x: p.clientX, y: p.clientY }));
3448
+ }), u({ x: _.clientX, y: _.clientY }));
3447
3449
  }, [o, d]);
3448
3450
  return V(() => {
3449
3451
  l && h({ ...l });
@@ -3455,21 +3457,21 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3455
3457
  className: s,
3456
3458
  style: i,
3457
3459
  countColumn: l,
3458
- items: c,
3460
+ items: a,
3459
3461
  onClickColl: o,
3460
- classNameColumn: a,
3462
+ classNameColumn: c,
3461
3463
  minColumnWidth: d = "auto"
3462
3464
  }) => {
3463
3465
  const u = te.useCallback((x, f) => {
3464
3466
  const j = Array.from({ length: x }, () => []);
3465
- return f.forEach((p) => {
3466
- if (p.indexCol >= j.length) {
3467
- console.error(`Invalid column index. indexCol = ${p.indexCol}, column count = ${x}`);
3467
+ return f.forEach((_) => {
3468
+ if (_.indexCol >= j.length) {
3469
+ console.error(`Invalid column index. indexCol = ${_.indexCol}, column count = ${x}`);
3468
3470
  return;
3469
3471
  }
3470
- j[p.indexCol].push(p.node);
3472
+ j[_.indexCol].push(_.node);
3471
3473
  }), j;
3472
- }, []), m = te.useMemo(() => u(l, c), [u, l, c]), h = te.useCallback((x, f) => {
3474
+ }, []), m = te.useMemo(() => u(l, a), [u, l, a]), h = te.useCallback((x, f) => {
3473
3475
  o == null || o(x, f);
3474
3476
  }, [o]);
3475
3477
  return /* @__PURE__ */ e.jsx(
@@ -3488,9 +3490,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3488
3490
  "div",
3489
3491
  {
3490
3492
  onClick: (j) => h(f, j),
3491
- className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
3493
+ className: `${c} alex-evo-sh-ui-kit-column-layout-coll`,
3492
3494
  "data-testid": `column-${f}`,
3493
- children: x.map((j, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: j }, `item-${f}-${p}`))
3495
+ children: x.map((j, _) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: j }, `item-${f}-${_}`))
3494
3496
  },
3495
3497
  `column-${f}`
3496
3498
  ))
@@ -3503,28 +3505,28 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3503
3505
  style: s,
3504
3506
  border: i = !1,
3505
3507
  collapsible: l = !1,
3506
- defaultVisible: c = !1,
3508
+ defaultVisible: a = !1,
3507
3509
  action: o,
3508
- onVisibilityChange: a
3510
+ onVisibilityChange: c
3509
3511
  }) => {
3510
- const [d, u] = g(l ? c : !0), m = Y(null), h = (p) => {
3511
- if (!p) return;
3512
- const _ = Ye(p);
3513
- if (_)
3514
- return _.height + fr;
3515
- }, x = (p) => {
3516
- const _ = h(p);
3517
- return _ ? Math.min(_ * jr, 1) : 0.4;
3518
- }, f = (p) => {
3519
- const _ = p.target;
3520
- if (!(_.closest(".action-btn") || _.classList.contains("action-btn")) && l) {
3512
+ const [d, u] = g(l ? a : !0), m = Y(null), h = (_) => {
3513
+ if (!_) return;
3514
+ const p = Ye(_);
3515
+ if (p)
3516
+ return p.height + fr;
3517
+ }, x = (_) => {
3518
+ const p = h(_);
3519
+ return p ? Math.min(p * jr, 1) : 0.4;
3520
+ }, f = (_) => {
3521
+ const p = _.target;
3522
+ if (!(p.closest(".action-btn") || p.classList.contains("action-btn")) && l) {
3521
3523
  const N = !d;
3522
- u(N), a == null || a(N);
3524
+ u(N), c == null || c(N);
3523
3525
  }
3524
3526
  };
3525
3527
  V(() => {
3526
- !l && !d && (u(!0), a == null || a(!0));
3527
- }, [l, d, a]);
3528
+ !l && !d && (u(!0), c == null || c(!0));
3529
+ }, [l, d, c]);
3528
3530
  const j = oe(
3529
3531
  () => x(m.current),
3530
3532
  [m.current]
@@ -3544,8 +3546,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3544
3546
  role: l ? "button" : void 0,
3545
3547
  "aria-label": l ? `${t} - click to ${d ? "collapse" : "expand"}` : t,
3546
3548
  tabIndex: l ? 0 : void 0,
3547
- onKeyDown: (p) => {
3548
- l && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), f(p));
3549
+ onKeyDown: (_) => {
3550
+ l && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), f(_));
3549
3551
  },
3550
3552
  children: [
3551
3553
  /* @__PURE__ */ e.jsx(X, { type: "title", children: t }),
@@ -3557,8 +3559,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3557
3559
  "aria-label": o.ariaLabel || "Action",
3558
3560
  role: "button",
3559
3561
  tabIndex: 0,
3560
- onKeyDown: (p) => {
3561
- (p.key === "Enter" || p.key === " ") && (p.preventDefault(), o.onClick());
3562
+ onKeyDown: (_) => {
3563
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), o.onClick());
3562
3564
  },
3563
3565
  children: o.icon
3564
3566
  }
@@ -3601,22 +3603,22 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3601
3603
  gridRowGap: s = "10px",
3602
3604
  gridColumnGap: i = "5px",
3603
3605
  itemMinWith: l,
3604
- itemMaxWith: c,
3606
+ itemMaxWith: a,
3605
3607
  itemWith: o = "400px"
3606
3608
  }) => {
3607
- const a = Y(null), [d, u] = g([]), m = Y(null), h = Y(null), x = k(() => {
3608
- if (!a.current) return;
3609
- a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
3610
- const _ = l ?? o, y = c ?? o;
3611
- a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${y}))`, a.current.style.gridAutoRows = "1px";
3612
- }, [s, i, l, c, o]), f = k(() => {
3613
- if (a.current) {
3614
- const _ = a.current.querySelectorAll(".adaptiv-grid-item");
3615
- u(Array.from(_));
3609
+ const c = Y(null), [d, u] = g([]), m = Y(null), h = Y(null), x = k(() => {
3610
+ if (!c.current) return;
3611
+ c.current.style.display = "grid", c.current.style.gridRowGap = s, c.current.style.gridColumnGap = i;
3612
+ const p = l ?? o, y = a ?? o;
3613
+ c.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${p}, ${y}))`, c.current.style.gridAutoRows = "1px";
3614
+ }, [s, i, l, a, o]), f = k(() => {
3615
+ if (c.current) {
3616
+ const p = c.current.querySelectorAll(".adaptiv-grid-item");
3617
+ u(Array.from(p));
3616
3618
  }
3617
3619
  }, []), j = k(() => {
3618
- if (!a.current) return;
3619
- const _ = window.getComputedStyle(a.current), y = parseInt(_.getPropertyValue("grid-row-gap")) || 0, N = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
3620
+ if (!c.current) return;
3621
+ const p = window.getComputedStyle(c.current), y = parseInt(p.getPropertyValue("grid-row-gap")) || 0, N = parseInt(p.getPropertyValue("grid-auto-rows")) || 1;
3620
3622
  d.forEach((C) => {
3621
3623
  const S = C.querySelector(".adaptiv-grid-item-container");
3622
3624
  if (S) {
@@ -3624,7 +3626,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3624
3626
  C.style.gridRowEnd = `span ${P}`;
3625
3627
  }
3626
3628
  });
3627
- }, [d]), p = k(() => {
3629
+ }, [d]), _ = k(() => {
3628
3630
  h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
3629
3631
  j(), h.current = null;
3630
3632
  });
@@ -3632,16 +3634,16 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3632
3634
  return V(() => {
3633
3635
  x(), f();
3634
3636
  }, [x, f, t]), V(() => {
3635
- m.current && m.current.disconnect(), m.current = new ResizeObserver(() => p());
3636
- const _ = m.current;
3637
- return d.forEach((y) => _.observe(y)), p(), () => {
3638
- _.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3637
+ m.current && m.current.disconnect(), m.current = new ResizeObserver(() => _());
3638
+ const p = m.current;
3639
+ return d.forEach((y) => p.observe(y)), _(), () => {
3640
+ p.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3639
3641
  };
3640
- }, [d, p]), /* @__PURE__ */ e.jsx(
3642
+ }, [d, _]), /* @__PURE__ */ e.jsx(
3641
3643
  "div",
3642
3644
  {
3643
3645
  style: { minWidth: n },
3644
- ref: a,
3646
+ ref: c,
3645
3647
  className: `adaptiv-grid-layout ${r}`,
3646
3648
  children: t
3647
3649
  }
@@ -3653,10 +3655,10 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3653
3655
  shadow: s = 1,
3654
3656
  padded: i = !0,
3655
3657
  borderRadius: l = 12,
3656
- onClick: c,
3658
+ onClick: a,
3657
3659
  onContextMenu: o
3658
3660
  }) => {
3659
- const a = `container_shadow-${s}`;
3661
+ const c = `container_shadow-${s}`;
3660
3662
  return /* @__PURE__ */ e.jsx(
3661
3663
  "div",
3662
3664
  {
@@ -3664,9 +3666,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3664
3666
  borderRadius: `${l}px`,
3665
3667
  ...r
3666
3668
  },
3667
- onClick: c,
3669
+ onClick: a,
3668
3670
  onContextMenu: o,
3669
- className: `alex-evo-sh-ui-kit-panel ${a} ${i ? "padded" : ""} ${t}`,
3671
+ className: `alex-evo-sh-ui-kit-panel ${c} ${i ? "padded" : ""} ${t}`,
3670
3672
  children: n
3671
3673
  }
3672
3674
  );
@@ -3677,37 +3679,37 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3677
3679
  activeTabClassName: s = "active",
3678
3680
  onTabClick: i,
3679
3681
  activeTabIndex: l,
3680
- tabContainerClassName: c = ""
3682
+ tabContainerClassName: a = ""
3681
3683
  }) => {
3682
- const [o, a] = g(0), d = l !== void 0 ? l : o, u = Y(null), m = Y(null), [h, x] = g(!1), f = (_) => {
3684
+ const [o, c] = g(0), d = l !== void 0 ? l : o, u = Y(null), m = Y(null), [h, x] = g(!1), f = (p) => {
3683
3685
  if (u.current) {
3684
3686
  const y = t || u.current.offsetWidth / 2;
3685
3687
  u.current.scrollBy({
3686
- left: _ === "left" ? -y : y,
3688
+ left: p === "left" ? -y : y,
3687
3689
  behavior: "smooth"
3688
3690
  });
3689
3691
  }
3690
3692
  };
3691
3693
  V(() => {
3692
- const _ = () => {
3694
+ const p = () => {
3693
3695
  u.current && x(
3694
3696
  u.current.scrollWidth > u.current.clientWidth
3695
3697
  );
3696
3698
  };
3697
- return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
3699
+ return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
3698
3700
  }, []), V(() => {
3699
3701
  if (u.current && m.current) {
3700
- const _ = u.current.children[d];
3701
- _ && (m.current.style.width = `${_.offsetWidth}px`, m.current.style.transform = `translateX(${_.offsetLeft}px)`);
3702
+ const p = u.current.children[d];
3703
+ p && (m.current.style.width = `${p.offsetWidth}px`, m.current.style.transform = `translateX(${p.offsetLeft}px)`);
3702
3704
  }
3703
3705
  }, [d]);
3704
- const j = (_) => {
3705
- _.key === "ArrowRight" ? p((d + 1) % n.length) : _.key === "ArrowLeft" && p((d - 1 + n.length) % n.length);
3706
- }, p = (_) => {
3707
- l === void 0 && a(_), i && i(_);
3706
+ const j = (p) => {
3707
+ p.key === "ArrowRight" ? _((d + 1) % n.length) : p.key === "ArrowLeft" && _((d - 1 + n.length) % n.length);
3708
+ }, _ = (p) => {
3709
+ l === void 0 && c(p), i && i(p);
3708
3710
  };
3709
3711
  return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
3710
- /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${c}`, children: [
3712
+ /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${a}`, children: [
3711
3713
  h && /* @__PURE__ */ e.jsx("button", { onClick: () => f("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
3712
3714
  /* @__PURE__ */ e.jsxs(
3713
3715
  "div",
@@ -3717,14 +3719,14 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3717
3719
  onKeyDown: j,
3718
3720
  tabIndex: 0,
3719
3721
  children: [
3720
- n.map((_, y) => /* @__PURE__ */ e.jsx(
3722
+ n.map((p, y) => /* @__PURE__ */ e.jsx(
3721
3723
  "div",
3722
3724
  {
3723
3725
  className: `alex-evo-ui-kit-tab ${r} ${d === y ? s : ""}`,
3724
- onClick: () => p(y),
3725
- children: _.label
3726
+ onClick: () => _(y),
3727
+ children: p.label
3726
3728
  },
3727
- _.label
3729
+ p.label
3728
3730
  )),
3729
3731
  /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: m })
3730
3732
  ]
@@ -3741,9 +3743,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3741
3743
  scroll: s,
3742
3744
  transparent: i,
3743
3745
  width: l,
3744
- padding: c,
3746
+ padding: a,
3745
3747
  margin: o,
3746
- flex: a,
3748
+ flex: c,
3747
3749
  gap: d = 0,
3748
3750
  onObserv: u,
3749
3751
  ...m
@@ -3753,13 +3755,13 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3753
3755
  maxHeight: r,
3754
3756
  backgroundColor: i ? "transparent" : void 0,
3755
3757
  width: l,
3756
- padding: c,
3758
+ padding: a,
3757
3759
  margin: o
3758
3760
  };
3759
- a && (f.display = "flex", f.flexDirection = "column", d > 0 && (f.gap = d)), V(() => {
3761
+ c && (f.display = "flex", f.flexDirection = "column", d > 0 && (f.gap = d)), V(() => {
3760
3762
  if (!x.current || !u) return;
3761
- const p = new IntersectionObserver(u);
3762
- return p.observe(x.current), () => p.disconnect();
3763
+ const _ = new IntersectionObserver(u);
3764
+ return _.observe(x.current), () => _.disconnect();
3763
3765
  }, [u]);
3764
3766
  const j = [
3765
3767
  "list-container",
@@ -3778,35 +3780,35 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3778
3780
  header: s,
3779
3781
  description: i,
3780
3782
  value: l,
3781
- onClick: c,
3783
+ onClick: a,
3782
3784
  hovered: o = !0,
3783
- className: a = "",
3785
+ className: c = "",
3784
3786
  disabled: d = !1,
3785
3787
  active: u = !1,
3786
3788
  shadow: m = 0,
3787
3789
  noTransformTransition: h,
3788
3790
  ...x
3789
3791
  }, f) => {
3790
- const j = (_) => {
3791
- !d && !_.target.closest(".control-container") && (c == null || c(_));
3792
- }, p = [
3792
+ const j = (p) => {
3793
+ !d && !p.target.closest(".control-container") && (a == null || a(p));
3794
+ }, _ = [
3793
3795
  "list-item-container",
3794
- a,
3796
+ c,
3795
3797
  `container_shadow-hover-${m}`,
3796
3798
  o && !d ? "list-item-container_hovered" : "",
3797
3799
  d ? "list-item-container_disabled" : "",
3798
3800
  u ? "list-item-container_active" : "",
3799
3801
  h ? "no-transform-transition" : ""
3800
3802
  ].filter(Boolean).join(" ");
3801
- return /* @__PURE__ */ e.jsxs("li", { ref: f, className: p, onClick: j, "aria-disabled": d, ...x, children: [
3803
+ return /* @__PURE__ */ e.jsxs("li", { ref: f, className: _, onClick: j, "aria-disabled": d, ...x, children: [
3802
3804
  (n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(X, { type: "body", children: l }) }),
3803
3805
  (s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
3804
3806
  s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(X, { type: "title", children: s }) }),
3805
3807
  r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(X, { type: "small", children: r }) }),
3806
3808
  i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(X, { type: "small", color: "variant", children: i }) })
3807
3809
  ] }),
3808
- t && /* @__PURE__ */ e.jsx("div", { onClick: (_) => {
3809
- _.stopPropagation();
3810
+ t && /* @__PURE__ */ e.jsx("div", { onClick: (p) => {
3811
+ p.stopPropagation();
3810
3812
  }, className: "list-item-container__control-container", children: t })
3811
3813
  ] });
3812
3814
  });
@@ -3830,8 +3832,8 @@ function gr(n) {
3830
3832
  return t[0];
3831
3833
  }
3832
3834
  const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3833
- const l = n[t.field], c = Un(l);
3834
- return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: c.length > 0 && c[0].backgroundColor ? c[0].backgroundColor : s, height: i }, children: t.template ? t.template(c, n) : c.map((o, a) => /* @__PURE__ */ e.jsx(
3835
+ const l = n[t.field], a = Un(l);
3836
+ return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: a.length > 0 && a[0].backgroundColor ? a[0].backgroundColor : s, height: i }, children: t.template ? t.template(a, n) : a.map((o, c) => /* @__PURE__ */ e.jsx(
3835
3837
  "p",
3836
3838
  {
3837
3839
  style: { color: o.color ?? r },
@@ -3839,7 +3841,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3839
3841
  onClick: o.onClick,
3840
3842
  children: o.content
3841
3843
  },
3842
- a
3844
+ c
3843
3845
  )) });
3844
3846
  }, kr = ({
3845
3847
  actions: n,
@@ -3848,21 +3850,21 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3848
3850
  onContextMenu: s,
3849
3851
  onDelete: i,
3850
3852
  onEdit: l,
3851
- onClickRow: c,
3853
+ onClickRow: a,
3852
3854
  index: o,
3853
- maxH: a
3855
+ maxH: c
3854
3856
  }) => {
3855
3857
  const d = k(
3856
3858
  (u) => {
3857
- u.target.closest(".no-click") || c == null || c(t, o);
3859
+ u.target.closest(".no-click") || a == null || a(t, o);
3858
3860
  },
3859
- [o, c, t]
3861
+ [o, a, t]
3860
3862
  );
3861
3863
  return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: d, children: [
3862
3864
  r.map((u, m) => /* @__PURE__ */ e.jsx(
3863
3865
  br,
3864
3866
  {
3865
- H: a == null ? void 0 : a[m],
3867
+ H: c == null ? void 0 : c[m],
3866
3868
  color: u.color,
3867
3869
  backgroundColor: u.backgroundColor,
3868
3870
  column: u,
@@ -3906,13 +3908,13 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3906
3908
  onContextMenu: s,
3907
3909
  onEdit: i,
3908
3910
  actions: l,
3909
- shadow: c = 2,
3911
+ shadow: a = 2,
3910
3912
  onClickRow: o
3911
3913
  }) => {
3912
- const a = oe(
3914
+ const c = oe(
3913
3915
  () => t ?? vr(n),
3914
3916
  [n, t]
3915
- ), d = a.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), u = (h) => h ? (Array.isArray(h) ? h : [h]).map((f, j) => typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ e.jsx("span", { children: f }, j) : /* @__PURE__ */ e.jsx(
3917
+ ), d = c.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), u = (h) => h ? (Array.isArray(h) ? h : [h]).map((f, j) => typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ e.jsx("span", { children: f }, j) : /* @__PURE__ */ e.jsx(
3916
3918
  "span",
3917
3919
  {
3918
3920
  style: { color: f.color },
@@ -3920,10 +3922,10 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3920
3922
  children: f.content
3921
3923
  },
3922
3924
  j
3923
- )) : null, m = `container_shadow-${c}`;
3925
+ )) : null, m = `container_shadow-${a}`;
3924
3926
  return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${o ? "clicked" : ""} ${m}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
3925
3927
  /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
3926
- a.map((h) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, h.field)),
3928
+ c.map((h) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, h.field)),
3927
3929
  l && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }),
3928
3930
  (r || s || i) && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" })
3929
3931
  ] }) }),
@@ -3938,7 +3940,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3938
3940
  onClickRow: o,
3939
3941
  actions: l,
3940
3942
  index: x,
3941
- columns: a,
3943
+ columns: c,
3942
3944
  item: h,
3943
3945
  onDelete: r,
3944
3946
  onContextMenu: s,
@@ -4026,10 +4028,10 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4026
4028
  ) : null
4027
4029
  ) })
4028
4030
  ] });
4029
- }, Zs = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: i, backBtn: l, openAlways: c }) => {
4030
- const o = (a, d) => a.type === "button" ? /* @__PURE__ */ e.jsx(Re, { active: a.active, onClick: a.onClick, title: a.text, icon: a.icon }, d) : a.type === "link" ? /* @__PURE__ */ e.jsx(Xn, { onClick: () => s(), title: a.text, icon: a.icon, to: a.to }, d) : a.type === "submenu" ? /* @__PURE__ */ e.jsx(wr, { item: a, onHide: s }, d) : null;
4031
+ }, Zs = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: i, backBtn: l, openAlways: a }) => {
4032
+ const o = (c, d) => c.type === "button" ? /* @__PURE__ */ e.jsx(Re, { active: c.active, onClick: c.onClick, title: c.text, icon: c.icon }, d) : c.type === "link" ? /* @__PURE__ */ e.jsx(Xn, { onClick: () => s(), title: c.text, icon: c.icon, to: c.to }, d) : c.type === "submenu" ? /* @__PURE__ */ e.jsx(wr, { item: c, onHide: s }, d) : null;
4031
4033
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4032
- /* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer ${n || c ? "navigation-drawer_show" : "navigation-drawer_hide"}`, children: [
4034
+ /* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer ${n || a ? "navigation-drawer_show" : "navigation-drawer_hide"}`, children: [
4033
4035
  t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4034
4036
  /* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
4035
4037
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
@@ -4049,7 +4051,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4049
4051
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__divider", children: /* @__PURE__ */ e.jsx(se, {}) }),
4050
4052
  l ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block", children: /* @__PURE__ */ e.jsx(Re, { active: l.active, onClick: l.onClick, title: l.text, icon: l.icon }) }) : null
4051
4053
  ] }),
4052
- n && !c ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backplate", style: { zIndex: 1100 }, onClick: () => s() }) : null
4054
+ n && !a ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backplate", style: { zIndex: 1100 }, onClick: () => s() }) : null
4053
4055
  ] });
4054
4056
  }, Sr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(Qe, { to: r, className: "navigation-item navigation-item-rail", children: [
4055
4057
  /* @__PURE__ */ e.jsx("div", { className: `
@@ -4104,13 +4106,13 @@ function hn(n, t, r, s) {
4104
4106
  const i = t.getBoundingClientRect();
4105
4107
  let l = n.clientY - i.top;
4106
4108
  l > i.height && (l = i.height), l < 0 && (l = 0);
4107
- let c = n.clientX - i.left;
4108
- c > i.width && (c = i.width), c < 0 && (c = 0);
4109
- const o = l / i.height, a = c / i.width, d = 100 - 100 * o, u = 100 * a;
4110
- s(Math.round(u), Math.round(d)), Kn(r, c, l);
4109
+ let a = n.clientX - i.left;
4110
+ a > i.width && (a = i.width), a < 0 && (a = 0);
4111
+ const o = l / i.height, c = a / i.width, d = 100 - 100 * o, u = 100 * c;
4112
+ s(Math.round(u), Math.round(d)), Kn(r, a, l);
4111
4113
  }
4112
4114
  function $r(n, t, r, s) {
4113
- const i = (c) => hn(c, t, r, s);
4115
+ const i = (a) => hn(a, t, r, s);
4114
4116
  hn(n, t, r, s), r.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
4115
4117
  function l() {
4116
4118
  r.classList.remove("dragging"), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", l);
@@ -4138,7 +4140,7 @@ function xn(n, t, r, s) {
4138
4140
  s(o), qn(r, l);
4139
4141
  }
4140
4142
  function Fr(n, t, r, s) {
4141
- const i = (c) => xn(c, r, t, s);
4143
+ const i = (a) => xn(a, r, t, s);
4142
4144
  xn(n, r, t, s), t.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
4143
4145
  function l() {
4144
4146
  t.classList.remove("dragging"), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", l);
@@ -4173,15 +4175,15 @@ const Vr = [
4173
4175
  onAddColor: s,
4174
4176
  autoHide: i,
4175
4177
  defaultColor: l,
4176
- userColors: c = [],
4178
+ userColors: a = [],
4177
4179
  width: o = 310,
4178
- height: a = "auto"
4180
+ height: c = "auto"
4179
4181
  }) => {
4180
- const d = Y(null), u = Y(null), m = Y(null), h = Y(null), [x, f] = g(Tr(t)), [j, p] = g(!1), [_, y] = g(
4182
+ const d = Y(null), u = Y(null), m = Y(null), h = Y(null), [x, f] = g(Tr(t)), [j, _] = g(!1), [p, y] = g(
4181
4183
  `#${ke(Le(x))}`
4182
4184
  ), N = oe(() => Le(x), [x]), C = oe(() => `#${ke(N)}`, [N]), S = oe(
4183
- () => _[0] !== "#" ? `#${_}` : _,
4184
- [_]
4185
+ () => p[0] !== "#" ? `#${p}` : p,
4186
+ [p]
4185
4187
  );
4186
4188
  V(() => {
4187
4189
  !m.current || !d.current || !u.current || !h.current || T(
@@ -4219,13 +4221,13 @@ const Vr = [
4219
4221
  });
4220
4222
  }));
4221
4223
  }, []), V(() => {
4222
- if (_.length === 4 || _.length === 7)
4224
+ if (p.length === 4 || p.length === 7)
4223
4225
  try {
4224
- f(De(Ne(_)));
4226
+ f(De(Ne(p)));
4225
4227
  } catch {
4226
4228
  console.warn("Invalid HEX color");
4227
4229
  }
4228
- }, [_]);
4230
+ }, [p]);
4229
4231
  const T = (b, D, M, E, U) => {
4230
4232
  try {
4231
4233
  const I = b.getBoundingClientRect(), H = M.getBoundingClientRect(), G = Math.round(U.s * I.width), v = Math.round((1 - U.v) * I.height), L = (360 - U.h * 360) / 360 * H.height;
@@ -4240,8 +4242,8 @@ const Vr = [
4240
4242
  console.warn("Invalid color format");
4241
4243
  }
4242
4244
  }, B = k(() => {
4243
- s == null || s([...c, C]);
4244
- }, [s, c, C]), w = k(() => {
4245
+ s == null || s([...a, C]);
4246
+ }, [s, a, C]), w = k(() => {
4245
4247
  r == null || r(C), i && (n == null || n());
4246
4248
  }, [r, C]), W = k(
4247
4249
  (b, D) => {
@@ -4260,7 +4262,7 @@ const Vr = [
4260
4262
  className: "color-picker-panel",
4261
4263
  onHide: n,
4262
4264
  clearStyle: !0,
4263
- style: { width: o, height: a },
4265
+ style: { width: o, height: c },
4264
4266
  children: [
4265
4267
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4266
4268
  /* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((b, D) => /* @__PURE__ */ e.jsx(
@@ -4357,15 +4359,15 @@ const Vr = [
4357
4359
  "button",
4358
4360
  {
4359
4361
  className: "button-color-picker mode-toggle",
4360
- onClick: () => p((b) => !b),
4362
+ onClick: () => _((b) => !b),
4361
4363
  "aria-label": `Switch to ${j ? "RGB" : "HEX"} mode`,
4362
4364
  children: "Mode"
4363
4365
  }
4364
4366
  )
4365
4367
  ] }),
4366
- c.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4368
+ a.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4367
4369
  /* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
4368
- /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: c.map((b, D) => /* @__PURE__ */ e.jsx(
4370
+ /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: a.map((b, D) => /* @__PURE__ */ e.jsx(
4369
4371
  "button",
4370
4372
  {
4371
4373
  onClick: () => P(b),
@@ -4424,9 +4426,9 @@ const Vr = [
4424
4426
  value: s = "#f00",
4425
4427
  className: i = "",
4426
4428
  transparent: l = !1,
4427
- userColors: c = [],
4429
+ userColors: a = [],
4428
4430
  onAddColor: o,
4429
- defaultColor: a,
4431
+ defaultColor: c,
4430
4432
  placeholder: d
4431
4433
  }) => {
4432
4434
  const [u, m] = g(!1), [h, x] = g(s);
@@ -4440,9 +4442,9 @@ const Vr = [
4440
4442
  x(y), t == null || t(y), m(!1);
4441
4443
  },
4442
4444
  [t]
4443
- ), p = k(() => {
4445
+ ), _ = k(() => {
4444
4446
  m(!1);
4445
- }, []), _ = [
4447
+ }, []), p = [
4446
4448
  "input-field",
4447
4449
  "color-field",
4448
4450
  n ? "input-field_border" : "",
@@ -4450,7 +4452,7 @@ const Vr = [
4450
4452
  i
4451
4453
  ].filter(Boolean).join(" ");
4452
4454
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4453
- /* @__PURE__ */ e.jsxs("div", { className: _, children: [
4455
+ /* @__PURE__ */ e.jsxs("div", { className: p, children: [
4454
4456
  /* @__PURE__ */ e.jsxs("div", { className: "color-indicator-field", children: [
4455
4457
  /* @__PURE__ */ e.jsx(
4456
4458
  "div",
@@ -4477,12 +4479,12 @@ const Vr = [
4477
4479
  u && /* @__PURE__ */ e.jsx(_e, { container: r, children: /* @__PURE__ */ e.jsx(
4478
4480
  Or,
4479
4481
  {
4480
- defaultColor: a,
4481
- userColors: c,
4482
+ defaultColor: c,
4483
+ userColors: a,
4482
4484
  onAddColor: o,
4483
4485
  onChange: j,
4484
4486
  beginColor: h,
4485
- onHide: p
4487
+ onHide: _
4486
4488
  }
4487
4489
  ) })
4488
4490
  ] });
@@ -4500,7 +4502,7 @@ const Vr = [
4500
4502
  "November",
4501
4503
  "December"
4502
4504
  ], Dr = () => Array(Ar - fn).fill(0).map((n, t) => fn + t), Ir = ({ onChange: n, onHide: t }) => {
4503
- const [r] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = g((/* @__PURE__ */ new Date()).getFullYear()), [i] = g((/* @__PURE__ */ new Date()).getDate()), [l, c] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [o, a] = g((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = g({
4505
+ const [r] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = g((/* @__PURE__ */ new Date()).getFullYear()), [i] = g((/* @__PURE__ */ new Date()).getDate()), [l, a] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [o, c] = g((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = g({
4504
4506
  day: (/* @__PURE__ */ new Date()).getDate(),
4505
4507
  type: "NOW_MONTH"
4506
4508
  /* NOW_MONTH */
@@ -4510,16 +4512,16 @@ const Vr = [
4510
4512
  ), x = (C, S) => new Date(C, S + 1, 0).getDate(), f = (C, S, T) => new Date(C, S, T).getDay(), j = (C, S) => {
4511
4513
  let T = Array(x(C, S)).fill(0).map((W, O) => ({ type: "NOW_MONTH", day: O + 1 })), P = f(C, S, x(C, S)), B = Array(7 - P).fill(0).map((W, O) => ({ type: "NEXT_MONTH", day: O + 1 }));
4512
4514
  return T = Array(f(C, S, 0)).fill(0).map((W, O) => ({ type: "PREV_MONTH", day: x(S ? C : C - 1, S ? S - 1 : 11) - O })).reverse().concat(T).concat(B), T;
4513
- }, p = (C) => {
4515
+ }, _ = (C) => {
4514
4516
  h(
4515
4517
  "DAYS"
4516
4518
  /* DAYS */
4517
- ), a(C);
4518
- }, _ = (C) => {
4519
+ ), c(C);
4520
+ }, p = (C) => {
4519
4521
  h(
4520
4522
  "DAYS"
4521
4523
  /* DAYS */
4522
- ), c(C);
4524
+ ), a(C);
4523
4525
  }, y = (C) => {
4524
4526
  u(C);
4525
4527
  }, N = k(() => {
@@ -4545,10 +4547,10 @@ const Vr = [
4545
4547
  /* @__PURE__ */ e.jsx(Ie, {})
4546
4548
  ] }) })
4547
4549
  ] }),
4548
- m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(C), children: [
4550
+ m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => p(C), children: [
4549
4551
  /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4550
4552
  /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
4551
- ] }, S)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => p(C), children: [
4553
+ ] }, S)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => _(C), children: [
4552
4554
  /* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4553
4555
  /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
4554
4556
  ] }, S)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -4575,9 +4577,9 @@ const Vr = [
4575
4577
  value: s,
4576
4578
  className: i,
4577
4579
  error: l,
4578
- container: c,
4580
+ container: a,
4579
4581
  errorText: o,
4580
- helperText: a,
4582
+ helperText: c,
4581
4583
  size: d = "medium",
4582
4584
  disabled: u,
4583
4585
  placeholder: m,
@@ -4586,7 +4588,7 @@ const Vr = [
4586
4588
  onClear: f,
4587
4589
  ...j
4588
4590
  }) => {
4589
- const [p, _] = g(s ?? ""), [y, N] = g(!1), [C, S] = g(!1), [T, P] = g(!!s), B = Be(), w = l || o, W = () => {
4591
+ const [_, p] = g(s ?? ""), [y, N] = g(!1), [C, S] = g(!1), [T, P] = g(!!s), B = Be(), w = l || o, W = () => {
4590
4592
  N(!0);
4591
4593
  }, O = (I) => {
4592
4594
  let H = String(I + 1);
@@ -4599,13 +4601,13 @@ const Vr = [
4599
4601
  }, D = (I) => {
4600
4602
  h == null || h(I), S(!1), P(!!I.target.value);
4601
4603
  }, M = k(() => {
4602
- _(""), f == null || f(), t == null || t("");
4604
+ p(""), f == null || f(), t == null || t("");
4603
4605
  }, [f, t]);
4604
4606
  V(() => {
4605
4607
  P(!!s);
4606
4608
  }, [s]);
4607
4609
  const E = k((I, H, G) => {
4608
- _(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
4610
+ p(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
4609
4611
  }, [t]), U = {
4610
4612
  small: "input-field__date-field_small",
4611
4613
  medium: "input-field__date-field_medium",
@@ -4631,7 +4633,7 @@ const Vr = [
4631
4633
  type: "date",
4632
4634
  role: "textbox",
4633
4635
  name: r,
4634
- value: p,
4636
+ value: _,
4635
4637
  onBlur: D,
4636
4638
  onFocus: b,
4637
4639
  readOnly: !0,
@@ -4650,14 +4652,14 @@ const Vr = [
4650
4652
  }
4651
4653
  )
4652
4654
  ] }),
4653
- f && p && !u && /* @__PURE__ */ e.jsx("div", { className: `
4655
+ f && _ && !u && /* @__PURE__ */ e.jsx("div", { className: `
4654
4656
  input-field__icon-container
4655
4657
  input-field__icon-container_clear-btn
4656
4658
  `, onClick: M, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
4657
4659
  ] }),
4658
- y ? /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(Ir, { onChange: E, onHide: () => N(!1) }) }) : null,
4660
+ y ? /* @__PURE__ */ e.jsx(_e, { container: a, children: /* @__PURE__ */ e.jsx(Ir, { onChange: E, onHide: () => N(!1) }) }) : null,
4659
4661
  w && o && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: o }),
4660
- a && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: a })
4662
+ c && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: c })
4661
4663
  ] });
4662
4664
  }, zr = {
4663
4665
  Mon: "Mon",
@@ -4678,25 +4680,25 @@ const Vr = [
4678
4680
  V(() => {
4679
4681
  t && l(t);
4680
4682
  }, [t]);
4681
- const c = k((a) => (d) => {
4683
+ const a = k((c) => (d) => {
4682
4684
  l((u) => {
4683
- const m = d.target.checked ? [...u, a] : u.filter((h) => h !== a);
4685
+ const m = d.target.checked ? [...u, c] : u.filter((h) => h !== c);
4684
4686
  return n == null || n(m), m;
4685
4687
  });
4686
- }, [n]), o = k((a) => i.includes(a), [i]);
4687
- return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Pr.map((a) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
4688
+ }, [n]), o = k((c) => i.includes(c), [i]);
4689
+ return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Pr.map((c) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
4688
4690
  /* @__PURE__ */ e.jsx(
4689
4691
  "input",
4690
4692
  {
4691
4693
  type: "checkbox",
4692
- onChange: c(a),
4693
- checked: o(a),
4694
- "aria-label": s[a] || a
4694
+ onChange: a(c),
4695
+ checked: o(c),
4696
+ "aria-label": s[c] || c
4695
4697
  }
4696
4698
  ),
4697
- /* @__PURE__ */ e.jsx("span", { children: s[a] || a }),
4699
+ /* @__PURE__ */ e.jsx("span", { children: s[c] || c }),
4698
4700
  " "
4699
- ] }, a)) });
4701
+ ] }, c)) });
4700
4702
  });
4701
4703
  Br.displayName = "DayOfWeekField";
4702
4704
  const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn = (n, t = ",") => n.join(t), Gr = ({
@@ -4706,9 +4708,9 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4706
4708
  border: s = !1,
4707
4709
  placeholder: i = "Добавить значение",
4708
4710
  addButtonLabel: l = "Добавить",
4709
- separator: c = ",",
4711
+ separator: a = ",",
4710
4712
  disabled: o = !1,
4711
- className: a,
4713
+ className: c,
4712
4714
  ariaLabel: d = "Добавление нового элемента",
4713
4715
  chipsAriaLabel: u = "Список элементов",
4714
4716
  id: m,
@@ -4716,27 +4718,27 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4716
4718
  errorText: x,
4717
4719
  helperText: f
4718
4720
  }) => {
4719
- const [j, p] = g([]), [_, y] = g(""), [N, C] = g(null);
4721
+ const [j, _] = g([]), [p, y] = g(""), [N, C] = g(null);
4720
4722
  V(() => {
4721
- p(Wr(t, c));
4722
- }, [t, c]);
4723
+ _(Wr(t, a));
4724
+ }, [t, a]);
4723
4725
  const S = (w) => {
4724
4726
  y(w);
4725
4727
  }, T = (w) => {
4726
4728
  w.key === "Enter" && (w.preventDefault(), P());
4727
4729
  }, P = k(() => {
4728
- if (_.trim() === "" || j.includes(_.trim()))
4730
+ if (p.trim() === "" || j.includes(p.trim()))
4729
4731
  return;
4730
- const w = [...j, _.trim()];
4731
- p(w), r == null || r(jn(w, c)), y(""), C(w.length - 1);
4732
- }, [j, _, r, c]), B = (w) => {
4732
+ const w = [...j, p.trim()];
4733
+ _(w), r == null || r(jn(w, a)), y(""), C(w.length - 1);
4734
+ }, [j, p, r, a]), B = (w) => {
4733
4735
  const W = j.filter((O, A) => A !== w);
4734
- p(W), r == null || r(jn(W, c)), C(w > 0 ? w - 1 : null);
4736
+ _(W), r == null || r(jn(W, a)), C(w > 0 ? w - 1 : null);
4735
4737
  };
4736
4738
  return /* @__PURE__ */ e.jsxs(
4737
4739
  "div",
4738
4740
  {
4739
- className: `more-text ${a ?? ""}`,
4741
+ className: `more-text ${c ?? ""}`,
4740
4742
  style: { minWidth: n },
4741
4743
  id: m,
4742
4744
  children: [
@@ -4745,7 +4747,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4745
4747
  {
4746
4748
  onChange: S,
4747
4749
  onKeyDown: T,
4748
- value: _,
4750
+ value: p,
4749
4751
  border: s,
4750
4752
  placeholder: i,
4751
4753
  error: h,
@@ -4790,7 +4792,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4790
4792
  {
4791
4793
  onClick: P,
4792
4794
  className: "more-text-btn",
4793
- disabled: o || !_.trim(),
4795
+ disabled: o || !p.trim(),
4794
4796
  "aria-label": `${l} элемент`,
4795
4797
  children: l
4796
4798
  }
@@ -4809,9 +4811,9 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4809
4811
  readOnly: s,
4810
4812
  border: i,
4811
4813
  onClear: l,
4812
- icon: c,
4814
+ icon: a,
4813
4815
  onChange: o,
4814
- name: a,
4816
+ name: c,
4815
4817
  value: d,
4816
4818
  placeholder: u,
4817
4819
  className: m,
@@ -4819,8 +4821,8 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4819
4821
  onFocus: x,
4820
4822
  onBlur: f,
4821
4823
  error: j,
4822
- max: p,
4823
- min: _,
4824
+ max: _,
4825
+ min: p,
4824
4826
  size: y = "medium",
4825
4827
  disabled: N,
4826
4828
  step: C = 1,
@@ -4842,22 +4844,22 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4842
4844
  }, [o]), L = k(() => {
4843
4845
  I((z) => {
4844
4846
  let Z = z ? z + C : C;
4845
- return typeof p == "number" && Z > p && (Z = p), v(Z, a), Z;
4847
+ return typeof _ == "number" && Z > _ && (Z = _), v(Z, c), Z;
4846
4848
  });
4847
- }, [v, a, p, C]), R = k(() => {
4849
+ }, [v, c, _, C]), R = k(() => {
4848
4850
  I((z) => {
4849
4851
  let Z = z ? z - C : -C;
4850
- return typeof _ == "number" && Z < _ && (Z = _), v(Z, a), Z;
4852
+ return typeof p == "number" && Z < p && (Z = p), v(Z, c), Z;
4851
4853
  });
4852
- }, [v, a, _, C]), q = k((z) => {
4854
+ }, [v, c, p, C]), q = k((z) => {
4853
4855
  if (z.target.value === "") {
4854
4856
  I("");
4855
4857
  return;
4856
4858
  }
4857
4859
  z.target.value.length > 1 && z.target.value[0] === "0" && ![",", "."].includes(z.target.value[1]) && (z.target.value = z.target.value.slice(1));
4858
4860
  let Z = Number(z.target.value);
4859
- typeof _ == "number" && Z < _ && (Z = _), typeof p == "number" && Z > p && (Z = p), I(Number(z.target.value)), v(Z, a);
4860
- }, [a, v, U, p, _]), Q = k(() => {
4861
+ typeof p == "number" && Z < p && (Z = p), typeof _ == "number" && Z > _ && (Z = _), I(Number(z.target.value)), v(Z, c);
4862
+ }, [c, v, U, _, p]), Q = k(() => {
4861
4863
  O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.removeEventListener("mouseup", Q);
4862
4864
  }, []), ne = k((z) => {
4863
4865
  z === "p" ? L() : z === "m" && R(), O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.addEventListener("mouseup", Q), O.current = setTimeout(() => {
@@ -4896,20 +4898,20 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4896
4898
  "aria-disabled": N,
4897
4899
  "aria-invalid": M,
4898
4900
  children: [
4899
- c ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: G, "aria-hidden": "true", children: c }) : null,
4901
+ a ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: G, "aria-hidden": "true", children: a }) : null,
4900
4902
  /* @__PURE__ */ e.jsxs("div", { ref: D, className: "input-field__input-container", onClick: G, children: [
4901
4903
  /* @__PURE__ */ e.jsx(
4902
4904
  "input",
4903
4905
  {
4904
4906
  ref: n,
4905
- max: p,
4907
+ max: _,
4906
4908
  step: C,
4907
- min: _,
4909
+ min: p,
4908
4910
  readOnly: s,
4909
4911
  required: !0,
4910
4912
  type: "number",
4911
4913
  className: `input-field__input-container__input ${M ? "input-field__input-container__input_error" : ""}`,
4912
- name: a,
4914
+ name: c,
4913
4915
  value: U,
4914
4916
  onChange: q,
4915
4917
  onFocus: x,
@@ -4994,9 +4996,9 @@ const Qn = te.forwardRef(
4994
4996
  transparent: s,
4995
4997
  readOnly: i,
4996
4998
  border: l,
4997
- onClear: c,
4999
+ onClear: a,
4998
5000
  icon: o,
4999
- onChange: a,
5001
+ onChange: c,
5000
5002
  name: d,
5001
5003
  value: u,
5002
5004
  placeholder: m,
@@ -5004,8 +5006,8 @@ const Qn = te.forwardRef(
5004
5006
  validEmptyValue: x,
5005
5007
  onFocus: f,
5006
5008
  onBlur: j,
5007
- error: p,
5008
- autoFocus: _,
5009
+ error: _,
5010
+ autoFocus: p,
5009
5011
  disabled: y,
5010
5012
  helperText: N,
5011
5013
  errorText: C,
@@ -5021,8 +5023,8 @@ const Qn = te.forwardRef(
5021
5023
  }, I = (G) => {
5022
5024
  j == null || j(G), A(!1), D(!!G.target.value);
5023
5025
  }, H = k(
5024
- (G, v) => W(!!(p || G && (!v || v === ""))),
5025
- [p]
5026
+ (G, v) => W(!!(_ || G && (!v || v === ""))),
5027
+ [_]
5026
5028
  );
5027
5029
  return V(() => {
5028
5030
  H(x, u), D(!!u);
@@ -5058,11 +5060,11 @@ const Qn = te.forwardRef(
5058
5060
  value: u,
5059
5061
  className: `input-field__input-container__input input-field__text-area__input-container__textarea ${w ? "input-field__input-container__input_error" : ""}`,
5060
5062
  onClick: n,
5061
- onChange: (G) => a == null ? void 0 : a(G.target.value, G.target.name, G),
5063
+ onChange: (G) => c == null ? void 0 : c(G.target.value, G.target.name, G),
5062
5064
  onFocus: U,
5063
5065
  onBlur: I,
5064
5066
  onKeyDown: T,
5065
- autoFocus: _,
5067
+ autoFocus: p,
5066
5068
  "aria-invalid": w,
5067
5069
  "aria-describedby": w ? `${d}-error` : void 0
5068
5070
  }
@@ -5077,7 +5079,7 @@ const Qn = te.forwardRef(
5077
5079
  }
5078
5080
  )
5079
5081
  ] }),
5080
- c && u && !y && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container input-field__icon-container__clear-btn", onClick: c, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear textarea" }) })
5082
+ a && u && !y && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container input-field__icon-container__clear-btn", onClick: a, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear textarea" }) })
5081
5083
  ]
5082
5084
  }
5083
5085
  ),
@@ -5087,13 +5089,13 @@ const Qn = te.forwardRef(
5087
5089
  }
5088
5090
  );
5089
5091
  Qn.displayName = "TextArea";
5090
- const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: c }) => {
5091
- const [o, a] = g(!1), d = k((h) => {
5092
- n(h), a(!0);
5092
+ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: a }) => {
5093
+ const [o, c] = g(!1), d = k((h) => {
5094
+ n(h), c(!0);
5093
5095
  }, [n]), u = k((h) => {
5094
- t(h), a(!1);
5096
+ t(h), c(!1);
5095
5097
  }, [t]), m = k(() => {
5096
- a(!1), l();
5098
+ c(!1), l();
5097
5099
  }, []);
5098
5100
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5099
5101
  /* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Select time" }) }),
@@ -5112,7 +5114,7 @@ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
5112
5114
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5113
5115
  /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Rn, {}) }),
5114
5116
  /* @__PURE__ */ e.jsx(de, { className: "little", onClick: m, children: "Cancel" }),
5115
- /* @__PURE__ */ e.jsx(de, { className: "little", onClick: c, children: "OK" })
5117
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: a, children: "OK" })
5116
5118
  ] })
5117
5119
  ] });
5118
5120
  };
@@ -5168,11 +5170,11 @@ function Ur({ setMinutes: n }) {
5168
5170
  /* @__PURE__ */ e.jsx("span", { className: "center" })
5169
5171
  ] });
5170
5172
  }
5171
- const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, onCancel: l, onOK: c }) => {
5173
+ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, onCancel: l, onOK: a }) => {
5172
5174
  const o = (d) => {
5173
5175
  let u = Number(d.target.value);
5174
5176
  u < 0 && (u = 0), u > 23 && (u = 23), n(u);
5175
- }, a = (d) => {
5177
+ }, c = (d) => {
5176
5178
  let u = Number(d.target.value);
5177
5179
  u < 0 && (u = 0), u > 59 && (u = 59), t(u);
5178
5180
  };
@@ -5185,25 +5187,25 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5185
5187
  ] }),
5186
5188
  /* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
5187
5189
  /* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
5188
- /* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value: s, min: 0, max: 59, onChange: a }) }),
5190
+ /* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value: s, min: 0, max: 59, onChange: c }) }),
5189
5191
  /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
5190
5192
  ] })
5191
5193
  ] }),
5192
5194
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5193
5195
  /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(en, {}) }),
5194
5196
  /* @__PURE__ */ e.jsx(de, { className: "little", onClick: l, children: "Cancel" }),
5195
- /* @__PURE__ */ e.jsx(de, { className: "little", onClick: c, children: "OK" })
5197
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: a, children: "OK" })
5196
5198
  ] })
5197
5199
  ] });
5198
5200
  }, Kr = (n) => {
5199
- const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, c] = g(!0), o = () => {
5201
+ const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, a] = g(!0), o = () => {
5200
5202
  n.onHide && n.onHide(), r(0), i(0);
5201
- }, a = k((u) => {
5203
+ }, c = k((u) => {
5202
5204
  r(u), n.onChange && n.onChange(s, u), n.onHide && n.onHide();
5203
5205
  }, [s]), d = k(() => {
5204
5206
  n.onChange && n.onChange(s, t), n.onHide && n.onHide();
5205
5207
  }, [s, t]);
5206
- return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: a, setHours: i, minutes: t, hours: s, switchMode: () => c(!1), onCancel: o, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Xr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => c(!0), onCancel: o, onOK: d }) });
5208
+ return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: c, setHours: i, minutes: t, hours: s, switchMode: () => a(!1), onCancel: o, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Xr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => a(!0), onCancel: o, onOK: d }) });
5207
5209
  }, qr = {
5208
5210
  small: "input-field__time-field_small",
5209
5211
  medium: "input-field__time-field_medium",
@@ -5215,9 +5217,9 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5215
5217
  value: s = "",
5216
5218
  className: i = "",
5217
5219
  validEmptyValue: l,
5218
- error: c,
5220
+ error: a,
5219
5221
  container: o,
5220
- disabled: a = !1,
5222
+ disabled: c = !1,
5221
5223
  errorText: d,
5222
5224
  helperText: u,
5223
5225
  ariaLabel: m,
@@ -5225,12 +5227,12 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5225
5227
  ariaLabelledby: x,
5226
5228
  placeholder: f,
5227
5229
  onBlur: j,
5228
- onFocus: p,
5229
- onClear: _,
5230
+ onFocus: _,
5231
+ onClear: p,
5230
5232
  style: y,
5231
5233
  ...N
5232
5234
  }) => {
5233
- const [C, S] = g(s), [T, P] = g(!1), [B, w] = g(!1), [W, O] = g(!!s), A = Be(), b = c || !!d;
5235
+ const [C, S] = g(s), [T, P] = g(!1), [B, w] = g(!1), [W, O] = g(!!s), A = Be(), b = a || !!d;
5234
5236
  V(() => {
5235
5237
  S(s);
5236
5238
  }, [s]);
@@ -5238,14 +5240,14 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5238
5240
  const Q = String(R).padStart(2, "0"), ne = String(q).padStart(2, "0"), J = `${Q}:${ne}`;
5239
5241
  S(J), t == null || t(J);
5240
5242
  }, E = () => {
5241
- a || P(!0);
5243
+ c || P(!0);
5242
5244
  }, U = (R) => {
5243
- p == null || p(R), w(!0);
5245
+ _ == null || _(R), w(!0);
5244
5246
  }, I = (R) => {
5245
5247
  j == null || j(R), w(!1), O(!!R.target.value);
5246
5248
  }, H = k(() => {
5247
- S(""), _ == null || _(), t == null || t("");
5248
- }, [_, t]);
5249
+ S(""), p == null || p(), t == null || t("");
5250
+ }, [p, t]);
5249
5251
  V(() => {
5250
5252
  O(!!s);
5251
5253
  }, [s]);
@@ -5278,9 +5280,9 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5278
5280
  ${n ? "input-field_border" : ""}
5279
5281
  ${B ? "input-field_active" : ""}
5280
5282
  ${b ? "input-field_error" : ""}
5281
- ${a ? "input-field_disabled" : ""}
5283
+ ${c ? "input-field_disabled" : ""}
5282
5284
  `,
5283
- "aria-disabled": a,
5285
+ "aria-disabled": c,
5284
5286
  style: y,
5285
5287
  children: [
5286
5288
  /* @__PURE__ */ e.jsx(
@@ -5290,7 +5292,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5290
5292
  onClick: E,
5291
5293
  "aria-label": "Открыть пикер времени",
5292
5294
  role: "button",
5293
- tabIndex: a ? -1 : 0,
5295
+ tabIndex: c ? -1 : 0,
5294
5296
  onKeyDown: (R) => R.key === "Enter" && E(),
5295
5297
  children: /* @__PURE__ */ e.jsx(en, {})
5296
5298
  }
@@ -5307,7 +5309,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5307
5309
  readOnly: !0,
5308
5310
  onBlur: I,
5309
5311
  onFocus: U,
5310
- disabled: a,
5312
+ disabled: c,
5311
5313
  "aria-labelledby": x,
5312
5314
  "aria-invalid": b,
5313
5315
  "aria-describedby": b && d ? `${r}-error` : u ? `${r}-helper` : void 0
@@ -5325,7 +5327,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5325
5327
  ),
5326
5328
  /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__text-field-line" })
5327
5329
  ] }),
5328
- _ && C && !a && /* @__PURE__ */ e.jsx("div", { className: `
5330
+ p && C && !c && /* @__PURE__ */ e.jsx("div", { className: `
5329
5331
  input-field__icon-container
5330
5332
  input-field__icon-container_clear-btn
5331
5333
  `, onClick: H, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
@@ -5348,14 +5350,14 @@ function Qr(n, t, r, s, i) {
5348
5350
  return s + (i - s) * ((n - t) / (r - t));
5349
5351
  }
5350
5352
  const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5351
- const [r, s] = g(0), [i, l] = g(!1), c = Y(null), o = Y(null);
5353
+ const [r, s] = g(0), [i, l] = g(!1), a = Y(null), o = Y(null);
5352
5354
  V(() => {
5353
5355
  t.value ? s(t.value) : s(0);
5354
5356
  }, [t.value]);
5355
- const a = (h) => {
5357
+ const c = (h) => {
5356
5358
  s(Number(h.target.value)), t.onChange && t.onChange(h);
5357
5359
  }, d = (h, x, f) => {
5358
- if (c.current && o.current) {
5360
+ if (a.current && o.current) {
5359
5361
  let j = Ye(o.current);
5360
5362
  if (j)
5361
5363
  return Qr(h, x, f, 0, f - x) * (j.width - 20) / (f - x);
@@ -5369,31 +5371,31 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5369
5371
  return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
5370
5372
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: t.min ?? Ke }) : null,
5371
5373
  /* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
5372
- /* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: c, style: { width: d(r, t.min ?? Ke, t.max ?? qe) }, children: /* @__PURE__ */ e.jsx("div", { className: "slider-tooltip", style: { display: i ? "block" : "none" }, children: n && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5374
+ /* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: a, style: { width: d(r, t.min ?? Ke, t.max ?? qe) }, children: /* @__PURE__ */ e.jsx("div", { className: "slider-tooltip", style: { display: i ? "block" : "none" }, children: n && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5373
5375
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
5374
5376
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
5375
5377
  ] }) }) }),
5376
- /* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: o, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur: m })
5378
+ /* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: o, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: c, value: r, onFocus: u, onBlur: m })
5377
5379
  ] }),
5378
5380
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: t.max ?? qe }) : null
5379
5381
  ] }) });
5380
- }, Ks = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: l, btn: c }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jt(i), color: s, ...l }, children: [
5382
+ }, Ks = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: l, btn: a }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jt(i), color: s, ...l }, children: [
5381
5383
  /* @__PURE__ */ e.jsx("h2", { children: r }),
5382
5384
  t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
5383
- c ? /* @__PURE__ */ e.jsx(ye, { styleType: c.styleType ?? "filled", style: c.style, className: c.className, onClick: c.onClick, children: c.text }) : null
5384
- ] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: c }) => {
5385
- const [o, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, f] = g(!0), j = k((N, C) => {
5385
+ a ? /* @__PURE__ */ e.jsx(ye, { styleType: a.styleType ?? "filled", style: a.style, className: a.className, onClick: a.onClick, children: a.text }) : null
5386
+ ] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: a }) => {
5387
+ const [o, c] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, f] = g(!0), j = k((N, C) => {
5386
5388
  s({ ...r, [C]: N });
5387
- }, [s, r]), p = k(() => {
5388
- u(""), a(""), h(!1);
5389
- }, []), _ = k(() => {
5389
+ }, [s, r]), _ = k(() => {
5390
+ u(""), c(""), h(!1);
5391
+ }, []), p = k(() => {
5390
5392
  let N = d;
5391
5393
  try {
5392
- c || (N = JSON.parse(N));
5394
+ a || (N = JSON.parse(N));
5393
5395
  } catch {
5394
5396
  }
5395
- p(), s({ ...r, [o]: N });
5396
- }, [r, s, o, d, p]), y = k((N) => {
5397
+ _(), s({ ...r, [o]: N });
5398
+ }, [r, s, o, d, _]), y = k((N) => {
5397
5399
  let C = { ...r };
5398
5400
  delete C[N], s(C);
5399
5401
  }, [r, s]);
@@ -5411,36 +5413,36 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5411
5413
  (N, C) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => y(N), onChange: (S) => j(S, N), name: N, data: r[N] }) }, C)
5412
5414
  ) : null }) : null,
5413
5415
  m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5414
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "key", onChange: (N) => a(N.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5416
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "key", onChange: (N) => c(N.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5415
5417
  ":",
5416
5418
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (N) => u(N.target.value), className: "json-base-data-input", type: "text", value: d }) }),
5417
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: _, children: "save" }),
5418
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: p, children: "cancel" })
5419
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: p, children: "save" }),
5420
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: _, children: "cancel" })
5419
5421
  ] }) : null,
5420
5422
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5421
5423
  "}",
5422
5424
  !n && !l ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(Ge, {}) }) : null
5423
5425
  ] })
5424
5426
  ] }) });
5425
- }, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: c }) => {
5426
- const [o, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((_, y) => {
5427
+ }, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: a }) => {
5428
+ const [o, c] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((p, y) => {
5427
5429
  const N = r.slice();
5428
- N[y] = _, s(N);
5430
+ N[y] = p, s(N);
5429
5431
  }, [s, r]), f = k(() => {
5430
- a(""), u(!1);
5432
+ c(""), u(!1);
5431
5433
  }, []), j = k(() => {
5432
- let _ = o;
5434
+ let p = o;
5433
5435
  try {
5434
- c || (_ = JSON.parse(_));
5436
+ a || (p = JSON.parse(p));
5435
5437
  } catch {
5436
5438
  }
5437
- f(), s([...r, _]);
5438
- }, [r, s, o, f]), p = k((_) => {
5439
- s(r.filter((y, N) => N !== _));
5439
+ f(), s([...r, p]);
5440
+ }, [r, s, o, f]), _ = k((p) => {
5441
+ s(r.filter((y, N) => N !== p));
5440
5442
  }, [r, s]);
5441
5443
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5442
5444
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
5443
- /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((_) => !_), children: [
5445
+ /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((p) => !p), children: [
5444
5446
  t,
5445
5447
  ":",
5446
5448
  "[",
@@ -5448,9 +5450,9 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5448
5450
  ] }),
5449
5451
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5450
5452
  ] }),
5451
- m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => p(y), onChange: (N) => x(N, y), name: String(y), data: _ }) }, y)) }) : null,
5453
+ m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((p, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => _(y), onChange: (N) => x(N, y), name: String(y), data: p }) }, y)) }) : null,
5452
5454
  d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5453
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "value", onChange: (_) => a(_.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5455
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "value", onChange: (p) => c(p.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5454
5456
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: j, children: "save" }),
5455
5457
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: f, children: "cancel" })
5456
5458
  ] }) : null,
@@ -5460,8 +5462,8 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5460
5462
  ] })
5461
5463
  ] }) });
5462
5464
  }, ts = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
5463
- const l = k((c) => {
5464
- s(c.target.value);
5465
+ const l = k((a) => {
5466
+ s(a.target.value);
5465
5467
  }, [s]);
5466
5468
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5467
5469
  /* @__PURE__ */ e.jsx("span", { className: "json-object-name", children: t }),
@@ -5473,11 +5475,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5473
5475
  ] }) }) });
5474
5476
  };
5475
5477
  var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
5476
- const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: c }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: c }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: c }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: c }) => {
5477
- const [o, a] = g(r || void 0), [d, u] = g(""), m = k((f) => {
5478
- n || (a(f), s && s(f));
5478
+ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: a }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: a }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: a }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: a }) => {
5479
+ const [o, c] = g(r || void 0), [d, u] = g(""), m = k((f) => {
5480
+ n || (c(f), s && s(f));
5479
5481
  }, [s]), h = k(() => {
5480
- n || (a(void 0), i && i());
5482
+ n || (c(void 0), i && i());
5481
5483
  }, [i]), x = k(() => {
5482
5484
  if (n)
5483
5485
  return;
@@ -5486,33 +5488,33 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5486
5488
  f = JSON.parse(f);
5487
5489
  } catch {
5488
5490
  }
5489
- a(f), s && s(f);
5491
+ c(f), s && s(f);
5490
5492
  }, [s, d]);
5491
5493
  return V(() => {
5492
- a(r);
5494
+ c(r);
5493
5495
  }, [r]), !o && n ? /* @__PURE__ */ e.jsx("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: "value" }) }) : o ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5494
5496
  /* @__PURE__ */ e.jsx(on, { transparent: !0, text: JSON.stringify(r) }),
5495
- /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: o, baseType: l, name: t, onlyStringValue: c })
5497
+ /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: o, baseType: l, name: t, onlyStringValue: a })
5496
5498
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
5497
5499
  /* @__PURE__ */ e.jsx(on, { transparent: !0, text: JSON.stringify(r) }),
5498
5500
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (f) => u(f.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
5499
5501
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
5500
5502
  ] });
5501
5503
  }, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
5502
- const c = Y(null), [o, a] = g(""), [d, u] = g(!1), m = () => {
5503
- c.current && (c.current.focus(), u(!0));
5504
+ const a = Y(null), [o, c] = g(""), [d, u] = g(!1), m = () => {
5505
+ a.current && (a.current.focus(), u(!0));
5504
5506
  }, h = () => {
5505
- c.current && (c.current.focus(), c.current.value = ""), a(""), u(!0), i && r("");
5507
+ a.current && (a.current.focus(), a.current.value = ""), c(""), u(!0), i && r("");
5506
5508
  }, x = () => {
5507
- h(), c.current && (c.current.blur(), u(!1));
5508
- }, f = (p) => {
5509
- a(p.target.value), i && r(p.target.value);
5510
- }, j = (p) => {
5511
- p.code === "Enter" && r(o);
5509
+ h(), a.current && (a.current.blur(), u(!1));
5510
+ }, f = (_) => {
5511
+ c(_.target.value), i && r(_.target.value);
5512
+ }, j = (_) => {
5513
+ _.code === "Enter" && r(o);
5512
5514
  };
5513
5515
  return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5514
5516
  d ? /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(nn, {}) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n.onClick, children: n.icon }) : t || null,
5515
- /* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: c, onChange: f, onKeyDown: j, value: o, onFocus: () => u(!0) }),
5517
+ /* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: a, onChange: f, onKeyDown: j, value: o, onFocus: () => u(!0) }),
5516
5518
  d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
5517
5519
  ] }) });
5518
5520
  }, rs = ({
@@ -5523,10 +5525,10 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5523
5525
  onClose: i,
5524
5526
  point: l = { x: 50, y: 50 }
5525
5527
  }) => {
5526
- const c = Y(null);
5528
+ const a = Y(null);
5527
5529
  if (V(() => {
5528
5530
  const d = (u) => {
5529
- s && c.current && !c.current.contains(u.target) && i();
5531
+ s && a.current && !a.current.contains(u.target) && i();
5530
5532
  };
5531
5533
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
5532
5534
  }, [s, i]), !s) return null;
@@ -5536,12 +5538,12 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5536
5538
  ...t,
5537
5539
  [d]: h
5538
5540
  });
5539
- }, a = {
5541
+ }, c = {
5540
5542
  top: `${l.y}px`,
5541
5543
  left: `${l.x}px`,
5542
5544
  zIndex: 1e3
5543
5545
  };
5544
- return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: c, children: n.map(({ name: d, options: u }, m) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5546
+ return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: c, children: /* @__PURE__ */ e.jsx("div", { ref: a, children: n.map(({ name: d, options: u }, m) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5545
5547
  m !== 0 && /* @__PURE__ */ e.jsx(se, {}),
5546
5548
  /* @__PURE__ */ e.jsx(X, { type: "title-2", weight: "bold", children: d }),
5547
5549
  /* @__PURE__ */ e.jsx("div", { className: "filter-block", children: u.map((h) => /* @__PURE__ */ e.jsxs("label", { className: "filter-field", children: [
@@ -5563,18 +5565,18 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5563
5565
  filters: s,
5564
5566
  selectedFilters: i,
5565
5567
  onChangeFilter: l,
5566
- border: c = !1
5568
+ border: a = !1
5567
5569
  }) => {
5568
- const o = Y(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), f = () => {
5570
+ const o = Y(null), [c, d] = g(""), [u, m] = g(!1), [h, x] = g(null), f = () => {
5569
5571
  o.current && (o.current.focus(), m(!0));
5570
5572
  }, j = () => {
5571
5573
  o.current && (o.current.focus(), o.current.value = ""), d(""), m(!0), r && n("");
5572
- }, p = () => {
5574
+ }, _ = () => {
5573
5575
  j(), o.current && (o.current.blur(), m(!1));
5574
- }, _ = (C) => {
5576
+ }, p = (C) => {
5575
5577
  d(C.target.value), r && n(C.target.value);
5576
5578
  }, y = (C) => {
5577
- C.code === "Enter" && n(a);
5579
+ C.code === "Enter" && n(c);
5578
5580
  }, N = (C) => {
5579
5581
  const S = C.currentTarget.getBoundingClientRect();
5580
5582
  x({
@@ -5584,21 +5586,21 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5584
5586
  });
5585
5587
  };
5586
5588
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5587
- /* @__PURE__ */ e.jsx("div", { className: `search-container ${c ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5588
- u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: N, children: /* @__PURE__ */ e.jsx(On, {}) }),
5589
- /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: o, onChange: _, onKeyDown: y, value: a, onFocus: () => m(!0) }),
5589
+ /* @__PURE__ */ e.jsx("div", { className: `search-container ${a ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5590
+ u ? /* @__PURE__ */ e.jsx("span", { onClick: _, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: N, children: /* @__PURE__ */ e.jsx(On, {}) }),
5591
+ /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: o, onChange: p, onKeyDown: y, value: c, onFocus: () => m(!0) }),
5590
5592
  u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(tn, {}) })
5591
5593
  ] }) }),
5592
5594
  /* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
5593
5595
  ] });
5594
5596
  }, ss = ({ visible: n, text: t, option: r }) => {
5595
- const [s, i] = g(n), [l, c] = g(!1);
5597
+ const [s, i] = g(n), [l, a] = g(!1);
5596
5598
  V(() => {
5597
- n ? (i(!0), setTimeout(() => c(!0), 10)) : (c(!1), setTimeout(() => i(!1), 300));
5599
+ n ? (i(!0), setTimeout(() => a(!0), 10)) : (a(!1), setTimeout(() => i(!1), 300));
5598
5600
  }, [n]);
5599
5601
  const o = () => {
5600
- var a;
5601
- return (a = r == null ? void 0 : r.onHide) == null ? void 0 : a.call(r);
5602
+ var c;
5603
+ return (c = r == null ? void 0 : r.onHide) == null ? void 0 : c.call(r);
5602
5604
  };
5603
5605
  return s ? /* @__PURE__ */ e.jsxs(
5604
5606
  "div",
@@ -5623,17 +5625,17 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5623
5625
  density: s = "normal",
5624
5626
  className: i = "",
5625
5627
  text: l,
5626
- style: c,
5628
+ style: a,
5627
5629
  onClick: o,
5628
- onContextMenu: a,
5630
+ onContextMenu: c,
5629
5631
  ...d
5630
5632
  }) => {
5631
- const u = Y(null), m = Y(null), [h, x] = g(!1), f = n === "heading" || n === "title" || n === "title-2", j = f ? "h3" : "span", p = {
5633
+ const u = Y(null), m = Y(null), [h, x] = g(!1), f = n === "heading" || n === "title" || n === "title-2", j = f ? "h3" : "span", _ = {
5632
5634
  fontSize: bn(n, t),
5633
5635
  fontWeight: kn(n, r),
5634
5636
  lineHeight: yn(n, s, t),
5635
- ...c
5636
- }, _ = f ? "typography-heading" : "typography-text", y = k(() => {
5637
+ ...a
5638
+ }, p = f ? "typography-heading" : "typography-text", y = k(() => {
5637
5639
  if (!u.current || !m.current) return;
5638
5640
  const N = u.current.clientWidth, C = m.current.scrollWidth;
5639
5641
  x(N < C);
@@ -5646,14 +5648,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5646
5648
  {
5647
5649
  ref: u,
5648
5650
  onClick: o,
5649
- onContextMenu: a,
5651
+ onContextMenu: c,
5650
5652
  className: `runing-text ${h ? "runing" : ""}`,
5651
5653
  children: /* @__PURE__ */ e.jsx(
5652
5654
  j,
5653
5655
  {
5654
5656
  ...d,
5655
- style: p,
5656
- className: `${_} ${i}`,
5657
+ style: _,
5658
+ className: `${p} ${i}`,
5657
5659
  children: h ? `| ${l} | ${l}` : l
5658
5660
  }
5659
5661
  )
@@ -5668,9 +5670,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5668
5670
  visibility: "hidden",
5669
5671
  height: "auto",
5670
5672
  whiteSpace: "nowrap",
5671
- ...p
5673
+ ..._
5672
5674
  },
5673
- className: `${_} ${i}`,
5675
+ className: `${p} ${i}`,
5674
5676
  children: l
5675
5677
  }
5676
5678
  )
@@ -5691,9 +5693,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5691
5693
  items: s,
5692
5694
  onChange: i,
5693
5695
  value: l,
5694
- placeholder: c,
5696
+ placeholder: a,
5695
5697
  className: o,
5696
- border: a,
5698
+ border: c,
5697
5699
  name: d,
5698
5700
  error: u,
5699
5701
  onBlur: m,
@@ -5701,11 +5703,11 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5701
5703
  container: x = document.body,
5702
5704
  size: f = "medium",
5703
5705
  transparent: j,
5704
- helperText: p,
5705
- errorText: _,
5706
+ helperText: _,
5707
+ errorText: p,
5706
5708
  disabled: y
5707
5709
  }, N) => {
5708
- const [C, S] = g(""), [T, P] = g({ x: 0, y: 0, width: 100 }), [B, w] = g(!1), W = !!(u || _);
5710
+ const [C, S] = g(""), [T, P] = g({ x: 0, y: 0, width: 100 }), [B, w] = g(!1), W = !!(u || p);
5709
5711
  V(() => {
5710
5712
  S(pn(s, l ?? ""));
5711
5713
  }, [l, s]);
@@ -5726,7 +5728,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5726
5728
  input-field
5727
5729
  input-field__text-field
5728
5730
  ${D[f]}
5729
- ${a ? "input-field_border" : ""}
5731
+ ${c ? "input-field_border" : ""}
5730
5732
  ${B ? "input-field_active" : ""}
5731
5733
  ${j ? "input-field_transparent" : ""}
5732
5734
  ${W ? "input-field_error" : ""}
@@ -5747,17 +5749,17 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5747
5749
  readOnly: !0
5748
5750
  }
5749
5751
  ),
5750
- /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: c ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: c }) : null })
5752
+ /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: a ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: a }) : null })
5751
5753
  ] }) }),
5752
- W && _ && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: _ }),
5753
- p && !W && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: p }),
5754
+ W && p && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: p }),
5755
+ _ && !W && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: _ }),
5754
5756
  /* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: T.width, screensize: r, x: T.x, y: T.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(A) }], visible: B })
5755
5757
  ] });
5756
5758
  }
5757
5759
  );
5758
5760
  nt.displayName = "SelectField";
5759
5761
  const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, container: l = document.getElementById("root") }) => {
5760
- const [c, o] = g(!1), a = n.find((u) => u.id === t), d = (u) => {
5762
+ const [a, o] = g(!1), c = n.find((u) => u.id === t), d = (u) => {
5761
5763
  r == null || r(u), o(!1);
5762
5764
  };
5763
5765
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -5765,15 +5767,15 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
5765
5767
  Ve,
5766
5768
  {
5767
5769
  border: !0,
5768
- icon: (a == null ? void 0 : a.component) ?? void 0,
5769
- value: a == null ? void 0 : a.name,
5770
+ icon: (c == null ? void 0 : c.component) ?? void 0,
5771
+ value: c == null ? void 0 : c.name,
5770
5772
  readOnly: !0,
5771
5773
  disabled: s,
5772
5774
  onClick: () => o(!0),
5773
5775
  placeholder: i
5774
5776
  }
5775
5777
  ),
5776
- c && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
5778
+ a && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
5777
5779
  hr,
5778
5780
  {
5779
5781
  header: "Icons",
@@ -5848,9 +5850,9 @@ const as = {
5848
5850
  hideSnackbar: () => {
5849
5851
  }
5850
5852
  }, cs = Pe(as), ri = ({ children: n }) => {
5851
- var c;
5852
- const [t, r] = g({ visible: !1, text: "" }), s = Y(null), i = k((o, a) => {
5853
- r({ visible: !0, text: o, option: a }), s.current && clearTimeout(s.current), a != null && a.closeButton || (s.current = setTimeout(() => l(), (a == null ? void 0 : a.delay) ?? 3e3));
5853
+ var a;
5854
+ const [t, r] = g({ visible: !1, text: "" }), s = Y(null), i = k((o, c) => {
5855
+ r({ visible: !0, text: o, option: c }), s.current && clearTimeout(s.current), c != null && c.closeButton || (s.current = setTimeout(() => l(), (c == null ? void 0 : c.delay) ?? 3e3));
5854
5856
  }, []), l = k(() => {
5855
5857
  s.current && (clearTimeout(s.current), s.current = null), r({ visible: !1, text: "" });
5856
5858
  }, []);
@@ -5861,7 +5863,7 @@ const as = {
5861
5863
  ...t,
5862
5864
  option: {
5863
5865
  ...t.option,
5864
- onHide: (c = t.option) != null && c.closeButton ? l : void 0
5866
+ onHide: (a = t.option) != null && a.closeButton ? l : void 0
5865
5867
  // гарантируем, что при нажатии на X скроется
5866
5868
  }
5867
5869
  }
@@ -5882,12 +5884,12 @@ function hs(n) {
5882
5884
  return typeof n == "boolean";
5883
5885
  }
5884
5886
  const fe = (n) => {
5885
- const { value: t, changeField: r, errors: s } = os(), i = k((a) => {
5886
- r && r(n, a);
5887
+ const { value: t, changeField: r, errors: s } = os(), i = k((c) => {
5888
+ r && r(n, c);
5887
5889
  }, [n]), l = k(() => {
5888
- const a = t == null ? void 0 : t[n];
5889
- return hs(a) ? !!a : us(a) ? Number(a) : ds(a) ? a ?? "" : "";
5890
- }, [t, n]), c = k(() => {
5890
+ const c = t == null ? void 0 : t[n];
5891
+ return hs(c) ? !!c : us(c) ? Number(c) : ds(c) ? c ?? "" : "";
5892
+ }, [t, n]), a = k(() => {
5891
5893
  r && r(n, "");
5892
5894
  }, [n]), o = k(() => {
5893
5895
  if (s && Object.keys(s).includes(n))
@@ -5895,7 +5897,7 @@ const fe = (n) => {
5895
5897
  }, [s, n]);
5896
5898
  return {
5897
5899
  value: l(),
5898
- clearHandler: c,
5900
+ clearHandler: a,
5899
5901
  error: o(),
5900
5902
  change: i
5901
5903
  };
@@ -5909,7 +5911,7 @@ const fe = (n) => {
5909
5911
  const { value: t, change: r, error: s } = fe(n.name);
5910
5912
  return /* @__PURE__ */ e.jsx(nt, { ...n, container: n.container ?? document.body, value: t, onChange: r, errorText: s, error: !!s });
5911
5913
  }, js = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
5912
- const { value: c, change: o } = fe(l), a = (d) => {
5914
+ const { value: a, change: o } = fe(l), c = (d) => {
5913
5915
  o && o(d.target.checked);
5914
5916
  };
5915
5917
  return /* @__PURE__ */ e.jsx("div", { className: `input-field form-switch ${i}`, style: r, children: /* @__PURE__ */ e.jsx(
@@ -5919,16 +5921,16 @@ const fe = (n) => {
5919
5921
  ref: t,
5920
5922
  placeholder: n,
5921
5923
  name: l,
5922
- checked: !!c,
5923
- onChange: a
5924
+ checked: !!a,
5925
+ onChange: c
5924
5926
  }
5925
5927
  ) });
5926
5928
  }, ps = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
5927
- const { value: c, change: o } = fe(l), a = (u) => {
5929
+ const { value: a, change: o } = fe(l), c = (u) => {
5928
5930
  if (u.length > 0)
5929
5931
  return o && o(!0);
5930
5932
  o && o(!1);
5931
- }, d = k(() => c ? [n ?? l] : [], [c, l, n]);
5933
+ }, d = k(() => a ? [n ?? l] : [], [a, l, n]);
5932
5934
  return /* @__PURE__ */ e.jsx(
5933
5935
  Zn,
5934
5936
  {
@@ -5939,7 +5941,7 @@ const fe = (n) => {
5939
5941
  value: d(),
5940
5942
  multiple: !0,
5941
5943
  items: [n ?? l],
5942
- onChange: a
5944
+ onChange: c
5943
5945
  }
5944
5946
  );
5945
5947
  }, _s = (n) => {
@@ -5983,16 +5985,16 @@ const fe = (n) => {
5983
5985
  }
5984
5986
  );
5985
5987
  }, bs = ve(
5986
- function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: c, ...o }, a) {
5988
+ function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: a, ...o }, c) {
5987
5989
  const [d, u] = g(r), m = k((x) => {
5988
5990
  x.preventDefault(), l == null || l(d);
5989
5991
  }, [l, d]), h = k((x, f) => {
5990
5992
  u((j) => ({
5991
5993
  ...j,
5992
5994
  [x]: f
5993
- })), c == null || c(x, f);
5994
- }, [c]);
5995
- return ht(a, () => ({
5995
+ })), a == null || a(x, f);
5996
+ }, [a]);
5997
+ return ht(c, () => ({
5996
5998
  submit: () => l == null ? void 0 : l(d),
5997
5999
  setFieldValue: (x, f) => {
5998
6000
  u((j) => ({ ...j, [x]: f }));