alex-evo-sh-ui-kit 1.1.87 → 1.1.91

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 ne, { useEffect as O, useState as g, useRef as Z, useCallback as k, createContext as Pe, useContext as _e, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
1
+ import ne, { useEffect as O, useState as g, useRef as Z, 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";
2
2
  import mt from "react-dom";
3
3
  import { NavLink as Qe } from "react-router-dom";
4
4
  import './index.css';var Je = { exports: {} }, Se = {};
@@ -46,17 +46,17 @@ var Me = {};
46
46
  var on;
47
47
  function ft() {
48
48
  return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
49
- function n(C) {
50
- if (C == null) return null;
51
- if (typeof C == "function")
52
- return C.$$typeof === D ? null : C.displayName || C.name || null;
53
- if (typeof C == "string") return C;
54
- switch (C) {
49
+ function n(_) {
50
+ if (_ == null) return null;
51
+ if (typeof _ == "function")
52
+ return _.$$typeof === D ? null : _.displayName || _.name || null;
53
+ if (typeof _ == "string") return _;
54
+ switch (_) {
55
55
  case j:
56
56
  return "Fragment";
57
57
  case b:
58
58
  return "Profiler";
59
- case _:
59
+ case C:
60
60
  return "StrictMode";
61
61
  case F:
62
62
  return "Suspense";
@@ -65,141 +65,141 @@ function ft() {
65
65
  case z:
66
66
  return "Activity";
67
67
  }
68
- if (typeof C == "object")
69
- switch (typeof C.tag == "number" && console.error(
68
+ if (typeof _ == "object")
69
+ switch (typeof _.tag == "number" && console.error(
70
70
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
71
- ), C.$$typeof) {
71
+ ), _.$$typeof) {
72
72
  case f:
73
73
  return "Portal";
74
74
  case v:
75
- return C.displayName || "Context";
75
+ return _.displayName || "Context";
76
76
  case y:
77
- return (C._context.displayName || "Context") + ".Consumer";
77
+ return (_._context.displayName || "Context") + ".Consumer";
78
78
  case M:
79
- var $ = C.render;
80
- return C = C.displayName, C || (C = $.displayName || $.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
79
+ var $ = _.render;
80
+ return _ = _.displayName, _ || (_ = $.displayName || $.name || "", _ = _ !== "" ? "ForwardRef(" + _ + ")" : "ForwardRef"), _;
81
81
  case A:
82
- return $ = C.displayName || null, $ !== null ? $ : n(C.type) || "Memo";
82
+ return $ = _.displayName || null, $ !== null ? $ : n(_.type) || "Memo";
83
83
  case w:
84
- $ = C._payload, C = C._init;
84
+ $ = _._payload, _ = _._init;
85
85
  try {
86
- return n(C($));
86
+ return n(_($));
87
87
  } catch {
88
88
  }
89
89
  }
90
90
  return null;
91
91
  }
92
- function t(C) {
93
- return "" + C;
92
+ function t(_) {
93
+ return "" + _;
94
94
  }
95
- function r(C) {
95
+ function r(_) {
96
96
  try {
97
- t(C);
97
+ t(_);
98
98
  var $ = !1;
99
99
  } catch {
100
100
  $ = !0;
101
101
  }
102
102
  if ($) {
103
103
  $ = console;
104
- var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
104
+ var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag && _[Symbol.toStringTag] || _.constructor.name || "Object";
105
105
  return H.call(
106
106
  $,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
108
  K
109
- ), t(C);
109
+ ), t(_);
110
110
  }
111
111
  }
112
- function s(C) {
113
- if (C === j) return "<>";
114
- if (typeof C == "object" && C !== null && C.$$typeof === w)
112
+ function s(_) {
113
+ if (_ === j) return "<>";
114
+ if (typeof _ == "object" && _ !== null && _.$$typeof === w)
115
115
  return "<...>";
116
116
  try {
117
- var $ = n(C);
117
+ var $ = n(_);
118
118
  return $ ? "<" + $ + ">" : "<...>";
119
119
  } catch {
120
120
  return "<...>";
121
121
  }
122
122
  }
123
123
  function i() {
124
- var C = E.A;
125
- return C === null ? null : C.getOwner();
124
+ var _ = E.A;
125
+ return _ === null ? null : _.getOwner();
126
126
  }
127
127
  function l() {
128
128
  return Error("react-stack-top-frame");
129
129
  }
130
- function o(C) {
131
- if (N.call(C, "key")) {
132
- var $ = Object.getOwnPropertyDescriptor(C, "key").get;
130
+ function o(_) {
131
+ if (N.call(_, "key")) {
132
+ var $ = Object.getOwnPropertyDescriptor(_, "key").get;
133
133
  if ($ && $.isReactWarning) return !1;
134
134
  }
135
- return C.key !== void 0;
135
+ return _.key !== void 0;
136
136
  }
137
- function c(C, $) {
137
+ function c(_, $) {
138
138
  function H() {
139
139
  L || (L = !0, console.error(
140
140
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
141
141
  $
142
142
  ));
143
143
  }
144
- H.isReactWarning = !0, Object.defineProperty(C, "key", {
144
+ H.isReactWarning = !0, Object.defineProperty(_, "key", {
145
145
  get: H,
146
146
  configurable: !0
147
147
  });
148
148
  }
149
149
  function a() {
150
- var C = n(this.type);
151
- return T[C] || (T[C] = !0, console.error(
150
+ var _ = n(this.type);
151
+ return T[_] || (T[_] = !0, console.error(
152
152
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
153
- )), C = this.props.ref, C !== void 0 ? C : null;
153
+ )), _ = this.props.ref, _ !== void 0 ? _ : null;
154
154
  }
155
- function d(C, $, H, K, J, te) {
155
+ function d(_, $, H, K, J, te) {
156
156
  var Q = H.ref;
157
- return C = {
157
+ return _ = {
158
158
  $$typeof: p,
159
- type: C,
159
+ type: _,
160
160
  key: $,
161
161
  props: H,
162
162
  _owner: K
163
- }, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(C, "ref", {
163
+ }, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(_, "ref", {
164
164
  enumerable: !1,
165
165
  get: a
166
- }) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
166
+ }) : Object.defineProperty(_, "ref", { enumerable: !1, value: null }), _._store = {}, Object.defineProperty(_._store, "validated", {
167
167
  configurable: !1,
168
168
  enumerable: !1,
169
169
  writable: !0,
170
170
  value: 0
171
- }), Object.defineProperty(C, "_debugInfo", {
171
+ }), Object.defineProperty(_, "_debugInfo", {
172
172
  configurable: !1,
173
173
  enumerable: !1,
174
174
  writable: !0,
175
175
  value: null
176
- }), Object.defineProperty(C, "_debugStack", {
176
+ }), Object.defineProperty(_, "_debugStack", {
177
177
  configurable: !1,
178
178
  enumerable: !1,
179
179
  writable: !0,
180
180
  value: J
181
- }), Object.defineProperty(C, "_debugTask", {
181
+ }), Object.defineProperty(_, "_debugTask", {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
185
  value: te
186
- }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
186
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
187
187
  }
188
- function u(C, $, H, K, J, te) {
188
+ function u(_, $, H, K, J, te) {
189
189
  var Q = $.children;
190
190
  if (Q !== void 0)
191
191
  if (K)
192
192
  if (I(Q)) {
193
193
  for (K = 0; K < Q.length; K++)
194
- m(Q[K]);
194
+ x(Q[K]);
195
195
  Object.freeze && Object.freeze(Q);
196
196
  } else
197
197
  console.error(
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
- else m(Q);
200
+ else x(Q);
201
201
  if (N.call($, "key")) {
202
- Q = n(C);
202
+ Q = n(_);
203
203
  var ie = Object.keys($).filter(function(W) {
204
204
  return W !== "key";
205
205
  });
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
223
223
  } else H = $;
224
224
  return Q && c(
225
225
  H,
226
- typeof C == "function" ? C.displayName || C.name || "Unknown" : C
226
+ typeof _ == "function" ? _.displayName || _.name || "Unknown" : _
227
227
  ), d(
228
- C,
228
+ _,
229
229
  Q,
230
230
  H,
231
231
  i(),
@@ -233,50 +233,50 @@ React keys must be passed directly to JSX without using spread:
233
233
  te
234
234
  );
235
235
  }
236
- function m(C) {
237
- h(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === w && (C._payload.status === "fulfilled" ? h(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
236
+ function x(_) {
237
+ h(_) ? _._store && (_._store.validated = 1) : typeof _ == "object" && _ !== null && _.$$typeof === w && (_._payload.status === "fulfilled" ? h(_._payload.value) && _._payload.value._store && (_._payload.value._store.validated = 1) : _._store && (_._store.validated = 1));
238
238
  }
239
- function h(C) {
240
- return typeof C == "object" && C !== null && C.$$typeof === p;
239
+ function h(_) {
240
+ return typeof _ == "object" && _ !== null && _.$$typeof === p;
241
241
  }
242
- var x = ne, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), z = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), E = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, I = Array.isArray, S = console.createTask ? console.createTask : function() {
242
+ var m = ne, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), z = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), E = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, I = Array.isArray, S = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
- x = {
246
- react_stack_bottom_frame: function(C) {
247
- return C();
245
+ m = {
246
+ react_stack_bottom_frame: function(_) {
247
+ return _();
248
248
  }
249
249
  };
250
- var L, T = {}, Y = x.react_stack_bottom_frame.bind(
251
- x,
250
+ var L, T = {}, Y = m.react_stack_bottom_frame.bind(
251
+ m,
252
252
  l
253
253
  )(), q = S(s(l)), G = {};
254
- Me.Fragment = j, Me.jsx = function(C, $, H) {
254
+ Me.Fragment = j, Me.jsx = function(_, $, H) {
255
255
  var K = 1e4 > E.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
- C,
257
+ _,
258
258
  $,
259
259
  H,
260
260
  !1,
261
261
  K ? Error("react-stack-top-frame") : Y,
262
- K ? S(s(C)) : q
262
+ K ? S(s(_)) : q
263
263
  );
264
- }, Me.jsxs = function(C, $, H) {
264
+ }, Me.jsxs = function(_, $, H) {
265
265
  var K = 1e4 > E.recentlyCreatedOwnerStacks++;
266
266
  return u(
267
- C,
267
+ _,
268
268
  $,
269
269
  H,
270
270
  !0,
271
271
  K ? Error("react-stack-top-frame") : Y,
272
- K ? S(s(C)) : q
272
+ K ? S(s(_)) : q
273
273
  );
274
274
  };
275
275
  }()), Me;
276
276
  }
277
277
  process.env.NODE_ENV === "production" ? Je.exports = xt() : Je.exports = ft();
278
278
  var e = Je.exports;
279
- const Cn = (n) => /* @__PURE__ */ e.jsx(
279
+ const _n = (n) => /* @__PURE__ */ e.jsx(
280
280
  Fe,
281
281
  {
282
282
  ...n,
@@ -315,7 +315,7 @@ const Cn = (n) => /* @__PURE__ */ e.jsx(
315
315
  large: "btn--large"
316
316
  };
317
317
  return /* @__PURE__ */ e.jsx("button", { ...t, className: (t.className ?? "") + " btn " + s[n], onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: t.children }) });
318
- }, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(Cn, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(ce, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(jt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(pt, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), _n = (n, t) => {
318
+ }, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(_n, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(ce, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(jt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(pt, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), Cn = (n, t) => {
319
319
  O(() => {
320
320
  if (n) {
321
321
  const r = window.innerWidth - document.documentElement.clientWidth;
@@ -365,13 +365,13 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
365
365
  window.innerHeight - h.clientY + 20 <= 150 && c(), o.current && (o.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
366
366
  }, u = () => {
367
367
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
368
- }, m = () => {
368
+ }, x = () => {
369
369
  document.body.addEventListener("mousemove", d), document.body.addEventListener("mouseup", u);
370
370
  };
371
371
  return O(() => () => {
372
372
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
373
373
  }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: c, children: /* @__PURE__ */ e.jsxs("div", { ref: o, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
374
- /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: m, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
374
+ /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: x, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
375
375
  /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
376
376
  ] }) });
377
377
  }, gn = {
@@ -381,7 +381,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
381
381
  }, bn = (n, t = ee.STANDART) => `var(--${n}-${gn[t]})`, kn = (n, t = "standart") => `var(--${n}-${t})`, yn = (n, t = "normal", r = ee.STANDART) => `var(--${n}-heights-${gn[r]}-${t})`, ge = {
382
382
  mobileSize: 720,
383
383
  bigSize: 1400
384
- }, Ct = (n = {}) => {
384
+ }, _t = (n = {}) => {
385
385
  const t = {
386
386
  bigSize: n.bigSize ?? ge.bigSize,
387
387
  mobileSize: n.mobileSize ?? ge.mobileSize
@@ -395,10 +395,10 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
395
395
  }, [i]), O(() => (window.addEventListener("resize", i), () => {
396
396
  window.removeEventListener("resize", i);
397
397
  }), [i]), { screen: r };
398
- }, _t = {
398
+ }, Ct = {
399
399
  screen: ee.STANDART
400
- }, we = Pe(_t), ws = ({ children: n, option: t }) => {
401
- const r = Ct(t);
400
+ }, we = Pe(Ct), ws = ({ children: n, option: t }) => {
401
+ const r = _t(t);
402
402
  return /* @__PURE__ */ e.jsx(we.Provider, { value: r, children: n });
403
403
  }, U = ({
404
404
  type: n,
@@ -410,18 +410,18 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
410
410
  className: o = "",
411
411
  ...c
412
412
  }) => {
413
- const a = _e(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
413
+ const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", x = u ? "h3" : "span", h = {
414
414
  fontSize: bn(n, d),
415
415
  fontWeight: kn(n, r),
416
416
  lineHeight: yn(n, s, d),
417
417
  ...l
418
- }, x = u ? "typography-heading" : "typography-text";
418
+ }, m = u ? "typography-heading" : "typography-text";
419
419
  return /* @__PURE__ */ e.jsx(
420
- m,
420
+ x,
421
421
  {
422
422
  ...c,
423
423
  style: h,
424
- className: `${x} ${o}`,
424
+ className: `${m} ${o}`,
425
425
  children: i
426
426
  }
427
427
  );
@@ -437,33 +437,34 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
437
437
  disabled: c = !1,
438
438
  style: a,
439
439
  rippleDisabled: d = !1,
440
- ...u
441
- }, m) => {
442
- const h = k(
443
- (p) => {
444
- c || (l == null || l(p), !d && x(p));
440
+ shadow: u = 0,
441
+ ...x
442
+ }, h) => {
443
+ const m = k(
444
+ (f) => {
445
+ c || (l == null || l(f), !d && p(f));
445
446
  },
446
447
  [l, c]
447
- ), x = (p) => {
448
- const f = p.currentTarget, j = document.createElement("span"), _ = Math.max(f.clientWidth, f.clientHeight), b = _ / 2;
449
- j.style.width = j.style.height = `${_}px`, j.style.left = `${p.clientX - f.getBoundingClientRect().left - b}px`, j.style.top = `${p.clientY - f.getBoundingClientRect().top - b}px`, j.classList.add("iconbutton-ripple");
450
- const y = f.getElementsByClassName("iconbutton-ripple")[0];
451
- y && y.remove(), f.appendChild(j);
448
+ ), p = (f) => {
449
+ const j = f.currentTarget, C = document.createElement("span"), b = Math.max(j.clientWidth, j.clientHeight), y = b / 2;
450
+ C.style.width = C.style.height = `${b}px`, C.style.left = `${f.clientX - j.getBoundingClientRect().left - y}px`, C.style.top = `${f.clientY - j.getBoundingClientRect().top - y}px`, C.classList.add("iconbutton-ripple");
451
+ const v = j.getElementsByClassName("iconbutton-ripple")[0];
452
+ v && v.remove(), j.appendChild(C);
452
453
  };
453
454
  return /* @__PURE__ */ e.jsx(
454
455
  "button",
455
456
  {
456
- ref: m,
457
+ ref: h,
457
458
  style: {
458
459
  backgroundColor: s ? "transparent" : void 0,
459
460
  ...a
460
461
  },
461
- className: `iconbutton iconbutton--${i} ${t}`,
462
- onClick: h,
462
+ className: `iconbutton iconbutton--${i} ${t} container_shadow-hover-${u}`,
463
+ onClick: m,
463
464
  onContextMenu: o,
464
465
  disabled: c,
465
466
  "aria-disabled": c,
466
- ...u,
467
+ ...x,
467
468
  children: /* @__PURE__ */ e.jsx("div", { className: `iconbutton-container ${r}`, children: n })
468
469
  }
469
470
  );
@@ -1790,11 +1791,11 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1790
1791
  marginBottom: a,
1791
1792
  maxWidth: d = "560px",
1792
1793
  showCloseButton: u = !1,
1793
- ariaLabel: m
1794
+ ariaLabel: x
1794
1795
  }) => {
1795
1796
  const h = () => {
1796
1797
  i && i();
1797
- }, x = {
1798
+ }, m = {
1798
1799
  ...l,
1799
1800
  marginBottom: a,
1800
1801
  maxWidth: typeof d == "number" ? `${d}px` : d
@@ -1807,11 +1808,11 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1807
1808
  children: /* @__PURE__ */ e.jsxs(
1808
1809
  "div",
1809
1810
  {
1810
- style: x,
1811
+ style: m,
1811
1812
  className: `${o ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
1812
1813
  role: "dialog",
1813
1814
  "aria-modal": "true",
1814
- "aria-label": m || r,
1815
+ "aria-label": x || r,
1815
1816
  children: [
1816
1817
  r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
1817
1818
  /* @__PURE__ */ e.jsx(U, { type: "heading", children: r }),
@@ -1838,8 +1839,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1838
1839
  forceModal: r = !1,
1839
1840
  ...s
1840
1841
  }) => {
1841
- const { screen: i } = _e(we);
1842
- _n(!0, document.body);
1842
+ const { screen: i } = Ce(we);
1843
+ Cn(!0, document.body);
1843
1844
  const l = () => {
1844
1845
  var c;
1845
1846
  (c = s.onHide) == null || c.call(s);
@@ -1897,13 +1898,13 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1897
1898
  children: a,
1898
1899
  disableDefaultButtons: d = !1,
1899
1900
  customActions: u,
1900
- btns: m
1901
+ btns: x
1901
1902
  }) => {
1902
1903
  const h = k(() => {
1903
1904
  l == null || l(), c == null || c();
1904
- }, [l, c]), x = k(() => {
1905
+ }, [l, c]), m = k(() => {
1905
1906
  o == null || o(), c == null || c();
1906
- }, [o, c]), p = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1907
+ }, [o, c]), p = k(() => u || (d ? null : x ? /* @__PURE__ */ e.jsx(ze, { onHide: m, onSuccess: h, btns: x }) : /* @__PURE__ */ e.jsx(ze, { onHide: m, onSuccess: h, btns: [
1907
1908
  {
1908
1909
  text: i,
1909
1910
  hide: !0,
@@ -1913,13 +1914,13 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1913
1914
  text: s ?? "OK",
1914
1915
  success: !0
1915
1916
  }
1916
- ] })), [u, d, x, h, s, i]);
1917
+ ] })), [u, d, m, h, s, i]);
1917
1918
  return /* @__PURE__ */ e.jsxs(
1918
1919
  Ee,
1919
1920
  {
1920
1921
  style: n,
1921
1922
  header: r,
1922
- onHide: x,
1923
+ onHide: m,
1923
1924
  action: p(),
1924
1925
  children: [
1925
1926
  t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
@@ -1927,14 +1928,14 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1927
1928
  ]
1928
1929
  }
1929
1930
  );
1930
- }, Ce = ({ children: n, container: t = document.body }) => t ? mt.createPortal(
1931
+ }, _e = ({ children: n, container: t = document.body }) => t ? mt.createPortal(
1931
1932
  n,
1932
1933
  t
1933
1934
  ) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
1934
1935
  const [o, c] = g(null);
1935
1936
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1936
1937
  /* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: c }),
1937
- o !== null && /* @__PURE__ */ e.jsx(Ce, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(o), onHide: () => c(null) }) })
1938
+ o !== null && /* @__PURE__ */ e.jsx(_e, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(o), onHide: () => c(null) }) })
1938
1939
  ] });
1939
1940
  }, cn = ({
1940
1941
  text: n,
@@ -1949,12 +1950,12 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1949
1950
  if (!l) {
1950
1951
  try {
1951
1952
  await navigator.clipboard.writeText(n), a(!0), setTimeout(() => a(!1), r);
1952
- } catch (x) {
1953
- console.error("Не удалось скопировать текст", x);
1953
+ } catch (m) {
1954
+ console.error("Не удалось скопировать текст", m);
1954
1955
  }
1955
1956
  i == null || i(h);
1956
1957
  }
1957
- }, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }), m = c ? "Скопировано!" : "Копировать";
1958
+ }, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }), x = c ? "Скопировано!" : "Копировать";
1958
1959
  return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
1959
1960
  /* @__PURE__ */ e.jsx(
1960
1961
  de,
@@ -1962,19 +1963,19 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
1962
1963
  icon: u,
1963
1964
  onClick: d,
1964
1965
  disabled: l,
1965
- "aria-label": `${m} ${n}`,
1966
+ "aria-label": `${x} ${n}`,
1966
1967
  className: s,
1967
1968
  ...o
1968
1969
  }
1969
1970
  ),
1970
- /* @__PURE__ */ e.jsx(U, { type: "body", "aria-live": "polite", children: m })
1971
+ /* @__PURE__ */ e.jsx(U, { type: "body", "aria-live": "polite", children: x })
1971
1972
  ] }) : /* @__PURE__ */ e.jsx(
1972
1973
  de,
1973
1974
  {
1974
1975
  icon: u,
1975
1976
  onClick: d,
1976
1977
  disabled: l,
1977
- "aria-label": `${m} ${n}`,
1978
+ "aria-label": `${x} ${n}`,
1978
1979
  className: s,
1979
1980
  ...o
1980
1981
  }
@@ -2112,15 +2113,15 @@ const qt = Ne, Jt = (n) => {
2112
2113
  function Dn(n, t, r) {
2113
2114
  if (n === 0) return r ?? "#e0e0e0";
2114
2115
  if (n === 1) return t;
2115
- const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, o = (s == null ? void 0 : s.b) ?? 224, c = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (c - i)), m = Math.round(l + n * (a - l)), h = Math.round(o + n * (d - o));
2116
- return `rgb(${u}, ${m}, ${h})`;
2116
+ const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, o = (s == null ? void 0 : s.b) ?? 224, c = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (c - i)), x = Math.round(l + n * (a - l)), h = Math.round(o + n * (d - o));
2117
+ return `rgb(${u}, ${x}, ${h})`;
2117
2118
  }
2118
2119
  const ae = (n, t, r = "", s) => {
2119
- let i, l, o, c, a, d, u, m = Math.round, h = typeof r == "string";
2120
+ let i, l, o, c, a, d, u, x = Math.round, h = typeof r == "string";
2120
2121
  if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, a = ae.pSBCr(t), c = n < 0, d = r && typeof r == "string" && r != "c" ? ae.pSBCr(r) : c ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = c ? n * -1 : n, c = 1 - n, !a || !d)) return null;
2121
- s ? (i = m(c * (a.r ?? 0) + n * (d.r ?? 0)), l = m(c * (a.g ?? 0) + n * (d.g ?? 0)), o = m(c * (a.b ?? 0) + n * (d.b ?? 0))) : (i = m((c * (a.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = m((c * (a.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), o = m((c * (a.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
2122
- let x = a.a ?? 1;
2123
- return d = d.a ?? 1, a = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * c + d * n : 0, u ? "rgb" + (a ? "a(" : "(") + i + "," + l + "," + o + (a ? "," + m(x * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + o * 256 + (a ? m(x * 255) : 0)).toString(16).slice(1, a ? void 0 : -2);
2122
+ s ? (i = x(c * (a.r ?? 0) + n * (d.r ?? 0)), l = x(c * (a.g ?? 0) + n * (d.g ?? 0)), o = x(c * (a.b ?? 0) + n * (d.b ?? 0))) : (i = x((c * (a.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = x((c * (a.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), o = x((c * (a.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
2123
+ let m = a.a ?? 1;
2124
+ return d = d.a ?? 1, a = m >= 0 || d >= 0, m = m >= 0 || d >= 0 ? m < 0 ? d : d < 0 ? m : m * c + d * n : 0, u ? "rgb" + (a ? "a(" : "(") + i + "," + l + "," + o + (a ? "," + x(m * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + o * 256 + (a ? x(m * 255) : 0)).toString(16).slice(1, a ? void 0 : -2);
2124
2125
  };
2125
2126
  ae.pSBCr = (n) => {
2126
2127
  const t = parseInt;
@@ -2251,9 +2252,9 @@ function er(n, t = !1) {
2251
2252
  (a, d) => {
2252
2253
  const u = Qt[a];
2253
2254
  if (!u) return;
2254
- const m = u(d, i);
2255
- s((h) => ({ ...h, ...m })), Object.entries(m).forEach(([h, x]) => {
2256
- document.body.style.setProperty(`--${h.replace(/_/g, "-")}`, x);
2255
+ const x = u(d, i);
2256
+ s((h) => ({ ...h, ...x })), Object.entries(x).forEach(([h, m]) => {
2257
+ document.body.style.setProperty(`--${h.replace(/_/g, "-")}`, m);
2257
2258
  });
2258
2259
  },
2259
2260
  [i]
@@ -2308,11 +2309,11 @@ function rr(n = "light") {
2308
2309
  const [t, r] = g(
2309
2310
  Xe
2310
2311
  ), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a = k(
2311
- (x) => {
2312
- const p = t[x].colors;
2312
+ (m) => {
2313
+ const p = t[m].colors;
2313
2314
  p && (Object.entries(p).forEach(([f, j]) => {
2314
2315
  o(f, j);
2315
- }), c(t[x].reverse ?? !1), i(x));
2316
+ }), c(t[m].reverse ?? !1), i(m));
2316
2317
  },
2317
2318
  [t, o]
2318
2319
  );
@@ -2320,31 +2321,31 @@ function rr(n = "light") {
2320
2321
  a(s);
2321
2322
  }, [s, a]);
2322
2323
  const d = k(
2323
- (x, p, f) => {
2324
+ (m, p, f) => {
2324
2325
  r((j) => ({
2325
2326
  ...j,
2326
- [x]: {
2327
- colors: { ...j[x].colors, [p]: f },
2328
- reverse: j[x].reverse
2327
+ [m]: {
2328
+ colors: { ...j[m].colors, [p]: f },
2329
+ reverse: j[m].reverse
2329
2330
  }
2330
2331
  }));
2331
2332
  },
2332
2333
  []
2333
- ), u = k((x, p = "light", f) => {
2334
+ ), u = k((m, p = "light", f) => {
2334
2335
  r((j) => ({
2335
2336
  ...j,
2336
- [x]: { colors: j[p].colors, reverse: f === void 0 ? j[p].reverse : f }
2337
+ [m]: { colors: j[p].colors, reverse: f === void 0 ? j[p].reverse : f }
2337
2338
  }));
2338
- }, []), m = k((x) => {
2339
+ }, []), x = k((m) => {
2339
2340
  r((p) => {
2340
2341
  const f = { ...p };
2341
- return delete f[x], f;
2342
- }), s === x && i("light");
2342
+ return delete f[m], f;
2343
+ }), s === m && i("light");
2343
2344
  }, [s]), h = k(
2344
- (x) => {
2345
- Xe[x] && r((p) => ({
2345
+ (m) => {
2346
+ Xe[m] && r((p) => ({
2346
2347
  ...p,
2347
- [x]: { ...Xe[x] }
2348
+ [m]: { ...Xe[m] }
2348
2349
  }));
2349
2350
  },
2350
2351
  []
@@ -2356,7 +2357,7 @@ function rr(n = "light") {
2356
2357
  setActiveTheme: a,
2357
2358
  updateThemeColor: d,
2358
2359
  createTheme: u,
2359
- deleteTheme: m,
2360
+ deleteTheme: x,
2360
2361
  resetTheme: h
2361
2362
  };
2362
2363
  }
@@ -2385,24 +2386,24 @@ const $e = () => {
2385
2386
  orientation: a = "horizontal",
2386
2387
  styleTrack: d = "base",
2387
2388
  showValue: u = !0,
2388
- valueDisplayDuration: m = 2e3,
2389
+ valueDisplayDuration: x = 2e3,
2389
2390
  ariaLabel: h = "Регулятор значения",
2390
- startColor: x,
2391
+ startColor: m,
2391
2392
  className: p = "",
2392
2393
  ...f
2393
2394
  }) => {
2394
- const j = Z(null), _ = Z(null), [b, y] = g(c ?? s), [v, M] = g("200px"), { colors: F } = _e(sn), { showPopup: B, popupState: A } = Kt({ valueDisplayDuration: m }), w = n ?? F.Primary_color ?? "#0000ff";
2395
+ const j = Z(null), C = Z(null), [b, y] = g(c ?? s), [v, M] = g("200px"), { colors: F } = Ce(sn), { showPopup: B, popupState: A } = Kt({ valueDisplayDuration: x }), w = n ?? F.Primary_color ?? "#0000ff";
2395
2396
  O(() => {
2396
2397
  var L;
2397
- if (a === "vertical" && ((L = _.current) != null && L.parentElement)) {
2398
+ if (a === "vertical" && ((L = C.current) != null && L.parentElement)) {
2398
2399
  const T = () => {
2399
- var G, C;
2400
- const q = (C = (G = _.current) == null ? void 0 : G.parentElement) == null ? void 0 : C.clientHeight;
2400
+ var G, _;
2401
+ const q = (_ = (G = C.current) == null ? void 0 : G.parentElement) == null ? void 0 : _.clientHeight;
2401
2402
  q && M(`${q}px`);
2402
2403
  };
2403
2404
  T();
2404
2405
  const Y = new ResizeObserver(T);
2405
- return _.current.parentElement && Y.observe(_.current.parentElement), () => Y.disconnect();
2406
+ return C.current.parentElement && Y.observe(C.current.parentElement), () => Y.disconnect();
2406
2407
  }
2407
2408
  }, [a]), O(() => {
2408
2409
  c !== void 0 && (y(c), z());
@@ -2418,7 +2419,7 @@ const $e = () => {
2418
2419
  ), N = oe(() => ({
2419
2420
  ...f.style,
2420
2421
  [a === "vertical" ? "height" : "width"]: `${E}%`,
2421
- background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(E / 100, w, x)
2422
+ background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(E / 100, w, m)
2422
2423
  }), [E, w, f.style, a, d]), I = oe(() => a === "vertical" ? {
2423
2424
  "--range-width": o,
2424
2425
  "--point-width": d === "point" ? o : "6px",
@@ -2443,7 +2444,7 @@ const $e = () => {
2443
2444
  return /* @__PURE__ */ e.jsxs(
2444
2445
  "div",
2445
2446
  {
2446
- ref: _,
2447
+ ref: C,
2447
2448
  className: `range-wrapper ${a} ${p}`,
2448
2449
  style: I,
2449
2450
  children: [
@@ -2489,23 +2490,23 @@ const $e = () => {
2489
2490
  strokeWidth: a = 20,
2490
2491
  radius: d = 100,
2491
2492
  colorBg: u = "var(--Surface-container-color)",
2492
- colorRange: m,
2493
+ colorRange: x,
2493
2494
  pointColor: h,
2494
- showBase: x = !0,
2495
+ showBase: m = !0,
2495
2496
  showIndicator: p = !0,
2496
2497
  showPoint: f = !1,
2497
2498
  rounding: j = !0,
2498
- showValue: _ = !0,
2499
+ showValue: C = !0,
2499
2500
  style: b,
2500
2501
  children: y,
2501
2502
  className: v,
2502
2503
  startColor: M
2503
2504
  }) => {
2504
- const F = Z(null), B = Z(!1), A = d * 2, w = d * 2, z = Math.min(A, w), D = A / 2, E = w / 2, N = z / 2 - a / 2, I = c === "point" ? !1 : p, S = c === "point" ? !0 : f, { colors: L } = _e(sn), T = m ?? L.Primary_color ?? "#0000ff", Y = h ?? L.Primary_color ?? "#0000ff", [q, G] = g(r);
2505
+ const F = Z(null), B = Z(!1), A = d * 2, w = d * 2, z = Math.min(A, w), D = A / 2, E = w / 2, N = z / 2 - a / 2, I = c === "point" ? !1 : p, S = c === "point" ? !0 : f, { colors: L } = Ce(sn), T = x ?? L.Primary_color ?? "#0000ff", Y = h ?? L.Primary_color ?? "#0000ff", [q, G] = g(r);
2505
2506
  O(() => {
2506
2507
  r !== void 0 && G(r);
2507
2508
  }, [r]);
2508
- const C = k(() => {
2509
+ const _ = k(() => {
2509
2510
  switch (o) {
2510
2511
  case "semicircle":
2511
2512
  return 180;
@@ -2520,7 +2521,7 @@ const $e = () => {
2520
2521
  ), K = k(() => {
2521
2522
  if (!F.current) return;
2522
2523
  const [W, he] = $(), je = (q - n) * he / (t - n);
2523
- if (x) {
2524
+ if (m) {
2524
2525
  const X = F.current.querySelector('[data-el="base"]');
2525
2526
  X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = j ? "round" : "", X.style.strokeDashoffset = W.toString(), X.style.strokeDasharray = `${he}, ${N * Math.PI * 2 - he}`);
2526
2527
  }
@@ -2538,7 +2539,7 @@ const $e = () => {
2538
2539
  me !== null && (me < H - 2 || me > H + 2) ? X.style.transition = ".3s" : X.style.transition = B.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = Y, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = "round", q === t && o === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (W - je).toString(), X.style.strokeDasharray = `0, ${N * Math.PI * 2}`;
2539
2540
  }
2540
2541
  }
2541
- }, [q, $, t, n, N, a, u, T, Y, x, I, S, j, H, M]), J = (W) => {
2542
+ }, [q, $, t, n, N, a, u, T, Y, m, I, S, j, H, M]), J = (W) => {
2542
2543
  B.current = !0, document.addEventListener("mousemove", te), document.addEventListener("mouseup", Q), ie(W);
2543
2544
  }, te = (W) => {
2544
2545
  W.preventDefault(), B.current && ie(W);
@@ -2546,12 +2547,12 @@ const $e = () => {
2546
2547
  B.current = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
2547
2548
  }, ie = k((W) => {
2548
2549
  if (!F.current) return;
2549
- const he = C(), je = F.current.getBoundingClientRect(), X = je.left + je.width / 2, me = je.top + je.height / 2, st = W.clientX, it = W.clientY, lt = me - it, at = X - st;
2550
+ const he = _(), je = F.current.getBoundingClientRect(), X = je.left + je.width / 2, me = je.top + je.height / 2, st = W.clientX, it = W.clientY, lt = me - it, at = X - st;
2550
2551
  let le = Math.atan2(lt, at) * (180 / Math.PI);
2551
2552
  he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he && q > (t - n) / 2 ? le = he : le > he && (le = 0);
2552
2553
  const ot = he, ct = t - n, Ue = Math.round(le * ct / ot + n);
2553
2554
  G(Ue), Ue !== r && s && s(Ue);
2554
- }, [C, s, t, n, D, E, q]);
2555
+ }, [_, s, t, n, D, E, q]);
2555
2556
  O(() => {
2556
2557
  K();
2557
2558
  }, [K]), O(() => () => {
@@ -2569,7 +2570,7 @@ const $e = () => {
2569
2570
  height: "100%",
2570
2571
  onMouseDown: J,
2571
2572
  children: [
2572
- x && /* @__PURE__ */ e.jsx(
2573
+ m && /* @__PURE__ */ e.jsx(
2573
2574
  "circle",
2574
2575
  {
2575
2576
  "data-el": "base",
@@ -2602,7 +2603,7 @@ const $e = () => {
2602
2603
  ]
2603
2604
  }
2604
2605
  ),
2605
- /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: P, children: y ?? (_ && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(q).toString() })) })
2606
+ /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: P, children: y ?? (C && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(q).toString() })) })
2606
2607
  ] });
2607
2608
  }, ir = ve(
2608
2609
  ({
@@ -2661,9 +2662,9 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2661
2662
  return a > 0 && (i.y = i.y - a - ((s == null ? void 0 : s.marginBottom) ?? 0)), d > 0 && (i.x = i.x - d - ((s == null ? void 0 : s.marginRight) ?? 0)), i;
2662
2663
  }, ar = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: l }) => {
2663
2664
  const o = Z(null), [c, a] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2664
- function m(h) {
2665
- for (let x of h)
2666
- if (x.icon)
2665
+ function x(h) {
2666
+ for (let m of h)
2667
+ if (m.icon)
2667
2668
  return !0;
2668
2669
  return !1;
2669
2670
  }
@@ -2673,13 +2674,13 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2673
2674
  let h = Ye(o.current.parentElement);
2674
2675
  if (!h)
2675
2676
  return;
2676
- let x = Hn(h.left + h.width, h.top, o.current, { marginRight: h.width });
2677
+ let m = Hn(h.left + h.width, h.top, o.current, { marginRight: h.width });
2677
2678
  a({
2678
- left: x.x - h.left + "px",
2679
- top: x.y - h.top + "px"
2679
+ left: m.x - h.left + "px",
2680
+ top: m.y - h.top + "px"
2680
2681
  }), u(!0);
2681
2682
  }, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2682
- /* @__PURE__ */ e.jsx("div", { ref: o, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((h, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
2683
+ /* @__PURE__ */ e.jsx("div", { ref: o, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((h, m) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: x(n), globalClick: s }, m)) }),
2683
2684
  r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
2684
2685
  ] });
2685
2686
  }, or = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
@@ -2733,18 +2734,18 @@ const cr = 100, dr = (n) => {
2733
2734
  s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2734
2735
  /* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
2735
2736
  ] }, s)) }) });
2736
- }, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = ne.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, o) => {
2737
- const [c, a] = g(!1), [d, u] = g(void 0), { screen: m } = _e(we), h = () => {
2737
+ }, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = ne.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, o) => {
2738
+ const [c, a] = g(!1), [d, u] = g(void 0), { screen: x } = Ce(we), h = () => {
2738
2739
  a(!1), u(void 0);
2739
- }, x = (f) => {
2740
+ }, m = (f) => {
2740
2741
  f.stopPropagation(), a(!0), u({ x: f.clientX, y: f.clientY }), i == null || i(f);
2741
- }, p = n ?? m;
2742
+ }, p = n ?? x;
2742
2743
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2743
2744
  /* @__PURE__ */ e.jsx(
2744
2745
  de,
2745
2746
  {
2746
2747
  ref: o,
2747
- onClick: x,
2748
+ onClick: m,
2748
2749
  ...l
2749
2750
  }
2750
2751
  ),
@@ -2807,8 +2808,8 @@ const cr = 100, dr = (n) => {
2807
2808
  Bn.displayName = "Checkbox";
2808
2809
  const Wn = ne.forwardRef(
2809
2810
  ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: o, ...c }, a) => {
2810
- const d = (m) => {
2811
- m.stopPropagation(), t == null || t(m);
2811
+ const d = (x) => {
2812
+ x.stopPropagation(), t == null || t(x);
2812
2813
  }, u = o ? void 0 : s;
2813
2814
  return /* @__PURE__ */ e.jsxs(
2814
2815
  "div",
@@ -2852,15 +2853,15 @@ const Gn = ve(
2852
2853
  size: a = "medium",
2853
2854
  variant: d = "primary",
2854
2855
  showLabel: u = !0,
2855
- className: m,
2856
+ className: x,
2856
2857
  ...h
2857
- }, x) => {
2858
+ }, m) => {
2858
2859
  const p = t !== void 0 ? t === r : l !== void 0 ? l : o;
2859
- return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
2860
+ return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${x || ""}`, children: [
2860
2861
  /* @__PURE__ */ e.jsx(
2861
2862
  "input",
2862
2863
  {
2863
- ref: x,
2864
+ ref: m,
2864
2865
  className: "radio-button",
2865
2866
  name: n,
2866
2867
  type: "radio",
@@ -2892,15 +2893,15 @@ const Zn = ve(
2892
2893
  variant: a = "primary",
2893
2894
  ...d
2894
2895
  }, u) => {
2895
- const [m, h] = g([]);
2896
+ const [x, h] = g([]);
2896
2897
  O(() => {
2897
- h(x(t));
2898
+ h(m(t));
2898
2899
  }, [t]);
2899
- const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], p = (f, j) => {
2900
+ const m = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], p = (f, j) => {
2900
2901
  if (i) return;
2901
2902
  f.preventDefault();
2902
- let _;
2903
- r ? _ = m.includes(j) ? m.filter((b) => b !== j) : [...m, j] : _ = m.includes(j) ? [] : [j], h(_), l == null || l(_, f);
2903
+ let C;
2904
+ r ? C = x.includes(j) ? x.filter((b) => b !== j) : [...x, j] : C = x.includes(j) ? [] : [j], h(C), l == null || l(C, f);
2904
2905
  };
2905
2906
  return /* @__PURE__ */ e.jsx(
2906
2907
  "div",
@@ -2914,13 +2915,13 @@ const Zn = ve(
2914
2915
  {
2915
2916
  type: "button",
2916
2917
  role: "radio",
2917
- "aria-checked": m.includes(f),
2918
+ "aria-checked": x.includes(f),
2918
2919
  "aria-label": f,
2919
2920
  disabled: i,
2920
- className: `segmented-button__item ${m.includes(f) ? "segmented-button__item--active" : ""}`,
2921
+ className: `segmented-button__item ${x.includes(f) ? "segmented-button__item--active" : ""}`,
2921
2922
  onClick: (j) => p(j, f),
2922
2923
  children: [
2923
- m.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2924
+ x.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2924
2925
  /* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: f }),
2925
2926
  /* @__PURE__ */ e.jsx(
2926
2927
  "input",
@@ -2928,7 +2929,7 @@ const Zn = ve(
2928
2929
  type: r ? "checkbox" : "radio",
2929
2930
  name: s,
2930
2931
  value: f,
2931
- checked: m.includes(f),
2932
+ checked: x.includes(f),
2932
2933
  readOnly: !0,
2933
2934
  className: "segmented-button__input"
2934
2935
  }
@@ -2983,23 +2984,23 @@ function hr({
2983
2984
  defaultValue: a,
2984
2985
  style: d
2985
2986
  }) {
2986
- const [u, m] = g(a), h = k(() => {
2987
- u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
2988
- }, [u, n, i, s]), x = k(() => {
2987
+ const [u, x] = g(a), h = k(() => {
2988
+ u !== void 0 && (n == null || n(u), x(void 0), !i && (s == null || s()));
2989
+ }, [u, n, i, s]), m = k(() => {
2989
2990
  s == null || s();
2990
2991
  }, [s]), p = k((f) => {
2991
- m(f);
2992
+ x(f);
2992
2993
  }, []);
2993
2994
  return /* @__PURE__ */ e.jsxs(
2994
2995
  Ee,
2995
2996
  {
2996
2997
  header: r,
2997
2998
  style: d,
2998
- onHide: x,
2999
+ onHide: m,
2999
3000
  action: /* @__PURE__ */ e.jsx(
3000
3001
  mr,
3001
3002
  {
3002
- onHide: x,
3003
+ onHide: m,
3003
3004
  onSuccess: h,
3004
3005
  disabled: u === void 0,
3005
3006
  confirmText: o,
@@ -3009,7 +3010,7 @@ function hr({
3009
3010
  children: [
3010
3011
  /* @__PURE__ */ e.jsx(se, { style: { padding: 0 } }),
3011
3012
  /* @__PURE__ */ e.jsx(
3012
- Cr,
3013
+ _r,
3013
3014
  {
3014
3015
  transparent: !0,
3015
3016
  scroll: !0,
@@ -3020,7 +3021,7 @@ function hr({
3020
3021
  {
3021
3022
  "aria-disabled": f.disabled,
3022
3023
  children: /* @__PURE__ */ e.jsx(
3023
- _r,
3024
+ Cr,
3024
3025
  {
3025
3026
  hovered: !f.disabled,
3026
3027
  header: f.title,
@@ -3057,7 +3058,7 @@ function mr({
3057
3058
  cancelText: i = "Отмена"
3058
3059
  }) {
3059
3060
  return /* @__PURE__ */ e.jsxs("div", { children: [
3060
- t && /* @__PURE__ */ e.jsx(Cn, { onClick: t, children: i }),
3061
+ t && /* @__PURE__ */ e.jsx(_n, { onClick: t, children: i }),
3061
3062
  /* @__PURE__ */ e.jsx(
3062
3063
  ce,
3063
3064
  {
@@ -3081,13 +3082,13 @@ const Ve = ne.forwardRef(
3081
3082
  onClear: a,
3082
3083
  icon: d,
3083
3084
  onChange: u,
3084
- name: m,
3085
+ name: x,
3085
3086
  value: h,
3086
- placeholder: x,
3087
+ placeholder: m,
3087
3088
  className: p,
3088
3089
  validEmptyValue: f,
3089
3090
  onFocus: j,
3090
- onBlur: _,
3091
+ onBlur: C,
3091
3092
  error: b,
3092
3093
  max: y,
3093
3094
  min: v,
@@ -3102,10 +3103,10 @@ const Ve = ne.forwardRef(
3102
3103
  if (!E.current) return;
3103
3104
  const J = E.current.querySelector("input");
3104
3105
  J == null || J.focus();
3105
- }, C = (J) => {
3106
+ }, _ = (J) => {
3106
3107
  j == null || j(J), L(!0);
3107
3108
  }, $ = (J) => {
3108
- _ == null || _(J), L(!1), Y(!!J.target.value);
3109
+ C == null || C(J), L(!1), Y(!!J.target.value);
3109
3110
  }, H = k(
3110
3111
  (J, te) => I(!!(b || J && (!te || te === ""))),
3111
3112
  [b]
@@ -3153,19 +3154,19 @@ const Ve = ne.forwardRef(
3153
3154
  input-field__input-container__input
3154
3155
  ${N ? "input-field__input-container__input_error" : ""}
3155
3156
  `,
3156
- name: m,
3157
+ name: x,
3157
3158
  value: h,
3158
3159
  onClick: n,
3159
3160
  onChange: (J) => u == null ? void 0 : u(J.target.value, J.target.name, J),
3160
- onFocus: C,
3161
+ onFocus: _,
3161
3162
  onBlur: $,
3162
3163
  onKeyDown: z,
3163
3164
  autoFocus: M,
3164
3165
  "aria-invalid": N,
3165
- "aria-describedby": N ? `${m}-error` : void 0
3166
+ "aria-describedby": N ? `${x}-error` : void 0
3166
3167
  }
3167
3168
  ),
3168
- x && /* @__PURE__ */ e.jsx(
3169
+ m && /* @__PURE__ */ e.jsx(
3169
3170
  "label",
3170
3171
  {
3171
3172
  htmlFor: q,
@@ -3173,7 +3174,7 @@ const Ve = ne.forwardRef(
3173
3174
  className: `input-field__input-container__label
3174
3175
  ${T ? "input-field__input-container__label_filled" : ""}
3175
3176
  `,
3176
- children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: x })
3177
+ children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
3177
3178
  }
3178
3179
  )
3179
3180
  ] }),
@@ -3202,22 +3203,22 @@ const Vs = ({
3202
3203
  max: a = 100,
3203
3204
  defaultValue: d = "",
3204
3205
  confirmText: u = "OK",
3205
- cancelText: m = "Отмена",
3206
+ cancelText: x = "Отмена",
3206
3207
  validate: h
3207
3208
  }) => {
3208
- const [x, p] = g(d), [f, j] = g(!0);
3209
+ const [m, p] = g(d), [f, j] = g(!0);
3209
3210
  O(() => {
3210
3211
  if (h)
3211
- j(h(x));
3212
+ j(h(m));
3212
3213
  else if (o === "number") {
3213
- const v = Number(x);
3214
+ const v = Number(m);
3214
3215
  j(!isNaN(v) && v >= c && v <= a);
3215
3216
  } else
3216
3217
  j(!0);
3217
- }, [x, h, o, c, a]);
3218
- const _ = k(() => {
3219
- f && (s == null || s(x), i == null || i());
3220
- }, [x, f, s, i]), b = k(() => {
3218
+ }, [m, h, o, c, a]);
3219
+ const C = k(() => {
3220
+ f && (s == null || s(m), i == null || i());
3221
+ }, [m, f, s, i]), b = k(() => {
3221
3222
  i == null || i();
3222
3223
  }, [i]), y = (v) => {
3223
3224
  if (o === "number") {
@@ -3237,12 +3238,12 @@ const Vs = ({
3237
3238
  header: r,
3238
3239
  onHide: b,
3239
3240
  action: /* @__PURE__ */ e.jsxs("div", { children: [
3240
- /* @__PURE__ */ e.jsx(ce, { onClick: b, children: m }),
3241
+ /* @__PURE__ */ e.jsx(ce, { onClick: b, children: x }),
3241
3242
  /* @__PURE__ */ e.jsx(
3242
3243
  ce,
3243
3244
  {
3244
- onClick: _,
3245
- disabled: !f || o === "number" && x === "",
3245
+ onClick: C,
3246
+ disabled: !f || o === "number" && m === "",
3246
3247
  children: u
3247
3248
  }
3248
3249
  )
@@ -3258,7 +3259,7 @@ const Vs = ({
3258
3259
  max: a,
3259
3260
  border: !0,
3260
3261
  placeholder: l,
3261
- value: x,
3262
+ value: m,
3262
3263
  onChange: y,
3263
3264
  error: !f
3264
3265
  }
@@ -3285,11 +3286,11 @@ const Vs = ({
3285
3286
  saveText: a,
3286
3287
  cancelText: d,
3287
3288
  forceFullScreen: u,
3288
- btns: m
3289
+ btns: x
3289
3290
  }) => {
3290
- const { screen: h } = _e(we);
3291
- _n(!0, document.body);
3292
- const x = () => {
3291
+ const { screen: h } = Ce(we);
3292
+ Cn(!0, document.body);
3293
+ const m = () => {
3293
3294
  l == null || l();
3294
3295
  }, p = () => {
3295
3296
  i == null || i();
@@ -3313,7 +3314,7 @@ const Vs = ({
3313
3314
  de,
3314
3315
  {
3315
3316
  transparent: !0,
3316
- onClick: x,
3317
+ onClick: m,
3317
3318
  icon: /* @__PURE__ */ e.jsx(ue, {}),
3318
3319
  "aria-label": "Закрыть"
3319
3320
  }
@@ -3323,7 +3324,7 @@ const Vs = ({
3323
3324
  ] }),
3324
3325
  /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
3325
3326
  s,
3326
- m && /* @__PURE__ */ e.jsx(ze, { btns: m.filter((j) => !j.hide && !j.success) })
3327
+ x && /* @__PURE__ */ e.jsx(ze, { btns: x.filter((j) => !j.hide && !j.success) })
3327
3328
  ] })
3328
3329
  ]
3329
3330
  }
@@ -3334,11 +3335,11 @@ const Vs = ({
3334
3335
  style: n,
3335
3336
  header: r,
3336
3337
  className: `full-screen-dialog ${t}`,
3337
- onHide: x,
3338
- action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3339
- l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
3338
+ onHide: m,
3339
+ action: x === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3340
+ l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: m, children: d ?? "Отмена" }),
3340
3341
  l && /* @__PURE__ */ e.jsx(ye, { onClick: p, children: a ?? "Сохранить" })
3341
- ] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
3342
+ ] }) : /* @__PURE__ */ e.jsx(ze, { btns: x, onHide: l, onSuccess: i }),
3342
3343
  children: s
3343
3344
  }
3344
3345
  );
@@ -3355,18 +3356,18 @@ const Vs = ({
3355
3356
  iconButtonCell: a,
3356
3357
  onClick: d,
3357
3358
  screenSize: u,
3358
- rootApp: m = "#root",
3359
+ rootApp: x = "#root",
3359
3360
  variant: h = "elevated",
3360
- loading: x = !1,
3361
+ loading: m = !1,
3361
3362
  style: p,
3362
3363
  elevation: f = 6,
3363
3364
  ...j
3364
- }, _) => {
3365
- const { screen: b } = _e(we), y = u ?? b, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (A) => {
3365
+ }, C) => {
3366
+ const { screen: b } = Ce(we), y = u ?? b, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (A) => {
3366
3367
  F(A) && (d == null || d(A), B(A));
3367
3368
  }, F = (A) => {
3368
3369
  const w = A.target;
3369
- return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(m);
3370
+ return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(x);
3370
3371
  }, B = (A) => {
3371
3372
  const w = A.currentTarget, z = w.querySelector(".card-ripple-container");
3372
3373
  if (!z) return;
@@ -3376,16 +3377,16 @@ const Vs = ({
3376
3377
  return /* @__PURE__ */ e.jsxs(
3377
3378
  "div",
3378
3379
  {
3379
- ref: _,
3380
+ ref: C,
3380
3381
  style: p,
3381
- className: `${n} card card--${h} ${v} ${x ? "card--loading" : ""}`,
3382
+ className: `${n} card card--${h} ${v} ${m ? "card--loading" : ""}`,
3382
3383
  onClick: M,
3383
3384
  ...j,
3384
3385
  children: [
3385
3386
  /* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
3386
3387
  r && /* @__PURE__ */ e.jsxs("div", { className: "card-image-container", children: [
3387
3388
  /* @__PURE__ */ e.jsx("img", { src: r, alt: s, loading: "lazy" }),
3388
- x && /* @__PURE__ */ e.jsx("div", { className: "card-image-overlay" })
3389
+ m && /* @__PURE__ */ e.jsx("div", { className: "card-image-overlay" })
3389
3390
  ] }),
3390
3391
  /* @__PURE__ */ e.jsxs("div", { className: "card-content", children: [
3391
3392
  (i || a) && /* @__PURE__ */ e.jsxs("div", { className: "card-header", children: [
@@ -3423,7 +3424,7 @@ const Vs = ({
3423
3424
  c && /* @__PURE__ */ e.jsx("div", { className: "card-children", children: c }),
3424
3425
  t && /* @__PURE__ */ e.jsx("div", { className: "card-actions", children: t })
3425
3426
  ] }),
3426
- x && /* @__PURE__ */ e.jsx("div", { className: "card-loading-indicator" })
3427
+ m && /* @__PURE__ */ e.jsx("div", { className: "card-loading-indicator" })
3427
3428
  ]
3428
3429
  }
3429
3430
  );
@@ -3431,22 +3432,22 @@ const Vs = ({
3431
3432
  );
3432
3433
  xr.displayName = "Card";
3433
3434
  const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: o = !0 }) => {
3434
- const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (j) => {
3435
+ const [c, a] = g(!1), [d, u] = g(null), [x, h] = g({ x: 0, y: 0 }), m = (j) => {
3435
3436
  j.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
3436
3437
  }, p = (j) => {
3437
3438
  j.button == 1 && o && (u({ x: j.clientX, y: j.clientY }), a(!0), document.body.style.cursor = "move");
3438
3439
  }, f = k((j) => {
3439
- c && (h((_) => {
3440
+ c && (h((C) => {
3440
3441
  if (!d)
3441
- return _;
3442
+ return C;
3442
3443
  const b = j.clientX - d.x, y = j.clientY - d.y;
3443
- let v = _.x + b, M = _.y + y;
3444
+ let v = C.x + b, M = C.y + y;
3444
3445
  return { x: v, y: M };
3445
3446
  }), u({ x: j.clientX, y: j.clientY }));
3446
3447
  }, [c, d]);
3447
3448
  return O(() => {
3448
3449
  l && h({ ...l });
3449
- }, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: p, onMouseUp: x, onMouseMove: f, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: m.x, top: m.y }, children: n }) });
3450
+ }, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: p, onMouseUp: m, onMouseMove: f, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: x.x, top: x.y }, children: n }) });
3450
3451
  }, Ds = ({
3451
3452
  onClick: n,
3452
3453
  onContextMenu: t,
@@ -3459,17 +3460,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3459
3460
  classNameColumn: a,
3460
3461
  minColumnWidth: d = "auto"
3461
3462
  }) => {
3462
- const u = ne.useCallback((x, p) => {
3463
- const f = Array.from({ length: x }, () => []);
3463
+ const u = ne.useCallback((m, p) => {
3464
+ const f = Array.from({ length: m }, () => []);
3464
3465
  return p.forEach((j) => {
3465
3466
  if (j.indexCol >= f.length) {
3466
- console.error(`Invalid column index. indexCol = ${j.indexCol}, column count = ${x}`);
3467
+ console.error(`Invalid column index. indexCol = ${j.indexCol}, column count = ${m}`);
3467
3468
  return;
3468
3469
  }
3469
3470
  f[j.indexCol].push(j.node);
3470
3471
  }), f;
3471
- }, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x, p) => {
3472
- c == null || c(x, p);
3472
+ }, []), x = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((m, p) => {
3473
+ c == null || c(m, p);
3473
3474
  }, [c]);
3474
3475
  return /* @__PURE__ */ e.jsx(
3475
3476
  "div",
@@ -3483,13 +3484,13 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3483
3484
  },
3484
3485
  className: `${s} alex-evo-sh-ui-kit-column-layout`,
3485
3486
  "data-testid": "column-layout-container",
3486
- children: m.map((x, p) => /* @__PURE__ */ e.jsx(
3487
+ children: x.map((m, p) => /* @__PURE__ */ e.jsx(
3487
3488
  "div",
3488
3489
  {
3489
3490
  onClick: (f) => h(p, f),
3490
3491
  className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
3491
3492
  "data-testid": `column-${p}`,
3492
- children: x.map((f, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${p}-${j}`))
3493
+ children: m.map((f, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${p}-${j}`))
3493
3494
  },
3494
3495
  `column-${p}`
3495
3496
  ))
@@ -3506,17 +3507,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3506
3507
  action: c,
3507
3508
  onVisibilityChange: a
3508
3509
  }) => {
3509
- const [d, u] = g(l ? o : !0), m = Z(null), h = (j) => {
3510
+ const [d, u] = g(l ? o : !0), x = Z(null), h = (j) => {
3510
3511
  if (!j) return;
3511
- const _ = Ye(j);
3512
- if (_)
3513
- return _.height + fr;
3514
- }, x = (j) => {
3515
- const _ = h(j);
3516
- return _ ? Math.min(_ * jr, 1) : 0.4;
3512
+ const C = Ye(j);
3513
+ if (C)
3514
+ return C.height + fr;
3515
+ }, m = (j) => {
3516
+ const C = h(j);
3517
+ return C ? Math.min(C * jr, 1) : 0.4;
3517
3518
  }, p = (j) => {
3518
- const _ = j.target;
3519
- if (!(_.closest(".action-btn") || _.classList.contains("action-btn")) && l) {
3519
+ const C = j.target;
3520
+ if (!(C.closest(".action-btn") || C.classList.contains("action-btn")) && l) {
3520
3521
  const y = !d;
3521
3522
  u(y), a == null || a(y);
3522
3523
  }
@@ -3525,8 +3526,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3525
3526
  !l && !d && (u(!0), a == null || a(!0));
3526
3527
  }, [l, d, a]);
3527
3528
  const f = oe(
3528
- () => x(m.current),
3529
- [m.current]
3529
+ () => m(x.current),
3530
+ [x.current]
3530
3531
  );
3531
3532
  return /* @__PURE__ */ e.jsxs(
3532
3533
  "div",
@@ -3580,7 +3581,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3580
3581
  height: d ? "auto" : "0px"
3581
3582
  },
3582
3583
  "aria-hidden": !d,
3583
- children: /* @__PURE__ */ e.jsx("div", { className: "content-box-container", ref: m, children: n })
3584
+ children: /* @__PURE__ */ e.jsx("div", { className: "content-box-container", ref: x, children: n })
3584
3585
  }
3585
3586
  )
3586
3587
  ]
@@ -3603,19 +3604,19 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3603
3604
  itemMaxWith: o,
3604
3605
  itemWith: c = "400px"
3605
3606
  }) => {
3606
- const a = Z(null), [d, u] = g([]), m = Z(null), h = Z(null), x = k(() => {
3607
+ const a = Z(null), [d, u] = g([]), x = Z(null), h = Z(null), m = k(() => {
3607
3608
  if (!a.current) return;
3608
3609
  a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
3609
- const _ = l ?? c, b = o ?? c;
3610
- a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${b}))`, a.current.style.gridAutoRows = "1px";
3610
+ const C = l ?? c, b = o ?? c;
3611
+ a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${C}, ${b}))`, a.current.style.gridAutoRows = "1px";
3611
3612
  }, [s, i, l, o, c]), p = k(() => {
3612
3613
  if (a.current) {
3613
- const _ = a.current.querySelectorAll(".adaptiv-grid-item");
3614
- u(Array.from(_));
3614
+ const C = a.current.querySelectorAll(".adaptiv-grid-item");
3615
+ u(Array.from(C));
3615
3616
  }
3616
3617
  }, []), f = k(() => {
3617
3618
  if (!a.current) return;
3618
- const _ = window.getComputedStyle(a.current), b = parseInt(_.getPropertyValue("grid-row-gap")) || 0, y = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
3619
+ const C = window.getComputedStyle(a.current), b = parseInt(C.getPropertyValue("grid-row-gap")) || 0, y = parseInt(C.getPropertyValue("grid-auto-rows")) || 1;
3619
3620
  d.forEach((v) => {
3620
3621
  const M = v.querySelector(".adaptiv-grid-item-container");
3621
3622
  if (M) {
@@ -3629,12 +3630,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3629
3630
  });
3630
3631
  }, [f]);
3631
3632
  return O(() => {
3632
- x(), p();
3633
- }, [x, p, t]), O(() => {
3634
- m.current && m.current.disconnect(), m.current = new ResizeObserver(() => j());
3635
- const _ = m.current;
3636
- return d.forEach((b) => _.observe(b)), j(), () => {
3637
- _.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3633
+ m(), p();
3634
+ }, [m, p, t]), O(() => {
3635
+ x.current && x.current.disconnect(), x.current = new ResizeObserver(() => j());
3636
+ const C = x.current;
3637
+ return d.forEach((b) => C.observe(b)), j(), () => {
3638
+ C.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3638
3639
  };
3639
3640
  }, [d, j]), /* @__PURE__ */ e.jsx(
3640
3641
  "div",
@@ -3649,13 +3650,13 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3649
3650
  children: n,
3650
3651
  className: t = "",
3651
3652
  style: r,
3652
- elevation: s = 1,
3653
+ shadow: s = 1,
3653
3654
  padded: i = !0,
3654
3655
  borderRadius: l = 12,
3655
3656
  onClick: o,
3656
3657
  onContextMenu: c
3657
3658
  }) => {
3658
- const a = `elevation-${Math.min(24, Math.max(0, s))}`;
3659
+ const a = `container_shadow-${s}`;
3659
3660
  return /* @__PURE__ */ e.jsx(
3660
3661
  "div",
3661
3662
  {
@@ -3678,32 +3679,32 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3678
3679
  activeTabIndex: l,
3679
3680
  tabContainerClassName: o = ""
3680
3681
  }) => {
3681
- const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1), p = (_) => {
3682
+ const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), x = Z(null), [h, m] = g(!1), p = (C) => {
3682
3683
  if (u.current) {
3683
3684
  const b = t || u.current.offsetWidth / 2;
3684
3685
  u.current.scrollBy({
3685
- left: _ === "left" ? -b : b,
3686
+ left: C === "left" ? -b : b,
3686
3687
  behavior: "smooth"
3687
3688
  });
3688
3689
  }
3689
3690
  };
3690
3691
  O(() => {
3691
- const _ = () => {
3692
- u.current && x(
3692
+ const C = () => {
3693
+ u.current && m(
3693
3694
  u.current.scrollWidth > u.current.clientWidth
3694
3695
  );
3695
3696
  };
3696
- return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
3697
+ return C(), window.addEventListener("resize", C), () => window.removeEventListener("resize", C);
3697
3698
  }, []), O(() => {
3698
- if (u.current && m.current) {
3699
- const _ = u.current.children[d];
3700
- _ && (m.current.style.width = `${_.offsetWidth}px`, m.current.style.transform = `translateX(${_.offsetLeft}px)`);
3699
+ if (u.current && x.current) {
3700
+ const C = u.current.children[d];
3701
+ C && (x.current.style.width = `${C.offsetWidth}px`, x.current.style.transform = `translateX(${C.offsetLeft}px)`);
3701
3702
  }
3702
3703
  }, [d]);
3703
- const f = (_) => {
3704
- _.key === "ArrowRight" ? j((d + 1) % n.length) : _.key === "ArrowLeft" && j((d - 1 + n.length) % n.length);
3705
- }, j = (_) => {
3706
- l === void 0 && a(_), i && i(_);
3704
+ const f = (C) => {
3705
+ C.key === "ArrowRight" ? j((d + 1) % n.length) : C.key === "ArrowLeft" && j((d - 1 + n.length) % n.length);
3706
+ }, j = (C) => {
3707
+ l === void 0 && a(C), i && i(C);
3707
3708
  };
3708
3709
  return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
3709
3710
  /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${o}`, children: [
@@ -3716,16 +3717,16 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3716
3717
  onKeyDown: f,
3717
3718
  tabIndex: 0,
3718
3719
  children: [
3719
- n.map((_, b) => /* @__PURE__ */ e.jsx(
3720
+ n.map((C, b) => /* @__PURE__ */ e.jsx(
3720
3721
  "div",
3721
3722
  {
3722
3723
  className: `alex-evo-ui-kit-tab ${r} ${d === b ? s : ""}`,
3723
3724
  onClick: () => j(b),
3724
- children: _.label
3725
+ children: C.label
3725
3726
  },
3726
- _.label
3727
+ C.label
3727
3728
  )),
3728
- /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: m })
3729
+ /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: x })
3729
3730
  ]
3730
3731
  }
3731
3732
  ),
@@ -3733,7 +3734,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3733
3734
  ] }),
3734
3735
  /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
3735
3736
  ] });
3736
- }, Cr = ve(({
3737
+ }, _r = ve(({
3737
3738
  children: n,
3738
3739
  className: t = "",
3739
3740
  maxHeight: r,
@@ -3742,23 +3743,27 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3742
3743
  width: l,
3743
3744
  padding: o,
3744
3745
  margin: c,
3745
- ...a
3746
- }, d) => {
3747
- const u = {
3746
+ flex: a,
3747
+ gap: d = 0,
3748
+ ...u
3749
+ }, x) => {
3750
+ const h = {
3748
3751
  overflowY: r ? s ? "scroll" : "hidden" : void 0,
3749
3752
  maxHeight: r,
3750
3753
  backgroundColor: i ? "transparent" : void 0,
3751
3754
  width: l,
3752
3755
  padding: o,
3753
3756
  margin: c
3754
- }, m = [
3757
+ };
3758
+ a && (h.display = "flex", h.flexDirection = "column", d > 0 && (h.gap = d));
3759
+ const m = [
3755
3760
  "list-container",
3756
3761
  t,
3757
3762
  s ? "list-container_scroll" : "",
3758
3763
  i ? "list-container_transparent" : ""
3759
3764
  ].filter(Boolean).join(" ");
3760
- return /* @__PURE__ */ e.jsx("ul", { ref: d, style: u, className: m, ...a, children: n });
3761
- }), _r = ve(({
3765
+ return /* @__PURE__ */ e.jsx("ul", { ref: x, style: h, className: m, ...u, children: n });
3766
+ }), Cr = ve(({
3762
3767
  icon: n,
3763
3768
  control: t,
3764
3769
  text: r,
@@ -3770,23 +3775,23 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3770
3775
  className: a = "",
3771
3776
  disabled: d = !1,
3772
3777
  active: u = !1,
3773
- shadow: m = 0,
3778
+ shadow: x = 0,
3774
3779
  ...h
3775
- }, x) => {
3780
+ }, m) => {
3776
3781
  const p = (j) => {
3777
3782
  !d && !j.target.closest(".control-container") && (o == null || o(j));
3778
3783
  }, f = [
3779
3784
  "list-item-container",
3780
3785
  a,
3781
- `list-item-container_shadow-${m}`,
3786
+ `container_shadow-hover-${x}`,
3782
3787
  c && !d ? "list-item-container_hovered" : "",
3783
3788
  d ? "list-item-container_disabled" : "",
3784
3789
  u ? "list-item-container_active" : ""
3785
3790
  ].filter(Boolean).join(" ");
3786
- return /* @__PURE__ */ e.jsxs("li", { ref: x, className: f, onClick: p, "aria-disabled": d, ...h, children: [
3791
+ return /* @__PURE__ */ e.jsxs("li", { ref: m, className: f, onClick: p, "aria-disabled": d, ...h, children: [
3787
3792
  (n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(U, { type: "body", children: l }) }),
3788
3793
  (s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
3789
- s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "body", children: s }) }),
3794
+ s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "title", children: s }) }),
3790
3795
  r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(U, { type: "small", children: r }) }),
3791
3796
  i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(U, { type: "small", color: "variant", children: i }) })
3792
3797
  ] }),
@@ -3844,10 +3849,10 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3844
3849
  [c, o, t]
3845
3850
  );
3846
3851
  return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: d, children: [
3847
- r.map((u, m) => /* @__PURE__ */ e.jsx(
3852
+ r.map((u, x) => /* @__PURE__ */ e.jsx(
3848
3853
  br,
3849
3854
  {
3850
- H: a == null ? void 0 : a[m],
3855
+ H: a == null ? void 0 : a[x],
3851
3856
  color: u.color,
3852
3857
  backgroundColor: u.backgroundColor,
3853
3858
  column: u,
@@ -3855,14 +3860,14 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3855
3860
  },
3856
3861
  u.field
3857
3862
  )),
3858
- n && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, m) => /* @__PURE__ */ e.jsx(
3863
+ n && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, x) => /* @__PURE__ */ e.jsx(
3859
3864
  de,
3860
3865
  {
3861
3866
  transparent: !0,
3862
3867
  icon: u.icon,
3863
3868
  onClick: (h) => u.onClick(h, t, c)
3864
3869
  },
3865
- m
3870
+ x
3866
3871
  )) }) }),
3867
3872
  (s || i || l) && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
3868
3873
  l && /* @__PURE__ */ e.jsx(de, { transparent: !0, icon: /* @__PURE__ */ e.jsx($n, {}), onClick: () => l(t, c) }),
@@ -3891,39 +3896,40 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3891
3896
  onContextMenu: s,
3892
3897
  onEdit: i,
3893
3898
  actions: l,
3894
- onClickRow: o
3899
+ shadow: o = 2,
3900
+ onClickRow: c
3895
3901
  }) => {
3896
- const c = oe(
3902
+ const a = oe(
3897
3903
  () => t ?? vr(n),
3898
3904
  [n, t]
3899
- ), a = c.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), d = (u) => u ? (Array.isArray(u) ? u : [u]).map((h, x) => typeof h == "string" || typeof h == "number" ? /* @__PURE__ */ e.jsx("span", { children: h }, x) : /* @__PURE__ */ e.jsx(
3905
+ ), d = a.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), u = (h) => h ? (Array.isArray(h) ? h : [h]).map((p, f) => typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ e.jsx("span", { children: p }, f) : /* @__PURE__ */ e.jsx(
3900
3906
  "span",
3901
3907
  {
3902
- style: { color: h.color },
3903
- onClick: h.onClick,
3904
- children: h.content
3908
+ style: { color: p.color },
3909
+ onClick: p.onClick,
3910
+ children: p.content
3905
3911
  },
3906
- x
3907
- )) : null;
3908
- return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${o ? "clicked" : ""}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
3912
+ f
3913
+ )) : null, x = `container_shadow-${o}`;
3914
+ return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${c ? "clicked" : ""} ${x}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
3909
3915
  /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
3910
- c.map((u) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: u.title }, u.field)),
3916
+ a.map((h) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, h.field)),
3911
3917
  l && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }),
3912
3918
  (r || s || i) && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" })
3913
3919
  ] }) }),
3914
- /* @__PURE__ */ e.jsx("tbody", { children: n.map((u, m) => {
3915
- if ("__all__" in u) {
3916
- const h = gr(u.__all__);
3917
- return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: a, style: { backgroundColor: h == null ? void 0 : h.backgroundColor, color: h == null ? void 0 : h.color }, children: d(h) }) }, `all-${m}`);
3920
+ /* @__PURE__ */ e.jsx("tbody", { children: n.map((h, m) => {
3921
+ if ("__all__" in h) {
3922
+ const p = gr(h.__all__);
3923
+ return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: d, style: { backgroundColor: p == null ? void 0 : p.backgroundColor, color: p == null ? void 0 : p.color }, children: u(p) }) }, `all-${m}`);
3918
3924
  }
3919
3925
  return /* @__PURE__ */ e.jsx(
3920
3926
  kr,
3921
3927
  {
3922
- onClickRow: o,
3928
+ onClickRow: c,
3923
3929
  actions: l,
3924
3930
  index: m,
3925
- columns: c,
3926
- item: u,
3931
+ columns: a,
3932
+ item: h,
3927
3933
  onDelete: r,
3928
3934
  onContextMenu: s,
3929
3935
  onEdit: i
@@ -4161,29 +4167,29 @@ const Vr = [
4161
4167
  width: c = 310,
4162
4168
  height: a = "auto"
4163
4169
  }) => {
4164
- const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x, p] = g(Tr(t)), [f, j] = g(!1), [_, b] = g(
4165
- `#${ke(Le(x))}`
4166
- ), y = oe(() => Le(x), [x]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
4167
- () => _[0] !== "#" ? `#${_}` : _,
4168
- [_]
4170
+ const d = Z(null), u = Z(null), x = Z(null), h = Z(null), [m, p] = g(Tr(t)), [f, j] = g(!1), [C, b] = g(
4171
+ `#${ke(Le(m))}`
4172
+ ), y = oe(() => Le(m), [m]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
4173
+ () => C[0] !== "#" ? `#${C}` : C,
4174
+ [C]
4169
4175
  );
4170
4176
  O(() => {
4171
- !m.current || !d.current || !u.current || !h.current || F(
4172
- m.current,
4177
+ !x.current || !d.current || !u.current || !h.current || F(
4178
+ x.current,
4173
4179
  h.current,
4174
4180
  d.current,
4175
4181
  u.current,
4176
- x
4182
+ m
4177
4183
  );
4178
- }, [x]), O(() => {
4179
- if (!m.current || !h.current) return;
4180
- const N = m.current.getContext("2d");
4184
+ }, [m]), O(() => {
4185
+ if (!x.current || !h.current) return;
4186
+ const N = x.current.getContext("2d");
4181
4187
  N && (Mr(
4182
4188
  N,
4183
- m.current,
4184
- `#${ke(Le(x.h, 1, 1))}`
4189
+ x.current,
4190
+ `#${ke(Le(m.h, 1, 1))}`
4185
4191
  ), Lr(
4186
- m.current,
4192
+ x.current,
4187
4193
  N,
4188
4194
  h.current,
4189
4195
  (I, S) => {
@@ -4193,7 +4199,7 @@ const Vr = [
4193
4199
  });
4194
4200
  }
4195
4201
  ));
4196
- }, [x.h]), O(() => {
4202
+ }, [m.h]), O(() => {
4197
4203
  if (!d.current || !u.current) return;
4198
4204
  const N = d.current.getContext("2d");
4199
4205
  N && (Rr(N, d.current), Er(N, d.current, u.current, (I) => {
@@ -4203,17 +4209,17 @@ const Vr = [
4203
4209
  });
4204
4210
  }));
4205
4211
  }, []), O(() => {
4206
- if (_.length === 4 || _.length === 7)
4212
+ if (C.length === 4 || C.length === 7)
4207
4213
  try {
4208
- p(De(Ne(_)));
4214
+ p(De(Ne(C)));
4209
4215
  } catch {
4210
4216
  console.warn("Invalid HEX color");
4211
4217
  }
4212
- }, [_]);
4218
+ }, [C]);
4213
4219
  const F = (N, I, S, L, T) => {
4214
4220
  try {
4215
- const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width), C = Math.round((1 - T.v) * Y.height), $ = (360 - T.h * 360) / 360 * q.height;
4216
- Kn(I, G, C), qn(L, $);
4221
+ const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width), _ = Math.round((1 - T.v) * Y.height), $ = (360 - T.h * 360) / 360 * q.height;
4222
+ Kn(I, G, _), qn(L, $);
4217
4223
  } catch (Y) {
4218
4224
  console.error("Error updating cursor positions", Y);
4219
4225
  }
@@ -4280,7 +4286,7 @@ const Vr = [
4280
4286
  /* @__PURE__ */ e.jsx(
4281
4287
  "canvas",
4282
4288
  {
4283
- ref: m,
4289
+ ref: x,
4284
4290
  className: "spectrum-canvas spectrum-canvas-color-picker",
4285
4291
  "aria-label": "Color spectrum"
4286
4292
  }
@@ -4413,20 +4419,20 @@ const Vr = [
4413
4419
  defaultColor: a,
4414
4420
  placeholder: d
4415
4421
  }) => {
4416
- const [u, m] = g(!1), [h, x] = g(s);
4422
+ const [u, x] = g(!1), [h, m] = g(s);
4417
4423
  O(() => {
4418
- s !== void 0 && x(s);
4424
+ s !== void 0 && m(s);
4419
4425
  }, [s]);
4420
4426
  const p = k(() => {
4421
- m(!0);
4427
+ x(!0);
4422
4428
  }, []), f = k(
4423
4429
  (b) => {
4424
- x(b), t == null || t(b), m(!1);
4430
+ m(b), t == null || t(b), x(!1);
4425
4431
  },
4426
4432
  [t]
4427
4433
  ), j = k(() => {
4428
- m(!1);
4429
- }, []), _ = [
4434
+ x(!1);
4435
+ }, []), C = [
4430
4436
  "input-field",
4431
4437
  "color-field",
4432
4438
  n ? "input-field_border" : "",
@@ -4434,7 +4440,7 @@ const Vr = [
4434
4440
  i
4435
4441
  ].filter(Boolean).join(" ");
4436
4442
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4437
- /* @__PURE__ */ e.jsxs("div", { className: _, children: [
4443
+ /* @__PURE__ */ e.jsxs("div", { className: C, children: [
4438
4444
  /* @__PURE__ */ e.jsxs("div", { className: "color-indicator-field", children: [
4439
4445
  /* @__PURE__ */ e.jsx(
4440
4446
  "div",
@@ -4458,7 +4464,7 @@ const Vr = [
4458
4464
  }
4459
4465
  )
4460
4466
  ] }),
4461
- u && /* @__PURE__ */ e.jsx(Ce, { container: r, children: /* @__PURE__ */ e.jsx(
4467
+ u && /* @__PURE__ */ e.jsx(_e, { container: r, children: /* @__PURE__ */ e.jsx(
4462
4468
  Or,
4463
4469
  {
4464
4470
  defaultColor: a,
@@ -4488,18 +4494,18 @@ const Vr = [
4488
4494
  day: (/* @__PURE__ */ new Date()).getDate(),
4489
4495
  type: "NOW_MONTH"
4490
4496
  /* NOW_MONTH */
4491
- }), [m, h] = g(
4497
+ }), [x, h] = g(
4492
4498
  "DAYS"
4493
4499
  /* DAYS */
4494
- ), x = (v, M) => new Date(v, M + 1, 0).getDate(), p = (v, M, F) => new Date(v, M, F).getDay(), f = (v, M) => {
4495
- let F = Array(x(v, M)).fill(0).map((z, D) => ({ type: "NOW_MONTH", day: D + 1 })), B = p(v, M, x(v, M)), A = Array(7 - B).fill(0).map((z, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
4496
- return F = Array(p(v, M, 0)).fill(0).map((z, D) => ({ type: "PREV_MONTH", day: x(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(F).concat(A), F;
4500
+ ), m = (v, M) => new Date(v, M + 1, 0).getDate(), p = (v, M, F) => new Date(v, M, F).getDay(), f = (v, M) => {
4501
+ let F = Array(m(v, M)).fill(0).map((z, D) => ({ type: "NOW_MONTH", day: D + 1 })), B = p(v, M, m(v, M)), A = Array(7 - B).fill(0).map((z, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
4502
+ return F = Array(p(v, M, 0)).fill(0).map((z, D) => ({ type: "PREV_MONTH", day: m(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(F).concat(A), F;
4497
4503
  }, j = (v) => {
4498
4504
  h(
4499
4505
  "DAYS"
4500
4506
  /* DAYS */
4501
4507
  ), a(v);
4502
- }, _ = (v) => {
4508
+ }, C = (v) => {
4503
4509
  h(
4504
4510
  "DAYS"
4505
4511
  /* DAYS */
@@ -4512,7 +4518,7 @@ const Vr = [
4512
4518
  }, [l, c, n, t, d]);
4513
4519
  return /* @__PURE__ */ e.jsxs(Ze, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
4514
4520
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
4515
- /* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: m === "MONTHS" ? "active" : "", onClick: () => h(
4521
+ /* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: x === "MONTHS" ? "active" : "", onClick: () => h(
4516
4522
  "MONTHS"
4517
4523
  /* MONTHS */
4518
4524
  ), children: [
@@ -4520,7 +4526,7 @@ const Vr = [
4520
4526
  " ",
4521
4527
  /* @__PURE__ */ e.jsx(Ie, {})
4522
4528
  ] }) }),
4523
- /* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: m === "YEARS" ? "active" : "", onClick: () => h(
4529
+ /* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: x === "YEARS" ? "active" : "", onClick: () => h(
4524
4530
  "YEARS"
4525
4531
  /* YEARS */
4526
4532
  ), children: [
@@ -4529,10 +4535,10 @@ const Vr = [
4529
4535
  /* @__PURE__ */ e.jsx(Ie, {})
4530
4536
  ] }) })
4531
4537
  ] }),
4532
- m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: xe.map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(v), children: [
4538
+ x === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: xe.map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => C(v), children: [
4533
4539
  /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4534
4540
  /* @__PURE__ */ e.jsx("div", { className: "content", children: v })
4535
- ] }, M)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => j(v), children: [
4541
+ ] }, M)) }) : x === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => j(v), children: [
4536
4542
  /* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4537
4543
  /* @__PURE__ */ e.jsx("div", { className: "content", children: v })
4538
4544
  ] }, M)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -4564,12 +4570,12 @@ const Vr = [
4564
4570
  helperText: a,
4565
4571
  size: d = "medium",
4566
4572
  disabled: u,
4567
- placeholder: m,
4573
+ placeholder: x,
4568
4574
  onBlur: h,
4569
- onFocus: x,
4575
+ onFocus: m,
4570
4576
  ...p
4571
4577
  }) => {
4572
- const [f, j] = g(s ?? ""), [_, b] = g(!1), [y, v] = g(!1), [M, F] = g(!!s), B = Be(), A = l || c, w = () => {
4578
+ const [f, j] = g(s ?? ""), [C, b] = g(!1), [y, v] = g(!1), [M, F] = g(!!s), B = Be(), A = l || c, w = () => {
4573
4579
  b(!0);
4574
4580
  }, z = (L) => {
4575
4581
  let T = String(L + 1);
@@ -4578,7 +4584,7 @@ const Vr = [
4578
4584
  let T = String(L);
4579
4585
  return T.length < 2 && (T = "0" + T), T;
4580
4586
  }, E = (L) => {
4581
- x == null || x(L), v(!0);
4587
+ m == null || m(L), v(!0);
4582
4588
  }, N = (L) => {
4583
4589
  h == null || h(L), v(!1), F(!!L.target.value);
4584
4590
  };
@@ -4620,19 +4626,19 @@ const Vr = [
4620
4626
  ...p
4621
4627
  }
4622
4628
  ),
4623
- m && /* @__PURE__ */ e.jsx(
4629
+ x && /* @__PURE__ */ e.jsx(
4624
4630
  "label",
4625
4631
  {
4626
4632
  htmlFor: B,
4627
4633
  className: `input-field__input-container__label
4628
4634
  ${M ? "input-field__input-container__label_filled" : ""}
4629
4635
  `,
4630
- children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
4636
+ children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: x })
4631
4637
  }
4632
4638
  )
4633
4639
  ] })
4634
4640
  ] }),
4635
- _ ? /* @__PURE__ */ e.jsx(Ce, { container: o, children: /* @__PURE__ */ e.jsx(Ir, { onChange: I, onHide: () => b(!1) }) }) : null,
4641
+ C ? /* @__PURE__ */ e.jsx(_e, { container: o, children: /* @__PURE__ */ e.jsx(Ir, { onChange: I, onHide: () => b(!1) }) }) : null,
4636
4642
  A && c && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: c }),
4637
4643
  a && !A && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: a })
4638
4644
  ] });
@@ -4657,8 +4663,8 @@ const Vr = [
4657
4663
  }, [t]);
4658
4664
  const o = k((a) => (d) => {
4659
4665
  l((u) => {
4660
- const m = d.target.checked ? [...u, a] : u.filter((h) => h !== a);
4661
- return n == null || n(m), m;
4666
+ const x = d.target.checked ? [...u, a] : u.filter((h) => h !== a);
4667
+ return n == null || n(x), x;
4662
4668
  });
4663
4669
  }, [n]), c = k((a) => i.includes(a), [i]);
4664
4670
  return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Pr.map((a) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
@@ -4688,12 +4694,12 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4688
4694
  className: a,
4689
4695
  ariaLabel: d = "Добавление нового элемента",
4690
4696
  chipsAriaLabel: u = "Список элементов",
4691
- id: m,
4697
+ id: x,
4692
4698
  error: h,
4693
- errorText: x,
4699
+ errorText: m,
4694
4700
  helperText: p
4695
4701
  }) => {
4696
- const [f, j] = g([]), [_, b] = g(""), [y, v] = g(null);
4702
+ const [f, j] = g([]), [C, b] = g(""), [y, v] = g(null);
4697
4703
  O(() => {
4698
4704
  j(Wr(t, o));
4699
4705
  }, [t, o]);
@@ -4702,11 +4708,11 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4702
4708
  }, F = (w) => {
4703
4709
  w.key === "Enter" && (w.preventDefault(), B());
4704
4710
  }, B = k(() => {
4705
- if (_.trim() === "" || f.includes(_.trim()))
4711
+ if (C.trim() === "" || f.includes(C.trim()))
4706
4712
  return;
4707
- const w = [...f, _.trim()];
4713
+ const w = [...f, C.trim()];
4708
4714
  j(w), r == null || r(jn(w, o)), b(""), v(w.length - 1);
4709
- }, [f, _, r, o]), A = (w) => {
4715
+ }, [f, C, r, o]), A = (w) => {
4710
4716
  const z = f.filter((D, E) => E !== w);
4711
4717
  j(z), r == null || r(jn(z, o)), v(w > 0 ? w - 1 : null);
4712
4718
  };
@@ -4715,22 +4721,22 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4715
4721
  {
4716
4722
  className: `more-text ${a ?? ""}`,
4717
4723
  style: { minWidth: n },
4718
- id: m,
4724
+ id: x,
4719
4725
  children: [
4720
4726
  /* @__PURE__ */ e.jsx("div", { className: "add-value", children: /* @__PURE__ */ e.jsx(
4721
4727
  Ve,
4722
4728
  {
4723
4729
  onChange: M,
4724
4730
  onKeyDown: F,
4725
- value: _,
4731
+ value: C,
4726
4732
  border: s,
4727
4733
  placeholder: i,
4728
4734
  error: h,
4729
- errorText: x,
4735
+ errorText: m,
4730
4736
  helperText: p,
4731
4737
  disabled: c,
4732
4738
  "aria-label": d,
4733
- "aria-describedby": m ? `${m}-help` : void 0
4739
+ "aria-describedby": x ? `${x}-help` : void 0
4734
4740
  }
4735
4741
  ) }),
4736
4742
  /* @__PURE__ */ e.jsxs(
@@ -4767,7 +4773,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4767
4773
  {
4768
4774
  onClick: B,
4769
4775
  className: "more-text-btn",
4770
- disabled: c || !_.trim(),
4776
+ disabled: c || !C.trim(),
4771
4777
  "aria-label": `${l} элемент`,
4772
4778
  children: l
4773
4779
  }
@@ -4775,7 +4781,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4775
4781
  ]
4776
4782
  }
4777
4783
  ),
4778
- m && /* @__PURE__ */ e.jsx("div", { id: `${m}-help`, className: "sr-only", children: 'Добавляйте элементы, вводя текст и нажимая Enter или кнопку "Добавить"' })
4784
+ x && /* @__PURE__ */ e.jsx("div", { id: `${x}-help`, className: "sr-only", children: 'Добавляйте элементы, вводя текст и нажимая Enter или кнопку "Добавить"' })
4779
4785
  ]
4780
4786
  }
4781
4787
  );
@@ -4791,13 +4797,13 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4791
4797
  name: a,
4792
4798
  value: d,
4793
4799
  placeholder: u,
4794
- className: m,
4800
+ className: x,
4795
4801
  validEmptyValue: h,
4796
- onFocus: x,
4802
+ onFocus: m,
4797
4803
  onBlur: p,
4798
4804
  error: f,
4799
4805
  max: j,
4800
- min: _,
4806
+ min: C,
4801
4807
  size: b = "medium",
4802
4808
  disabled: y,
4803
4809
  step: v = 1,
@@ -4812,29 +4818,29 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4812
4818
  return;
4813
4819
  const P = I.current.querySelector("input");
4814
4820
  P && P.focus();
4815
- }, C = k((P, W) => {
4821
+ }, _ = k((P, W) => {
4816
4822
  c && (N.current && (clearTimeout(N.current), N.current = null), N.current = setTimeout(() => {
4817
4823
  N.current && (clearTimeout(N.current), N.current = null), c(P, W);
4818
4824
  }, 100));
4819
4825
  }, [c]), $ = k(() => {
4820
4826
  Y((P) => {
4821
4827
  let W = P ? P + v : v;
4822
- return typeof j == "number" && W > j && (W = j), C(W, a), W;
4828
+ return typeof j == "number" && W > j && (W = j), _(W, a), W;
4823
4829
  });
4824
- }, [C, a, j, v]), H = k(() => {
4830
+ }, [_, a, j, v]), H = k(() => {
4825
4831
  Y((P) => {
4826
4832
  let W = P ? P - v : -v;
4827
- return typeof _ == "number" && W < _ && (W = _), C(W, a), W;
4833
+ return typeof C == "number" && W < C && (W = C), _(W, a), W;
4828
4834
  });
4829
- }, [C, a, _, v]), K = k((P) => {
4835
+ }, [_, a, C, v]), K = k((P) => {
4830
4836
  if (P.target.value === "") {
4831
4837
  Y("");
4832
4838
  return;
4833
4839
  }
4834
4840
  P.target.value.length > 1 && P.target.value[0] === "0" && ![",", "."].includes(P.target.value[1]) && (P.target.value = P.target.value.slice(1));
4835
4841
  let W = Number(P.target.value);
4836
- typeof _ == "number" && W < _ && (W = _), typeof j == "number" && W > j && (W = j), Y(Number(P.target.value)), C(W, a);
4837
- }, [a, C, T, j, _]), J = k(() => {
4842
+ typeof C == "number" && W < C && (W = C), typeof j == "number" && W > j && (W = j), Y(Number(P.target.value)), _(W, a);
4843
+ }, [a, _, T, j, C]), J = k(() => {
4838
4844
  D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.removeEventListener("mouseup", J);
4839
4845
  }, []), te = k((P) => {
4840
4846
  P === "p" ? $() : P === "m" && H(), D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.addEventListener("mouseup", J), D.current = setTimeout(() => {
@@ -4855,7 +4861,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4855
4861
  medium: "input-field__number-field_medium",
4856
4862
  large: "input-field__number-field_large"
4857
4863
  };
4858
- return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${m}`, children: [
4864
+ return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${x}`, children: [
4859
4865
  /* @__PURE__ */ e.jsxs(
4860
4866
  "div",
4861
4867
  {
@@ -4881,7 +4887,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4881
4887
  ref: n,
4882
4888
  max: j,
4883
4889
  step: v,
4884
- min: _,
4890
+ min: C,
4885
4891
  readOnly: s,
4886
4892
  required: !0,
4887
4893
  type: "number",
@@ -4889,7 +4895,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4889
4895
  name: a,
4890
4896
  value: T,
4891
4897
  onChange: K,
4892
- onFocus: x,
4898
+ onFocus: m,
4893
4899
  onBlur: Q,
4894
4900
  "aria-label": B,
4895
4901
  "aria-labelledby": A,
@@ -4976,13 +4982,13 @@ const Qn = ne.forwardRef(
4976
4982
  onChange: a,
4977
4983
  name: d,
4978
4984
  value: u,
4979
- placeholder: m,
4985
+ placeholder: x,
4980
4986
  className: h,
4981
- validEmptyValue: x,
4987
+ validEmptyValue: m,
4982
4988
  onFocus: p,
4983
4989
  onBlur: f,
4984
4990
  error: j,
4985
- autoFocus: _,
4991
+ autoFocus: C,
4986
4992
  disabled: b,
4987
4993
  helperText: y,
4988
4994
  errorText: v,
@@ -4990,20 +4996,20 @@ const Qn = ne.forwardRef(
4990
4996
  onKeyDown: F
4991
4997
  }, B) => {
4992
4998
  const A = Z(null), [w, z] = g(!1), [D, E] = g(!1), [N, I] = g(!!u), S = Be(), L = () => {
4993
- var C;
4994
- const G = (C = A.current) == null ? void 0 : C.querySelector("textarea");
4999
+ var _;
5000
+ const G = (_ = A.current) == null ? void 0 : _.querySelector("textarea");
4995
5001
  G == null || G.focus();
4996
5002
  }, T = (G) => {
4997
5003
  p == null || p(G), E(!0);
4998
5004
  }, Y = (G) => {
4999
5005
  f == null || f(G), E(!1), I(!!G.target.value);
5000
5006
  }, q = k(
5001
- (G, C) => z(!!(j || G && (!C || C === ""))),
5007
+ (G, _) => z(!!(j || G && (!_ || _ === ""))),
5002
5008
  [j]
5003
5009
  );
5004
5010
  return O(() => {
5005
- q(x, u), I(!!u);
5006
- }, [u, x, q]), /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${h || ""}`, children: [
5011
+ q(m, u), I(!!u);
5012
+ }, [u, m, q]), /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${h || ""}`, children: [
5007
5013
  /* @__PURE__ */ e.jsxs(
5008
5014
  "div",
5009
5015
  {
@@ -5039,18 +5045,18 @@ const Qn = ne.forwardRef(
5039
5045
  onFocus: T,
5040
5046
  onBlur: Y,
5041
5047
  onKeyDown: F,
5042
- autoFocus: _,
5048
+ autoFocus: C,
5043
5049
  "aria-invalid": w,
5044
5050
  "aria-describedby": w ? `${d}-error` : void 0
5045
5051
  }
5046
5052
  ),
5047
- m && /* @__PURE__ */ e.jsx(
5053
+ x && /* @__PURE__ */ e.jsx(
5048
5054
  "label",
5049
5055
  {
5050
5056
  htmlFor: S,
5051
5057
  onClick: L,
5052
5058
  className: `input-field__input-container__label input-field__text-area__label ${N ? "input-field__input-container__label_filled" : ""}`,
5053
- children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
5059
+ children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: x })
5054
5060
  }
5055
5061
  )
5056
5062
  ] }),
@@ -5069,7 +5075,7 @@ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
5069
5075
  n(h), a(!0);
5070
5076
  }, [n]), u = k((h) => {
5071
5077
  t(h), a(!1);
5072
- }, [t]), m = k(() => {
5078
+ }, [t]), x = k(() => {
5073
5079
  a(!1), l();
5074
5080
  }, []);
5075
5081
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -5088,7 +5094,7 @@ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
5088
5094
  /* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: c ? /* @__PURE__ */ e.jsx(Ur, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Yr, { setHours: d }) }),
5089
5095
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5090
5096
  /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Rn, {}) }),
5091
- /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: m, children: "Cancel" }),
5097
+ /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: x, children: "Cancel" }),
5092
5098
  /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: o, children: "OK" })
5093
5099
  ] })
5094
5100
  ] });
@@ -5197,28 +5203,28 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5197
5203
  disabled: a = !1,
5198
5204
  errorText: d,
5199
5205
  helperText: u,
5200
- ariaLabel: m,
5206
+ ariaLabel: x,
5201
5207
  size: h = "medium",
5202
- ariaLabelledby: x,
5208
+ ariaLabelledby: m,
5203
5209
  placeholder: p,
5204
5210
  onBlur: f,
5205
5211
  onFocus: j,
5206
- style: _,
5212
+ style: C,
5207
5213
  ...b
5208
5214
  }) => {
5209
5215
  const [y, v] = g(s), [M, F] = g(!1), [B, A] = g(!1), [w, z] = g(!!s), D = Be(), E = o || !!d;
5210
5216
  O(() => {
5211
5217
  v(s);
5212
5218
  }, [s]);
5213
- const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (C, $) => {
5214
- const H = String(C).padStart(2, "0"), K = String($).padStart(2, "0"), J = `${H}:${K}`;
5219
+ const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (_, $) => {
5220
+ const H = String(_).padStart(2, "0"), K = String($).padStart(2, "0"), J = `${H}:${K}`;
5215
5221
  v(J), t == null || t(J);
5216
5222
  }, S = () => {
5217
5223
  a || F(!0);
5218
- }, L = (C) => {
5219
- j == null || j(C), A(!0);
5220
- }, T = (C) => {
5221
- f == null || f(C), A(!1), z(!!C.target.value);
5224
+ }, L = (_) => {
5225
+ j == null || j(_), A(!0);
5226
+ }, T = (_) => {
5227
+ f == null || f(_), A(!1), z(!!_.target.value);
5222
5228
  };
5223
5229
  O(() => {
5224
5230
  z(!!s);
@@ -5255,7 +5261,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5255
5261
  ${a ? "input-field_disabled" : ""}
5256
5262
  `,
5257
5263
  "aria-disabled": a,
5258
- style: _,
5264
+ style: C,
5259
5265
  children: [
5260
5266
  /* @__PURE__ */ e.jsx(
5261
5267
  "div",
@@ -5265,11 +5271,11 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5265
5271
  "aria-label": "Открыть пикер времени",
5266
5272
  role: "button",
5267
5273
  tabIndex: a ? -1 : 0,
5268
- onKeyDown: (C) => C.key === "Enter" && S(),
5274
+ onKeyDown: (_) => _.key === "Enter" && S(),
5269
5275
  children: /* @__PURE__ */ e.jsx(en, {})
5270
5276
  }
5271
5277
  ),
5272
- /* @__PURE__ */ e.jsxs("div", { "aria-label": m, className: "input-field__input-container", onClick: S, children: [
5278
+ /* @__PURE__ */ e.jsxs("div", { "aria-label": x, className: "input-field__input-container", onClick: S, children: [
5273
5279
  /* @__PURE__ */ e.jsx(
5274
5280
  "input",
5275
5281
  {
@@ -5282,7 +5288,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5282
5288
  onBlur: T,
5283
5289
  onFocus: L,
5284
5290
  disabled: a,
5285
- "aria-labelledby": x,
5291
+ "aria-labelledby": m,
5286
5292
  "aria-invalid": E,
5287
5293
  "aria-describedby": E && d ? `${r}-error` : u ? `${r}-helper` : void 0
5288
5294
  }
@@ -5303,7 +5309,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5303
5309
  }
5304
5310
  ),
5305
5311
  G,
5306
- M && /* @__PURE__ */ e.jsx(Ce, { container: c, children: /* @__PURE__ */ e.jsx(
5312
+ M && /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(
5307
5313
  Kr,
5308
5314
  {
5309
5315
  onHide: () => F(!1),
@@ -5324,16 +5330,16 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5324
5330
  }, [t.value]);
5325
5331
  const a = (h) => {
5326
5332
  s(Number(h.target.value)), t.onChange && t.onChange(h);
5327
- }, d = (h, x, p) => {
5333
+ }, d = (h, m, p) => {
5328
5334
  if (o.current && c.current) {
5329
5335
  let f = Ye(c.current);
5330
5336
  if (f)
5331
- return Qr(h, x, p, 0, p - x) * (f.width - 20) / (p - x);
5337
+ return Qr(h, m, p, 0, p - m) * (f.width - 20) / (p - m);
5332
5338
  }
5333
5339
  return 0;
5334
5340
  }, u = k((h) => {
5335
5341
  l(!0), t.onFocus && t.onFocus(h);
5336
- }, [t.onFocus]), m = k((h) => {
5342
+ }, [t.onFocus]), x = k((h) => {
5337
5343
  l(!1), t.onBlur && t.onBlur(h);
5338
5344
  }, [t.onBlur]);
5339
5345
  return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
@@ -5343,7 +5349,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5343
5349
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
5344
5350
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
5345
5351
  ] }) }) }),
5346
- /* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: c, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur: m })
5352
+ /* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: c, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur: x })
5347
5353
  ] }),
5348
5354
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: t.max ?? qe }) : null
5349
5355
  ] }) });
@@ -5352,11 +5358,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5352
5358
  t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
5353
5359
  o ? /* @__PURE__ */ e.jsx(ye, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
5354
5360
  ] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
5355
- const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, p] = g(!0), f = k((y, v) => {
5361
+ const [c, a] = g(""), [d, u] = g(""), [x, h] = g(!1), [m, p] = g(!0), f = k((y, v) => {
5356
5362
  s({ ...r, [v]: y });
5357
5363
  }, [s, r]), j = k(() => {
5358
5364
  u(""), a(""), h(!1);
5359
- }, []), _ = k(() => {
5365
+ }, []), C = k(() => {
5360
5366
  let y = d;
5361
5367
  try {
5362
5368
  o || (y = JSON.parse(y));
@@ -5373,18 +5379,18 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5373
5379
  t,
5374
5380
  ":",
5375
5381
  "{",
5376
- x ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
5382
+ m ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
5377
5383
  ] }),
5378
5384
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5379
5385
  ] }),
5380
- x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
5386
+ m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
5381
5387
  (y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => b(y), onChange: (M) => f(M, y), name: y, data: r[y] }) }, v)
5382
5388
  ) : null }) : null,
5383
- m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5389
+ x && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5384
5390
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "key", onChange: (y) => a(y.target.value), className: "json-base-data-input", type: "text", value: c }) }),
5385
5391
  ":",
5386
5392
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (y) => u(y.target.value), className: "json-base-data-input", type: "text", value: d }) }),
5387
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: _, children: "save" }),
5393
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: C, children: "save" }),
5388
5394
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: j, children: "cancel" })
5389
5395
  ] }) : null,
5390
5396
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
@@ -5393,34 +5399,34 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5393
5399
  ] })
5394
5400
  ] }) });
5395
5401
  }, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
5396
- const [c, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((_, b) => {
5402
+ const [c, a] = g(""), [d, u] = g(!1), [x, h] = g(!0), m = k((C, b) => {
5397
5403
  const y = r.slice();
5398
- y[b] = _, s(y);
5404
+ y[b] = C, s(y);
5399
5405
  }, [s, r]), p = k(() => {
5400
5406
  a(""), u(!1);
5401
5407
  }, []), f = k(() => {
5402
- let _ = c;
5408
+ let C = c;
5403
5409
  try {
5404
- o || (_ = JSON.parse(_));
5410
+ o || (C = JSON.parse(C));
5405
5411
  } catch {
5406
5412
  }
5407
- p(), s([...r, _]);
5408
- }, [r, s, c, p]), j = k((_) => {
5409
- s(r.filter((b, y) => y !== _));
5413
+ p(), s([...r, C]);
5414
+ }, [r, s, c, p]), j = k((C) => {
5415
+ s(r.filter((b, y) => y !== C));
5410
5416
  }, [r, s]);
5411
5417
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5412
5418
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
5413
- /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((_) => !_), children: [
5419
+ /* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => h((C) => !C), children: [
5414
5420
  t,
5415
5421
  ":",
5416
5422
  "[",
5417
- m ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
5423
+ x ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
5418
5424
  ] }),
5419
5425
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5420
5426
  ] }),
5421
- m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, b) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => j(b), onChange: (y) => x(y, b), name: String(b), data: _ }) }, b)) }) : null,
5427
+ x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((C, b) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => j(b), onChange: (y) => m(y, b), name: String(b), data: C }) }, b)) }) : null,
5422
5428
  d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5423
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "value", onChange: (_) => a(_.target.value), className: "json-base-data-input", type: "text", value: c }) }),
5429
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "value", onChange: (C) => a(C.target.value), className: "json-base-data-input", type: "text", value: c }) }),
5424
5430
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: f, children: "save" }),
5425
5431
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: p, children: "cancel" })
5426
5432
  ] }) : null,
@@ -5444,11 +5450,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5444
5450
  };
5445
5451
  var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
5446
5452
  const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: o }) => 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: o }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: o }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: o }) => {
5447
- const [c, a] = g(r || void 0), [d, u] = g(""), m = k((p) => {
5453
+ const [c, a] = g(r || void 0), [d, u] = g(""), x = k((p) => {
5448
5454
  n || (a(p), s && s(p));
5449
5455
  }, [s]), h = k(() => {
5450
5456
  n || (a(void 0), i && i());
5451
- }, [i]), x = k(() => {
5457
+ }, [i]), m = k(() => {
5452
5458
  if (n)
5453
5459
  return;
5454
5460
  let p = d;
@@ -5462,18 +5468,18 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5462
5468
  a(r);
5463
5469
  }, [r]), !c && n ? /* @__PURE__ */ e.jsx("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: "value" }) }) : c ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5464
5470
  /* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
5465
- /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: c, baseType: l, name: t, onlyStringValue: o })
5471
+ /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: x, data: c, baseType: l, name: t, onlyStringValue: o })
5466
5472
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
5467
5473
  /* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
5468
5474
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (p) => u(p.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
5469
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
5475
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: m, children: "save" })
5470
5476
  ] });
5471
5477
  }, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
5472
- const o = Z(null), [c, a] = g(""), [d, u] = g(!1), m = () => {
5478
+ const o = Z(null), [c, a] = g(""), [d, u] = g(!1), x = () => {
5473
5479
  o.current && (o.current.focus(), u(!0));
5474
5480
  }, h = () => {
5475
5481
  o.current && (o.current.focus(), o.current.value = ""), a(""), u(!0), i && r("");
5476
- }, x = () => {
5482
+ }, m = () => {
5477
5483
  h(), o.current && (o.current.blur(), u(!1));
5478
5484
  }, p = (j) => {
5479
5485
  a(j.target.value), i && r(j.target.value);
@@ -5481,9 +5487,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5481
5487
  j.code === "Enter" && r(c);
5482
5488
  };
5483
5489
  return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5484
- 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,
5490
+ d ? /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(nn, {}) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n.onClick, children: n.icon }) : t || null,
5485
5491
  /* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange: p, onKeyDown: f, value: c, onFocus: () => u(!0) }),
5486
- d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
5492
+ d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(tn, {}) })
5487
5493
  ] }) });
5488
5494
  }, rs = ({
5489
5495
  filters: n,
@@ -5501,7 +5507,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5501
5507
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
5502
5508
  }, [s, i]), !s) return null;
5503
5509
  const c = (d, u) => {
5504
- const m = t[d] || [], h = m.includes(u) ? m.filter((x) => x !== u) : [...m, u];
5510
+ const x = t[d] || [], h = x.includes(u) ? x.filter((m) => m !== u) : [...x, u];
5505
5511
  r({
5506
5512
  ...t,
5507
5513
  [d]: h
@@ -5511,8 +5517,8 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5511
5517
  left: `${l.x}px`,
5512
5518
  zIndex: 1e3
5513
5519
  };
5514
- return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: o, children: n.map(({ name: d, options: u }, m) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5515
- m !== 0 && /* @__PURE__ */ e.jsx(se, {}),
5520
+ return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: o, children: n.map(({ name: d, options: u }, x) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5521
+ x !== 0 && /* @__PURE__ */ e.jsx(se, {}),
5516
5522
  /* @__PURE__ */ e.jsx(U, { type: "title-2", weight: "bold", children: d }),
5517
5523
  /* @__PURE__ */ e.jsx("div", { className: "filter-block", children: u.map((h) => /* @__PURE__ */ e.jsxs("label", { className: "filter-field", children: [
5518
5524
  /* @__PURE__ */ e.jsx(
@@ -5535,19 +5541,19 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5535
5541
  onChangeFilter: l,
5536
5542
  border: o = !1
5537
5543
  }) => {
5538
- const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), p = () => {
5539
- c.current && (c.current.focus(), m(!0));
5544
+ const c = Z(null), [a, d] = g(""), [u, x] = g(!1), [h, m] = g(null), p = () => {
5545
+ c.current && (c.current.focus(), x(!0));
5540
5546
  }, f = () => {
5541
- c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
5547
+ c.current && (c.current.focus(), c.current.value = ""), d(""), x(!0), r && n("");
5542
5548
  }, j = () => {
5543
- f(), c.current && (c.current.blur(), m(!1));
5544
- }, _ = (v) => {
5549
+ f(), c.current && (c.current.blur(), x(!1));
5550
+ }, C = (v) => {
5545
5551
  d(v.target.value), r && n(v.target.value);
5546
5552
  }, b = (v) => {
5547
5553
  v.code === "Enter" && n(a);
5548
5554
  }, y = (v) => {
5549
5555
  const M = v.currentTarget.getBoundingClientRect();
5550
- x({
5556
+ m({
5551
5557
  x: M.left,
5552
5558
  y: M.bottom
5553
5559
  // ниже элемента
@@ -5556,10 +5562,10 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5556
5562
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5557
5563
  /* @__PURE__ */ e.jsx("div", { className: `search-container ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5558
5564
  u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: y, children: /* @__PURE__ */ e.jsx(On, {}) }),
5559
- /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown: b, value: a, onFocus: () => m(!0) }),
5565
+ /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: C, onKeyDown: b, value: a, onFocus: () => x(!0) }),
5560
5566
  u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(tn, {}) })
5561
5567
  ] }) }),
5562
- /* @__PURE__ */ e.jsx(Ce, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
5568
+ /* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => m(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
5563
5569
  ] });
5564
5570
  }, ss = ({ visible: n, text: t, option: r }) => {
5565
5571
  const [s, i] = g(n), [l, o] = g(!1);
@@ -5586,7 +5592,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5586
5592
  ]
5587
5593
  }
5588
5594
  ) : null;
5589
- }, e1 = ({
5595
+ }, ei = ({
5590
5596
  type: n,
5591
5597
  screensize: t = ee.STANDART,
5592
5598
  weight: r = "standart",
@@ -5598,15 +5604,15 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5598
5604
  onContextMenu: a,
5599
5605
  ...d
5600
5606
  }) => {
5601
- const u = Z(null), m = Z(null), [h, x] = g(!1), p = n === "heading" || n === "title" || n === "title-2", f = p ? "h3" : "span", j = {
5607
+ const u = Z(null), x = Z(null), [h, m] = g(!1), p = n === "heading" || n === "title" || n === "title-2", f = p ? "h3" : "span", j = {
5602
5608
  fontSize: bn(n, t),
5603
5609
  fontWeight: kn(n, r),
5604
5610
  lineHeight: yn(n, s, t),
5605
5611
  ...o
5606
- }, _ = p ? "typography-heading" : "typography-text", b = k(() => {
5607
- if (!u.current || !m.current) return;
5608
- const y = u.current.clientWidth, v = m.current.scrollWidth;
5609
- x(y < v);
5612
+ }, C = p ? "typography-heading" : "typography-text", b = k(() => {
5613
+ if (!u.current || !x.current) return;
5614
+ const y = u.current.clientWidth, v = x.current.scrollWidth;
5615
+ m(y < v);
5610
5616
  }, [l]);
5611
5617
  return O(() => (b(), window.addEventListener("resize", b), () => {
5612
5618
  window.removeEventListener("resize", b);
@@ -5623,7 +5629,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5623
5629
  {
5624
5630
  ...d,
5625
5631
  style: j,
5626
- className: `${_} ${i}`,
5632
+ className: `${C} ${i}`,
5627
5633
  children: h ? `| ${l} | ${l}` : l
5628
5634
  }
5629
5635
  )
@@ -5632,7 +5638,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5632
5638
  /* @__PURE__ */ e.jsx(
5633
5639
  "div",
5634
5640
  {
5635
- ref: m,
5641
+ ref: x,
5636
5642
  style: {
5637
5643
  position: "absolute",
5638
5644
  visibility: "hidden",
@@ -5640,7 +5646,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5640
5646
  whiteSpace: "nowrap",
5641
5647
  ...j
5642
5648
  },
5643
- className: `${_} ${i}`,
5649
+ className: `${C} ${i}`,
5644
5650
  children: l
5645
5651
  }
5646
5652
  )
@@ -5666,16 +5672,16 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5666
5672
  border: a,
5667
5673
  name: d,
5668
5674
  error: u,
5669
- onBlur: m,
5675
+ onBlur: x,
5670
5676
  onFocus: h,
5671
- container: x = document.body,
5677
+ container: m = document.body,
5672
5678
  size: p = "medium",
5673
5679
  transparent: f,
5674
5680
  helperText: j,
5675
- errorText: _,
5681
+ errorText: C,
5676
5682
  disabled: b
5677
5683
  }, y) => {
5678
- const [v, M] = g(""), [F, B] = g({ x: 0, y: 0, width: 100 }), [A, w] = g(!1), z = !!(u || _);
5684
+ const [v, M] = g(""), [F, B] = g({ x: 0, y: 0, width: 100 }), [A, w] = g(!1), z = !!(u || C);
5679
5685
  O(() => {
5680
5686
  M(pn(s, l ?? ""));
5681
5687
  }, [l, s]);
@@ -5713,15 +5719,15 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5713
5719
  name: d,
5714
5720
  value: v,
5715
5721
  onFocus: h,
5716
- onBlur: m,
5722
+ onBlur: x,
5717
5723
  readOnly: !0
5718
5724
  }
5719
5725
  ),
5720
5726
  /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: o ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: o }) : null })
5721
5727
  ] }) }),
5722
- z && _ && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: _ }),
5728
+ z && C && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: C }),
5723
5729
  j && !z && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: j }),
5724
- /* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: F.width, screensize: r, x: F.x, y: F.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(E) }], visible: A })
5730
+ /* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: F.width, screensize: r, x: F.x, y: F.y, onHide: () => w(!1), container: m, blocks: [{ items: s.map(E) }], visible: A })
5725
5731
  ] });
5726
5732
  }
5727
5733
  );
@@ -5743,7 +5749,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
5743
5749
  placeholder: i
5744
5750
  }
5745
5751
  ),
5746
- o && /* @__PURE__ */ e.jsx(Ce, { container: l, children: /* @__PURE__ */ e.jsx(
5752
+ o && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
5747
5753
  hr,
5748
5754
  {
5749
5755
  header: "Icons",
@@ -5807,8 +5813,8 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
5807
5813
  id: n,
5808
5814
  name: n.charAt(0).toUpperCase() + n.slice(1),
5809
5815
  component: /* @__PURE__ */ e.jsx(t, {})
5810
- })), n1 = (n) => /* @__PURE__ */ e.jsx(is, { icons: ls, ...n });
5811
- function t1(n) {
5816
+ })), ni = (n) => /* @__PURE__ */ e.jsx(is, { icons: ls, ...n });
5817
+ function ti(n) {
5812
5818
  if (n)
5813
5819
  return tt[n] ?? void 0;
5814
5820
  }
@@ -5817,7 +5823,7 @@ const as = {
5817
5823
  },
5818
5824
  hideSnackbar: () => {
5819
5825
  }
5820
- }, os = Pe(as), r1 = ({ children: n }) => {
5826
+ }, os = Pe(as), ri = ({ children: n }) => {
5821
5827
  var o;
5822
5828
  const [t, r] = g({ visible: !1, text: "" }), s = Z(null), i = k((c, a) => {
5823
5829
  r({ visible: !0, text: c, option: a }), s.current && clearTimeout(s.current), a != null && a.closeButton || (s.current = setTimeout(() => l(), (a == null ? void 0 : a.delay) ?? 3e3));
@@ -5840,7 +5846,7 @@ const as = {
5840
5846
  ] });
5841
5847
  }, rt = Pe({});
5842
5848
  function cs() {
5843
- return _e(rt);
5849
+ return Ce(rt);
5844
5850
  }
5845
5851
  function ds(n) {
5846
5852
  return typeof n == "string";
@@ -5912,7 +5918,7 @@ const fe = (n) => {
5912
5918
  onChange: a
5913
5919
  }
5914
5920
  );
5915
- }, Cs = (n) => {
5921
+ }, _s = (n) => {
5916
5922
  const { error: t, value: r, change: s, clearHandler: i } = fe(n.name);
5917
5923
  return /* @__PURE__ */ e.jsx(
5918
5924
  Ve,
@@ -5925,7 +5931,7 @@ const fe = (n) => {
5925
5931
  onClear: i
5926
5932
  }
5927
5933
  );
5928
- }, _s = (n) => {
5934
+ }, Cs = (n) => {
5929
5935
  const { error: t, value: r, change: s, clearHandler: i } = fe(n.name);
5930
5936
  return /* @__PURE__ */ e.jsx(Qn, { ...n, onChange: s, onClear: n.clear ? i : void 0, value: String(r), error: !!t, errorText: t });
5931
5937
  }, vs = (n) => {
@@ -5954,32 +5960,32 @@ const fe = (n) => {
5954
5960
  );
5955
5961
  }, bs = ve(
5956
5962
  function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: o, ...c }, a) {
5957
- const [d, u] = g(r), m = k((x) => {
5958
- x.preventDefault(), l == null || l(d);
5959
- }, [l, d]), h = k((x, p) => {
5963
+ const [d, u] = g(r), x = k((m) => {
5964
+ m.preventDefault(), l == null || l(d);
5965
+ }, [l, d]), h = k((m, p) => {
5960
5966
  u((f) => ({
5961
5967
  ...f,
5962
- [x]: p
5963
- })), o == null || o(x, p);
5968
+ [m]: p
5969
+ })), o == null || o(m, p);
5964
5970
  }, [o]);
5965
5971
  return ht(a, () => ({
5966
5972
  submit: () => l == null ? void 0 : l(d),
5967
- setFieldValue: (x, p) => {
5968
- u((f) => ({ ...f, [x]: p }));
5973
+ setFieldValue: (m, p) => {
5974
+ u((f) => ({ ...f, [m]: p }));
5969
5975
  },
5970
- setValues: (x) => u(x),
5976
+ setValues: (m) => u(m),
5971
5977
  getValues: () => d,
5972
5978
  reset: () => u(r)
5973
- }), [l, d, r]), /* @__PURE__ */ e.jsx(rt.Provider, { value: { value: d, changeField: h, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit: m, noValidate: !0, ...c, children: t }) });
5979
+ }), [l, d, r]), /* @__PURE__ */ e.jsx(rt.Provider, { value: { value: d, changeField: h, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit: x, noValidate: !0, ...c, children: t }) });
5974
5980
  }
5975
- ), s1 = Object.assign(bs, {
5976
- TextInput: Cs,
5981
+ ), si = Object.assign(bs, {
5982
+ TextInput: _s,
5977
5983
  NumberInput: xs,
5978
5984
  SelectInput: fs,
5979
5985
  SwitchField: js,
5980
5986
  SwitchButtonField: ps,
5981
5987
  MoreTextField: ms,
5982
- TextArea: _s,
5988
+ TextArea: Cs,
5983
5989
  DateField: vs,
5984
5990
  TimeField: gs
5985
5991
  });
@@ -6028,7 +6034,7 @@ export {
6028
6034
  pt as FilledButton,
6029
6035
  jt as FilledTotalButton,
6030
6036
  On as FilterIcon,
6031
- s1 as Form,
6037
+ si as Form,
6032
6038
  Ts as FullScreenTemplateDialog,
6033
6039
  yt as GearIcon,
6034
6040
  zs as GridLayout,
@@ -6042,20 +6048,20 @@ export {
6042
6048
  de as IconButton,
6043
6049
  Fs as IconButtonMenu,
6044
6050
  is as IconSelectField,
6045
- n1 as IconsSelect,
6051
+ ni as IconsSelect,
6046
6052
  qs as JsonContainer,
6047
6053
  Rn as Keyboard,
6048
6054
  Tt as LampIcon,
6049
6055
  wt as LinkIcon,
6050
- Cr as ListContainer,
6051
- _r as ListItem,
6056
+ _r as ListContainer,
6057
+ Cr as ListItem,
6052
6058
  Ft as LogoutIcon,
6053
6059
  Pn as Menu,
6054
6060
  Ln as MenuIcon,
6055
6061
  Fn as Minus,
6056
6062
  Lt as MinusUserIcon,
6057
6063
  Ze as ModalDialogTemplate,
6058
- Ce as ModalPortal,
6064
+ _e as ModalPortal,
6059
6065
  We as ModalTemplate,
6060
6066
  He as MoreHorizontal,
6061
6067
  Gr as MoreText,
@@ -6066,7 +6072,7 @@ export {
6066
6072
  Ys as NavigationRail,
6067
6073
  Jn as NumberField,
6068
6074
  Rt as OkUserIcon,
6069
- Cn as OutlineButton,
6075
+ _n as OutlineButton,
6070
6076
  wn as Palette,
6071
6077
  pr as Panel,
6072
6078
  $n as Pen,
@@ -6078,7 +6084,7 @@ export {
6078
6084
  Gn as RadioButton,
6079
6085
  Rs as Range,
6080
6086
  Vt as Room,
6081
- e1 as RunningLine,
6087
+ ei as RunningLine,
6082
6088
  ee as ScreenSize,
6083
6089
  Ps as ScrollContainer,
6084
6090
  Js as Search,
@@ -6096,7 +6102,7 @@ export {
6096
6102
  ur as SmallWindowMenu,
6097
6103
  ss as Snackbar,
6098
6104
  os as SneckbarContext,
6099
- r1 as SneckbarProvider,
6105
+ ri as SneckbarProvider,
6100
6106
  Yn as Switch,
6101
6107
  Ot as SwitchIcon,
6102
6108
  Ws as Table,
@@ -6119,15 +6125,15 @@ export {
6119
6125
  $t as XUserIcon,
6120
6126
  Te as getContainerColor,
6121
6127
  Ye as getContainerData,
6122
- t1 as getIcons,
6128
+ ti as getIcons,
6123
6129
  Hn as getModalWindowCord,
6124
6130
  re as getTextColor,
6125
6131
  qt as hexToRgb,
6126
6132
  Qr as map,
6127
6133
  er as useColors,
6128
6134
  Kt as usePopup,
6129
- Ct as useScreenSize,
6130
- _n as useScrollLock,
6135
+ _t as useScreenSize,
6136
+ Cn as useScrollLock,
6131
6137
  rr as useThemes,
6132
6138
  Ir as СalendarPickers
6133
6139
  };