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

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 T, useState as g, useRef as Z, useCallback as b, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
1
+ import te, { useEffect as V, useState as g, useRef as Y, useCallback as k, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
2
2
  import xt from "react-dom";
3
3
  import { NavLink as Qe } from "react-router-dom";
4
4
  import './index.css';var Je = { exports: {} }, Se = {};
@@ -17,16 +17,16 @@ function mt() {
17
17
  an = 1;
18
18
  var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
19
19
  function r(s, i, l) {
20
- var o = null;
21
- if (l !== void 0 && (o = "" + l), i.key !== void 0 && (o = "" + i.key), "key" in i) {
20
+ var c = null;
21
+ if (l !== void 0 && (c = "" + l), i.key !== void 0 && (c = "" + i.key), "key" in i) {
22
22
  l = {};
23
- for (var c in i)
24
- c !== "key" && (l[c] = i[c]);
23
+ for (var o in i)
24
+ o !== "key" && (l[o] = i[o]);
25
25
  } else l = i;
26
26
  return i = l.ref, {
27
27
  $$typeof: n,
28
28
  type: s,
29
- key: o,
29
+ key: c,
30
30
  ref: i !== void 0 ? i : null,
31
31
  props: l
32
32
  };
@@ -43,167 +43,167 @@ var Me = {};
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
- var on;
46
+ var cn;
47
47
  function ft() {
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) {
48
+ return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
49
+ function n(v) {
50
+ if (v == null) return null;
51
+ if (typeof v == "function")
52
+ return v.$$typeof === O ? null : v.displayName || v.name || null;
53
+ if (typeof v == "string") return v;
54
+ switch (v) {
55
55
  case p:
56
56
  return "Fragment";
57
- case k:
57
+ case y:
58
58
  return "Profiler";
59
59
  case _:
60
60
  return "StrictMode";
61
- case V:
61
+ case T:
62
62
  return "Suspense";
63
- case W:
64
- return "SuspenseList";
65
63
  case P:
64
+ return "SuspenseList";
65
+ case W:
66
66
  return "Activity";
67
67
  }
68
- if (typeof C == "object")
69
- switch (typeof C.tag == "number" && console.error(
68
+ if (typeof v == "object")
69
+ switch (typeof v.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) {
72
- case f:
71
+ ), v.$$typeof) {
72
+ case j:
73
73
  return "Portal";
74
- case v:
75
- return C.displayName || "Context";
76
- case y:
77
- return (C._context.displayName || "Context") + ".Consumer";
78
- case M:
79
- var L = C.render;
80
- return C = C.displayName, C || (C = L.displayName || L.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
81
- case z:
82
- return L = C.displayName || null, L !== null ? L : n(C.type) || "Memo";
74
+ case C:
75
+ return v.displayName || "Context";
76
+ case N:
77
+ return (v._context.displayName || "Context") + ".Consumer";
78
+ case S:
79
+ var L = v.render;
80
+ return v = v.displayName, v || (v = L.displayName || L.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
81
+ case B:
82
+ return L = v.displayName || null, L !== null ? L : n(v.type) || "Memo";
83
83
  case w:
84
- L = C._payload, C = C._init;
84
+ L = v._payload, v = v._init;
85
85
  try {
86
- return n(C(L));
86
+ return n(v(L));
87
87
  } catch {
88
88
  }
89
89
  }
90
90
  return null;
91
91
  }
92
- function t(C) {
93
- return "" + C;
92
+ function t(v) {
93
+ return "" + v;
94
94
  }
95
- function r(C) {
95
+ function r(v) {
96
96
  try {
97
- t(C);
97
+ t(v);
98
98
  var L = !1;
99
99
  } catch {
100
100
  L = !0;
101
101
  }
102
102
  if (L) {
103
103
  L = console;
104
- var H = L.error, q = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
105
- return H.call(
104
+ var R = L.error, q = typeof Symbol == "function" && Symbol.toStringTag && v[Symbol.toStringTag] || v.constructor.name || "Object";
105
+ return R.call(
106
106
  L,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
108
  q
109
- ), t(C);
109
+ ), t(v);
110
110
  }
111
111
  }
112
- function s(C) {
113
- if (C === p) return "<>";
114
- if (typeof C == "object" && C !== null && C.$$typeof === w)
112
+ function s(v) {
113
+ if (v === p) return "<>";
114
+ if (typeof v == "object" && v !== null && v.$$typeof === w)
115
115
  return "<...>";
116
116
  try {
117
- var L = n(C);
117
+ var L = n(v);
118
118
  return L ? "<" + L + ">" : "<...>";
119
119
  } catch {
120
120
  return "<...>";
121
121
  }
122
122
  }
123
123
  function i() {
124
- var C = R.A;
125
- return C === null ? null : C.getOwner();
124
+ var v = A.A;
125
+ return v === null ? null : v.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 L = Object.getOwnPropertyDescriptor(C, "key").get;
130
+ function c(v) {
131
+ if (b.call(v, "key")) {
132
+ var L = Object.getOwnPropertyDescriptor(v, "key").get;
133
133
  if (L && L.isReactWarning) return !1;
134
134
  }
135
- return C.key !== void 0;
135
+ return v.key !== void 0;
136
136
  }
137
- function c(C, L) {
138
- function H() {
137
+ function o(v, L) {
138
+ function R() {
139
139
  E || (E = !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
  L
142
142
  ));
143
143
  }
144
- H.isReactWarning = !0, Object.defineProperty(C, "key", {
145
- get: H,
144
+ R.isReactWarning = !0, Object.defineProperty(v, "key", {
145
+ get: R,
146
146
  configurable: !0
147
147
  });
148
148
  }
149
149
  function a() {
150
- var C = n(this.type);
151
- return O[C] || (O[C] = !0, console.error(
150
+ var v = n(this.type);
151
+ return U[v] || (U[v] = !0, console.error(
152
152
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
153
- )), C = this.props.ref, C !== void 0 ? C : null;
153
+ )), v = this.props.ref, v !== void 0 ? v : null;
154
154
  }
155
- function d(C, L, H, q, J, te) {
156
- var Q = H.ref;
157
- return C = {
158
- $$typeof: j,
159
- type: C,
155
+ function d(v, L, R, q, Q, ne) {
156
+ var J = R.ref;
157
+ return v = {
158
+ $$typeof: f,
159
+ type: v,
160
160
  key: L,
161
- props: H,
161
+ props: R,
162
162
  _owner: q
163
- }, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(C, "ref", {
163
+ }, (J !== void 0 ? J : null) !== null ? Object.defineProperty(v, "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(v, "ref", { enumerable: !1, value: null }), v._store = {}, Object.defineProperty(v._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(v, "_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(v, "_debugStack", {
177
177
  configurable: !1,
178
178
  enumerable: !1,
179
179
  writable: !0,
180
- value: J
181
- }), Object.defineProperty(C, "_debugTask", {
180
+ value: Q
181
+ }), Object.defineProperty(v, "_debugTask", {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
- value: te
186
- }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
185
+ value: ne
186
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
187
187
  }
188
- function u(C, L, H, q, J, te) {
189
- var Q = L.children;
190
- if (Q !== void 0)
188
+ function u(v, L, R, q, Q, ne) {
189
+ var J = L.children;
190
+ if (J !== void 0)
191
191
  if (q)
192
- if (I(Q)) {
193
- for (q = 0; q < Q.length; q++)
194
- m(Q[q]);
195
- Object.freeze && Object.freeze(Q);
192
+ if (D(J)) {
193
+ for (q = 0; q < J.length; q++)
194
+ m(J[q]);
195
+ Object.freeze && Object.freeze(J);
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);
201
- if (N.call(L, "key")) {
202
- Q = n(C);
203
- var ie = Object.keys(L).filter(function(G) {
204
- return G !== "key";
200
+ else m(J);
201
+ if (b.call(L, "key")) {
202
+ J = n(v);
203
+ var le = Object.keys(L).filter(function(Z) {
204
+ return Z !== "key";
205
205
  });
206
- q = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", Y[Q + q] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
206
+ q = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", G[J + q] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
207
207
  `A props object containing a "key" prop is being spread into JSX:
208
208
  let props = %s;
209
209
  <%s {...props} />
@@ -211,65 +211,65 @@ React keys must be passed directly to JSX without using spread:
211
211
  let props = %s;
212
212
  <%s key={someKey} {...props} />`,
213
213
  q,
214
- Q,
215
- ie,
216
- Q
217
- ), Y[Q + q] = !0);
214
+ J,
215
+ le,
216
+ J
217
+ ), G[J + q] = !0);
218
218
  }
219
- if (Q = null, H !== void 0 && (r(H), Q = "" + H), o(L) && (r(L.key), Q = "" + L.key), "key" in L) {
220
- H = {};
221
- for (var B in L)
222
- B !== "key" && (H[B] = L[B]);
223
- } else H = L;
224
- return Q && c(
225
- H,
226
- typeof C == "function" ? C.displayName || C.name || "Unknown" : C
219
+ if (J = null, R !== void 0 && (r(R), J = "" + R), c(L) && (r(L.key), J = "" + L.key), "key" in L) {
220
+ R = {};
221
+ for (var z in L)
222
+ z !== "key" && (R[z] = L[z]);
223
+ } else R = L;
224
+ return J && o(
225
+ R,
226
+ typeof v == "function" ? v.displayName || v.name || "Unknown" : v
227
227
  ), d(
228
- C,
229
- Q,
230
- H,
231
- i(),
228
+ v,
232
229
  J,
233
- te
230
+ R,
231
+ i(),
232
+ Q,
233
+ ne
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 m(v) {
237
+ h(v) ? v._store && (v._store.validated = 1) : typeof v == "object" && v !== null && v.$$typeof === w && (v._payload.status === "fulfilled" ? h(v._payload.value) && v._payload.value._store && (v._payload.value._store.validated = 1) : v._store && (v._store.validated = 1));
238
238
  }
239
- function h(C) {
240
- return typeof C == "object" && C !== null && C.$$typeof === j;
239
+ function h(v) {
240
+ return typeof v == "object" && v !== null && v.$$typeof === f;
241
241
  }
242
- var x = ne, j = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), R = 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 x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), C = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, b = Object.prototype.hasOwnProperty, D = Array.isArray, M = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  x = {
246
- react_stack_bottom_frame: function(C) {
247
- return C();
246
+ react_stack_bottom_frame: function(v) {
247
+ return v();
248
248
  }
249
249
  };
250
- var E, O = {}, A = x.react_stack_bottom_frame.bind(
250
+ var E, U = {}, I = x.react_stack_bottom_frame.bind(
251
251
  x,
252
252
  l
253
- )(), K = S(s(l)), Y = {};
254
- Me.Fragment = p, Me.jsx = function(C, L, H) {
255
- var q = 1e4 > R.recentlyCreatedOwnerStacks++;
253
+ )(), H = M(s(l)), G = {};
254
+ Me.Fragment = p, Me.jsx = function(v, L, R) {
255
+ var q = 1e4 > A.recentlyCreatedOwnerStacks++;
256
256
  return u(
257
- C,
257
+ v,
258
258
  L,
259
- H,
259
+ R,
260
260
  !1,
261
- q ? Error("react-stack-top-frame") : A,
262
- q ? S(s(C)) : K
261
+ q ? Error("react-stack-top-frame") : I,
262
+ q ? M(s(v)) : H
263
263
  );
264
- }, Me.jsxs = function(C, L, H) {
265
- var q = 1e4 > R.recentlyCreatedOwnerStacks++;
264
+ }, Me.jsxs = function(v, L, R) {
265
+ var q = 1e4 > A.recentlyCreatedOwnerStacks++;
266
266
  return u(
267
- C,
267
+ v,
268
268
  L,
269
- H,
269
+ R,
270
270
  !0,
271
- q ? Error("react-stack-top-frame") : A,
272
- q ? S(s(C)) : K
271
+ q ? Error("react-stack-top-frame") : I,
272
+ q ? M(s(v)) : H
273
273
  );
274
274
  };
275
275
  }()), Me;
@@ -282,7 +282,7 @@ const _n = (n) => /* @__PURE__ */ e.jsx(
282
282
  ...n,
283
283
  className: (n.className ?? "") + " outline-button"
284
284
  }
285
- ), ce = (n) => /* @__PURE__ */ e.jsx(
285
+ ), de = (n) => /* @__PURE__ */ e.jsx(
286
286
  Fe,
287
287
  {
288
288
  ...n,
@@ -305,8 +305,8 @@ const _n = (n) => /* @__PURE__ */ e.jsx(
305
305
  t.onClick && t.onClick(i);
306
306
  let l = document.createElement("span");
307
307
  l.classList.add("btn-overlay");
308
- let o = i.pageX - i.currentTarget.offsetLeft, c = i.pageY - i.currentTarget.offsetTop;
309
- l.style.left = o + "px", l.style.top = c + "px", i.currentTarget.appendChild(l), setTimeout(() => {
308
+ let c = i.pageX - i.currentTarget.offsetLeft, o = i.pageY - i.currentTarget.offsetTop;
309
+ l.style.left = c + "px", l.style.top = o + "px", i.currentTarget.appendChild(l), setTimeout(() => {
310
310
  l.remove();
311
311
  }, 500);
312
312
  }, s = {
@@ -315,8 +315,8 @@ const _n = (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(_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
- T(() => {
318
+ }, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(_n, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(de, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(jt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(pt, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), Cn = (n, t) => {
319
+ V(() => {
320
320
  if (n) {
321
321
  const r = window.innerWidth - document.documentElement.clientWidth;
322
322
  t.style.overflow = "hidden", t.style.paddingRight = `${r}px`;
@@ -349,28 +349,28 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
349
349
  }
350
350
  );
351
351
  }, vn = ({ bottom: n = 0, ...t }) => {
352
- const [r, s] = g(!1), [i, l] = g(!0), o = Z(null), c = b(() => {
352
+ const [r, s] = g(!1), [i, l] = g(!0), c = Y(null), o = k(() => {
353
353
  s(!0), setTimeout(() => {
354
354
  t.onHide(), s(!1), l(!0);
355
355
  }, 200);
356
356
  }, [t.onHide]);
357
- T(() => {
357
+ V(() => {
358
358
  t.visible && l(!1);
359
- }, [t.visible]), T(() => {
360
- !t.visible && !i && c();
361
- }, [t.visible, c, i]);
362
- const a = b((h) => {
363
- window.innerHeight - h.changedTouches[0].clientY <= 150 && c(), o.current && (o.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
364
- }, [c]), d = (h) => {
365
- window.innerHeight - h.clientY + 20 <= 150 && c(), o.current && (o.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
359
+ }, [t.visible]), V(() => {
360
+ !t.visible && !i && o();
361
+ }, [t.visible, o, i]);
362
+ const a = k((h) => {
363
+ window.innerHeight - h.changedTouches[0].clientY <= 150 && o(), c.current && (c.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
364
+ }, [o]), d = (h) => {
365
+ window.innerHeight - h.clientY + 20 <= 150 && o(), c.current && (c.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
366
366
  }, u = () => {
367
367
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
368
368
  }, m = () => {
369
369
  document.body.addEventListener("mousemove", d), document.body.addEventListener("mouseup", u);
370
370
  };
371
- return T(() => () => {
371
+ return V(() => () => {
372
372
  document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
373
- }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: c, children: /* @__PURE__ */ e.jsxs("div", { ref: o, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
373
+ }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: o, children: /* @__PURE__ */ e.jsxs("div", { ref: c, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
374
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", {}) }),
375
375
  /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
376
376
  ] }) });
@@ -387,12 +387,12 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
387
387
  mobileSize: n.mobileSize ?? ge.mobileSize
388
388
  };
389
389
  t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = ge.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize, t.bigSize = ge.bigSize);
390
- const [r, s] = g(ee.STANDART), i = b(() => {
390
+ const [r, s] = g(ee.STANDART), i = k(() => {
391
391
  window.innerWidth < t.mobileSize ? s(ee.MOBILE) : window.innerWidth < t.bigSize ? s(ee.STANDART) : s(ee.BIG_SCREEN);
392
392
  }, [window.innerWidth]);
393
- return T(() => {
393
+ return V(() => {
394
394
  i();
395
- }, [i]), T(() => (window.addEventListener("resize", i), () => {
395
+ }, [i]), V(() => (window.addEventListener("resize", i), () => {
396
396
  window.removeEventListener("resize", i);
397
397
  }), [i]), { screen: r };
398
398
  }, Ct = {
@@ -400,15 +400,15 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
400
400
  }, we = Pe(Ct), ws = ({ children: n, option: t }) => {
401
401
  const r = _t(t);
402
402
  return /* @__PURE__ */ e.jsx(we.Provider, { value: r, children: n });
403
- }, U = ({
403
+ }, X = ({
404
404
  type: n,
405
405
  screensize: t = ee.STANDART,
406
406
  weight: r = "standart",
407
407
  density: s = "normal",
408
408
  children: i,
409
409
  style: l,
410
- className: o = "",
411
- ...c
410
+ className: c = "",
411
+ ...o
412
412
  }) => {
413
413
  const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
414
414
  fontSize: bn(n, d),
@@ -419,13 +419,13 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
419
419
  return /* @__PURE__ */ e.jsx(
420
420
  m,
421
421
  {
422
- ...c,
422
+ ...o,
423
423
  style: h,
424
- className: `${x} ${o}`,
424
+ className: `${x} ${c}`,
425
425
  children: i
426
426
  }
427
427
  );
428
- }, ue = ne.forwardRef(
428
+ }, ue = te.forwardRef(
429
429
  ({
430
430
  icon: n,
431
431
  className: t = "",
@@ -433,23 +433,23 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
433
433
  transparent: s = !1,
434
434
  size: i = "medium",
435
435
  onClick: l,
436
- onContextMenu: o,
437
- disabled: c = !1,
436
+ onContextMenu: c,
437
+ disabled: o = !1,
438
438
  style: a,
439
439
  rippleDisabled: d = !1,
440
440
  shadow: u = 0,
441
441
  ...m
442
442
  }, h) => {
443
- const x = b(
444
- (f) => {
445
- c || (l == null || l(f), !d && j(f));
443
+ const x = k(
444
+ (j) => {
445
+ o || (l == null || l(j), !d && f(j));
446
446
  },
447
- [l, c]
448
- ), j = (f) => {
449
- const p = f.currentTarget, _ = document.createElement("span"), k = Math.max(p.clientWidth, p.clientHeight), y = k / 2;
450
- _.style.width = _.style.height = `${k}px`, _.style.left = `${f.clientX - p.getBoundingClientRect().left - y}px`, _.style.top = `${f.clientY - p.getBoundingClientRect().top - y}px`, _.classList.add("iconbutton-ripple");
451
- const v = p.getElementsByClassName("iconbutton-ripple")[0];
452
- v && v.remove(), p.appendChild(_);
447
+ [l, o]
448
+ ), f = (j) => {
449
+ const p = j.currentTarget, _ = document.createElement("span"), y = Math.max(p.clientWidth, p.clientHeight), N = y / 2;
450
+ _.style.width = _.style.height = `${y}px`, _.style.left = `${j.clientX - p.getBoundingClientRect().left - N}px`, _.style.top = `${j.clientY - p.getBoundingClientRect().top - N}px`, _.classList.add("iconbutton-ripple");
451
+ const C = p.getElementsByClassName("iconbutton-ripple")[0];
452
+ C && C.remove(), p.appendChild(_);
453
453
  };
454
454
  return /* @__PURE__ */ e.jsx(
455
455
  "button",
@@ -461,9 +461,9 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
461
461
  },
462
462
  className: `iconbutton iconbutton--${i} ${t} container_shadow-hover-${u}`,
463
463
  onClick: x,
464
- onContextMenu: o,
465
- disabled: c,
466
- "aria-disabled": c,
464
+ onContextMenu: c,
465
+ disabled: o,
466
+ "aria-disabled": o,
467
467
  ...m,
468
468
  children: /* @__PURE__ */ e.jsx("div", { className: `iconbutton-container ${r}`, children: n })
469
469
  }
@@ -471,7 +471,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
471
471
  }
472
472
  );
473
473
  ue.displayName = "IconButton";
474
- const $ = ne.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24", size: i, primaryColor: l, secondaryColor: o, tertiaryColor: c, baseColor: a, ...d }, u) => /* @__PURE__ */ e.jsx(
474
+ const $ = te.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24", size: i, primaryColor: l, secondaryColor: c, tertiaryColor: o, baseColor: a, ...d }, u) => /* @__PURE__ */ e.jsx(
475
475
  "svg",
476
476
  {
477
477
  role: d.role,
@@ -492,7 +492,7 @@ function F(n) {
492
492
  tertiaryColor: n.tertiaryColor ?? n.baseColor ?? "var(--icon-tertiary)"
493
493
  };
494
494
  }
495
- const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), de = (n) => /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
495
+ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), ie = (n) => /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
496
496
  /* @__PURE__ */ e.jsx("rect", { id: "Rectangle", fillRule: "nonzero", x: "0", y: "0", width: "24", height: "24" }),
497
497
  /* @__PURE__ */ e.jsx("line", { x1: "16.9999", y1: "7", x2: "7.00001", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" }),
498
498
  /* @__PURE__ */ e.jsx("line", { x1: "7.00006", y1: "7", x2: "17", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" })
@@ -1786,8 +1786,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1786
1786
  action: s,
1787
1787
  onHide: i,
1788
1788
  style: l,
1789
- clearStyle: o = !1,
1790
- disableBackplate: c,
1789
+ clearStyle: c = !1,
1790
+ disableBackplate: o,
1791
1791
  marginBottom: a,
1792
1792
  maxWidth: d = "560px",
1793
1793
  showCloseButton: u = !1,
@@ -1804,25 +1804,25 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1804
1804
  We,
1805
1805
  {
1806
1806
  onHide: h,
1807
- disableBackplate: c,
1807
+ disableBackplate: o,
1808
1808
  children: /* @__PURE__ */ e.jsxs(
1809
1809
  "div",
1810
1810
  {
1811
1811
  style: x,
1812
- className: `${o ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
1812
+ className: `${c ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
1813
1813
  role: "dialog",
1814
1814
  "aria-modal": "true",
1815
1815
  "aria-label": m || r,
1816
1816
  children: [
1817
1817
  r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
1818
- /* @__PURE__ */ e.jsx(U, { type: "heading", children: r }),
1818
+ /* @__PURE__ */ e.jsx(X, { type: "heading", children: r }),
1819
1819
  u && /* @__PURE__ */ e.jsx(
1820
1820
  ue,
1821
1821
  {
1822
1822
  className: "dialog-template__container__header__button dialog-template__container__header__button_color_surface-container",
1823
1823
  onClick: h,
1824
1824
  "aria-label": "Close dialog",
1825
- icon: /* @__PURE__ */ e.jsx(de, {})
1825
+ icon: /* @__PURE__ */ e.jsx(ie, {})
1826
1826
  }
1827
1827
  )
1828
1828
  ] }),
@@ -1842,8 +1842,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1842
1842
  const { screen: i } = Ce(we);
1843
1843
  Cn(!0, document.body);
1844
1844
  const l = () => {
1845
- var c;
1846
- (c = s.onHide) == null || c.call(s);
1845
+ var o;
1846
+ (o = s.onHide) == null || o.call(s);
1847
1847
  };
1848
1848
  return t || !r && i === ee.MOBILE ? /* @__PURE__ */ e.jsx(
1849
1849
  vn,
@@ -1857,7 +1857,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1857
1857
  style: s.style,
1858
1858
  className: `dialog-bottom ${s.className || ""}`,
1859
1859
  children: [
1860
- s.header && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__header", children: /* @__PURE__ */ e.jsx(U, { type: "heading", children: s.header }) }),
1860
+ s.header && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__header", children: /* @__PURE__ */ e.jsx(X, { type: "heading", children: s.header }) }),
1861
1861
  /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content dialog-bottom__content_color_text-surface-color", children: /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content__scroll", children: s.children }) }),
1862
1862
  s.action && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__action", children: s.action })
1863
1863
  ]
@@ -1893,18 +1893,18 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1893
1893
  actionText: s,
1894
1894
  cancelText: i = "Отмена",
1895
1895
  onSuccess: l,
1896
- onCancel: o,
1897
- onHide: c,
1896
+ onCancel: c,
1897
+ onHide: o,
1898
1898
  children: a,
1899
1899
  disableDefaultButtons: d = !1,
1900
1900
  customActions: u,
1901
1901
  btns: m
1902
1902
  }) => {
1903
- const h = b(() => {
1904
- l == null || l(), c == null || c();
1905
- }, [l, c]), x = b(() => {
1906
- o == null || o(), c == null || c();
1907
- }, [o, c]), j = b(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1903
+ const h = k(() => {
1904
+ l == null || l(), o == null || o();
1905
+ }, [l, o]), x = k(() => {
1906
+ c == null || c(), o == null || o();
1907
+ }, [c, o]), f = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
1908
1908
  {
1909
1909
  text: i,
1910
1910
  hide: !0,
@@ -1921,9 +1921,9 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1921
1921
  style: n,
1922
1922
  header: r,
1923
1923
  onHide: x,
1924
- action: j(),
1924
+ action: f(),
1925
1925
  children: [
1926
- t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
1926
+ t && /* @__PURE__ */ e.jsx(X, { type: "body", children: t }),
1927
1927
  a
1928
1928
  ]
1929
1929
  }
@@ -1932,21 +1932,21 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1932
1932
  n,
1933
1933
  t
1934
1934
  ) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
1935
- const [o, c] = g(null);
1935
+ const [c, o] = g(null);
1936
1936
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1937
- /* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: c }),
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) }) })
1937
+ /* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: o }),
1938
+ c !== null && /* @__PURE__ */ e.jsx(_e, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(c), onHide: () => o(null) }) })
1939
1939
  ] });
1940
- }, cn = ({
1940
+ }, on = ({
1941
1941
  text: n,
1942
1942
  supportText: t = !0,
1943
1943
  copiedTimeout: r = 2e3,
1944
1944
  className: s = "",
1945
1945
  onClick: i,
1946
1946
  disabled: l,
1947
- ...o
1947
+ ...c
1948
1948
  }) => {
1949
- const [c, a] = g(!1), d = b(async (h) => {
1949
+ const [o, a] = g(!1), d = k(async (h) => {
1950
1950
  if (!l) {
1951
1951
  try {
1952
1952
  await navigator.clipboard.writeText(n), a(!0), setTimeout(() => a(!1), r);
@@ -1955,7 +1955,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1955
1955
  }
1956
1956
  i == null || i(h);
1957
1957
  }
1958
- }, [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 = o ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }), m = o ? "Скопировано!" : "Копировать";
1959
1959
  return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
1960
1960
  /* @__PURE__ */ e.jsx(
1961
1961
  ue,
@@ -1965,10 +1965,10 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1965
1965
  disabled: l,
1966
1966
  "aria-label": `${m} ${n}`,
1967
1967
  className: s,
1968
- ...o
1968
+ ...c
1969
1969
  }
1970
1970
  ),
1971
- /* @__PURE__ */ e.jsx(U, { type: "body", "aria-live": "polite", children: m })
1971
+ /* @__PURE__ */ e.jsx(X, { type: "body", "aria-live": "polite", children: m })
1972
1972
  ] }) : /* @__PURE__ */ e.jsx(
1973
1973
  ue,
1974
1974
  {
@@ -1977,7 +1977,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
1977
1977
  disabled: l,
1978
1978
  "aria-label": `${m} ${n}`,
1979
1979
  className: s,
1980
- ...o
1980
+ ...c
1981
1981
  }
1982
1982
  );
1983
1983
  };
@@ -1986,7 +1986,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
1986
1986
  const [t, r] = g(
1987
1987
  2
1988
1988
  /* CLOSE */
1989
- ), s = Z(null), i = Z(null), l = () => {
1989
+ ), s = Y(null), i = Y(null), l = () => {
1990
1990
  r(
1991
1991
  1
1992
1992
  /* HIDING */
@@ -1996,7 +1996,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
1996
1996
  /* CLOSE */
1997
1997
  );
1998
1998
  }, 500);
1999
- }, o = () => {
1999
+ }, c = () => {
2000
2000
  r(
2001
2001
  0
2002
2002
  /* OPEN */
@@ -2004,10 +2004,10 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
2004
2004
  l();
2005
2005
  }, n));
2006
2006
  };
2007
- return T(() => () => {
2007
+ return V(() => () => {
2008
2008
  s.current && window.clearTimeout(s.current), i.current && window.clearTimeout(i.current);
2009
2009
  }, []), {
2010
- showPopup: o,
2010
+ showPopup: c,
2011
2011
  popupState: t,
2012
2012
  hidePopup: l
2013
2013
  };
@@ -2035,8 +2035,8 @@ function Ls(n, t, r) {
2035
2035
  return s != 0 && (s == 1 ? t = 0 : s < 0.5 ? t = t * r / (s * 2) : t = t * r / (2 - s * 2)), { h: n, s: t, l: s };
2036
2036
  }
2037
2037
  function Le(n, t, r) {
2038
- var s, i, l, o, c, a, d, u;
2039
- switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h), o = Math.floor(n * 6), c = n * 6 - o, a = r * (1 - t), d = r * (1 - c * t), u = r * (1 - (1 - c) * t), o % 6) {
2038
+ var s, i, l, c, o, a, d, u;
2039
+ switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h), c = Math.floor(n * 6), o = n * 6 - c, a = r * (1 - t), d = r * (1 - o * t), u = r * (1 - (1 - o) * t), c % 6) {
2040
2040
  case 0:
2041
2041
  s = r, i = u, l = a;
2042
2042
  break;
@@ -2071,31 +2071,31 @@ function ke(n, t = !1) {
2071
2071
  }
2072
2072
  function De(n, t, r) {
2073
2073
  arguments.length === 1 && (t = n.g, r = n.b, n = n.r);
2074
- var s = Math.max(n, t, r), i = Math.min(n, t, r), l = s - i, o, c = s === 0 ? 0 : l / s, a = s / 255;
2074
+ var s = Math.max(n, t, r), i = Math.min(n, t, r), l = s - i, c, o = s === 0 ? 0 : l / s, a = s / 255;
2075
2075
  switch (s) {
2076
2076
  case i:
2077
- o = 0;
2077
+ c = 0;
2078
2078
  break;
2079
2079
  case n:
2080
- o = t - r + l * (t < r ? 6 : 0), o /= 6 * l;
2080
+ c = t - r + l * (t < r ? 6 : 0), c /= 6 * l;
2081
2081
  break;
2082
2082
  case t:
2083
- o = r - n + l * 2, o /= 6 * l;
2083
+ c = r - n + l * 2, c /= 6 * l;
2084
2084
  break;
2085
2085
  case r:
2086
- o = n - t + l * 4, o /= 6 * l;
2086
+ c = n - t + l * 4, c /= 6 * l;
2087
2087
  break;
2088
2088
  }
2089
2089
  return {
2090
- h: o,
2091
- s: c,
2090
+ h: c,
2091
+ s: o,
2092
2092
  v: a
2093
2093
  };
2094
2094
  }
2095
2095
  function Ne(n) {
2096
2096
  var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
2097
- n = n.replace(t, function(s, i, l, o) {
2098
- return i + i + l + l + o + o;
2097
+ n = n.replace(t, function(s, i, l, c) {
2098
+ return i + i + l + l + c + c;
2099
2099
  });
2100
2100
  var r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
2101
2101
  return r ? {
@@ -2113,23 +2113,23 @@ const qt = Ne, Jt = (n) => {
2113
2113
  function Dn(n, t, r) {
2114
2114
  if (n === 0) return r ?? "#e0e0e0";
2115
2115
  if (n === 1) return t;
2116
- const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, 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
+ const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, c = (s == null ? void 0 : s.b) ?? 224, o = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (o - i)), m = Math.round(l + n * (a - l)), h = Math.round(c + n * (d - c));
2117
2117
  return `rgb(${u}, ${m}, ${h})`;
2118
2118
  }
2119
- const ae = (n, t, r = "", s) => {
2120
- let i, l, o, c, a, d, u, m = Math.round, h = typeof r == "string";
2121
- if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, a = 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;
2122
- 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));
2119
+ const ce = (n, t, r = "", s) => {
2120
+ let i, l, c, o, a, d, u, m = Math.round, h = typeof r == "string";
2121
+ if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, a = ce.pSBCr(t), o = n < 0, d = r && typeof r == "string" && r != "c" ? ce.pSBCr(r) : o ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = o ? n * -1 : n, o = 1 - n, !a || !d)) return null;
2122
+ s ? (i = m(o * (a.r ?? 0) + n * (d.r ?? 0)), l = m(o * (a.g ?? 0) + n * (d.g ?? 0)), c = m(o * (a.b ?? 0) + n * (d.b ?? 0))) : (i = m((o * (a.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = m((o * (a.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), c = m((o * (a.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
2123
2123
  let x = a.a ?? 1;
2124
- return d = d.a ?? 1, a = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * 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);
2124
+ return d = d.a ?? 1, a = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * o + d * n : 0, u ? "rgb" + (a ? "a(" : "(") + i + "," + l + "," + c + (a ? "," + m(x * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + c * 256 + (a ? m(x * 255) : 0)).toString(16).slice(1, a ? void 0 : -2);
2125
2125
  };
2126
- ae.pSBCr = (n) => {
2126
+ ce.pSBCr = (n) => {
2127
2127
  const t = parseInt;
2128
2128
  let r = n.length, s = {};
2129
2129
  if (r > 9) {
2130
- const i = n.split(","), [l, o, c, a] = i;
2130
+ const i = n.split(","), [l, c, o, a] = i;
2131
2131
  if (r = i.length, r < 3 || r > 4) return null;
2132
- s.r = t(l[3] == "a" ? l.slice(5) : l.slice(4)), s.g = t(o), s.b = t(c), s.a = a ? parseFloat(a) : -1;
2132
+ s.r = t(l[3] == "a" ? l.slice(5) : l.slice(4)), s.g = t(c), s.b = t(o), s.a = a ? parseFloat(a) : -1;
2133
2133
  } else {
2134
2134
  if (r == 8 || r == 6 || r < 4) return null;
2135
2135
  r < 6 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3] + (r > 4 ? n[4] + n[4] : ""));
@@ -2143,7 +2143,7 @@ function re(n) {
2143
2143
  return t ? t.r * 0.299 + t.g * 0.589 + t.b * 0.114 > 186 ? "#000000" : "#FFFFFF" : "#fff";
2144
2144
  }
2145
2145
  function Te(n, t = !1) {
2146
- return ae(t ? -0.6 : 0.3, n) ?? n;
2146
+ return ce(t ? -0.6 : 0.3, n) ?? n;
2147
2147
  }
2148
2148
  const In = {
2149
2149
  // BaseColor
@@ -2230,7 +2230,7 @@ const In = {
2230
2230
  };
2231
2231
  },
2232
2232
  Surface_container_color: (n, t) => {
2233
- const r = ae(t ? -0.2 : 0.2, n) ?? n, s = ae(t ? -0.4 : 0.4, n) ?? n, i = ae(t ? 0.2 : -0.2, n) ?? n, l = ae(t ? 0.4 : -0.4, n) ?? n, o = ae(t ? -0.5 : 0.5, n) ?? n;
2233
+ const r = ce(t ? -0.2 : 0.2, n) ?? n, s = ce(t ? -0.4 : 0.4, n) ?? n, i = ce(t ? 0.2 : -0.2, n) ?? n, l = ce(t ? 0.4 : -0.4, n) ?? n, c = ce(t ? -0.5 : 0.5, n) ?? n;
2234
2234
  return {
2235
2235
  Surface_container_color: n,
2236
2236
  On_surface_color: re(n),
@@ -2238,17 +2238,17 @@ const In = {
2238
2238
  Surface_container_lowest_color: s,
2239
2239
  Surface_container_high_color: i,
2240
2240
  Surface_container_highest_color: l,
2241
- Surface_container_hover_color: o,
2242
- On_surface_variant_color: ae(t ? -0.6 : 0.4, re(n)) ?? re(n)
2241
+ Surface_container_hover_color: c,
2242
+ On_surface_variant_color: ce(t ? -0.6 : 0.4, re(n)) ?? re(n)
2243
2243
  };
2244
2244
  },
2245
2245
  Outline_color: (n, t) => ({
2246
2246
  Outline_color: n,
2247
- Outline_variant_color: ae(t ? 0.1 : -0.1, n) ?? n
2247
+ Outline_variant_color: ce(t ? 0.1 : -0.1, n) ?? n
2248
2248
  })
2249
2249
  };
2250
2250
  function er(n, t = !1) {
2251
- const [r, s] = g({ ...In, ...n }), [i, l] = g(t), o = b(
2251
+ const [r, s] = g({ ...In, ...n }), [i, l] = g(t), c = k(
2252
2252
  (a, d) => {
2253
2253
  const u = Qt[a];
2254
2254
  if (!u) return;
@@ -2261,7 +2261,7 @@ function er(n, t = !1) {
2261
2261
  );
2262
2262
  return {
2263
2263
  colors: r,
2264
- setColor: o,
2264
+ setColor: c,
2265
2265
  setReverse: (a) => l(a)
2266
2266
  };
2267
2267
  }
@@ -2308,43 +2308,43 @@ const nr = {
2308
2308
  function rr(n = "light") {
2309
2309
  const [t, r] = g(
2310
2310
  Xe
2311
- ), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a = b(
2311
+ ), [s, i] = g(n), { colors: l, setColor: c, setReverse: o } = er(t[s].colors, t[s].reverse), a = k(
2312
2312
  (x) => {
2313
- const j = t[x].colors;
2314
- j && (Object.entries(j).forEach(([f, p]) => {
2315
- o(f, p);
2316
- }), c(t[x].reverse ?? !1), i(x));
2313
+ const f = t[x].colors;
2314
+ f && (Object.entries(f).forEach(([j, p]) => {
2315
+ c(j, p);
2316
+ }), o(t[x].reverse ?? !1), i(x));
2317
2317
  },
2318
- [t, o]
2318
+ [t, c]
2319
2319
  );
2320
- T(() => {
2320
+ V(() => {
2321
2321
  a(s);
2322
2322
  }, [s, a]);
2323
- const d = b(
2324
- (x, j, f) => {
2323
+ const d = k(
2324
+ (x, f, j) => {
2325
2325
  r((p) => ({
2326
2326
  ...p,
2327
2327
  [x]: {
2328
- colors: { ...p[x].colors, [j]: f },
2328
+ colors: { ...p[x].colors, [f]: j },
2329
2329
  reverse: p[x].reverse
2330
2330
  }
2331
2331
  }));
2332
2332
  },
2333
2333
  []
2334
- ), u = b((x, j = "light", f) => {
2334
+ ), u = k((x, f = "light", j) => {
2335
2335
  r((p) => ({
2336
2336
  ...p,
2337
- [x]: { colors: p[j].colors, reverse: f === void 0 ? p[j].reverse : f }
2337
+ [x]: { colors: p[f].colors, reverse: j === void 0 ? p[f].reverse : j }
2338
2338
  }));
2339
- }, []), m = b((x) => {
2340
- r((j) => {
2341
- const f = { ...j };
2342
- return delete f[x], f;
2339
+ }, []), m = k((x) => {
2340
+ r((f) => {
2341
+ const j = { ...f };
2342
+ return delete j[x], j;
2343
2343
  }), s === x && i("light");
2344
- }, [s]), h = b(
2344
+ }, [s]), h = k(
2345
2345
  (x) => {
2346
- Xe[x] && r((j) => ({
2347
- ...j,
2346
+ Xe[x] && r((f) => ({
2347
+ ...f,
2348
2348
  [x]: { ...Xe[x] }
2349
2349
  }));
2350
2350
  },
@@ -2381,76 +2381,76 @@ const $e = () => {
2381
2381
  min: s = 0,
2382
2382
  max: i = 100,
2383
2383
  step: l = 1,
2384
- strokeWidth: o = "40px",
2385
- value: c,
2384
+ strokeWidth: c = "40px",
2385
+ value: o,
2386
2386
  orientation: a = "horizontal",
2387
2387
  styleTrack: d = "base",
2388
2388
  showValue: u = !0,
2389
2389
  valueDisplayDuration: m = 2e3,
2390
2390
  ariaLabel: h = "Регулятор значения",
2391
2391
  startColor: x,
2392
- className: j = "",
2393
- ...f
2392
+ className: f = "",
2393
+ ...j
2394
2394
  }) => {
2395
- const p = Z(null), _ = Z(null), [k, y] = g(c ?? s), [v, M] = g("200px"), { colors: V } = Ce(sn), { showPopup: W, popupState: z } = Kt({ valueDisplayDuration: m }), w = n ?? V.Primary_color ?? "#0000ff";
2396
- T(() => {
2395
+ const p = Y(null), _ = Y(null), [y, N] = g(o ?? s), [C, S] = g("200px"), { colors: T } = Ce(sn), { showPopup: P, popupState: B } = Kt({ valueDisplayDuration: m }), w = n ?? T.Primary_color ?? "#0000ff";
2396
+ V(() => {
2397
2397
  var E;
2398
2398
  if (a === "vertical" && ((E = _.current) != null && E.parentElement)) {
2399
- const O = () => {
2400
- var Y, C;
2401
- const K = (C = (Y = _.current) == null ? void 0 : Y.parentElement) == null ? void 0 : C.clientHeight;
2402
- K && M(`${K}px`);
2399
+ const U = () => {
2400
+ var G, v;
2401
+ const H = (v = (G = _.current) == null ? void 0 : G.parentElement) == null ? void 0 : v.clientHeight;
2402
+ H && S(`${H}px`);
2403
2403
  };
2404
- O();
2405
- const A = new ResizeObserver(O);
2406
- return _.current.parentElement && A.observe(_.current.parentElement), () => A.disconnect();
2404
+ U();
2405
+ const I = new ResizeObserver(U);
2406
+ return _.current.parentElement && I.observe(_.current.parentElement), () => I.disconnect();
2407
2407
  }
2408
- }, [a]), T(() => {
2409
- c !== void 0 && (y(c), P());
2410
- }, [c]);
2411
- const P = b(() => {
2412
- u && W();
2413
- }, [W]), D = (E) => {
2414
- const O = parseFloat(E.target.value);
2415
- y(O), P(), r == null || r(E);
2416
- }, R = oe(
2417
- () => i !== s ? (k - s) / (i - s) * 100 : 0,
2418
- [k, s, i]
2419
- ), N = oe(() => ({
2420
- ...f.style,
2421
- [a === "vertical" ? "height" : "width"]: `${R}%`,
2422
- background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(R / 100, w, x)
2423
- }), [R, w, f.style, a, d]), I = oe(() => a === "vertical" ? {
2424
- "--range-width": o,
2425
- "--point-width": d === "point" ? o : "6px",
2408
+ }, [a]), V(() => {
2409
+ o !== void 0 && (N(o), W());
2410
+ }, [o]);
2411
+ const W = k(() => {
2412
+ u && P();
2413
+ }, [P]), O = (E) => {
2414
+ const U = parseFloat(E.target.value);
2415
+ N(U), W(), r == null || r(E);
2416
+ }, A = oe(
2417
+ () => i !== s ? (y - s) / (i - s) * 100 : 0,
2418
+ [y, s, i]
2419
+ ), b = oe(() => ({
2420
+ ...j.style,
2421
+ [a === "vertical" ? "height" : "width"]: `${A}%`,
2422
+ background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(A / 100, w, x)
2423
+ }), [A, w, j.style, a, d]), D = oe(() => a === "vertical" ? {
2424
+ "--range-width": c,
2425
+ "--point-width": d === "point" ? c : "6px",
2426
2426
  "--point-opacity": d === "point" ? "1" : "0",
2427
2427
  "--truck-color": w,
2428
2428
  width: dn,
2429
- height: v,
2430
- ...f.style
2429
+ height: C,
2430
+ ...j.style
2431
2431
  } : {
2432
- "--range-width": o,
2433
- "--point-width": d === "point" ? o : "6px",
2432
+ "--range-width": c,
2433
+ "--point-width": d === "point" ? c : "6px",
2434
2434
  "--point-opacity": d === "point" ? "1" : "0",
2435
2435
  "--truck-color": w,
2436
2436
  width: "100%",
2437
2437
  height: dn,
2438
- ...f.style
2439
- }, [a, v, f.style, o, d, w]), S = oe(() => a === "vertical" ? {
2440
- width: v
2438
+ ...j.style
2439
+ }, [a, C, j.style, c, d, w]), M = oe(() => a === "vertical" ? {
2440
+ width: C
2441
2441
  } : {
2442
2442
  width: "100%"
2443
- }, [a, v]);
2443
+ }, [a, C]);
2444
2444
  return /* @__PURE__ */ e.jsxs(
2445
2445
  "div",
2446
2446
  {
2447
2447
  ref: _,
2448
- className: `range-wrapper ${a} ${j}`,
2449
- style: I,
2448
+ className: `range-wrapper ${a} ${f}`,
2449
+ style: D,
2450
2450
  children: [
2451
2451
  /* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
2452
- /* @__PURE__ */ e.jsx("div", { className: "active-track", style: N }),
2453
- /* @__PURE__ */ e.jsx(An, { text: Math.round(k).toString(), state: z, className: "value-popup" })
2452
+ /* @__PURE__ */ e.jsx("div", { className: "active-track", style: b }),
2453
+ /* @__PURE__ */ e.jsx(An, { text: Math.round(y).toString(), state: B, className: "value-popup" })
2454
2454
  ] }),
2455
2455
  /* @__PURE__ */ e.jsx(
2456
2456
  "input",
@@ -2458,21 +2458,21 @@ const $e = () => {
2458
2458
  ref: p,
2459
2459
  type: "range",
2460
2460
  min: s,
2461
- style: S,
2461
+ style: M,
2462
2462
  max: i,
2463
2463
  step: l,
2464
- value: k,
2465
- onChange: D,
2466
- onFocus: f.onFocus,
2467
- onBlur: f.onBlur,
2464
+ value: y,
2465
+ onChange: O,
2466
+ onFocus: j.onFocus,
2467
+ onBlur: j.onBlur,
2468
2468
  className: "slider-input",
2469
2469
  "aria-orientation": a,
2470
- "aria-valuenow": k,
2470
+ "aria-valuenow": y,
2471
2471
  "aria-valuemin": s,
2472
2472
  "aria-valuemax": i,
2473
2473
  "aria-label": h,
2474
- "aria-valuetext": `${k} из ${i}`,
2475
- ...f
2474
+ "aria-valuetext": `${y} из ${i}`,
2475
+ ...j
2476
2476
  }
2477
2477
  )
2478
2478
  ]
@@ -2485,29 +2485,29 @@ const $e = () => {
2485
2485
  onChange: s,
2486
2486
  onFocus: i,
2487
2487
  onBlur: l,
2488
- styleRange: o = "circle",
2489
- styleTrack: c = "base",
2488
+ styleRange: c = "circle",
2489
+ styleTrack: o = "base",
2490
2490
  strokeWidth: a = 20,
2491
2491
  radius: d = 100,
2492
2492
  colorBg: u = "var(--Surface-container-color)",
2493
2493
  colorRange: m,
2494
2494
  pointColor: h,
2495
2495
  showBase: x = !0,
2496
- showIndicator: j = !0,
2497
- showPoint: f = !1,
2496
+ showIndicator: f = !0,
2497
+ showPoint: j = !1,
2498
2498
  rounding: p = !0,
2499
2499
  showValue: _ = !0,
2500
- style: k,
2501
- children: y,
2502
- className: v,
2503
- startColor: M
2500
+ style: y,
2501
+ children: N,
2502
+ className: C,
2503
+ startColor: S
2504
2504
  }) => {
2505
- const V = Z(null), W = Z(!1), z = d * 2, w = d * 2, P = Math.min(z, w), D = z / 2, R = w / 2, N = P / 2 - a / 2, I = c === "point" ? !1 : j, S = c === "point" ? !0 : f, { colors: E } = Ce(sn), O = m ?? E.Primary_color ?? "#0000ff", A = h ?? E.Primary_color ?? "#0000ff", [K, Y] = g(r);
2506
- T(() => {
2507
- r !== void 0 && Y(r);
2505
+ const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, b = W / 2 - a / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } = Ce(sn), U = m ?? E.Primary_color ?? "#0000ff", I = h ?? E.Primary_color ?? "#0000ff", [H, G] = g(r);
2506
+ V(() => {
2507
+ r !== void 0 && G(r);
2508
2508
  }, [r]);
2509
- const C = b(() => {
2510
- switch (o) {
2509
+ const v = k(() => {
2510
+ switch (c) {
2511
2511
  case "semicircle":
2512
2512
  return 180;
2513
2513
  case "brokenCircle":
@@ -2515,95 +2515,95 @@ const $e = () => {
2515
2515
  default:
2516
2516
  return 360;
2517
2517
  }
2518
- }, [o]), L = b(() => o === "semicircle" ? [N * Math.PI, N * Math.PI] : o === "brokenCircle" ? [N * Math.PI * 1.25, N * Math.PI * 1.5] : [N * Math.PI, N * Math.PI * 2], [o, N]), H = oe(
2519
- () => t !== n ? (K - n) / (t - n) * 100 : 0,
2520
- [K, n, t]
2521
- ), q = b(() => {
2522
- if (!V.current) return;
2523
- const [G, he] = L(), je = (K - n) * he / (t - n);
2518
+ }, [c]), L = k(() => c === "semicircle" ? [b * Math.PI, b * Math.PI] : c === "brokenCircle" ? [b * Math.PI * 1.25, b * Math.PI * 1.5] : [b * Math.PI, b * Math.PI * 2], [c, b]), R = oe(
2519
+ () => t !== n ? (H - n) / (t - n) * 100 : 0,
2520
+ [H, n, t]
2521
+ ), q = k(() => {
2522
+ if (!T.current) return;
2523
+ const [Z, he] = L(), je = (H - n) * he / (t - n);
2524
2524
  if (x) {
2525
- const X = V.current.querySelector('[data-el="base"]');
2526
- X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = G.toString(), X.style.strokeDasharray = `${he}, ${N * Math.PI * 2 - he}`);
2525
+ const K = T.current.querySelector('[data-el="base"]');
2526
+ K && (K.style.stroke = u, K.style.strokeWidth = a.toString(), K.style.strokeLinecap = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${he}, ${b * Math.PI * 2 - he}`);
2527
2527
  }
2528
- if (I) {
2529
- const X = V.current.querySelector('[data-el="indicator"]');
2530
- if (X) {
2531
- const xe = parseFloat(X.dataset.percentage ?? "");
2532
- xe !== null && (xe < H - 2 || xe > H + 2) ? X.style.transition = ".3s" : X.style.transition = W.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = c === "static-color" ? O : Dn(H / 100, O, M), X.style.strokeWidth = a.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = G.toString(), X.style.strokeDasharray = `${je}, ${N * Math.PI * 2 - je}`;
2528
+ if (D) {
2529
+ const K = T.current.querySelector('[data-el="indicator"]');
2530
+ if (K) {
2531
+ const xe = parseFloat(K.dataset.percentage ?? "");
2532
+ xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = o === "static-color" ? U : Dn(R / 100, U, S), K.style.strokeWidth = a.toString(), K.style.strokeLinecap = p ? "round" : "", K.style.strokeDashoffset = Z.toString(), K.style.strokeDasharray = `${je}, ${b * Math.PI * 2 - je}`;
2533
2533
  }
2534
2534
  }
2535
- if (S) {
2536
- const X = V.current.querySelector('[data-el="point"]');
2537
- if (X) {
2538
- const xe = parseFloat(X.dataset.percentage ?? "");
2539
- xe !== null && (xe < H - 2 || xe > H + 2) ? X.style.transition = ".3s" : X.style.transition = W.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = A, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = "round", K === t && o === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (G - je).toString(), X.style.strokeDasharray = `0, ${N * Math.PI * 2}`;
2535
+ if (M) {
2536
+ const K = T.current.querySelector('[data-el="point"]');
2537
+ if (K) {
2538
+ const xe = parseFloat(K.dataset.percentage ?? "");
2539
+ xe !== null && (xe < R - 2 || xe > R + 2) ? K.style.transition = ".3s" : K.style.transition = P.current ? "none" : ".3s", K.dataset.percentage = R.toString(), K.style.stroke = I, K.style.strokeWidth = a.toString(), K.style.strokeLinecap = "round", H === t && c === "semicircle" ? K.style.strokeDashoffset = "0" : K.style.strokeDashoffset = (Z - je).toString(), K.style.strokeDasharray = `0, ${b * Math.PI * 2}`;
2540
2540
  }
2541
2541
  }
2542
- }, [K, L, t, n, N, a, u, O, A, x, I, S, p, H, M]), J = (G) => {
2543
- W.current = !0, document.addEventListener("mousemove", te), document.addEventListener("mouseup", Q), ie(G);
2544
- }, te = (G) => {
2545
- G.preventDefault(), W.current && ie(G);
2546
- }, Q = () => {
2547
- W.current = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
2548
- }, ie = b((G) => {
2549
- if (!V.current) return;
2550
- const he = C(), je = V.current.getBoundingClientRect(), X = je.left + je.width / 2, xe = je.top + je.height / 2, st = G.clientX, it = G.clientY, lt = xe - it, at = X - st;
2551
- let le = Math.atan2(lt, at) * (180 / Math.PI);
2552
- he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he && K > (t - n) / 2 ? le = he : le > he && (le = 0);
2553
- const ot = he, ct = t - n, Ue = Math.round(le * ct / ot + n);
2554
- Y(Ue), Ue !== r && s && s(Ue);
2555
- }, [C, s, t, n, D, R, K]);
2556
- T(() => {
2542
+ }, [H, L, t, n, b, a, u, U, I, x, D, M, p, R, S]), Q = (Z) => {
2543
+ P.current = !0, document.addEventListener("mousemove", ne), document.addEventListener("mouseup", J), le(Z);
2544
+ }, ne = (Z) => {
2545
+ Z.preventDefault(), P.current && le(Z);
2546
+ }, J = () => {
2547
+ P.current = !1, document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
2548
+ }, le = k((Z) => {
2549
+ if (!T.current) return;
2550
+ const he = v(), je = T.current.getBoundingClientRect(), K = je.left + je.width / 2, xe = je.top + je.height / 2, st = Z.clientX, it = Z.clientY, lt = xe - it, at = K - st;
2551
+ let ae = Math.atan2(lt, at) * (180 / Math.PI);
2552
+ he === 270 && (ae += 45), ae < 0 && (ae = 360 + ae), ae < 0 && (ae = 0), ae > he && H > (t - n) / 2 ? ae = he : ae > he && (ae = 0);
2553
+ const ct = he, ot = t - n, Ue = Math.round(ae * ot / ct + n);
2554
+ G(Ue), Ue !== r && s && s(Ue);
2555
+ }, [v, s, t, n, O, A, H]);
2556
+ V(() => {
2557
2557
  q();
2558
- }, [q]), T(() => () => {
2559
- document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
2558
+ }, [q]), V(() => () => {
2559
+ document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
2560
2560
  }, []);
2561
- const B = {
2561
+ const z = {
2562
2562
  "--stroke-width": `${a}px`
2563
2563
  };
2564
- return /* @__PURE__ */ e.jsxs("div", { style: { width: z, height: w, ...k }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
2564
+ return /* @__PURE__ */ e.jsxs("div", { style: { width: B, height: w, ...y }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
2565
2565
  /* @__PURE__ */ e.jsxs(
2566
2566
  "svg",
2567
2567
  {
2568
- ref: V,
2568
+ ref: T,
2569
2569
  width: "100%",
2570
2570
  height: "100%",
2571
- onMouseDown: J,
2571
+ onMouseDown: Q,
2572
2572
  children: [
2573
2573
  x && /* @__PURE__ */ e.jsx(
2574
2574
  "circle",
2575
2575
  {
2576
2576
  "data-el": "base",
2577
2577
  fill: "none",
2578
- cx: D,
2579
- cy: R,
2580
- r: N
2578
+ cx: O,
2579
+ cy: A,
2580
+ r: b
2581
2581
  }
2582
2582
  ),
2583
- I && /* @__PURE__ */ e.jsx(
2583
+ D && /* @__PURE__ */ e.jsx(
2584
2584
  "circle",
2585
2585
  {
2586
2586
  "data-el": "indicator",
2587
2587
  fill: "none",
2588
- cx: D,
2589
- cy: R,
2590
- r: N
2588
+ cx: O,
2589
+ cy: A,
2590
+ r: b
2591
2591
  }
2592
2592
  ),
2593
- S && /* @__PURE__ */ e.jsx(
2593
+ M && /* @__PURE__ */ e.jsx(
2594
2594
  "circle",
2595
2595
  {
2596
2596
  "data-el": "point",
2597
2597
  fill: "none",
2598
- cx: D,
2599
- cy: R,
2600
- r: N
2598
+ cx: O,
2599
+ cy: A,
2600
+ r: b
2601
2601
  }
2602
2602
  )
2603
2603
  ]
2604
2604
  }
2605
2605
  ),
2606
- /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: B, children: y ?? (_ && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(K).toString() })) })
2606
+ /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${C}`, style: z, children: N ?? (_ && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(H).toString() })) })
2607
2607
  ] });
2608
2608
  }, ir = ve(
2609
2609
  ({
@@ -2613,17 +2613,17 @@ const $e = () => {
2613
2613
  position: s = "bottom-right",
2614
2614
  variant: i = "primary",
2615
2615
  className: l = "",
2616
- ...o
2617
- }, c) => {
2616
+ ...c
2617
+ }, o) => {
2618
2618
  const a = !!t;
2619
2619
  return /* @__PURE__ */ e.jsxs(
2620
2620
  "button",
2621
2621
  {
2622
- ref: c,
2622
+ ref: o,
2623
2623
  type: "button",
2624
2624
  className: `fab ${a ? "fab--extended" : ""} fab--${r} fab--${i} ${s !== "none" ? `fab--${s}` : ""} ${l}`,
2625
- "aria-label": a ? void 0 : o["aria-label"] || "Floating action button",
2626
- ...o,
2625
+ "aria-label": a ? void 0 : c["aria-label"] || "Floating action button",
2626
+ ...c,
2627
2627
  children: [
2628
2628
  n && /* @__PURE__ */ e.jsx("span", { className: "fab__icon", children: n }),
2629
2629
  a && /* @__PURE__ */ e.jsx("span", { className: "fab__text", children: t })
@@ -2658,59 +2658,59 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2658
2658
  }, Hn = (n, t, r, s) => {
2659
2659
  let i = { x: n, y: t };
2660
2660
  if (!r) return i;
2661
- const l = window.getComputedStyle(r), o = parseFloat(l.getPropertyValue("height")), c = parseFloat(l.getPropertyValue("width")), a = t + o - document.documentElement.clientHeight, d = n + c - document.documentElement.clientWidth;
2661
+ const l = window.getComputedStyle(r), c = parseFloat(l.getPropertyValue("height")), o = parseFloat(l.getPropertyValue("width")), a = t + c - document.documentElement.clientHeight, d = n + o - document.documentElement.clientWidth;
2662
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;
2663
2663
  }, ar = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: l }) => {
2664
- const o = Z(null), [c, a] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2664
+ const c = Y(null), [o, a] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
2665
2665
  function m(h) {
2666
2666
  for (let x of h)
2667
2667
  if (x.icon)
2668
2668
  return !0;
2669
2669
  return !1;
2670
2670
  }
2671
- return T(() => {
2672
- if (!o.current)
2671
+ return V(() => {
2672
+ if (!c.current)
2673
2673
  return;
2674
- let h = Ye(o.current.parentElement);
2674
+ let h = Ye(c.current.parentElement);
2675
2675
  if (!h)
2676
2676
  return;
2677
- let x = Hn(h.left + h.width, h.top, o.current, { marginRight: h.width });
2677
+ let x = Hn(h.left + h.width, h.top, c.current, { marginRight: h.width });
2678
2678
  a({
2679
2679
  left: x.x - h.left + "px",
2680
2680
  top: x.y - h.top + "px"
2681
2681
  }), u(!0);
2682
2682
  }, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
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, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
2683
+ /* @__PURE__ */ e.jsx("div", { ref: c, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...o, ...d ? {} : { display: "none" } }, children: n.map((h, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
2684
2684
  r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
2685
2685
  ] });
2686
- }, or = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
2687
- const [o, c] = g(!1), a = b(() => {
2688
- s.subItems ? c((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
2686
+ }, cr = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
2687
+ const [c, o] = g(!1), a = k(() => {
2688
+ s.subItems ? o((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
2689
2689
  }, [s.onClick]);
2690
2690
  return /* @__PURE__ */ e.jsxs("div", { className: `menu-item ${s.disabled ? "menu-item_disabled" : ""}`, children: [
2691
2691
  /* @__PURE__ */ e.jsxs("div", { className: "menu-item__info", onClick: a, children: [
2692
2692
  i ? /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__icon", children: s.icon }) : null,
2693
2693
  /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__text", children: s.title }),
2694
- /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${o ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(pe, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
2694
+ /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${c ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(pe, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
2695
2695
  ] }),
2696
- o && s.subItems ? /* @__PURE__ */ e.jsx(ar, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => c(!1), smallDisplay: l }) : null
2696
+ c && s.subItems ? /* @__PURE__ */ e.jsx(ar, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => o(!1), smallDisplay: l }) : null
2697
2697
  ] });
2698
2698
  };
2699
2699
  function zn({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i }) {
2700
- function l(o) {
2701
- for (let c of o.items)
2702
- if (c.icon)
2700
+ function l(c) {
2701
+ for (let o of c.items)
2702
+ if (o.icon)
2703
2703
  return !0;
2704
2704
  return !1;
2705
2705
  }
2706
- return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((o, c) => /* @__PURE__ */ e.jsx(or, { globalClick: s, autoHide: i, onHide: r, item: o, isIcon: l(n), smallDisplay: t }, c)) });
2706
+ return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((c, o) => /* @__PURE__ */ e.jsx(cr, { globalClick: s, autoHide: i, onHide: r, item: c, isIcon: l(n), smallDisplay: t }, o)) });
2707
2707
  }
2708
- const cr = 100, dr = (n) => {
2709
- const t = Z(null), [r, s] = g({ left: "0px", top: "0px" }), i = () => {
2708
+ const or = 100, dr = (n) => {
2709
+ const t = Y(null), [r, s] = g({ left: "0px", top: "0px" }), i = () => {
2710
2710
  n.onHide && n.onHide();
2711
2711
  };
2712
2712
  return dt(() => {
2713
- let l = Hn(n.x, n.y, t.current, { marginBottom: cr });
2713
+ let l = Hn(n.x, n.y, t.current, { marginBottom: or });
2714
2714
  s({
2715
2715
  left: l.x + "px",
2716
2716
  top: l.y + "px"
@@ -2721,30 +2721,30 @@ const cr = 100, dr = (n) => {
2721
2721
  ref: t,
2722
2722
  className: "base-menu base-menu_color_surface-container-high",
2723
2723
  style: { ...r, width: n.width, maxWidth: n.width ? "100%" : void 0 },
2724
- children: n.blocks.map((l, o) => /* @__PURE__ */ e.jsxs(ne.Fragment, { children: [
2725
- o !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2724
+ children: n.blocks.map((l, c) => /* @__PURE__ */ e.jsxs(te.Fragment, { children: [
2725
+ c !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2726
2726
  /* @__PURE__ */ e.jsx(zn, { block: l, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: i })
2727
- ] }, o))
2727
+ ] }, c))
2728
2728
  }
2729
2729
  ) }) : null;
2730
2730
  }, ur = (n) => {
2731
2731
  const t = () => {
2732
2732
  };
2733
- return /* @__PURE__ */ e.jsx(vn, { onHide: n.onHide || t, visible: n.visible, bottom: n.marginBottom, children: /* @__PURE__ */ e.jsx("div", { className: "small-window-menu", children: n.blocks.map((r, s) => /* @__PURE__ */ e.jsxs(ne.Fragment, { children: [
2733
+ return /* @__PURE__ */ e.jsx(vn, { onHide: n.onHide || t, visible: n.visible, bottom: n.marginBottom, children: /* @__PURE__ */ e.jsx("div", { className: "small-window-menu", children: n.blocks.map((r, s) => /* @__PURE__ */ e.jsxs(te.Fragment, { children: [
2734
2734
  s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
2735
2735
  /* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
2736
2736
  ] }, s)) }) });
2737
- }, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = 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: m } = Ce(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 = te.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, c) => {
2738
+ const [o, a] = g(!1), [d, u] = g(void 0), { screen: m } = Ce(we), h = () => {
2739
2739
  a(!1), u(void 0);
2740
- }, x = (f) => {
2741
- f.stopPropagation(), a(!0), u({ x: f.clientX, y: f.clientY }), i == null || i(f);
2742
- }, j = n ?? m;
2740
+ }, x = (j) => {
2741
+ j.stopPropagation(), a(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
2742
+ }, f = n ?? m;
2743
2743
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2744
2744
  /* @__PURE__ */ e.jsx(
2745
2745
  ue,
2746
2746
  {
2747
- ref: o,
2747
+ ref: c,
2748
2748
  onClick: x,
2749
2749
  ...l
2750
2750
  }
@@ -2752,11 +2752,11 @@ const cr = 100, dr = (n) => {
2752
2752
  /* @__PURE__ */ e.jsx(
2753
2753
  Pn,
2754
2754
  {
2755
- marginBottom: j === ee.MOBILE ? 80 : 0,
2755
+ marginBottom: f === ee.MOBILE ? 80 : 0,
2756
2756
  onHide: h,
2757
2757
  autoHide: t,
2758
2758
  screensize: n,
2759
- visible: c,
2759
+ visible: o,
2760
2760
  x: (d == null ? void 0 : d.x) ?? 0,
2761
2761
  y: (d == null ? void 0 : d.y) ?? 0,
2762
2762
  blocks: r,
@@ -2764,7 +2764,7 @@ const cr = 100, dr = (n) => {
2764
2764
  }
2765
2765
  )
2766
2766
  ] });
2767
- }), Bn = ne.forwardRef(
2767
+ }), Bn = te.forwardRef(
2768
2768
  ({
2769
2769
  name: n,
2770
2770
  checked: t,
@@ -2772,17 +2772,17 @@ const cr = 100, dr = (n) => {
2772
2772
  readOnly: s,
2773
2773
  disabled: i,
2774
2774
  checkIcon: l = /* @__PURE__ */ e.jsx(pe, { baseColor: "var(--On-primary-color)" }),
2775
- size: o = "medium",
2776
- className: c,
2775
+ size: c = "medium",
2776
+ className: o,
2777
2777
  ...a
2778
2778
  }, d) => /* @__PURE__ */ e.jsxs(
2779
2779
  "label",
2780
2780
  {
2781
2781
  className: [
2782
2782
  "checkbox-container",
2783
- `checkbox--${o}`,
2783
+ `checkbox--${c}`,
2784
2784
  i ? "checkbox--disabled" : "",
2785
- c
2785
+ o
2786
2786
  ].filter(Boolean).join(" "),
2787
2787
  children: [
2788
2788
  /* @__PURE__ */ e.jsx(
@@ -2806,32 +2806,32 @@ const cr = 100, dr = (n) => {
2806
2806
  )
2807
2807
  );
2808
2808
  Bn.displayName = "Checkbox";
2809
- const Wn = ne.forwardRef(
2810
- ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: o, ...c }, a) => {
2809
+ const Wn = te.forwardRef(
2810
+ ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: c, ...o }, a) => {
2811
2811
  const d = (m) => {
2812
2812
  m.stopPropagation(), t == null || t(m);
2813
- }, u = o ? void 0 : s;
2813
+ }, u = c ? void 0 : s;
2814
2814
  return /* @__PURE__ */ e.jsxs(
2815
2815
  "div",
2816
2816
  {
2817
- ...c,
2817
+ ...o,
2818
2818
  ref: a,
2819
- className: `chips ${r ? "chips--big" : ""} ${o ? "disabled" : ""} ${s ? "chips--clickable" : ""} ${l || ""}`,
2819
+ className: `chips ${r ? "chips--big" : ""} ${c ? "disabled" : ""} ${s ? "chips--clickable" : ""} ${l || ""}`,
2820
2820
  onClick: u,
2821
- role: c.role ?? s ? "button" : void 0,
2822
- tabIndex: c.tabIndex ?? s ? 0 : void 0,
2823
- "aria-label": c["aria-label"] ?? s ? n : void 0,
2821
+ role: o.role ?? s ? "button" : void 0,
2822
+ tabIndex: o.tabIndex ?? s ? 0 : void 0,
2823
+ "aria-label": o["aria-label"] ?? s ? n : void 0,
2824
2824
  children: [
2825
- /* @__PURE__ */ e.jsx(U, { type: "body", screensize: i, children: n }),
2825
+ /* @__PURE__ */ e.jsx(X, { type: "body", screensize: i, children: n }),
2826
2826
  t && /* @__PURE__ */ e.jsx(
2827
2827
  "button",
2828
2828
  {
2829
2829
  className: "chips__delete",
2830
2830
  onClick: d,
2831
2831
  "aria-label": `Remove ${n}`,
2832
- disabled: o,
2832
+ disabled: c,
2833
2833
  type: "button",
2834
- children: /* @__PURE__ */ e.jsx(de, {})
2834
+ children: /* @__PURE__ */ e.jsx(ie, {})
2835
2835
  }
2836
2836
  )
2837
2837
  ]
@@ -2848,15 +2848,15 @@ const Gn = ve(
2848
2848
  onChange: s,
2849
2849
  readOnly: i,
2850
2850
  checked: l,
2851
- defaultChecked: o,
2852
- label: c,
2851
+ defaultChecked: c,
2852
+ label: o,
2853
2853
  size: a = "medium",
2854
2854
  variant: d = "primary",
2855
2855
  showLabel: u = !0,
2856
2856
  className: m,
2857
2857
  ...h
2858
2858
  }, x) => {
2859
- const j = t !== void 0 ? t === r : l !== void 0 ? l : o;
2859
+ const f = t !== void 0 ? t === r : l !== void 0 ? l : c;
2860
2860
  return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
2861
2861
  /* @__PURE__ */ e.jsx(
2862
2862
  "input",
@@ -2865,17 +2865,17 @@ const Gn = ve(
2865
2865
  className: "radio-button",
2866
2866
  name: n,
2867
2867
  type: "radio",
2868
- checked: j,
2868
+ checked: f,
2869
2869
  value: r,
2870
2870
  onChange: s,
2871
2871
  readOnly: i,
2872
- "aria-checked": j,
2873
- "aria-label": c || h["aria-label"],
2872
+ "aria-checked": f,
2873
+ "aria-label": o || h["aria-label"],
2874
2874
  ...h
2875
2875
  }
2876
2876
  ),
2877
2877
  /* @__PURE__ */ e.jsx("span", { className: `radio-button-ui radio-button-ui--${a} radio-button-ui--${d}` }),
2878
- u && c && /* @__PURE__ */ e.jsx("span", { className: "radio-button-label", children: c })
2878
+ u && o && /* @__PURE__ */ e.jsx("span", { className: "radio-button-label", children: o })
2879
2879
  ] });
2880
2880
  }
2881
2881
  );
@@ -2888,55 +2888,55 @@ const Zn = ve(
2888
2888
  name: s,
2889
2889
  readOnly: i = !1,
2890
2890
  onChange: l,
2891
- className: o = "",
2892
- size: c = "medium",
2891
+ className: c = "",
2892
+ size: o = "medium",
2893
2893
  variant: a = "primary",
2894
2894
  ...d
2895
2895
  }, u) => {
2896
2896
  const [m, h] = g([]);
2897
- T(() => {
2897
+ V(() => {
2898
2898
  h(x(t));
2899
2899
  }, [t]);
2900
- const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], j = (f, p) => {
2900
+ const x = (j) => j === void 0 ? [] : Array.isArray(j) ? j : [j], f = (j, p) => {
2901
2901
  if (i) return;
2902
- f.preventDefault();
2902
+ j.preventDefault();
2903
2903
  let _;
2904
- r ? _ = m.includes(p) ? m.filter((k) => k !== p) : [...m, p] : _ = m.includes(p) ? [] : [p], h(_), l == null || l(_, f);
2904
+ r ? _ = m.includes(p) ? m.filter((y) => y !== p) : [...m, p] : _ = m.includes(p) ? [] : [p], h(_), l == null || l(_, j);
2905
2905
  };
2906
2906
  return /* @__PURE__ */ e.jsx(
2907
2907
  "div",
2908
2908
  {
2909
2909
  ref: u,
2910
- className: `segmented-button segmented-button--${c} segmented-button--${a} ${o}`,
2910
+ className: `segmented-button segmented-button--${o} segmented-button--${a} ${c}`,
2911
2911
  role: "group",
2912
2912
  ...d,
2913
- children: n.map((f) => /* @__PURE__ */ e.jsxs(
2913
+ children: n.map((j) => /* @__PURE__ */ e.jsxs(
2914
2914
  "button",
2915
2915
  {
2916
2916
  type: "button",
2917
2917
  role: "radio",
2918
- "aria-checked": m.includes(f),
2919
- "aria-label": f,
2918
+ "aria-checked": m.includes(j),
2919
+ "aria-label": j,
2920
2920
  disabled: i,
2921
- className: `segmented-button__item ${m.includes(f) ? "segmented-button__item--active" : ""}`,
2922
- onClick: (p) => j(p, f),
2921
+ className: `segmented-button__item ${m.includes(j) ? "segmented-button__item--active" : ""}`,
2922
+ onClick: (p) => f(p, j),
2923
2923
  children: [
2924
- m.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2925
- /* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: f }),
2924
+ m.includes(j) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
2925
+ /* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: j }),
2926
2926
  /* @__PURE__ */ e.jsx(
2927
2927
  "input",
2928
2928
  {
2929
2929
  type: r ? "checkbox" : "radio",
2930
2930
  name: s,
2931
- value: f,
2932
- checked: m.includes(f),
2931
+ value: j,
2932
+ checked: m.includes(j),
2933
2933
  readOnly: !0,
2934
2934
  className: "segmented-button__input"
2935
2935
  }
2936
2936
  )
2937
2937
  ]
2938
2938
  },
2939
- f
2939
+ j
2940
2940
  ))
2941
2941
  }
2942
2942
  );
@@ -2951,8 +2951,8 @@ const Yn = ve(
2951
2951
  showLabel: s = !1,
2952
2952
  labelOn: i = "On",
2953
2953
  labelOff: l = "Off",
2954
- checked: o,
2955
- onChange: c,
2954
+ checked: c,
2955
+ onChange: o,
2956
2956
  ...a
2957
2957
  }, d) => /* @__PURE__ */ e.jsxs("label", { className: `switch-container ${r}`, children: [
2958
2958
  /* @__PURE__ */ e.jsx(
@@ -2961,14 +2961,14 @@ const Yn = ve(
2961
2961
  ref: d,
2962
2962
  type: "checkbox",
2963
2963
  role: "switch",
2964
- "aria-checked": o,
2965
- checked: o,
2966
- onChange: c,
2964
+ "aria-checked": c,
2965
+ checked: c,
2966
+ onChange: o,
2967
2967
  className: `switch-input switch--${n} switch--${t}`,
2968
2968
  ...a
2969
2969
  }
2970
2970
  ),
2971
- s && /* @__PURE__ */ e.jsx("span", { className: "switch-label", children: o ? i : l })
2971
+ s && /* @__PURE__ */ e.jsx("span", { className: "switch-label", children: c ? i : l })
2972
2972
  ] })
2973
2973
  );
2974
2974
  Yn.displayName = "Switch";
@@ -2979,17 +2979,17 @@ function hr({
2979
2979
  onHide: s,
2980
2980
  noHide: i = !1,
2981
2981
  name: l = "selection_dialog",
2982
- confirmText: o = "Выбрать",
2983
- cancelText: c = "Отмена",
2982
+ confirmText: c = "Выбрать",
2983
+ cancelText: o = "Отмена",
2984
2984
  defaultValue: a,
2985
2985
  style: d
2986
2986
  }) {
2987
- const [u, m] = g(a), h = b(() => {
2987
+ const [u, m] = g(a), h = k(() => {
2988
2988
  u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
2989
- }, [u, n, i, s]), x = b(() => {
2989
+ }, [u, n, i, s]), x = k(() => {
2990
2990
  s == null || s();
2991
- }, [s]), j = b((f) => {
2992
- m(f);
2991
+ }, [s]), f = k((j) => {
2992
+ m(j);
2993
2993
  }, []);
2994
2994
  return /* @__PURE__ */ e.jsxs(
2995
2995
  Ee,
@@ -3003,8 +3003,8 @@ function hr({
3003
3003
  onHide: x,
3004
3004
  onSuccess: h,
3005
3005
  disabled: u === void 0,
3006
- confirmText: o,
3007
- cancelText: c
3006
+ confirmText: c,
3007
+ cancelText: o
3008
3008
  }
3009
3009
  ),
3010
3010
  children: [
@@ -3016,26 +3016,26 @@ function hr({
3016
3016
  scroll: !0,
3017
3017
  maxHeight: "300px",
3018
3018
  "aria-label": "Варианты выбора",
3019
- children: t.map((f, p) => /* @__PURE__ */ e.jsx(
3019
+ children: t.map((j, p) => /* @__PURE__ */ e.jsx(
3020
3020
  "label",
3021
3021
  {
3022
- "aria-disabled": f.disabled,
3022
+ "aria-disabled": j.disabled,
3023
3023
  children: /* @__PURE__ */ e.jsx(
3024
3024
  Cr,
3025
3025
  {
3026
- hovered: !f.disabled,
3027
- header: f.title,
3028
- icon: f.icon,
3029
- description: f.description,
3030
- onClick: f.disabled ? void 0 : () => j(f.data),
3026
+ hovered: !j.disabled,
3027
+ header: j.title,
3028
+ icon: j.icon,
3029
+ description: j.description,
3030
+ onClick: j.disabled ? void 0 : () => f(j.data),
3031
3031
  control: /* @__PURE__ */ e.jsx(
3032
3032
  Gn,
3033
3033
  {
3034
- onClick: f.disabled ? void 0 : () => j(f.data),
3034
+ onClick: j.disabled ? void 0 : () => f(j.data),
3035
3035
  name: l,
3036
- checked: f.data === u,
3037
- disabled: f.disabled,
3038
- "aria-label": `Выбрать ${f.title}`
3036
+ checked: j.data === u,
3037
+ disabled: j.disabled,
3038
+ "aria-label": `Выбрать ${j.title}`
3039
3039
  }
3040
3040
  )
3041
3041
  }
@@ -3060,7 +3060,7 @@ function xr({
3060
3060
  return /* @__PURE__ */ e.jsxs("div", { children: [
3061
3061
  t && /* @__PURE__ */ e.jsx(_n, { onClick: t, children: i }),
3062
3062
  /* @__PURE__ */ e.jsx(
3063
- ce,
3063
+ de,
3064
3064
  {
3065
3065
  onClick: n,
3066
3066
  disabled: r,
@@ -3069,7 +3069,7 @@ function xr({
3069
3069
  )
3070
3070
  ] });
3071
3071
  }
3072
- const Ve = ne.forwardRef(
3072
+ const Ve = te.forwardRef(
3073
3073
  ({
3074
3074
  onClick: n,
3075
3075
  inputRef: t,
@@ -3077,116 +3077,116 @@ const Ve = ne.forwardRef(
3077
3077
  type: s = "text",
3078
3078
  transparent: i,
3079
3079
  readOnly: l,
3080
- password: o,
3081
- border: c,
3080
+ password: c,
3081
+ border: o,
3082
3082
  onClear: a,
3083
3083
  icon: d,
3084
3084
  onChange: u,
3085
3085
  name: m,
3086
3086
  value: h,
3087
3087
  placeholder: x,
3088
- className: j,
3089
- validEmptyValue: f,
3088
+ className: f,
3089
+ validEmptyValue: j,
3090
3090
  onFocus: p,
3091
3091
  onBlur: _,
3092
- error: k,
3093
- max: y,
3094
- min: v,
3095
- autoFocus: M,
3096
- disabled: V,
3097
- size: W = "medium",
3098
- helperText: z,
3092
+ error: y,
3093
+ max: N,
3094
+ min: C,
3095
+ autoFocus: S,
3096
+ disabled: T,
3097
+ size: P = "medium",
3098
+ helperText: B,
3099
3099
  errorText: w,
3100
- onKeyDown: P
3101
- }, D) => {
3102
- const R = Z(null), [N, I] = g(!1), [S, E] = g(!1), [O, A] = g(!!h), K = Be(), Y = () => {
3103
- if (!R.current) return;
3104
- const J = R.current.querySelector("input");
3105
- J == null || J.focus();
3106
- }, C = (J) => {
3107
- p == null || p(J), E(!0);
3108
- }, L = (J) => {
3109
- _ == null || _(J), E(!1), A(!!J.target.value);
3110
- }, H = b(
3111
- (J, te) => I(!!(k || J && (!te || te === ""))),
3112
- [k]
3100
+ onKeyDown: W
3101
+ }, O) => {
3102
+ const A = Y(null), [b, D] = g(!1), [M, E] = g(!1), [U, I] = g(!!h), H = Be(), G = () => {
3103
+ if (!A.current) return;
3104
+ const Q = A.current.querySelector("input");
3105
+ Q == null || Q.focus();
3106
+ }, v = (Q) => {
3107
+ p == null || p(Q), E(!0);
3108
+ }, L = (Q) => {
3109
+ _ == null || _(Q), E(!1), I(!!Q.target.value);
3110
+ }, R = k(
3111
+ (Q, ne) => D(!!(y || Q && (!ne || ne === ""))),
3112
+ [y]
3113
3113
  );
3114
- T(() => {
3115
- H(f, h), A(!!h);
3116
- }, [h, f, H]);
3114
+ V(() => {
3115
+ R(j, h), I(!!h);
3116
+ }, [h, j, R]);
3117
3117
  const q = {
3118
3118
  small: "input-field__text-field_small",
3119
3119
  medium: "input-field__text-field_medium",
3120
3120
  large: "input-field__text-field_large"
3121
3121
  };
3122
- return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${j || ""}`, children: [
3122
+ return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${f || ""}`, children: [
3123
3123
  /* @__PURE__ */ e.jsxs(
3124
3124
  "div",
3125
3125
  {
3126
- ref: D,
3126
+ ref: O,
3127
3127
  style: r,
3128
3128
  className: `
3129
3129
  input-field
3130
3130
  input-field__text-field
3131
- ${q[W]}
3132
- ${c ? "input-field_border" : ""}
3133
- ${S ? "input-field_active" : ""}
3131
+ ${q[P]}
3132
+ ${o ? "input-field_border" : ""}
3133
+ ${M ? "input-field_active" : ""}
3134
3134
  ${i ? "input-field_transparent" : ""}
3135
- ${N ? "input-field_error" : ""}
3136
- ${V ? "input-field_disabled" : ""}
3135
+ ${b ? "input-field_error" : ""}
3136
+ ${T ? "input-field_disabled" : ""}
3137
3137
  `,
3138
- onClick: Y,
3138
+ onClick: G,
3139
3139
  children: [
3140
3140
  d && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", "aria-hidden": "true", children: d }),
3141
- /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", ref: R, children: [
3141
+ /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", ref: A, children: [
3142
3142
  /* @__PURE__ */ e.jsx(
3143
3143
  "input",
3144
3144
  {
3145
3145
  ref: t,
3146
- max: y,
3147
- min: v,
3148
- id: K,
3146
+ max: N,
3147
+ min: C,
3148
+ id: H,
3149
3149
  readOnly: l,
3150
- disabled: V,
3150
+ disabled: T,
3151
3151
  required: !0,
3152
- type: o ? "password" : s,
3152
+ type: c ? "password" : s,
3153
3153
  className: `
3154
3154
  input-field__input-container__input
3155
- ${N ? "input-field__input-container__input_error" : ""}
3155
+ ${b ? "input-field__input-container__input_error" : ""}
3156
3156
  `,
3157
3157
  name: m,
3158
3158
  value: h,
3159
3159
  onClick: n,
3160
- onChange: (J) => u == null ? void 0 : u(J.target.value, J.target.name, J),
3161
- onFocus: C,
3160
+ onChange: (Q) => u == null ? void 0 : u(Q.target.value, Q.target.name, Q),
3161
+ onFocus: v,
3162
3162
  onBlur: L,
3163
- onKeyDown: P,
3164
- autoFocus: M,
3165
- "aria-invalid": N,
3166
- "aria-describedby": N ? `${m}-error` : void 0
3163
+ onKeyDown: W,
3164
+ autoFocus: S,
3165
+ "aria-invalid": b,
3166
+ "aria-describedby": b ? `${m}-error` : void 0
3167
3167
  }
3168
3168
  ),
3169
3169
  x && /* @__PURE__ */ e.jsx(
3170
3170
  "label",
3171
3171
  {
3172
- htmlFor: K,
3173
- onClick: Y,
3172
+ htmlFor: H,
3173
+ onClick: G,
3174
3174
  className: `input-field__input-container__label
3175
- ${O ? "input-field__input-container__label_filled" : ""}
3175
+ ${U ? "input-field__input-container__label_filled" : ""}
3176
3176
  `,
3177
3177
  children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: x })
3178
3178
  }
3179
3179
  )
3180
3180
  ] }),
3181
- a && h && !V && /* @__PURE__ */ e.jsx("div", { className: `
3181
+ a && h && !T && /* @__PURE__ */ e.jsx("div", { className: `
3182
3182
  input-field__icon-container
3183
3183
  input-field__icon-container_clear-btn
3184
- `, onClick: a, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear input" }) })
3184
+ `, onClick: a, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
3185
3185
  ]
3186
3186
  }
3187
3187
  ),
3188
- N && w && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: w }),
3189
- z && !N && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: z })
3188
+ b && w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: w }),
3189
+ B && !b && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: B })
3190
3190
  ] });
3191
3191
  }
3192
3192
  );
@@ -3198,75 +3198,75 @@ const Vs = ({
3198
3198
  onSuccess: s,
3199
3199
  onHide: i,
3200
3200
  placeholder: l,
3201
- type: o = "text",
3202
- min: c = 0,
3201
+ type: c = "text",
3202
+ min: o = 0,
3203
3203
  max: a = 100,
3204
3204
  defaultValue: d = "",
3205
3205
  confirmText: u = "OK",
3206
3206
  cancelText: m = "Отмена",
3207
3207
  validate: h
3208
3208
  }) => {
3209
- const [x, j] = g(d), [f, p] = g(!0);
3210
- T(() => {
3209
+ const [x, f] = g(d), [j, p] = g(!0);
3210
+ V(() => {
3211
3211
  if (h)
3212
3212
  p(h(x));
3213
- else if (o === "number") {
3214
- const v = Number(x);
3215
- p(!isNaN(v) && v >= c && v <= a);
3213
+ else if (c === "number") {
3214
+ const C = Number(x);
3215
+ p(!isNaN(C) && C >= o && C <= a);
3216
3216
  } else
3217
3217
  p(!0);
3218
- }, [x, h, o, c, a]);
3219
- const _ = b(() => {
3220
- f && (s == null || s(x), i == null || i());
3221
- }, [x, f, s, i]), k = b(() => {
3218
+ }, [x, h, c, o, a]);
3219
+ const _ = k(() => {
3220
+ j && (s == null || s(x), i == null || i());
3221
+ }, [x, j, s, i]), y = k(() => {
3222
3222
  i == null || i();
3223
- }, [i]), y = (v) => {
3224
- if (o === "number") {
3225
- if (v === "") {
3226
- j("");
3223
+ }, [i]), N = (C) => {
3224
+ if (c === "number") {
3225
+ if (C === "") {
3226
+ f("");
3227
3227
  return;
3228
3228
  }
3229
- const M = Number(v);
3230
- isNaN(M) || (M < c && (v = String(c)), M > a && (v = String(a)), j(v));
3229
+ const S = Number(C);
3230
+ isNaN(S) || (S < o && (C = String(o)), S > a && (C = String(a)), f(C));
3231
3231
  } else
3232
- j(v);
3232
+ f(C);
3233
3233
  };
3234
3234
  return /* @__PURE__ */ e.jsxs(
3235
3235
  Ee,
3236
3236
  {
3237
3237
  style: n,
3238
3238
  header: r,
3239
- onHide: k,
3239
+ onHide: y,
3240
3240
  action: /* @__PURE__ */ e.jsxs("div", { children: [
3241
- /* @__PURE__ */ e.jsx(ce, { onClick: k, children: m }),
3241
+ /* @__PURE__ */ e.jsx(de, { onClick: y, children: m }),
3242
3242
  /* @__PURE__ */ e.jsx(
3243
- ce,
3243
+ de,
3244
3244
  {
3245
3245
  onClick: _,
3246
- disabled: !f || o === "number" && x === "",
3246
+ disabled: !j || c === "number" && x === "",
3247
3247
  children: u
3248
3248
  }
3249
3249
  )
3250
3250
  ] }),
3251
3251
  children: [
3252
- t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
3252
+ t && /* @__PURE__ */ e.jsx(X, { type: "body", children: t }),
3253
3253
  /* @__PURE__ */ e.jsxs("div", { children: [
3254
3254
  /* @__PURE__ */ e.jsx(
3255
3255
  Ve,
3256
3256
  {
3257
- type: o,
3258
- min: c,
3257
+ type: c,
3258
+ min: o,
3259
3259
  max: a,
3260
3260
  border: !0,
3261
3261
  placeholder: l,
3262
3262
  value: x,
3263
- onChange: y,
3264
- error: !f
3263
+ onChange: N,
3264
+ error: !j
3265
3265
  }
3266
3266
  ),
3267
- !f && o === "number" && /* @__PURE__ */ e.jsxs(U, { type: "body", children: [
3267
+ !j && c === "number" && /* @__PURE__ */ e.jsxs(X, { type: "body", children: [
3268
3268
  "Введите число от ",
3269
- c,
3269
+ o,
3270
3270
  " до ",
3271
3271
  a
3272
3272
  ] })
@@ -3281,8 +3281,8 @@ const Vs = ({
3281
3281
  children: s,
3282
3282
  onSave: i,
3283
3283
  onHide: l,
3284
- marginBottom: o = 0,
3285
- disableBackplate: c,
3284
+ marginBottom: c = 0,
3285
+ disableBackplate: o,
3286
3286
  saveText: a,
3287
3287
  cancelText: d,
3288
3288
  forceFullScreen: u,
@@ -3292,7 +3292,7 @@ const Vs = ({
3292
3292
  Cn(!0, document.body);
3293
3293
  const x = () => {
3294
3294
  l == null || l();
3295
- }, j = () => {
3295
+ }, f = () => {
3296
3296
  i == null || i();
3297
3297
  };
3298
3298
  return u || h === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
@@ -3300,8 +3300,8 @@ const Vs = ({
3300
3300
  {
3301
3301
  style: {
3302
3302
  ...n,
3303
- height: `calc(100vh - ${o}px)`,
3304
- paddingBottom: `${o}px`
3303
+ height: `calc(100vh - ${c}px)`,
3304
+ paddingBottom: `${c}px`
3305
3305
  },
3306
3306
  className: `
3307
3307
  full-screen-dialog
@@ -3315,12 +3315,12 @@ const Vs = ({
3315
3315
  {
3316
3316
  transparent: !0,
3317
3317
  onClick: x,
3318
- icon: /* @__PURE__ */ e.jsx(de, {}),
3318
+ icon: /* @__PURE__ */ e.jsx(ie, {}),
3319
3319
  "aria-label": "Закрыть"
3320
3320
  }
3321
3321
  ) }),
3322
3322
  /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: r }),
3323
- /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick: j, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(U, { type: "body", weight: "bold", children: a || "Сохранить" }) }) })
3323
+ /* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick: f, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(X, { type: "body", weight: "bold", children: a || "Сохранить" }) }) })
3324
3324
  ] }),
3325
3325
  /* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
3326
3326
  s,
@@ -3331,14 +3331,14 @@ const Vs = ({
3331
3331
  ) : /* @__PURE__ */ e.jsx(
3332
3332
  Ze,
3333
3333
  {
3334
- disableBackplate: c,
3334
+ disableBackplate: o,
3335
3335
  style: n,
3336
3336
  header: r,
3337
3337
  className: `full-screen-dialog ${t}`,
3338
3338
  onHide: x,
3339
3339
  action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3340
3340
  l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
3341
- l && /* @__PURE__ */ e.jsx(ye, { onClick: j, children: a ?? "Сохранить" })
3341
+ l && /* @__PURE__ */ e.jsx(ye, { onClick: f, children: a ?? "Сохранить" })
3342
3342
  ] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
3343
3343
  children: s
3344
3344
  }
@@ -3351,36 +3351,36 @@ const Vs = ({
3351
3351
  alt: s,
3352
3352
  header: i,
3353
3353
  subhead: l,
3354
- text: o,
3355
- children: c,
3354
+ text: c,
3355
+ children: o,
3356
3356
  iconButtonCell: a,
3357
3357
  onClick: d,
3358
3358
  screenSize: u,
3359
3359
  rootApp: m = "#root",
3360
3360
  variant: h = "elevated",
3361
3361
  loading: x = !1,
3362
- style: j,
3363
- elevation: f = 6,
3362
+ style: f,
3363
+ elevation: j = 6,
3364
3364
  ...p
3365
3365
  }, _) => {
3366
- const { screen: k } = Ce(we), y = u ?? k, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (z) => {
3367
- V(z) && (d == null || d(z), W(z));
3368
- }, V = (z) => {
3369
- const w = z.target;
3366
+ const { screen: y } = Ce(we), N = u ?? y, C = `elevation-${Math.min(24, Math.max(0, j))}`, S = (B) => {
3367
+ T(B) && (d == null || d(B), P(B));
3368
+ }, T = (B) => {
3369
+ const w = B.target;
3370
3370
  return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(m);
3371
- }, W = (z) => {
3372
- const w = z.currentTarget, P = w.querySelector(".card-ripple-container");
3373
- if (!P) return;
3374
- const D = w.getBoundingClientRect(), R = Math.max(D.width, D.height), N = z.clientX - D.left - R / 2, I = z.clientY - D.top - R / 2, S = document.createElement("span");
3375
- S.className = "card-ripple", S.style.width = S.style.height = `${R}px`, S.style.left = `${N}px`, S.style.top = `${I}px`, P.appendChild(S), setTimeout(() => S.remove(), 600);
3371
+ }, P = (B) => {
3372
+ const w = B.currentTarget, W = w.querySelector(".card-ripple-container");
3373
+ if (!W) return;
3374
+ const O = w.getBoundingClientRect(), A = Math.max(O.width, O.height), b = B.clientX - O.left - A / 2, D = B.clientY - O.top - A / 2, M = document.createElement("span");
3375
+ M.className = "card-ripple", M.style.width = M.style.height = `${A}px`, M.style.left = `${b}px`, M.style.top = `${D}px`, W.appendChild(M), setTimeout(() => M.remove(), 600);
3376
3376
  };
3377
3377
  return /* @__PURE__ */ e.jsxs(
3378
3378
  "div",
3379
3379
  {
3380
3380
  ref: _,
3381
- style: j,
3382
- className: `${n} card card--${h} ${v} ${x ? "card--loading" : ""}`,
3383
- onClick: M,
3381
+ style: f,
3382
+ className: `${n} card card--${h} ${C} ${x ? "card--loading" : ""}`,
3383
+ onClick: S,
3384
3384
  ...p,
3385
3385
  children: [
3386
3386
  /* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
@@ -3391,11 +3391,11 @@ const Vs = ({
3391
3391
  /* @__PURE__ */ e.jsxs("div", { className: "card-content", children: [
3392
3392
  (i || a) && /* @__PURE__ */ e.jsxs("div", { className: "card-header", children: [
3393
3393
  i && /* @__PURE__ */ e.jsx(
3394
- U,
3394
+ X,
3395
3395
  {
3396
3396
  type: "title",
3397
3397
  weight: "bold",
3398
- screensize: y,
3398
+ screensize: N,
3399
3399
  className: "card-title",
3400
3400
  children: i
3401
3401
  }
@@ -3403,25 +3403,25 @@ const Vs = ({
3403
3403
  a && /* @__PURE__ */ e.jsx("div", { className: "card-icon-button", children: a })
3404
3404
  ] }),
3405
3405
  l && /* @__PURE__ */ e.jsx(
3406
- U,
3406
+ X,
3407
3407
  {
3408
3408
  type: "title-2",
3409
3409
  weight: "bold",
3410
- screensize: y,
3410
+ screensize: N,
3411
3411
  className: "card-subhead",
3412
3412
  children: l
3413
3413
  }
3414
3414
  ),
3415
- o && /* @__PURE__ */ e.jsx(
3416
- U,
3415
+ c && /* @__PURE__ */ e.jsx(
3416
+ X,
3417
3417
  {
3418
3418
  type: "body",
3419
- screensize: y,
3419
+ screensize: N,
3420
3420
  className: "card-text",
3421
- children: o
3421
+ children: c
3422
3422
  }
3423
3423
  ),
3424
- c && /* @__PURE__ */ e.jsx("div", { className: "card-children", children: c }),
3424
+ o && /* @__PURE__ */ e.jsx("div", { className: "card-children", children: o }),
3425
3425
  t && /* @__PURE__ */ e.jsx("div", { className: "card-actions", children: t })
3426
3426
  ] }),
3427
3427
  x && /* @__PURE__ */ e.jsx("div", { className: "card-loading-indicator" })
@@ -3431,23 +3431,23 @@ const Vs = ({
3431
3431
  }
3432
3432
  );
3433
3433
  mr.displayName = "Card";
3434
- const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: o = !0 }) => {
3435
- const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (p) => {
3434
+ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: c = !0 }) => {
3435
+ const [o, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (p) => {
3436
3436
  p.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
3437
- }, j = (p) => {
3438
- p.button == 1 && o && (u({ x: p.clientX, y: p.clientY }), a(!0), document.body.style.cursor = "move");
3439
- }, f = b((p) => {
3440
- c && (h((_) => {
3437
+ }, f = (p) => {
3438
+ p.button == 1 && c && (u({ x: p.clientX, y: p.clientY }), a(!0), document.body.style.cursor = "move");
3439
+ }, j = k((p) => {
3440
+ o && (h((_) => {
3441
3441
  if (!d)
3442
3442
  return _;
3443
- const k = p.clientX - d.x, y = p.clientY - d.y;
3444
- let v = _.x + k, M = _.y + y;
3445
- return { x: v, y: M };
3443
+ const y = p.clientX - d.x, N = p.clientY - d.y;
3444
+ let C = _.x + y, S = _.y + N;
3445
+ return { x: C, y: S };
3446
3446
  }), u({ x: p.clientX, y: p.clientY }));
3447
- }, [c, d]);
3448
- return T(() => {
3447
+ }, [o, d]);
3448
+ return V(() => {
3449
3449
  l && h({ ...l });
3450
- }, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: j, 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: f, onMouseUp: x, onMouseMove: j, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: m.x, top: m.y }, children: n }) });
3451
3451
  }, Ds = ({
3452
3452
  onClick: n,
3453
3453
  onContextMenu: t,
@@ -3455,23 +3455,23 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3455
3455
  className: s,
3456
3456
  style: i,
3457
3457
  countColumn: l,
3458
- items: o,
3459
- onClickColl: c,
3458
+ items: c,
3459
+ onClickColl: o,
3460
3460
  classNameColumn: a,
3461
3461
  minColumnWidth: d = "auto"
3462
3462
  }) => {
3463
- const u = ne.useCallback((x, j) => {
3464
- const f = Array.from({ length: x }, () => []);
3465
- return j.forEach((p) => {
3466
- if (p.indexCol >= f.length) {
3463
+ const u = te.useCallback((x, f) => {
3464
+ const j = Array.from({ length: x }, () => []);
3465
+ return f.forEach((p) => {
3466
+ if (p.indexCol >= j.length) {
3467
3467
  console.error(`Invalid column index. indexCol = ${p.indexCol}, column count = ${x}`);
3468
3468
  return;
3469
3469
  }
3470
- f[p.indexCol].push(p.node);
3471
- }), f;
3472
- }, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x, j) => {
3473
- c == null || c(x, j);
3474
- }, [c]);
3470
+ j[p.indexCol].push(p.node);
3471
+ }), j;
3472
+ }, []), m = te.useMemo(() => u(l, c), [u, l, c]), h = te.useCallback((x, f) => {
3473
+ o == null || o(x, f);
3474
+ }, [o]);
3475
3475
  return /* @__PURE__ */ e.jsx(
3476
3476
  "div",
3477
3477
  {
@@ -3484,15 +3484,15 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3484
3484
  },
3485
3485
  className: `${s} alex-evo-sh-ui-kit-column-layout`,
3486
3486
  "data-testid": "column-layout-container",
3487
- children: m.map((x, j) => /* @__PURE__ */ e.jsx(
3487
+ children: m.map((x, f) => /* @__PURE__ */ e.jsx(
3488
3488
  "div",
3489
3489
  {
3490
- onClick: (f) => h(j, f),
3490
+ onClick: (j) => h(f, j),
3491
3491
  className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
3492
- "data-testid": `column-${j}`,
3493
- children: x.map((f, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${j}-${p}`))
3492
+ "data-testid": `column-${f}`,
3493
+ children: x.map((j, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: j }, `item-${f}-${p}`))
3494
3494
  },
3495
- `column-${j}`
3495
+ `column-${f}`
3496
3496
  ))
3497
3497
  }
3498
3498
  );
@@ -3503,11 +3503,11 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3503
3503
  style: s,
3504
3504
  border: i = !1,
3505
3505
  collapsible: l = !1,
3506
- defaultVisible: o = !1,
3507
- action: c,
3506
+ defaultVisible: c = !1,
3507
+ action: o,
3508
3508
  onVisibilityChange: a
3509
3509
  }) => {
3510
- const [d, u] = g(l ? o : !0), m = Z(null), h = (p) => {
3510
+ const [d, u] = g(l ? c : !0), m = Y(null), h = (p) => {
3511
3511
  if (!p) return;
3512
3512
  const _ = Ye(p);
3513
3513
  if (_)
@@ -3515,17 +3515,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3515
3515
  }, x = (p) => {
3516
3516
  const _ = h(p);
3517
3517
  return _ ? Math.min(_ * jr, 1) : 0.4;
3518
- }, j = (p) => {
3518
+ }, f = (p) => {
3519
3519
  const _ = p.target;
3520
3520
  if (!(_.closest(".action-btn") || _.classList.contains("action-btn")) && l) {
3521
- const y = !d;
3522
- u(y), a == null || a(y);
3521
+ const N = !d;
3522
+ u(N), a == null || a(N);
3523
3523
  }
3524
3524
  };
3525
- T(() => {
3525
+ V(() => {
3526
3526
  !l && !d && (u(!0), a == null || a(!0));
3527
3527
  }, [l, d, a]);
3528
- const f = oe(
3528
+ const j = oe(
3529
3529
  () => x(m.current),
3530
3530
  [m.current]
3531
3531
  );
@@ -3540,27 +3540,27 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3540
3540
  "div",
3541
3541
  {
3542
3542
  className: "content-box-label",
3543
- onClick: j,
3543
+ onClick: f,
3544
3544
  role: l ? "button" : void 0,
3545
3545
  "aria-label": l ? `${t} - click to ${d ? "collapse" : "expand"}` : t,
3546
3546
  tabIndex: l ? 0 : void 0,
3547
3547
  onKeyDown: (p) => {
3548
- l && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), j(p));
3548
+ l && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), f(p));
3549
3549
  },
3550
3550
  children: [
3551
- /* @__PURE__ */ e.jsx(U, { type: "title", children: t }),
3552
- /* @__PURE__ */ e.jsx("div", { className: "content-box-action-container", children: c ? /* @__PURE__ */ e.jsx(
3551
+ /* @__PURE__ */ e.jsx(X, { type: "title", children: t }),
3552
+ /* @__PURE__ */ e.jsx("div", { className: "content-box-action-container", children: o ? /* @__PURE__ */ e.jsx(
3553
3553
  "div",
3554
3554
  {
3555
3555
  className: "content-box-status-container action-btn",
3556
- onClick: c.onClick,
3557
- "aria-label": c.ariaLabel || "Action",
3556
+ onClick: o.onClick,
3557
+ "aria-label": o.ariaLabel || "Action",
3558
3558
  role: "button",
3559
3559
  tabIndex: 0,
3560
3560
  onKeyDown: (p) => {
3561
- (p.key === "Enter" || p.key === " ") && (p.preventDefault(), c.onClick());
3561
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), o.onClick());
3562
3562
  },
3563
- children: c.icon
3563
+ children: o.icon
3564
3564
  }
3565
3565
  ) : l ? /* @__PURE__ */ e.jsx("div", { className: "content-box-status-container", children: /* @__PURE__ */ e.jsx(
3566
3566
  "span",
@@ -3577,7 +3577,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3577
3577
  {
3578
3578
  className: "content-box-container-curtain",
3579
3579
  style: {
3580
- transition: `${f}s ease-in-out`,
3580
+ transition: `${j}s ease-in-out`,
3581
3581
  height: d ? "auto" : "0px"
3582
3582
  },
3583
3583
  "aria-hidden": !d,
@@ -3601,40 +3601,40 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3601
3601
  gridRowGap: s = "10px",
3602
3602
  gridColumnGap: i = "5px",
3603
3603
  itemMinWith: l,
3604
- itemMaxWith: o,
3605
- itemWith: c = "400px"
3604
+ itemMaxWith: c,
3605
+ itemWith: o = "400px"
3606
3606
  }) => {
3607
- const a = Z(null), [d, u] = g([]), m = Z(null), h = Z(null), x = b(() => {
3607
+ const a = Y(null), [d, u] = g([]), m = Y(null), h = Y(null), x = k(() => {
3608
3608
  if (!a.current) return;
3609
3609
  a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
3610
- const _ = l ?? c, k = o ?? c;
3611
- a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${k}))`, a.current.style.gridAutoRows = "1px";
3612
- }, [s, i, l, o, c]), j = b(() => {
3610
+ const _ = l ?? o, y = c ?? o;
3611
+ a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${y}))`, a.current.style.gridAutoRows = "1px";
3612
+ }, [s, i, l, c, o]), f = k(() => {
3613
3613
  if (a.current) {
3614
3614
  const _ = a.current.querySelectorAll(".adaptiv-grid-item");
3615
3615
  u(Array.from(_));
3616
3616
  }
3617
- }, []), f = b(() => {
3617
+ }, []), j = k(() => {
3618
3618
  if (!a.current) return;
3619
- const _ = window.getComputedStyle(a.current), k = parseInt(_.getPropertyValue("grid-row-gap")) || 0, y = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
3620
- d.forEach((v) => {
3621
- const M = v.querySelector(".adaptiv-grid-item-container");
3622
- if (M) {
3623
- const V = M.getBoundingClientRect().height, W = Math.ceil((V + k) / (y + k));
3624
- v.style.gridRowEnd = `span ${W}`;
3619
+ const _ = window.getComputedStyle(a.current), y = parseInt(_.getPropertyValue("grid-row-gap")) || 0, N = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
3620
+ d.forEach((C) => {
3621
+ const S = C.querySelector(".adaptiv-grid-item-container");
3622
+ if (S) {
3623
+ const T = S.getBoundingClientRect().height, P = Math.ceil((T + y) / (N + y));
3624
+ C.style.gridRowEnd = `span ${P}`;
3625
3625
  }
3626
3626
  });
3627
- }, [d]), p = b(() => {
3627
+ }, [d]), p = k(() => {
3628
3628
  h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
3629
- f(), h.current = null;
3629
+ j(), h.current = null;
3630
3630
  });
3631
- }, [f]);
3632
- return T(() => {
3633
- x(), j();
3634
- }, [x, j, t]), T(() => {
3631
+ }, [j]);
3632
+ return V(() => {
3633
+ x(), f();
3634
+ }, [x, f, t]), V(() => {
3635
3635
  m.current && m.current.disconnect(), m.current = new ResizeObserver(() => p());
3636
3636
  const _ = m.current;
3637
- return d.forEach((k) => _.observe(k)), p(), () => {
3637
+ return d.forEach((y) => _.observe(y)), p(), () => {
3638
3638
  _.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
3639
3639
  };
3640
3640
  }, [d, p]), /* @__PURE__ */ e.jsx(
@@ -3653,8 +3653,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3653
3653
  shadow: s = 1,
3654
3654
  padded: i = !0,
3655
3655
  borderRadius: l = 12,
3656
- onClick: o,
3657
- onContextMenu: c
3656
+ onClick: c,
3657
+ onContextMenu: o
3658
3658
  }) => {
3659
3659
  const a = `container_shadow-${s}`;
3660
3660
  return /* @__PURE__ */ e.jsx(
@@ -3664,8 +3664,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3664
3664
  borderRadius: `${l}px`,
3665
3665
  ...r
3666
3666
  },
3667
- onClick: o,
3668
- onContextMenu: c,
3667
+ onClick: c,
3668
+ onContextMenu: o,
3669
3669
  className: `alex-evo-sh-ui-kit-panel ${a} ${i ? "padded" : ""} ${t}`,
3670
3670
  children: n
3671
3671
  }
@@ -3677,51 +3677,51 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3677
3677
  activeTabClassName: s = "active",
3678
3678
  onTabClick: i,
3679
3679
  activeTabIndex: l,
3680
- tabContainerClassName: o = ""
3680
+ tabContainerClassName: c = ""
3681
3681
  }) => {
3682
- const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1), j = (_) => {
3682
+ const [o, a] = g(0), d = l !== void 0 ? l : o, u = Y(null), m = Y(null), [h, x] = g(!1), f = (_) => {
3683
3683
  if (u.current) {
3684
- const k = t || u.current.offsetWidth / 2;
3684
+ const y = t || u.current.offsetWidth / 2;
3685
3685
  u.current.scrollBy({
3686
- left: _ === "left" ? -k : k,
3686
+ left: _ === "left" ? -y : y,
3687
3687
  behavior: "smooth"
3688
3688
  });
3689
3689
  }
3690
3690
  };
3691
- T(() => {
3691
+ V(() => {
3692
3692
  const _ = () => {
3693
3693
  u.current && x(
3694
3694
  u.current.scrollWidth > u.current.clientWidth
3695
3695
  );
3696
3696
  };
3697
3697
  return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
3698
- }, []), T(() => {
3698
+ }, []), V(() => {
3699
3699
  if (u.current && m.current) {
3700
3700
  const _ = u.current.children[d];
3701
3701
  _ && (m.current.style.width = `${_.offsetWidth}px`, m.current.style.transform = `translateX(${_.offsetLeft}px)`);
3702
3702
  }
3703
3703
  }, [d]);
3704
- const f = (_) => {
3704
+ const j = (_) => {
3705
3705
  _.key === "ArrowRight" ? p((d + 1) % n.length) : _.key === "ArrowLeft" && p((d - 1 + n.length) % n.length);
3706
3706
  }, p = (_) => {
3707
3707
  l === void 0 && a(_), i && i(_);
3708
3708
  };
3709
3709
  return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
3710
- /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${o}`, children: [
3711
- h && /* @__PURE__ */ e.jsx("button", { onClick: () => j("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
3710
+ /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${c}`, children: [
3711
+ h && /* @__PURE__ */ e.jsx("button", { onClick: () => f("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
3712
3712
  /* @__PURE__ */ e.jsxs(
3713
3713
  "div",
3714
3714
  {
3715
3715
  className: "alex-evo-ui-kit-tabs-header",
3716
3716
  ref: u,
3717
- onKeyDown: f,
3717
+ onKeyDown: j,
3718
3718
  tabIndex: 0,
3719
3719
  children: [
3720
- n.map((_, k) => /* @__PURE__ */ e.jsx(
3720
+ n.map((_, y) => /* @__PURE__ */ e.jsx(
3721
3721
  "div",
3722
3722
  {
3723
- className: `alex-evo-ui-kit-tab ${r} ${d === k ? s : ""}`,
3724
- onClick: () => p(k),
3723
+ className: `alex-evo-ui-kit-tab ${r} ${d === y ? s : ""}`,
3724
+ onClick: () => p(y),
3725
3725
  children: _.label
3726
3726
  },
3727
3727
  _.label
@@ -3730,7 +3730,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3730
3730
  ]
3731
3731
  }
3732
3732
  ),
3733
- h && /* @__PURE__ */ e.jsx("button", { onClick: () => j("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
3733
+ h && /* @__PURE__ */ e.jsx("button", { onClick: () => f("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
3734
3734
  ] }),
3735
3735
  /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
3736
3736
  ] });
@@ -3741,33 +3741,33 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3741
3741
  scroll: s,
3742
3742
  transparent: i,
3743
3743
  width: l,
3744
- padding: o,
3745
- margin: c,
3744
+ padding: c,
3745
+ margin: o,
3746
3746
  flex: a,
3747
3747
  gap: d = 0,
3748
3748
  onObserv: u,
3749
3749
  ...m
3750
3750
  }, h) => {
3751
- const x = Z(null), j = {
3751
+ const x = Y(null), f = {
3752
3752
  overflowY: r ? s ? "scroll" : "hidden" : void 0,
3753
3753
  maxHeight: r,
3754
3754
  backgroundColor: i ? "transparent" : void 0,
3755
3755
  width: l,
3756
- padding: o,
3757
- margin: c
3756
+ padding: c,
3757
+ margin: o
3758
3758
  };
3759
- a && (j.display = "flex", j.flexDirection = "column", d > 0 && (j.gap = d)), T(() => {
3759
+ a && (f.display = "flex", f.flexDirection = "column", d > 0 && (f.gap = d)), V(() => {
3760
3760
  if (!x.current || !u) return;
3761
3761
  const p = new IntersectionObserver(u);
3762
3762
  return p.observe(x.current), () => p.disconnect();
3763
3763
  }, [u]);
3764
- const f = [
3764
+ const j = [
3765
3765
  "list-container",
3766
3766
  t,
3767
3767
  s ? "list-container_scroll" : "",
3768
3768
  i ? "list-container_transparent" : ""
3769
3769
  ].filter(Boolean).join(" ");
3770
- return /* @__PURE__ */ e.jsxs("ul", { ref: h, style: j, className: f, ...m, children: [
3770
+ return /* @__PURE__ */ e.jsxs("ul", { ref: h, style: f, className: j, ...m, children: [
3771
3771
  n,
3772
3772
  /* @__PURE__ */ e.jsx("div", { ref: x })
3773
3773
  ] });
@@ -3778,32 +3778,32 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
3778
3778
  header: s,
3779
3779
  description: i,
3780
3780
  value: l,
3781
- onClick: o,
3782
- hovered: c = !0,
3781
+ onClick: c,
3782
+ hovered: o = !0,
3783
3783
  className: a = "",
3784
3784
  disabled: d = !1,
3785
3785
  active: u = !1,
3786
3786
  shadow: m = 0,
3787
3787
  noTransformTransition: h,
3788
3788
  ...x
3789
- }, j) => {
3790
- const f = (_) => {
3791
- !d && !_.target.closest(".control-container") && (o == null || o(_));
3789
+ }, f) => {
3790
+ const j = (_) => {
3791
+ !d && !_.target.closest(".control-container") && (c == null || c(_));
3792
3792
  }, p = [
3793
3793
  "list-item-container",
3794
3794
  a,
3795
3795
  `container_shadow-hover-${m}`,
3796
- c && !d ? "list-item-container_hovered" : "",
3796
+ o && !d ? "list-item-container_hovered" : "",
3797
3797
  d ? "list-item-container_disabled" : "",
3798
3798
  u ? "list-item-container_active" : "",
3799
3799
  h ? "no-transform-transition" : ""
3800
3800
  ].filter(Boolean).join(" ");
3801
- return /* @__PURE__ */ e.jsxs("li", { ref: j, className: p, onClick: f, "aria-disabled": d, ...x, children: [
3802
- (n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(U, { type: "body", children: l }) }),
3801
+ return /* @__PURE__ */ e.jsxs("li", { ref: f, className: p, onClick: j, "aria-disabled": d, ...x, children: [
3802
+ (n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(X, { type: "body", children: l }) }),
3803
3803
  (s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
3804
- s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "title", children: s }) }),
3805
- r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(U, { type: "small", children: r }) }),
3806
- i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(U, { type: "small", color: "variant", children: i }) })
3804
+ s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(X, { type: "title", children: s }) }),
3805
+ r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(X, { type: "small", children: r }) }),
3806
+ i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(X, { type: "small", color: "variant", children: i }) })
3807
3807
  ] }),
3808
3808
  t && /* @__PURE__ */ e.jsx("div", { onClick: (_) => {
3809
3809
  _.stopPropagation();
@@ -3830,14 +3830,14 @@ function gr(n) {
3830
3830
  return t[0];
3831
3831
  }
3832
3832
  const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3833
- const l = n[t.field], o = Un(l);
3834
- return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: o.length > 0 && o[0].backgroundColor ? o[0].backgroundColor : s, height: i }, children: t.template ? t.template(o, n) : o.map((c, a) => /* @__PURE__ */ e.jsx(
3833
+ const l = n[t.field], c = Un(l);
3834
+ return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: c.length > 0 && c[0].backgroundColor ? c[0].backgroundColor : s, height: i }, children: t.template ? t.template(c, n) : c.map((o, a) => /* @__PURE__ */ e.jsx(
3835
3835
  "p",
3836
3836
  {
3837
- style: { color: c.color ?? r },
3838
- className: c.onClick ? "no-click" : "",
3839
- onClick: c.onClick,
3840
- children: c.content
3837
+ style: { color: o.color ?? r },
3838
+ className: o.onClick ? "no-click" : "",
3839
+ onClick: o.onClick,
3840
+ children: o.content
3841
3841
  },
3842
3842
  a
3843
3843
  )) });
@@ -3848,15 +3848,15 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3848
3848
  onContextMenu: s,
3849
3849
  onDelete: i,
3850
3850
  onEdit: l,
3851
- onClickRow: o,
3852
- index: c,
3851
+ onClickRow: c,
3852
+ index: o,
3853
3853
  maxH: a
3854
3854
  }) => {
3855
- const d = b(
3855
+ const d = k(
3856
3856
  (u) => {
3857
- u.target.closest(".no-click") || o == null || o(t, c);
3857
+ u.target.closest(".no-click") || c == null || c(t, o);
3858
3858
  },
3859
- [c, o, t]
3859
+ [o, c, t]
3860
3860
  );
3861
3861
  return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: d, children: [
3862
3862
  r.map((u, m) => /* @__PURE__ */ e.jsx(
@@ -3875,18 +3875,18 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3875
3875
  {
3876
3876
  transparent: !0,
3877
3877
  icon: u.icon,
3878
- onClick: (h) => u.onClick(h, t, c)
3878
+ onClick: (h) => u.onClick(h, t, o)
3879
3879
  },
3880
3880
  m
3881
3881
  )) }) }),
3882
3882
  (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: [
3883
- l && /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx($n, {}), onClick: () => l(t, c) }),
3883
+ l && /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx($n, {}), onClick: () => l(t, o) }),
3884
3884
  i && /* @__PURE__ */ e.jsx(
3885
3885
  ue,
3886
3886
  {
3887
3887
  transparent: !0,
3888
3888
  icon: /* @__PURE__ */ e.jsx(Nn, { className: "text-red-500" }),
3889
- onClick: () => i(t, c)
3889
+ onClick: () => i(t, o)
3890
3890
  }
3891
3891
  ),
3892
3892
  s && /* @__PURE__ */ e.jsx(
@@ -3894,7 +3894,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3894
3894
  {
3895
3895
  transparent: !0,
3896
3896
  icon: /* @__PURE__ */ e.jsx(Mn, {}),
3897
- onClick: (u) => s(u, t, c)
3897
+ onClick: (u) => s(u, t, o)
3898
3898
  }
3899
3899
  )
3900
3900
  ] }) })
@@ -3906,22 +3906,22 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3906
3906
  onContextMenu: s,
3907
3907
  onEdit: i,
3908
3908
  actions: l,
3909
- shadow: o = 2,
3910
- onClickRow: c
3909
+ shadow: c = 2,
3910
+ onClickRow: o
3911
3911
  }) => {
3912
3912
  const a = oe(
3913
3913
  () => t ?? vr(n),
3914
3914
  [n, t]
3915
- ), d = a.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), u = (h) => h ? (Array.isArray(h) ? h : [h]).map((j, f) => typeof j == "string" || typeof j == "number" ? /* @__PURE__ */ e.jsx("span", { children: j }, f) : /* @__PURE__ */ e.jsx(
3915
+ ), d = a.length + (l ? 1 : 0) + (r || s || i ? 1 : 0), u = (h) => h ? (Array.isArray(h) ? h : [h]).map((f, j) => typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ e.jsx("span", { children: f }, j) : /* @__PURE__ */ e.jsx(
3916
3916
  "span",
3917
3917
  {
3918
- style: { color: j.color },
3919
- onClick: j.onClick,
3920
- children: j.content
3918
+ style: { color: f.color },
3919
+ onClick: f.onClick,
3920
+ children: f.content
3921
3921
  },
3922
- f
3923
- )) : null, m = `container_shadow-${o}`;
3924
- return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${c ? "clicked" : ""} ${m}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
3922
+ j
3923
+ )) : null, m = `container_shadow-${c}`;
3924
+ return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${o ? "clicked" : ""} ${m}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
3925
3925
  /* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
3926
3926
  a.map((h) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, h.field)),
3927
3927
  l && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }),
@@ -3929,13 +3929,13 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
3929
3929
  ] }) }),
3930
3930
  /* @__PURE__ */ e.jsx("tbody", { children: n.map((h, x) => {
3931
3931
  if ("__all__" in h) {
3932
- const j = gr(h.__all__);
3933
- return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: d, style: { backgroundColor: j == null ? void 0 : j.backgroundColor, color: j == null ? void 0 : j.color }, children: u(j) }) }, `all-${x}`);
3932
+ const f = gr(h.__all__);
3933
+ return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: d, style: { backgroundColor: f == null ? void 0 : f.backgroundColor, color: f == null ? void 0 : f.color }, children: u(f) }) }, `all-${x}`);
3934
3934
  }
3935
3935
  return /* @__PURE__ */ e.jsx(
3936
3936
  kr,
3937
3937
  {
3938
- onClickRow: c,
3938
+ onClickRow: o,
3939
3939
  actions: l,
3940
3940
  index: x,
3941
3941
  columns: a,
@@ -4026,10 +4026,10 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4026
4026
  ) : null
4027
4027
  ) })
4028
4028
  ] });
4029
- }, Zs = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: i, backBtn: l, openAlways: o }) => {
4030
- const c = (a, d) => a.type === "button" ? /* @__PURE__ */ e.jsx(Re, { active: a.active, onClick: a.onClick, title: a.text, icon: a.icon }, d) : a.type === "link" ? /* @__PURE__ */ e.jsx(Xn, { onClick: () => s(), title: a.text, icon: a.icon, to: a.to }, d) : a.type === "submenu" ? /* @__PURE__ */ e.jsx(wr, { item: a, onHide: s }, d) : null;
4029
+ }, Zs = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: i, backBtn: l, openAlways: c }) => {
4030
+ const o = (a, d) => a.type === "button" ? /* @__PURE__ */ e.jsx(Re, { active: a.active, onClick: a.onClick, title: a.text, icon: a.icon }, d) : a.type === "link" ? /* @__PURE__ */ e.jsx(Xn, { onClick: () => s(), title: a.text, icon: a.icon, to: a.to }, d) : a.type === "submenu" ? /* @__PURE__ */ e.jsx(wr, { item: a, onHide: s }, d) : null;
4031
4031
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4032
- /* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer ${n || o ? "navigation-drawer_show" : "navigation-drawer_hide"}`, children: [
4032
+ /* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer ${n || c ? "navigation-drawer_show" : "navigation-drawer_hide"}`, children: [
4033
4033
  t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4034
4034
  /* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
4035
4035
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
@@ -4039,17 +4039,17 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4039
4039
  ] }) : null,
4040
4040
  /* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
4041
4041
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
4042
- /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: r && r.map(c) })
4042
+ /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: r && r.map(o) })
4043
4043
  ] }),
4044
4044
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__divider", children: /* @__PURE__ */ e.jsx(se, {}) }),
4045
4045
  /* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
4046
4046
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
4047
- /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: i && i.map(c) })
4047
+ /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: i && i.map(o) })
4048
4048
  ] }),
4049
4049
  /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__divider", children: /* @__PURE__ */ e.jsx(se, {}) }),
4050
4050
  l ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block", children: /* @__PURE__ */ e.jsx(Re, { active: l.active, onClick: l.onClick, title: l.text, icon: l.icon }) }) : null
4051
4051
  ] }),
4052
- n && !o ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backplate", style: { zIndex: 1100 }, onClick: () => s() }) : null
4052
+ n && !c ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer-backplate", style: { zIndex: 1100 }, onClick: () => s() }) : null
4053
4053
  ] });
4054
4054
  }, Sr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(Qe, { to: r, className: "navigation-item navigation-item-rail", children: [
4055
4055
  /* @__PURE__ */ e.jsx("div", { className: `
@@ -4104,13 +4104,13 @@ function hn(n, t, r, s) {
4104
4104
  const i = t.getBoundingClientRect();
4105
4105
  let l = n.clientY - i.top;
4106
4106
  l > i.height && (l = i.height), l < 0 && (l = 0);
4107
- let o = n.clientX - i.left;
4108
- o > i.width && (o = i.width), o < 0 && (o = 0);
4109
- const c = l / i.height, a = o / i.width, d = 100 - 100 * c, u = 100 * a;
4110
- s(Math.round(u), Math.round(d)), Kn(r, o, l);
4107
+ let c = n.clientX - i.left;
4108
+ c > i.width && (c = i.width), c < 0 && (c = 0);
4109
+ const o = l / i.height, a = c / i.width, d = 100 - 100 * o, u = 100 * a;
4110
+ s(Math.round(u), Math.round(d)), Kn(r, c, l);
4111
4111
  }
4112
4112
  function $r(n, t, r, s) {
4113
- const i = (o) => hn(o, t, r, s);
4113
+ const i = (c) => hn(c, t, r, s);
4114
4114
  hn(n, t, r, s), r.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
4115
4115
  function l() {
4116
4116
  r.classList.remove("dragging"), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", l);
@@ -4134,11 +4134,11 @@ function xn(n, t, r, s) {
4134
4134
  const i = t.getBoundingClientRect();
4135
4135
  let l = n.clientY - i.top;
4136
4136
  l > i.height && (l = i.height), l < 0 && (l = 0);
4137
- const c = 360 - 360 * (l / i.height);
4138
- s(c), qn(r, l);
4137
+ const o = 360 - 360 * (l / i.height);
4138
+ s(o), qn(r, l);
4139
4139
  }
4140
4140
  function Fr(n, t, r, s) {
4141
- const i = (o) => xn(o, r, t, s);
4141
+ const i = (c) => xn(c, r, t, s);
4142
4142
  xn(n, r, t, s), t.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
4143
4143
  function l() {
4144
4144
  t.classList.remove("dragging"), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", l);
@@ -4173,105 +4173,105 @@ const Vr = [
4173
4173
  onAddColor: s,
4174
4174
  autoHide: i,
4175
4175
  defaultColor: l,
4176
- userColors: o = [],
4177
- width: c = 310,
4176
+ userColors: c = [],
4177
+ width: o = 310,
4178
4178
  height: a = "auto"
4179
4179
  }) => {
4180
- const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x, j] = g(Tr(t)), [f, p] = g(!1), [_, k] = g(
4180
+ const d = Y(null), u = Y(null), m = Y(null), h = Y(null), [x, f] = g(Tr(t)), [j, p] = g(!1), [_, y] = g(
4181
4181
  `#${ke(Le(x))}`
4182
- ), y = oe(() => Le(x), [x]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
4182
+ ), N = oe(() => Le(x), [x]), C = oe(() => `#${ke(N)}`, [N]), S = oe(
4183
4183
  () => _[0] !== "#" ? `#${_}` : _,
4184
4184
  [_]
4185
4185
  );
4186
- T(() => {
4187
- !m.current || !d.current || !u.current || !h.current || V(
4186
+ V(() => {
4187
+ !m.current || !d.current || !u.current || !h.current || T(
4188
4188
  m.current,
4189
4189
  h.current,
4190
4190
  d.current,
4191
4191
  u.current,
4192
4192
  x
4193
4193
  );
4194
- }, [x]), T(() => {
4194
+ }, [x]), V(() => {
4195
4195
  if (!m.current || !h.current) return;
4196
- const N = m.current.getContext("2d");
4197
- N && (Mr(
4198
- N,
4196
+ const b = m.current.getContext("2d");
4197
+ b && (Mr(
4198
+ b,
4199
4199
  m.current,
4200
4200
  `#${ke(Le(x.h, 1, 1))}`
4201
4201
  ), Lr(
4202
4202
  m.current,
4203
- N,
4203
+ b,
4204
4204
  h.current,
4205
- (I, S) => {
4206
- j((E) => {
4207
- const O = { ...E, s: I / 100, v: S / 100 };
4208
- return k(ke(Le(O))), O;
4205
+ (D, M) => {
4206
+ f((E) => {
4207
+ const U = { ...E, s: D / 100, v: M / 100 };
4208
+ return y(ke(Le(U))), U;
4209
4209
  });
4210
4210
  }
4211
4211
  ));
4212
- }, [x.h]), T(() => {
4212
+ }, [x.h]), V(() => {
4213
4213
  if (!d.current || !u.current) return;
4214
- const N = d.current.getContext("2d");
4215
- N && (Rr(N, d.current), Er(N, d.current, u.current, (I) => {
4216
- j((S) => {
4217
- const E = { ...S, h: I / 360 };
4218
- return k(ke(Le(E))), E;
4214
+ const b = d.current.getContext("2d");
4215
+ b && (Rr(b, d.current), Er(b, d.current, u.current, (D) => {
4216
+ f((M) => {
4217
+ const E = { ...M, h: D / 360 };
4218
+ return y(ke(Le(E))), E;
4219
4219
  });
4220
4220
  }));
4221
- }, []), T(() => {
4221
+ }, []), V(() => {
4222
4222
  if (_.length === 4 || _.length === 7)
4223
4223
  try {
4224
- j(De(Ne(_)));
4224
+ f(De(Ne(_)));
4225
4225
  } catch {
4226
4226
  console.warn("Invalid HEX color");
4227
4227
  }
4228
4228
  }, [_]);
4229
- const V = (N, I, S, E, O) => {
4229
+ const T = (b, D, M, E, U) => {
4230
4230
  try {
4231
- const A = N.getBoundingClientRect(), K = S.getBoundingClientRect(), Y = Math.round(O.s * A.width), C = Math.round((1 - O.v) * A.height), L = (360 - O.h * 360) / 360 * K.height;
4232
- Kn(I, Y, C), qn(E, L);
4233
- } catch (A) {
4234
- console.error("Error updating cursor positions", A);
4231
+ const I = b.getBoundingClientRect(), H = M.getBoundingClientRect(), G = Math.round(U.s * I.width), v = Math.round((1 - U.v) * I.height), L = (360 - U.h * 360) / 360 * H.height;
4232
+ Kn(D, G, v), qn(E, L);
4233
+ } catch (I) {
4234
+ console.error("Error updating cursor positions", I);
4235
4235
  }
4236
- }, W = (N) => {
4236
+ }, P = (b) => {
4237
4237
  try {
4238
- j(De(Ne(N))), k(N);
4238
+ f(De(Ne(b))), y(b);
4239
4239
  } catch {
4240
4240
  console.warn("Invalid color format");
4241
4241
  }
4242
- }, z = b(() => {
4243
- s == null || s([...o, v]);
4244
- }, [s, o, v]), w = b(() => {
4245
- r == null || r(v), i && (n == null || n());
4246
- }, [r, v]), P = b(
4247
- (N, I) => {
4248
- const S = Math.min(255, Math.max(0, I));
4249
- j(De({ ...y, [N]: S })), k(ke({ ...y, [N]: S }));
4242
+ }, B = k(() => {
4243
+ s == null || s([...c, C]);
4244
+ }, [s, c, C]), w = k(() => {
4245
+ r == null || r(C), i && (n == null || n());
4246
+ }, [r, C]), W = k(
4247
+ (b, D) => {
4248
+ const M = Math.min(255, Math.max(0, D));
4249
+ f(De({ ...N, [b]: M })), y(ke({ ...N, [b]: M }));
4250
4250
  },
4251
- [y]
4252
- ), D = b((N) => {
4253
- k(N);
4254
- }, []), R = b(() => {
4255
- l && (r == null || r(l), i && (n == null || n()), W(l));
4256
- }, [l, r, W]);
4251
+ [N]
4252
+ ), O = k((b) => {
4253
+ y(b);
4254
+ }, []), A = k(() => {
4255
+ l && (r == null || r(l), i && (n == null || n()), P(l));
4256
+ }, [l, r, P]);
4257
4257
  return /* @__PURE__ */ e.jsxs(
4258
4258
  Ze,
4259
4259
  {
4260
4260
  className: "color-picker-panel",
4261
4261
  onHide: n,
4262
4262
  clearStyle: !0,
4263
- style: { width: c, height: a },
4263
+ style: { width: o, height: a },
4264
4264
  children: [
4265
4265
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4266
- /* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((N, I) => /* @__PURE__ */ e.jsx(
4266
+ /* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((b, D) => /* @__PURE__ */ e.jsx(
4267
4267
  "button",
4268
4268
  {
4269
- onClick: () => W(N),
4269
+ onClick: () => P(b),
4270
4270
  className: "swatch",
4271
- style: { backgroundColor: N },
4272
- "aria-label": `Color ${N}`
4271
+ style: { backgroundColor: b },
4272
+ "aria-label": `Color ${b}`
4273
4273
  },
4274
- I
4274
+ D
4275
4275
  )) }),
4276
4276
  /* @__PURE__ */ e.jsx(
4277
4277
  "button",
@@ -4322,9 +4322,9 @@ const Vr = [
4322
4322
  ] })
4323
4323
  ] }),
4324
4324
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4325
- /* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${f ? "" : "active"}`, children: ["r", "g", "b"].map((N) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
4325
+ /* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: ["r", "g", "b"].map((b) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
4326
4326
  /* @__PURE__ */ e.jsxs("label", { className: "field-label", children: [
4327
- N.toUpperCase(),
4327
+ b.toUpperCase(),
4328
4328
  ":"
4329
4329
  ] }),
4330
4330
  /* @__PURE__ */ e.jsx(
@@ -4333,22 +4333,22 @@ const Vr = [
4333
4333
  type: "number",
4334
4334
  max: "255",
4335
4335
  min: "0",
4336
- value: y[N],
4337
- onChange: (I) => P(N, Number(I.target.value)),
4336
+ value: N[b],
4337
+ onChange: (D) => W(b, Number(D.target.value)),
4338
4338
  className: "field-input rgb-input",
4339
- "aria-label": `${N.toUpperCase()} value`
4339
+ "aria-label": `${b.toUpperCase()} value`
4340
4340
  }
4341
4341
  )
4342
- ] }, N)) }),
4343
- /* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${f ? "active" : ""}`, children: [
4342
+ ] }, b)) }),
4343
+ /* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${j ? "active" : ""}`, children: [
4344
4344
  /* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
4345
4345
  /* @__PURE__ */ e.jsx(
4346
4346
  "input",
4347
4347
  {
4348
4348
  type: "text",
4349
4349
  className: "field-input",
4350
- value: M,
4351
- onChange: (N) => D(N.target.value),
4350
+ value: S,
4351
+ onChange: (b) => O(b.target.value),
4352
4352
  "aria-label": "HEX color value"
4353
4353
  }
4354
4354
  )
@@ -4357,37 +4357,37 @@ const Vr = [
4357
4357
  "button",
4358
4358
  {
4359
4359
  className: "button-color-picker mode-toggle",
4360
- onClick: () => p((N) => !N),
4361
- "aria-label": `Switch to ${f ? "RGB" : "HEX"} mode`,
4360
+ onClick: () => p((b) => !b),
4361
+ "aria-label": `Switch to ${j ? "RGB" : "HEX"} mode`,
4362
4362
  children: "Mode"
4363
4363
  }
4364
4364
  )
4365
4365
  ] }),
4366
- o.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4366
+ c.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4367
4367
  /* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
4368
- /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: o.map((N, I) => /* @__PURE__ */ e.jsx(
4368
+ /* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: c.map((b, D) => /* @__PURE__ */ e.jsx(
4369
4369
  "button",
4370
4370
  {
4371
- onClick: () => W(N),
4371
+ onClick: () => P(b),
4372
4372
  className: "swatch",
4373
- style: { backgroundColor: N },
4374
- "aria-label": `User color ${N}`
4373
+ style: { backgroundColor: b },
4374
+ "aria-label": `User color ${b}`
4375
4375
  },
4376
- I
4376
+ D
4377
4377
  )) })
4378
4378
  ] }),
4379
4379
  /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
4380
4380
  /* @__PURE__ */ e.jsxs(
4381
4381
  "button",
4382
4382
  {
4383
- onClick: z,
4383
+ onClick: B,
4384
4384
  className: "button-color-picker add-swatch",
4385
4385
  "aria-label": "Add current color to swatches",
4386
4386
  children: [
4387
4387
  /* @__PURE__ */ e.jsx(
4388
4388
  "span",
4389
4389
  {
4390
- style: { backgroundColor: v },
4390
+ style: { backgroundColor: C },
4391
4391
  className: "color-indicator"
4392
4392
  }
4393
4393
  ),
@@ -4398,7 +4398,7 @@ const Vr = [
4398
4398
  l && /* @__PURE__ */ e.jsxs(
4399
4399
  "button",
4400
4400
  {
4401
- onClick: R,
4401
+ onClick: A,
4402
4402
  className: "button-color-picker add-swatch",
4403
4403
  "aria-label": "Set default color",
4404
4404
  children: [
@@ -4424,23 +4424,23 @@ const Vr = [
4424
4424
  value: s = "#f00",
4425
4425
  className: i = "",
4426
4426
  transparent: l = !1,
4427
- userColors: o = [],
4428
- onAddColor: c,
4427
+ userColors: c = [],
4428
+ onAddColor: o,
4429
4429
  defaultColor: a,
4430
4430
  placeholder: d
4431
4431
  }) => {
4432
4432
  const [u, m] = g(!1), [h, x] = g(s);
4433
- T(() => {
4433
+ V(() => {
4434
4434
  s !== void 0 && x(s);
4435
4435
  }, [s]);
4436
- const j = b(() => {
4436
+ const f = k(() => {
4437
4437
  m(!0);
4438
- }, []), f = b(
4439
- (k) => {
4440
- x(k), t == null || t(k), m(!1);
4438
+ }, []), j = k(
4439
+ (y) => {
4440
+ x(y), t == null || t(y), m(!1);
4441
4441
  },
4442
4442
  [t]
4443
- ), p = b(() => {
4443
+ ), p = k(() => {
4444
4444
  m(!1);
4445
4445
  }, []), _ = [
4446
4446
  "input-field",
@@ -4457,18 +4457,18 @@ const Vr = [
4457
4457
  {
4458
4458
  className: "color-circle",
4459
4459
  style: { backgroundColor: h },
4460
- onClick: j,
4460
+ onClick: f,
4461
4461
  "aria-label": "Current color"
4462
4462
  }
4463
4463
  ),
4464
- /* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick: j, children: /* @__PURE__ */ e.jsx(U, { type: "body", children: h }) })
4464
+ /* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick: f, children: /* @__PURE__ */ e.jsx(X, { type: "body", children: h }) })
4465
4465
  ] }),
4466
- d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: j, children: /* @__PURE__ */ e.jsx(U, { type: "body", className: "data color-field-placeholder", children: d }) }),
4466
+ d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: f, children: /* @__PURE__ */ e.jsx(X, { type: "body", className: "data color-field-placeholder", children: d }) }),
4467
4467
  /* @__PURE__ */ e.jsx(
4468
4468
  "div",
4469
4469
  {
4470
4470
  className: "color-icon-container icon-container",
4471
- onClick: j,
4471
+ onClick: f,
4472
4472
  "aria-label": "Open color picker",
4473
4473
  children: /* @__PURE__ */ e.jsx(wn, {})
4474
4474
  }
@@ -4478,9 +4478,9 @@ const Vr = [
4478
4478
  Or,
4479
4479
  {
4480
4480
  defaultColor: a,
4481
- userColors: o,
4482
- onAddColor: c,
4483
- onChange: f,
4481
+ userColors: c,
4482
+ onAddColor: o,
4483
+ onChange: j,
4484
4484
  beginColor: h,
4485
4485
  onHide: p
4486
4486
  }
@@ -4500,32 +4500,32 @@ const Vr = [
4500
4500
  "November",
4501
4501
  "December"
4502
4502
  ], Dr = () => Array(Ar - fn).fill(0).map((n, t) => fn + t), Ir = ({ onChange: n, onHide: t }) => {
4503
- const [r] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = g((/* @__PURE__ */ new Date()).getFullYear()), [i] = g((/* @__PURE__ */ new Date()).getDate()), [l, o] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [c, a] = g((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = g({
4503
+ const [r] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = g((/* @__PURE__ */ new Date()).getFullYear()), [i] = g((/* @__PURE__ */ new Date()).getDate()), [l, c] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [o, a] = g((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = g({
4504
4504
  day: (/* @__PURE__ */ new Date()).getDate(),
4505
4505
  type: "NOW_MONTH"
4506
4506
  /* NOW_MONTH */
4507
4507
  }), [m, h] = g(
4508
4508
  "DAYS"
4509
4509
  /* DAYS */
4510
- ), x = (v, M) => new Date(v, M + 1, 0).getDate(), j = (v, M, V) => new Date(v, M, V).getDay(), f = (v, M) => {
4511
- let V = Array(x(v, M)).fill(0).map((P, D) => ({ type: "NOW_MONTH", day: D + 1 })), W = j(v, M, x(v, M)), z = Array(7 - W).fill(0).map((P, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
4512
- return V = Array(j(v, M, 0)).fill(0).map((P, D) => ({ type: "PREV_MONTH", day: x(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(V).concat(z), V;
4513
- }, p = (v) => {
4510
+ ), x = (C, S) => new Date(C, S + 1, 0).getDate(), f = (C, S, T) => new Date(C, S, T).getDay(), j = (C, S) => {
4511
+ let T = Array(x(C, S)).fill(0).map((W, O) => ({ type: "NOW_MONTH", day: O + 1 })), P = f(C, S, x(C, S)), B = Array(7 - P).fill(0).map((W, O) => ({ type: "NEXT_MONTH", day: O + 1 }));
4512
+ return T = Array(f(C, S, 0)).fill(0).map((W, O) => ({ type: "PREV_MONTH", day: x(S ? C : C - 1, S ? S - 1 : 11) - O })).reverse().concat(T).concat(B), T;
4513
+ }, p = (C) => {
4514
4514
  h(
4515
4515
  "DAYS"
4516
4516
  /* DAYS */
4517
- ), a(v);
4518
- }, _ = (v) => {
4517
+ ), a(C);
4518
+ }, _ = (C) => {
4519
4519
  h(
4520
4520
  "DAYS"
4521
4521
  /* DAYS */
4522
- ), o(v);
4523
- }, k = (v) => {
4524
- u(v);
4525
- }, y = b(() => {
4526
- let v = /* @__PURE__ */ new Date();
4527
- v.setFullYear(c), d.type === "NEXT_MONTH" ? l === me[11] ? (v.setMonth(0), v.setFullYear(c + 1)) : v.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (v.setMonth(11), v.setFullYear(c - 1)) : v.setMonth(me.indexOf(l) - 1) : v.setMonth(me.indexOf(l)), v.setDate(d.day), n && n(v.getFullYear(), v.getMonth(), v.getDate()), t && t();
4528
- }, [l, c, n, t, d]);
4522
+ ), c(C);
4523
+ }, y = (C) => {
4524
+ u(C);
4525
+ }, N = k(() => {
4526
+ let C = /* @__PURE__ */ new Date();
4527
+ C.setFullYear(o), d.type === "NEXT_MONTH" ? l === me[11] ? (C.setMonth(0), C.setFullYear(o + 1)) : C.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (C.setMonth(11), C.setFullYear(o - 1)) : C.setMonth(me.indexOf(l) - 1) : C.setMonth(me.indexOf(l)), C.setDate(d.day), n && n(C.getFullYear(), C.getMonth(), C.getDate()), t && t();
4528
+ }, [l, o, n, t, d]);
4529
4529
  return /* @__PURE__ */ e.jsxs(Ze, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
4530
4530
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
4531
4531
  /* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: m === "MONTHS" ? "active" : "", onClick: () => h(
@@ -4540,18 +4540,18 @@ const Vr = [
4540
4540
  "YEARS"
4541
4541
  /* YEARS */
4542
4542
  ), children: [
4543
- c,
4543
+ o,
4544
4544
  " ",
4545
4545
  /* @__PURE__ */ e.jsx(Ie, {})
4546
4546
  ] }) })
4547
4547
  ] }),
4548
- m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(v), children: [
4549
- /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4550
- /* @__PURE__ */ e.jsx("div", { className: "content", children: v })
4551
- ] }, 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: () => p(v), children: [
4552
- /* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4553
- /* @__PURE__ */ e.jsx("div", { className: "content", children: v })
4554
- ] }, M)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4548
+ m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(C), children: [
4549
+ /* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4550
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
4551
+ ] }, S)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((C, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => p(C), children: [
4552
+ /* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === C ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
4553
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: C })
4554
+ ] }, S)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4555
4555
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
4556
4556
  /* @__PURE__ */ e.jsx("span", { children: "M" }),
4557
4557
  /* @__PURE__ */ e.jsx("span", { children: "T" }),
@@ -4561,11 +4561,11 @@ const Vr = [
4561
4561
  /* @__PURE__ */ e.jsx("span", { children: "S" }),
4562
4562
  /* @__PURE__ */ e.jsx("span", { children: "S" })
4563
4563
  ] }),
4564
- /* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: f(c, me.indexOf(l)).map((v, M) => /* @__PURE__ */ e.jsx("div", { className: `day ${v.type !== "NOW_MONTH" ? "other" : ""} ${i === v.day && c === s && l === r ? "now" : ""} ${v.day === d.day && v.type === d.type ? "select" : ""}`, onClick: () => k(v), children: v.day }, M)) })
4564
+ /* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: j(o, me.indexOf(l)).map((C, S) => /* @__PURE__ */ e.jsx("div", { className: `day ${C.type !== "NOW_MONTH" ? "other" : ""} ${i === C.day && o === s && l === r ? "now" : ""} ${C.day === d.day && C.type === d.type ? "select" : ""}`, onClick: () => y(C), children: C.day }, S)) })
4565
4565
  ] }),
4566
4566
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
4567
- /* @__PURE__ */ e.jsx(ce, { className: "little m-0", onClick: t, children: "Cancel" }),
4568
- /* @__PURE__ */ e.jsx(ce, { className: "little m-0", onClick: y, children: "OK" })
4567
+ /* @__PURE__ */ e.jsx(de, { className: "little m-0", onClick: t, children: "Cancel" }),
4568
+ /* @__PURE__ */ e.jsx(de, { className: "little m-0", onClick: N, children: "OK" })
4569
4569
  ] })
4570
4570
  ] });
4571
4571
  }, Hr = ({
@@ -4575,36 +4575,38 @@ const Vr = [
4575
4575
  value: s,
4576
4576
  className: i,
4577
4577
  error: l,
4578
- container: o,
4579
- errorText: c,
4578
+ container: c,
4579
+ errorText: o,
4580
4580
  helperText: a,
4581
4581
  size: d = "medium",
4582
4582
  disabled: u,
4583
4583
  placeholder: m,
4584
4584
  onBlur: h,
4585
4585
  onFocus: x,
4586
- onClear: j,
4587
- ...f
4586
+ onClear: f,
4587
+ ...j
4588
4588
  }) => {
4589
- const [p, _] = g(s ?? ""), [k, y] = g(!1), [v, M] = g(!1), [V, W] = g(!!s), z = Be(), w = l || c, P = () => {
4590
- y(!0);
4591
- }, D = (O) => {
4592
- let A = String(O + 1);
4593
- return A.length < 2 && (A = "0" + A), A;
4594
- }, R = (O) => {
4595
- let A = String(O);
4596
- return A.length < 2 && (A = "0" + A), A;
4597
- }, N = (O) => {
4598
- x == null || x(O), M(!0);
4599
- }, I = (O) => {
4600
- h == null || h(O), M(!1), W(!!O.target.value);
4601
- };
4602
- T(() => {
4603
- W(!!s);
4589
+ const [p, _] = g(s ?? ""), [y, N] = g(!1), [C, S] = g(!1), [T, P] = g(!!s), B = Be(), w = l || o, W = () => {
4590
+ N(!0);
4591
+ }, O = (I) => {
4592
+ let H = String(I + 1);
4593
+ return H.length < 2 && (H = "0" + H), H;
4594
+ }, A = (I) => {
4595
+ let H = String(I);
4596
+ return H.length < 2 && (H = "0" + H), H;
4597
+ }, b = (I) => {
4598
+ x == null || x(I), S(!0);
4599
+ }, D = (I) => {
4600
+ h == null || h(I), S(!1), P(!!I.target.value);
4601
+ }, M = k(() => {
4602
+ _(""), f == null || f(), t == null || t("");
4603
+ }, [f, t]);
4604
+ V(() => {
4605
+ P(!!s);
4604
4606
  }, [s]);
4605
- const S = b((O, A, K) => {
4606
- _(`${O}-${D(A)}-${R(K)}`), t && t(`${O}-${D(A)}-${R(K)}`);
4607
- }, [t]), E = {
4607
+ const E = k((I, H, G) => {
4608
+ _(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
4609
+ }, [t]), U = {
4608
4610
  small: "input-field__date-field_small",
4609
4611
  medium: "input-field__date-field_medium",
4610
4612
  large: "input-field__date-field_large"
@@ -4613,14 +4615,14 @@ const Vr = [
4613
4615
  /* @__PURE__ */ e.jsxs("div", { className: `
4614
4616
  input-field
4615
4617
  input-field__date-field
4616
- ${E[d]}
4618
+ ${U[d]}
4617
4619
  ${n ? "input-field_border" : ""}
4618
- ${v ? "input-field_active" : ""}
4620
+ ${C ? "input-field_active" : ""}
4619
4621
  ${w ? "input-field_error" : ""}
4620
4622
  ${u ? "input-field_disabled" : ""}
4621
4623
  `, children: [
4622
- /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: P, children: /* @__PURE__ */ e.jsx(Sn, {}) }),
4623
- /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: P, children: [
4624
+ /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: W, children: /* @__PURE__ */ e.jsx(Sn, {}) }),
4625
+ /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: W, children: [
4624
4626
  /* @__PURE__ */ e.jsx(
4625
4627
  "input",
4626
4628
  {
@@ -4630,32 +4632,32 @@ const Vr = [
4630
4632
  role: "textbox",
4631
4633
  name: r,
4632
4634
  value: p,
4633
- onBlur: I,
4634
- onFocus: N,
4635
+ onBlur: D,
4636
+ onFocus: b,
4635
4637
  readOnly: !0,
4636
- id: z,
4637
- ...f
4638
+ id: B,
4639
+ ...j
4638
4640
  }
4639
4641
  ),
4640
4642
  m && /* @__PURE__ */ e.jsx(
4641
4643
  "label",
4642
4644
  {
4643
- htmlFor: z,
4645
+ htmlFor: B,
4644
4646
  className: `input-field__input-container__label
4645
- ${V ? "input-field__input-container__label_filled" : ""}
4647
+ ${T ? "input-field__input-container__label_filled" : ""}
4646
4648
  `,
4647
4649
  children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
4648
4650
  }
4649
4651
  )
4650
4652
  ] }),
4651
- j && s && !u && /* @__PURE__ */ e.jsx("div", { className: `
4653
+ f && p && !u && /* @__PURE__ */ e.jsx("div", { className: `
4652
4654
  input-field__icon-container
4653
4655
  input-field__icon-container_clear-btn
4654
- `, onClick: j, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear input" }) })
4656
+ `, onClick: M, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
4655
4657
  ] }),
4656
- k ? /* @__PURE__ */ e.jsx(_e, { container: o, children: /* @__PURE__ */ e.jsx(Ir, { onChange: S, onHide: () => y(!1) }) }) : null,
4657
- w && c && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: c }),
4658
- a && !w && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: a })
4658
+ y ? /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(Ir, { onChange: E, onHide: () => N(!1) }) }) : null,
4659
+ w && o && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: o }),
4660
+ a && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: a })
4659
4661
  ] });
4660
4662
  }, zr = {
4661
4663
  Mon: "Mon",
@@ -4673,22 +4675,22 @@ const Vr = [
4673
4675
  // Дефолтные значения
4674
4676
  }) => {
4675
4677
  const [i, l] = g(t ?? []);
4676
- T(() => {
4678
+ V(() => {
4677
4679
  t && l(t);
4678
4680
  }, [t]);
4679
- const o = b((a) => (d) => {
4681
+ const c = k((a) => (d) => {
4680
4682
  l((u) => {
4681
4683
  const m = d.target.checked ? [...u, a] : u.filter((h) => h !== a);
4682
4684
  return n == null || n(m), m;
4683
4685
  });
4684
- }, [n]), c = b((a) => i.includes(a), [i]);
4686
+ }, [n]), o = k((a) => i.includes(a), [i]);
4685
4687
  return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Pr.map((a) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
4686
4688
  /* @__PURE__ */ e.jsx(
4687
4689
  "input",
4688
4690
  {
4689
4691
  type: "checkbox",
4690
- onChange: o(a),
4691
- checked: c(a),
4692
+ onChange: c(a),
4693
+ checked: o(a),
4692
4694
  "aria-label": s[a] || a
4693
4695
  }
4694
4696
  ),
@@ -4704,32 +4706,32 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4704
4706
  border: s = !1,
4705
4707
  placeholder: i = "Добавить значение",
4706
4708
  addButtonLabel: l = "Добавить",
4707
- separator: o = ",",
4708
- disabled: c = !1,
4709
+ separator: c = ",",
4710
+ disabled: o = !1,
4709
4711
  className: a,
4710
4712
  ariaLabel: d = "Добавление нового элемента",
4711
4713
  chipsAriaLabel: u = "Список элементов",
4712
4714
  id: m,
4713
4715
  error: h,
4714
4716
  errorText: x,
4715
- helperText: j
4717
+ helperText: f
4716
4718
  }) => {
4717
- const [f, p] = g([]), [_, k] = g(""), [y, v] = g(null);
4718
- T(() => {
4719
- p(Wr(t, o));
4720
- }, [t, o]);
4721
- const M = (w) => {
4722
- k(w);
4723
- }, V = (w) => {
4724
- w.key === "Enter" && (w.preventDefault(), W());
4725
- }, W = b(() => {
4726
- if (_.trim() === "" || f.includes(_.trim()))
4719
+ const [j, p] = g([]), [_, y] = g(""), [N, C] = g(null);
4720
+ V(() => {
4721
+ p(Wr(t, c));
4722
+ }, [t, c]);
4723
+ const S = (w) => {
4724
+ y(w);
4725
+ }, T = (w) => {
4726
+ w.key === "Enter" && (w.preventDefault(), P());
4727
+ }, P = k(() => {
4728
+ if (_.trim() === "" || j.includes(_.trim()))
4727
4729
  return;
4728
- const w = [...f, _.trim()];
4729
- p(w), r == null || r(jn(w, o)), k(""), v(w.length - 1);
4730
- }, [f, _, r, o]), z = (w) => {
4731
- const P = f.filter((D, R) => R !== w);
4732
- p(P), r == null || r(jn(P, o)), v(w > 0 ? w - 1 : null);
4730
+ const w = [...j, _.trim()];
4731
+ p(w), r == null || r(jn(w, c)), y(""), C(w.length - 1);
4732
+ }, [j, _, r, c]), B = (w) => {
4733
+ const W = j.filter((O, A) => A !== w);
4734
+ p(W), r == null || r(jn(W, c)), C(w > 0 ? w - 1 : null);
4733
4735
  };
4734
4736
  return /* @__PURE__ */ e.jsxs(
4735
4737
  "div",
@@ -4741,15 +4743,15 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4741
4743
  /* @__PURE__ */ e.jsx("div", { className: "add-value", children: /* @__PURE__ */ e.jsx(
4742
4744
  Ve,
4743
4745
  {
4744
- onChange: M,
4745
- onKeyDown: V,
4746
+ onChange: S,
4747
+ onKeyDown: T,
4746
4748
  value: _,
4747
4749
  border: s,
4748
4750
  placeholder: i,
4749
4751
  error: h,
4750
4752
  errorText: x,
4751
- helperText: j,
4752
- disabled: c,
4753
+ helperText: f,
4754
+ disabled: o,
4753
4755
  "aria-label": d,
4754
4756
  "aria-describedby": m ? `${m}-help` : void 0
4755
4757
  }
@@ -4767,28 +4769,28 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4767
4769
  role: "listbox",
4768
4770
  "aria-label": u,
4769
4771
  "aria-multiselectable": "false",
4770
- children: f.map((w, P) => /* @__PURE__ */ e.jsx(
4772
+ children: j.map((w, W) => /* @__PURE__ */ e.jsx(
4771
4773
  Wn,
4772
4774
  {
4773
4775
  text: w,
4774
- onDelete: () => z(P),
4775
- disabled: c,
4776
+ onDelete: () => B(W),
4777
+ disabled: o,
4776
4778
  "aria-label": `Элемент: ${w}`,
4777
- "aria-selected": y === P,
4779
+ "aria-selected": N === W,
4778
4780
  role: "option",
4779
4781
  tabIndex: 0,
4780
- onFocus: () => v(P)
4782
+ onFocus: () => C(W)
4781
4783
  },
4782
- `${w}-${P}`
4784
+ `${w}-${W}`
4783
4785
  ))
4784
4786
  }
4785
4787
  ),
4786
4788
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4787
4789
  ye,
4788
4790
  {
4789
- onClick: W,
4791
+ onClick: P,
4790
4792
  className: "more-text-btn",
4791
- disabled: c || !_.trim(),
4793
+ disabled: o || !_.trim(),
4792
4794
  "aria-label": `${l} элемент`,
4793
4795
  children: l
4794
4796
  }
@@ -4800,78 +4802,78 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4800
4802
  ]
4801
4803
  }
4802
4804
  );
4803
- }, Jn = ne.forwardRef(({
4805
+ }, Jn = te.forwardRef(({
4804
4806
  inputRef: n,
4805
4807
  styleContainer: t,
4806
4808
  transparent: r,
4807
4809
  readOnly: s,
4808
4810
  border: i,
4809
4811
  onClear: l,
4810
- icon: o,
4811
- onChange: c,
4812
+ icon: c,
4813
+ onChange: o,
4812
4814
  name: a,
4813
4815
  value: d,
4814
4816
  placeholder: u,
4815
4817
  className: m,
4816
4818
  validEmptyValue: h,
4817
4819
  onFocus: x,
4818
- onBlur: j,
4819
- error: f,
4820
+ onBlur: f,
4821
+ error: j,
4820
4822
  max: p,
4821
4823
  min: _,
4822
- size: k = "medium",
4823
- disabled: y,
4824
- step: v = 1,
4825
- helperText: M,
4826
- errorText: V,
4827
- ariaLabel: W,
4828
- ariaLabelledby: z,
4824
+ size: y = "medium",
4825
+ disabled: N,
4826
+ step: C = 1,
4827
+ helperText: S,
4828
+ errorText: T,
4829
+ ariaLabel: P,
4830
+ ariaLabelledby: B,
4829
4831
  ariaDescribedby: w
4830
- }, P) => {
4831
- const D = Z(null), R = Z(null), N = Z(null), I = Z(null), [S, E] = g(!1), [O, A] = g(d ?? 0), K = b((B, G) => E(!!(f || B && (!G || G === ""))), [f]), Y = () => {
4832
- if (!I.current)
4832
+ }, W) => {
4833
+ const O = Y(null), A = Y(null), b = Y(null), D = Y(null), [M, E] = g(!1), [U, I] = g(d ?? 0), H = k((z, Z) => E(!!(j || z && (!Z || Z === ""))), [j]), G = () => {
4834
+ if (!D.current)
4833
4835
  return;
4834
- const B = I.current.querySelector("input");
4835
- B && B.focus();
4836
- }, C = b((B, G) => {
4837
- c && (N.current && (clearTimeout(N.current), N.current = null), N.current = setTimeout(() => {
4838
- N.current && (clearTimeout(N.current), N.current = null), c(B, G);
4836
+ const z = D.current.querySelector("input");
4837
+ z && z.focus();
4838
+ }, v = k((z, Z) => {
4839
+ o && (b.current && (clearTimeout(b.current), b.current = null), b.current = setTimeout(() => {
4840
+ b.current && (clearTimeout(b.current), b.current = null), o(z, Z);
4839
4841
  }, 100));
4840
- }, [c]), L = b(() => {
4841
- A((B) => {
4842
- let G = B ? B + v : v;
4843
- return typeof p == "number" && G > p && (G = p), C(G, a), G;
4842
+ }, [o]), L = k(() => {
4843
+ I((z) => {
4844
+ let Z = z ? z + C : C;
4845
+ return typeof p == "number" && Z > p && (Z = p), v(Z, a), Z;
4844
4846
  });
4845
- }, [C, a, p, v]), H = b(() => {
4846
- A((B) => {
4847
- let G = B ? B - v : -v;
4848
- return typeof _ == "number" && G < _ && (G = _), C(G, a), G;
4847
+ }, [v, a, p, C]), R = k(() => {
4848
+ I((z) => {
4849
+ let Z = z ? z - C : -C;
4850
+ return typeof _ == "number" && Z < _ && (Z = _), v(Z, a), Z;
4849
4851
  });
4850
- }, [C, a, _, v]), q = b((B) => {
4851
- if (B.target.value === "") {
4852
- A("");
4852
+ }, [v, a, _, C]), q = k((z) => {
4853
+ if (z.target.value === "") {
4854
+ I("");
4853
4855
  return;
4854
4856
  }
4855
- B.target.value.length > 1 && B.target.value[0] === "0" && ![",", "."].includes(B.target.value[1]) && (B.target.value = B.target.value.slice(1));
4856
- let G = Number(B.target.value);
4857
- typeof _ == "number" && G < _ && (G = _), typeof p == "number" && G > p && (G = p), A(Number(B.target.value)), C(G, a);
4858
- }, [a, C, O, p, _]), J = b(() => {
4859
- D.current && clearTimeout(D.current), R.current && clearInterval(R.current), document.removeEventListener("mouseup", J);
4860
- }, []), te = b((B) => {
4861
- B === "p" ? L() : B === "m" && H(), D.current && clearTimeout(D.current), R.current && clearInterval(R.current), document.addEventListener("mouseup", J), D.current = setTimeout(() => {
4862
- R.current = setInterval(() => {
4863
- B === "p" ? L() : B === "m" && H();
4857
+ z.target.value.length > 1 && z.target.value[0] === "0" && ![",", "."].includes(z.target.value[1]) && (z.target.value = z.target.value.slice(1));
4858
+ let Z = Number(z.target.value);
4859
+ typeof _ == "number" && Z < _ && (Z = _), typeof p == "number" && Z > p && (Z = p), I(Number(z.target.value)), v(Z, a);
4860
+ }, [a, v, U, p, _]), Q = k(() => {
4861
+ O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.removeEventListener("mouseup", Q);
4862
+ }, []), ne = k((z) => {
4863
+ z === "p" ? L() : z === "m" && R(), O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.addEventListener("mouseup", Q), O.current = setTimeout(() => {
4864
+ A.current = setInterval(() => {
4865
+ z === "p" ? L() : z === "m" && R();
4864
4866
  }, 100);
4865
4867
  }, 500);
4866
- }, [L, H]), Q = (B) => {
4867
- O === "" && (A(0), c == null || c(0)), j == null || j(B);
4868
+ }, [L, R]), J = (z) => {
4869
+ U === "" && (I(0), o == null || o(0)), f == null || f(z);
4868
4870
  };
4869
- T(() => {
4870
- K(h, d);
4871
- }, [d, h, K]), T(() => {
4872
- d !== void 0 && !N.current && A(d);
4871
+ V(() => {
4872
+ H(h, d);
4873
+ }, [d, h, H]), V(() => {
4874
+ d !== void 0 && !b.current && I(d);
4873
4875
  }, [d]);
4874
- const ie = {
4876
+ const le = {
4875
4877
  small: "input-field__number-field_small",
4876
4878
  medium: "input-field__number-field_medium",
4877
4879
  large: "input-field__number-field_large"
@@ -4880,57 +4882,57 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4880
4882
  /* @__PURE__ */ e.jsxs(
4881
4883
  "div",
4882
4884
  {
4883
- ref: P,
4885
+ ref: W,
4884
4886
  style: t,
4885
4887
  className: `
4886
4888
  input-field
4887
4889
  input-field__number-field
4888
- ${ie[k]}
4890
+ ${le[y]}
4889
4891
  ${i ? "input-field_border" : ""}
4890
4892
  ${r ? "input-field_transparent" : ""}
4891
- ${S ? "input-field_error" : ""}
4892
- ${y ? "input-field_disabled" : ""}
4893
+ ${M ? "input-field_error" : ""}
4894
+ ${N ? "input-field_disabled" : ""}
4893
4895
  `,
4894
- "aria-disabled": y,
4895
- "aria-invalid": S,
4896
+ "aria-disabled": N,
4897
+ "aria-invalid": M,
4896
4898
  children: [
4897
- o ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: Y, "aria-hidden": "true", children: o }) : null,
4898
- /* @__PURE__ */ e.jsxs("div", { ref: I, className: "input-field__input-container", onClick: Y, children: [
4899
+ c ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: G, "aria-hidden": "true", children: c }) : null,
4900
+ /* @__PURE__ */ e.jsxs("div", { ref: D, className: "input-field__input-container", onClick: G, children: [
4899
4901
  /* @__PURE__ */ e.jsx(
4900
4902
  "input",
4901
4903
  {
4902
4904
  ref: n,
4903
4905
  max: p,
4904
- step: v,
4906
+ step: C,
4905
4907
  min: _,
4906
4908
  readOnly: s,
4907
4909
  required: !0,
4908
4910
  type: "number",
4909
- className: `input-field__input-container__input ${S ? "input-field__input-container__input_error" : ""}`,
4911
+ className: `input-field__input-container__input ${M ? "input-field__input-container__input_error" : ""}`,
4910
4912
  name: a,
4911
- value: O,
4913
+ value: U,
4912
4914
  onChange: q,
4913
4915
  onFocus: x,
4914
- onBlur: Q,
4915
- "aria-label": W,
4916
- "aria-labelledby": z,
4916
+ onBlur: J,
4917
+ "aria-label": P,
4918
+ "aria-labelledby": B,
4917
4919
  "aria-describedby": w,
4918
4920
  "aria-required": "true",
4919
- "aria-invalid": S,
4920
- disabled: y
4921
+ "aria-invalid": M,
4922
+ disabled: N
4921
4923
  }
4922
4924
  ),
4923
4925
  /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: u ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: u }) : null }),
4924
4926
  /* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
4925
4927
  ] }),
4926
4928
  l ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(
4927
- de,
4929
+ ie,
4928
4930
  {
4929
4931
  onClick: l,
4930
4932
  role: "button",
4931
4933
  "aria-label": "Clear input",
4932
4934
  tabIndex: 0,
4933
- onKeyDown: (B) => B.key === "Enter" && l()
4935
+ onKeyDown: (z) => z.key === "Enter" && l()
4934
4936
  }
4935
4937
  ) }) : null,
4936
4938
  /* @__PURE__ */ e.jsxs("div", { className: "input-field__number-field__button-block", children: [
@@ -4938,11 +4940,11 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4938
4940
  "div",
4939
4941
  {
4940
4942
  className: "minus input-field__number-field__button-block__btn",
4941
- onMouseDown: () => te("m"),
4943
+ onMouseDown: () => ne("m"),
4942
4944
  role: "button",
4943
4945
  "aria-label": "Decrease value",
4944
4946
  tabIndex: 0,
4945
- onKeyDown: (B) => B.key === "Enter" && H(),
4947
+ onKeyDown: (z) => z.key === "Enter" && R(),
4946
4948
  children: /* @__PURE__ */ e.jsx(Fn, {})
4947
4949
  }
4948
4950
  ),
@@ -4950,11 +4952,11 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4950
4952
  "div",
4951
4953
  {
4952
4954
  className: "plus input-field__number-field__button-block__btn",
4953
- onMouseDown: () => te("p"),
4955
+ onMouseDown: () => ne("p"),
4954
4956
  role: "button",
4955
4957
  "aria-label": "Increase value",
4956
4958
  tabIndex: 0,
4957
- onKeyDown: (B) => B.key === "Enter" && L(),
4959
+ onKeyDown: (z) => z.key === "Enter" && L(),
4958
4960
  children: /* @__PURE__ */ e.jsx(En, {})
4959
4961
  }
4960
4962
  )
@@ -4962,29 +4964,29 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
4962
4964
  ]
4963
4965
  }
4964
4966
  ),
4965
- S && V && /* @__PURE__ */ e.jsx(
4966
- U,
4967
+ M && T && /* @__PURE__ */ e.jsx(
4968
+ X,
4967
4969
  {
4968
4970
  type: "small",
4969
4971
  className: "input-field-container__error-text",
4970
4972
  id: w,
4971
4973
  role: "alert",
4972
- children: V
4974
+ children: T
4973
4975
  }
4974
4976
  ),
4975
- M && !S && /* @__PURE__ */ e.jsx(
4976
- U,
4977
+ S && !M && /* @__PURE__ */ e.jsx(
4978
+ X,
4977
4979
  {
4978
4980
  type: "small",
4979
4981
  className: "input-field-container__helper-text",
4980
4982
  id: w,
4981
- children: M
4983
+ children: S
4982
4984
  }
4983
4985
  )
4984
4986
  ] });
4985
4987
  });
4986
4988
  Jn.displayName = "NumberField";
4987
- const Qn = ne.forwardRef(
4989
+ const Qn = te.forwardRef(
4988
4990
  ({
4989
4991
  onClick: n,
4990
4992
  inputRef: t,
@@ -4992,74 +4994,74 @@ const Qn = ne.forwardRef(
4992
4994
  transparent: s,
4993
4995
  readOnly: i,
4994
4996
  border: l,
4995
- onClear: o,
4996
- icon: c,
4997
+ onClear: c,
4998
+ icon: o,
4997
4999
  onChange: a,
4998
5000
  name: d,
4999
5001
  value: u,
5000
5002
  placeholder: m,
5001
5003
  className: h,
5002
5004
  validEmptyValue: x,
5003
- onFocus: j,
5004
- onBlur: f,
5005
+ onFocus: f,
5006
+ onBlur: j,
5005
5007
  error: p,
5006
5008
  autoFocus: _,
5007
- disabled: k,
5008
- helperText: y,
5009
- errorText: v,
5010
- rows: M = 3,
5011
- onKeyDown: V
5012
- }, W) => {
5013
- const z = Z(null), [w, P] = g(!1), [D, R] = g(!1), [N, I] = g(!!u), S = Be(), E = () => {
5014
- var C;
5015
- const Y = (C = z.current) == null ? void 0 : C.querySelector("textarea");
5016
- Y == null || Y.focus();
5017
- }, O = (Y) => {
5018
- j == null || j(Y), R(!0);
5019
- }, A = (Y) => {
5020
- f == null || f(Y), R(!1), I(!!Y.target.value);
5021
- }, K = b(
5022
- (Y, C) => P(!!(p || Y && (!C || C === ""))),
5009
+ disabled: y,
5010
+ helperText: N,
5011
+ errorText: C,
5012
+ rows: S = 3,
5013
+ onKeyDown: T
5014
+ }, P) => {
5015
+ const B = Y(null), [w, W] = g(!1), [O, A] = g(!1), [b, D] = g(!!u), M = Be(), E = () => {
5016
+ var v;
5017
+ const G = (v = B.current) == null ? void 0 : v.querySelector("textarea");
5018
+ G == null || G.focus();
5019
+ }, U = (G) => {
5020
+ f == null || f(G), A(!0);
5021
+ }, I = (G) => {
5022
+ j == null || j(G), A(!1), D(!!G.target.value);
5023
+ }, H = k(
5024
+ (G, v) => W(!!(p || G && (!v || v === ""))),
5023
5025
  [p]
5024
5026
  );
5025
- return T(() => {
5026
- K(x, u), I(!!u);
5027
- }, [u, x, K]), /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${h || ""}`, children: [
5027
+ return V(() => {
5028
+ H(x, u), D(!!u);
5029
+ }, [u, x, H]), /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${h || ""}`, children: [
5028
5030
  /* @__PURE__ */ e.jsxs(
5029
5031
  "div",
5030
5032
  {
5031
- ref: W,
5033
+ ref: P,
5032
5034
  style: r,
5033
5035
  className: `
5034
5036
  input-field__text-area
5035
5037
  input-field
5036
5038
  ${l ? "input-field_border" : ""}
5037
- ${D ? "input-field_active" : ""}
5039
+ ${O ? "input-field_active" : ""}
5038
5040
  ${s ? "input-field_transparent" : ""}
5039
5041
  ${w ? "input-field_error" : ""}
5040
- ${k ? "input-field_disabled" : ""}
5042
+ ${y ? "input-field_disabled" : ""}
5041
5043
  `,
5042
5044
  onClick: E,
5043
5045
  children: [
5044
- c && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", "aria-hidden": "true", children: c }),
5045
- /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container input-field__text-area__input-container", ref: z, children: [
5046
+ o && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", "aria-hidden": "true", children: o }),
5047
+ /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container input-field__text-area__input-container", ref: B, children: [
5046
5048
  /* @__PURE__ */ e.jsx(
5047
5049
  "textarea",
5048
5050
  {
5049
5051
  ref: t,
5050
- id: S,
5052
+ id: M,
5051
5053
  readOnly: i,
5052
- disabled: k,
5054
+ disabled: y,
5053
5055
  required: !0,
5054
- rows: M,
5056
+ rows: S,
5055
5057
  name: d,
5056
5058
  value: u,
5057
5059
  className: `input-field__input-container__input input-field__text-area__input-container__textarea ${w ? "input-field__input-container__input_error" : ""}`,
5058
5060
  onClick: n,
5059
- onChange: (Y) => a == null ? void 0 : a(Y.target.value, Y.target.name, Y),
5060
- onFocus: O,
5061
- onBlur: A,
5062
- onKeyDown: V,
5061
+ onChange: (G) => a == null ? void 0 : a(G.target.value, G.target.name, G),
5062
+ onFocus: U,
5063
+ onBlur: I,
5064
+ onKeyDown: T,
5063
5065
  autoFocus: _,
5064
5066
  "aria-invalid": w,
5065
5067
  "aria-describedby": w ? `${d}-error` : void 0
@@ -5068,29 +5070,29 @@ const Qn = ne.forwardRef(
5068
5070
  m && /* @__PURE__ */ e.jsx(
5069
5071
  "label",
5070
5072
  {
5071
- htmlFor: S,
5073
+ htmlFor: M,
5072
5074
  onClick: E,
5073
- className: `input-field__input-container__label input-field__text-area__label ${N ? "input-field__input-container__label_filled" : ""}`,
5075
+ className: `input-field__input-container__label input-field__text-area__label ${b ? "input-field__input-container__label_filled" : ""}`,
5074
5076
  children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
5075
5077
  }
5076
5078
  )
5077
5079
  ] }),
5078
- o && u && !k && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container input-field__icon-container__clear-btn", onClick: o, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear textarea" }) })
5080
+ c && u && !y && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container input-field__icon-container__clear-btn", onClick: c, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear textarea" }) })
5079
5081
  ]
5080
5082
  }
5081
5083
  ),
5082
- w && v && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: v }),
5083
- y && !w && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: y })
5084
+ w && C && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: C }),
5085
+ N && !w && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: N })
5084
5086
  ] });
5085
5087
  }
5086
5088
  );
5087
5089
  Qn.displayName = "TextArea";
5088
- const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: o }) => {
5089
- const [c, a] = g(!1), d = b((h) => {
5090
+ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: c }) => {
5091
+ const [o, a] = g(!1), d = k((h) => {
5090
5092
  n(h), a(!0);
5091
- }, [n]), u = b((h) => {
5093
+ }, [n]), u = k((h) => {
5092
5094
  t(h), a(!1);
5093
- }, [t]), m = b(() => {
5095
+ }, [t]), m = k(() => {
5094
5096
  a(!1), l();
5095
5097
  }, []);
5096
5098
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -5106,11 +5108,11 @@ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
5106
5108
  /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
5107
5109
  ] })
5108
5110
  ] }),
5109
- /* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: c ? /* @__PURE__ */ e.jsx(Ur, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Yr, { setHours: d }) }),
5111
+ /* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: o ? /* @__PURE__ */ e.jsx(Ur, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Yr, { setHours: d }) }),
5110
5112
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5111
5113
  /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Rn, {}) }),
5112
- /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: m, children: "Cancel" }),
5113
- /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: o, children: "OK" })
5114
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: m, children: "Cancel" }),
5115
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: c, children: "OK" })
5114
5116
  ] })
5115
5117
  ] });
5116
5118
  };
@@ -5166,8 +5168,8 @@ function Ur({ setMinutes: n }) {
5166
5168
  /* @__PURE__ */ e.jsx("span", { className: "center" })
5167
5169
  ] });
5168
5170
  }
5169
- const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, onCancel: l, onOK: o }) => {
5170
- const c = (d) => {
5171
+ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, onCancel: l, onOK: c }) => {
5172
+ const o = (d) => {
5171
5173
  let u = Number(d.target.value);
5172
5174
  u < 0 && (u = 0), u > 23 && (u = 23), n(u);
5173
5175
  }, a = (d) => {
@@ -5178,7 +5180,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5178
5180
  /* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Enter time" }) }),
5179
5181
  /* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
5180
5182
  /* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
5181
- /* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: i, onChange: c }) }),
5183
+ /* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: i, onChange: o }) }),
5182
5184
  /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
5183
5185
  ] }),
5184
5186
  /* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
@@ -5189,19 +5191,19 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5189
5191
  ] }),
5190
5192
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5191
5193
  /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(en, {}) }),
5192
- /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: l, children: "Cancel" }),
5193
- /* @__PURE__ */ e.jsx(ce, { className: "little", onClick: o, children: "OK" })
5194
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: l, children: "Cancel" }),
5195
+ /* @__PURE__ */ e.jsx(de, { className: "little", onClick: c, children: "OK" })
5194
5196
  ] })
5195
5197
  ] });
5196
5198
  }, Kr = (n) => {
5197
- const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, o] = g(!0), c = () => {
5199
+ const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, c] = g(!0), o = () => {
5198
5200
  n.onHide && n.onHide(), r(0), i(0);
5199
- }, a = b((u) => {
5201
+ }, a = k((u) => {
5200
5202
  r(u), n.onChange && n.onChange(s, u), n.onHide && n.onHide();
5201
- }, [s]), d = b(() => {
5203
+ }, [s]), d = k(() => {
5202
5204
  n.onChange && n.onChange(s, t), n.onHide && n.onHide();
5203
5205
  }, [s, t]);
5204
- return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: a, setHours: i, minutes: t, hours: s, switchMode: () => o(!1), onCancel: c, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Xr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => o(!0), onCancel: c, onOK: d }) });
5206
+ return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: a, setHours: i, minutes: t, hours: s, switchMode: () => c(!1), onCancel: o, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Xr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => c(!0), onCancel: o, onOK: d }) });
5205
5207
  }, qr = {
5206
5208
  small: "input-field__time-field_small",
5207
5209
  medium: "input-field__time-field_medium",
@@ -5213,39 +5215,42 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5213
5215
  value: s = "",
5214
5216
  className: i = "",
5215
5217
  validEmptyValue: l,
5216
- error: o,
5217
- container: c,
5218
+ error: c,
5219
+ container: o,
5218
5220
  disabled: a = !1,
5219
5221
  errorText: d,
5220
5222
  helperText: u,
5221
5223
  ariaLabel: m,
5222
5224
  size: h = "medium",
5223
5225
  ariaLabelledby: x,
5224
- placeholder: j,
5225
- onBlur: f,
5226
+ placeholder: f,
5227
+ onBlur: j,
5226
5228
  onFocus: p,
5227
- style: _,
5228
- ...k
5229
+ onClear: _,
5230
+ style: y,
5231
+ ...N
5229
5232
  }) => {
5230
- const [y, v] = g(s), [M, V] = g(!1), [W, z] = g(!1), [w, P] = g(!!s), D = Be(), R = o || !!d;
5231
- T(() => {
5232
- v(s);
5233
+ const [C, S] = g(s), [T, P] = g(!1), [B, w] = g(!1), [W, O] = g(!!s), A = Be(), b = c || !!d;
5234
+ V(() => {
5235
+ S(s);
5233
5236
  }, [s]);
5234
- const N = b(() => R || l && !y ? "error" : "", [y, R, l]), I = (C, L) => {
5235
- const H = String(C).padStart(2, "0"), q = String(L).padStart(2, "0"), J = `${H}:${q}`;
5236
- v(J), t == null || t(J);
5237
- }, S = () => {
5238
- a || V(!0);
5239
- }, E = (C) => {
5240
- p == null || p(C), z(!0);
5241
- }, O = (C) => {
5242
- f == null || f(C), z(!1), P(!!C.target.value);
5243
- };
5244
- T(() => {
5245
- P(!!s);
5237
+ const D = k(() => b || l && !C ? "error" : "", [C, b, l]), M = (R, q) => {
5238
+ const Q = String(R).padStart(2, "0"), ne = String(q).padStart(2, "0"), J = `${Q}:${ne}`;
5239
+ S(J), t == null || t(J);
5240
+ }, E = () => {
5241
+ a || P(!0);
5242
+ }, U = (R) => {
5243
+ p == null || p(R), w(!0);
5244
+ }, I = (R) => {
5245
+ j == null || j(R), w(!1), O(!!R.target.value);
5246
+ }, H = k(() => {
5247
+ S(""), _ == null || _(), t == null || t("");
5248
+ }, [_, t]);
5249
+ V(() => {
5250
+ O(!!s);
5246
5251
  }, [s]);
5247
- const A = y && parseInt(y.split(":")[0]) || 0, K = y && parseInt(y.split(":")[1]) || 0, Y = oe(() => R && d ? /* @__PURE__ */ e.jsx(
5248
- U,
5252
+ const G = C && parseInt(C.split(":")[0]) || 0, v = C && parseInt(C.split(":")[1]) || 0, L = oe(() => b && d ? /* @__PURE__ */ e.jsx(
5253
+ X,
5249
5254
  {
5250
5255
  type: "small",
5251
5256
  className: "error-text",
@@ -5253,15 +5258,15 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5253
5258
  id: `${r}-error`,
5254
5259
  children: d
5255
5260
  }
5256
- ) : u && !R ? /* @__PURE__ */ e.jsx(
5257
- U,
5261
+ ) : u && !b ? /* @__PURE__ */ e.jsx(
5262
+ X,
5258
5263
  {
5259
5264
  type: "small",
5260
5265
  className: "helper-text",
5261
5266
  id: `${r}-helper`,
5262
5267
  children: u
5263
5268
  }
5264
- ) : null, [R, d, u, r]);
5269
+ ) : null, [b, d, u, r]);
5265
5270
  return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${i}`, children: [
5266
5271
  /* @__PURE__ */ e.jsxs(
5267
5272
  "div",
@@ -5271,66 +5276,70 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
5271
5276
  input-field__time-field
5272
5277
  ${qr[h]}
5273
5278
  ${n ? "input-field_border" : ""}
5274
- ${W ? "input-field_active" : ""}
5275
- ${R ? "input-field_error" : ""}
5279
+ ${B ? "input-field_active" : ""}
5280
+ ${b ? "input-field_error" : ""}
5276
5281
  ${a ? "input-field_disabled" : ""}
5277
5282
  `,
5278
5283
  "aria-disabled": a,
5279
- style: _,
5284
+ style: y,
5280
5285
  children: [
5281
5286
  /* @__PURE__ */ e.jsx(
5282
5287
  "div",
5283
5288
  {
5284
5289
  className: "input-field__icon-container",
5285
- onClick: S,
5290
+ onClick: E,
5286
5291
  "aria-label": "Открыть пикер времени",
5287
5292
  role: "button",
5288
5293
  tabIndex: a ? -1 : 0,
5289
- onKeyDown: (C) => C.key === "Enter" && S(),
5294
+ onKeyDown: (R) => R.key === "Enter" && E(),
5290
5295
  children: /* @__PURE__ */ e.jsx(en, {})
5291
5296
  }
5292
5297
  ),
5293
- /* @__PURE__ */ e.jsxs("div", { "aria-label": m, className: "input-field__input-container", onClick: S, children: [
5298
+ /* @__PURE__ */ e.jsxs("div", { "aria-label": m, className: "input-field__input-container", onClick: E, children: [
5294
5299
  /* @__PURE__ */ e.jsx(
5295
5300
  "input",
5296
5301
  {
5297
- ...k,
5302
+ ...N,
5298
5303
  type: "time",
5299
- className: `input-field__input-container__input ${N()}`,
5304
+ className: `input-field__input-container__input ${D()}`,
5300
5305
  name: r,
5301
- value: y,
5306
+ value: C,
5302
5307
  readOnly: !0,
5303
- onBlur: O,
5304
- onFocus: E,
5308
+ onBlur: I,
5309
+ onFocus: U,
5305
5310
  disabled: a,
5306
5311
  "aria-labelledby": x,
5307
- "aria-invalid": R,
5308
- "aria-describedby": R && d ? `${r}-error` : u ? `${r}-helper` : void 0
5312
+ "aria-invalid": b,
5313
+ "aria-describedby": b && d ? `${r}-error` : u ? `${r}-helper` : void 0
5309
5314
  }
5310
5315
  ),
5311
- j && /* @__PURE__ */ e.jsx(
5316
+ f && /* @__PURE__ */ e.jsx(
5312
5317
  "label",
5313
5318
  {
5314
- htmlFor: D,
5319
+ htmlFor: A,
5315
5320
  className: `input-field__input-container__label
5316
- ${w ? "input-field__input-container__label_filled" : ""}
5321
+ ${W ? "input-field__input-container__label_filled" : ""}
5317
5322
  `,
5318
- children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: j })
5323
+ children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: f })
5319
5324
  }
5320
5325
  ),
5321
5326
  /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__text-field-line" })
5322
- ] })
5327
+ ] }),
5328
+ _ && C && !a && /* @__PURE__ */ e.jsx("div", { className: `
5329
+ input-field__icon-container
5330
+ input-field__icon-container_clear-btn
5331
+ `, onClick: H, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
5323
5332
  ]
5324
5333
  }
5325
5334
  ),
5326
- Y,
5327
- M && /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(
5335
+ L,
5336
+ T && /* @__PURE__ */ e.jsx(_e, { container: o, children: /* @__PURE__ */ e.jsx(
5328
5337
  Kr,
5329
5338
  {
5330
- onHide: () => V(!1),
5331
- onChange: I,
5332
- hours: A,
5333
- minutes: K
5339
+ onHide: () => P(!1),
5340
+ onChange: M,
5341
+ hours: G,
5342
+ minutes: v
5334
5343
  }
5335
5344
  ) })
5336
5345
  ] });
@@ -5339,58 +5348,58 @@ function Qr(n, t, r, s, i) {
5339
5348
  return s + (i - s) * ((n - t) / (r - t));
5340
5349
  }
5341
5350
  const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5342
- const [r, s] = g(0), [i, l] = g(!1), o = Z(null), c = Z(null);
5343
- T(() => {
5351
+ const [r, s] = g(0), [i, l] = g(!1), c = Y(null), o = Y(null);
5352
+ V(() => {
5344
5353
  t.value ? s(t.value) : s(0);
5345
5354
  }, [t.value]);
5346
5355
  const a = (h) => {
5347
5356
  s(Number(h.target.value)), t.onChange && t.onChange(h);
5348
- }, d = (h, x, j) => {
5349
- if (o.current && c.current) {
5350
- let f = Ye(c.current);
5351
- if (f)
5352
- return Qr(h, x, j, 0, j - x) * (f.width - 20) / (j - x);
5357
+ }, d = (h, x, f) => {
5358
+ if (c.current && o.current) {
5359
+ let j = Ye(o.current);
5360
+ if (j)
5361
+ return Qr(h, x, f, 0, f - x) * (j.width - 20) / (f - x);
5353
5362
  }
5354
5363
  return 0;
5355
- }, u = b((h) => {
5364
+ }, u = k((h) => {
5356
5365
  l(!0), t.onFocus && t.onFocus(h);
5357
- }, [t.onFocus]), m = b((h) => {
5366
+ }, [t.onFocus]), m = k((h) => {
5358
5367
  l(!1), t.onBlur && t.onBlur(h);
5359
5368
  }, [t.onBlur]);
5360
5369
  return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
5361
5370
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: t.min ?? Ke }) : null,
5362
5371
  /* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
5363
- /* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: o, style: { width: d(r, t.min ?? Ke, t.max ?? qe) }, children: /* @__PURE__ */ e.jsx("div", { className: "slider-tooltip", style: { display: i ? "block" : "none" }, children: n && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5372
+ /* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: c, style: { width: d(r, t.min ?? Ke, t.max ?? qe) }, children: /* @__PURE__ */ e.jsx("div", { className: "slider-tooltip", style: { display: i ? "block" : "none" }, children: n && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5364
5373
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
5365
5374
  /* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
5366
5375
  ] }) }) }),
5367
- /* @__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 })
5376
+ /* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: o, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur: m })
5368
5377
  ] }),
5369
5378
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: t.max ?? qe }) : null
5370
5379
  ] }) });
5371
- }, Ks = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: l, btn: o }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jt(i), color: s, ...l }, children: [
5380
+ }, Ks = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: l, btn: c }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jt(i), color: s, ...l }, children: [
5372
5381
  /* @__PURE__ */ e.jsx("h2", { children: r }),
5373
5382
  t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
5374
- o ? /* @__PURE__ */ e.jsx(ye, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
5375
- ] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
5376
- const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, j] = g(!0), f = b((y, v) => {
5377
- s({ ...r, [v]: y });
5378
- }, [s, r]), p = b(() => {
5383
+ c ? /* @__PURE__ */ e.jsx(ye, { styleType: c.styleType ?? "filled", style: c.style, className: c.className, onClick: c.onClick, children: c.text }) : null
5384
+ ] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: c }) => {
5385
+ const [o, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, f] = g(!0), j = k((N, C) => {
5386
+ s({ ...r, [C]: N });
5387
+ }, [s, r]), p = k(() => {
5379
5388
  u(""), a(""), h(!1);
5380
- }, []), _ = b(() => {
5381
- let y = d;
5389
+ }, []), _ = k(() => {
5390
+ let N = d;
5382
5391
  try {
5383
- o || (y = JSON.parse(y));
5392
+ c || (N = JSON.parse(N));
5384
5393
  } catch {
5385
5394
  }
5386
- p(), s({ ...r, [c]: y });
5387
- }, [r, s, c, d, p]), k = b((y) => {
5388
- let v = { ...r };
5389
- delete v[y], s(v);
5395
+ p(), s({ ...r, [o]: N });
5396
+ }, [r, s, o, d, p]), y = k((N) => {
5397
+ let C = { ...r };
5398
+ delete C[N], s(C);
5390
5399
  }, [r, s]);
5391
5400
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5392
5401
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
5393
- /* @__PURE__ */ e.jsxs("span", { onClick: () => j((y) => !y), className: "json-element json-object-name json-object-header", children: [
5402
+ /* @__PURE__ */ e.jsxs("span", { onClick: () => f((N) => !N), className: "json-element json-object-name json-object-header", children: [
5394
5403
  t,
5395
5404
  ":",
5396
5405
  "{",
@@ -5399,12 +5408,12 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5399
5408
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5400
5409
  ] }),
5401
5410
  x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
5402
- (y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => k(y), onChange: (M) => f(M, y), name: y, data: r[y] }) }, v)
5411
+ (N, C) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => y(N), onChange: (S) => j(S, N), name: N, data: r[N] }) }, C)
5403
5412
  ) : null }) : null,
5404
5413
  m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5405
- /* @__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 }) }),
5414
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "key", onChange: (N) => a(N.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5406
5415
  ":",
5407
- /* @__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 }) }),
5416
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (N) => u(N.target.value), className: "json-base-data-input", type: "text", value: d }) }),
5408
5417
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: _, children: "save" }),
5409
5418
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: p, children: "cancel" })
5410
5419
  ] }) : null,
@@ -5413,21 +5422,21 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5413
5422
  !n && !l ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(Ge, {}) }) : null
5414
5423
  ] })
5415
5424
  ] }) });
5416
- }, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
5417
- const [c, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = b((_, k) => {
5418
- const y = r.slice();
5419
- y[k] = _, s(y);
5420
- }, [s, r]), j = b(() => {
5425
+ }, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: c }) => {
5426
+ const [o, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((_, y) => {
5427
+ const N = r.slice();
5428
+ N[y] = _, s(N);
5429
+ }, [s, r]), f = k(() => {
5421
5430
  a(""), u(!1);
5422
- }, []), f = b(() => {
5423
- let _ = c;
5431
+ }, []), j = k(() => {
5432
+ let _ = o;
5424
5433
  try {
5425
- o || (_ = JSON.parse(_));
5434
+ c || (_ = JSON.parse(_));
5426
5435
  } catch {
5427
5436
  }
5428
- j(), s([...r, _]);
5429
- }, [r, s, c, j]), p = b((_) => {
5430
- s(r.filter((k, y) => y !== _));
5437
+ f(), s([...r, _]);
5438
+ }, [r, s, o, f]), p = k((_) => {
5439
+ s(r.filter((y, N) => N !== _));
5431
5440
  }, [r, s]);
5432
5441
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
5433
5442
  /* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
@@ -5439,11 +5448,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5439
5448
  ] }),
5440
5449
  n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
5441
5450
  ] }),
5442
- m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, k) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => p(k), onChange: (y) => x(y, k), name: String(k), data: _ }) }, k)) }) : null,
5451
+ m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => p(y), onChange: (N) => x(N, y), name: String(y), data: _ }) }, y)) }) : null,
5443
5452
  d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
5444
- /* @__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 }) }),
5445
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: f, children: "save" }),
5446
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: j, children: "cancel" })
5453
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: o.length || 10, placeholder: "value", onChange: (_) => a(_.target.value), className: "json-base-data-input", type: "text", value: o }) }),
5454
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: j, children: "save" }),
5455
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: f, children: "cancel" })
5447
5456
  ] }) : null,
5448
5457
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5449
5458
  "]",
@@ -5451,8 +5460,8 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5451
5460
  ] })
5452
5461
  ] }) });
5453
5462
  }, ts = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
5454
- const l = b((o) => {
5455
- s(o.target.value);
5463
+ const l = k((c) => {
5464
+ s(c.target.value);
5456
5465
  }, [s]);
5457
5466
  return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5458
5467
  /* @__PURE__ */ e.jsx("span", { className: "json-object-name", children: t }),
@@ -5464,47 +5473,47 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
5464
5473
  ] }) }) });
5465
5474
  };
5466
5475
  var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
5467
- 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 }) => {
5468
- const [c, a] = g(r || void 0), [d, u] = g(""), m = b((j) => {
5469
- n || (a(j), s && s(j));
5470
- }, [s]), h = b(() => {
5476
+ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: c }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: c }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: c }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: c }) => {
5477
+ const [o, a] = g(r || void 0), [d, u] = g(""), m = k((f) => {
5478
+ n || (a(f), s && s(f));
5479
+ }, [s]), h = k(() => {
5471
5480
  n || (a(void 0), i && i());
5472
- }, [i]), x = b(() => {
5481
+ }, [i]), x = k(() => {
5473
5482
  if (n)
5474
5483
  return;
5475
- let j = d;
5484
+ let f = d;
5476
5485
  try {
5477
- j = JSON.parse(j);
5486
+ f = JSON.parse(f);
5478
5487
  } catch {
5479
5488
  }
5480
- a(j), s && s(j);
5489
+ a(f), s && s(f);
5481
5490
  }, [s, d]);
5482
- return T(() => {
5491
+ return V(() => {
5483
5492
  a(r);
5484
- }, [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: [
5485
- /* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
5486
- /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: c, baseType: l, name: t, onlyStringValue: o })
5493
+ }, [r]), !o && n ? /* @__PURE__ */ e.jsx("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: "value" }) }) : o ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5494
+ /* @__PURE__ */ e.jsx(on, { transparent: !0, text: JSON.stringify(r) }),
5495
+ /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: o, baseType: l, name: t, onlyStringValue: c })
5487
5496
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
5488
- /* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
5489
- /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (j) => u(j.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
5497
+ /* @__PURE__ */ e.jsx(on, { transparent: !0, text: JSON.stringify(r) }),
5498
+ /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (f) => u(f.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
5490
5499
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
5491
5500
  ] });
5492
5501
  }, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
5493
- const o = Z(null), [c, a] = g(""), [d, u] = g(!1), m = () => {
5494
- o.current && (o.current.focus(), u(!0));
5502
+ const c = Y(null), [o, a] = g(""), [d, u] = g(!1), m = () => {
5503
+ c.current && (c.current.focus(), u(!0));
5495
5504
  }, h = () => {
5496
- o.current && (o.current.focus(), o.current.value = ""), a(""), u(!0), i && r("");
5505
+ c.current && (c.current.focus(), c.current.value = ""), a(""), u(!0), i && r("");
5497
5506
  }, x = () => {
5498
- h(), o.current && (o.current.blur(), u(!1));
5499
- }, j = (p) => {
5500
- a(p.target.value), i && r(p.target.value);
5507
+ h(), c.current && (c.current.blur(), u(!1));
5501
5508
  }, f = (p) => {
5502
- p.code === "Enter" && r(c);
5509
+ a(p.target.value), i && r(p.target.value);
5510
+ }, j = (p) => {
5511
+ p.code === "Enter" && r(o);
5503
5512
  };
5504
5513
  return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5505
5514
  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,
5506
- /* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange: j, onKeyDown: f, value: c, onFocus: () => u(!0) }),
5507
- d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(de, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
5515
+ /* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: c, onChange: f, onKeyDown: j, value: o, onFocus: () => u(!0) }),
5516
+ d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
5508
5517
  ] }) });
5509
5518
  }, rs = ({
5510
5519
  filters: n,
@@ -5514,14 +5523,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5514
5523
  onClose: i,
5515
5524
  point: l = { x: 50, y: 50 }
5516
5525
  }) => {
5517
- const o = Z(null);
5518
- if (T(() => {
5526
+ const c = Y(null);
5527
+ if (V(() => {
5519
5528
  const d = (u) => {
5520
- s && o.current && !o.current.contains(u.target) && i();
5529
+ s && c.current && !c.current.contains(u.target) && i();
5521
5530
  };
5522
5531
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
5523
5532
  }, [s, i]), !s) return null;
5524
- const c = (d, u) => {
5533
+ const o = (d, u) => {
5525
5534
  const m = t[d] || [], h = m.includes(u) ? m.filter((x) => x !== u) : [...m, u];
5526
5535
  r({
5527
5536
  ...t,
@@ -5532,19 +5541,19 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5532
5541
  left: `${l.x}px`,
5533
5542
  zIndex: 1e3
5534
5543
  };
5535
- 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: [
5544
+ return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: c, children: n.map(({ name: d, options: u }, m) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5536
5545
  m !== 0 && /* @__PURE__ */ e.jsx(se, {}),
5537
- /* @__PURE__ */ e.jsx(U, { type: "title-2", weight: "bold", children: d }),
5546
+ /* @__PURE__ */ e.jsx(X, { type: "title-2", weight: "bold", children: d }),
5538
5547
  /* @__PURE__ */ e.jsx("div", { className: "filter-block", children: u.map((h) => /* @__PURE__ */ e.jsxs("label", { className: "filter-field", children: [
5539
5548
  /* @__PURE__ */ e.jsx(
5540
5549
  Bn,
5541
5550
  {
5542
5551
  name: d,
5543
5552
  checked: (t[d] || []).includes(h),
5544
- onChange: () => c(d, h)
5553
+ onChange: () => o(d, h)
5545
5554
  }
5546
5555
  ),
5547
- /* @__PURE__ */ e.jsx(U, { type: "body", children: h })
5556
+ /* @__PURE__ */ e.jsx(X, { type: "body", children: h })
5548
5557
  ] })) })
5549
5558
  ] }, d)) }) }) });
5550
5559
  }, Qs = ({
@@ -5554,40 +5563,40 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5554
5563
  filters: s,
5555
5564
  selectedFilters: i,
5556
5565
  onChangeFilter: l,
5557
- border: o = !1
5566
+ border: c = !1
5558
5567
  }) => {
5559
- const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), j = () => {
5560
- c.current && (c.current.focus(), m(!0));
5561
- }, f = () => {
5562
- c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
5568
+ const o = Y(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), f = () => {
5569
+ o.current && (o.current.focus(), m(!0));
5570
+ }, j = () => {
5571
+ o.current && (o.current.focus(), o.current.value = ""), d(""), m(!0), r && n("");
5563
5572
  }, p = () => {
5564
- f(), c.current && (c.current.blur(), m(!1));
5565
- }, _ = (v) => {
5566
- d(v.target.value), r && n(v.target.value);
5567
- }, k = (v) => {
5568
- v.code === "Enter" && n(a);
5569
- }, y = (v) => {
5570
- const M = v.currentTarget.getBoundingClientRect();
5573
+ j(), o.current && (o.current.blur(), m(!1));
5574
+ }, _ = (C) => {
5575
+ d(C.target.value), r && n(C.target.value);
5576
+ }, y = (C) => {
5577
+ C.code === "Enter" && n(a);
5578
+ }, N = (C) => {
5579
+ const S = C.currentTarget.getBoundingClientRect();
5571
5580
  x({
5572
- x: M.left,
5573
- y: M.bottom
5581
+ x: S.left,
5582
+ y: S.bottom
5574
5583
  // ниже элемента
5575
5584
  });
5576
5585
  };
5577
5586
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5578
- /* @__PURE__ */ e.jsx("div", { className: `search-container ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5579
- u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: y, children: /* @__PURE__ */ e.jsx(On, {}) }),
5580
- /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown: k, value: a, onFocus: () => m(!0) }),
5581
- u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(de, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(tn, {}) })
5587
+ /* @__PURE__ */ e.jsx("div", { className: `search-container ${c ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5588
+ u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: N, children: /* @__PURE__ */ e.jsx(On, {}) }),
5589
+ /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: o, onChange: _, onKeyDown: y, value: a, onFocus: () => m(!0) }),
5590
+ u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(tn, {}) })
5582
5591
  ] }) }),
5583
5592
  /* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
5584
5593
  ] });
5585
5594
  }, ss = ({ visible: n, text: t, option: r }) => {
5586
- const [s, i] = g(n), [l, o] = g(!1);
5587
- T(() => {
5588
- n ? (i(!0), setTimeout(() => o(!0), 10)) : (o(!1), setTimeout(() => i(!1), 300));
5595
+ const [s, i] = g(n), [l, c] = g(!1);
5596
+ V(() => {
5597
+ n ? (i(!0), setTimeout(() => c(!0), 10)) : (c(!1), setTimeout(() => i(!1), 300));
5589
5598
  }, [n]);
5590
- const c = () => {
5599
+ const o = () => {
5591
5600
  var a;
5592
5601
  return (a = r == null ? void 0 : r.onHide) == null ? void 0 : a.call(r);
5593
5602
  };
@@ -5601,9 +5610,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5601
5610
  children: [
5602
5611
  /* @__PURE__ */ e.jsxs("div", { className: "snackbar-content-container", children: [
5603
5612
  /* @__PURE__ */ e.jsx("div", { className: "snackbar-text", children: t }),
5604
- (r == null ? void 0 : r.onClick) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(ce, { className: "snackbar-btn", onClick: r.onClick, children: r.buttonText ?? "Action" }) })
5613
+ (r == null ? void 0 : r.onClick) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(de, { className: "snackbar-btn", onClick: r.onClick, children: r.buttonText ?? "Action" }) })
5605
5614
  ] }),
5606
- (r == null ? void 0 : r.closeButton) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: c, children: /* @__PURE__ */ e.jsx(de, {}) }) })
5615
+ (r == null ? void 0 : r.closeButton) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: o, children: /* @__PURE__ */ e.jsx(ie, {}) }) })
5607
5616
  ]
5608
5617
  }
5609
5618
  ) : null;
@@ -5614,33 +5623,33 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5614
5623
  density: s = "normal",
5615
5624
  className: i = "",
5616
5625
  text: l,
5617
- style: o,
5618
- onClick: c,
5626
+ style: c,
5627
+ onClick: o,
5619
5628
  onContextMenu: a,
5620
5629
  ...d
5621
5630
  }) => {
5622
- const u = Z(null), m = Z(null), [h, x] = g(!1), j = n === "heading" || n === "title" || n === "title-2", f = j ? "h3" : "span", p = {
5631
+ const u = Y(null), m = Y(null), [h, x] = g(!1), f = n === "heading" || n === "title" || n === "title-2", j = f ? "h3" : "span", p = {
5623
5632
  fontSize: bn(n, t),
5624
5633
  fontWeight: kn(n, r),
5625
5634
  lineHeight: yn(n, s, t),
5626
- ...o
5627
- }, _ = j ? "typography-heading" : "typography-text", k = b(() => {
5635
+ ...c
5636
+ }, _ = f ? "typography-heading" : "typography-text", y = k(() => {
5628
5637
  if (!u.current || !m.current) return;
5629
- const y = u.current.clientWidth, v = m.current.scrollWidth;
5630
- x(y < v);
5638
+ const N = u.current.clientWidth, C = m.current.scrollWidth;
5639
+ x(N < C);
5631
5640
  }, [l]);
5632
- return T(() => (k(), window.addEventListener("resize", k), () => {
5633
- window.removeEventListener("resize", k);
5634
- }), [k]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5641
+ return V(() => (y(), window.addEventListener("resize", y), () => {
5642
+ window.removeEventListener("resize", y);
5643
+ }), [y]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5635
5644
  /* @__PURE__ */ e.jsx(
5636
5645
  "div",
5637
5646
  {
5638
5647
  ref: u,
5639
- onClick: c,
5648
+ onClick: o,
5640
5649
  onContextMenu: a,
5641
5650
  className: `runing-text ${h ? "runing" : ""}`,
5642
5651
  children: /* @__PURE__ */ e.jsx(
5643
- f,
5652
+ j,
5644
5653
  {
5645
5654
  ...d,
5646
5655
  style: p,
@@ -5674,7 +5683,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5674
5683
  return r.title;
5675
5684
  }
5676
5685
  return "";
5677
- }, nt = ne.forwardRef(
5686
+ }, nt = te.forwardRef(
5678
5687
  ({
5679
5688
  inputRef: n,
5680
5689
  style: t,
@@ -5682,74 +5691,74 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
5682
5691
  items: s,
5683
5692
  onChange: i,
5684
5693
  value: l,
5685
- placeholder: o,
5686
- className: c,
5694
+ placeholder: c,
5695
+ className: o,
5687
5696
  border: a,
5688
5697
  name: d,
5689
5698
  error: u,
5690
5699
  onBlur: m,
5691
5700
  onFocus: h,
5692
5701
  container: x = document.body,
5693
- size: j = "medium",
5694
- transparent: f,
5702
+ size: f = "medium",
5703
+ transparent: j,
5695
5704
  helperText: p,
5696
5705
  errorText: _,
5697
- disabled: k
5698
- }, y) => {
5699
- const [v, M] = g(""), [V, W] = g({ x: 0, y: 0, width: 100 }), [z, w] = g(!1), P = !!(u || _);
5700
- T(() => {
5701
- M(pn(s, l ?? ""));
5706
+ disabled: y
5707
+ }, N) => {
5708
+ const [C, S] = g(""), [T, P] = g({ x: 0, y: 0, width: 100 }), [B, w] = g(!1), W = !!(u || _);
5709
+ V(() => {
5710
+ S(pn(s, l ?? ""));
5702
5711
  }, [l, s]);
5703
- const D = b((S) => {
5704
- M(pn(s, S)), i && i(S), w(!1);
5705
- }, [s, i]), R = b((S) => typeof S == "string" ? { title: S, onClick: () => D(S) } : { title: S.title, onClick: () => D(S.value), icon: S.icon, disabled: S.disabled }, [D]), N = b((S) => {
5706
- if (k) return;
5707
- S.preventDefault();
5708
- let E = Ye(S.currentTarget), O = (E == null ? void 0 : E.left) ?? S.pageX, A = E != null && E.top ? E.top + E.height : S.pageY;
5709
- W({ x: O, y: A, width: (E == null ? void 0 : E.width) ?? 150 }), w(!0);
5710
- }, [s, R, k]), I = {
5712
+ const O = k((M) => {
5713
+ S(pn(s, M)), i && i(M), w(!1);
5714
+ }, [s, i]), A = k((M) => typeof M == "string" ? { title: M, onClick: () => O(M) } : { title: M.title, onClick: () => O(M.value), icon: M.icon, disabled: M.disabled }, [O]), b = k((M) => {
5715
+ if (y) return;
5716
+ M.preventDefault();
5717
+ let E = Ye(M.currentTarget), U = (E == null ? void 0 : E.left) ?? M.pageX, I = E != null && E.top ? E.top + E.height : M.pageY;
5718
+ P({ x: U, y: I, width: (E == null ? void 0 : E.width) ?? 150 }), w(!0);
5719
+ }, [s, A, y]), D = {
5711
5720
  small: "input-field__text-field_small",
5712
5721
  medium: "input-field__text-field_medium",
5713
5722
  large: "input-field__text-field_large"
5714
5723
  };
5715
- return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${c}`, children: [
5716
- /* @__PURE__ */ e.jsx("div", { ref: y, style: t, className: `
5724
+ return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${o}`, children: [
5725
+ /* @__PURE__ */ e.jsx("div", { ref: N, style: t, className: `
5717
5726
  input-field
5718
5727
  input-field__text-field
5719
- ${I[j]}
5728
+ ${D[f]}
5720
5729
  ${a ? "input-field_border" : ""}
5721
- ${z ? "input-field_active" : ""}
5722
- ${f ? "input-field_transparent" : ""}
5723
- ${P ? "input-field_error" : ""}
5724
- ${k ? "input-field_disabled" : ""}
5725
- `, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: N, children: [
5730
+ ${B ? "input-field_active" : ""}
5731
+ ${j ? "input-field_transparent" : ""}
5732
+ ${W ? "input-field_error" : ""}
5733
+ ${y ? "input-field_disabled" : ""}
5734
+ `, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: b, children: [
5726
5735
  /* @__PURE__ */ e.jsx(
5727
5736
  "input",
5728
5737
  {
5729
5738
  ref: n,
5730
5739
  required: !0,
5731
- disabled: k,
5740
+ disabled: y,
5732
5741
  type: "text",
5733
5742
  className: `input-field__input-container__input ${u ? "input-field__input-container__input_error" : ""}`,
5734
5743
  name: d,
5735
- value: v,
5744
+ value: C,
5736
5745
  onFocus: h,
5737
5746
  onBlur: m,
5738
5747
  readOnly: !0
5739
5748
  }
5740
5749
  ),
5741
- /* @__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 })
5750
+ /* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: c ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: c }) : null })
5742
5751
  ] }) }),
5743
- P && _ && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: _ }),
5744
- p && !P && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: p }),
5745
- /* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: V.width, screensize: r, x: V.x, y: V.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(R) }], visible: z })
5752
+ W && _ && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__error-text", children: _ }),
5753
+ p && !W && /* @__PURE__ */ e.jsx(X, { type: "small", className: "input-field-container__helper-text", children: p }),
5754
+ /* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: T.width, screensize: r, x: T.x, y: T.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(A) }], visible: B })
5746
5755
  ] });
5747
5756
  }
5748
5757
  );
5749
5758
  nt.displayName = "SelectField";
5750
5759
  const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, container: l = document.getElementById("root") }) => {
5751
- const [o, c] = g(!1), a = n.find((u) => u.id === t), d = (u) => {
5752
- r == null || r(u), c(!1);
5760
+ const [c, o] = g(!1), a = n.find((u) => u.id === t), d = (u) => {
5761
+ r == null || r(u), o(!1);
5753
5762
  };
5754
5763
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5755
5764
  /* @__PURE__ */ e.jsx(
@@ -5760,15 +5769,15 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
5760
5769
  value: a == null ? void 0 : a.name,
5761
5770
  readOnly: !0,
5762
5771
  disabled: s,
5763
- onClick: () => c(!0),
5772
+ onClick: () => o(!0),
5764
5773
  placeholder: i
5765
5774
  }
5766
5775
  ),
5767
- o && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
5776
+ c && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
5768
5777
  hr,
5769
5778
  {
5770
5779
  header: "Icons",
5771
- onHide: () => c(!1),
5780
+ onHide: () => o(!1),
5772
5781
  onSuccess: d,
5773
5782
  items: n.map((u) => ({ icon: u.component, title: u.name, data: u.id }))
5774
5783
  }
@@ -5788,7 +5797,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
5788
5797
  LinkIcon: wt,
5789
5798
  UnLinkIcon: Nt,
5790
5799
  GearIcon: yt,
5791
- X: de,
5800
+ X: ie,
5792
5801
  Trash: Nn,
5793
5802
  Pen: $n,
5794
5803
  Palette: wn,
@@ -5838,21 +5847,21 @@ const as = {
5838
5847
  },
5839
5848
  hideSnackbar: () => {
5840
5849
  }
5841
- }, os = Pe(as), ri = ({ children: n }) => {
5842
- var o;
5843
- const [t, r] = g({ visible: !1, text: "" }), s = Z(null), i = b((c, a) => {
5844
- 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));
5845
- }, []), l = b(() => {
5850
+ }, cs = Pe(as), ri = ({ children: n }) => {
5851
+ var c;
5852
+ const [t, r] = g({ visible: !1, text: "" }), s = Y(null), i = k((o, a) => {
5853
+ r({ visible: !0, text: o, option: a }), s.current && clearTimeout(s.current), a != null && a.closeButton || (s.current = setTimeout(() => l(), (a == null ? void 0 : a.delay) ?? 3e3));
5854
+ }, []), l = k(() => {
5846
5855
  s.current && (clearTimeout(s.current), s.current = null), r({ visible: !1, text: "" });
5847
5856
  }, []);
5848
- return /* @__PURE__ */ e.jsxs(os.Provider, { value: { showSnackbar: i, hideSnackbar: l }, children: [
5857
+ return /* @__PURE__ */ e.jsxs(cs.Provider, { value: { showSnackbar: i, hideSnackbar: l }, children: [
5849
5858
  /* @__PURE__ */ e.jsx(
5850
5859
  ss,
5851
5860
  {
5852
5861
  ...t,
5853
5862
  option: {
5854
5863
  ...t.option,
5855
- onHide: (o = t.option) != null && o.closeButton ? l : void 0
5864
+ onHide: (c = t.option) != null && c.closeButton ? l : void 0
5856
5865
  // гарантируем, что при нажатии на X скроется
5857
5866
  }
5858
5867
  }
@@ -5860,7 +5869,7 @@ const as = {
5860
5869
  n
5861
5870
  ] });
5862
5871
  }, rt = Pe({});
5863
- function cs() {
5872
+ function os() {
5864
5873
  return Ce(rt);
5865
5874
  }
5866
5875
  function ds(n) {
@@ -5873,21 +5882,21 @@ function hs(n) {
5873
5882
  return typeof n == "boolean";
5874
5883
  }
5875
5884
  const fe = (n) => {
5876
- const { value: t, changeField: r, errors: s } = cs(), i = b((a) => {
5885
+ const { value: t, changeField: r, errors: s } = os(), i = k((a) => {
5877
5886
  r && r(n, a);
5878
- }, [n]), l = b(() => {
5887
+ }, [n]), l = k(() => {
5879
5888
  const a = t == null ? void 0 : t[n];
5880
5889
  return hs(a) ? !!a : us(a) ? Number(a) : ds(a) ? a ?? "" : "";
5881
- }, [t, n]), o = b(() => {
5890
+ }, [t, n]), c = k(() => {
5882
5891
  r && r(n, "");
5883
- }, [n]), c = b(() => {
5892
+ }, [n]), o = k(() => {
5884
5893
  if (s && Object.keys(s).includes(n))
5885
5894
  return s[n];
5886
5895
  }, [s, n]);
5887
5896
  return {
5888
5897
  value: l(),
5889
- clearHandler: o,
5890
- error: c(),
5898
+ clearHandler: c,
5899
+ error: o(),
5891
5900
  change: i
5892
5901
  };
5893
5902
  }, xs = (n) => {
@@ -5900,8 +5909,8 @@ const fe = (n) => {
5900
5909
  const { value: t, change: r, error: s } = fe(n.name);
5901
5910
  return /* @__PURE__ */ e.jsx(nt, { ...n, container: n.container ?? document.body, value: t, onChange: r, errorText: s, error: !!s });
5902
5911
  }, js = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
5903
- const { value: o, change: c } = fe(l), a = (d) => {
5904
- c && c(d.target.checked);
5912
+ const { value: c, change: o } = fe(l), a = (d) => {
5913
+ o && o(d.target.checked);
5905
5914
  };
5906
5915
  return /* @__PURE__ */ e.jsx("div", { className: `input-field form-switch ${i}`, style: r, children: /* @__PURE__ */ e.jsx(
5907
5916
  Yn,
@@ -5910,16 +5919,16 @@ const fe = (n) => {
5910
5919
  ref: t,
5911
5920
  placeholder: n,
5912
5921
  name: l,
5913
- checked: !!o,
5922
+ checked: !!c,
5914
5923
  onChange: a
5915
5924
  }
5916
5925
  ) });
5917
5926
  }, ps = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
5918
- const { value: o, change: c } = fe(l), a = (u) => {
5927
+ const { value: c, change: o } = fe(l), a = (u) => {
5919
5928
  if (u.length > 0)
5920
- return c && c(!0);
5921
- c && c(!1);
5922
- }, d = b(() => o ? [n ?? l] : [], [o, l, n]);
5929
+ return o && o(!0);
5930
+ o && o(!1);
5931
+ }, d = k(() => c ? [n ?? l] : [], [c, l, n]);
5923
5932
  return /* @__PURE__ */ e.jsx(
5924
5933
  Zn,
5925
5934
  {
@@ -5974,24 +5983,24 @@ const fe = (n) => {
5974
5983
  }
5975
5984
  );
5976
5985
  }, bs = ve(
5977
- function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: o, ...c }, a) {
5978
- const [d, u] = g(r), m = b((x) => {
5986
+ function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: c, ...o }, a) {
5987
+ const [d, u] = g(r), m = k((x) => {
5979
5988
  x.preventDefault(), l == null || l(d);
5980
- }, [l, d]), h = b((x, j) => {
5981
- u((f) => ({
5982
- ...f,
5983
- [x]: j
5984
- })), o == null || o(x, j);
5985
- }, [o]);
5989
+ }, [l, d]), h = k((x, f) => {
5990
+ u((j) => ({
5991
+ ...j,
5992
+ [x]: f
5993
+ })), c == null || c(x, f);
5994
+ }, [c]);
5986
5995
  return ht(a, () => ({
5987
5996
  submit: () => l == null ? void 0 : l(d),
5988
- setFieldValue: (x, j) => {
5989
- u((f) => ({ ...f, [x]: j }));
5997
+ setFieldValue: (x, f) => {
5998
+ u((j) => ({ ...j, [x]: f }));
5990
5999
  },
5991
6000
  setValues: (x) => u(x),
5992
6001
  getValues: () => d,
5993
6002
  reset: () => u(r)
5994
- }), [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 }) });
6003
+ }), [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, ...o, children: t }) });
5995
6004
  }
5996
6005
  ), si = Object.assign(bs, {
5997
6006
  TextInput: _s,
@@ -6037,7 +6046,7 @@ export {
6037
6046
  At as ConditionerIcon2,
6038
6047
  Is as ContentBox,
6039
6048
  Vn as Copy,
6040
- cn as CopyButton,
6049
+ on as CopyButton,
6041
6050
  Bt as Curtains,
6042
6051
  Xt as DangerButton,
6043
6052
  Zt as Dashboard,
@@ -6117,7 +6126,7 @@ export {
6117
6126
  Xs as Slider,
6118
6127
  ur as SmallWindowMenu,
6119
6128
  ss as Snackbar,
6120
- os as SneckbarContext,
6129
+ cs as SneckbarContext,
6121
6130
  ri as SneckbarProvider,
6122
6131
  Yn as Switch,
6123
6132
  Ot as SwitchIcon,
@@ -6126,7 +6135,7 @@ export {
6126
6135
  Ss as Temp,
6127
6136
  Tn as TempHighIcon,
6128
6137
  Qn as TextArea,
6129
- ce as TextButton,
6138
+ de as TextButton,
6130
6139
  Vs as TextDialog,
6131
6140
  Ve as TextField,
6132
6141
  Jr as TimeField,
@@ -6134,10 +6143,10 @@ export {
6134
6143
  Gt as ToolsIcon,
6135
6144
  An as Tooltip,
6136
6145
  Nn as Trash,
6137
- U as Typography,
6146
+ X as Typography,
6138
6147
  Nt as UnLinkIcon,
6139
6148
  Mt as UserIcon,
6140
- de as X,
6149
+ ie as X,
6141
6150
  $t as XUserIcon,
6142
6151
  Te as getContainerColor,
6143
6152
  Ye as getContainerData,