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

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.
@@ -1,4 +1,4 @@
1
- import te, { useEffect as V, useState as g, useRef as Y, useCallback as k, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
1
+ import te, { useEffect as V, useState as b, useRef as Y, useCallback as y, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
2
2
  import xt from "react-dom";
3
3
  import { NavLink as Qe } from "react-router-dom";
4
4
  import './index.css';var Je = { exports: {} }, Se = {};
@@ -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 _:
55
+ case p:
56
56
  return "Fragment";
57
- case y:
57
+ case N:
58
58
  return "Profiler";
59
- case p:
59
+ case C:
60
60
  return "StrictMode";
61
61
  case T:
62
62
  return "Suspense";
@@ -71,9 +71,9 @@ function ft() {
71
71
  ), v.$$typeof) {
72
72
  case j:
73
73
  return "Portal";
74
- case C:
74
+ case _:
75
75
  return v.displayName || "Context";
76
- case N:
76
+ case g:
77
77
  return (v._context.displayName || "Context") + ".Consumer";
78
78
  case S:
79
79
  var L = v.render;
@@ -110,7 +110,7 @@ function ft() {
110
110
  }
111
111
  }
112
112
  function s(v) {
113
- if (v === _) return "<>";
113
+ if (v === p) return "<>";
114
114
  if (typeof v == "object" && v !== null && v.$$typeof === w)
115
115
  return "<...>";
116
116
  try {
@@ -128,7 +128,7 @@ function ft() {
128
128
  return Error("react-stack-top-frame");
129
129
  }
130
130
  function a(v) {
131
- if (b.call(v, "key")) {
131
+ if (k.call(v, "key")) {
132
132
  var L = Object.getOwnPropertyDescriptor(v, "key").get;
133
133
  if (L && L.isReactWarning) return !1;
134
134
  }
@@ -198,7 +198,7 @@ function ft() {
198
198
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
199
  );
200
200
  else m(J);
201
- if (b.call(L, "key")) {
201
+ if (k.call(L, "key")) {
202
202
  J = n(v);
203
203
  var le = Object.keys(L).filter(function(Z) {
204
204
  return Z !== "key";
@@ -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"), _ = 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() {
242
+ var x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), _ = 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, k = 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 = _, Me.jsx = function(v, L, R) {
254
+ Me.Fragment = p, Me.jsx = function(v, L, R) {
255
255
  var q = 1e4 > A.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
257
  v,
@@ -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), a = Y(null), o = k(() => {
352
+ const [r, s] = b(!1), [i, l] = b(!0), a = Y(null), o = y(() => {
353
353
  s(!0), setTimeout(() => {
354
354
  t.onHide(), s(!1), l(!0);
355
355
  }, 200);
@@ -359,7 +359,7 @@ 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 c = k((h) => {
362
+ const c = y((h) => {
363
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
365
  window.innerHeight - h.clientY + 20 <= 150 && o(), a.current && (a.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
@@ -387,7 +387,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
387
387
  mobileSize: n.mobileSize ?? ge.mobileSize
388
388
  };
389
389
  t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = ge.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize, t.bigSize = ge.bigSize);
390
- const [r, s] = g(ee.STANDART), i = k(() => {
390
+ const [r, s] = b(ee.STANDART), i = y(() => {
391
391
  window.innerWidth < t.mobileSize ? s(ee.MOBILE) : window.innerWidth < t.bigSize ? s(ee.STANDART) : s(ee.BIG_SCREEN);
392
392
  }, [window.innerWidth]);
393
393
  return V(() => {
@@ -440,16 +440,16 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
440
440
  shadow: u = 0,
441
441
  ...m
442
442
  }, h) => {
443
- const x = k(
443
+ const x = y(
444
444
  (j) => {
445
445
  o || (l == null || l(j), !d && f(j));
446
446
  },
447
447
  [l, o]
448
448
  ), f = (j) => {
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);
449
+ const p = j.currentTarget, C = document.createElement("span"), N = Math.max(p.clientWidth, p.clientHeight), g = N / 2;
450
+ C.style.width = C.style.height = `${N}px`, C.style.left = `${j.clientX - p.getBoundingClientRect().left - g}px`, C.style.top = `${j.clientY - p.getBoundingClientRect().top - g}px`, C.classList.add("iconbutton-ripple");
451
+ const _ = p.getElementsByClassName("iconbutton-ripple")[0];
452
+ _ && _.remove(), p.appendChild(C);
453
453
  };
454
454
  return /* @__PURE__ */ e.jsx(
455
455
  "button",
@@ -1901,11 +1901,11 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1901
1901
  customActions: u,
1902
1902
  btns: m
1903
1903
  }) => {
1904
- const h = k(() => {
1904
+ const h = y(() => {
1905
1905
  l == null || l(), o == null || o();
1906
- }, [l, o]), x = k(() => {
1906
+ }, [l, o]), x = y(() => {
1907
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
+ }, [a, o]), f = y(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1909
1909
  {
1910
1910
  text: i,
1911
1911
  hide: !0,
@@ -1933,7 +1933,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1933
1933
  n,
1934
1934
  t
1935
1935
  ) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
1936
- const [a, o] = g(null);
1936
+ const [a, o] = b(null);
1937
1937
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1938
1938
  /* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: o }),
1939
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) }) })
@@ -1947,7 +1947,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1947
1947
  disabled: l,
1948
1948
  ...a
1949
1949
  }) => {
1950
- const [o, c] = g(!1), d = k(async (h) => {
1950
+ const [o, c] = b(!1), d = y(async (h) => {
1951
1951
  if (!l) {
1952
1952
  try {
1953
1953
  await navigator.clipboard.writeText(n), c(!0), setTimeout(() => c(!1), r);
@@ -1984,7 +1984,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1984
1984
  };
1985
1985
  var Ae = /* @__PURE__ */ ((n) => (n[n.OPEN = 0] = "OPEN", n[n.HIDING = 1] = "HIDING", n[n.CLOSE = 2] = "CLOSE", n))(Ae || {});
1986
1986
  const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
1987
- const [t, r] = g(
1987
+ const [t, r] = b(
1988
1988
  2
1989
1989
  /* CLOSE */
1990
1990
  ), s = Y(null), i = Y(null), l = () => {
@@ -2249,7 +2249,7 @@ const In = {
2249
2249
  })
2250
2250
  };
2251
2251
  function er(n, t = !1) {
2252
- const [r, s] = g({ ...In, ...n }), [i, l] = g(t), a = k(
2252
+ const [r, s] = b({ ...In, ...n }), [i, l] = b(t), a = y(
2253
2253
  (c, d) => {
2254
2254
  const u = Qt[c];
2255
2255
  if (!u) return;
@@ -2307,13 +2307,13 @@ const nr = {
2307
2307
  }
2308
2308
  };
2309
2309
  function rr(n = "light") {
2310
- const [t, r] = g(
2310
+ const [t, r] = b(
2311
2311
  Xe
2312
- ), [s, i] = g(n), { colors: l, setColor: a, setReverse: o } = er(t[s].colors, t[s].reverse), c = k(
2312
+ ), [s, i] = b(n), { colors: l, setColor: a, setReverse: o } = er(t[s].colors, t[s].reverse), c = y(
2313
2313
  (x) => {
2314
2314
  const f = t[x].colors;
2315
- f && (Object.entries(f).forEach(([j, _]) => {
2316
- a(j, _);
2315
+ f && (Object.entries(f).forEach(([j, p]) => {
2316
+ a(j, p);
2317
2317
  }), o(t[x].reverse ?? !1), i(x));
2318
2318
  },
2319
2319
  [t, a]
@@ -2321,28 +2321,28 @@ function rr(n = "light") {
2321
2321
  V(() => {
2322
2322
  c(s);
2323
2323
  }, [s, c]);
2324
- const d = k(
2324
+ const d = y(
2325
2325
  (x, f, j) => {
2326
- r((_) => ({
2327
- ..._,
2326
+ r((p) => ({
2327
+ ...p,
2328
2328
  [x]: {
2329
- colors: { ..._[x].colors, [f]: j },
2330
- reverse: _[x].reverse
2329
+ colors: { ...p[x].colors, [f]: j },
2330
+ reverse: p[x].reverse
2331
2331
  }
2332
2332
  }));
2333
2333
  },
2334
2334
  []
2335
- ), u = k((x, f = "light", j) => {
2336
- r((_) => ({
2337
- ..._,
2338
- [x]: { colors: _[f].colors, reverse: j === void 0 ? _[f].reverse : j }
2335
+ ), u = y((x, f = "light", j) => {
2336
+ r((p) => ({
2337
+ ...p,
2338
+ [x]: { colors: p[f].colors, reverse: j === void 0 ? p[f].reverse : j }
2339
2339
  }));
2340
- }, []), m = k((x) => {
2340
+ }, []), m = y((x) => {
2341
2341
  r((f) => {
2342
2342
  const j = { ...f };
2343
2343
  return delete j[x], j;
2344
2344
  }), s === x && i("light");
2345
- }, [s]), h = k(
2345
+ }, [s]), h = y(
2346
2346
  (x) => {
2347
2347
  Xe[x] && r((f) => ({
2348
2348
  ...f,
@@ -2393,31 +2393,31 @@ const $e = () => {
2393
2393
  className: f = "",
2394
2394
  ...j
2395
2395
  }) => {
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
+ const p = Y(null), C = Y(null), [N, g] = b(o ?? s), [_, S] = b("200px"), { colors: T } = Ce(sn), { showPopup: P, popupState: B } = Kt({ valueDisplayDuration: m }), w = n ?? T.Primary_color ?? "#0000ff";
2397
2397
  V(() => {
2398
2398
  var E;
2399
- if (c === "vertical" && ((E = p.current) != null && E.parentElement)) {
2399
+ if (c === "vertical" && ((E = C.current) != null && E.parentElement)) {
2400
2400
  const U = () => {
2401
2401
  var G, v;
2402
- const H = (v = (G = p.current) == null ? void 0 : G.parentElement) == null ? void 0 : v.clientHeight;
2402
+ const H = (v = (G = C.current) == null ? void 0 : G.parentElement) == null ? void 0 : v.clientHeight;
2403
2403
  H && S(`${H}px`);
2404
2404
  };
2405
2405
  U();
2406
2406
  const I = new ResizeObserver(U);
2407
- return p.current.parentElement && I.observe(p.current.parentElement), () => I.disconnect();
2407
+ return C.current.parentElement && I.observe(C.current.parentElement), () => I.disconnect();
2408
2408
  }
2409
2409
  }, [c]), V(() => {
2410
- o !== void 0 && (N(o), W());
2410
+ o !== void 0 && (g(o), W());
2411
2411
  }, [o]);
2412
- const W = k(() => {
2412
+ const W = y(() => {
2413
2413
  u && P();
2414
2414
  }, [P]), O = (E) => {
2415
2415
  const U = parseFloat(E.target.value);
2416
- N(U), W(), r == null || r(E);
2416
+ g(U), W(), r == null || r(E);
2417
2417
  }, A = oe(
2418
- () => i !== s ? (y - s) / (i - s) * 100 : 0,
2419
- [y, s, i]
2420
- ), b = oe(() => ({
2418
+ () => i !== s ? (N - s) / (i - s) * 100 : 0,
2419
+ [N, s, i]
2420
+ ), k = oe(() => ({
2421
2421
  ...j.style,
2422
2422
  [c === "vertical" ? "height" : "width"]: `${A}%`,
2423
2423
  background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(A / 100, w, x)
@@ -2427,7 +2427,7 @@ const $e = () => {
2427
2427
  "--point-opacity": d === "point" ? "1" : "0",
2428
2428
  "--truck-color": w,
2429
2429
  width: dn,
2430
- height: C,
2430
+ height: _,
2431
2431
  ...j.style
2432
2432
  } : {
2433
2433
  "--range-width": a,
@@ -2437,42 +2437,42 @@ const $e = () => {
2437
2437
  width: "100%",
2438
2438
  height: dn,
2439
2439
  ...j.style
2440
- }, [c, C, j.style, a, d, w]), M = oe(() => c === "vertical" ? {
2441
- width: C
2440
+ }, [c, _, j.style, a, d, w]), M = oe(() => c === "vertical" ? {
2441
+ width: _
2442
2442
  } : {
2443
2443
  width: "100%"
2444
- }, [c, C]);
2444
+ }, [c, _]);
2445
2445
  return /* @__PURE__ */ e.jsxs(
2446
2446
  "div",
2447
2447
  {
2448
- ref: p,
2448
+ ref: C,
2449
2449
  className: `range-wrapper ${c} ${f}`,
2450
2450
  style: D,
2451
2451
  children: [
2452
2452
  /* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
2453
- /* @__PURE__ */ e.jsx("div", { className: "active-track", style: b }),
2454
- /* @__PURE__ */ e.jsx(An, { text: Math.round(y).toString(), state: B, className: "value-popup" })
2453
+ /* @__PURE__ */ e.jsx("div", { className: "active-track", style: k }),
2454
+ /* @__PURE__ */ e.jsx(An, { text: Math.round(N).toString(), state: B, className: "value-popup" })
2455
2455
  ] }),
2456
2456
  /* @__PURE__ */ e.jsx(
2457
2457
  "input",
2458
2458
  {
2459
- ref: _,
2459
+ ref: p,
2460
2460
  type: "range",
2461
2461
  min: s,
2462
2462
  style: M,
2463
2463
  max: i,
2464
2464
  step: l,
2465
- value: y,
2465
+ value: N,
2466
2466
  onChange: O,
2467
2467
  onFocus: j.onFocus,
2468
2468
  onBlur: j.onBlur,
2469
2469
  className: "slider-input",
2470
2470
  "aria-orientation": c,
2471
- "aria-valuenow": y,
2471
+ "aria-valuenow": N,
2472
2472
  "aria-valuemin": s,
2473
2473
  "aria-valuemax": i,
2474
2474
  "aria-label": h,
2475
- "aria-valuetext": `${y} из ${i}`,
2475
+ "aria-valuetext": `${N} из ${i}`,
2476
2476
  ...j
2477
2477
  }
2478
2478
  )
@@ -2496,18 +2496,18 @@ const $e = () => {
2496
2496
  showBase: x = !0,
2497
2497
  showIndicator: f = !0,
2498
2498
  showPoint: j = !1,
2499
- rounding: _ = !0,
2500
- showValue: p = !0,
2501
- style: y,
2502
- children: N,
2503
- className: C,
2499
+ rounding: p = !0,
2500
+ showValue: C = !0,
2501
+ style: N,
2502
+ children: g,
2503
+ className: _,
2504
2504
  startColor: S
2505
2505
  }) => {
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
+ const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, k = 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] = b(r);
2507
2507
  V(() => {
2508
2508
  r !== void 0 && G(r);
2509
2509
  }, [r]);
2510
- const v = k(() => {
2510
+ const v = y(() => {
2511
2511
  switch (a) {
2512
2512
  case "semicircle":
2513
2513
  return 180;
@@ -2516,37 +2516,37 @@ const $e = () => {
2516
2516
  default:
2517
2517
  return 360;
2518
2518
  }
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
+ }, [a]), L = y(() => a === "semicircle" ? [k * Math.PI, k * Math.PI] : a === "brokenCircle" ? [k * Math.PI * 1.25, k * Math.PI * 1.5] : [k * Math.PI, k * Math.PI * 2], [a, k]), R = oe(
2520
2520
  () => t !== n ? (H - n) / (t - n) * 100 : 0,
2521
2521
  [H, n, t]
2522
- ), q = k(() => {
2522
+ ), q = y(() => {
2523
2523
  if (!T.current) return;
2524
2524
  const [Z, he] = L(), je = (H - n) * he / (t - n);
2525
2525
  if (x) {
2526
2526
  const K = T.current.querySelector('[data-el="base"]');
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
+ K && (K.style.stroke = u, K.style.strokeWidth = c.toString(), K.style.strokeLinecap = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${he}, ${k * Math.PI * 2 - he}`);
2528
2528
  }
2529
2529
  if (D) {
2530
2530
  const K = T.current.querySelector('[data-el="indicator"]');
2531
2531
  if (K) {
2532
2532
  const xe = parseFloat(K.dataset.percentage ?? "");
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
+ 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 = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${je}, ${k * Math.PI * 2 - je}`;
2534
2534
  }
2535
2535
  }
2536
2536
  if (M) {
2537
2537
  const K = T.current.querySelector('[data-el="point"]');
2538
2538
  if (K) {
2539
2539
  const xe = parseFloat(K.dataset.percentage ?? "");
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
+ 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, ${k * Math.PI * 2}`;
2541
2541
  }
2542
2542
  }
2543
- }, [H, L, t, n, b, c, u, U, I, x, D, M, _, R, S]), Q = (Z) => {
2543
+ }, [H, L, t, n, k, c, u, U, I, x, D, M, p, R, S]), Q = (Z) => {
2544
2544
  P.current = !0, document.addEventListener("mousemove", ne), document.addEventListener("mouseup", J), le(Z);
2545
2545
  }, ne = (Z) => {
2546
2546
  Z.preventDefault(), P.current && le(Z);
2547
2547
  }, J = () => {
2548
2548
  P.current = !1, document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
2549
- }, le = k((Z) => {
2549
+ }, le = y((Z) => {
2550
2550
  if (!T.current) return;
2551
2551
  const he = v(), je = T.current.getBoundingClientRect(), K = je.left + je.width / 2, xe = je.top + je.height / 2, st = Z.clientX, it = Z.clientY, lt = xe - it, at = K - st;
2552
2552
  let ae = Math.atan2(lt, at) * (180 / Math.PI);
@@ -2562,7 +2562,7 @@ const $e = () => {
2562
2562
  const z = {
2563
2563
  "--stroke-width": `${c}px`
2564
2564
  };
2565
- return /* @__PURE__ */ e.jsxs("div", { style: { width: B, height: w, ...y }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
2565
+ return /* @__PURE__ */ e.jsxs("div", { style: { width: B, height: w, ...N }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
2566
2566
  /* @__PURE__ */ e.jsxs(
2567
2567
  "svg",
2568
2568
  {
@@ -2578,7 +2578,7 @@ const $e = () => {
2578
2578
  fill: "none",
2579
2579
  cx: O,
2580
2580
  cy: A,
2581
- r: b
2581
+ r: k
2582
2582
  }
2583
2583
  ),
2584
2584
  D && /* @__PURE__ */ e.jsx(
@@ -2588,7 +2588,7 @@ const $e = () => {
2588
2588
  fill: "none",
2589
2589
  cx: O,
2590
2590
  cy: A,
2591
- r: b
2591
+ r: k
2592
2592
  }
2593
2593
  ),
2594
2594
  M && /* @__PURE__ */ e.jsx(
@@ -2598,13 +2598,13 @@ const $e = () => {
2598
2598
  fill: "none",
2599
2599
  cx: O,
2600
2600
  cy: A,
2601
- r: b
2601
+ r: k
2602
2602
  }
2603
2603
  )
2604
2604
  ]
2605
2605
  }
2606
2606
  ),
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
+ /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${_}`, style: z, children: g ?? (C && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(H).toString() })) })
2608
2608
  ] });
2609
2609
  }, ir = ve(
2610
2610
  ({
@@ -2662,7 +2662,7 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2662
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
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;
2664
2664
  }, ar = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: l }) => {
2665
- const a = Y(null), [o, c] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2665
+ const a = Y(null), [o, c] = b({ left: "0px", top: "0px" }), [d, u] = b(!1);
2666
2666
  function m(h) {
2667
2667
  for (let x of h)
2668
2668
  if (x.icon)
@@ -2685,7 +2685,7 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2685
2685
  r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
2686
2686
  ] });
2687
2687
  }, cr = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
2688
- const [a, o] = g(!1), c = k(() => {
2688
+ const [a, o] = b(!1), c = y(() => {
2689
2689
  s.subItems ? o((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
2690
2690
  }, [s.onClick]);
2691
2691
  return /* @__PURE__ */ e.jsxs("div", { className: `menu-item ${s.disabled ? "menu-item_disabled" : ""}`, children: [
@@ -2707,7 +2707,7 @@ function zn({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i
2707
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)) });
2708
2708
  }
2709
2709
  const or = 100, dr = (n) => {
2710
- const t = Y(null), [r, s] = g({ left: "0px", top: "0px" }), i = () => {
2710
+ const t = Y(null), [r, s] = b({ left: "0px", top: "0px" }), i = () => {
2711
2711
  n.onHide && n.onHide();
2712
2712
  };
2713
2713
  return dt(() => {
@@ -2736,7 +2736,7 @@ const or = 100, dr = (n) => {
2736
2736
  /* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
2737
2737
  ] }, s)) }) });
2738
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 = () => {
2739
+ const [o, c] = b(!1), [d, u] = b(void 0), { screen: m } = Ce(we), h = () => {
2740
2740
  c(!1), u(void 0);
2741
2741
  }, x = (j) => {
2742
2742
  j.stopPropagation(), c(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
@@ -2894,15 +2894,15 @@ const Zn = ve(
2894
2894
  variant: c = "primary",
2895
2895
  ...d
2896
2896
  }, u) => {
2897
- const [m, h] = g([]);
2897
+ const [m, h] = b([]);
2898
2898
  V(() => {
2899
2899
  h(x(t));
2900
2900
  }, [t]);
2901
- const x = (j) => j === void 0 ? [] : Array.isArray(j) ? j : [j], f = (j, _) => {
2901
+ const x = (j) => j === void 0 ? [] : Array.isArray(j) ? j : [j], f = (j, p) => {
2902
2902
  if (i) return;
2903
2903
  j.preventDefault();
2904
- let p;
2905
- r ? p = m.includes(_) ? m.filter((y) => y !== _) : [...m, _] : p = m.includes(_) ? [] : [_], h(p), l == null || l(p, j);
2904
+ let C;
2905
+ r ? C = m.includes(p) ? m.filter((N) => N !== p) : [...m, p] : C = m.includes(p) ? [] : [p], h(C), l == null || l(C, j);
2906
2906
  };
2907
2907
  return /* @__PURE__ */ e.jsx(
2908
2908
  "div",
@@ -2920,7 +2920,7 @@ const Zn = ve(
2920
2920
  "aria-label": j,
2921
2921
  disabled: i,
2922
2922
  className: `segmented-button__item ${m.includes(j) ? "segmented-button__item--active" : ""}`,
2923
- onClick: (_) => f(_, j),
2923
+ onClick: (p) => f(p, j),
2924
2924
  children: [
2925
2925
  m.includes(j) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2926
2926
  /* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: j }),
@@ -2985,11 +2985,11 @@ function hr({
2985
2985
  defaultValue: c,
2986
2986
  style: d
2987
2987
  }) {
2988
- const [u, m] = g(c), h = k(() => {
2988
+ const [u, m] = b(c), h = y(() => {
2989
2989
  u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
2990
- }, [u, n, i, s]), x = k(() => {
2990
+ }, [u, n, i, s]), x = y(() => {
2991
2991
  s == null || s();
2992
- }, [s]), f = k((j) => {
2992
+ }, [s]), f = y((j) => {
2993
2993
  m(j);
2994
2994
  }, []);
2995
2995
  return /* @__PURE__ */ e.jsxs(
@@ -3017,7 +3017,7 @@ function hr({
3017
3017
  scroll: !0,
3018
3018
  maxHeight: "300px",
3019
3019
  "aria-label": "Варианты выбора",
3020
- children: t.map((j, _) => /* @__PURE__ */ e.jsx(
3020
+ children: t.map((j, p) => /* @__PURE__ */ e.jsx(
3021
3021
  "label",
3022
3022
  {
3023
3023
  "aria-disabled": j.disabled,
@@ -3042,7 +3042,7 @@ function hr({
3042
3042
  }
3043
3043
  )
3044
3044
  },
3045
- `${l}_${_}`
3045
+ `${l}_${p}`
3046
3046
  ))
3047
3047
  }
3048
3048
  ),
@@ -3088,11 +3088,11 @@ const Ve = te.forwardRef(
3088
3088
  placeholder: x,
3089
3089
  className: f,
3090
3090
  validEmptyValue: j,
3091
- onFocus: _,
3092
- onBlur: p,
3093
- error: y,
3094
- max: N,
3095
- min: C,
3091
+ onFocus: p,
3092
+ onBlur: C,
3093
+ error: N,
3094
+ max: g,
3095
+ min: _,
3096
3096
  autoFocus: S,
3097
3097
  disabled: T,
3098
3098
  size: P = "medium",
@@ -3100,17 +3100,17 @@ const Ve = te.forwardRef(
3100
3100
  errorText: w,
3101
3101
  onKeyDown: W
3102
3102
  }, O) => {
3103
- const A = Y(null), [b, D] = g(!1), [M, E] = g(!1), [U, I] = g(!!h), H = Be(), G = () => {
3103
+ const A = Y(null), [k, D] = b(!1), [M, E] = b(!1), [U, I] = b(!!h), H = Be(), G = () => {
3104
3104
  if (!A.current) return;
3105
3105
  const Q = A.current.querySelector("input");
3106
3106
  Q == null || Q.focus();
3107
3107
  }, v = (Q) => {
3108
- _ == null || _(Q), E(!0);
3108
+ p == null || p(Q), E(!0);
3109
3109
  }, L = (Q) => {
3110
- p == null || p(Q), E(!1), I(!!Q.target.value);
3111
- }, R = k(
3112
- (Q, ne) => D(!!(y || Q && (!ne || ne === ""))),
3113
- [y]
3110
+ C == null || C(Q), E(!1), I(!!Q.target.value);
3111
+ }, R = y(
3112
+ (Q, ne) => D(!!(N || Q && (!ne || ne === ""))),
3113
+ [N]
3114
3114
  );
3115
3115
  V(() => {
3116
3116
  R(j, h), I(!!h);
@@ -3133,7 +3133,7 @@ const Ve = te.forwardRef(
3133
3133
  ${o ? "input-field_border" : ""}
3134
3134
  ${M ? "input-field_active" : ""}
3135
3135
  ${i ? "input-field_transparent" : ""}
3136
- ${b ? "input-field_error" : ""}
3136
+ ${k ? "input-field_error" : ""}
3137
3137
  ${T ? "input-field_disabled" : ""}
3138
3138
  `,
3139
3139
  onClick: G,
@@ -3144,8 +3144,8 @@ const Ve = te.forwardRef(
3144
3144
  "input",
3145
3145
  {
3146
3146
  ref: t,
3147
- max: N,
3148
- min: C,
3147
+ max: g,
3148
+ min: _,
3149
3149
  id: H,
3150
3150
  readOnly: l,
3151
3151
  disabled: T,
@@ -3153,7 +3153,7 @@ const Ve = te.forwardRef(
3153
3153
  type: a ? "password" : s,
3154
3154
  className: `
3155
3155
  input-field__input-container__input
3156
- ${b ? "input-field__input-container__input_error" : ""}
3156
+ ${k ? "input-field__input-container__input_error" : ""}
3157
3157
  `,
3158
3158
  name: m,
3159
3159
  value: h,
@@ -3163,8 +3163,8 @@ const Ve = te.forwardRef(
3163
3163
  onBlur: L,
3164
3164
  onKeyDown: W,
3165
3165
  autoFocus: S,
3166
- "aria-invalid": b,
3167
- "aria-describedby": b ? `${m}-error` : void 0
3166
+ "aria-invalid": k,
3167
+ "aria-describedby": k ? `${m}-error` : void 0
3168
3168
  }
3169
3169
  ),
3170
3170
  x && /* @__PURE__ */ e.jsx(
@@ -3186,8 +3186,8 @@ const Ve = te.forwardRef(
3186
3186
  ]
3187
3187
  }
3188
3188
  ),
3189
- b && w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: w }),
3190
- B && !b && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: B })
3189
+ k && w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: w }),
3190
+ B && !k && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: B })
3191
3191
  ] });
3192
3192
  }
3193
3193
  );
@@ -3207,43 +3207,43 @@ const Vs = ({
3207
3207
  cancelText: m = "Отмена",
3208
3208
  validate: h
3209
3209
  }) => {
3210
- const [x, f] = g(d), [j, _] = g(!0);
3210
+ const [x, f] = b(d), [j, p] = b(!0);
3211
3211
  V(() => {
3212
3212
  if (h)
3213
- _(h(x));
3213
+ p(h(x));
3214
3214
  else if (a === "number") {
3215
- const C = Number(x);
3216
- _(!isNaN(C) && C >= o && C <= c);
3215
+ const _ = Number(x);
3216
+ p(!isNaN(_) && _ >= o && _ <= c);
3217
3217
  } else
3218
- _(!0);
3218
+ p(!0);
3219
3219
  }, [x, h, a, o, c]);
3220
- const p = k(() => {
3220
+ const C = y(() => {
3221
3221
  j && (s == null || s(x), i == null || i());
3222
- }, [x, j, s, i]), y = k(() => {
3222
+ }, [x, j, s, i]), N = y(() => {
3223
3223
  i == null || i();
3224
- }, [i]), N = (C) => {
3224
+ }, [i]), g = (_) => {
3225
3225
  if (a === "number") {
3226
- if (C === "") {
3226
+ if (_ === "") {
3227
3227
  f("");
3228
3228
  return;
3229
3229
  }
3230
- const S = Number(C);
3231
- isNaN(S) || (S < o && (C = String(o)), S > c && (C = String(c)), f(C));
3230
+ const S = Number(_);
3231
+ isNaN(S) || (S < o && (_ = String(o)), S > c && (_ = String(c)), f(_));
3232
3232
  } else
3233
- f(C);
3233
+ f(_);
3234
3234
  };
3235
3235
  return /* @__PURE__ */ e.jsxs(
3236
3236
  Ee,
3237
3237
  {
3238
3238
  style: n,
3239
3239
  header: r,
3240
- onHide: y,
3240
+ onHide: N,
3241
3241
  action: /* @__PURE__ */ e.jsxs("div", { children: [
3242
- /* @__PURE__ */ e.jsx(de, { onClick: y, children: m }),
3242
+ /* @__PURE__ */ e.jsx(de, { onClick: N, children: m }),
3243
3243
  /* @__PURE__ */ e.jsx(
3244
3244
  de,
3245
3245
  {
3246
- onClick: p,
3246
+ onClick: C,
3247
3247
  disabled: !j || a === "number" && x === "",
3248
3248
  children: u
3249
3249
  }
@@ -3261,7 +3261,7 @@ const Vs = ({
3261
3261
  border: !0,
3262
3262
  placeholder: l,
3263
3263
  value: x,
3264
- onChange: N,
3264
+ onChange: g,
3265
3265
  error: !j
3266
3266
  }
3267
3267
  ),
@@ -3326,7 +3326,7 @@ const Vs = ({
3326
3326
  ] }),
3327
3327
  /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", style: t, children: [
3328
3328
  i,
3329
- h && /* @__PURE__ */ e.jsx(ze, { btns: h.filter((p) => !p.hide && !p.success) })
3329
+ h && /* @__PURE__ */ e.jsx(ze, { btns: h.filter((C) => !C.hide && !C.success) })
3330
3330
  ] })
3331
3331
  ]
3332
3332
  }
@@ -3363,9 +3363,9 @@ const Vs = ({
3363
3363
  loading: x = !1,
3364
3364
  style: f,
3365
3365
  elevation: j = 6,
3366
- ..._
3367
- }, p) => {
3368
- const { screen: y } = Ce(we), N = u ?? y, C = `elevation-${Math.min(24, Math.max(0, j))}`, S = (B) => {
3366
+ ...p
3367
+ }, C) => {
3368
+ const { screen: N } = Ce(we), g = u ?? N, _ = `elevation-${Math.min(24, Math.max(0, j))}`, S = (B) => {
3369
3369
  T(B) && (d == null || d(B), P(B));
3370
3370
  }, T = (B) => {
3371
3371
  const w = B.target;
@@ -3373,17 +3373,17 @@ const Vs = ({
3373
3373
  }, P = (B) => {
3374
3374
  const w = B.currentTarget, W = w.querySelector(".card-ripple-container");
3375
3375
  if (!W) return;
3376
- const O = w.getBoundingClientRect(), A = Math.max(O.width, O.height), b = B.clientX - O.left - A / 2, D = B.clientY - O.top - A / 2, M = document.createElement("span");
3377
- M.className = "card-ripple", M.style.width = M.style.height = `${A}px`, M.style.left = `${b}px`, M.style.top = `${D}px`, W.appendChild(M), setTimeout(() => M.remove(), 600);
3376
+ const O = w.getBoundingClientRect(), A = Math.max(O.width, O.height), k = B.clientX - O.left - A / 2, D = B.clientY - O.top - A / 2, M = document.createElement("span");
3377
+ M.className = "card-ripple", M.style.width = M.style.height = `${A}px`, M.style.left = `${k}px`, M.style.top = `${D}px`, W.appendChild(M), setTimeout(() => M.remove(), 600);
3378
3378
  };
3379
3379
  return /* @__PURE__ */ e.jsxs(
3380
3380
  "div",
3381
3381
  {
3382
- ref: p,
3382
+ ref: C,
3383
3383
  style: f,
3384
- className: `${n} card card--${h} ${C} ${x ? "card--loading" : ""}`,
3384
+ className: `${n} card card--${h} ${_} ${x ? "card--loading" : ""}`,
3385
3385
  onClick: S,
3386
- ..._,
3386
+ ...p,
3387
3387
  children: [
3388
3388
  /* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
3389
3389
  r && /* @__PURE__ */ e.jsxs("div", { className: "card-image-container", children: [
@@ -3397,7 +3397,7 @@ const Vs = ({
3397
3397
  {
3398
3398
  type: "title",
3399
3399
  weight: "bold",
3400
- screensize: N,
3400
+ screensize: g,
3401
3401
  className: "card-title",
3402
3402
  children: i
3403
3403
  }
@@ -3409,7 +3409,7 @@ const Vs = ({
3409
3409
  {
3410
3410
  type: "title-2",
3411
3411
  weight: "bold",
3412
- screensize: N,
3412
+ screensize: g,
3413
3413
  className: "card-subhead",
3414
3414
  children: l
3415
3415
  }
@@ -3418,7 +3418,7 @@ const Vs = ({
3418
3418
  X,
3419
3419
  {
3420
3420
  type: "body",
3421
- screensize: N,
3421
+ screensize: g,
3422
3422
  className: "card-text",
3423
3423
  children: a
3424
3424
  }
@@ -3434,18 +3434,18 @@ const Vs = ({
3434
3434
  );
3435
3435
  mr.displayName = "Card";
3436
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) => {
3437
+ const [o, c] = b(!1), [d, u] = b(null), [m, h] = b({ x: 0, y: 0 }), x = (p) => {
3438
+ p.button == 1 && (c(!1), u(null), document.body.style.cursor = "auto");
3439
+ }, f = (p) => {
3440
+ p.button == 1 && a && (u({ x: p.clientX, y: p.clientY }), c(!0), document.body.style.cursor = "move");
3441
+ }, j = y((p) => {
3442
+ o && (h((C) => {
3443
3443
  if (!d)
3444
- return p;
3445
- const y = _.clientX - d.x, N = _.clientY - d.y;
3446
- let C = p.x + y, S = p.y + N;
3447
- return { x: C, y: S };
3448
- }), u({ x: _.clientX, y: _.clientY }));
3444
+ return C;
3445
+ const N = p.clientX - d.x, g = p.clientY - d.y;
3446
+ let _ = C.x + N, S = C.y + g;
3447
+ return { x: _, y: S };
3448
+ }), u({ x: p.clientX, y: p.clientY }));
3449
3449
  }, [o, d]);
3450
3450
  return V(() => {
3451
3451
  l && h({ ...l });
@@ -3464,12 +3464,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3464
3464
  }) => {
3465
3465
  const u = te.useCallback((x, f) => {
3466
3466
  const j = Array.from({ length: x }, () => []);
3467
- return f.forEach((_) => {
3468
- if (_.indexCol >= j.length) {
3469
- console.error(`Invalid column index. indexCol = ${_.indexCol}, column count = ${x}`);
3467
+ return f.forEach((p) => {
3468
+ if (p.indexCol >= j.length) {
3469
+ console.error(`Invalid column index. indexCol = ${p.indexCol}, column count = ${x}`);
3470
3470
  return;
3471
3471
  }
3472
- j[_.indexCol].push(_.node);
3472
+ j[p.indexCol].push(p.node);
3473
3473
  }), j;
3474
3474
  }, []), m = te.useMemo(() => u(l, a), [u, l, a]), h = te.useCallback((x, f) => {
3475
3475
  o == null || o(x, f);
@@ -3492,7 +3492,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3492
3492
  onClick: (j) => h(f, j),
3493
3493
  className: `${c} alex-evo-sh-ui-kit-column-layout-coll`,
3494
3494
  "data-testid": `column-${f}`,
3495
- children: x.map((j, _) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: j }, `item-${f}-${_}`))
3495
+ children: x.map((j, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: j }, `item-${f}-${p}`))
3496
3496
  },
3497
3497
  `column-${f}`
3498
3498
  ))
@@ -3509,19 +3509,19 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3509
3509
  action: o,
3510
3510
  onVisibilityChange: c
3511
3511
  }) => {
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) {
3523
- const N = !d;
3524
- u(N), c == null || c(N);
3512
+ const [d, u] = b(l ? a : !0), m = Y(null), h = (p) => {
3513
+ if (!p) return;
3514
+ const C = Ye(p);
3515
+ if (C)
3516
+ return C.height + fr;
3517
+ }, x = (p) => {
3518
+ const C = h(p);
3519
+ return C ? Math.min(C * jr, 1) : 0.4;
3520
+ }, f = (p) => {
3521
+ const C = p.target;
3522
+ if (!(C.closest(".action-btn") || C.classList.contains("action-btn")) && l) {
3523
+ const g = !d;
3524
+ u(g), c == null || c(g);
3525
3525
  }
3526
3526
  };
3527
3527
  V(() => {
@@ -3546,8 +3546,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3546
3546
  role: l ? "button" : void 0,
3547
3547
  "aria-label": l ? `${t} - click to ${d ? "collapse" : "expand"}` : t,
3548
3548
  tabIndex: l ? 0 : void 0,
3549
- onKeyDown: (_) => {
3550
- l && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), f(_));
3549
+ onKeyDown: (p) => {
3550
+ l && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), f(p));
3551
3551
  },
3552
3552
  children: [
3553
3553
  /* @__PURE__ */ e.jsx(X, { type: "title", children: t }),
@@ -3559,8 +3559,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3559
3559
  "aria-label": o.ariaLabel || "Action",
3560
3560
  role: "button",
3561
3561
  tabIndex: 0,
3562
- onKeyDown: (_) => {
3563
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), o.onClick());
3562
+ onKeyDown: (p) => {
3563
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), o.onClick());
3564
3564
  },
3565
3565
  children: o.icon
3566
3566
  }
@@ -3606,27 +3606,27 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3606
3606
  itemMaxWith: a,
3607
3607
  itemWith: o = "400px"
3608
3608
  }) => {
3609
- const c = Y(null), [d, u] = g([]), m = Y(null), h = Y(null), x = k(() => {
3609
+ const c = Y(null), [d, u] = b([]), m = Y(null), h = Y(null), x = y(() => {
3610
3610
  if (!c.current) return;
3611
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(() => {
3612
+ const C = l ?? o, N = a ?? o;
3613
+ c.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${C}, ${N}))`, c.current.style.gridAutoRows = "1px";
3614
+ }, [s, i, l, a, o]), f = y(() => {
3615
3615
  if (c.current) {
3616
- const p = c.current.querySelectorAll(".adaptiv-grid-item");
3617
- u(Array.from(p));
3616
+ const C = c.current.querySelectorAll(".adaptiv-grid-item");
3617
+ u(Array.from(C));
3618
3618
  }
3619
- }, []), j = k(() => {
3619
+ }, []), j = y(() => {
3620
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;
3622
- d.forEach((C) => {
3623
- const S = C.querySelector(".adaptiv-grid-item-container");
3621
+ const C = window.getComputedStyle(c.current), N = parseInt(C.getPropertyValue("grid-row-gap")) || 0, g = parseInt(C.getPropertyValue("grid-auto-rows")) || 1;
3622
+ d.forEach((_) => {
3623
+ const S = _.querySelector(".adaptiv-grid-item-container");
3624
3624
  if (S) {
3625
- const T = S.getBoundingClientRect().height, P = Math.ceil((T + y) / (N + y));
3626
- C.style.gridRowEnd = `span ${P}`;
3625
+ const T = S.getBoundingClientRect().height, P = Math.ceil((T + N) / (g + N));
3626
+ _.style.gridRowEnd = `span ${P}`;
3627
3627
  }
3628
3628
  });
3629
- }, [d]), _ = k(() => {
3629
+ }, [d]), p = y(() => {
3630
3630
  h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
3631
3631
  j(), h.current = null;
3632
3632
  });
@@ -3634,12 +3634,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3634
3634
  return V(() => {
3635
3635
  x(), f();
3636
3636
  }, [x, f, t]), V(() => {
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);
3637
+ m.current && m.current.disconnect(), m.current = new ResizeObserver(() => p());
3638
+ const C = m.current;
3639
+ return d.forEach((N) => C.observe(N)), p(), () => {
3640
+ C.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3641
3641
  };
3642
- }, [d, _]), /* @__PURE__ */ e.jsx(
3642
+ }, [d, p]), /* @__PURE__ */ e.jsx(
3643
3643
  "div",
3644
3644
  {
3645
3645
  style: { minWidth: n },
@@ -3679,62 +3679,64 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3679
3679
  activeTabClassName: s = "active",
3680
3680
  onTabClick: i,
3681
3681
  activeTabIndex: l,
3682
- tabContainerClassName: a = ""
3682
+ tabContainerClassName: a = "",
3683
+ className: o,
3684
+ style: c
3683
3685
  }) => {
3684
- const [o, c] = g(0), d = l !== void 0 ? l : o, u = Y(null), m = Y(null), [h, x] = g(!1), f = (p) => {
3685
- if (u.current) {
3686
- const y = t || u.current.offsetWidth / 2;
3687
- u.current.scrollBy({
3688
- left: p === "left" ? -y : y,
3686
+ const [d, u] = b(0), m = l !== void 0 ? l : d, h = Y(null), x = Y(null), [f, j] = b(!1), p = (g) => {
3687
+ if (h.current) {
3688
+ const _ = t || h.current.offsetWidth / 2;
3689
+ h.current.scrollBy({
3690
+ left: g === "left" ? -_ : _,
3689
3691
  behavior: "smooth"
3690
3692
  });
3691
3693
  }
3692
3694
  };
3693
3695
  V(() => {
3694
- const p = () => {
3695
- u.current && x(
3696
- u.current.scrollWidth > u.current.clientWidth
3696
+ const g = () => {
3697
+ h.current && j(
3698
+ h.current.scrollWidth > h.current.clientWidth
3697
3699
  );
3698
3700
  };
3699
- return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
3701
+ return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
3700
3702
  }, []), V(() => {
3701
- if (u.current && m.current) {
3702
- const p = u.current.children[d];
3703
- p && (m.current.style.width = `${p.offsetWidth}px`, m.current.style.transform = `translateX(${p.offsetLeft}px)`);
3703
+ if (h.current && x.current) {
3704
+ const g = h.current.children[m];
3705
+ g && (x.current.style.width = `${g.offsetWidth}px`, x.current.style.transform = `translateX(${g.offsetLeft}px)`);
3704
3706
  }
3705
- }, [d]);
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);
3707
+ }, [m]);
3708
+ const C = (g) => {
3709
+ g.key === "ArrowRight" ? N((m + 1) % n.length) : g.key === "ArrowLeft" && N((m - 1 + n.length) % n.length);
3710
+ }, N = (g) => {
3711
+ l === void 0 && u(g), i && i(g);
3710
3712
  };
3711
- return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
3713
+ return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-container ${o ?? ""}`, style: c, children: [
3712
3714
  /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${a}`, children: [
3713
- h && /* @__PURE__ */ e.jsx("button", { onClick: () => f("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
3715
+ f && /* @__PURE__ */ e.jsx("button", { onClick: () => p("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
3714
3716
  /* @__PURE__ */ e.jsxs(
3715
3717
  "div",
3716
3718
  {
3717
3719
  className: "alex-evo-ui-kit-tabs-header",
3718
- ref: u,
3719
- onKeyDown: j,
3720
+ ref: h,
3721
+ onKeyDown: C,
3720
3722
  tabIndex: 0,
3721
3723
  children: [
3722
- n.map((p, y) => /* @__PURE__ */ e.jsx(
3724
+ n.map((g, _) => /* @__PURE__ */ e.jsx(
3723
3725
  "div",
3724
3726
  {
3725
- className: `alex-evo-ui-kit-tab ${r} ${d === y ? s : ""}`,
3726
- onClick: () => _(y),
3727
- children: p.label
3727
+ className: `alex-evo-ui-kit-tab ${r} ${m === _ ? s : ""}`,
3728
+ onClick: () => N(_),
3729
+ children: g.label
3728
3730
  },
3729
- p.label
3731
+ g.label
3730
3732
  )),
3731
- /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: m })
3733
+ /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: x })
3732
3734
  ]
3733
3735
  }
3734
3736
  ),
3735
- h && /* @__PURE__ */ e.jsx("button", { onClick: () => f("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
3737
+ f && /* @__PURE__ */ e.jsx("button", { onClick: () => p("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
3736
3738
  ] }),
3737
- /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
3739
+ /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[m].content })
3738
3740
  ] });
3739
3741
  }, _r = ve(({
3740
3742
  children: n,
@@ -3760,8 +3762,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3760
3762
  };
3761
3763
  c && (f.display = "flex", f.flexDirection = "column", d > 0 && (f.gap = d)), V(() => {
3762
3764
  if (!x.current || !u) return;
3763
- const _ = new IntersectionObserver(u);
3764
- return _.observe(x.current), () => _.disconnect();
3765
+ const p = new IntersectionObserver(u);
3766
+ return p.observe(x.current), () => p.disconnect();
3765
3767
  }, [u]);
3766
3768
  const j = [
3767
3769
  "list-container",
@@ -3789,9 +3791,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3789
3791
  noTransformTransition: h,
3790
3792
  ...x
3791
3793
  }, f) => {
3792
- const j = (p) => {
3793
- !d && !p.target.closest(".control-container") && (a == null || a(p));
3794
- }, _ = [
3794
+ const j = (C) => {
3795
+ !d && !C.target.closest(".control-container") && (a == null || a(C));
3796
+ }, p = [
3795
3797
  "list-item-container",
3796
3798
  c,
3797
3799
  `container_shadow-hover-${m}`,
@@ -3800,15 +3802,15 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3800
3802
  u ? "list-item-container_active" : "",
3801
3803
  h ? "no-transform-transition" : ""
3802
3804
  ].filter(Boolean).join(" ");
3803
- return /* @__PURE__ */ e.jsxs("li", { ref: f, className: _, onClick: j, "aria-disabled": d, ...x, children: [
3805
+ return /* @__PURE__ */ e.jsxs("li", { ref: f, className: p, onClick: j, "aria-disabled": d, ...x, children: [
3804
3806
  (n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(X, { type: "body", children: l }) }),
3805
3807
  (s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
3806
3808
  s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(X, { type: "title", children: s }) }),
3807
3809
  r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(X, { type: "small", children: r }) }),
3808
3810
  i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(X, { type: "small", color: "variant", children: i }) })
3809
3811
  ] }),
3810
- t && /* @__PURE__ */ e.jsx("div", { onClick: (p) => {
3811
- p.stopPropagation();
3812
+ t && /* @__PURE__ */ e.jsx("div", { onClick: (C) => {
3813
+ C.stopPropagation();
3812
3814
  }, className: "list-item-container__control-container", children: t })
3813
3815
  ] });
3814
3816
  });
@@ -3854,7 +3856,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3854
3856
  index: o,
3855
3857
  maxH: c
3856
3858
  }) => {
3857
- const d = k(
3859
+ const d = y(
3858
3860
  (u) => {
3859
3861
  u.target.closest(".no-click") || a == null || a(t, o);
3860
3862
  },
@@ -3991,7 +3993,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3991
3993
  /* @__PURE__ */ e.jsx("div", { className: "navigation-item-drawer__text navigation-item-drawer__text_color_surface-variant", children: r })
3992
3994
  ] }), wr = ({ item: n, onHide: t }) => {
3993
3995
  if (n.type !== "submenu") return null;
3994
- const [r, s] = g(n.open ?? !1);
3996
+ const [r, s] = b(n.open ?? !1);
3995
3997
  return /* @__PURE__ */ e.jsxs("div", { className: `navigation-sub-menu ${r ? "navigation-sub-menu__open" : ""}`, children: [
3996
3998
  /* @__PURE__ */ e.jsx(
3997
3999
  Re,
@@ -4179,11 +4181,11 @@ const Vr = [
4179
4181
  width: o = 310,
4180
4182
  height: c = "auto"
4181
4183
  }) => {
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(
4184
+ const d = Y(null), u = Y(null), m = Y(null), h = Y(null), [x, f] = b(Tr(t)), [j, p] = b(!1), [C, N] = b(
4183
4185
  `#${ke(Le(x))}`
4184
- ), N = oe(() => Le(x), [x]), C = oe(() => `#${ke(N)}`, [N]), S = oe(
4185
- () => p[0] !== "#" ? `#${p}` : p,
4186
- [p]
4186
+ ), g = oe(() => Le(x), [x]), _ = oe(() => `#${ke(g)}`, [g]), S = oe(
4187
+ () => C[0] !== "#" ? `#${C}` : C,
4188
+ [C]
4187
4189
  );
4188
4190
  V(() => {
4189
4191
  !m.current || !d.current || !u.current || !h.current || T(
@@ -4195,65 +4197,65 @@ const Vr = [
4195
4197
  );
4196
4198
  }, [x]), V(() => {
4197
4199
  if (!m.current || !h.current) return;
4198
- const b = m.current.getContext("2d");
4199
- b && (Mr(
4200
- b,
4200
+ const k = m.current.getContext("2d");
4201
+ k && (Mr(
4202
+ k,
4201
4203
  m.current,
4202
4204
  `#${ke(Le(x.h, 1, 1))}`
4203
4205
  ), Lr(
4204
4206
  m.current,
4205
- b,
4207
+ k,
4206
4208
  h.current,
4207
4209
  (D, M) => {
4208
4210
  f((E) => {
4209
4211
  const U = { ...E, s: D / 100, v: M / 100 };
4210
- return y(ke(Le(U))), U;
4212
+ return N(ke(Le(U))), U;
4211
4213
  });
4212
4214
  }
4213
4215
  ));
4214
4216
  }, [x.h]), V(() => {
4215
4217
  if (!d.current || !u.current) return;
4216
- const b = d.current.getContext("2d");
4217
- b && (Rr(b, d.current), Er(b, d.current, u.current, (D) => {
4218
+ const k = d.current.getContext("2d");
4219
+ k && (Rr(k, d.current), Er(k, d.current, u.current, (D) => {
4218
4220
  f((M) => {
4219
4221
  const E = { ...M, h: D / 360 };
4220
- return y(ke(Le(E))), E;
4222
+ return N(ke(Le(E))), E;
4221
4223
  });
4222
4224
  }));
4223
4225
  }, []), V(() => {
4224
- if (p.length === 4 || p.length === 7)
4226
+ if (C.length === 4 || C.length === 7)
4225
4227
  try {
4226
- f(De(Ne(p)));
4228
+ f(De(Ne(C)));
4227
4229
  } catch {
4228
4230
  console.warn("Invalid HEX color");
4229
4231
  }
4230
- }, [p]);
4231
- const T = (b, D, M, E, U) => {
4232
+ }, [C]);
4233
+ const T = (k, D, M, E, U) => {
4232
4234
  try {
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;
4235
+ const I = k.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;
4234
4236
  Kn(D, G, v), qn(E, L);
4235
4237
  } catch (I) {
4236
4238
  console.error("Error updating cursor positions", I);
4237
4239
  }
4238
- }, P = (b) => {
4240
+ }, P = (k) => {
4239
4241
  try {
4240
- f(De(Ne(b))), y(b);
4242
+ f(De(Ne(k))), N(k);
4241
4243
  } catch {
4242
4244
  console.warn("Invalid color format");
4243
4245
  }
4244
- }, B = k(() => {
4245
- s == null || s([...a, C]);
4246
- }, [s, a, C]), w = k(() => {
4247
- r == null || r(C), i && (n == null || n());
4248
- }, [r, C]), W = k(
4249
- (b, D) => {
4246
+ }, B = y(() => {
4247
+ s == null || s([...a, _]);
4248
+ }, [s, a, _]), w = y(() => {
4249
+ r == null || r(_), i && (n == null || n());
4250
+ }, [r, _]), W = y(
4251
+ (k, D) => {
4250
4252
  const M = Math.min(255, Math.max(0, D));
4251
- f(De({ ...N, [b]: M })), y(ke({ ...N, [b]: M }));
4253
+ f(De({ ...g, [k]: M })), N(ke({ ...g, [k]: M }));
4252
4254
  },
4253
- [N]
4254
- ), O = k((b) => {
4255
- y(b);
4256
- }, []), A = k(() => {
4255
+ [g]
4256
+ ), O = y((k) => {
4257
+ N(k);
4258
+ }, []), A = y(() => {
4257
4259
  l && (r == null || r(l), i && (n == null || n()), P(l));
4258
4260
  }, [l, r, P]);
4259
4261
  return /* @__PURE__ */ e.jsxs(
@@ -4265,13 +4267,13 @@ const Vr = [
4265
4267
  style: { width: o, height: c },
4266
4268
  children: [
4267
4269
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4268
- /* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((b, D) => /* @__PURE__ */ e.jsx(
4270
+ /* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((k, D) => /* @__PURE__ */ e.jsx(
4269
4271
  "button",
4270
4272
  {
4271
- onClick: () => P(b),
4273
+ onClick: () => P(k),
4272
4274
  className: "swatch",
4273
- style: { backgroundColor: b },
4274
- "aria-label": `Color ${b}`
4275
+ style: { backgroundColor: k },
4276
+ "aria-label": `Color ${k}`
4275
4277
  },
4276
4278
  D
4277
4279
  )) }),
@@ -4324,9 +4326,9 @@ const Vr = [
4324
4326
  ] })
4325
4327
  ] }),
4326
4328
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4327
- /* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: ["r", "g", "b"].map((b) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
4329
+ /* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: ["r", "g", "b"].map((k) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
4328
4330
  /* @__PURE__ */ e.jsxs("label", { className: "field-label", children: [
4329
- b.toUpperCase(),
4331
+ k.toUpperCase(),
4330
4332
  ":"
4331
4333
  ] }),
4332
4334
  /* @__PURE__ */ e.jsx(
@@ -4335,13 +4337,13 @@ const Vr = [
4335
4337
  type: "number",
4336
4338
  max: "255",
4337
4339
  min: "0",
4338
- value: N[b],
4339
- onChange: (D) => W(b, Number(D.target.value)),
4340
+ value: g[k],
4341
+ onChange: (D) => W(k, Number(D.target.value)),
4340
4342
  className: "field-input rgb-input",
4341
- "aria-label": `${b.toUpperCase()} value`
4343
+ "aria-label": `${k.toUpperCase()} value`
4342
4344
  }
4343
4345
  )
4344
- ] }, b)) }),
4346
+ ] }, k)) }),
4345
4347
  /* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${j ? "active" : ""}`, children: [
4346
4348
  /* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
4347
4349
  /* @__PURE__ */ e.jsx(
@@ -4350,7 +4352,7 @@ const Vr = [
4350
4352
  type: "text",
4351
4353
  className: "field-input",
4352
4354
  value: S,
4353
- onChange: (b) => O(b.target.value),
4355
+ onChange: (k) => O(k.target.value),
4354
4356
  "aria-label": "HEX color value"
4355
4357
  }
4356
4358
  )
@@ -4359,7 +4361,7 @@ const Vr = [
4359
4361
  "button",
4360
4362
  {
4361
4363
  className: "button-color-picker mode-toggle",
4362
- onClick: () => _((b) => !b),
4364
+ onClick: () => p((k) => !k),
4363
4365
  "aria-label": `Switch to ${j ? "RGB" : "HEX"} mode`,
4364
4366
  children: "Mode"
4365
4367
  }
@@ -4367,13 +4369,13 @@ const Vr = [
4367
4369
  ] }),
4368
4370
  a.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4369
4371
  /* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
4370
- /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: a.map((b, D) => /* @__PURE__ */ e.jsx(
4372
+ /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: a.map((k, D) => /* @__PURE__ */ e.jsx(
4371
4373
  "button",
4372
4374
  {
4373
- onClick: () => P(b),
4375
+ onClick: () => P(k),
4374
4376
  className: "swatch",
4375
- style: { backgroundColor: b },
4376
- "aria-label": `User color ${b}`
4377
+ style: { backgroundColor: k },
4378
+ "aria-label": `User color ${k}`
4377
4379
  },
4378
4380
  D
4379
4381
  )) })
@@ -4389,7 +4391,7 @@ const Vr = [
4389
4391
  /* @__PURE__ */ e.jsx(
4390
4392
  "span",
4391
4393
  {
4392
- style: { backgroundColor: C },
4394
+ style: { backgroundColor: _ },
4393
4395
  className: "color-indicator"
4394
4396
  }
4395
4397
  ),
@@ -4431,20 +4433,20 @@ const Vr = [
4431
4433
  defaultColor: c,
4432
4434
  placeholder: d
4433
4435
  }) => {
4434
- const [u, m] = g(!1), [h, x] = g(s);
4436
+ const [u, m] = b(!1), [h, x] = b(s);
4435
4437
  V(() => {
4436
4438
  s !== void 0 && x(s);
4437
4439
  }, [s]);
4438
- const f = k(() => {
4440
+ const f = y(() => {
4439
4441
  m(!0);
4440
- }, []), j = k(
4441
- (y) => {
4442
- x(y), t == null || t(y), m(!1);
4442
+ }, []), j = y(
4443
+ (N) => {
4444
+ x(N), t == null || t(N), m(!1);
4443
4445
  },
4444
4446
  [t]
4445
- ), _ = k(() => {
4447
+ ), p = y(() => {
4446
4448
  m(!1);
4447
- }, []), p = [
4449
+ }, []), C = [
4448
4450
  "input-field",
4449
4451
  "color-field",
4450
4452
  n ? "input-field_border" : "",
@@ -4452,7 +4454,7 @@ const Vr = [
4452
4454
  i
4453
4455
  ].filter(Boolean).join(" ");
4454
4456
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4455
- /* @__PURE__ */ e.jsxs("div", { className: p, children: [
4457
+ /* @__PURE__ */ e.jsxs("div", { className: C, children: [
4456
4458
  /* @__PURE__ */ e.jsxs("div", { className: "color-indicator-field", children: [
4457
4459
  /* @__PURE__ */ e.jsx(
4458
4460
  "div",
@@ -4484,7 +4486,7 @@ const Vr = [
4484
4486
  onAddColor: o,
4485
4487
  onChange: j,
4486
4488
  beginColor: h,
4487
- onHide: _
4489
+ onHide: p
4488
4490
  }
4489
4491
  ) })
4490
4492
  ] });
@@ -4502,31 +4504,31 @@ const Vr = [
4502
4504
  "November",
4503
4505
  "December"
4504
4506
  ], Dr = () => Array(Ar - fn).fill(0).map((n, t) => fn + t), Ir = ({ onChange: n, onHide: t }) => {
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({
4507
+ const [r] = b(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = b((/* @__PURE__ */ new Date()).getFullYear()), [i] = b((/* @__PURE__ */ new Date()).getDate()), [l, a] = b(me[(/* @__PURE__ */ new Date()).getMonth()]), [o, c] = b((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = b({
4506
4508
  day: (/* @__PURE__ */ new Date()).getDate(),
4507
4509
  type: "NOW_MONTH"
4508
4510
  /* NOW_MONTH */
4509
- }), [m, h] = g(
4511
+ }), [m, h] = b(
4510
4512
  "DAYS"
4511
4513
  /* DAYS */
4512
- ), x = (C, S) => new Date(C, S + 1, 0).getDate(), f = (C, S, T) => new Date(C, S, T).getDay(), j = (C, S) => {
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 }));
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;
4515
- }, _ = (C) => {
4514
+ ), x = (_, S) => new Date(_, S + 1, 0).getDate(), f = (_, S, T) => new Date(_, S, T).getDay(), j = (_, S) => {
4515
+ let T = Array(x(_, S)).fill(0).map((W, O) => ({ type: "NOW_MONTH", day: O + 1 })), P = f(_, S, x(_, S)), B = Array(7 - P).fill(0).map((W, O) => ({ type: "NEXT_MONTH", day: O + 1 }));
4516
+ return T = Array(f(_, S, 0)).fill(0).map((W, O) => ({ type: "PREV_MONTH", day: x(S ? _ : _ - 1, S ? S - 1 : 11) - O })).reverse().concat(T).concat(B), T;
4517
+ }, p = (_) => {
4516
4518
  h(
4517
4519
  "DAYS"
4518
4520
  /* DAYS */
4519
- ), c(C);
4520
- }, p = (C) => {
4521
+ ), c(_);
4522
+ }, C = (_) => {
4521
4523
  h(
4522
4524
  "DAYS"
4523
4525
  /* DAYS */
4524
- ), a(C);
4525
- }, y = (C) => {
4526
- u(C);
4527
- }, N = k(() => {
4528
- let C = /* @__PURE__ */ new Date();
4529
- C.setFullYear(o), d.type === "NEXT_MONTH" ? l === me[11] ? (C.setMonth(0), C.setFullYear(o + 1)) : C.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (C.setMonth(11), C.setFullYear(o - 1)) : C.setMonth(me.indexOf(l) - 1) : C.setMonth(me.indexOf(l)), C.setDate(d.day), n && n(C.getFullYear(), C.getMonth(), C.getDate()), t && t();
4526
+ ), a(_);
4527
+ }, N = (_) => {
4528
+ u(_);
4529
+ }, g = y(() => {
4530
+ let _ = /* @__PURE__ */ new Date();
4531
+ _.setFullYear(o), d.type === "NEXT_MONTH" ? l === me[11] ? (_.setMonth(0), _.setFullYear(o + 1)) : _.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (_.setMonth(11), _.setFullYear(o - 1)) : _.setMonth(me.indexOf(l) - 1) : _.setMonth(me.indexOf(l)), _.setDate(d.day), n && n(_.getFullYear(), _.getMonth(), _.getDate()), t && t();
4530
4532
  }, [l, o, n, t, d]);
4531
4533
  return /* @__PURE__ */ e.jsxs(Ze, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
4532
4534
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
@@ -4547,12 +4549,12 @@ const Vr = [
4547
4549
  /* @__PURE__ */ e.jsx(Ie, {})
4548
4550
  ] }) })
4549
4551
  ] }),
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: [
4551
- /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4552
- /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
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: [
4554
- /* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4555
- /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
4552
+ m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((_, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => C(_), children: [
4553
+ /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === _ ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4554
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: _ })
4555
+ ] }, S)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((_, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => p(_), children: [
4556
+ /* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === _ ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4557
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: _ })
4556
4558
  ] }, S)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4557
4559
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
4558
4560
  /* @__PURE__ */ e.jsx("span", { children: "M" }),
@@ -4563,11 +4565,11 @@ const Vr = [
4563
4565
  /* @__PURE__ */ e.jsx("span", { children: "S" }),
4564
4566
  /* @__PURE__ */ e.jsx("span", { children: "S" })
4565
4567
  ] }),
4566
- /* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: j(o, me.indexOf(l)).map((C, S) => /* @__PURE__ */ e.jsx("div", { className: `day ${C.type !== "NOW_MONTH" ? "other" : ""} ${i === C.day && o === s && l === r ? "now" : ""} ${C.day === d.day && C.type === d.type ? "select" : ""}`, onClick: () => y(C), children: C.day }, S)) })
4568
+ /* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: j(o, me.indexOf(l)).map((_, S) => /* @__PURE__ */ e.jsx("div", { className: `day ${_.type !== "NOW_MONTH" ? "other" : ""} ${i === _.day && o === s && l === r ? "now" : ""} ${_.day === d.day && _.type === d.type ? "select" : ""}`, onClick: () => N(_), children: _.day }, S)) })
4567
4569
  ] }),
4568
4570
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
4569
4571
  /* @__PURE__ */ e.jsx(de, { className: "little m-0", onClick: t, children: "Cancel" }),
4570
- /* @__PURE__ */ e.jsx(de, { className: "little m-0", onClick: N, children: "OK" })
4572
+ /* @__PURE__ */ e.jsx(de, { className: "little m-0", onClick: g, children: "OK" })
4571
4573
  ] })
4572
4574
  ] });
4573
4575
  }, Hr = ({
@@ -4588,26 +4590,26 @@ const Vr = [
4588
4590
  onClear: f,
4589
4591
  ...j
4590
4592
  }) => {
4591
- const [_, p] = g(s ?? ""), [y, N] = g(!1), [C, S] = g(!1), [T, P] = g(!!s), B = Be(), w = l || o, W = () => {
4592
- N(!0);
4593
+ const [p, C] = b(s ?? ""), [N, g] = b(!1), [_, S] = b(!1), [T, P] = b(!!s), B = Be(), w = l || o, W = () => {
4594
+ g(!0);
4593
4595
  }, O = (I) => {
4594
4596
  let H = String(I + 1);
4595
4597
  return H.length < 2 && (H = "0" + H), H;
4596
4598
  }, A = (I) => {
4597
4599
  let H = String(I);
4598
4600
  return H.length < 2 && (H = "0" + H), H;
4599
- }, b = (I) => {
4601
+ }, k = (I) => {
4600
4602
  x == null || x(I), S(!0);
4601
4603
  }, D = (I) => {
4602
4604
  h == null || h(I), S(!1), P(!!I.target.value);
4603
- }, M = k(() => {
4604
- p(""), f == null || f(), t == null || t("");
4605
+ }, M = y(() => {
4606
+ C(""), f == null || f(), t == null || t("");
4605
4607
  }, [f, t]);
4606
4608
  V(() => {
4607
4609
  P(!!s);
4608
4610
  }, [s]);
4609
- const E = k((I, H, G) => {
4610
- p(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
4611
+ const E = y((I, H, G) => {
4612
+ C(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
4611
4613
  }, [t]), U = {
4612
4614
  small: "input-field__date-field_small",
4613
4615
  medium: "input-field__date-field_medium",
@@ -4619,7 +4621,7 @@ const Vr = [
4619
4621
  input-field__date-field
4620
4622
  ${U[d]}
4621
4623
  ${n ? "input-field_border" : ""}
4622
- ${C ? "input-field_active" : ""}
4624
+ ${_ ? "input-field_active" : ""}
4623
4625
  ${w ? "input-field_error" : ""}
4624
4626
  ${u ? "input-field_disabled" : ""}
4625
4627
  `, children: [
@@ -4633,9 +4635,9 @@ const Vr = [
4633
4635
  type: "date",
4634
4636
  role: "textbox",
4635
4637
  name: r,
4636
- value: _,
4638
+ value: p,
4637
4639
  onBlur: D,
4638
- onFocus: b,
4640
+ onFocus: k,
4639
4641
  readOnly: !0,
4640
4642
  id: B,
4641
4643
  ...j
@@ -4652,12 +4654,12 @@ const Vr = [
4652
4654
  }
4653
4655
  )
4654
4656
  ] }),
4655
- f && _ && !u && /* @__PURE__ */ e.jsx("div", { className: `
4657
+ f && p && !u && /* @__PURE__ */ e.jsx("div", { className: `
4656
4658
  input-field__icon-container
4657
4659
  input-field__icon-container_clear-btn
4658
4660
  `, onClick: M, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
4659
4661
  ] }),
4660
- y ? /* @__PURE__ */ e.jsx(_e, { container: a, children: /* @__PURE__ */ e.jsx(Ir, { onChange: E, onHide: () => N(!1) }) }) : null,
4662
+ N ? /* @__PURE__ */ e.jsx(_e, { container: a, children: /* @__PURE__ */ e.jsx(Ir, { onChange: E, onHide: () => g(!1) }) }) : null,
4661
4663
  w && o && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: o }),
4662
4664
  c && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: c })
4663
4665
  ] });
@@ -4676,16 +4678,16 @@ const Vr = [
4676
4678
  dayLabels: s = zr
4677
4679
  // Дефолтные значения
4678
4680
  }) => {
4679
- const [i, l] = g(t ?? []);
4681
+ const [i, l] = b(t ?? []);
4680
4682
  V(() => {
4681
4683
  t && l(t);
4682
4684
  }, [t]);
4683
- const a = k((c) => (d) => {
4685
+ const a = y((c) => (d) => {
4684
4686
  l((u) => {
4685
4687
  const m = d.target.checked ? [...u, c] : u.filter((h) => h !== c);
4686
4688
  return n == null || n(m), m;
4687
4689
  });
4688
- }, [n]), o = k((c) => i.includes(c), [i]);
4690
+ }, [n]), o = y((c) => i.includes(c), [i]);
4689
4691
  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: [
4690
4692
  /* @__PURE__ */ e.jsx(
4691
4693
  "input",
@@ -4718,22 +4720,22 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4718
4720
  errorText: x,
4719
4721
  helperText: f
4720
4722
  }) => {
4721
- const [j, _] = g([]), [p, y] = g(""), [N, C] = g(null);
4723
+ const [j, p] = b([]), [C, N] = b(""), [g, _] = b(null);
4722
4724
  V(() => {
4723
- _(Wr(t, a));
4725
+ p(Wr(t, a));
4724
4726
  }, [t, a]);
4725
4727
  const S = (w) => {
4726
- y(w);
4728
+ N(w);
4727
4729
  }, T = (w) => {
4728
4730
  w.key === "Enter" && (w.preventDefault(), P());
4729
- }, P = k(() => {
4730
- if (p.trim() === "" || j.includes(p.trim()))
4731
+ }, P = y(() => {
4732
+ if (C.trim() === "" || j.includes(C.trim()))
4731
4733
  return;
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) => {
4734
+ const w = [...j, C.trim()];
4735
+ p(w), r == null || r(jn(w, a)), N(""), _(w.length - 1);
4736
+ }, [j, C, r, a]), B = (w) => {
4735
4737
  const W = j.filter((O, A) => A !== w);
4736
- _(W), r == null || r(jn(W, a)), C(w > 0 ? w - 1 : null);
4738
+ p(W), r == null || r(jn(W, a)), _(w > 0 ? w - 1 : null);
4737
4739
  };
4738
4740
  return /* @__PURE__ */ e.jsxs(
4739
4741
  "div",
@@ -4747,7 +4749,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4747
4749
  {
4748
4750
  onChange: S,
4749
4751
  onKeyDown: T,
4750
- value: p,
4752
+ value: C,
4751
4753
  border: s,
4752
4754
  placeholder: i,
4753
4755
  error: h,
@@ -4778,10 +4780,10 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4778
4780
  onDelete: () => B(W),
4779
4781
  disabled: o,
4780
4782
  "aria-label": `Элемент: ${w}`,
4781
- "aria-selected": N === W,
4783
+ "aria-selected": g === W,
4782
4784
  role: "option",
4783
4785
  tabIndex: 0,
4784
- onFocus: () => C(W)
4786
+ onFocus: () => _(W)
4785
4787
  },
4786
4788
  `${w}-${W}`
4787
4789
  ))
@@ -4792,7 +4794,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4792
4794
  {
4793
4795
  onClick: P,
4794
4796
  className: "more-text-btn",
4795
- disabled: o || !p.trim(),
4797
+ disabled: o || !C.trim(),
4796
4798
  "aria-label": `${l} элемент`,
4797
4799
  children: l
4798
4800
  }
@@ -4821,47 +4823,47 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4821
4823
  onFocus: x,
4822
4824
  onBlur: f,
4823
4825
  error: j,
4824
- max: _,
4825
- min: p,
4826
- size: y = "medium",
4827
- disabled: N,
4828
- step: C = 1,
4826
+ max: p,
4827
+ min: C,
4828
+ size: N = "medium",
4829
+ disabled: g,
4830
+ step: _ = 1,
4829
4831
  helperText: S,
4830
4832
  errorText: T,
4831
4833
  ariaLabel: P,
4832
4834
  ariaLabelledby: B,
4833
4835
  ariaDescribedby: w
4834
4836
  }, W) => {
4835
- const O = Y(null), A = Y(null), b = Y(null), D = Y(null), [M, E] = g(!1), [U, I] = g(d ?? 0), H = k((z, Z) => E(!!(j || z && (!Z || Z === ""))), [j]), G = () => {
4837
+ const O = Y(null), A = Y(null), k = Y(null), D = Y(null), [M, E] = b(!1), [U, I] = b(d ?? 0), H = y((z, Z) => E(!!(j || z && (!Z || Z === ""))), [j]), G = () => {
4836
4838
  if (!D.current)
4837
4839
  return;
4838
4840
  const z = D.current.querySelector("input");
4839
4841
  z && z.focus();
4840
- }, v = k((z, Z) => {
4841
- o && (b.current && (clearTimeout(b.current), b.current = null), b.current = setTimeout(() => {
4842
- b.current && (clearTimeout(b.current), b.current = null), o(z, Z);
4842
+ }, v = y((z, Z) => {
4843
+ o && (k.current && (clearTimeout(k.current), k.current = null), k.current = setTimeout(() => {
4844
+ k.current && (clearTimeout(k.current), k.current = null), o(z, Z);
4843
4845
  }, 100));
4844
- }, [o]), L = k(() => {
4846
+ }, [o]), L = y(() => {
4845
4847
  I((z) => {
4846
- let Z = z ? z + C : C;
4847
- return typeof _ == "number" && Z > _ && (Z = _), v(Z, c), Z;
4848
+ let Z = z ? z + _ : _;
4849
+ return typeof p == "number" && Z > p && (Z = p), v(Z, c), Z;
4848
4850
  });
4849
- }, [v, c, _, C]), R = k(() => {
4851
+ }, [v, c, p, _]), R = y(() => {
4850
4852
  I((z) => {
4851
- let Z = z ? z - C : -C;
4852
- return typeof p == "number" && Z < p && (Z = p), v(Z, c), Z;
4853
+ let Z = z ? z - _ : -_;
4854
+ return typeof C == "number" && Z < C && (Z = C), v(Z, c), Z;
4853
4855
  });
4854
- }, [v, c, p, C]), q = k((z) => {
4856
+ }, [v, c, C, _]), q = y((z) => {
4855
4857
  if (z.target.value === "") {
4856
4858
  I("");
4857
4859
  return;
4858
4860
  }
4859
4861
  z.target.value.length > 1 && z.target.value[0] === "0" && ![",", "."].includes(z.target.value[1]) && (z.target.value = z.target.value.slice(1));
4860
4862
  let Z = Number(z.target.value);
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(() => {
4863
+ typeof C == "number" && Z < C && (Z = C), typeof p == "number" && Z > p && (Z = p), I(Number(z.target.value)), v(Z, c);
4864
+ }, [c, v, U, p, C]), Q = y(() => {
4863
4865
  O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.removeEventListener("mouseup", Q);
4864
- }, []), ne = k((z) => {
4866
+ }, []), ne = y((z) => {
4865
4867
  z === "p" ? L() : z === "m" && R(), O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.addEventListener("mouseup", Q), O.current = setTimeout(() => {
4866
4868
  A.current = setInterval(() => {
4867
4869
  z === "p" ? L() : z === "m" && R();
@@ -4873,7 +4875,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4873
4875
  V(() => {
4874
4876
  H(h, d);
4875
4877
  }, [d, h, H]), V(() => {
4876
- d !== void 0 && !b.current && I(d);
4878
+ d !== void 0 && !k.current && I(d);
4877
4879
  }, [d]);
4878
4880
  const le = {
4879
4881
  small: "input-field__number-field_small",
@@ -4889,13 +4891,13 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4889
4891
  className: `
4890
4892
  input-field
4891
4893
  input-field__number-field
4892
- ${le[y]}
4894
+ ${le[N]}
4893
4895
  ${i ? "input-field_border" : ""}
4894
4896
  ${r ? "input-field_transparent" : ""}
4895
4897
  ${M ? "input-field_error" : ""}
4896
- ${N ? "input-field_disabled" : ""}
4898
+ ${g ? "input-field_disabled" : ""}
4897
4899
  `,
4898
- "aria-disabled": N,
4900
+ "aria-disabled": g,
4899
4901
  "aria-invalid": M,
4900
4902
  children: [
4901
4903
  a ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: G, "aria-hidden": "true", children: a }) : null,
@@ -4904,9 +4906,9 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4904
4906
  "input",
4905
4907
  {
4906
4908
  ref: n,
4907
- max: _,
4908
- step: C,
4909
- min: p,
4909
+ max: p,
4910
+ step: _,
4911
+ min: C,
4910
4912
  readOnly: s,
4911
4913
  required: !0,
4912
4914
  type: "number",
@@ -4921,7 +4923,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4921
4923
  "aria-describedby": w,
4922
4924
  "aria-required": "true",
4923
4925
  "aria-invalid": M,
4924
- disabled: N
4926
+ disabled: g
4925
4927
  }
4926
4928
  ),
4927
4929
  /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: u ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: u }) : null }),
@@ -5006,15 +5008,15 @@ const Qn = te.forwardRef(
5006
5008
  validEmptyValue: x,
5007
5009
  onFocus: f,
5008
5010
  onBlur: j,
5009
- error: _,
5010
- autoFocus: p,
5011
- disabled: y,
5012
- helperText: N,
5013
- errorText: C,
5011
+ error: p,
5012
+ autoFocus: C,
5013
+ disabled: N,
5014
+ helperText: g,
5015
+ errorText: _,
5014
5016
  rows: S = 3,
5015
5017
  onKeyDown: T
5016
5018
  }, P) => {
5017
- const B = Y(null), [w, W] = g(!1), [O, A] = g(!1), [b, D] = g(!!u), M = Be(), E = () => {
5019
+ const B = Y(null), [w, W] = b(!1), [O, A] = b(!1), [k, D] = b(!!u), M = Be(), E = () => {
5018
5020
  var v;
5019
5021
  const G = (v = B.current) == null ? void 0 : v.querySelector("textarea");
5020
5022
  G == null || G.focus();
@@ -5022,9 +5024,9 @@ const Qn = te.forwardRef(
5022
5024
  f == null || f(G), A(!0);
5023
5025
  }, I = (G) => {
5024
5026
  j == null || j(G), A(!1), D(!!G.target.value);
5025
- }, H = k(
5026
- (G, v) => W(!!(_ || G && (!v || v === ""))),
5027
- [_]
5027
+ }, H = y(
5028
+ (G, v) => W(!!(p || G && (!v || v === ""))),
5029
+ [p]
5028
5030
  );
5029
5031
  return V(() => {
5030
5032
  H(x, u), D(!!u);
@@ -5041,7 +5043,7 @@ const Qn = te.forwardRef(
5041
5043
  ${O ? "input-field_active" : ""}
5042
5044
  ${s ? "input-field_transparent" : ""}
5043
5045
  ${w ? "input-field_error" : ""}
5044
- ${y ? "input-field_disabled" : ""}
5046
+ ${N ? "input-field_disabled" : ""}
5045
5047
  `,
5046
5048
  onClick: E,
5047
5049
  children: [
@@ -5053,7 +5055,7 @@ const Qn = te.forwardRef(
5053
5055
  ref: t,
5054
5056
  id: M,
5055
5057
  readOnly: i,
5056
- disabled: y,
5058
+ disabled: N,
5057
5059
  required: !0,
5058
5060
  rows: S,
5059
5061
  name: d,
@@ -5064,7 +5066,7 @@ const Qn = te.forwardRef(
5064
5066
  onFocus: U,
5065
5067
  onBlur: I,
5066
5068
  onKeyDown: T,
5067
- autoFocus: p,
5069
+ autoFocus: C,
5068
5070
  "aria-invalid": w,
5069
5071
  "aria-describedby": w ? `${d}-error` : void 0
5070
5072
  }
@@ -5074,27 +5076,27 @@ const Qn = te.forwardRef(
5074
5076
  {
5075
5077
  htmlFor: M,
5076
5078
  onClick: E,
5077
- className: `input-field__input-container__label input-field__text-area__label ${b ? "input-field__input-container__label_filled" : ""}`,
5079
+ className: `input-field__input-container__label input-field__text-area__label ${k ? "input-field__input-container__label_filled" : ""}`,
5078
5080
  children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
5079
5081
  }
5080
5082
  )
5081
5083
  ] }),
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" }) })
5084
+ a && u && !N && /* @__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" }) })
5083
5085
  ]
5084
5086
  }
5085
5087
  ),
5086
- w && C && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: C }),
5087
- N && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: N })
5088
+ w && _ && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: _ }),
5089
+ g && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: g })
5088
5090
  ] });
5089
5091
  }
5090
5092
  );
5091
5093
  Qn.displayName = "TextArea";
5092
5094
  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) => {
5095
+ const [o, c] = b(!1), d = y((h) => {
5094
5096
  n(h), c(!0);
5095
- }, [n]), u = k((h) => {
5097
+ }, [n]), u = y((h) => {
5096
5098
  t(h), c(!1);
5097
- }, [t]), m = k(() => {
5099
+ }, [t]), m = y(() => {
5098
5100
  c(!1), l();
5099
5101
  }, []);
5100
5102
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -5198,11 +5200,11 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5198
5200
  ] })
5199
5201
  ] });
5200
5202
  }, Kr = (n) => {
5201
- const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, a] = g(!0), o = () => {
5203
+ const [t, r] = b(n.minutes ?? 0), [s, i] = b(n.hours ?? 0), [l, a] = b(!0), o = () => {
5202
5204
  n.onHide && n.onHide(), r(0), i(0);
5203
- }, c = k((u) => {
5205
+ }, c = y((u) => {
5204
5206
  r(u), n.onChange && n.onChange(s, u), n.onHide && n.onHide();
5205
- }, [s]), d = k(() => {
5207
+ }, [s]), d = y(() => {
5206
5208
  n.onChange && n.onChange(s, t), n.onHide && n.onHide();
5207
5209
  }, [s, t]);
5208
5210
  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 }) });
@@ -5227,31 +5229,31 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5227
5229
  ariaLabelledby: x,
5228
5230
  placeholder: f,
5229
5231
  onBlur: j,
5230
- onFocus: _,
5231
- onClear: p,
5232
- style: y,
5233
- ...N
5232
+ onFocus: p,
5233
+ onClear: C,
5234
+ style: N,
5235
+ ...g
5234
5236
  }) => {
5235
- const [C, S] = g(s), [T, P] = g(!1), [B, w] = g(!1), [W, O] = g(!!s), A = Be(), b = a || !!d;
5237
+ const [_, S] = b(s), [T, P] = b(!1), [B, w] = b(!1), [W, O] = b(!!s), A = Be(), k = a || !!d;
5236
5238
  V(() => {
5237
5239
  S(s);
5238
5240
  }, [s]);
5239
- const D = k(() => b || l && !C ? "error" : "", [C, b, l]), M = (R, q) => {
5241
+ const D = y(() => k || l && !_ ? "error" : "", [_, k, l]), M = (R, q) => {
5240
5242
  const Q = String(R).padStart(2, "0"), ne = String(q).padStart(2, "0"), J = `${Q}:${ne}`;
5241
5243
  S(J), t == null || t(J);
5242
5244
  }, E = () => {
5243
5245
  c || P(!0);
5244
5246
  }, U = (R) => {
5245
- _ == null || _(R), w(!0);
5247
+ p == null || p(R), w(!0);
5246
5248
  }, I = (R) => {
5247
5249
  j == null || j(R), w(!1), O(!!R.target.value);
5248
- }, H = k(() => {
5249
- S(""), p == null || p(), t == null || t("");
5250
- }, [p, t]);
5250
+ }, H = y(() => {
5251
+ S(""), C == null || C(), t == null || t("");
5252
+ }, [C, t]);
5251
5253
  V(() => {
5252
5254
  O(!!s);
5253
5255
  }, [s]);
5254
- const G = C && parseInt(C.split(":")[0]) || 0, v = C && parseInt(C.split(":")[1]) || 0, L = oe(() => b && d ? /* @__PURE__ */ e.jsx(
5256
+ const G = _ && parseInt(_.split(":")[0]) || 0, v = _ && parseInt(_.split(":")[1]) || 0, L = oe(() => k && d ? /* @__PURE__ */ e.jsx(
5255
5257
  X,
5256
5258
  {
5257
5259
  type: "small",
@@ -5260,7 +5262,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5260
5262
  id: `${r}-error`,
5261
5263
  children: d
5262
5264
  }
5263
- ) : u && !b ? /* @__PURE__ */ e.jsx(
5265
+ ) : u && !k ? /* @__PURE__ */ e.jsx(
5264
5266
  X,
5265
5267
  {
5266
5268
  type: "small",
@@ -5268,7 +5270,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5268
5270
  id: `${r}-helper`,
5269
5271
  children: u
5270
5272
  }
5271
- ) : null, [b, d, u, r]);
5273
+ ) : null, [k, d, u, r]);
5272
5274
  return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${i}`, children: [
5273
5275
  /* @__PURE__ */ e.jsxs(
5274
5276
  "div",
@@ -5279,11 +5281,11 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5279
5281
  ${qr[h]}
5280
5282
  ${n ? "input-field_border" : ""}
5281
5283
  ${B ? "input-field_active" : ""}
5282
- ${b ? "input-field_error" : ""}
5284
+ ${k ? "input-field_error" : ""}
5283
5285
  ${c ? "input-field_disabled" : ""}
5284
5286
  `,
5285
5287
  "aria-disabled": c,
5286
- style: y,
5288
+ style: N,
5287
5289
  children: [
5288
5290
  /* @__PURE__ */ e.jsx(
5289
5291
  "div",
@@ -5301,18 +5303,18 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5301
5303
  /* @__PURE__ */ e.jsx(
5302
5304
  "input",
5303
5305
  {
5304
- ...N,
5306
+ ...g,
5305
5307
  type: "time",
5306
5308
  className: `input-field__input-container__input ${D()}`,
5307
5309
  name: r,
5308
- value: C,
5310
+ value: _,
5309
5311
  readOnly: !0,
5310
5312
  onBlur: I,
5311
5313
  onFocus: U,
5312
5314
  disabled: c,
5313
5315
  "aria-labelledby": x,
5314
- "aria-invalid": b,
5315
- "aria-describedby": b && d ? `${r}-error` : u ? `${r}-helper` : void 0
5316
+ "aria-invalid": k,
5317
+ "aria-describedby": k && d ? `${r}-error` : u ? `${r}-helper` : void 0
5316
5318
  }
5317
5319
  ),
5318
5320
  f && /* @__PURE__ */ e.jsx(
@@ -5327,7 +5329,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5327
5329
  ),
5328
5330
  /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__text-field-line" })
5329
5331
  ] }),
5330
- p && C && !c && /* @__PURE__ */ e.jsx("div", { className: `
5332
+ C && _ && !c && /* @__PURE__ */ e.jsx("div", { className: `
5331
5333
  input-field__icon-container
5332
5334
  input-field__icon-container_clear-btn
5333
5335
  `, onClick: H, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
@@ -5350,7 +5352,7 @@ function Qr(n, t, r, s, i) {
5350
5352
  return s + (i - s) * ((n - t) / (r - t));
5351
5353
  }
5352
5354
  const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5353
- const [r, s] = g(0), [i, l] = g(!1), a = Y(null), o = Y(null);
5355
+ const [r, s] = b(0), [i, l] = b(!1), a = Y(null), o = Y(null);
5354
5356
  V(() => {
5355
5357
  t.value ? s(t.value) : s(0);
5356
5358
  }, [t.value]);
@@ -5363,9 +5365,9 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5363
5365
  return Qr(h, x, f, 0, f - x) * (j.width - 20) / (f - x);
5364
5366
  }
5365
5367
  return 0;
5366
- }, u = k((h) => {
5368
+ }, u = y((h) => {
5367
5369
  l(!0), t.onFocus && t.onFocus(h);
5368
- }, [t.onFocus]), m = k((h) => {
5370
+ }, [t.onFocus]), m = y((h) => {
5369
5371
  l(!1), t.onBlur && t.onBlur(h);
5370
5372
  }, [t.onBlur]);
5371
5373
  return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
@@ -5384,24 +5386,24 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5384
5386
  t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
5385
5387
  a ? /* @__PURE__ */ e.jsx(ye, { styleType: a.styleType ?? "filled", style: a.style, className: a.className, onClick: a.onClick, children: a.text }) : null
5386
5388
  ] }), 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) => {
5388
- s({ ...r, [C]: N });
5389
- }, [s, r]), _ = k(() => {
5389
+ const [o, c] = b(""), [d, u] = b(""), [m, h] = b(!1), [x, f] = b(!0), j = y((g, _) => {
5390
+ s({ ...r, [_]: g });
5391
+ }, [s, r]), p = y(() => {
5390
5392
  u(""), c(""), h(!1);
5391
- }, []), p = k(() => {
5392
- let N = d;
5393
+ }, []), C = y(() => {
5394
+ let g = d;
5393
5395
  try {
5394
- a || (N = JSON.parse(N));
5396
+ a || (g = JSON.parse(g));
5395
5397
  } catch {
5396
5398
  }
5397
- _(), s({ ...r, [o]: N });
5398
- }, [r, s, o, d, _]), y = k((N) => {
5399
- let C = { ...r };
5400
- delete C[N], s(C);
5399
+ p(), s({ ...r, [o]: g });
5400
+ }, [r, s, o, d, p]), N = y((g) => {
5401
+ let _ = { ...r };
5402
+ delete _[g], s(_);
5401
5403
  }, [r, s]);
5402
5404
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5403
5405
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
5404
- /* @__PURE__ */ e.jsxs("span", { onClick: () => f((N) => !N), className: "json-element json-object-name json-object-header", children: [
5406
+ /* @__PURE__ */ e.jsxs("span", { onClick: () => f((g) => !g), className: "json-element json-object-name json-object-header", children: [
5405
5407
  t,
5406
5408
  ":",
5407
5409
  "{",
@@ -5410,14 +5412,14 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5410
5412
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5411
5413
  ] }),
5412
5414
  x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
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)
5415
+ (g, _) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => N(g), onChange: (S) => j(S, g), name: g, data: r[g] }) }, _)
5414
5416
  ) : null }) : null,
5415
5417
  m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
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 }) }),
5418
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "key", onChange: (g) => c(g.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5417
5419
  ":",
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 }) }),
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" })
5420
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (g) => u(g.target.value), className: "json-base-data-input", type: "text", value: d }) }),
5421
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: C, children: "save" }),
5422
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: p, children: "cancel" })
5421
5423
  ] }) : null,
5422
5424
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5423
5425
  "}",
@@ -5425,24 +5427,24 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5425
5427
  ] })
5426
5428
  ] }) });
5427
5429
  }, 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) => {
5429
- const N = r.slice();
5430
- N[y] = p, s(N);
5431
- }, [s, r]), f = k(() => {
5430
+ const [o, c] = b(""), [d, u] = b(!1), [m, h] = b(!0), x = y((C, N) => {
5431
+ const g = r.slice();
5432
+ g[N] = C, s(g);
5433
+ }, [s, r]), f = y(() => {
5432
5434
  c(""), u(!1);
5433
- }, []), j = k(() => {
5434
- let p = o;
5435
+ }, []), j = y(() => {
5436
+ let C = o;
5435
5437
  try {
5436
- a || (p = JSON.parse(p));
5438
+ a || (C = JSON.parse(C));
5437
5439
  } catch {
5438
5440
  }
5439
- f(), s([...r, p]);
5440
- }, [r, s, o, f]), _ = k((p) => {
5441
- s(r.filter((y, N) => N !== p));
5441
+ f(), s([...r, C]);
5442
+ }, [r, s, o, f]), p = y((C) => {
5443
+ s(r.filter((N, g) => g !== C));
5442
5444
  }, [r, s]);
5443
5445
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5444
5446
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
5445
- /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((p) => !p), children: [
5447
+ /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((C) => !C), children: [
5446
5448
  t,
5447
5449
  ":",
5448
5450
  "[",
@@ -5450,9 +5452,9 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5450
5452
  ] }),
5451
5453
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5452
5454
  ] }),
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,
5455
+ m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((C, N) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => p(N), onChange: (g) => x(g, N), name: String(N), data: C }) }, N)) }) : null,
5454
5456
  d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
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 }) }),
5457
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "value", onChange: (C) => c(C.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5456
5458
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: j, children: "save" }),
5457
5459
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: f, children: "cancel" })
5458
5460
  ] }) : null,
@@ -5462,7 +5464,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5462
5464
  ] })
5463
5465
  ] }) });
5464
5466
  }, ts = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
5465
- const l = k((a) => {
5467
+ const l = y((a) => {
5466
5468
  s(a.target.value);
5467
5469
  }, [s]);
5468
5470
  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: [
@@ -5476,11 +5478,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5476
5478
  };
5477
5479
  var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
5478
5480
  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) => {
5481
+ const [o, c] = b(r || void 0), [d, u] = b(""), m = y((f) => {
5480
5482
  n || (c(f), s && s(f));
5481
- }, [s]), h = k(() => {
5483
+ }, [s]), h = y(() => {
5482
5484
  n || (c(void 0), i && i());
5483
- }, [i]), x = k(() => {
5485
+ }, [i]), x = y(() => {
5484
5486
  if (n)
5485
5487
  return;
5486
5488
  let f = d;
@@ -5501,16 +5503,16 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5501
5503
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
5502
5504
  ] });
5503
5505
  }, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
5504
- const a = Y(null), [o, c] = g(""), [d, u] = g(!1), m = () => {
5506
+ const a = Y(null), [o, c] = b(""), [d, u] = b(!1), m = () => {
5505
5507
  a.current && (a.current.focus(), u(!0));
5506
5508
  }, h = () => {
5507
5509
  a.current && (a.current.focus(), a.current.value = ""), c(""), u(!0), i && r("");
5508
5510
  }, x = () => {
5509
5511
  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
+ }, f = (p) => {
5513
+ c(p.target.value), i && r(p.target.value);
5514
+ }, j = (p) => {
5515
+ p.code === "Enter" && r(o);
5514
5516
  };
5515
5517
  return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5516
5518
  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,
@@ -5567,18 +5569,18 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5567
5569
  onChangeFilter: l,
5568
5570
  border: a = !1
5569
5571
  }) => {
5570
- const o = Y(null), [c, d] = g(""), [u, m] = g(!1), [h, x] = g(null), f = () => {
5572
+ const o = Y(null), [c, d] = b(""), [u, m] = b(!1), [h, x] = b(null), f = () => {
5571
5573
  o.current && (o.current.focus(), m(!0));
5572
5574
  }, j = () => {
5573
5575
  o.current && (o.current.focus(), o.current.value = ""), d(""), m(!0), r && n("");
5574
- }, _ = () => {
5576
+ }, p = () => {
5575
5577
  j(), o.current && (o.current.blur(), m(!1));
5576
- }, p = (C) => {
5577
- d(C.target.value), r && n(C.target.value);
5578
- }, y = (C) => {
5579
- C.code === "Enter" && n(c);
5580
- }, N = (C) => {
5581
- const S = C.currentTarget.getBoundingClientRect();
5578
+ }, C = (_) => {
5579
+ d(_.target.value), r && n(_.target.value);
5580
+ }, N = (_) => {
5581
+ _.code === "Enter" && n(c);
5582
+ }, g = (_) => {
5583
+ const S = _.currentTarget.getBoundingClientRect();
5582
5584
  x({
5583
5585
  x: S.left,
5584
5586
  y: S.bottom
@@ -5587,14 +5589,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5587
5589
  };
5588
5590
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5589
5591
  /* @__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) }),
5592
+ u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: g, children: /* @__PURE__ */ e.jsx(On, {}) }),
5593
+ /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: o, onChange: C, onKeyDown: N, value: c, onFocus: () => m(!0) }),
5592
5594
  u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(tn, {}) })
5593
5595
  ] }) }),
5594
5596
  /* @__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 }) })
5595
5597
  ] });
5596
5598
  }, ss = ({ visible: n, text: t, option: r }) => {
5597
- const [s, i] = g(n), [l, a] = g(!1);
5599
+ const [s, i] = b(n), [l, a] = b(!1);
5598
5600
  V(() => {
5599
5601
  n ? (i(!0), setTimeout(() => a(!0), 10)) : (a(!1), setTimeout(() => i(!1), 300));
5600
5602
  }, [n]);
@@ -5630,19 +5632,19 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5630
5632
  onContextMenu: c,
5631
5633
  ...d
5632
5634
  }) => {
5633
- const u = Y(null), m = Y(null), [h, x] = g(!1), f = n === "heading" || n === "title" || n === "title-2", j = f ? "h3" : "span", _ = {
5635
+ const u = Y(null), m = Y(null), [h, x] = b(!1), f = n === "heading" || n === "title" || n === "title-2", j = f ? "h3" : "span", p = {
5634
5636
  fontSize: bn(n, t),
5635
5637
  fontWeight: kn(n, r),
5636
5638
  lineHeight: yn(n, s, t),
5637
5639
  ...a
5638
- }, p = f ? "typography-heading" : "typography-text", y = k(() => {
5640
+ }, C = f ? "typography-heading" : "typography-text", N = y(() => {
5639
5641
  if (!u.current || !m.current) return;
5640
- const N = u.current.clientWidth, C = m.current.scrollWidth;
5641
- x(N < C);
5642
+ const g = u.current.clientWidth, _ = m.current.scrollWidth;
5643
+ x(g < _);
5642
5644
  }, [l]);
5643
- return V(() => (y(), window.addEventListener("resize", y), () => {
5644
- window.removeEventListener("resize", y);
5645
- }), [y]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5645
+ return V(() => (N(), window.addEventListener("resize", N), () => {
5646
+ window.removeEventListener("resize", N);
5647
+ }), [N]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5646
5648
  /* @__PURE__ */ e.jsx(
5647
5649
  "div",
5648
5650
  {
@@ -5654,8 +5656,8 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5654
5656
  j,
5655
5657
  {
5656
5658
  ...d,
5657
- style: _,
5658
- className: `${p} ${i}`,
5659
+ style: p,
5660
+ className: `${C} ${i}`,
5659
5661
  children: h ? `| ${l} | ${l}` : l
5660
5662
  }
5661
5663
  )
@@ -5670,9 +5672,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5670
5672
  visibility: "hidden",
5671
5673
  height: "auto",
5672
5674
  whiteSpace: "nowrap",
5673
- ..._
5675
+ ...p
5674
5676
  },
5675
- className: `${p} ${i}`,
5677
+ className: `${C} ${i}`,
5676
5678
  children: l
5677
5679
  }
5678
5680
  )
@@ -5703,28 +5705,28 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5703
5705
  container: x = document.body,
5704
5706
  size: f = "medium",
5705
5707
  transparent: j,
5706
- helperText: _,
5707
- errorText: p,
5708
- disabled: y
5709
- }, N) => {
5710
- const [C, S] = g(""), [T, P] = g({ x: 0, y: 0, width: 100 }), [B, w] = g(!1), W = !!(u || p);
5708
+ helperText: p,
5709
+ errorText: C,
5710
+ disabled: N
5711
+ }, g) => {
5712
+ const [_, S] = b(""), [T, P] = b({ x: 0, y: 0, width: 100 }), [B, w] = b(!1), W = !!(u || C);
5711
5713
  V(() => {
5712
5714
  S(pn(s, l ?? ""));
5713
5715
  }, [l, s]);
5714
- const O = k((M) => {
5716
+ const O = y((M) => {
5715
5717
  S(pn(s, M)), i && i(M), w(!1);
5716
- }, [s, i]), A = k((M) => typeof M == "string" ? { title: M, onClick: () => O(M) } : { title: M.title, onClick: () => O(M.value), icon: M.icon, disabled: M.disabled }, [O]), b = k((M) => {
5717
- if (y) return;
5718
+ }, [s, i]), A = y((M) => typeof M == "string" ? { title: M, onClick: () => O(M) } : { title: M.title, onClick: () => O(M.value), icon: M.icon, disabled: M.disabled }, [O]), k = y((M) => {
5719
+ if (N) return;
5718
5720
  M.preventDefault();
5719
5721
  let E = Ye(M.currentTarget), U = (E == null ? void 0 : E.left) ?? M.pageX, I = E != null && E.top ? E.top + E.height : M.pageY;
5720
5722
  P({ x: U, y: I, width: (E == null ? void 0 : E.width) ?? 150 }), w(!0);
5721
- }, [s, A, y]), D = {
5723
+ }, [s, A, N]), D = {
5722
5724
  small: "input-field__text-field_small",
5723
5725
  medium: "input-field__text-field_medium",
5724
5726
  large: "input-field__text-field_large"
5725
5727
  };
5726
5728
  return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${o}`, children: [
5727
- /* @__PURE__ */ e.jsx("div", { ref: N, style: t, className: `
5729
+ /* @__PURE__ */ e.jsx("div", { ref: g, style: t, className: `
5728
5730
  input-field
5729
5731
  input-field__text-field
5730
5732
  ${D[f]}
@@ -5732,18 +5734,18 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5732
5734
  ${B ? "input-field_active" : ""}
5733
5735
  ${j ? "input-field_transparent" : ""}
5734
5736
  ${W ? "input-field_error" : ""}
5735
- ${y ? "input-field_disabled" : ""}
5736
- `, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: b, children: [
5737
+ ${N ? "input-field_disabled" : ""}
5738
+ `, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: k, children: [
5737
5739
  /* @__PURE__ */ e.jsx(
5738
5740
  "input",
5739
5741
  {
5740
5742
  ref: n,
5741
5743
  required: !0,
5742
- disabled: y,
5744
+ disabled: N,
5743
5745
  type: "text",
5744
5746
  className: `input-field__input-container__input ${u ? "input-field__input-container__input_error" : ""}`,
5745
5747
  name: d,
5746
- value: C,
5748
+ value: _,
5747
5749
  onFocus: h,
5748
5750
  onBlur: m,
5749
5751
  readOnly: !0
@@ -5751,15 +5753,15 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5751
5753
  ),
5752
5754
  /* @__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 })
5753
5755
  ] }) }),
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: _ }),
5756
+ W && C && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: C }),
5757
+ p && !W && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: p }),
5756
5758
  /* @__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 })
5757
5759
  ] });
5758
5760
  }
5759
5761
  );
5760
5762
  nt.displayName = "SelectField";
5761
5763
  const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, container: l = document.getElementById("root") }) => {
5762
- const [a, o] = g(!1), c = n.find((u) => u.id === t), d = (u) => {
5764
+ const [a, o] = b(!1), c = n.find((u) => u.id === t), d = (u) => {
5763
5765
  r == null || r(u), o(!1);
5764
5766
  };
5765
5767
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -5851,9 +5853,9 @@ const as = {
5851
5853
  }
5852
5854
  }, cs = Pe(as), ri = ({ children: n }) => {
5853
5855
  var a;
5854
- const [t, r] = g({ visible: !1, text: "" }), s = Y(null), i = k((o, c) => {
5856
+ const [t, r] = b({ visible: !1, text: "" }), s = Y(null), i = y((o, c) => {
5855
5857
  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));
5856
- }, []), l = k(() => {
5858
+ }, []), l = y(() => {
5857
5859
  s.current && (clearTimeout(s.current), s.current = null), r({ visible: !1, text: "" });
5858
5860
  }, []);
5859
5861
  return /* @__PURE__ */ e.jsxs(cs.Provider, { value: { showSnackbar: i, hideSnackbar: l }, children: [
@@ -5884,14 +5886,14 @@ function hs(n) {
5884
5886
  return typeof n == "boolean";
5885
5887
  }
5886
5888
  const fe = (n) => {
5887
- const { value: t, changeField: r, errors: s } = os(), i = k((c) => {
5889
+ const { value: t, changeField: r, errors: s } = os(), i = y((c) => {
5888
5890
  r && r(n, c);
5889
- }, [n]), l = k(() => {
5891
+ }, [n]), l = y(() => {
5890
5892
  const c = t == null ? void 0 : t[n];
5891
5893
  return hs(c) ? !!c : us(c) ? Number(c) : ds(c) ? c ?? "" : "";
5892
- }, [t, n]), a = k(() => {
5894
+ }, [t, n]), a = y(() => {
5893
5895
  r && r(n, "");
5894
- }, [n]), o = k(() => {
5896
+ }, [n]), o = y(() => {
5895
5897
  if (s && Object.keys(s).includes(n))
5896
5898
  return s[n];
5897
5899
  }, [s, n]);
@@ -5930,7 +5932,7 @@ const fe = (n) => {
5930
5932
  if (u.length > 0)
5931
5933
  return o && o(!0);
5932
5934
  o && o(!1);
5933
- }, d = k(() => a ? [n ?? l] : [], [a, l, n]);
5935
+ }, d = y(() => a ? [n ?? l] : [], [a, l, n]);
5934
5936
  return /* @__PURE__ */ e.jsx(
5935
5937
  Zn,
5936
5938
  {
@@ -5986,9 +5988,9 @@ const fe = (n) => {
5986
5988
  );
5987
5989
  }, bs = ve(
5988
5990
  function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: a, ...o }, c) {
5989
- const [d, u] = g(r), m = k((x) => {
5991
+ const [d, u] = b(r), m = y((x) => {
5990
5992
  x.preventDefault(), l == null || l(d);
5991
- }, [l, d]), h = k((x, f) => {
5993
+ }, [l, d]), h = y((x, f) => {
5992
5994
  u((j) => ({
5993
5995
  ...j,
5994
5996
  [x]: f