urfu-ui-kit-react 1.10.0 → 1.10.1

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.
@@ -25,8 +25,8 @@ function qi() {
25
25
  var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, c = n ? Symbol.for("react.forward_ref") : 60112, d = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, m = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, v = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, k = n ? Symbol.for("react.scope") : 60119;
26
26
  function M(y) {
27
27
  if (typeof y == "object" && y !== null) {
28
- var A = y.$$typeof;
29
- switch (A) {
28
+ var F = y.$$typeof;
29
+ switch (F) {
30
30
  case a:
31
31
  switch (y = y.type, y) {
32
32
  case l:
@@ -45,11 +45,11 @@ function qi() {
45
45
  case i:
46
46
  return y;
47
47
  default:
48
- return A;
48
+ return F;
49
49
  }
50
50
  }
51
51
  case t:
52
- return A;
52
+ return F;
53
53
  }
54
54
  }
55
55
  }
@@ -133,9 +133,9 @@ function Gi() {
133
133
  }
134
134
  }
135
135
  }
136
- var y = l, A = u, E = s, S = i, N = a, D = c, W = e, j = g, Q = m, q = t, ne = o, R = r, C = d, T = !1;
136
+ var y = l, F = u, N = s, S = i, T = a, D = c, A = e, B = g, Q = m, q = t, ne = o, R = r, C = d, E = !1;
137
137
  function X(G) {
138
- return T || (T = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(G) || x(G) === l;
138
+ return E || (E = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(G) || x(G) === l;
139
139
  }
140
140
  function _(G) {
141
141
  return x(G) === u;
@@ -155,7 +155,7 @@ function Gi() {
155
155
  function z(G) {
156
156
  return x(G) === e;
157
157
  }
158
- function B(G) {
158
+ function j(G) {
159
159
  return x(G) === g;
160
160
  }
161
161
  function J(G) {
@@ -167,13 +167,13 @@ function Gi() {
167
167
  function ue(G) {
168
168
  return x(G) === o;
169
169
  }
170
- function F(G) {
170
+ function W(G) {
171
171
  return x(G) === r;
172
172
  }
173
173
  function re(G) {
174
174
  return x(G) === d;
175
175
  }
176
- Oe.AsyncMode = y, Oe.ConcurrentMode = A, Oe.ContextConsumer = E, Oe.ContextProvider = S, Oe.Element = N, Oe.ForwardRef = D, Oe.Fragment = W, Oe.Lazy = j, Oe.Memo = Q, Oe.Portal = q, Oe.Profiler = ne, Oe.StrictMode = R, Oe.Suspense = C, Oe.isAsyncMode = X, Oe.isConcurrentMode = _, Oe.isContextConsumer = Y, Oe.isContextProvider = U, Oe.isElement = P, Oe.isForwardRef = H, Oe.isFragment = z, Oe.isLazy = B, Oe.isMemo = J, Oe.isPortal = se, Oe.isProfiler = ue, Oe.isStrictMode = F, Oe.isSuspense = re, Oe.isValidElementType = M, Oe.typeOf = x;
176
+ Oe.AsyncMode = y, Oe.ConcurrentMode = F, Oe.ContextConsumer = N, Oe.ContextProvider = S, Oe.Element = T, Oe.ForwardRef = D, Oe.Fragment = A, Oe.Lazy = B, Oe.Memo = Q, Oe.Portal = q, Oe.Profiler = ne, Oe.StrictMode = R, Oe.Suspense = C, Oe.isAsyncMode = X, Oe.isConcurrentMode = _, Oe.isContextConsumer = Y, Oe.isContextProvider = U, Oe.isElement = P, Oe.isForwardRef = H, Oe.isFragment = z, Oe.isLazy = j, Oe.isMemo = J, Oe.isPortal = se, Oe.isProfiler = ue, Oe.isStrictMode = W, Oe.isSuspense = re, Oe.isValidElementType = M, Oe.typeOf = x;
177
177
  }()), Oe;
178
178
  }
179
179
  var Aa;
@@ -328,12 +328,12 @@ function Ki() {
328
328
  arrayOf: M,
329
329
  element: x(),
330
330
  elementType: y(),
331
- instanceOf: A,
331
+ instanceOf: F,
332
332
  node: D(),
333
333
  objectOf: S,
334
- oneOf: E,
335
- oneOfType: N,
336
- shape: j,
334
+ oneOf: N,
335
+ oneOfType: T,
336
+ shape: B,
337
337
  exact: Q
338
338
  };
339
339
  function g(_, Y) {
@@ -346,8 +346,8 @@ function Ki() {
346
346
  function v(_) {
347
347
  if (process.env.NODE_ENV !== "production")
348
348
  var Y = {}, U = 0;
349
- function P(z, B, J, se, ue, F, re) {
350
- if (se = se || p, F = F || J, re !== t) {
349
+ function P(z, j, J, se, ue, W, re) {
350
+ if (se = se || p, W = W || J, re !== t) {
351
351
  if (l) {
352
352
  var G = new Error(
353
353
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -357,22 +357,22 @@ function Ki() {
357
357
  var we = se + ":" + J;
358
358
  !Y[we] && // Avoid spamming the console because they are often not actionable except for lib authors
359
359
  U < 3 && (o(
360
- "You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + se + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
360
+ "You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + se + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
361
361
  ), Y[we] = !0, U++);
362
362
  }
363
363
  }
364
- return B[J] == null ? z ? B[J] === null ? new b("The " + ue + " `" + F + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new b("The " + ue + " `" + F + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : _(B, J, se, ue, F);
364
+ return j[J] == null ? z ? j[J] === null ? new b("The " + ue + " `" + W + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new b("The " + ue + " `" + W + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : _(j, J, se, ue, W);
365
365
  }
366
366
  var H = P.bind(null, !1);
367
367
  return H.isRequired = P.bind(null, !0), H;
368
368
  }
369
369
  function w(_) {
370
- function Y(U, P, H, z, B, J) {
370
+ function Y(U, P, H, z, j, J) {
371
371
  var se = U[P], ue = R(se);
372
372
  if (ue !== _) {
373
- var F = C(se);
373
+ var W = C(se);
374
374
  return new b(
375
- "Invalid " + z + " `" + B + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected ") + ("`" + _ + "`."),
375
+ "Invalid " + z + " `" + j + "` of type " + ("`" + W + "` supplied to `" + H + "`, expected ") + ("`" + _ + "`."),
376
376
  { expectedType: _ }
377
377
  );
378
378
  }
@@ -384,18 +384,18 @@ function Ki() {
384
384
  return v(i);
385
385
  }
386
386
  function M(_) {
387
- function Y(U, P, H, z, B) {
387
+ function Y(U, P, H, z, j) {
388
388
  if (typeof _ != "function")
389
- return new b("Property `" + B + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
389
+ return new b("Property `" + j + "` of component `" + H + "` has invalid PropType notation inside arrayOf.");
390
390
  var J = U[P];
391
391
  if (!Array.isArray(J)) {
392
392
  var se = R(J);
393
- return new b("Invalid " + z + " `" + B + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an array."));
393
+ return new b("Invalid " + z + " `" + j + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an array."));
394
394
  }
395
395
  for (var ue = 0; ue < J.length; ue++) {
396
- var F = _(J, ue, H, z, B + "[" + ue + "]", t);
397
- if (F instanceof Error)
398
- return F;
396
+ var W = _(J, ue, H, z, j + "[" + ue + "]", t);
397
+ if (W instanceof Error)
398
+ return W;
399
399
  }
400
400
  return null;
401
401
  }
@@ -403,9 +403,9 @@ function Ki() {
403
403
  }
404
404
  function x() {
405
405
  function _(Y, U, P, H, z) {
406
- var B = Y[U];
407
- if (!s(B)) {
408
- var J = R(B);
406
+ var j = Y[U];
407
+ if (!s(j)) {
408
+ var J = R(j);
409
409
  return new b("Invalid " + H + " `" + z + "` of type " + ("`" + J + "` supplied to `" + P + "`, expected a single ReactElement."));
410
410
  }
411
411
  return null;
@@ -414,31 +414,31 @@ function Ki() {
414
414
  }
415
415
  function y() {
416
416
  function _(Y, U, P, H, z) {
417
- var B = Y[U];
418
- if (!n.isValidElementType(B)) {
419
- var J = R(B);
417
+ var j = Y[U];
418
+ if (!n.isValidElementType(j)) {
419
+ var J = R(j);
420
420
  return new b("Invalid " + H + " `" + z + "` of type " + ("`" + J + "` supplied to `" + P + "`, expected a single ReactElement type."));
421
421
  }
422
422
  return null;
423
423
  }
424
424
  return v(_);
425
425
  }
426
- function A(_) {
427
- function Y(U, P, H, z, B) {
426
+ function F(_) {
427
+ function Y(U, P, H, z, j) {
428
428
  if (!(U[P] instanceof _)) {
429
429
  var J = _.name || p, se = X(U[P]);
430
- return new b("Invalid " + z + " `" + B + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected ") + ("instance of `" + J + "`."));
430
+ return new b("Invalid " + z + " `" + j + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected ") + ("instance of `" + J + "`."));
431
431
  }
432
432
  return null;
433
433
  }
434
434
  return v(Y);
435
435
  }
436
- function E(_) {
436
+ function N(_) {
437
437
  if (!Array.isArray(_))
438
438
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
439
439
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
440
440
  ) : o("Invalid argument supplied to oneOf, expected an array.")), i;
441
- function Y(U, P, H, z, B) {
441
+ function Y(U, P, H, z, j) {
442
442
  for (var J = U[P], se = 0; se < _.length; se++)
443
443
  if (g(J, _[se]))
444
444
  return null;
@@ -446,46 +446,46 @@ function Ki() {
446
446
  var we = C(G);
447
447
  return we === "symbol" ? String(G) : G;
448
448
  });
449
- return new b("Invalid " + z + " `" + B + "` of value `" + String(J) + "` " + ("supplied to `" + H + "`, expected one of " + ue + "."));
449
+ return new b("Invalid " + z + " `" + j + "` of value `" + String(J) + "` " + ("supplied to `" + H + "`, expected one of " + ue + "."));
450
450
  }
451
451
  return v(Y);
452
452
  }
453
453
  function S(_) {
454
- function Y(U, P, H, z, B) {
454
+ function Y(U, P, H, z, j) {
455
455
  if (typeof _ != "function")
456
- return new b("Property `" + B + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
456
+ return new b("Property `" + j + "` of component `" + H + "` has invalid PropType notation inside objectOf.");
457
457
  var J = U[P], se = R(J);
458
458
  if (se !== "object")
459
- return new b("Invalid " + z + " `" + B + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an object."));
459
+ return new b("Invalid " + z + " `" + j + "` of type " + ("`" + se + "` supplied to `" + H + "`, expected an object."));
460
460
  for (var ue in J)
461
461
  if (e(J, ue)) {
462
- var F = _(J, ue, H, z, B + "." + ue, t);
463
- if (F instanceof Error)
464
- return F;
462
+ var W = _(J, ue, H, z, j + "." + ue, t);
463
+ if (W instanceof Error)
464
+ return W;
465
465
  }
466
466
  return null;
467
467
  }
468
468
  return v(Y);
469
469
  }
470
- function N(_) {
470
+ function T(_) {
471
471
  if (!Array.isArray(_))
472
472
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
473
473
  for (var Y = 0; Y < _.length; Y++) {
474
474
  var U = _[Y];
475
475
  if (typeof U != "function")
476
476
  return o(
477
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + T(U) + " at index " + Y + "."
477
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + E(U) + " at index " + Y + "."
478
478
  ), i;
479
479
  }
480
- function P(H, z, B, J, se) {
481
- for (var ue = [], F = 0; F < _.length; F++) {
482
- var re = _[F], G = re(H, z, B, J, se, t);
480
+ function P(H, z, j, J, se) {
481
+ for (var ue = [], W = 0; W < _.length; W++) {
482
+ var re = _[W], G = re(H, z, j, J, se, t);
483
483
  if (G == null)
484
484
  return null;
485
485
  G.data && e(G.data, "expectedType") && ue.push(G.data.expectedType);
486
486
  }
487
487
  var we = ue.length > 0 ? ", expected one of type [" + ue.join(", ") + "]" : "";
488
- return new b("Invalid " + J + " `" + se + "` supplied to " + ("`" + B + "`" + we + "."));
488
+ return new b("Invalid " + J + " `" + se + "` supplied to " + ("`" + j + "`" + we + "."));
489
489
  }
490
490
  return v(P);
491
491
  }
@@ -495,21 +495,21 @@ function Ki() {
495
495
  }
496
496
  return v(_);
497
497
  }
498
- function W(_, Y, U, P, H) {
498
+ function A(_, Y, U, P, H) {
499
499
  return new b(
500
500
  (_ || "React class") + ": " + Y + " type `" + U + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + H + "`."
501
501
  );
502
502
  }
503
- function j(_) {
504
- function Y(U, P, H, z, B) {
503
+ function B(_) {
504
+ function Y(U, P, H, z, j) {
505
505
  var J = U[P], se = R(J);
506
506
  if (se !== "object")
507
- return new b("Invalid " + z + " `" + B + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
507
+ return new b("Invalid " + z + " `" + j + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
508
508
  for (var ue in _) {
509
- var F = _[ue];
510
- if (typeof F != "function")
511
- return W(H, z, B, ue, C(F));
512
- var re = F(J, ue, H, z, B + "." + ue, t);
509
+ var W = _[ue];
510
+ if (typeof W != "function")
511
+ return A(H, z, j, ue, C(W));
512
+ var re = W(J, ue, H, z, j + "." + ue, t);
513
513
  if (re)
514
514
  return re;
515
515
  }
@@ -518,21 +518,21 @@ function Ki() {
518
518
  return v(Y);
519
519
  }
520
520
  function Q(_) {
521
- function Y(U, P, H, z, B) {
521
+ function Y(U, P, H, z, j) {
522
522
  var J = U[P], se = R(J);
523
523
  if (se !== "object")
524
- return new b("Invalid " + z + " `" + B + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
524
+ return new b("Invalid " + z + " `" + j + "` of type `" + se + "` " + ("supplied to `" + H + "`, expected `object`."));
525
525
  var ue = a({}, U[P], _);
526
- for (var F in ue) {
527
- var re = _[F];
528
- if (e(_, F) && typeof re != "function")
529
- return W(H, z, B, F, C(re));
526
+ for (var W in ue) {
527
+ var re = _[W];
528
+ if (e(_, W) && typeof re != "function")
529
+ return A(H, z, j, W, C(re));
530
530
  if (!re)
531
531
  return new b(
532
- "Invalid " + z + " `" + B + "` key `" + F + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(U[P], null, " ") + `
532
+ "Invalid " + z + " `" + j + "` key `" + W + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(U[P], null, " ") + `
533
533
  Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
534
534
  );
535
- var G = re(J, F, H, z, B + "." + F, t);
535
+ var G = re(J, W, H, z, j + "." + W, t);
536
536
  if (G)
537
537
  return G;
538
538
  }
@@ -592,7 +592,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
592
592
  }
593
593
  return Y;
594
594
  }
595
- function T(_) {
595
+ function E(_) {
596
596
  var Y = C(_);
597
597
  switch (Y) {
598
598
  case "array":
@@ -3831,73 +3831,73 @@ const Ql = {
3831
3831
  T: new Gl()
3832
3832
  }, zl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Kl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ul = /^'([^]*?)'?$/, Vl = /''/g, Xl = /\S/, Zl = /[a-zA-Z]/;
3833
3833
  function Gr(n, a, t, e) {
3834
- var b, v, w, k, M, x, y, A;
3835
- const r = rl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Vo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((v = (b = e == null ? void 0 : e.locale) == null ? void 0 : b.options) == null ? void 0 : v.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((k = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((x = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : x.weekStartsOn) ?? r.weekStartsOn ?? ((A = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : A.weekStartsOn) ?? 0;
3834
+ var b, v, w, k, M, x, y, F;
3835
+ const r = rl(), o = (e == null ? void 0 : e.locale) ?? r.locale ?? Vo, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((v = (b = e == null ? void 0 : e.locale) == null ? void 0 : b.options) == null ? void 0 : v.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((k = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((x = (M = e == null ? void 0 : e.locale) == null ? void 0 : M.options) == null ? void 0 : x.weekStartsOn) ?? r.weekStartsOn ?? ((F = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : F.weekStartsOn) ?? 0;
3836
3836
  if (a === "")
3837
3837
  return n === "" ? le(t) : Re(t, NaN);
3838
3838
  const l = {
3839
3839
  firstWeekContainsDate: i,
3840
3840
  weekStartsOn: s,
3841
3841
  locale: o
3842
- }, u = [new cl()], c = a.match(Kl).map((E) => {
3843
- const S = E[0];
3842
+ }, u = [new cl()], c = a.match(Kl).map((N) => {
3843
+ const S = N[0];
3844
3844
  if (S in gr) {
3845
- const N = gr[S];
3846
- return N(E, o.formatLong);
3845
+ const T = gr[S];
3846
+ return T(N, o.formatLong);
3847
3847
  }
3848
- return E;
3848
+ return N;
3849
3849
  }).join("").match(zl), d = [];
3850
- for (let E of c) {
3851
- !(e != null && e.useAdditionalWeekYearTokens) && ei(E) && sa(E, a, n), !(e != null && e.useAdditionalDayOfYearTokens) && Jo(E) && sa(E, a, n);
3852
- const S = E[0], N = Ql[S];
3853
- if (N) {
3854
- const { incompatibleTokens: D } = N;
3850
+ for (let N of c) {
3851
+ !(e != null && e.useAdditionalWeekYearTokens) && ei(N) && sa(N, a, n), !(e != null && e.useAdditionalDayOfYearTokens) && Jo(N) && sa(N, a, n);
3852
+ const S = N[0], T = Ql[S];
3853
+ if (T) {
3854
+ const { incompatibleTokens: D } = T;
3855
3855
  if (Array.isArray(D)) {
3856
- const j = d.find(
3856
+ const B = d.find(
3857
3857
  (Q) => D.includes(Q.token) || Q.token === S
3858
3858
  );
3859
- if (j)
3859
+ if (B)
3860
3860
  throw new RangeError(
3861
- `The format string mustn't contain \`${j.fullToken}\` and \`${E}\` at the same time`
3861
+ `The format string mustn't contain \`${B.fullToken}\` and \`${N}\` at the same time`
3862
3862
  );
3863
- } else if (N.incompatibleTokens === "*" && d.length > 0)
3863
+ } else if (T.incompatibleTokens === "*" && d.length > 0)
3864
3864
  throw new RangeError(
3865
- `The format string mustn't contain \`${E}\` and any other token at the same time`
3865
+ `The format string mustn't contain \`${N}\` and any other token at the same time`
3866
3866
  );
3867
- d.push({ token: S, fullToken: E });
3868
- const W = N.run(
3867
+ d.push({ token: S, fullToken: N });
3868
+ const A = T.run(
3869
3869
  n,
3870
- E,
3870
+ N,
3871
3871
  o.match,
3872
3872
  l
3873
3873
  );
3874
- if (!W)
3874
+ if (!A)
3875
3875
  return Re(t, NaN);
3876
- u.push(W.setter), n = W.rest;
3876
+ u.push(A.setter), n = A.rest;
3877
3877
  } else {
3878
3878
  if (S.match(Zl))
3879
3879
  throw new RangeError(
3880
3880
  "Format string contains an unescaped latin alphabet character `" + S + "`"
3881
3881
  );
3882
- if (E === "''" ? E = "'" : S === "'" && (E = Jl(E)), n.indexOf(E) === 0)
3883
- n = n.slice(E.length);
3882
+ if (N === "''" ? N = "'" : S === "'" && (N = Jl(N)), n.indexOf(N) === 0)
3883
+ n = n.slice(N.length);
3884
3884
  else
3885
3885
  return Re(t, NaN);
3886
3886
  }
3887
3887
  }
3888
3888
  if (n.length > 0 && Xl.test(n))
3889
3889
  return Re(t, NaN);
3890
- const p = u.map((E) => E.priority).sort((E, S) => S - E).filter((E, S, N) => N.indexOf(E) === S).map(
3891
- (E) => u.filter((S) => S.priority === E).sort((S, N) => N.subPriority - S.subPriority)
3892
- ).map((E) => E[0]);
3890
+ const p = u.map((N) => N.priority).sort((N, S) => S - N).filter((N, S, T) => T.indexOf(N) === S).map(
3891
+ (N) => u.filter((S) => S.priority === N).sort((S, T) => T.subPriority - S.subPriority)
3892
+ ).map((N) => N[0]);
3893
3893
  let m = le(t);
3894
3894
  if (isNaN(m.getTime()))
3895
3895
  return Re(t, NaN);
3896
3896
  const g = {};
3897
- for (const E of p) {
3898
- if (!E.validate(m, l))
3897
+ for (const N of p) {
3898
+ if (!N.validate(m, l))
3899
3899
  return Re(t, NaN);
3900
- const S = E.set(m, g, l);
3900
+ const S = N.set(m, g, l);
3901
3901
  Array.isArray(S) ? (m = S[0], Object.assign(g, S[1])) : m = S;
3902
3902
  }
3903
3903
  return Re(t, m);
@@ -4479,10 +4479,10 @@ const Ic = (n) => ({
4479
4479
  const d = ci(c), p = {
4480
4480
  x: t,
4481
4481
  y: e
4482
- }, m = ka(r), g = Da(m), b = await i.getDimensions(u), v = m === "y", w = v ? "top" : "left", k = v ? "bottom" : "right", M = v ? "clientHeight" : "clientWidth", x = o.reference[g] + o.reference[m] - p[m] - o.floating[g], y = p[m] - o.reference[m], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
4483
- let E = A ? A[M] : 0;
4484
- (!E || !await (i.isElement == null ? void 0 : i.isElement(A))) && (E = s.floating[M] || o.floating[g]);
4485
- const S = x / 2 - y / 2, N = E / 2 - b[g] / 2 - 1, D = _n(d[w], N), W = _n(d[k], N), j = D, Q = E - b[g] - W, q = E / 2 - b[g] / 2 + S, ne = Cc(j, q, Q), R = !l.arrow && $n(r) != null && q !== ne && o.reference[g] / 2 - (q < j ? D : W) - b[g] / 2 < 0, C = R ? q < j ? q - j : q - Q : 0;
4482
+ }, m = ka(r), g = Da(m), b = await i.getDimensions(u), v = m === "y", w = v ? "top" : "left", k = v ? "bottom" : "right", M = v ? "clientHeight" : "clientWidth", x = o.reference[g] + o.reference[m] - p[m] - o.floating[g], y = p[m] - o.reference[m], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
4483
+ let N = F ? F[M] : 0;
4484
+ (!N || !await (i.isElement == null ? void 0 : i.isElement(F))) && (N = s.floating[M] || o.floating[g]);
4485
+ const S = x / 2 - y / 2, T = N / 2 - b[g] / 2 - 1, D = _n(d[w], T), A = _n(d[k], T), B = D, Q = N - b[g] - A, q = N / 2 - b[g] / 2 + S, ne = Cc(B, q, Q), R = !l.arrow && $n(r) != null && q !== ne && o.reference[g] / 2 - (q < B ? D : A) - b[g] / 2 < 0, C = R ? q < B ? q - B : q - Q : 0;
4486
4486
  return {
4487
4487
  [m]: p[m] + C,
4488
4488
  data: {
@@ -4519,20 +4519,20 @@ const Ic = (n) => ({
4519
4519
  } = Tr(n, a);
4520
4520
  if ((t = o.arrow) != null && t.alignmentOffset)
4521
4521
  return {};
4522
- const w = Cn(r), k = Ln(s), M = Cn(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), y = p || (M || !b ? [br(s)] : Nc(s)), A = g !== "none";
4523
- !p && A && y.push(...Tc(s, b, g, x));
4524
- const E = [s, ...y], S = await Rc(a, v), N = [];
4522
+ const w = Cn(r), k = Ln(s), M = Cn(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), y = p || (M || !b ? [br(s)] : Nc(s)), F = g !== "none";
4523
+ !p && F && y.push(...Tc(s, b, g, x));
4524
+ const N = [s, ...y], S = await Rc(a, v), T = [];
4525
4525
  let D = ((e = o.flip) == null ? void 0 : e.overflows) || [];
4526
- if (c && N.push(S[w]), d) {
4526
+ if (c && T.push(S[w]), d) {
4527
4527
  const q = Mc(r, i, x);
4528
- N.push(S[q[0]], S[q[1]]);
4528
+ T.push(S[q[0]], S[q[1]]);
4529
4529
  }
4530
4530
  if (D = [...D, {
4531
4531
  placement: r,
4532
- overflows: N
4533
- }], !N.every((q) => q <= 0)) {
4534
- var W, j;
4535
- const q = (((W = o.flip) == null ? void 0 : W.index) || 0) + 1, ne = E[q];
4532
+ overflows: T
4533
+ }], !T.every((q) => q <= 0)) {
4534
+ var A, B;
4535
+ const q = (((A = o.flip) == null ? void 0 : A.index) || 0) + 1, ne = N[q];
4536
4536
  if (ne)
4537
4537
  return {
4538
4538
  data: {
@@ -4543,20 +4543,20 @@ const Ic = (n) => ({
4543
4543
  placement: ne
4544
4544
  }
4545
4545
  };
4546
- let R = (j = D.filter((C) => C.overflows[0] <= 0).sort((C, T) => C.overflows[1] - T.overflows[1])[0]) == null ? void 0 : j.placement;
4546
+ let R = (B = D.filter((C) => C.overflows[0] <= 0).sort((C, E) => C.overflows[1] - E.overflows[1])[0]) == null ? void 0 : B.placement;
4547
4547
  if (!R)
4548
4548
  switch (m) {
4549
4549
  case "bestFit": {
4550
4550
  var Q;
4551
- const C = (Q = D.filter((T) => {
4552
- if (A) {
4553
- const X = Ln(T.placement);
4551
+ const C = (Q = D.filter((E) => {
4552
+ if (F) {
4553
+ const X = Ln(E.placement);
4554
4554
  return X === k || // Create a bias to the `y` side axis due to horizontal
4555
4555
  // reading directions favoring greater width.
4556
4556
  X === "y";
4557
4557
  }
4558
4558
  return !0;
4559
- }).map((T) => [T.placement, T.overflows.filter((X) => X > 0).reduce((X, _) => X + _, 0)]).sort((T, X) => T[1] - X[1])[0]) == null ? void 0 : Q[0];
4559
+ }).map((E) => [E.placement, E.overflows.filter((X) => X > 0).reduce((X, _) => X + _, 0)]).sort((E, X) => E[1] - X[1])[0]) == null ? void 0 : Q[0];
4560
4560
  C && (R = C);
4561
4561
  break;
4562
4562
  }
@@ -4931,16 +4931,16 @@ function Zc(n, a) {
4931
4931
  threshold: rn(0, _n(1, l)) || 1
4932
4932
  };
4933
4933
  let x = !0;
4934
- function y(A) {
4935
- const E = A[0].intersectionRatio;
4936
- if (E !== l) {
4934
+ function y(F) {
4935
+ const N = F[0].intersectionRatio;
4936
+ if (N !== l) {
4937
4937
  if (!x)
4938
4938
  return i();
4939
- E ? i(!1, E) : e = setTimeout(() => {
4939
+ N ? i(!1, N) : e = setTimeout(() => {
4940
4940
  i(!1, 1e-7);
4941
4941
  }, 1e3);
4942
4942
  }
4943
- E === 1 && !mi(u, n.getBoundingClientRect()) && i(), x = !1;
4943
+ N === 1 && !mi(u, n.getBoundingClientRect()) && i(), x = !1;
4944
4944
  }
4945
4945
  try {
4946
4946
  t = new IntersectionObserver(y, {
@@ -5071,35 +5071,35 @@ function ru(n) {
5071
5071
  isPositioned: !1
5072
5072
  }), [p, m] = ge.useState(e);
5073
5073
  xr(p, e) || m(e);
5074
- const [g, b] = ge.useState(null), [v, w] = ge.useState(null), k = ge.useCallback((T) => {
5075
- T !== A.current && (A.current = T, b(T));
5076
- }, []), M = ge.useCallback((T) => {
5077
- T !== E.current && (E.current = T, w(T));
5078
- }, []), x = o || g, y = i || v, A = ge.useRef(null), E = ge.useRef(null), S = ge.useRef(c), N = l != null, D = Kr(l), W = Kr(r), j = Kr(u), Q = ge.useCallback(() => {
5079
- if (!A.current || !E.current)
5074
+ const [g, b] = ge.useState(null), [v, w] = ge.useState(null), k = ge.useCallback((E) => {
5075
+ E !== F.current && (F.current = E, b(E));
5076
+ }, []), M = ge.useCallback((E) => {
5077
+ E !== N.current && (N.current = E, w(E));
5078
+ }, []), x = o || g, y = i || v, F = ge.useRef(null), N = ge.useRef(null), S = ge.useRef(c), T = l != null, D = Kr(l), A = Kr(r), B = Kr(u), Q = ge.useCallback(() => {
5079
+ if (!F.current || !N.current)
5080
5080
  return;
5081
- const T = {
5081
+ const E = {
5082
5082
  placement: a,
5083
5083
  strategy: t,
5084
5084
  middleware: p
5085
5085
  };
5086
- W.current && (T.platform = W.current), nu(A.current, E.current, T).then((X) => {
5086
+ A.current && (E.platform = A.current), nu(F.current, N.current, E).then((X) => {
5087
5087
  const _ = {
5088
5088
  ...X,
5089
5089
  // The floating element's position may be recomputed while it's closed
5090
5090
  // but still mounted (such as when transitioning out). To ensure
5091
5091
  // `isPositioned` will be `false` initially on the next open, avoid
5092
5092
  // setting it to `true` when `open === false` (must be specified).
5093
- isPositioned: j.current !== !1
5093
+ isPositioned: B.current !== !1
5094
5094
  };
5095
5095
  q.current && !xr(S.current, _) && (S.current = _, Hi.flushSync(() => {
5096
5096
  d(_);
5097
5097
  }));
5098
5098
  });
5099
- }, [p, a, t, W, j]);
5099
+ }, [p, a, t, A, B]);
5100
5100
  sr(() => {
5101
- u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, d((T) => ({
5102
- ...T,
5101
+ u === !1 && S.current.isPositioned && (S.current.isPositioned = !1, d((E) => ({
5102
+ ...E,
5103
5103
  isPositioned: !1
5104
5104
  })));
5105
5105
  }, [u]);
@@ -5107,31 +5107,31 @@ function ru(n) {
5107
5107
  sr(() => (q.current = !0, () => {
5108
5108
  q.current = !1;
5109
5109
  }), []), sr(() => {
5110
- if (x && (A.current = x), y && (E.current = y), x && y) {
5110
+ if (x && (F.current = x), y && (N.current = y), x && y) {
5111
5111
  if (D.current)
5112
5112
  return D.current(x, y, Q);
5113
5113
  Q();
5114
5114
  }
5115
- }, [x, y, Q, D, N]);
5115
+ }, [x, y, Q, D, T]);
5116
5116
  const ne = ge.useMemo(() => ({
5117
- reference: A,
5118
- floating: E,
5117
+ reference: F,
5118
+ floating: N,
5119
5119
  setReference: k,
5120
5120
  setFloating: M
5121
5121
  }), [k, M]), R = ge.useMemo(() => ({
5122
5122
  reference: x,
5123
5123
  floating: y
5124
5124
  }), [x, y]), C = ge.useMemo(() => {
5125
- const T = {
5125
+ const E = {
5126
5126
  position: t,
5127
5127
  left: 0,
5128
5128
  top: 0
5129
5129
  };
5130
5130
  if (!R.floating)
5131
- return T;
5131
+ return E;
5132
5132
  const X = io(R.floating, c.x), _ = io(R.floating, c.y);
5133
5133
  return s ? {
5134
- ...T,
5134
+ ...E,
5135
5135
  transform: "translate(" + X + "px, " + _ + "px)",
5136
5136
  ...gi(R.floating) >= 1.5 && {
5137
5137
  willChange: "transform"
@@ -5264,23 +5264,23 @@ const gu = /* @__PURE__ */ ge.forwardRef(function(a, t) {
5264
5264
  ft(r).direction === "rtl" && M(!0);
5265
5265
  }, [r]), !r)
5266
5266
  return null;
5267
- const [x, y] = e.split("-"), A = x === "top" || x === "bottom";
5268
- let E = d;
5269
- (A && i != null && i.x || !A && i != null && i.y) && (E = null);
5270
- const S = c * 2, N = S / 2, D = s / 2 * (u / -8 + 1), W = l / 2 * u / 4, j = !!m, Q = E && y === "end" ? "bottom" : "top";
5271
- let q = E && y === "end" ? "right" : "left";
5272
- E && k && (q = y === "end" ? "left" : "right");
5273
- const ne = (o == null ? void 0 : o.x) != null ? E || o.x : "", R = (o == null ? void 0 : o.y) != null ? E || o.y : "", C = m || "M0,0" + (" H" + s) + (" L" + (s - D) + "," + (l - W)) + (" Q" + s / 2 + "," + l + " " + D + "," + (l - W)) + " Z", T = {
5274
- top: j ? "rotate(180deg)" : "",
5275
- left: j ? "rotate(90deg)" : "rotate(-90deg)",
5276
- bottom: j ? "" : "rotate(180deg)",
5277
- right: j ? "rotate(-90deg)" : "rotate(90deg)"
5267
+ const [x, y] = e.split("-"), F = x === "top" || x === "bottom";
5268
+ let N = d;
5269
+ (F && i != null && i.x || !F && i != null && i.y) && (N = null);
5270
+ const S = c * 2, T = S / 2, D = s / 2 * (u / -8 + 1), A = l / 2 * u / 4, B = !!m, Q = N && y === "end" ? "bottom" : "top";
5271
+ let q = N && y === "end" ? "right" : "left";
5272
+ N && k && (q = y === "end" ? "left" : "right");
5273
+ const ne = (o == null ? void 0 : o.x) != null ? N || o.x : "", R = (o == null ? void 0 : o.y) != null ? N || o.y : "", C = m || "M0,0" + (" H" + s) + (" L" + (s - D) + "," + (l - A)) + (" Q" + s / 2 + "," + l + " " + D + "," + (l - A)) + " Z", E = {
5274
+ top: B ? "rotate(180deg)" : "",
5275
+ left: B ? "rotate(90deg)" : "rotate(-90deg)",
5276
+ bottom: B ? "" : "rotate(180deg)",
5277
+ right: B ? "rotate(-90deg)" : "rotate(90deg)"
5278
5278
  }[x];
5279
5279
  return /* @__PURE__ */ $("svg", {
5280
5280
  ...v,
5281
5281
  "aria-hidden": !0,
5282
5282
  ref: t,
5283
- width: j ? s : s + S,
5283
+ width: B ? s : s + S,
5284
5284
  height: s,
5285
5285
  viewBox: "0 0 " + s + " " + (l > s ? l : s),
5286
5286
  style: {
@@ -5288,8 +5288,8 @@ const gu = /* @__PURE__ */ ge.forwardRef(function(a, t) {
5288
5288
  pointerEvents: "none",
5289
5289
  [q]: ne,
5290
5290
  [Q]: R,
5291
- [x]: A || j ? "100%" : "calc(100% - " + S / 2 + "px)",
5292
- transform: [T, g].filter((X) => !!X).join(" "),
5291
+ [x]: F || B ? "100%" : "calc(100% - " + S / 2 + "px)",
5292
+ transform: [E, g].filter((X) => !!X).join(" "),
5293
5293
  ...b
5294
5294
  },
5295
5295
  children: [S > 0 && /* @__PURE__ */ f("path", {
@@ -5304,8 +5304,8 @@ const gu = /* @__PURE__ */ ge.forwardRef(function(a, t) {
5304
5304
  }), /* @__PURE__ */ f("clipPath", {
5305
5305
  id: w,
5306
5306
  children: /* @__PURE__ */ f("rect", {
5307
- x: -N,
5308
- y: N * (j ? -1 : 1),
5307
+ x: -T,
5308
+ y: T * (B ? -1 : 1),
5309
5309
  width: s + S,
5310
5310
  height: s
5311
5311
  })
@@ -6384,44 +6384,44 @@ var Ju = (
6384
6384
  }, t.handleKeyboardNavigation = function(e, r, o) {
6385
6385
  var i, s = t.props, l = s.selected, u = s.preSelection, c = s.setPreSelection, d = s.minDate, p = s.maxDate, m = s.showFourColumnMonthYearPicker, g = s.showTwoColumnMonthYearPicker;
6386
6386
  if (u) {
6387
- var b = Co(m, g), v = t.getVerticalOffset(b), w = (i = Xr[b]) === null || i === void 0 ? void 0 : i.grid, k = function(E, S, N) {
6388
- var D, W, j = S, Q = N;
6389
- switch (E) {
6387
+ var b = Co(m, g), v = t.getVerticalOffset(b), w = (i = Xr[b]) === null || i === void 0 ? void 0 : i.grid, k = function(N, S, T) {
6388
+ var D, A, B = S, Q = T;
6389
+ switch (N) {
6390
6390
  case ie.ArrowRight:
6391
- j = vt(S, tr), Q = N === 11 ? 0 : N + tr;
6391
+ B = vt(S, tr), Q = T === 11 ? 0 : T + tr;
6392
6392
  break;
6393
6393
  case ie.ArrowLeft:
6394
- j = nn(S, tr), Q = N === 0 ? 11 : N - tr;
6394
+ B = nn(S, tr), Q = T === 0 ? 11 : T - tr;
6395
6395
  break;
6396
6396
  case ie.ArrowUp:
6397
- j = nn(S, v), Q = !((D = w == null ? void 0 : w[0]) === null || D === void 0) && D.includes(N) ? N + 12 - v : N - v;
6397
+ B = nn(S, v), Q = !((D = w == null ? void 0 : w[0]) === null || D === void 0) && D.includes(T) ? T + 12 - v : T - v;
6398
6398
  break;
6399
6399
  case ie.ArrowDown:
6400
- j = vt(S, v), Q = !((W = w == null ? void 0 : w[w.length - 1]) === null || W === void 0) && W.includes(N) ? N - 12 + v : N + v;
6400
+ B = vt(S, v), Q = !((A = w == null ? void 0 : w[w.length - 1]) === null || A === void 0) && A.includes(T) ? T - 12 + v : T + v;
6401
6401
  break;
6402
6402
  }
6403
- return { newCalculatedDate: j, newCalculatedMonth: Q };
6404
- }, M = function(E, S, N) {
6405
- for (var D = 40, W = E, j = !1, Q = 0, q = k(W, S, N), ne = q.newCalculatedDate, R = q.newCalculatedMonth; !j; ) {
6403
+ return { newCalculatedDate: B, newCalculatedMonth: Q };
6404
+ }, M = function(N, S, T) {
6405
+ for (var D = 40, A = N, B = !1, Q = 0, q = k(A, S, T), ne = q.newCalculatedDate, R = q.newCalculatedMonth; !B; ) {
6406
6406
  if (Q >= D) {
6407
- ne = S, R = N;
6407
+ ne = S, R = T;
6408
6408
  break;
6409
6409
  }
6410
6410
  if (d && ne < d) {
6411
- W = ie.ArrowRight;
6412
- var C = k(W, ne, R);
6411
+ A = ie.ArrowRight;
6412
+ var C = k(A, ne, R);
6413
6413
  ne = C.newCalculatedDate, R = C.newCalculatedMonth;
6414
6414
  }
6415
6415
  if (p && ne > p) {
6416
- W = ie.ArrowLeft;
6417
- var C = k(W, ne, R);
6416
+ A = ie.ArrowLeft;
6417
+ var C = k(A, ne, R);
6418
6418
  ne = C.newCalculatedDate, R = C.newCalculatedMonth;
6419
6419
  }
6420
6420
  if (Fu(ne, t.props)) {
6421
- var C = k(W, ne, R);
6421
+ var C = k(A, ne, R);
6422
6422
  ne = C.newCalculatedDate, R = C.newCalculatedMonth;
6423
6423
  } else
6424
- j = !0;
6424
+ B = !0;
6425
6425
  Q++;
6426
6426
  }
6427
6427
  return { newCalculatedDate: ne, newCalculatedMonth: R };
@@ -6430,13 +6430,13 @@ var Ju = (
6430
6430
  t.isMonthDisabled(o) || (t.onMonthClick(e, o), c == null || c(l));
6431
6431
  return;
6432
6432
  }
6433
- var x = M(r, u, o), y = x.newCalculatedDate, A = x.newCalculatedMonth;
6433
+ var x = M(r, u, o), y = x.newCalculatedDate, F = x.newCalculatedMonth;
6434
6434
  switch (r) {
6435
6435
  case ie.ArrowRight:
6436
6436
  case ie.ArrowLeft:
6437
6437
  case ie.ArrowUp:
6438
6438
  case ie.ArrowDown:
6439
- t.handleMonthNavigation(A, y);
6439
+ t.handleMonthNavigation(F, y);
6440
6440
  break;
6441
6441
  }
6442
6442
  }
@@ -7287,10 +7287,10 @@ var ld = (
7287
7287
  "react-datepicker__navigation--previous"
7288
7288
  ], g = e.decreaseMonth;
7289
7289
  (e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (g = e.decreaseYear), d && e.props.showDisabledMonthNavigation && (m.push("react-datepicker__navigation--previous--disabled"), g = void 0);
7290
- var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, v = e.props, w = v.previousMonthButtonLabel, k = w === void 0 ? a.defaultProps.previousMonthButtonLabel : w, M = v.previousYearButtonLabel, x = M === void 0 ? a.defaultProps.previousYearButtonLabel : M, y = e.props, A = y.previousMonthAriaLabel, E = A === void 0 ? typeof k == "string" ? k : "Previous Month" : A, S = y.previousYearAriaLabel, N = S === void 0 ? typeof x == "string" ? x : "Previous Year" : S;
7290
+ var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, v = e.props, w = v.previousMonthButtonLabel, k = w === void 0 ? a.defaultProps.previousMonthButtonLabel : w, M = v.previousYearButtonLabel, x = M === void 0 ? a.defaultProps.previousYearButtonLabel : M, y = e.props, F = y.previousMonthAriaLabel, N = F === void 0 ? typeof k == "string" ? k : "Previous Month" : F, S = y.previousYearAriaLabel, T = S === void 0 ? typeof x == "string" ? x : "Previous Year" : S;
7291
7291
  return L.createElement(
7292
7292
  "button",
7293
- { type: "button", className: m.join(" "), onClick: g, onKeyDown: e.props.handleOnKeyDown, "aria-label": b ? N : E },
7293
+ { type: "button", className: m.join(" "), onClick: g, onKeyDown: e.props.handleOnKeyDown, "aria-label": b ? T : N },
7294
7294
  L.createElement("span", { className: p.join(" ") }, b ? x : k)
7295
7295
  );
7296
7296
  }
@@ -7720,17 +7720,17 @@ var Zr = "Date input not valid.", wd = (
7720
7720
  if (g) {
7721
7721
  var k = w.split("-", 2).map(function(D) {
7722
7722
  return D.trim();
7723
- }), M = k[0], x = k[1], y = Ur(M ?? "", d, e.props.locale, m), A = Ur(x ?? "", d, e.props.locale, m), E = (b == null ? void 0 : b.getTime()) !== (y == null ? void 0 : y.getTime()), S = (v == null ? void 0 : v.getTime()) !== (A == null ? void 0 : A.getTime());
7724
- if (!E && !S || y && pt(y, e.props) || A && pt(A, e.props))
7723
+ }), M = k[0], x = k[1], y = Ur(M ?? "", d, e.props.locale, m), F = Ur(x ?? "", d, e.props.locale, m), N = (b == null ? void 0 : b.getTime()) !== (y == null ? void 0 : y.getTime()), S = (v == null ? void 0 : v.getTime()) !== (F == null ? void 0 : F.getTime());
7724
+ if (!N && !S || y && pt(y, e.props) || F && pt(F, e.props))
7725
7725
  return;
7726
- (o = (r = e.props).onChange) === null || o === void 0 || o.call(r, [y, A], l);
7726
+ (o = (r = e.props).onChange) === null || o === void 0 || o.call(r, [y, F], l);
7727
7727
  } else {
7728
- var N = Ur(w, d, e.props.locale, m, e.props.minDate);
7729
- e.props.showTimeSelectOnly && e.props.selected && N && !_e(N, e.props.selected) && (N = wc(e.props.selected, {
7730
- hours: Et(N),
7731
- minutes: Tt(N),
7732
- seconds: Ft(N)
7733
- })), (N || !w) && e.setSelected(N, l, !0);
7728
+ var T = Ur(w, d, e.props.locale, m, e.props.minDate);
7729
+ e.props.showTimeSelectOnly && e.props.selected && T && !_e(T, e.props.selected) && (T = wc(e.props.selected, {
7730
+ hours: Et(T),
7731
+ minutes: Tt(T),
7732
+ seconds: Ft(T)
7733
+ })), (T || !w) && e.setSelected(T, l, !0);
7734
7734
  }
7735
7735
  }
7736
7736
  }, e.handleSelect = function(r, o, i) {
@@ -7764,19 +7764,19 @@ var Zr = "Date input not valid.", wd = (
7764
7764
  })), e.props.inline || e.setState({
7765
7765
  preSelection: c
7766
7766
  }), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), m) {
7767
- var x = !g && !b, y = g && !b, A = g && b;
7768
- x ? p == null || p([c, null], o) : y && (c === null ? p == null || p([null, null], o) : _o(c, g) ? M ? p == null || p([c, g], o) : p == null || p([c, null], o) : p == null || p([g, c], o)), A && (p == null || p([c, null], o));
7767
+ var x = !g && !b, y = g && !b, F = g && b;
7768
+ x ? p == null || p([c, null], o) : y && (c === null ? p == null || p([null, null], o) : _o(c, g) ? M ? p == null || p([c, g], o) : p == null || p([c, null], o) : p == null || p([g, c], o)), F && (p == null || p([c, null], o));
7769
7769
  } else if (v) {
7770
7770
  if (c !== null)
7771
7771
  if (!(w != null && w.length))
7772
7772
  p == null || p([c], o);
7773
7773
  else {
7774
- var E = w.some(function(N) {
7775
- return _e(N, c);
7774
+ var N = w.some(function(T) {
7775
+ return _e(T, c);
7776
7776
  });
7777
- if (E) {
7778
- var S = w.filter(function(N) {
7779
- return !_e(N, c);
7777
+ if (N) {
7778
+ var S = w.filter(function(T) {
7779
+ return !_e(T, c);
7780
7780
  });
7781
7781
  p == null || p(S, o);
7782
7782
  } else
@@ -7848,7 +7848,7 @@ var Zr = "Date input not valid.", wd = (
7848
7848
  }, e.onDayKeyDown = function(r) {
7849
7849
  var o, i, s, l, u, c, d = e.props, p = d.minDate, m = d.maxDate, g = d.disabledKeyboardNavigation, b = d.showWeekPicker, v = d.shouldCloseOnSelect, w = d.locale, k = d.calendarStartDay, M = d.adjustDateOnChange, x = d.inline;
7850
7850
  if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !g) {
7851
- var y = r.key, A = r.shiftKey, E = Ie(e.state.preSelection), S = function(ne, R) {
7851
+ var y = r.key, F = r.shiftKey, N = Ie(e.state.preSelection), S = function(ne, R) {
7852
7852
  var C = R;
7853
7853
  switch (ne) {
7854
7854
  case ie.ArrowRight:
@@ -7864,10 +7864,10 @@ var Zr = "Date input not valid.", wd = (
7864
7864
  C = dr(R, 1);
7865
7865
  break;
7866
7866
  case ie.PageUp:
7867
- C = A ? Dn(R, 1) : nn(R, 1);
7867
+ C = F ? Dn(R, 1) : nn(R, 1);
7868
7868
  break;
7869
7869
  case ie.PageDown:
7870
- C = A ? Lt(R, 1) : vt(R, 1);
7870
+ C = F ? Lt(R, 1) : vt(R, 1);
7871
7871
  break;
7872
7872
  case ie.Home:
7873
7873
  C = zt(R, w, k);
@@ -7877,18 +7877,18 @@ var Zr = "Date input not valid.", wd = (
7877
7877
  break;
7878
7878
  }
7879
7879
  return C;
7880
- }, N = function(ne, R) {
7881
- for (var C = 40, T = ne, X = !1, _ = 0, Y = S(ne, R); !X; ) {
7880
+ }, T = function(ne, R) {
7881
+ for (var C = 40, E = ne, X = !1, _ = 0, Y = S(ne, R); !X; ) {
7882
7882
  if (_ >= C) {
7883
7883
  Y = R;
7884
7884
  break;
7885
7885
  }
7886
- p && Y < p && (T = ie.ArrowRight, Y = pt(p, e.props) ? S(T, Y) : p), m && Y > m && (T = ie.ArrowLeft, Y = pt(m, e.props) ? S(T, Y) : m), pt(Y, e.props) ? ((T === ie.PageUp || T === ie.Home) && (T = ie.ArrowRight), (T === ie.PageDown || T === ie.End) && (T = ie.ArrowLeft), Y = S(T, Y)) : X = !0, _++;
7886
+ p && Y < p && (E = ie.ArrowRight, Y = pt(p, e.props) ? S(E, Y) : p), m && Y > m && (E = ie.ArrowLeft, Y = pt(m, e.props) ? S(E, Y) : m), pt(Y, e.props) ? ((E === ie.PageUp || E === ie.Home) && (E = ie.ArrowRight), (E === ie.PageDown || E === ie.End) && (E = ie.ArrowLeft), Y = S(E, Y)) : X = !0, _++;
7887
7887
  }
7888
7888
  return Y;
7889
7889
  };
7890
7890
  if (y === ie.Enter) {
7891
- r.preventDefault(), e.handleSelect(E, r), !v && e.setPreSelection(E);
7891
+ r.preventDefault(), e.handleSelect(N, r), !v && e.setPreSelection(N);
7892
7892
  return;
7893
7893
  } else if (y === ie.Escape) {
7894
7894
  r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Zr });
@@ -7904,7 +7904,7 @@ var Zr = "Date input not valid.", wd = (
7904
7904
  case ie.PageDown:
7905
7905
  case ie.Home:
7906
7906
  case ie.End:
7907
- D = N(y, E);
7907
+ D = T(y, N);
7908
7908
  break;
7909
7909
  }
7910
7910
  if (!D) {
@@ -7912,8 +7912,8 @@ var Zr = "Date input not valid.", wd = (
7912
7912
  return;
7913
7913
  }
7914
7914
  if (r.preventDefault(), e.setState({ lastPreSelectChange: Jr }), M && e.setSelected(D), e.setPreSelection(D), x) {
7915
- var W = Je(E), j = Je(D), Q = ve(E), q = ve(D);
7916
- W !== j || Q !== q ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
7915
+ var A = Je(N), B = Je(D), Q = ve(N), q = ve(D);
7916
+ A !== B || Q !== q ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
7917
7917
  }
7918
7918
  }
7919
7919
  }, e.onPopperKeyDown = function(r) {
@@ -8088,21 +8088,21 @@ const Dd = (n) => {
8088
8088
  }, Gt = /^\d{2}\.\d{2}\.\d{4}$/, Si = Ai(({ value: n, onChange: a, onFocus: t, onBlur: e, onMouseUp: r, onKeyDown: o, onWheelDate: i, onOpenCalendar: s, onFocusChange: l, isClearable: u, wheelEdit: c = !1, ...d }, p) => {
8089
8089
  const m = fe(null), [g, b] = ae(null), [v, w] = ae(0), [k, M] = ae(0), x = fe(typeof n == "string" ? n : ""), y = fe(
8090
8090
  typeof n == "string" && Gt.test(n) ? n : ""
8091
- ), A = fe(!1);
8091
+ ), F = fe(!1);
8092
8092
  de(() => {
8093
- typeof n == "string" && Gt.test(n) && (y.current = n), A.current || (x.current = typeof n == "string" ? n : "");
8093
+ typeof n == "string" && Gt.test(n) && (y.current = n), F.current || (x.current = typeof n == "string" ? n : "");
8094
8094
  }, [n]);
8095
- const E = Be(
8095
+ const N = Be(
8096
8096
  (C) => {
8097
8097
  m.current = C, typeof p == "function" ? p(C) : p && (p.current = C);
8098
8098
  },
8099
8099
  [p]
8100
8100
  ), S = Be((C) => {
8101
- const T = m.current;
8102
- if (!T) return;
8101
+ const E = m.current;
8102
+ if (!E) return;
8103
8103
  const [X, _] = kd(C);
8104
- T.setSelectionRange(X, _);
8105
- }, []), N = Be(
8104
+ E.setSelectionRange(X, _);
8105
+ }, []), T = Be(
8106
8106
  (C) => {
8107
8107
  requestAnimationFrame(() => {
8108
8108
  S(C), requestAnimationFrame(() => S(C));
@@ -8120,30 +8120,30 @@ const Dd = (n) => {
8120
8120
  !C || document.activeElement !== C || C.setSelectionRange(0, C.value.length);
8121
8121
  }, [v]);
8122
8122
  const D = (C) => {
8123
- const T = Sd(C.target.value);
8124
- C.target.value = T, x.current = T, a == null || a(C);
8125
- }, W = (C) => {
8123
+ const E = Sd(C.target.value);
8124
+ C.target.value = E, x.current = E, a == null || a(C);
8125
+ }, A = (C) => {
8126
8126
  if (r == null || r(C), !c) return;
8127
8127
  if (C.preventDefault(), C.detail >= 2) {
8128
8128
  b(null), w((X) => X + 1);
8129
8129
  return;
8130
8130
  }
8131
- const T = C.currentTarget.selectionStart ?? 0;
8132
- b(nr(T)), M((X) => X + 1);
8133
- }, j = (C) => {
8131
+ const E = C.currentTarget.selectionStart ?? 0;
8132
+ b(nr(E)), M((X) => X + 1);
8133
+ }, B = (C) => {
8134
8134
  var X;
8135
8135
  t == null || t(C), l == null || l(!0);
8136
- const T = ((X = m.current) == null ? void 0 : X.value) ?? "";
8137
- x.current = Gt.test(T) ? T : typeof n == "string" ? n : "", Gt.test(x.current) && (y.current = x.current), A.current = !0, c && (b("day"), N("day"));
8136
+ const E = ((X = m.current) == null ? void 0 : X.value) ?? "";
8137
+ x.current = Gt.test(E) ? E : typeof n == "string" ? n : "", Gt.test(x.current) && (y.current = x.current), F.current = !0, c && (b("day"), T("day"));
8138
8138
  }, Q = (C) => {
8139
8139
  var Y;
8140
- e == null || e(C), l == null || l(!1), A.current = !1, b(null);
8141
- const T = ((Y = m.current) == null ? void 0 : Y.value) ?? "";
8142
- if (Gt.test(T)) {
8143
- x.current = T, y.current = T;
8140
+ e == null || e(C), l == null || l(!1), F.current = !1, b(null);
8141
+ const E = ((Y = m.current) == null ? void 0 : Y.value) ?? "";
8142
+ if (Gt.test(E)) {
8143
+ x.current = E, y.current = E;
8144
8144
  return;
8145
8145
  }
8146
- const X = u && T.trim() === "", _ = y.current;
8146
+ const X = u && E.trim() === "", _ = y.current;
8147
8147
  if (!X && Gt.test(_)) {
8148
8148
  x.current = _;
8149
8149
  const U = m.current;
@@ -8158,12 +8158,12 @@ const Dd = (n) => {
8158
8158
  }, 0);
8159
8159
  return;
8160
8160
  }
8161
- x.current = T;
8161
+ x.current = E;
8162
8162
  }, q = Be(
8163
- (C, T) => {
8163
+ (C, E) => {
8164
8164
  var P;
8165
- A.current = !0;
8166
- const X = m.current, _ = (X == null ? void 0 : X.value) ?? "", Y = Gt.test(x.current) ? x.current : Gt.test(_) ? _ : "", U = Cd(Y, C, T);
8165
+ F.current = !0;
8166
+ const X = m.current, _ = (X == null ? void 0 : X.value) ?? "", Y = Gt.test(x.current) ? x.current : Gt.test(_) ? _ : "", U = Cd(Y, C, E);
8167
8167
  if (x.current = U, y.current = U, s == null || s(), X) {
8168
8168
  const H = (P = Object.getOwnPropertyDescriptor(
8169
8169
  window.HTMLInputElement.prototype,
@@ -8177,15 +8177,15 @@ const Dd = (n) => {
8177
8177
  target: { value: U },
8178
8178
  currentTarget: { value: U }
8179
8179
  });
8180
- b(C), N(C);
8180
+ b(C), T(C);
8181
8181
  },
8182
- [a, i, s, N]
8182
+ [a, i, s, T]
8183
8183
  ), ne = Be(
8184
8184
  (C) => {
8185
- const T = m.current;
8186
- if (!T || document.activeElement !== T) return;
8185
+ const E = m.current;
8186
+ if (!E || document.activeElement !== E) return;
8187
8187
  C.cancelable && C.preventDefault(), C.stopPropagation();
8188
- const X = T.selectionStart ?? 0, _ = g ?? nr(X);
8188
+ const X = E.selectionStart ?? 0, _ = g ?? nr(X);
8189
8189
  q(_, C.deltaY < 0 ? 1 : -1);
8190
8190
  },
8191
8191
  [g, q]
@@ -8197,24 +8197,24 @@ const Dd = (n) => {
8197
8197
  }
8198
8198
  if (C.key === "ArrowUp" || C.key === "ArrowDown") {
8199
8199
  C.preventDefault();
8200
- const T = m.current;
8201
- if (!T) return;
8202
- const X = T.selectionStart ?? 0, _ = g ?? nr(X);
8200
+ const E = m.current;
8201
+ if (!E) return;
8202
+ const X = E.selectionStart ?? 0, _ = g ?? nr(X);
8203
8203
  q(_, C.key === "ArrowUp" ? 1 : -1);
8204
8204
  return;
8205
8205
  }
8206
8206
  if (C.key === "Enter") {
8207
- const T = m.current, X = (T == null ? void 0 : T.selectionStart) ?? 0, _ = g ?? nr(X);
8207
+ const E = m.current, X = (E == null ? void 0 : E.selectionStart) ?? 0, _ = g ?? nr(X);
8208
8208
  if (_ !== "year") {
8209
8209
  C.preventDefault();
8210
8210
  const Y = _ === "day" ? "month" : "year";
8211
- b(Y), N(Y);
8211
+ b(Y), T(Y);
8212
8212
  return;
8213
8213
  }
8214
8214
  }
8215
8215
  o == null || o(C);
8216
8216
  },
8217
- [g, q, N, o, c]
8217
+ [g, q, T, o, c]
8218
8218
  );
8219
8219
  return de(() => {
8220
8220
  if (!c) return;
@@ -8226,13 +8226,13 @@ const Dd = (n) => {
8226
8226
  {
8227
8227
  ...d,
8228
8228
  value: n,
8229
- ref: E,
8229
+ ref: N,
8230
8230
  inputMode: "numeric",
8231
8231
  maxLength: 10,
8232
8232
  onChange: D,
8233
8233
  onKeyDown: R,
8234
- onMouseUp: W,
8235
- onFocus: j,
8234
+ onMouseUp: A,
8235
+ onFocus: B,
8236
8236
  onBlur: Q
8237
8237
  }
8238
8238
  );
@@ -8250,16 +8250,16 @@ const Pr = ({
8250
8250
  isActive: l = !0,
8251
8251
  showWhenActive: u = !1
8252
8252
  }) => {
8253
- const c = fe(null), [d, p] = ae(null), [m, g] = ae(null), [b, v] = ae(), [w, k] = ae(""), [M, x] = ae(!1), [y, A] = ae(null);
8253
+ const c = fe(null), [d, p] = ae(null), [m, g] = ae(null), [b, v] = ae(), [w, k] = ae(""), [M, x] = ae(!1), [y, F] = ae(null);
8254
8254
  de(() => {
8255
8255
  if (!l) {
8256
8256
  p(null), k(""), g(null), x(!1);
8257
8257
  return;
8258
8258
  }
8259
- const N = document.getElementById(w);
8260
- if (N) {
8261
- const W = N.clientHeight, j = N.clientWidth;
8262
- g(W), p((Q) => s === "top" ? { ...Q, y: (Q == null ? void 0 : Q.y) - W } : s === "bottom" ? { ...Q, y: Q == null ? void 0 : Q.y } : s === "left" ? { ...Q, x: (Q == null ? void 0 : Q.x) - j / 2, y: Q == null ? void 0 : Q.y } : s === "right" ? { ...Q, x: (Q == null ? void 0 : Q.x) + j / 2, y: Q == null ? void 0 : Q.y } : Q);
8259
+ const T = document.getElementById(w);
8260
+ if (T) {
8261
+ const A = T.clientHeight, B = T.clientWidth;
8262
+ g(A), p((Q) => s === "top" ? { ...Q, y: (Q == null ? void 0 : Q.y) - A } : s === "bottom" ? { ...Q, y: Q == null ? void 0 : Q.y } : s === "left" ? { ...Q, x: (Q == null ? void 0 : Q.x) - B / 2, y: Q == null ? void 0 : Q.y } : s === "right" ? { ...Q, x: (Q == null ? void 0 : Q.x) + B / 2, y: Q == null ? void 0 : Q.y } : Q);
8263
8263
  }
8264
8264
  if (!w) return;
8265
8265
  const D = () => {
@@ -8271,15 +8271,15 @@ const Pr = ({
8271
8271
  }, [w, s, l, u]), de(() => () => {
8272
8272
  y && clearTimeout(y);
8273
8273
  }, [y]);
8274
- const E = Be((N, D, W) => {
8274
+ const N = Be((T, D, A) => {
8275
8275
  if (!l) return;
8276
8276
  clearTimeout(y);
8277
- const { x: j, y: Q, width: q } = N.currentTarget.getBoundingClientRect();
8278
- s === "top" ? p({ x: j + q / 2, y: Q + 12 + window.scrollY - m + 37 }) : s === "bottom" ? p({ x: j + q / 2, y: Q + 12 + window.scrollY + m + 37 + 40 }) : s === "right" ? p({ x: j + q + 10, y: Q + 12 + window.scrollY + 37 }) : s === "left" && p({ x: j - q / 2, y: Q + 12 + window.scrollY + 37 }), v(D), k(`u-tooltip${W}`);
8277
+ const { x: B, y: Q, width: q } = T.currentTarget.getBoundingClientRect();
8278
+ s === "top" ? p({ x: B + q / 2, y: Q + 12 + window.scrollY - m + 37 }) : s === "bottom" ? p({ x: B + q / 2, y: Q + 12 + window.scrollY + m + 37 + 40 }) : s === "right" ? p({ x: B + q + 10, y: Q + 12 + window.scrollY + 37 }) : s === "left" && p({ x: B - q / 2, y: Q + 12 + window.scrollY + 37 }), v(D), k(`u-tooltip${A}`);
8279
8279
  const ne = setTimeout(() => {
8280
8280
  x(!0);
8281
8281
  }, 100);
8282
- A(ne);
8282
+ F(ne);
8283
8283
  }, [y, s, l, m]), S = Be(() => {
8284
8284
  clearTimeout(y), p(null), k(""), g(null), x(!1);
8285
8285
  }, [y]);
@@ -8289,16 +8289,16 @@ const Pr = ({
8289
8289
  p(null), k(""), g(null), x(!1);
8290
8290
  return;
8291
8291
  }
8292
- const N = c.current;
8293
- if (!N) return;
8294
- const { x: D, y: W, width: j } = N.getBoundingClientRect();
8295
- s === "top" ? p({ x: D + j / 2, y: W + 12 + window.scrollY + 37 }) : s === "bottom" ? p({ x: D + j / 2, y: W + 12 + window.scrollY + 37 + 40 }) : s === "right" ? p({ x: D + j + 10, y: W + 12 + window.scrollY + 37 }) : s === "left" && p({ x: D - j / 2, y: W + 12 + window.scrollY + 37 }), v(r), k(`u-tooltip${e}`), x(!0);
8292
+ const T = c.current;
8293
+ if (!T) return;
8294
+ const { x: D, y: A, width: B } = T.getBoundingClientRect();
8295
+ s === "top" ? p({ x: D + B / 2, y: A + 12 + window.scrollY + 37 }) : s === "bottom" ? p({ x: D + B / 2, y: A + 12 + window.scrollY + 37 + 40 }) : s === "right" ? p({ x: D + B + 10, y: A + 12 + window.scrollY + 37 }) : s === "left" && p({ x: D - B / 2, y: A + 12 + window.scrollY + 37 }), v(r), k(`u-tooltip${e}`), x(!0);
8296
8296
  }, [e, l, s, u, r]), /* @__PURE__ */ f(Ge, { children: t ? /* @__PURE__ */ $(
8297
8297
  "div",
8298
8298
  {
8299
8299
  ref: c,
8300
8300
  style: o,
8301
- onMouseEnter: u ? void 0 : (N) => E(N, r, e),
8301
+ onMouseEnter: u ? void 0 : (T) => N(T, r, e),
8302
8302
  onMouseLeave: u ? void 0 : S,
8303
8303
  className: a,
8304
8304
  id: "u-help",
@@ -9051,13 +9051,13 @@ const ta = [
9051
9051
  columnGap: M = 20,
9052
9052
  styleInputContainer: x,
9053
9053
  styleTitle: y,
9054
- disabled: A,
9055
- wheelEdit: E = !1,
9054
+ disabled: F,
9055
+ wheelEdit: N = !1,
9056
9056
  showHint: S = !1,
9057
- hintText: N = "Используйте колесо мыши или стрелки ↑↓ для изменения значения. Нажмите Enter для подтверждения.",
9057
+ hintText: T = "Используйте колесо мыши или стрелки ↑↓ для изменения значения",
9058
9058
  tooltipMaxWidth: D = 300
9059
9059
  }) => {
9060
- const [W, j] = ae(!1), [Q, q] = ae(null), [ne, R] = ae(!1), C = dt(() => Oo(a), [a]), T = (U) => {
9060
+ const [A, B] = ae(!1), [Q, q] = ae(null), [ne, R] = ae(!1), C = dt(() => Oo(a), [a]), E = (U) => {
9061
9061
  if (!U) {
9062
9062
  t("");
9063
9063
  return;
@@ -9070,12 +9070,12 @@ const ta = [
9070
9070
  const H = document.getElementById(`u-datepicker${d}`), z = document.querySelector(
9071
9071
  `#u-datepicker${d} > div > div > input`
9072
9072
  );
9073
- W && (z && z.focus(), H && !H.contains(P.target) && (j(!1), z && z.blur()));
9073
+ A && (z && z.focus(), H && !H.contains(P.target) && (B(!1), z && z.blur()));
9074
9074
  };
9075
9075
  return document.addEventListener("click", U), () => {
9076
9076
  document.removeEventListener("click", U);
9077
9077
  };
9078
- }, [W]), de(() => {
9078
+ }, [A]), de(() => {
9079
9079
  if (l) {
9080
9080
  const U = document.querySelectorAll(".react-datepicker__close-icon");
9081
9081
  for (const P of U)
@@ -9085,17 +9085,17 @@ const ta = [
9085
9085
  const X = (U) => typeof U == "number" ? `${U}px` : String(U), _ = (U) => typeof U == "number" ? `calc(${U} * var(--u-unit, 1px))` : String(U), Y = /* @__PURE__ */ f(
9086
9086
  wd,
9087
9087
  {
9088
- open: i || W,
9088
+ open: i || A,
9089
9089
  inline: o,
9090
9090
  popperPlacement: "bottom-end",
9091
9091
  isClearable: l,
9092
- disabled: A,
9092
+ disabled: F,
9093
9093
  renderCustomHeader: ({
9094
9094
  date: U,
9095
9095
  changeYear: P,
9096
9096
  changeMonth: H,
9097
9097
  decreaseMonth: z,
9098
- increaseMonth: B,
9098
+ increaseMonth: j,
9099
9099
  prevMonthButtonDisabled: J,
9100
9100
  nextMonthButtonDisabled: se
9101
9101
  }) => /* @__PURE__ */ $(
@@ -9162,7 +9162,7 @@ const ta = [
9162
9162
  cursor: "pointer"
9163
9163
  },
9164
9164
  onClick: (ue) => {
9165
- ue.preventDefault(), ue.stopPropagation(), q(null), B();
9165
+ ue.preventDefault(), ue.stopPropagation(), q(null), j();
9166
9166
  },
9167
9167
  disabled: se,
9168
9168
  children: /* @__PURE__ */ f("i", { className: "u-icon icon-right", style: { fontSize: "calc(20 * var(--u-unit, 1px))" } })
@@ -9177,14 +9177,14 @@ const ta = [
9177
9177
  {
9178
9178
  id: `custom-input-mask-${d}`,
9179
9179
  isClearable: l,
9180
- wheelEdit: E,
9181
- onWheelDate: (U) => T(U),
9182
- onOpenCalendar: () => j(!0),
9180
+ wheelEdit: N,
9181
+ onWheelDate: (U) => E(U),
9182
+ onOpenCalendar: () => B(!0),
9183
9183
  onFocusChange: R
9184
9184
  }
9185
9185
  ),
9186
9186
  selected: C,
9187
- onChange: T,
9187
+ onChange: E,
9188
9188
  locale: "ru",
9189
9189
  className: (e ? "custom-input dpc-filter custom-input-filter" : c ? "custom-input dpc-table custom-input-table" : `${s ? "dpc-grey" : "dpc"} custom-input`) + (g || b ? " u-input-required" : ""),
9190
9190
  dateFormat: "dd.MM.yyyy"
@@ -9194,7 +9194,7 @@ const ta = [
9194
9194
  "div",
9195
9195
  {
9196
9196
  id: `u-datepicker${d}`,
9197
- onClick: () => j(!W),
9197
+ onClick: () => B(!A),
9198
9198
  style: { display: "flex", flexDirection: "column", rowGap: 4 },
9199
9199
  children: [
9200
9200
  /* @__PURE__ */ $(
@@ -9230,7 +9230,7 @@ const ta = [
9230
9230
  portalOn: !0,
9231
9231
  id: `calendar-hint-${d || "default"}`,
9232
9232
  position: "top",
9233
- isActive: ne && !A,
9233
+ isActive: ne && !F,
9234
9234
  showWhenActive: !0,
9235
9235
  tooltipStyle: {
9236
9236
  maxWidth: _(D),
@@ -9238,7 +9238,7 @@ const ta = [
9238
9238
  whiteSpace: "normal",
9239
9239
  overflowWrap: "anywhere"
9240
9240
  },
9241
- tooltipText: N,
9241
+ tooltipText: T,
9242
9242
  children: /* @__PURE__ */ f("div", { style: { width: "100%" }, children: Y })
9243
9243
  }
9244
9244
  ) : Y
@@ -9310,32 +9310,32 @@ const cp = ({
9310
9310
  maxLength: M,
9311
9311
  disabled: x
9312
9312
  }) => {
9313
- const [y, A] = ae(null), E = fe(null), S = (T) => typeof T == "number" ? `${T}px` : String(T), N = (T) => {
9314
- if (T == null || T === "") return;
9315
- if (typeof T == "number") return `calc(${T} * var(--u-unit, 1px))`;
9316
- const _ = String(T).trim().match(/^(-?\d+(?:\.\d+)?)px$/);
9317
- return _ ? `calc(${_[1]} * var(--u-unit, 1px))` : T;
9313
+ const [y, F] = ae(null), N = fe(null), S = (E) => typeof E == "number" ? `${E}px` : String(E), T = (E) => {
9314
+ if (E == null || E === "") return;
9315
+ if (typeof E == "number") return `calc(${E} * var(--u-unit, 1px))`;
9316
+ const _ = String(E).trim().match(/^(-?\d+(?:\.\d+)?)px$/);
9317
+ return _ ? `calc(${_[1]} * var(--u-unit, 1px))` : E;
9318
9318
  }, D = Be(() => {
9319
- const T = E.current;
9320
- if (T) {
9319
+ const E = N.current;
9320
+ if (E) {
9321
9321
  if (w === void 0 && k === void 0) {
9322
- T.style.height = "5px", T.style.height = T.scrollHeight + 2 + "px";
9322
+ E.style.height = "5px", E.style.height = E.scrollHeight + 2 + "px";
9323
9323
  return;
9324
9324
  }
9325
- T.style.height = "0px", T.style.height = `${T.scrollHeight + 2}px`;
9325
+ E.style.height = "0px", E.style.height = `${E.scrollHeight + 2}px`;
9326
9326
  }
9327
9327
  }, [k, w]);
9328
9328
  de(() => {
9329
- const T = E.current;
9330
- T && T.setSelectionRange(y, y);
9331
- }, [E, y, v]);
9332
- const W = (T) => {
9333
- D(), A(T.target.selectionStart), e && e(T);
9329
+ const E = N.current;
9330
+ E && E.setSelectionRange(y, y);
9331
+ }, [N, y, v]);
9332
+ const A = (E) => {
9333
+ D(), F(E.target.selectionStart), e && e(E);
9334
9334
  };
9335
9335
  de(() => {
9336
9336
  D();
9337
9337
  }, [D, v]);
9338
- const j = v || "", Q = j.length, q = typeof M == "number" && Number.isFinite(M) && M >= 0, ne = q && Q >= M, R = N(w), C = N(k);
9338
+ const B = v || "", Q = B.length, q = typeof M == "number" && Number.isFinite(M) && M >= 0, ne = q && Q >= M, R = T(w), C = T(k);
9339
9339
  return /* @__PURE__ */ $("div", { className: `${d}`, style: { position: "relative" }, children: [
9340
9340
  /* @__PURE__ */ $(
9341
9341
  "div",
@@ -9389,9 +9389,9 @@ const cp = ({
9389
9389
  ),
9390
9390
  maxLength: q ? M : void 0,
9391
9391
  placeholder: a,
9392
- ref: E,
9393
- value: j,
9394
- onChange: W,
9392
+ ref: N,
9393
+ value: B,
9394
+ onChange: A,
9395
9395
  id: `input_expand${t}`
9396
9396
  }
9397
9397
  ),
@@ -9449,15 +9449,15 @@ const up = ({
9449
9449
  multiple: M = !1,
9450
9450
  hideLoaderAfterSelect: x = 0,
9451
9451
  accept: y = [],
9452
- maxFileSize: A,
9453
- fileNamePattern: E,
9452
+ maxFileSize: F,
9453
+ fileNamePattern: N,
9454
9454
  onFileReject: S
9455
9455
  }) => {
9456
- const N = fe(null), D = (P) => {
9456
+ const T = fe(null), D = (P) => {
9457
9457
  P.preventDefault(), P.stopPropagation();
9458
- }, W = (P) => {
9458
+ }, A = (P) => {
9459
9459
  P.preventDefault(), P.stopPropagation();
9460
- }, j = (P) => {
9460
+ }, B = (P) => {
9461
9461
  P.preventDefault(), P.stopPropagation();
9462
9462
  }, Q = (P) => {
9463
9463
  var z;
@@ -9508,28 +9508,28 @@ const up = ({
9508
9508
  default:
9509
9509
  return "other";
9510
9510
  }
9511
- }, T = () => y.length === 0 ? "Неверный формат файла" : y.length === 1 ? `Файл должен быть в формате ${y[0]}` : `Разрешенные форматы файлов: ${y.join(", ")}`, X = (P, H) => {
9511
+ }, E = () => y.length === 0 ? "Неверный формат файла" : y.length === 1 ? `Файл должен быть в формате ${y[0]}` : `Разрешенные форматы файлов: ${y.join(", ")}`, X = (P, H) => {
9512
9512
  M ? _(P, H) : Y(P, H);
9513
9513
  }, _ = (P, H) => {
9514
- const B = (H ? Array.from(P.dataTransfer.files) : Array.from(P.target.files)).filter((J) => y.length > 0 && !y.includes(J.name.split(".").pop().toLowerCase()) ? (S == null || S(T(), J), !1) : A && J.size > A ? (S == null || S("Файл слишком большой", J), !1) : E && !E.test(J.name) ? (S == null || S("Имя файла не соответствует шаблону", J), !1) : !w.some((se) => se.name === J.name));
9515
- B.length > 0 && k((J) => [...J, ...B]), N.current.value = "";
9514
+ const j = (H ? Array.from(P.dataTransfer.files) : Array.from(P.target.files)).filter((J) => y.length > 0 && !y.includes(J.name.split(".").pop().toLowerCase()) ? (S == null || S(E(), J), !1) : F && J.size > F ? (S == null || S("Файл слишком большой", J), !1) : N && !N.test(J.name) ? (S == null || S("Имя файла не соответствует шаблону", J), !1) : !w.some((se) => se.name === J.name));
9515
+ j.length > 0 && k((J) => [...J, ...j]), T.current.value = "";
9516
9516
  }, Y = (P, H) => {
9517
- const B = (H ? Array.from([P.dataTransfer.files[0]]) : Array.from(P.target.files))[0];
9518
- if (y.length > 0 && !y.includes(B.name.split(".").pop().toLowerCase())) {
9519
- S == null || S(T(), B), N.current.value = "";
9517
+ const j = (H ? Array.from([P.dataTransfer.files[0]]) : Array.from(P.target.files))[0];
9518
+ if (y.length > 0 && !y.includes(j.name.split(".").pop().toLowerCase())) {
9519
+ S == null || S(E(), j), T.current.value = "";
9520
9520
  return;
9521
9521
  }
9522
- if (A && B.size > A) {
9523
- S == null || S("Файл слишком большой", B), N.current.value = "";
9522
+ if (F && j.size > F) {
9523
+ S == null || S("Файл слишком большой", j), T.current.value = "";
9524
9524
  return;
9525
9525
  }
9526
- if (E && !E.test(B.name)) {
9527
- S == null || S("Имя файла не соответствует шаблону", B), N.current.value = "";
9526
+ if (N && !N.test(j.name)) {
9527
+ S == null || S("Имя файла не соответствует шаблону", j), T.current.value = "";
9528
9528
  return;
9529
9529
  }
9530
- k([B]), N.current.value = "";
9530
+ k([j]), T.current.value = "";
9531
9531
  }, U = (P) => {
9532
- k((H) => H.filter((z, B) => B !== P));
9532
+ k((H) => H.filter((z, j) => j !== P));
9533
9533
  };
9534
9534
  return /* @__PURE__ */ $(
9535
9535
  "div",
@@ -9566,11 +9566,11 @@ const up = ({
9566
9566
  id: e,
9567
9567
  className: "u-file",
9568
9568
  onDragEnter: D,
9569
- onDragLeave: W,
9570
- onDragOver: j,
9569
+ onDragLeave: A,
9570
+ onDragOver: B,
9571
9571
  onDrop: Q,
9572
9572
  children: [
9573
- /* @__PURE__ */ f("input", { ref: N, type: "file", id: e, name: r, value: t, defaultValue: a, disabled: i, onChange: (P) => X(P), multiple: M, accept: y.length > 0 ? y.map((P) => "." + P).join(",") : void 0 }),
9573
+ /* @__PURE__ */ f("input", { ref: T, type: "file", id: e, name: r, value: t, defaultValue: a, disabled: i, onChange: (P) => X(P), multiple: M, accept: y.length > 0 ? y.map((P) => "." + P).join(",") : void 0 }),
9574
9574
  /* @__PURE__ */ f("i", { className: "u-file-icon" }),
9575
9575
  !v && /* @__PURE__ */ $(Ge, { children: [
9576
9576
  /* @__PURE__ */ f("p", { className: "u-file-title", children: g }),
@@ -9589,10 +9589,10 @@ const up = ({
9589
9589
  /* @__PURE__ */ f("p", { children: P.name }),
9590
9590
  /* @__PURE__ */ $("div", { className: "u-file-cell-content-props", children: [
9591
9591
  /* @__PURE__ */ f("span", { children: (() => {
9592
- const [z, B] = R(P.size);
9592
+ const [z, j] = R(P.size);
9593
9593
  return /* @__PURE__ */ $(Ge, { children: [
9594
9594
  z,
9595
- /* @__PURE__ */ f("span", { className: "uwsn", children: B })
9595
+ /* @__PURE__ */ f("span", { className: "uwsn", children: j })
9596
9596
  ] });
9597
9597
  })() }),
9598
9598
  /* @__PURE__ */ f("span", { children: ne(P.lastModifiedDate) })
@@ -9671,7 +9671,7 @@ const dp = ({
9671
9671
  validationOnWithoutText: x,
9672
9672
  absoluteValidationText: y
9673
9673
  }) => {
9674
- const A = fe(null), E = fe(null), [S, N] = ae(!1), D = (R) => typeof R == "number" ? `${R}px` : String(R), W = (R) => typeof R == "number" ? `calc(${R} * var(--u-unit, 1px))` : String(R), j = Be((R) => {
9674
+ const F = fe(null), N = fe(null), [S, T] = ae(!1), D = (R) => typeof R == "number" ? `${R}px` : String(R), A = (R) => typeof R == "number" ? `calc(${R} * var(--u-unit, 1px))` : String(R), B = Be((R) => {
9675
9675
  if (!i) return;
9676
9676
  i({
9677
9677
  target: {
@@ -9687,27 +9687,27 @@ const dp = ({
9687
9687
  });
9688
9688
  }, [r, o, i]), Q = (R) => {
9689
9689
  if (l) return;
9690
- const C = A.current;
9691
- C && (R === -1 ? C.stepDown() : C.stepUp(), j(C.value));
9690
+ const C = F.current;
9691
+ C && (R === -1 ? C.stepDown() : C.stepUp(), B(C.value));
9692
9692
  }, q = Be((R) => {
9693
9693
  if (l) return;
9694
- const C = A.current;
9694
+ const C = F.current;
9695
9695
  if (!C) return;
9696
9696
  R.cancelable && R.preventDefault(), R.stopPropagation(), R.deltaY < 0 ? C.stepUp() : C.stepDown();
9697
- const T = Number(C.value), X = v != null && v !== "" ? Number(v) : void 0, _ = w != null && w !== "" ? Number(w) : void 0;
9698
- let Y = T;
9699
- Number.isFinite(X) && (Y = Math.max(Y, X)), Number.isFinite(_) && (Y = Math.min(Y, _)), Number.isFinite(Y) && (C.value = String(Y)), j(C.value);
9700
- }, [l, j, w, v]);
9697
+ const E = Number(C.value), X = v != null && v !== "" ? Number(v) : void 0, _ = w != null && w !== "" ? Number(w) : void 0;
9698
+ let Y = E;
9699
+ Number.isFinite(X) && (Y = Math.max(Y, X)), Number.isFinite(_) && (Y = Math.min(Y, _)), Number.isFinite(Y) && (C.value = String(Y)), B(C.value);
9700
+ }, [l, B, w, v]);
9701
9701
  de(() => {
9702
9702
  if (l) return;
9703
- const R = E.current;
9703
+ const R = N.current;
9704
9704
  if (!R) return;
9705
- const C = (T) => q(T);
9705
+ const C = (E) => q(E);
9706
9706
  return R.addEventListener("wheel", C, { passive: !1 }), () => {
9707
9707
  R.removeEventListener("wheel", C);
9708
9708
  };
9709
9709
  }, [l, q]);
9710
- const ne = /* @__PURE__ */ $("div", { ref: E, className: `u-number ${l ? "u-number-disabled" : ""}`, children: [
9710
+ const ne = /* @__PURE__ */ $("div", { ref: N, className: `u-number ${l ? "u-number-disabled" : ""}`, children: [
9711
9711
  /* @__PURE__ */ f(
9712
9712
  "button",
9713
9713
  {
@@ -9723,7 +9723,7 @@ const dp = ({
9723
9723
  /* @__PURE__ */ f(
9724
9724
  "input",
9725
9725
  {
9726
- ref: A,
9726
+ ref: F,
9727
9727
  type: "number",
9728
9728
  className: `u-react-input u-input ${M || x ? "u-input-required" : ""}`,
9729
9729
  min: v,
@@ -9735,8 +9735,8 @@ const dp = ({
9735
9735
  value: e,
9736
9736
  disabled: l,
9737
9737
  onChange: i,
9738
- onFocus: () => N(!0),
9739
- onBlur: () => N(!1)
9738
+ onFocus: () => T(!0),
9739
+ onBlur: () => T(!1)
9740
9740
  }
9741
9741
  ),
9742
9742
  /* @__PURE__ */ f(
@@ -9790,7 +9790,7 @@ const dp = ({
9790
9790
  isActive: S,
9791
9791
  showWhenActive: !0,
9792
9792
  tooltipStyle: {
9793
- maxWidth: W(g),
9793
+ maxWidth: A(g),
9794
9794
  width: "auto",
9795
9795
  whiteSpace: "normal",
9796
9796
  overflowWrap: "anywhere"
@@ -9842,14 +9842,14 @@ const pp = ({
9842
9842
  validationOnWithoutText: M,
9843
9843
  absoluteValidationText: x
9844
9844
  }) => {
9845
- const [y, A] = ae(null), E = fe(null), S = (D) => {
9846
- A(D.target.selectionStart), i && i(D);
9845
+ const [y, F] = ae(null), N = fe(null), S = (D) => {
9846
+ F(D.target.selectionStart), i && i(D);
9847
9847
  };
9848
9848
  de(() => {
9849
- const D = E.current;
9849
+ const D = N.current;
9850
9850
  D && D.setSelectionRange(y, y);
9851
- }, [E, y, e]);
9852
- const N = (D) => typeof D == "number" ? `${D}px` : String(D);
9851
+ }, [N, y, e]);
9852
+ const T = (D) => typeof D == "number" ? `${D}px` : String(D);
9853
9853
  return /* @__PURE__ */ $("div", { className: `u-react-input-container ${b}`, style: { position: "relative" }, children: [
9854
9854
  /* @__PURE__ */ $(
9855
9855
  "div",
@@ -9858,8 +9858,8 @@ const pp = ({
9858
9858
  {
9859
9859
  display: "flex",
9860
9860
  flexDirection: u ? "row" : "column",
9861
- rowGap: u ? null : N(c),
9862
- columnGap: u ? N(d) : null
9861
+ rowGap: u ? null : T(c),
9862
+ columnGap: u ? T(d) : null
9863
9863
  },
9864
9864
  p
9865
9865
  ),
@@ -9883,7 +9883,7 @@ const pp = ({
9883
9883
  {
9884
9884
  className: `u-react-input u-input ${k || M ? "u-input-required" : ""}`,
9885
9885
  id: r,
9886
- ref: E,
9886
+ ref: N,
9887
9887
  name: o,
9888
9888
  style: Object.assign(
9889
9889
  v && {
@@ -9947,37 +9947,37 @@ const fp = ({
9947
9947
  hintText: M = "Используйте колесо мыши или стрелки ↑↓ для изменения значения. Нажмите Enter для подтверждения.",
9948
9948
  className: x = "",
9949
9949
  validationText: y = "Заполните поле",
9950
- validationOn: A,
9951
- validationOnWithoutText: E,
9950
+ validationOn: F,
9951
+ validationOnWithoutText: N,
9952
9952
  absoluteValidationText: S
9953
9953
  }) => {
9954
- const N = fe(null), D = fe(null), W = fe(!1), j = fe(null), Q = fe(null), [q, ne] = ae(!1), [R, C] = ae(null), [T, X] = ae(0), [_, Y] = ae(0), [U, P] = ae(0), [H, z] = ae(!1), [B, J] = ae(() => String(e ?? t ?? "")), se = fe(e), [ue, F] = ae(!1);
9954
+ const T = fe(null), D = fe(null), A = fe(!1), B = fe(null), Q = fe(null), [q, ne] = ae(!1), [R, C] = ae(null), [E, X] = ae(0), [_, Y] = ae(0), [U, P] = ae(0), [H, z] = ae(!1), [j, J] = ae(() => String(e ?? t ?? "")), se = fe(e), [ue, W] = ae(!1);
9955
9955
  de(() => {
9956
9956
  H || e !== se.current && (J(String(e ?? "")), se.current = e);
9957
9957
  }, [e, H]);
9958
9958
  const re = dt(() => {
9959
- if (H) return B;
9959
+ if (H) return j;
9960
9960
  const O = String(e ?? "").trim();
9961
- return O || B;
9962
- }, [B, e, H]), G = dt(() => /^\d{2}:\d{2}$/.test(re || ""), [re]), we = fe(String(e ?? t ?? "")), Me = fe(
9961
+ return O || j;
9962
+ }, [j, e, H]), G = dt(() => /^\d{2}:\d{2}$/.test(re || ""), [re]), we = fe(String(e ?? t ?? "")), Me = fe(
9963
9963
  /^\d{2}:\d{2}$/.test(String(e ?? t ?? "")) ? String(e ?? t ?? "") : ""
9964
9964
  ), qe = dt(() => G ? (re || "").split(":")[0] : null, [re, G]), ee = dt(() => G ? (re || "").split(":")[1] : null, [re, G]), be = dt(() => Array.from({ length: 24 }, (O, he) => String(he).padStart(2, "0")), []), xe = dt(() => Array.from({ length: 60 }, (O, he) => String(he).padStart(2, "0")), []);
9965
9965
  de(() => {
9966
9966
  const O = () => {
9967
- F(window.innerWidth <= 900);
9967
+ W(window.innerWidth <= 900);
9968
9968
  };
9969
9969
  return O(), window.addEventListener("resize", O), () => window.removeEventListener("resize", O);
9970
9970
  }, []), de(() => {
9971
9971
  const O = (he) => {
9972
- if (!N.current) return;
9972
+ if (!T.current) return;
9973
9973
  const ke = he.target;
9974
- ke && !N.current.contains(ke) && ne(!1);
9974
+ ke && !T.current.contains(ke) && ne(!1);
9975
9975
  };
9976
9976
  return document.addEventListener("pointerdown", O), () => document.removeEventListener("pointerdown", O);
9977
9977
  }, []), de(() => {
9978
9978
  if (q) {
9979
- if (qe && j.current) {
9980
- const O = j.current.querySelector(
9979
+ if (qe && B.current) {
9980
+ const O = B.current.querySelector(
9981
9981
  `.u-react-input-time-option[data-time-value="${qe}"]`
9982
9982
  );
9983
9983
  O == null || O.scrollIntoView({ block: "nearest" });
@@ -10041,18 +10041,18 @@ const fp = ({
10041
10041
  }, [R, re, Ne, K]), We = (O) => {
10042
10042
  if (l) return;
10043
10043
  const ke = O.currentTarget.getBoundingClientRect().right - 44;
10044
- W.current = O.clientX >= ke, Ye();
10044
+ A.current = O.clientX >= ke, Ye();
10045
10045
  }, $t = (O) => {
10046
10046
  if (!w) return;
10047
10047
  if (O.preventDefault(), O.detail >= 2) {
10048
- W.current = !1, C(null), X(0), Y((ke) => ke + 1);
10048
+ A.current = !1, C(null), X(0), Y((ke) => ke + 1);
10049
10049
  return;
10050
10050
  }
10051
- const he = W.current || (O.currentTarget.selectionStart ?? 0) <= 2 ? "hour" : "minute";
10052
- W.current = !1, C(he), X(0), P((ke) => ke + 1);
10051
+ const he = A.current || (O.currentTarget.selectionStart ?? 0) <= 2 ? "hour" : "minute";
10052
+ A.current = !1, C(he), X(0), P((ke) => ke + 1);
10053
10053
  }, Ht = () => {
10054
10054
  var he;
10055
- const O = ((he = D.current) == null ? void 0 : he.value) ?? B ?? "";
10055
+ const O = ((he = D.current) == null ? void 0 : he.value) ?? j ?? "";
10056
10056
  we.current = O, /^\d{2}:\d{2}$/.test(O) && (Me.current = O), z(!0), w && (C("hour"), X(0), K("hour"));
10057
10057
  }, un = () => {
10058
10058
  z(!1);
@@ -10090,7 +10090,7 @@ const fp = ({
10090
10090
  return;
10091
10091
  }
10092
10092
  O.preventDefault(), Ye();
10093
- const Ze = /^\d{2}:\d{2}$/.test(he || ""), mt = Ze ? he : "00:00", [ct, Bt] = mt.split(":"), pn = O.currentTarget.selectionStart ?? 0, jt = Ze ? R ?? (pn <= 2 ? "hour" : "minute") : "hour", bt = Ze ? Math.min(T + 1, 2) : 1, Xt = bt - 1;
10093
+ const Ze = /^\d{2}:\d{2}$/.test(he || ""), mt = Ze ? he : "00:00", [ct, Bt] = mt.split(":"), pn = O.currentTarget.selectionStart ?? 0, jt = Ze ? R ?? (pn <= 2 ? "hour" : "minute") : "hour", bt = Ze ? Math.min(E + 1, 2) : 1, Xt = bt - 1;
10094
10094
  if (jt === "hour") {
10095
10095
  const wt = ct.split("");
10096
10096
  wt[Xt] = O.key;
@@ -10127,7 +10127,7 @@ const fp = ({
10127
10127
  if (!w) return;
10128
10128
  const O = (he) => {
10129
10129
  if (!D.current || !H) return;
10130
- const it = he.target, Ze = j.current, mt = Q.current;
10130
+ const it = he.target, Ze = B.current, mt = Q.current;
10131
10131
  it && (Ze && Ze.contains(it) || mt && mt.contains(it)) || he.cancelable && he.preventDefault();
10132
10132
  };
10133
10133
  return window.addEventListener("wheel", O, { passive: !1, capture: !0 }), () => {
@@ -10137,7 +10137,7 @@ const fp = ({
10137
10137
  if (!q) return;
10138
10138
  const O = (mt) => (ct) => {
10139
10139
  ct.cancelable && ct.preventDefault(), ct.stopPropagation(), mt.scrollTop += ct.deltaY;
10140
- }, he = j.current, ke = Q.current, it = he ? O(he) : null, Ze = ke ? O(ke) : null;
10140
+ }, he = B.current, ke = Q.current, it = he ? O(he) : null, Ze = ke ? O(ke) : null;
10141
10141
  return he && it && he.addEventListener("wheel", it, { passive: !1 }), ke && Ze && ke.addEventListener("wheel", Ze, { passive: !1 }), () => {
10142
10142
  he && it && he.removeEventListener("wheel", it), ke && Ze && ke.removeEventListener("wheel", Ze);
10143
10143
  };
@@ -10146,12 +10146,12 @@ const fp = ({
10146
10146
  "div",
10147
10147
  {
10148
10148
  className: `u-react-input-time-field ${q ? "u-react-input-time-field--open" : ""}`,
10149
- ref: N,
10149
+ ref: T,
10150
10150
  children: [
10151
10151
  /* @__PURE__ */ f(
10152
10152
  "input",
10153
10153
  {
10154
- className: `u-react-input u-input ${A || E ? "u-input-required" : ""}`,
10154
+ className: `u-react-input u-input ${F || N ? "u-input-required" : ""}`,
10155
10155
  id: r,
10156
10156
  name: o,
10157
10157
  type: "text",
@@ -10186,7 +10186,7 @@ const fp = ({
10186
10186
  }
10187
10187
  ),
10188
10188
  q && !l && /* @__PURE__ */ $("div", { className: "u-react-input-time-dropdown", children: [
10189
- /* @__PURE__ */ f("div", { className: "u-react-input-time-column", ref: j, children: be.map((O) => /* @__PURE__ */ f(
10189
+ /* @__PURE__ */ f("div", { className: "u-react-input-time-column", ref: B, children: be.map((O) => /* @__PURE__ */ f(
10190
10190
  "button",
10191
10191
  {
10192
10192
  type: "button",
@@ -10261,7 +10261,7 @@ const fp = ({
10261
10261
  ]
10262
10262
  }
10263
10263
  ),
10264
- A && /* @__PURE__ */ f(
10264
+ F && /* @__PURE__ */ f(
10265
10265
  "h5",
10266
10266
  {
10267
10267
  className: "clr-red-main",
@@ -10316,16 +10316,16 @@ const hp = ({
10316
10316
  if (x == null) return;
10317
10317
  if (typeof x == "number")
10318
10318
  return `calc(${x} * var(--u-unit, 1px))`;
10319
- const y = String(x).trim(), A = y.match(/^(-?\d+(?:\.\d+)?)px$/i);
10320
- return A ? `calc(${A[1]} * var(--u-unit, 1px))` : y;
10321
- }, k = (x) => x && x.replace(/(-?\d+(?:\.\d+)?)px\b/gi, (y, A) => `calc(${A} * var(--u-unit, 1px))`);
10319
+ const y = String(x).trim(), F = y.match(/^(-?\d+(?:\.\d+)?)px$/i);
10320
+ return F ? `calc(${F[1]} * var(--u-unit, 1px))` : y;
10321
+ }, k = (x) => x && x.replace(/(-?\d+(?:\.\d+)?)px\b/gi, (y, F) => `calc(${F} * var(--u-unit, 1px))`);
10322
10322
  de(() => {
10323
10323
  if (t || typeof a != "function") return;
10324
10324
  const x = (y) => {
10325
- var E;
10325
+ var N;
10326
10326
  if (!window.matchMedia(`(max-width: ${p}px)`).matches) return;
10327
- const A = y.target;
10328
- A && ((E = g.current) != null && E.contains(A) || a(!0));
10327
+ const F = y.target;
10328
+ F && ((N = g.current) != null && N.contains(F) || a(!0));
10329
10329
  };
10330
10330
  return document.addEventListener("pointerdown", x), () => document.removeEventListener("pointerdown", x);
10331
10331
  }, [a, t, p]);
@@ -10597,61 +10597,61 @@ const Mi = (n, a) => {
10597
10597
  inputValue: v = "",
10598
10598
  onInputValueChange: w
10599
10599
  }) => {
10600
- const [k, M] = ae(!1), [x, y] = ae(null), [A, E] = ae(""), [S, N] = ae(null), [D, W] = ae(null), [j, Q] = ae(null), q = fe(), ne = Mi(A, 300), R = dt(() => t.filter((F) => (F.label ?? "").toLowerCase().includes((ne || "").toLowerCase())), [ne, t]), C = Ir(() => {
10601
- M(!1), N(null);
10602
- }), T = fe(null), X = fe(null), _ = fe(null), Y = fe(null);
10603
- Rr(_, T, () => {
10604
- M(!1), W(null);
10600
+ const [k, M] = ae(!1), [x, y] = ae(null), [F, N] = ae(""), [S, T] = ae(null), [D, A] = ae(null), [B, Q] = ae(null), q = fe(), ne = Mi(F, 300), R = dt(() => t.filter((W) => (W.label ?? "").toLowerCase().includes((ne || "").toLowerCase())), [ne, t]), C = Ir(() => {
10601
+ M(!1), T(null);
10602
+ }), E = fe(null), X = fe(null), _ = fe(null), Y = fe(null);
10603
+ Rr(_, E, () => {
10604
+ M(!1), A(null);
10605
10605
  });
10606
- const U = (F) => {
10607
- if (F) {
10608
- const { x: re, y: G, width: we, height: Me } = F.getBoundingClientRect();
10609
- N({ x: re, y: G + 60 + Me + window.scrollY }), Q(we), X.current = G + window.scrollY;
10606
+ const U = (W) => {
10607
+ if (W) {
10608
+ const { x: re, y: G, width: we, height: Me } = W.getBoundingClientRect();
10609
+ T({ x: re, y: G + 60 + Me + window.scrollY }), Q(we), X.current = G + window.scrollY;
10610
10610
  } else
10611
- N(null), X.current = null;
10612
- }, P = (F) => {
10613
- o.some((re) => re.value == F.value) ? i(o.filter((re) => re.value != F.value)) : i([...o, F]), m && (E(""), q.current.focus()), m && w && w("");
10614
- }, H = (F) => {
10615
- i(o.filter((re) => re.value != F.value));
10611
+ T(null), X.current = null;
10612
+ }, P = (W) => {
10613
+ o.some((re) => re.value == W.value) ? i(o.filter((re) => re.value != W.value)) : i([...o, W]), m && (N(""), q.current.focus()), m && w && w("");
10614
+ }, H = (W) => {
10615
+ i(o.filter((re) => re.value != W.value));
10616
10616
  };
10617
10617
  de(() => {
10618
- const F = T.current;
10619
- if (!F) return;
10618
+ const W = E.current;
10619
+ if (!W) return;
10620
10620
  const re = new ResizeObserver(() => {
10621
- const { x: G, y: we, width: Me, height: qe } = F.getBoundingClientRect();
10622
- N({ x: G, y: we + 60 + qe + window.scrollY }), Q(Me);
10621
+ const { x: G, y: we, width: Me, height: qe } = W.getBoundingClientRect();
10622
+ T({ x: G, y: we + 60 + qe + window.scrollY }), Q(Me);
10623
10623
  });
10624
- return re.observe(F), () => {
10624
+ return re.observe(W), () => {
10625
10625
  re.disconnect();
10626
10626
  };
10627
- }, [T]), de(() => {
10627
+ }, [E]), de(() => {
10628
10628
  U(D);
10629
10629
  }, [D]), de(() => {
10630
- const F = setInterval(() => {
10630
+ const W = setInterval(() => {
10631
10631
  if (D) {
10632
10632
  const re = D.getBoundingClientRect();
10633
10633
  re && re.y !== X.current && U(D);
10634
10634
  }
10635
10635
  }, 1);
10636
10636
  return () => {
10637
- clearInterval(F);
10637
+ clearInterval(W);
10638
10638
  };
10639
10639
  }, [D]);
10640
- const z = typeof v == "string" && typeof w == "function", B = z ? v : A, J = (F) => {
10641
- z ? w && w(F.target.value) : E(F.target.value), g && g(F.target.value);
10640
+ const z = typeof v == "string" && typeof w == "function", j = z ? v : F, J = (W) => {
10641
+ z ? w && w(W.target.value) : N(W.target.value), g && g(W.target.value);
10642
10642
  }, { activeIndex: se, handleKeyDown: ue } = Yr({
10643
10643
  isOpen: k,
10644
10644
  optionsLength: R.length,
10645
10645
  initialIndex: Math.max(
10646
10646
  0,
10647
- R.findIndex((F) => o.some((re) => (re == null ? void 0 : re.value) === (F == null ? void 0 : F.value)))
10647
+ R.findIndex((W) => o.some((re) => (re == null ? void 0 : re.value) === (W == null ? void 0 : W.value)))
10648
10648
  ),
10649
10649
  onOpen: () => M(!0),
10650
10650
  onClose: () => {
10651
- M(!1), W(null);
10651
+ M(!1), A(null);
10652
10652
  },
10653
- onSelectByIndex: (F) => {
10654
- const re = R[F];
10653
+ onSelectByIndex: (W) => {
10654
+ const re = R[W];
10655
10655
  re && P(re);
10656
10656
  }
10657
10657
  });
@@ -10678,7 +10678,7 @@ const Mi = (n, a) => {
10678
10678
  "div",
10679
10679
  {
10680
10680
  className: "u-multiselectbox u-react-multiselect",
10681
- ref: p ? T : C,
10681
+ ref: p ? E : C,
10682
10682
  children: [
10683
10683
  /* @__PURE__ */ $(
10684
10684
  "div",
@@ -10686,8 +10686,8 @@ const Mi = (n, a) => {
10686
10686
  className: k ? "u-multiselectbox-select u-multiselectbox-select-open" : "u-multiselectbox-select",
10687
10687
  tabIndex: m ? -1 : 0,
10688
10688
  onKeyDown: m ? void 0 : ue,
10689
- onClick: (F) => {
10690
- k ? W(null) : (m && q.current.focus(), p && W(F.currentTarget)), M(!k);
10689
+ onClick: (W) => {
10690
+ k ? A(null) : (m && q.current.focus(), p && A(W.currentTarget)), M(!k);
10691
10691
  },
10692
10692
  style: Object.assign(
10693
10693
  l ? {
@@ -10699,7 +10699,7 @@ const Mi = (n, a) => {
10699
10699
  c && { border: "1px solid #EF302B" }
10700
10700
  ),
10701
10701
  children: [
10702
- (o == null ? void 0 : o.length) <= 0 && A.length === 0 && (v == null ? void 0 : v.length) === 0 ? /* @__PURE__ */ f(
10702
+ (o == null ? void 0 : o.length) <= 0 && F.length === 0 && (v == null ? void 0 : v.length) === 0 ? /* @__PURE__ */ f(
10703
10703
  "span",
10704
10704
  {
10705
10705
  style: Object.assign(
@@ -10710,7 +10710,7 @@ const Mi = (n, a) => {
10710
10710
  children: r
10711
10711
  }
10712
10712
  ) : /* @__PURE__ */ f(Ge, {}),
10713
- o == null ? void 0 : o.map((F, re) => /* @__PURE__ */ f("div", { className: "u-multiselectbox-select-item-wrapper", children: /* @__PURE__ */ $(
10713
+ o == null ? void 0 : o.map((W, re) => /* @__PURE__ */ f("div", { className: "u-multiselectbox-select-item-wrapper", children: /* @__PURE__ */ $(
10714
10714
  "div",
10715
10715
  {
10716
10716
  className: "u-multiselectbox-select-item-container",
@@ -10722,13 +10722,13 @@ const Mi = (n, a) => {
10722
10722
  padding: "8px 12px"
10723
10723
  },
10724
10724
  children: [
10725
- /* @__PURE__ */ f("span", { className: "u-multiselectbox-select-item", style: l ? {} : { lineHeight: "20px" }, children: F.label }),
10725
+ /* @__PURE__ */ f("span", { className: "u-multiselectbox-select-item", style: l ? {} : { lineHeight: "20px" }, children: W.label }),
10726
10726
  /* @__PURE__ */ f(
10727
10727
  "div",
10728
10728
  {
10729
10729
  className: "u-multiselectbox-select-cross",
10730
10730
  onClick: (G) => {
10731
- G.stopPropagation(), H(F);
10731
+ G.stopPropagation(), H(W);
10732
10732
  },
10733
10733
  style: l ? {
10734
10734
  marginLeft: "4px"
@@ -10743,10 +10743,10 @@ const Mi = (n, a) => {
10743
10743
  {
10744
10744
  ref: q,
10745
10745
  className: "u-multiselectbox-search",
10746
- value: B,
10746
+ value: j,
10747
10747
  onChange: J,
10748
- onClick: (F) => {
10749
- k && F.stopPropagation();
10748
+ onClick: (W) => {
10749
+ k && W.stopPropagation();
10750
10750
  },
10751
10751
  onKeyDown: ue
10752
10752
  }
@@ -10775,7 +10775,7 @@ const Mi = (n, a) => {
10775
10775
  className: "u-multiselectbox-options",
10776
10776
  ref: _,
10777
10777
  style: {
10778
- width: j,
10778
+ width: B,
10779
10779
  left: S == null ? void 0 : S.x,
10780
10780
  top: (S == null ? void 0 : S.y) - 60,
10781
10781
  opacity: 1,
@@ -10784,8 +10784,8 @@ const Mi = (n, a) => {
10784
10784
  zIndex: 1e3,
10785
10785
  display: "block"
10786
10786
  },
10787
- children: R.map((F, re) => {
10788
- const G = o.some((we) => we.value == F.value);
10787
+ children: R.map((W, re) => {
10788
+ const G = o.some((we) => we.value == W.value);
10789
10789
  return /* @__PURE__ */ f(
10790
10790
  "div",
10791
10791
  {
@@ -10819,12 +10819,12 @@ const Mi = (n, a) => {
10819
10819
  type: "checkbox",
10820
10820
  checked: G,
10821
10821
  onChange: (we) => {
10822
- we.stopPropagation(), P(F);
10822
+ we.stopPropagation(), P(W);
10823
10823
  }
10824
10824
  }
10825
10825
  ),
10826
10826
  /* @__PURE__ */ f("div", { style: l ? { marginRight: "8px" } : null }),
10827
- F.label
10827
+ W.label
10828
10828
  ]
10829
10829
  }
10830
10830
  )
@@ -10840,8 +10840,8 @@ const Mi = (n, a) => {
10840
10840
  {
10841
10841
  ref: Y,
10842
10842
  className: "u-multiselectbox-options",
10843
- children: R.map((F, re) => {
10844
- const G = o.some((we) => we.value == F.value);
10843
+ children: R.map((W, re) => {
10844
+ const G = o.some((we) => we.value == W.value);
10845
10845
  return /* @__PURE__ */ f(
10846
10846
  "div",
10847
10847
  {
@@ -10875,12 +10875,12 @@ const Mi = (n, a) => {
10875
10875
  type: "checkbox",
10876
10876
  checked: G,
10877
10877
  onChange: (we) => {
10878
- we.stopPropagation(), P(F);
10878
+ we.stopPropagation(), P(W);
10879
10879
  }
10880
10880
  }
10881
10881
  ),
10882
10882
  /* @__PURE__ */ f("div", { style: l ? { marginRight: "8px" } : null }),
10883
- F.label
10883
+ W.label
10884
10884
  ]
10885
10885
  }
10886
10886
  )
@@ -11184,17 +11184,17 @@ const xp = ({
11184
11184
  portalOn: M,
11185
11185
  onInputChange: x,
11186
11186
  loading: y,
11187
- inputValue: A,
11188
- onInputValueChange: E,
11187
+ inputValue: F,
11188
+ onInputValueChange: N,
11189
11189
  emptyOptionsText: S = "Ничего не найдено"
11190
11190
  }) => {
11191
- const [N, D] = ae(!1), [W, j] = ae(null), [Q, q] = ae(""), [ne, R] = ae(null), [C, T] = ae(null), [X, _] = ae(null), Y = Ir(() => {
11191
+ const [T, D] = ae(!1), [A, B] = ae(null), [Q, q] = ae(""), [ne, R] = ae(null), [C, E] = ae(null), [X, _] = ae(null), Y = Ir(() => {
11192
11192
  D(!1), R(null);
11193
- }), U = fe(null), P = fe(null), H = fe(null), z = fe(null), B = fe(N);
11193
+ }), U = fe(null), P = fe(null), H = fe(null), z = fe(null), j = fe(T);
11194
11194
  Rr(H, U, () => {
11195
- D(!1), T(null);
11195
+ D(!1), E(null);
11196
11196
  });
11197
- const J = typeof A == "string" && typeof E == "function", se = Q && !J ? t.filter((K) => K.label.toLowerCase().includes((J ? A : Q).toLowerCase())) : t, ue = (K) => typeof K == "number" ? `${K}px` : String(K), F = (K) => {
11197
+ const J = typeof F == "string" && typeof N == "function", se = Q && !J ? t.filter((K) => K.label.toLowerCase().includes((J ? F : Q).toLowerCase())) : t, ue = (K) => typeof K == "number" ? `${K}px` : String(K), W = (K) => {
11198
11198
  if (K) {
11199
11199
  const { x: pe, y: Ke, width: We } = K.getBoundingClientRect();
11200
11200
  R({ x: pe, y: Ke + 90 + window.scrollY }), _(We), P.current = Ke + window.scrollY;
@@ -11202,12 +11202,12 @@ const xp = ({
11202
11202
  R(null), P.current = null;
11203
11203
  };
11204
11204
  de(() => {
11205
- F(C);
11205
+ W(C);
11206
11206
  }, [C]), de(() => {
11207
11207
  const K = setInterval(() => {
11208
11208
  if (C) {
11209
11209
  const pe = C.getBoundingClientRect();
11210
- pe && pe.y !== P.current && F(C);
11210
+ pe && pe.y !== P.current && W(C);
11211
11211
  }
11212
11212
  }, 1);
11213
11213
  return () => {
@@ -11228,23 +11228,23 @@ const xp = ({
11228
11228
  };
11229
11229
  }
11230
11230
  }, [Q]), de(() => {
11231
- c != null && c.label && Object.keys(c).length && !N && q(c.label);
11232
- }, [N, c]);
11233
- const re = J ? A : Q, G = (K) => {
11234
- k || (J ? E && E(K.target.value) : q(K.target.value), x && x(K.target.value));
11231
+ c != null && c.label && Object.keys(c).length && !T && q(c.label);
11232
+ }, [T, c]);
11233
+ const re = J ? F : Q, G = (K) => {
11234
+ k || (J ? N && N(K.target.value) : q(K.target.value), x && x(K.target.value));
11235
11235
  }, we = !!(c && typeof c == "object" && c.value !== void 0 && String(c.value).length > 0);
11236
11236
  de(() => {
11237
- const K = B.current;
11238
- B.current = N, K && !N && J && we && A.length > 0 && (E == null || E(""));
11239
- }, [N, J, we, A, E]);
11237
+ const K = j.current;
11238
+ j.current = T, K && !T && J && we && F.length > 0 && (N == null || N(""));
11239
+ }, [T, J, we, F, N]);
11240
11240
  const Me = () => {
11241
- k || (p == null || p(null), J ? E == null || E("") : q(""), x && x(""), D(!1), T(null));
11241
+ k || (p == null || p(null), J ? N == null || N("") : q(""), x && x(""), D(!1), E(null));
11242
11242
  }, qe = (K) => {
11243
11243
  K.preventDefault(), K.stopPropagation(), Me();
11244
11244
  }, ee = (K) => {
11245
- p == null || p(K), D(!1), T(null), J ? E == null || E("") : q(K.label ?? "");
11245
+ p == null || p(K), D(!1), E(null), J ? N == null || N("") : q(K.label ?? "");
11246
11246
  }, { activeIndex: be, handleKeyDown: xe } = Yr({
11247
- isOpen: N,
11247
+ isOpen: T,
11248
11248
  disabled: k,
11249
11249
  optionsLength: se.length,
11250
11250
  initialIndex: Math.max(
@@ -11253,7 +11253,7 @@ const xp = ({
11253
11253
  ),
11254
11254
  onOpen: () => D(!0),
11255
11255
  onClose: () => {
11256
- D(!1), T(null);
11256
+ D(!1), E(null);
11257
11257
  },
11258
11258
  onSelectByIndex: (K) => {
11259
11259
  const pe = se[K];
@@ -11261,7 +11261,7 @@ const xp = ({
11261
11261
  }
11262
11262
  });
11263
11263
  Lr({
11264
- isOpen: N,
11264
+ isOpen: T,
11265
11265
  activeIndex: be,
11266
11266
  portalOn: M,
11267
11267
  portalRef: H,
@@ -11270,9 +11270,9 @@ const xp = ({
11270
11270
  const Ne = d && we ? 28 : void 0, Ye = d ? { display: "block" } : null, V = /* @__PURE__ */ f("div", { style: { padding: "14px 16px", fontSize: "14px" }, children: S }), oe = /* @__PURE__ */ f(
11271
11271
  "input",
11272
11272
  {
11273
- className: N ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
11273
+ className: T ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
11274
11274
  onClick: (K) => {
11275
- re.length > 0 && (J ? E && E("") : q("")), T(!N && M ? K.currentTarget : null), k || (N && K.currentTarget.blur(), D(!N));
11275
+ re.length > 0 && (J ? N && N("") : q("")), E(!T && M ? K.currentTarget : null), k || (T && K.currentTarget.blur(), D(!T));
11276
11276
  },
11277
11277
  style: Object.assign(
11278
11278
  g ? {
@@ -11358,7 +11358,7 @@ const xp = ({
11358
11358
  }
11359
11359
  ) : null
11360
11360
  ] }) : oe,
11361
- N && (y ? /* @__PURE__ */ f(
11361
+ T && (y ? /* @__PURE__ */ f(
11362
11362
  "div",
11363
11363
  {
11364
11364
  className: "u-selectbox-options",
@@ -11390,11 +11390,11 @@ const xp = ({
11390
11390
  lineHeight: "12px",
11391
11391
  padding: "8px 5px"
11392
11392
  } : {},
11393
- (c == null ? void 0 : c.value) == (K == null ? void 0 : K.value) ? { backgroundColor: ot.selectedBackground } : W === pe || be === pe ? { backgroundColor: ot.hoveredBackground } : {},
11393
+ (c == null ? void 0 : c.value) == (K == null ? void 0 : K.value) ? { backgroundColor: ot.selectedBackground } : A === pe || be === pe ? { backgroundColor: ot.hoveredBackground } : {},
11394
11394
  {}
11395
11395
  ),
11396
- onMouseEnter: () => j(pe),
11397
- onMouseLeave: () => j(null),
11396
+ onMouseEnter: () => B(pe),
11397
+ onMouseLeave: () => B(null),
11398
11398
  children: K.label
11399
11399
  },
11400
11400
  pe
@@ -11423,11 +11423,11 @@ const xp = ({
11423
11423
  lineHeight: "12px",
11424
11424
  padding: "8px 5px"
11425
11425
  } : {},
11426
- (c == null ? void 0 : c.value) == (K == null ? void 0 : K.value) ? { backgroundColor: ot.selectedBackground } : W === pe || be === pe ? { backgroundColor: ot.hoveredBackground } : {},
11426
+ (c == null ? void 0 : c.value) == (K == null ? void 0 : K.value) ? { backgroundColor: ot.selectedBackground } : A === pe || be === pe ? { backgroundColor: ot.hoveredBackground } : {},
11427
11427
  {}
11428
11428
  ),
11429
- onMouseEnter: () => j(pe),
11430
- onMouseLeave: () => j(null),
11429
+ onMouseEnter: () => B(pe),
11430
+ onMouseLeave: () => B(null),
11431
11431
  children: K.label
11432
11432
  },
11433
11433
  pe
@@ -11483,51 +11483,51 @@ const Dp = ({
11483
11483
  portalOn: M,
11484
11484
  noScroll: x
11485
11485
  }) => {
11486
- const [y, A] = ae(!1), [E, S] = ae(null), [N, D] = ae(null), [W, j] = ae(null), [Q, q] = ae(null), ne = Ir(() => {
11487
- A(!1), D(null);
11488
- }), R = fe(null), C = fe(null), T = fe(null), X = fe(null);
11489
- Rr(T, R, () => {
11490
- A(!1), j(null);
11486
+ const [y, F] = ae(!1), [N, S] = ae(null), [T, D] = ae(null), [A, B] = ae(null), [Q, q] = ae(null), ne = Ir(() => {
11487
+ F(!1), D(null);
11488
+ }), R = fe(null), C = fe(null), E = fe(null), X = fe(null);
11489
+ Rr(E, R, () => {
11490
+ F(!1), B(null);
11491
11491
  });
11492
11492
  const _ = (z) => typeof z == "number" ? `${z}px` : String(z), Y = (z) => {
11493
11493
  if (z) {
11494
- const { x: B, y: J, width: se } = z.getBoundingClientRect();
11495
- D({ x: B, y: J + 90 + window.scrollY }), q(se), C.current = J + window.scrollY;
11494
+ const { x: j, y: J, width: se } = z.getBoundingClientRect();
11495
+ D({ x: j, y: J + 90 + window.scrollY }), q(se), C.current = J + window.scrollY;
11496
11496
  } else
11497
11497
  D(null), C.current = null;
11498
11498
  };
11499
11499
  de(() => {
11500
- Y(W);
11501
- }, [W]), de(() => {
11500
+ Y(A);
11501
+ }, [A]), de(() => {
11502
11502
  const z = setInterval(() => {
11503
- if (W) {
11504
- const B = W.getBoundingClientRect();
11505
- B && B.y !== C.current && Y(W);
11503
+ if (A) {
11504
+ const j = A.getBoundingClientRect();
11505
+ j && j.y !== C.current && Y(A);
11506
11506
  }
11507
11507
  }, 1);
11508
11508
  return () => {
11509
11509
  clearInterval(z);
11510
11510
  };
11511
- }, [W]);
11511
+ }, [A]);
11512
11512
  const U = t.findIndex((z) => (z == null ? void 0 : z.value) === (c == null ? void 0 : c.value)), { activeIndex: P, handleKeyDown: H } = Yr({
11513
11513
  isOpen: y,
11514
11514
  disabled: k,
11515
11515
  optionsLength: t.length,
11516
11516
  initialIndex: U >= 0 ? U : 0,
11517
- onOpen: () => A(!0),
11517
+ onOpen: () => F(!0),
11518
11518
  onClose: () => {
11519
- A(!1), j(null);
11519
+ F(!1), B(null);
11520
11520
  },
11521
11521
  onSelectByIndex: (z) => {
11522
- const B = t[z];
11523
- B && (p(B), A(!1), j(null));
11522
+ const j = t[z];
11523
+ j && (p(j), F(!1), B(null));
11524
11524
  }
11525
11525
  });
11526
11526
  return Lr({
11527
11527
  isOpen: y,
11528
11528
  activeIndex: P,
11529
11529
  portalOn: M,
11530
- portalRef: T,
11530
+ portalRef: E,
11531
11531
  localRef: X
11532
11532
  }), /* @__PURE__ */ $("div", { className: `u-react-select-container ${m}`, style: { position: "relative" }, children: [
11533
11533
  /* @__PURE__ */ $(
@@ -11576,7 +11576,7 @@ const Dp = ({
11576
11576
  tabIndex: k ? -1 : 0,
11577
11577
  onKeyDown: H,
11578
11578
  onClick: (z) => {
11579
- j(!y && M ? z.currentTarget : null), k || A(!y);
11579
+ B(!y && M ? z.currentTarget : null), k || F(!y);
11580
11580
  },
11581
11581
  style: Object.assign(
11582
11582
  g ? {
@@ -11601,7 +11601,7 @@ const Dp = ({
11601
11601
  k && { pointerEvents: "none" }
11602
11602
  ),
11603
11603
  onClick: (z) => {
11604
- z.stopPropagation(), p({}), A(!1);
11604
+ z.stopPropagation(), p({}), F(!1);
11605
11605
  }
11606
11606
  }
11607
11607
  ) : /* @__PURE__ */ f(Ge, {}),
@@ -11625,25 +11625,25 @@ const Dp = ({
11625
11625
  ]
11626
11626
  }
11627
11627
  ),
11628
- M ? N && Fn(
11628
+ M ? T && Fn(
11629
11629
  /* @__PURE__ */ f(
11630
11630
  "div",
11631
11631
  {
11632
- ref: T,
11632
+ ref: E,
11633
11633
  className: "u-selectbox-options",
11634
11634
  style: Object.assign(
11635
- { width: Q, left: N == null ? void 0 : N.x, top: (N == null ? void 0 : N.y) - 60, opacity: 1, height: "fit-content", zIndex: 1e3, display: "block" },
11635
+ { width: Q, left: T == null ? void 0 : T.x, top: (T == null ? void 0 : T.y) - 60, opacity: 1, height: "fit-content", zIndex: 1e3, display: "block" },
11636
11636
  x ? {
11637
11637
  maxHeight: "none"
11638
11638
  } : {}
11639
11639
  ),
11640
- children: t.map((z, B) => /* @__PURE__ */ f(
11640
+ children: t.map((z, j) => /* @__PURE__ */ f(
11641
11641
  "div",
11642
11642
  {
11643
11643
  className: "u-selectbox-option",
11644
- "data-option-index": B,
11644
+ "data-option-index": j,
11645
11645
  onClick: (J) => {
11646
- J.stopPropagation(), p(z), A(!1), j(null);
11646
+ J.stopPropagation(), p(z), F(!1), B(null);
11647
11647
  },
11648
11648
  style: Object.assign(
11649
11649
  {
@@ -11655,14 +11655,14 @@ const Dp = ({
11655
11655
  lineHeight: "12px",
11656
11656
  padding: "8px 5px"
11657
11657
  } : null,
11658
- (c == null ? void 0 : c.value) == (z == null ? void 0 : z.value) ? { backgroundColor: ot.selectedBackground } : E === B || P === B ? { backgroundColor: ot.hoveredBackground } : null,
11658
+ (c == null ? void 0 : c.value) == (z == null ? void 0 : z.value) ? { backgroundColor: ot.selectedBackground } : N === j || P === j ? { backgroundColor: ot.hoveredBackground } : null,
11659
11659
  o
11660
11660
  ),
11661
- onMouseEnter: () => S(B),
11661
+ onMouseEnter: () => S(j),
11662
11662
  onMouseLeave: () => S(null),
11663
11663
  children: z.label
11664
11664
  },
11665
- B
11665
+ j
11666
11666
  ))
11667
11667
  }
11668
11668
  ),
@@ -11675,13 +11675,13 @@ const Dp = ({
11675
11675
  style: x ? {
11676
11676
  maxHeight: "none"
11677
11677
  } : {},
11678
- children: t.map((z, B) => /* @__PURE__ */ f(
11678
+ children: t.map((z, j) => /* @__PURE__ */ f(
11679
11679
  "div",
11680
11680
  {
11681
11681
  className: "u-selectbox-option",
11682
- "data-option-index": B,
11682
+ "data-option-index": j,
11683
11683
  onClick: (J) => {
11684
- J.stopPropagation(), p(z), A(!1);
11684
+ J.stopPropagation(), p(z), F(!1);
11685
11685
  },
11686
11686
  style: Object.assign(
11687
11687
  {
@@ -11693,17 +11693,17 @@ const Dp = ({
11693
11693
  lineHeight: "12px",
11694
11694
  padding: "8px 5px"
11695
11695
  } : null,
11696
- (c == null ? void 0 : c.value) == (z == null ? void 0 : z.value) ? { backgroundColor: ot.selectedBackground } : E === B || P === B ? { backgroundColor: ot.hoveredBackground } : null,
11696
+ (c == null ? void 0 : c.value) == (z == null ? void 0 : z.value) ? { backgroundColor: ot.selectedBackground } : N === j || P === j ? { backgroundColor: ot.hoveredBackground } : null,
11697
11697
  x ? {
11698
11698
  maxHeight: "none"
11699
11699
  } : null,
11700
11700
  o
11701
11701
  ),
11702
- onMouseEnter: () => S(B),
11702
+ onMouseEnter: () => S(j),
11703
11703
  onMouseLeave: () => S(null),
11704
11704
  children: z.label
11705
11705
  },
11706
- B
11706
+ j
11707
11707
  ))
11708
11708
  }
11709
11709
  )
@@ -11803,10 +11803,10 @@ const tf = ({ children: n, className: a = "" }) => {
11803
11803
  })(i);
11804
11804
  let u = l === window ? 0 : Number.parseFloat(window.getComputedStyle(l).paddingBottom) || 0;
11805
11805
  const c = (b = !1) => {
11806
- var E;
11806
+ var N;
11807
11807
  b && l !== window && (u = Number.parseFloat(window.getComputedStyle(l).paddingBottom) || 0);
11808
- const v = i.getBoundingClientRect(), w = (E = i.parentElement) == null ? void 0 : E.getBoundingClientRect(), M = (l === window ? window.innerHeight : l.getBoundingClientRect().bottom) - u, x = Math.abs(v.bottom - M) <= 1, y = typeof (w == null ? void 0 : w.bottom) == "number" && w.bottom > M + 1, A = x && y;
11809
- o((S) => S === A ? S : A);
11808
+ const v = i.getBoundingClientRect(), w = (N = i.parentElement) == null ? void 0 : N.getBoundingClientRect(), M = (l === window ? window.innerHeight : l.getBoundingClientRect().bottom) - u, x = Math.abs(v.bottom - M) <= 1, y = typeof (w == null ? void 0 : w.bottom) == "number" && w.bottom > M + 1, F = x && y;
11809
+ o((S) => S === F ? S : F);
11810
11810
  }, d = (b = !1) => {
11811
11811
  e.current == null && (e.current = window.requestAnimationFrame(() => {
11812
11812
  e.current = null, c(b);
@@ -12052,14 +12052,14 @@ const rr = (n) => {
12052
12052
  setColumnWidths: M,
12053
12053
  tableRight: x,
12054
12054
  filterDates: y,
12055
- isParentDataField: A,
12056
- filterResetParam: E
12055
+ isParentDataField: F,
12056
+ filterResetParam: N
12057
12057
  }) => {
12058
12058
  var Ne, Ye;
12059
- const S = `${n}th${a}`, N = "auto", [D, W] = ae(), [j, Q] = ae(), [q, ne] = ae(), [R, C] = ae(), [T, X] = ae(0), [_, Y] = ae(""), [U, P] = ae(), [H, z] = ae(!1), [B, J] = ae(), se = fe(null), ue = Ir(() => {
12059
+ const S = `${n}th${a}`, T = "auto", [D, A] = ae(), [B, Q] = ae(), [q, ne] = ae(), [R, C] = ae(), [E, X] = ae(0), [_, Y] = ae(""), [U, P] = ae(), [H, z] = ae(!1), [j, J] = ae(), se = fe(null), ue = Ir(() => {
12060
12060
  var V;
12061
12061
  l === S && !(s.filterType === "date" && ((V = D == null ? void 0 : D.typeFilterSearch) == null ? void 0 : V.id) === "between" && q && !R) && u(void 0);
12062
- }), F = c && (s == null ? void 0 : s.field) in c && c[s.field] && c[s.field].length !== 0, re = Array.isArray(y) && y.some((V) => V.id === s.field && (V.begin != null || V.end != null)), G = F || re, we = (V) => {
12062
+ }), W = c && (s == null ? void 0 : s.field) in c && c[s.field] && c[s.field].length !== 0, re = Array.isArray(y) && y.some((V) => V.id === s.field && (V.begin != null || V.end != null)), G = W || re, we = (V) => {
12063
12063
  let oe = 0;
12064
12064
  for (let K = V; K > 0; K--)
12065
12065
  oe = i[K - 1].width ? oe + i[K - 1].width : oe;
@@ -12128,12 +12128,12 @@ const rr = (n) => {
12128
12128
  }, []), de(() => {
12129
12129
  _.length > 0 && s.field in c && c[s.field].length !== 0 && z(!0), _.length === 0 && z(!1);
12130
12130
  }, [_]), de(() => {
12131
- Y(""), W(void 0);
12132
- }, [E]), de(() => {
12131
+ Y(""), A(void 0);
12132
+ }, [N]), de(() => {
12133
12133
  l && se.current && J(se.current.getBoundingClientRect().left);
12134
12134
  }, [l]), de(() => {
12135
12135
  const V = (D == null ? void 0 : D.typeFilterSearch.id) ?? "exact";
12136
- q && !D && V === "exact" && W({ typeFilterSearch: Lo[2] }), l && p((oe) => {
12136
+ q && !D && V === "exact" && A({ typeFilterSearch: Lo[2] }), l && p((oe) => {
12137
12137
  const K = oe.findIndex((pe) => pe.id === s.field);
12138
12138
  if (K !== -1) {
12139
12139
  const pe = [...oe];
@@ -12156,7 +12156,7 @@ const rr = (n) => {
12156
12156
  });
12157
12157
  }, [q, R, D]), de(() => {
12158
12158
  var V, oe;
12159
- s.filterType === "string" && (!D && _.length > 0 && W({ typeFilterSearch: Ao[0] }), _ ? D ? Cp(
12159
+ s.filterType === "string" && (!D && _.length > 0 && A({ typeFilterSearch: Ao[0] }), _ ? D ? Cp(
12160
12160
  (V = D == null ? void 0 : D.typeFilterSearch) == null ? void 0 : V.id,
12161
12161
  _,
12162
12162
  Q,
@@ -12166,7 +12166,7 @@ const rr = (n) => {
12166
12166
  ra(s.filterOptions),
12167
12167
  m
12168
12168
  )
12169
- )), s.filterType === "number" && (!D && _.length > 0 && W({ typeFilterSearch: Fo[0] }), _ ? D ? Sp(
12169
+ )), s.filterType === "number" && (!D && _.length > 0 && A({ typeFilterSearch: Fo[0] }), _ ? D ? Sp(
12170
12170
  (oe = D == null ? void 0 : D.typeFilterSearch) == null ? void 0 : oe.id,
12171
12171
  _,
12172
12172
  Q,
@@ -12213,10 +12213,10 @@ const rr = (n) => {
12213
12213
  display: "flex",
12214
12214
  alignItems: "center",
12215
12215
  justifyContent: "space-between",
12216
- width: v && !s.resizeOff && (s != null && s.width) ? k[s.field] >= s.width ? A && a === 0 ? k[s.field] + 24 : k[s.field] : Yo(s.width) : v && !s.resizeOff || s != null && s.width ? A && a === 0 ? k[s.field] + 24 : k[s.field] : N,
12216
+ width: v && !s.resizeOff && (s != null && s.width) ? k[s.field] >= s.width ? F && a === 0 ? k[s.field] + 24 : k[s.field] : Yo(s.width) : v && !s.resizeOff || s != null && s.width ? F && a === 0 ? k[s.field] + 24 : k[s.field] : T,
12217
12217
  minWidth: v && !s.resizeOff && s.width ? Yo(s.width) : "",
12218
12218
  position: s.sticky ? "sticky" : "",
12219
- height: T - 2,
12219
+ height: E - 2,
12220
12220
  columnGap: 8
12221
12221
  },
12222
12222
  t,
@@ -12328,14 +12328,14 @@ const rr = (n) => {
12328
12328
  onMouseDown: (V) => w(V)
12329
12329
  }
12330
12330
  ),
12331
- l === S && B && s.filterType === "date" && /* @__PURE__ */ $(
12331
+ l === S && j && s.filterType === "date" && /* @__PURE__ */ $(
12332
12332
  "div",
12333
12333
  {
12334
12334
  className: "select-params__box",
12335
12335
  style: {
12336
- left: x - B < 278 ? "unset" : 0,
12337
- right: x - B < 278 ? k[s.field] - (x - B) : 0,
12338
- top: T + 2,
12336
+ left: x - j < 278 ? "unset" : 0,
12337
+ right: x - j < 278 ? k[s.field] - (x - j) : 0,
12338
+ top: E + 2,
12339
12339
  position: "absolute",
12340
12340
  minWidth: 278,
12341
12341
  backgroundColor: "#FFFFFF",
@@ -12361,7 +12361,7 @@ const rr = (n) => {
12361
12361
  keySelect: "typeFilterSearch",
12362
12362
  value: D == null ? void 0 : D.typeFilterSearch,
12363
12363
  options: Lo,
12364
- onChange: W,
12364
+ onChange: A,
12365
12365
  height: 38,
12366
12366
  width: "100%",
12367
12367
  className: "",
@@ -12437,14 +12437,14 @@ const rr = (n) => {
12437
12437
  ]
12438
12438
  }
12439
12439
  ),
12440
- l === S && B && s.filterType === "string" && /* @__PURE__ */ $(
12440
+ l === S && j && s.filterType === "string" && /* @__PURE__ */ $(
12441
12441
  "div",
12442
12442
  {
12443
12443
  className: "select-params__box",
12444
12444
  style: {
12445
- left: x - B < 278 ? "unset" : 0,
12446
- right: x - B < 278 ? k[s.field] - (x - B) : 0,
12447
- top: T + 2,
12445
+ left: x - j < 278 ? "unset" : 0,
12446
+ right: x - j < 278 ? k[s.field] - (x - j) : 0,
12447
+ top: E + 2,
12448
12448
  position: "absolute",
12449
12449
  minWidth: 278,
12450
12450
  minHeight: 266,
@@ -12472,7 +12472,7 @@ const rr = (n) => {
12472
12472
  keySelect: "typeFilterSearch",
12473
12473
  value: D == null ? void 0 : D.typeFilterSearch,
12474
12474
  options: Ao,
12475
- onChange: W,
12475
+ onChange: A,
12476
12476
  height: 38,
12477
12477
  width: "100%",
12478
12478
  className: "",
@@ -12518,7 +12518,7 @@ const rr = (n) => {
12518
12518
  }
12519
12519
  ) }),
12520
12520
  /* @__PURE__ */ $("ul", { style: { overflow: "auto", height: 170 }, children: [
12521
- j.length > 0 ? /* @__PURE__ */ $(
12521
+ B.length > 0 ? /* @__PURE__ */ $(
12522
12522
  "li",
12523
12523
  {
12524
12524
  className: "select-column__li",
@@ -12534,8 +12534,8 @@ const rr = (n) => {
12534
12534
  "input",
12535
12535
  {
12536
12536
  type: "checkbox",
12537
- onChange: () => xe(j, s.field),
12538
- checked: j.every(
12537
+ onChange: () => xe(B, s.field),
12538
+ checked: B.every(
12539
12539
  (V) => {
12540
12540
  var oe;
12541
12541
  return !((oe = c[s.field]) != null && oe.some((K) => K === V));
@@ -12572,7 +12572,7 @@ const rr = (n) => {
12572
12572
  children: "Не найдено"
12573
12573
  }
12574
12574
  ),
12575
- j && (j == null ? void 0 : j.map((V, oe) => /* @__PURE__ */ $(
12575
+ B && (B == null ? void 0 : B.map((V, oe) => /* @__PURE__ */ $(
12576
12576
  "li",
12577
12577
  {
12578
12578
  className: "select-column__li",
@@ -12605,14 +12605,14 @@ const rr = (n) => {
12605
12605
  ]
12606
12606
  }
12607
12607
  ),
12608
- l === S && B && s.filterType === "number" && /* @__PURE__ */ $(
12608
+ l === S && j && s.filterType === "number" && /* @__PURE__ */ $(
12609
12609
  "div",
12610
12610
  {
12611
12611
  className: "select-params__box",
12612
12612
  style: {
12613
- left: x - B < 278 ? "unset" : 0,
12614
- right: x - B < 278 ? k[s.field] - (x - B) : 0,
12615
- top: T + 2,
12613
+ left: x - j < 278 ? "unset" : 0,
12614
+ right: x - j < 278 ? k[s.field] - (x - j) : 0,
12615
+ top: E + 2,
12616
12616
  position: "absolute",
12617
12617
  minWidth: 278,
12618
12618
  minHeight: 266,
@@ -12640,7 +12640,7 @@ const rr = (n) => {
12640
12640
  keySelect: "typeFilterSearch",
12641
12641
  value: D == null ? void 0 : D.typeFilterSearch,
12642
12642
  options: Fo,
12643
- onChange: W,
12643
+ onChange: A,
12644
12644
  height: 38,
12645
12645
  width: "100%",
12646
12646
  className: "",
@@ -12686,7 +12686,7 @@ const rr = (n) => {
12686
12686
  }
12687
12687
  ) }),
12688
12688
  /* @__PURE__ */ $("ul", { style: { overflow: "auto", height: 170 }, children: [
12689
- j.length > 0 ? /* @__PURE__ */ $(
12689
+ B.length > 0 ? /* @__PURE__ */ $(
12690
12690
  "li",
12691
12691
  {
12692
12692
  className: "select-column__li",
@@ -12702,8 +12702,8 @@ const rr = (n) => {
12702
12702
  "input",
12703
12703
  {
12704
12704
  type: "checkbox",
12705
- onChange: () => xe(j, s.field),
12706
- checked: j.every(
12705
+ onChange: () => xe(B, s.field),
12706
+ checked: B.every(
12707
12707
  (V) => {
12708
12708
  var oe;
12709
12709
  return !((oe = c[s.field]) != null && oe.some((K) => K === V));
@@ -12740,7 +12740,7 @@ const rr = (n) => {
12740
12740
  children: "Не найдено"
12741
12741
  }
12742
12742
  ),
12743
- j && (j == null ? void 0 : j.map((V, oe) => /* @__PURE__ */ $(
12743
+ B && (B == null ? void 0 : B.map((V, oe) => /* @__PURE__ */ $(
12744
12744
  "li",
12745
12745
  {
12746
12746
  className: "select-column__li",
@@ -12776,14 +12776,14 @@ const rr = (n) => {
12776
12776
  ]
12777
12777
  }
12778
12778
  ),
12779
- l === S && B && s.filterType === "boolean" && /* @__PURE__ */ f(
12779
+ l === S && j && s.filterType === "boolean" && /* @__PURE__ */ f(
12780
12780
  "div",
12781
12781
  {
12782
12782
  className: "select-params__box",
12783
12783
  style: {
12784
- left: x - B < 278 ? "unset" : 0,
12785
- right: x - B < 278 ? k[s.field] - (x - B) : 0,
12786
- top: T + 2,
12784
+ left: x - j < 278 ? "unset" : 0,
12785
+ right: x - j < 278 ? k[s.field] - (x - j) : 0,
12786
+ top: E + 2,
12787
12787
  position: "absolute",
12788
12788
  minWidth: 278,
12789
12789
  backgroundColor: "#FFFFFF",
@@ -12809,7 +12809,7 @@ const rr = (n) => {
12809
12809
  keySelect: "typeFilterSearch",
12810
12810
  value: D == null ? void 0 : D.typeFilterSearch,
12811
12811
  options: Pp,
12812
- onChange: W,
12812
+ onChange: A,
12813
12813
  height: 38,
12814
12814
  width: "100%",
12815
12815
  className: "",
@@ -12920,45 +12920,49 @@ function Lp({
12920
12920
  style: d,
12921
12921
  marginTop: p
12922
12922
  }) {
12923
- const m = s ?? [10, 20, ...n > 20 ? [50] : []], g = m.length > 0 ? m : [t], b = g[0] ?? t, v = g.filter((N, D) => {
12924
- if (D === 0) return !0;
12925
- const W = g[D - 1];
12926
- return n > W;
12923
+ const m = s ?? [10, 20, ...n > 20 ? [50] : []], g = m.length > 0 ? m : [t], b = g[0] ?? t, v = g.filter((D, A) => {
12924
+ if (A === 0) return !0;
12925
+ const B = g[A - 1];
12926
+ return n > B;
12927
12927
  }), w = n > b && v.length > 1, k = Math.ceil(n / t), M = k > 1;
12928
12928
  if (o === 0 || !M && !w) return null;
12929
- const x = (a - 1) * t + 1, y = Math.min(a * t, n), A = () => Ip(k, a, i).map((N, D) => N === "dots" ? /* @__PURE__ */ f(Rp, {}, `dots-${D}`) : /* @__PURE__ */ f(
12929
+ const x = (a - 1) * t + 1, y = Math.min(a * t, n), F = () => Ip(k, a, i).map((D, A) => D === "dots" ? /* @__PURE__ */ f(Rp, {}, `dots-${A}`) : /* @__PURE__ */ f(
12930
12930
  "button",
12931
12931
  {
12932
12932
  type: "button",
12933
- className: `u-paginator__pages-num ${N === a ? "u-paginator__pages-num_active" : ""}`,
12934
- onClick: () => e(N),
12935
- children: N
12933
+ className: `u-paginator__pages-num ${D === a ? "u-paginator__pages-num_active" : ""}`,
12934
+ onClick: () => e(D),
12935
+ children: D
12936
12936
  },
12937
- N
12938
- )), E = l ?? Yp, S = p == null ? void 0 : typeof p == "number" ? `${p}px` : p;
12937
+ D
12938
+ )), N = l ?? Yp, S = p == null ? void 0 : typeof p == "number" ? `${p}px` : p, T = [
12939
+ "u-pagination",
12940
+ u ? "u-pagination_no-results" : "",
12941
+ c
12942
+ ].filter(Boolean).join(" ");
12939
12943
  return /* @__PURE__ */ $(
12940
12944
  "div",
12941
12945
  {
12942
- className: `u-pagination ${c}`.trim(),
12946
+ className: T,
12943
12947
  style: {
12944
12948
  ...S != null ? { marginTop: S } : null,
12945
12949
  ...d
12946
12950
  },
12947
12951
  children: [
12948
- u ? null : /* @__PURE__ */ f("p", { className: "u-pagination__result", children: E({ startItem: x, endItem: y, totalItems: n }) }),
12952
+ u ? null : /* @__PURE__ */ f("p", { className: "u-pagination__result", children: N({ startItem: x, endItem: y, totalItems: n }) }),
12949
12953
  /* @__PURE__ */ f("div", { className: "u-pagination__limits", children: w && /* @__PURE__ */ $(Ge, { children: [
12950
12954
  "Выводить по",
12951
- /* @__PURE__ */ f("div", { className: "u-pagination__limit-wrapper", children: v.map((N) => /* @__PURE__ */ f(
12955
+ /* @__PURE__ */ f("div", { className: "u-pagination__limit-wrapper", children: v.map((D) => /* @__PURE__ */ f(
12952
12956
  "span",
12953
12957
  {
12954
- className: `u-pagination__limit ${N === t ? "u-pagination__limit_active" : ""}`,
12955
- onClick: () => r(N),
12958
+ className: `u-pagination__limit ${D === t ? "u-pagination__limit_active" : ""}`,
12959
+ onClick: () => r(D),
12956
12960
  role: "button",
12957
12961
  tabIndex: 0,
12958
- onKeyDown: (D) => D.key === "Enter" && r(N),
12959
- children: N
12962
+ onKeyDown: (A) => A.key === "Enter" && r(D),
12963
+ children: D
12960
12964
  },
12961
- N
12965
+ D
12962
12966
  )) })
12963
12967
  ] }) }),
12964
12968
  /* @__PURE__ */ f("div", { className: "u-table-pagination-paginator-column", children: M ? /* @__PURE__ */ $("div", { className: "u-paginator", children: [
@@ -12970,7 +12974,7 @@ function Lp({
12970
12974
  onClick: () => a > 1 && e(a - 1)
12971
12975
  }
12972
12976
  ),
12973
- /* @__PURE__ */ f("div", { className: "u-paginator__pages", children: A() }),
12977
+ /* @__PURE__ */ f("div", { className: "u-paginator__pages", children: F() }),
12974
12978
  /* @__PURE__ */ f(
12975
12979
  "button",
12976
12980
  {
@@ -13081,36 +13085,36 @@ const Ap = (n, a, t, e) => {
13081
13085
  draggable: M,
13082
13086
  resize: x,
13083
13087
  onDrop: y,
13084
- maxHeight: A,
13085
- minHeight: E,
13088
+ maxHeight: F,
13089
+ minHeight: N,
13086
13090
  whereFindChecked: S = "",
13087
- filterEmptyLabel: N = "Не указано",
13091
+ filterEmptyLabel: T = "Не указано",
13088
13092
  virtualizationOn: D,
13089
- parentDataField: W,
13090
- rowHeight: j = 160,
13093
+ parentDataField: A,
13094
+ rowHeight: B = 160,
13091
13095
  visibleRows: Q = 20,
13092
13096
  setFilteredTableData: q,
13093
13097
  withoutHeader: ne,
13094
13098
  filterResetParam: R,
13095
13099
  pagination: C,
13096
- isLoading: T,
13100
+ isLoading: E,
13097
13101
  isLoadingPreloader: X,
13098
13102
  initialSkeletonRows: _ = 10,
13099
13103
  initialSkeletonRowHeight: Y = 32,
13100
13104
  preloaderHeight: U = 750
13101
13105
  }) => {
13102
13106
  var Oa;
13103
- const P = a.reduce((I, Z) => (Z.field != null && Z.width != null && (I[Z.field] = Z.width), I), {}), [H, z] = ae({}), [B, J] = ae({}), [se, ue] = ae(void 0), [F, re] = ae([]), [G, we] = ae(
13107
+ const P = a.reduce((I, Z) => (Z.field != null && Z.width != null && (I[Z.field] = Z.width), I), {}), [H, z] = ae({}), [j, J] = ae({}), [se, ue] = ae(void 0), [W, re] = ae([]), [G, we] = ae(
13104
13108
  a.filter((I) => I.hidden !== !0)
13105
13109
  ), [Me, qe] = ae({}), [ee, be] = ae([]), [xe, Ne] = ae(), Ye = fe(null), [V, oe] = ae(0), [K, pe] = ae(0), Ke = fe({}), We = fe([]), $t = fe([]), Ht = fe([]), un = fe([]), dn = fe([]), jn = fe({}), [Fr, qn] = ae(void 0), Mn = Be(
13106
- (I) => We.current[I] ?? j,
13107
- [j]
13110
+ (I) => We.current[I] ?? B,
13111
+ [B]
13108
13112
  ), ht = dt(() => {
13109
- const I = new Array(F.length + 1).fill(0);
13110
- for (let Z = 0; Z < F.length; Z++)
13113
+ const I = new Array(W.length + 1).fill(0);
13114
+ for (let Z = 0; Z < W.length; Z++)
13111
13115
  I[Z + 1] = I[Z] + Mn(Z);
13112
13116
  return I;
13113
- }, [F.length, Mn, K]), Gn = dt(
13117
+ }, [W.length, Mn, K]), Gn = dt(
13114
13118
  () => ht.length > 0 ? ht[ht.length - 1] : 0,
13115
13119
  [ht]
13116
13120
  ), O = Q + 1, he = Be(
@@ -13120,12 +13124,12 @@ const Ap = (n, a, t, e) => {
13120
13124
  const De = Math.floor((Z + me) / 2);
13121
13125
  ht[De] <= I ? Z = De + 1 : me = De;
13122
13126
  }
13123
- return Math.max(0, Math.min(F.length - 1, Z - 1));
13127
+ return Math.max(0, Math.min(W.length - 1, Z - 1));
13124
13128
  },
13125
- [ht, F.length]
13126
- ), ke = D && F.length > Q, it = ke ? ht[V] : 0, Ze = ke ? Math.max(
13129
+ [ht, W.length]
13130
+ ), ke = D && W.length > Q, it = ke ? ht[V] : 0, Ze = ke ? Math.max(
13127
13131
  0,
13128
- Gn - ht[Math.min(F.length, V + O)]
13132
+ Gn - ht[Math.min(W.length, V + O)]
13129
13133
  ) : 0, mt = (I, Z) => {
13130
13134
  const me = { ...H };
13131
13135
  me[I] = P[I] ? Z < P[I] ? P[I] : Z : Z > 30 ? Z : 30, J(me);
@@ -13168,7 +13172,7 @@ const Ap = (n, a, t, e) => {
13168
13172
  return Array.isArray(Ce) && Ce.every((It) => typeof It == "object" && "title" in It) ? !Ce.every(
13169
13173
  (It) => Me[$e].includes(It.title)
13170
13174
  ) : Array.isArray(Ce) ? !Ce.every((It) => Me[$e].includes(It)) : typeof Ce == "object" && Ce !== null && "title" in Ce ? !Me[$e].includes(Ce.title) : !Me[$e].includes(
13171
- Ce == null || typeof Ce == "string" && Ce.length === 0 ? N : Ce
13175
+ Ce == null || typeof Ce == "string" && Ce.length === 0 ? T : Ce
13172
13176
  );
13173
13177
  }), at = I.length === 0 || Object.keys(ye).some(
13174
13178
  ($e) => I.some(
@@ -13199,22 +13203,22 @@ const Ap = (n, a, t, e) => {
13199
13203
  if (tt == null) return xe.asc ? 1 : -1;
13200
13204
  const It = at.toString().toLowerCase(), Pa = tt.toString().toLowerCase();
13201
13205
  return It < Pa ? xe.asc ? -1 : 1 : It > Pa ? xe.asc ? 1 : -1 : 0;
13202
- }, Ae = [...W ? n == null ? void 0 : n.map((te) => {
13206
+ }, Ae = [...A ? n == null ? void 0 : n.map((te) => {
13203
13207
  var ye;
13204
13208
  return {
13205
13209
  ...te,
13206
- [W]: (ye = te[W]) == null ? void 0 : ye.filter(
13210
+ [A]: (ye = te[A]) == null ? void 0 : ye.filter(
13207
13211
  (Le) => Z(Le)
13208
13212
  )
13209
13213
  };
13210
13214
  }).filter(
13211
13215
  (te) => {
13212
13216
  var ye;
13213
- return !te[W] && Z(te) || ((ye = te[W]) == null ? void 0 : ye.length) > 0;
13217
+ return !te[A] && Z(te) || ((ye = te[A]) == null ? void 0 : ye.length) > 0;
13214
13218
  }
13215
13219
  ) : n == null ? void 0 : n.filter((te) => Z(te))];
13216
- (xe == null ? void 0 : xe.asc) === void 0 ? (re(Zt(Ae)), q && q(Zt(Ae))) : (Ae.sort((te, ye) => me(te, ye)), W && Ae.forEach((te) => {
13217
- te[W] && Array.isArray(te[W]) && te[W].sort((ye, Le) => me(ye, Le));
13220
+ (xe == null ? void 0 : xe.asc) === void 0 ? (re(Zt(Ae)), q && q(Zt(Ae))) : (Ae.sort((te, ye) => me(te, ye)), A && Ae.forEach((te) => {
13221
+ te[A] && Array.isArray(te[A]) && te[A].sort((ye, Le) => me(ye, Le));
13218
13222
  }), re(Zt(Ae)), q && q(Zt(Ae)));
13219
13223
  }
13220
13224
  }, [n, Me, ee, xe]), de(() => {
@@ -13236,21 +13240,21 @@ const Ap = (n, a, t, e) => {
13236
13240
  z(
13237
13241
  Ap(
13238
13242
  I,
13239
- Object.keys(B).length === 0 ? I : B,
13243
+ Object.keys(j).length === 0 ? I : j,
13240
13244
  P,
13241
13245
  a
13242
13246
  )
13243
13247
  );
13244
13248
  }
13245
- }, [a, B]);
13249
+ }, [a, j]);
13246
13250
  const fn = Be(
13247
13251
  (I) => {
13248
13252
  if (!ke)
13249
13253
  return;
13250
- const Z = I.target, me = Math.max(0, F.length - O), De = Math.min(me, he(Z.scrollTop));
13254
+ const Z = I.target, me = Math.max(0, W.length - O), De = Math.min(me, he(Z.scrollTop));
13251
13255
  oe(De);
13252
13256
  },
13253
- [F.length, he, ke, O]
13257
+ [W.length, he, ke, O]
13254
13258
  );
13255
13259
  de(() => {
13256
13260
  if (D && Ye.current) {
@@ -13260,11 +13264,11 @@ const Ap = (n, a, t, e) => {
13260
13264
  };
13261
13265
  }
13262
13266
  }, [D, fn]), de(() => {
13263
- D && Ye.current && F.length < V && (Ye.current.scrollTo({ top: 0 }), oe(0));
13264
- }, [F.length, V, D]), de(() => {
13267
+ D && Ye.current && W.length < V && (Ye.current.scrollTo({ top: 0 }), oe(0));
13268
+ }, [W.length, V, D]), de(() => {
13265
13269
  if (!D)
13266
13270
  return;
13267
- const I = ke ? V : 0, Z = ke ? Math.min(F.length, V + O) : F.length;
13271
+ const I = ke ? V : 0, Z = ke ? Math.min(W.length, V + O) : W.length;
13268
13272
  let me = !1;
13269
13273
  for (let De = I; De < Z; De++) {
13270
13274
  const Ae = jn.current[De];
@@ -13273,12 +13277,12 @@ const Ap = (n, a, t, e) => {
13273
13277
  (!We.current[De] || Math.abs(We.current[De] - te) > 0.5) && (We.current[De] = te, me = !0);
13274
13278
  }
13275
13279
  me && pe((De) => De + 1);
13276
- }, [D, ke, V, O, F.length]);
13280
+ }, [D, ke, V, O, W.length]);
13277
13281
  const wt = (I) => {
13278
- const Z = [...F];
13282
+ const Z = [...W];
13279
13283
  Z[I].parentDataOpened = !0, re(Z);
13280
13284
  }, zn = (I) => {
13281
- const Z = [...F];
13285
+ const Z = [...W];
13282
13286
  Z[I].parentDataOpened = !1, re(Z);
13283
13287
  }, Ta = (I, Z, me, De, Ae) => /* @__PURE__ */ f(
13284
13288
  "tr",
@@ -13302,7 +13306,7 @@ const Ap = (n, a, t, e) => {
13302
13306
  {
13303
13307
  left: te.sticky ? bt(ye) : "",
13304
13308
  padding: 0,
13305
- display: W && ye === 0 && I[W] ? "flex" : "table-cell",
13309
+ display: A && ye === 0 && I[A] ? "flex" : "table-cell",
13306
13310
  gap: 4
13307
13311
  },
13308
13312
  u,
@@ -13340,7 +13344,7 @@ const Ap = (n, a, t, e) => {
13340
13344
  children: te.render ? te.render(I, Z) : I[te.field]
13341
13345
  }
13342
13346
  ),
13343
- !I.notExpandable && W && ye === 0 && I[W] && I[W].length > 0 && /* @__PURE__ */ f(
13347
+ !I.notExpandable && A && ye === 0 && I[A] && I[A].length > 0 && /* @__PURE__ */ f(
13344
13348
  "svg",
13345
13349
  {
13346
13350
  width: "12",
@@ -13376,8 +13380,8 @@ const Ap = (n, a, t, e) => {
13376
13380
  De ?? I.id ?? (D ? V + Z : Z)
13377
13381
  );
13378
13382
  return de(() => {
13379
- !T && F.length > 0 && setTimeout(() => {
13380
- const I = Array.from(document.querySelectorAll(`#${k} .table tbody tr[data-virtual-index]`)), Z = new Array(F.length).fill(void 0), me = new Array(F.length).fill(void 0), De = new Array(F.length).fill(void 0), Ae = new Array(F.length).fill(void 0), te = new Array(F.length).fill(void 0);
13383
+ !E && W.length > 0 && setTimeout(() => {
13384
+ const I = Array.from(document.querySelectorAll(`#${k} .table tbody tr[data-virtual-index]`)), Z = new Array(W.length).fill(void 0), me = new Array(W.length).fill(void 0), De = new Array(W.length).fill(void 0), Ae = new Array(W.length).fill(void 0), te = new Array(W.length).fill(void 0);
13381
13385
  I.forEach((ye) => {
13382
13386
  const Le = Number(ye.dataset.virtualIndex);
13383
13387
  if (isNaN(Le)) return;
@@ -13400,18 +13404,18 @@ const Ap = (n, a, t, e) => {
13400
13404
  });
13401
13405
  }), We.current = We.current.map((ye, Le) => Z[Le] ?? ye), $t.current = $t.current.map((ye, Le) => me[Le] ?? ye), Ht.current = Ht.current.map((ye, Le) => De[Le] ?? ye), un.current = un.current.map((ye, Le) => Ae[Le] ?? ye), dn.current = dn.current.map((ye, Le) => te[Le] ?? ye);
13402
13406
  }, 0);
13403
- }, [T, F]), de(() => {
13404
- !X && F.length > 0 && setTimeout(() => {
13407
+ }, [E, W]), de(() => {
13408
+ !X && W.length > 0 && setTimeout(() => {
13405
13409
  const I = document.querySelector(`#${k} .table tbody`);
13406
13410
  I && qn(I.getBoundingClientRect().height);
13407
13411
  }, 0);
13408
- }, [X, F]), /* @__PURE__ */ $(Ge, { children: [
13412
+ }, [X, W]), /* @__PURE__ */ $(Ge, { children: [
13409
13413
  (n == null ? void 0 : n.length) !== 0 || (n == null ? void 0 : n.length) === 0 && g ? /* @__PURE__ */ f(
13410
13414
  "div",
13411
13415
  {
13412
13416
  id: k,
13413
13417
  className: `u-table${["horizontal", "vertical", "none", "both"].includes(t) ? Wp(t) : ""}${e ? " striped" : ""}${r ? " not-active-lines" : ""}${o ? " thead-fixed" : ""}${i ? " header-borders" : ""}${b ? " " + b : ""}`,
13414
- style: { maxHeight: A, minHeight: E },
13418
+ style: { maxHeight: F, minHeight: N },
13415
13419
  ref: Ye,
13416
13420
  children: /* @__PURE__ */ $("table", { className: "table", children: [
13417
13421
  !ne && /* @__PURE__ */ f("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ f("tr", { children: G == null ? void 0 : G.map(
@@ -13432,21 +13436,21 @@ const Ap = (n, a, t, e) => {
13432
13436
  setSelected: ue,
13433
13437
  options: n.map((De) => De[I.field]),
13434
13438
  setFilteredData: re,
13435
- filteredData: F,
13439
+ filteredData: W,
13436
13440
  data: n,
13437
13441
  uncheckedValues: Me,
13438
13442
  setUncheckedValues: qe,
13439
13443
  setFilterDates: be,
13440
13444
  filterDates: ee,
13441
- filterEmptyLabel: N,
13445
+ filterEmptyLabel: T,
13442
13446
  sort: xe,
13443
13447
  setSort: Ne,
13444
13448
  onMouseDown: (De) => x && !I.resizeOff && ct(De, I.field),
13445
13449
  resize: x,
13446
13450
  setColumnWidths: J,
13447
- columnWidths: B,
13451
+ columnWidths: j,
13448
13452
  tableRight: (me = Ye.current) == null ? void 0 : me.getBoundingClientRect().right,
13449
- isParentDataField: !!W,
13453
+ isParentDataField: !!A,
13450
13454
  filterResetParam: R
13451
13455
  }
13452
13456
  ) : /* @__PURE__ */ f(
@@ -13511,14 +13515,14 @@ const Ap = (n, a, t, e) => {
13511
13515
  );
13512
13516
  }
13513
13517
  ) }) }),
13514
- /* @__PURE__ */ f("tbody", { children: X && (!T || T && We.current.length === 0) ? /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f(
13518
+ /* @__PURE__ */ f("tbody", { children: X && (!E || E && We.current.length === 0) ? /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f(
13515
13519
  "td",
13516
13520
  {
13517
13521
  colSpan: G.length,
13518
13522
  style: { height: Fr || U },
13519
13523
  children: /* @__PURE__ */ f(Ti, { variant: "large-primary", className: "" })
13520
13524
  }
13521
- ) }) : T ? /* @__PURE__ */ f(
13525
+ ) }) : E ? /* @__PURE__ */ f(
13522
13526
  Bp,
13523
13527
  {
13524
13528
  columns: G,
@@ -13531,14 +13535,14 @@ const Ap = (n, a, t, e) => {
13531
13535
  }
13532
13536
  ) : /* @__PURE__ */ $(Ge, { children: [
13533
13537
  (n == null ? void 0 : n.length) === 0 && g ? /* @__PURE__ */ f("tr", { className: "u-empty-table-row", children: /* @__PURE__ */ f("td", { colSpan: G.length, children: g }) }) : ke && /* @__PURE__ */ f("tr", { style: { height: it } }),
13534
- (Oa = ke ? F == null ? void 0 : F.slice(V, V + O) : F) == null ? void 0 : Oa.map((I, Z) => {
13538
+ (Oa = ke ? W == null ? void 0 : W.slice(V, V + O) : W) == null ? void 0 : Oa.map((I, Z) => {
13535
13539
  const me = ke ? V + Z : Z;
13536
13540
  return /* @__PURE__ */ $(
13537
13541
  L.Fragment,
13538
13542
  {
13539
13543
  children: [
13540
13544
  Ta(I, Z, void 0, void 0, me),
13541
- !I.notExpandable && I[W] && I.parentDataOpened && I[W].map(
13545
+ !I.notExpandable && I[A] && I.parentDataOpened && I[A].map(
13542
13546
  (De, Ae) => Ta(De, Ae, 1, De.id ?? `child-${Ae}`)
13543
13547
  )
13544
13548
  ]
@@ -13704,9 +13708,9 @@ const Qp = ({
13704
13708
  isSearchable: y
13705
13709
  }) => {
13706
13710
  var qe;
13707
- const [A, E] = ae(""), [S, N] = ae(null), [D, W] = ae(null), [j, Q] = ae([]), [q, ne] = ae(!1), [R, C] = ae(null), T = fe(null), X = fe(null), _ = fe(null), Y = fe(), U = Mi(A, 300), P = dt(() => w.filter((ee) => ee.title.toLowerCase().includes((U || "").toLowerCase())), [U, w]);
13708
- Rr(_, T, () => {
13709
- ne(!1), W(null);
13711
+ const [F, N] = ae(""), [S, T] = ae(null), [D, A] = ae(null), [B, Q] = ae([]), [q, ne] = ae(!1), [R, C] = ae(null), E = fe(null), X = fe(null), _ = fe(null), Y = fe(), U = Mi(F, 300), P = dt(() => w.filter((ee) => ee.title.toLowerCase().includes((U || "").toLowerCase())), [U, w]);
13712
+ Rr(_, E, () => {
13713
+ ne(!1), A(null);
13710
13714
  });
13711
13715
  const H = (ee) => typeof ee == "number" ? `${ee}px` : String(ee), z = (ee, be) => {
13712
13716
  ee.stopPropagation(), Q((xe) => xe != null && xe.includes(be) ? xe.filter((Ne) => Ne !== be) : [...xe, be]);
@@ -13724,19 +13728,19 @@ const Qp = ({
13724
13728
  clearInterval(ee);
13725
13729
  };
13726
13730
  }, [D]);
13727
- const B = (ee) => {
13731
+ const j = (ee) => {
13728
13732
  const be = w.filter((Ne) => Ne.parentId === ee.id);
13729
13733
  if (be.length === 0)
13730
13734
  return ee;
13731
13735
  let xe = null;
13732
13736
  return be.forEach((Ne) => {
13733
- const Ye = B(Ne);
13737
+ const Ye = j(Ne);
13734
13738
  Ye && (xe = Ye);
13735
13739
  }), xe;
13736
13740
  }, J = ({ node: ee, counter: be }) => {
13737
- const xe = w.filter((We) => We.parentId === ee.id), Ne = be + 1, Ye = j == null ? void 0 : j.includes(ee.id), V = B(ee), oe = G === ee.id, K = l == (ee == null ? void 0 : ee.title), pe = R === ee.id, Ke = () => {
13741
+ const xe = w.filter((We) => We.parentId === ee.id), Ne = be + 1, Ye = B == null ? void 0 : B.includes(ee.id), V = j(ee), oe = G === ee.id, K = l == (ee == null ? void 0 : ee.title), pe = R === ee.id, Ke = () => {
13738
13742
  var We;
13739
- d(ee), ne(!1), W(null), y && (E(""), (We = Y == null ? void 0 : Y.current) == null || We.focus());
13743
+ d(ee), ne(!1), A(null), y && (N(""), (We = Y == null ? void 0 : Y.current) == null || We.focus());
13740
13744
  };
13741
13745
  return /* @__PURE__ */ $("ul", { className: "treeview-list", children: [
13742
13746
  /* @__PURE__ */ $(
@@ -13759,9 +13763,9 @@ const Qp = ({
13759
13763
  ),
13760
13764
  Ye && xe.map((We) => /* @__PURE__ */ f(J, { node: We, counter: Ne }, We.id))
13761
13765
  ] });
13762
- }, se = y && A ? P : w == null ? void 0 : w.filter((ee) => ee.parentId === null), ue = dt(() => {
13766
+ }, se = y && F ? P : w == null ? void 0 : w.filter((ee) => ee.parentId === null), ue = dt(() => {
13763
13767
  if (!Array.isArray(w)) return [];
13764
- if (y && A)
13768
+ if (y && F)
13765
13769
  return P;
13766
13770
  const ee = /* @__PURE__ */ new Map();
13767
13771
  w.forEach((Ne) => {
@@ -13770,11 +13774,11 @@ const Qp = ({
13770
13774
  });
13771
13775
  const be = [], xe = (Ne) => {
13772
13776
  (ee.get(Ne) ?? []).forEach((V) => {
13773
- be.push(V), j.includes(V.id) && xe(V.id);
13777
+ be.push(V), B.includes(V.id) && xe(V.id);
13774
13778
  });
13775
13779
  };
13776
13780
  return xe(null), be;
13777
- }, [w, j, P, y, A]), { activeIndex: F, handleKeyDown: re } = Yr({
13781
+ }, [w, B, P, y, F]), { activeIndex: W, handleKeyDown: re } = Yr({
13778
13782
  isOpen: q,
13779
13783
  disabled: x,
13780
13784
  optionsLength: ue.length,
@@ -13784,16 +13788,16 @@ const Qp = ({
13784
13788
  ),
13785
13789
  onOpen: () => ne(!0),
13786
13790
  onClose: () => {
13787
- ne(!1), W(null);
13791
+ ne(!1), A(null);
13788
13792
  },
13789
13793
  onSelectByIndex: (ee) => {
13790
13794
  const be = ue[ee];
13791
13795
  be && we(be);
13792
13796
  }
13793
- }), G = F >= 0 ? (qe = ue[F]) == null ? void 0 : qe.id : void 0;
13797
+ }), G = W >= 0 ? (qe = ue[W]) == null ? void 0 : qe.id : void 0;
13794
13798
  Lr({
13795
13799
  isOpen: q,
13796
- activeIndex: F,
13800
+ activeIndex: W,
13797
13801
  portalOn: !1,
13798
13802
  localRef: _,
13799
13803
  getSelector: (ee) => {
@@ -13803,13 +13807,13 @@ const Qp = ({
13803
13807
  });
13804
13808
  const we = (ee) => {
13805
13809
  var be;
13806
- ee && (d(ee), ne(!1), W(null), y && (E(""), (be = Y == null ? void 0 : Y.current) == null || be.focus()));
13810
+ ee && (d(ee), ne(!1), A(null), y && (N(""), (be = Y == null ? void 0 : Y.current) == null || be.focus()));
13807
13811
  }, Me = (ee) => {
13808
13812
  if (ee) {
13809
13813
  const { x: be, y: xe } = ee.getBoundingClientRect();
13810
- N({ x: be, y: xe + 90 + window.scrollY }), X.current = xe + window.scrollY;
13814
+ T({ x: be, y: xe + 90 + window.scrollY }), X.current = xe + window.scrollY;
13811
13815
  } else
13812
- N(null), X.current = null;
13816
+ T(null), X.current = null;
13813
13817
  };
13814
13818
  return /* @__PURE__ */ $("div", { className: `u-react-select-container ${p}`, style: { position: "relative" }, children: [
13815
13819
  /* @__PURE__ */ $(
@@ -13843,7 +13847,7 @@ const Qp = ({
13843
13847
  "div",
13844
13848
  {
13845
13849
  className: `u-selectbox${x ? " u-selectbox-disabled" : ""} u-react-tree-view`,
13846
- ref: T,
13850
+ ref: E,
13847
13851
  style: { cursor: x ? "default" : "pointer" },
13848
13852
  children: [
13849
13853
  /* @__PURE__ */ $(
@@ -13853,7 +13857,7 @@ const Qp = ({
13853
13857
  onKeyDown: y ? void 0 : re,
13854
13858
  onClick: (ee) => {
13855
13859
  var be;
13856
- q ? W(null) : (y && ((be = Y == null ? void 0 : Y.current) == null || be.focus(), E("")), k && W(ee.currentTarget)), ne(!q);
13860
+ q ? A(null) : (y && ((be = Y == null ? void 0 : Y.current) == null || be.focus(), N("")), k && A(ee.currentTarget)), ne(!q);
13857
13861
  },
13858
13862
  className: `u-selectbox-select ${q ? "u-selectbox-select-open" : ""}`,
13859
13863
  id: `u-selectbox-select${M}`,
@@ -13895,8 +13899,8 @@ const Qp = ({
13895
13899
  ref: Y,
13896
13900
  className: q ? "treeview__search" : "treeview__search_disabled",
13897
13901
  placeholder: l || "Введите значение",
13898
- value: A,
13899
- onChange: (ee) => E(ee.target.value),
13902
+ value: F,
13903
+ onChange: (ee) => N(ee.target.value),
13900
13904
  onClick: (ee) => {
13901
13905
  q && ee.stopPropagation();
13902
13906
  },
@@ -13908,7 +13912,7 @@ const Qp = ({
13908
13912
  "i",
13909
13913
  {
13910
13914
  onClick: (ee) => {
13911
- W(null), c(ee), ne(!1);
13915
+ A(null), c(ee), ne(!1);
13912
13916
  },
13913
13917
  className: "u-selectbox-select-icon-cross",
13914
13918
  style: Object.assign(